code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/bash
#no real use case for this that I can come up with, but it was a question on stackoverflow that I had fun with.
sesh=$(screen -list | sed -n 2p)
sesh=$(grep "[a-zA-Z0-9]+" $sesh | sed -n 2p | cut -c 3-)
screen -x -m $sesh
| tkjef/shell_scripts | screen_session.sh | Shell | mit | 234 |
echo "123" > 1.txt ; echo "456" > 2.txt ; echo "789" > 3.txt ; echo"ABC" > A.txt ; echo"DEF" > B.txt ; echo"GHI" > C.txt
| KrbAlmryde/Utilities | WorkShop/SHELL/command_line_break_examples.sh | Shell | mit | 125 |
#!/bin/bash
# loadtest.sh
# Henry J Schmale
# C: July 30, 2015
# M: July 30, 2015
#
# Load tests a webserver.
#
# $1 - url to hit
# $2 - get param names, quoted and space delimited. IE 'q search_t media'
# $2+n - values for each param space delimited and quoted
| HSchmale16/UsefulScripts | loadtest.sh | Shell | mit | 264 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3325-1
#
# Security announcement date: 2015-08-01 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:30 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - apache2:2.4.10-10+deb8u1
#
# Last ver... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/i386/2015/DSA-3325-1.sh | Shell | mit | 638 |
sudo apt-get install -y mosh
| ermaker/infra_cac | install_mosh.sh | Shell | mit | 29 |
#!/bin/bash
# Edit this for your own project dependencies
OPAM_DEPENDS="core batteries llvm=3.8 yojson ocamlfind"
APT="ocaml ocaml-native-compilers camlp4-extra opam m4 clang-3.8 llvm"
echo "yes" | sudo add-apt-repository ppa:avsm/ppa
sudo apt-get update -qq
sudo apt-get install -qq $APT
export OPAMYES=1
opam in... | DavidWatkins/Dice | .travis-ci.sh | Shell | mit | 390 |
#!/bin/bash
# set -x
# Script para perguntar email do administrador e servidor smtp
# As perguntas são interativas através de TUI
# No final chama os scrips que necessitam de atualização
# Uso: /script/email.sh <cmd>
# <cmd>: --first primeira instalação
# --test envia email de teste
# <em bran... | isaacvitor/nfas | script/email.sh | Shell | mit | 11,532 |
#/bin/bash
MODULES_LIST=(pep8 requests web.py==0.40.dev0)
for MODULE in ${MODULES_LIST[@]}; do
python3 -m pip install ${MODULE}
done
| erben22/fib | setup-fib-modules.sh | Shell | mit | 137 |
__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
__PACKAGES_DIR=$__scriptpath/packages
__TOOLRUNTIME_DIR=$__scriptpath/Tools
__DOTNET_PATH=$__TOOLRUNTIME_DIR/dotnetcli
__DOTNET_CMD=$__DOTNET_PATH/bin/dotnet
if [ -z "$__BUILDTOOLS_SOURCE" ]; then __BUILDTOOLS_SOURCE=https://www.myget.org/F/dotnet-buildtools/; fi
__BUILD_TOO... | josguil/corefx | init-tools.sh | Shell | mit | 1,476 |
#!/usr/bin/env bash
set -ex
#######################################
# Runs as root
#######################################
cat > /etc/default/locale <<"DOC"
LANG="en_US.UTF-8"
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=... | thinkerbot/chart | vm/postgres.sh | Shell | mit | 2,087 |
#!/bin/bash
# Load auxiliary functions
source setup/functions.sh
# Install Unison
if [ ! -f /usr/local/bin/unison ]; then
echo "Installing Unison from latest STABLE release..."
echo "- downloading source code"
B='http://www.seas.upenn.edu/~bcpierce/unison//download/releases/stable/'
F=$(curl -s $B | g... | jerogee/sync-hub | setup/sync.sh | Shell | mit | 761 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3266-1
#
# Security announcement date: 2015-05-21 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:24 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - fuse:2.9.0-2+deb7u2
# - fuse-dbg:... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2015/DSA-3266-1.sh | Shell | mit | 1,112 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | Maheepk/LineHeightTool | Example/Pods/Target Support Files/Pods-LineHeightTool_Example/Pods-LineHeightTool_Example-frameworks.sh | Shell | mit | 2,632 |
#!/bin/bash
script_runner=$(whoami)
if [ $script_runner == "root" ] ; then
echo -e "\nFor security reasons this script must be run as a normal user with sudo privileges\n"
exit 1
fi
clear
echo '[Welcome to ee-install script]'
echo '(setup can take more 5 minutes)'
#Start install prerequisite
echo '[###### Upda... | johnrlive/ee-install | install.sh | Shell | mit | 1,818 |
#!/bin/bash
mkdir -p keys
#openssl \
openssl \
req -x509 -sha256 -nodes -days 365 \
-newkey rsa:2048 -keyout keys/server.key -out keys/server.crt
openssl \
req -new -x509 -keyout keys/server.pem \
-out keys/server.pem -days 365 -nodes | kostyll/netstubs | generate_certs.sh | Shell | mit | 252 |
#!/usr/bin/env bash
# see https://github.com/wp-cli/wp-cli/blob/master/templates/install-wp-tests.sh
if [ $# -lt 3 ]; then
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
exit 1
fi
DB_NAME=$1
DB_USER=$2
DB_PASS=$3
DB_HOST=${4-localhost}
WP_VERSION=${5-latest}
WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/... | tyler-king/wp-user-themes | bin/install-wp-tests.sh | Shell | mit | 3,213 |
#!/bin/sh
# Simple Bash Script to check and see if a given repo is up to date
# then if it is not up-to-date we update it. Best used with Cron.
#
if [ "$#" -ne 1 ]; then
echo "Usage: $0 LOCALREPO" >&2
exit 1
fi
cd $1
# git checkout dev #checkout a different branch - release v dev?
git diff
if [$? -ne 0]; then
g... | greenygh0st/aspnet-docker | GitCheck.sh | Shell | mit | 386 |
#!/usr/bin/bash
ln -fs $HOME/projects/dotfiles/mimeapps.list \
$HOME/.config/mimeapps.list
mkd $HOME/.local/share/applications/
ln -fs $HOME/projects/dotfiles/mimeapps.list \
$HOME/.local/share/applications/mimeapps.list
| brendan-R/dotfiles | os/set_default_apps.sh | Shell | mit | 231 |
#!/bin/bash
#PBS -q default
#PBS -m abe
#PBS -j oe
#PBS -l pmem=1gb
#PBS -l walltime=10:00:00
#PBS -l nodes=1:ppn=12
#PBS -N miseq-pipeline
set -e
# input files
export left_reads='test/data/reads_R1.fastq'
export bc_reads='test/data/reads_I1.fastq'
export right_reads='test/data/reads_R2.fastq'
export database='gg_13... | audy/miseq-16S-pipeline | test/run.sh | Shell | mit | 455 |
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
USER=$(whoami)
sudo chown -R $USER:$USER $DIR
#sudo find $DIR -type d -print0 | xargs -0 -n 100 chmod 755
#sudo find $DIR -type f ! -path "$DIR/restore-permissions.sh" -print0 | xargs -0 -n 100 chmod 644 | citac/citac | var/specs/restore-permissions.sh | Shell | mit | 271 |
wget http://pear.zero.mq/get/zmq-1.0.3.tgz
tar -xzf zmq-1.0.3.tgz
sh -c "cd zmq-1.0.3 && phpize && ./configure && make && sudo make install"
echo "extension=zmq.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
| pminnieur/Leach | .travis.sh | Shell | mit | 232 |
#!/bin/sh
gnuplot <<- EOF
set style fill solid border lc rgb "black"
set terminal png
set title "Histgram"
set xlabel "value"
set ylabel "frequency"
set output "./histgram_ex3.png"
set xtic 0, 50, 255
plot "plot_ex3.dat" using 0:2 with boxes lw 2 lc rgb "light-cyan" notitle
EOF
display histgram_ex3.png &
convert -dept... | NorihiroNakaoka/univ | InfoEx3/1-1/ex3.sh | Shell | mit | 411 |
#!/bin/sh
# Author: Martin Jansa <martin.jansa@gmail.com>
#
# Copyright (c) 2013 Martin Jansa <Martin.Jansa@gmail.com>
# Used to detect missing dependencies or automagically
# enabled dependencies which aren't explicitly enabled
# or disabled.
# It does 3 builds of <target>
# 1st to populate sstate-cache directory a... | marcosbontempo/inatelos | poky-daisy/scripts/test-dependencies.sh | Shell | mit | 10,243 |
#! /bin/bash
nosetests &> nose.out; cat nose.out | less
| ekalosak/go | runtests.sh | Shell | mit | 56 |
#!/usr/bin/env bash
##
# Implements hook -s 'instance' -p 'pre' -a 'start' -v 'PROVISION_USING HOST_TYPE INSTANCE_TYPE'
#
# Makes sure DB-related env. vars. get exported for extensions which need them
# during this action - e.g. docker-compose.
#
# @see cwt/instance/start.sh
# @see cwt/extensions/docker-compose/instan... | Paulmicha/common-web-tools | cwt/extensions/db/instance/pre_start.hook.sh | Shell | mit | 368 |
#!/bin/sh
# Automatically sets defaults for macOS
# see https://mths.be/macos
# shellcheck source=script/helpers.sh
source "$HOME/.dotfiles/script/helpers.sh"
enter_sudo
# Close any open System Preferences panes, to prevent them from overriding
# settings we're about to change
osascript -e 'tell application "System ... | duailibe/dotfiles | macos/set-defaults.sh | Shell | mit | 16,608 |
#!/bin/bash
set -ue
cd "$(dirname "$0")"
if [ $# -lt 1 ]; then
echo "Specify a benchmark:"
ls *.js | sed 's,\.js$,,;s,^, ,'
exit 1
fi
../node_modules/watchy/bin/watchy -w $(echo ../*.js *.js | sed 's/ /,/g') -- node "$1.js"
| ahri/upubsub | benchmarks/benchmark-watch.sh | Shell | mit | 243 |
#!/bin/bash
COUNT=0
while :
do
echo "Log entry $COUNT" >> /var/log/myapp.log
COUNT=$(($COUNT+1))
sleep 5
done
| grimlck/docker-log-example | myapp.sh | Shell | mit | 123 |
#!/bin/bash
export serializer_PORT=10000
export PROXY_HOST=$(docker-machine ip default)
node serializer.js
| nearform/micro-services-tutorial-iot | step3/services/serializer/run.sh | Shell | mit | 107 |
# Command line math
#
# I would love to make an alias '='='noglob =', but I can't find a way
# to escape the alias definition to make it work.
= () {
print $(( $@ ))
}
| jaqque/dotfiles | source/f_=.zsh | Shell | mit | 171 |
#!/bin/bash
tsc;
webpack -p;
function size {
echo $(cat dist/plugin-fuzzy-search.min.js) | gzip -9f | wc -c;
}
echo $(($(size)/1000)) Kb;
echo "plugin-fuzzy-search.min.js Hash:";
echo "sha256-$(cat dist/plugin-fuzzy-search.min.js | openssl dgst -sha256 -binary | openssl base64 -A)" | ClickSimply/Nano-SQL | packages/Plugin-Search/build.sh | Shell | mit | 288 |
#! /bin/bash
bash_temporary_dir=$bash_user_dir/tmp
function source_files() {
for file in `ls $@`; do
source $file
done
}
function os() {
uname_path=`which uname`
if [ "$uname_path" != "" ]; then
if [ `$uname_path` = "Darwin" ]; then
echo "mac"
elif [ `$uname_path` ... | at-ishikawa/dotfiles | bash/init.sh | Shell | mit | 573 |
#!/usr/bin/env bash
origfn=$1
#the shell way
basefn=`basename "$origfn"`
dirname=`dirname "$origfn"`
##the bash way
#basefn=${origfn##*/}
#dirname=${origfn%$basefn}
#dirname=${dirname%/} #strip off any trailing /
#dirname=${dirname:=.} #to ensure a non-null dirname
#the bash way
base=${basefn%.*}
ext=${basefn#... | lleo/express-video-server | ffmpeg_scripts/conv-800-webm-2pass.sh | Shell | mit | 2,154 |
#!/usr/bin/env bash
set -e
# How this install script works
#
# 1. Checks if nginx.conf changed
# 2. Applies change and reloads nginx
# 3. Rolls back nginx.conf if reload fails
#
# About rolling back nginx.conf:
#
# We don't check against the file actually used by nginx,
# but instead against another copy, which acts ... | ipfs/infrastructure | ci/jenkins/install.sh | Shell | mit | 2,252 |
#!/bin/bash
narg=($#)
if [ $narg -ne 6 ]; then
echo "4 arguments needed: [GAMESS output file] [Number of atoms] [Time Step (fs)] [Coordinates file] [Velocity file] [Fourier Transform Vel. File]"
exit 1
fi
gmsout=$1
natoms=$2
deltat=$3
coords=$4
vels=$5
ftvels=$6
au2ang=0.5291771
sec2fs=1e15
mass=mass.dat
rm -rf ... | alexpacheco/shell | scripts/day2/awk-sed/getcoordvels.sh | Shell | cc0-1.0 | 2,363 |
for i in {17..29}
do
phantomjs rasterize.js http://insamling.postnummeruppror.nu/map/postorter/2014-09-${i}_23:59.html postort-1409${i}.jpg 400px*750px
done
for i in {17..29}
do
phantomjs rasterize.js http://insamling.postnummeruppror.nu/map/postnummer/5/2014-09-${i}_23:59.html postnr5-1409${i}.jpg 400px*750px
done
| postnummeruppror/www | maps/genpic.sh | Shell | cc0-1.0 | 319 |
#!/bin/bash
#
# Copyright (c) 2012-2016 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Co... | dhuebner/che | assembly/assembly-main/src/assembly/bin/che.sh | Shell | epl-1.0 | 27,162 |
script/run-test-start-in-docker.sh onyx-jepsen.onyx-kill-test
| onyx-platform/onyx-jepsen | script/kill-test.sh | Shell | epl-1.0 | 62 |
#!/usr/bin/env bash
/usr/bin/lein trampoline run | shisoft/hdfs-cleaner | docker/server/scripts/start-server.sh | Shell | epl-1.0 | 49 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux-x86
CND_CONF=Release
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=so
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/c_prog_pra... | unfitacorn/Practicals-in-CS237-C-and-UNIX | Practicals/C prog prac 3/nbproject/Package-Release.bash | Shell | gpl-2.0 | 1,469 |
#!/bin/bash
#
# Firestarter and iptables restore script
# for ethernet network adapter
#
# @2016-04-27 by s3cur3n3t
#
#############################################
# Debug script
set -x
clear
# Global variable declaration
IPT=/sbin/iptables
IPT_REST=/sbin/iptables-restore
IPT_SWITCH='--flush'
# Connect and reconnect ... | s3cur3n3t/DevOps | secoops/fw-restore-ens5.sh | Shell | gpl-2.0 | 939 |
#!/bin/bash
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
| subsevenx2001/tdtoolkit | precv/enablepingreply.sh | Shell | gpl-2.0 | 62 |
#!/bin/bash
# Download and configure busybox.
# NOTE: This is optional. The binary of busybox distributed with QSim should
# work perfectly adequately.
BBOX=busybox-1.21.1
BBOX_ARCHIVE=$BBOX.tar.bz2
BBOX_URL=http://www.busybox.net/downloads/$BBOX_ARCHIVE
UNPACK="tar -xjf"
pushd ../linux
LINUX_DIR=`pwd`/linux-2.6.34... | cdkersey/qsim | initrd/getbusybox.sh | Shell | gpl-2.0 | 716 |
# -*- sh -*-
export ANSI_COLORS=1
export NOCOLOR='\e[0m'
export DARK='\e[1m'
export LIGHT='\e[2m'
export UNDERLINED='\e[4m'
export BLINK='\e[5m'
export REVERSE='\e[7m'
export DEFAULTCOLOR='\e[1;38m'
export BLACK='\e[1;30m'
export RED='\e[1;31m'
export GREEN='\e[1;32m'
export YELLOW='\e[1;33m'
export BLUE='\e[1;34m... | yourst/mty-perl | scripts/colorize.sh | Shell | gpl-2.0 | 739 |
#!/bin/sh
help()
{
cat <<EOF
[NAME]
`basename ${0}` - build kernel
[SYNOPSIS]
`basename ${0}` [-c] [-d] [-g] [-h] [-k] [-m] [-M] [-p] [-s] [-t] [-v]
[OPTIONS]
-c
install cgroup.
-d
build documents.
-g
install gpio.
-h
install headers.
-k
build kernel.
-m
install modules.
-M
create my module.
-... | s-takamiya/setup | build_kernel.sh | Shell | gpl-2.0 | 4,545 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2020-2022 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | gittup/tup | test/t5103-python-sh.sh | Shell | gpl-2.0 | 967 |
#!/bin/bash
# -------------------------------------------------------------------------------
# Name: get-consulmembers.sh
# Description: Get the current Consul Cluster Members.
# Author: Carlos Veira Lorenzo - cveira [at] thinkinbig.org
# Version: 1.0
# Date: 2014/01/04
# ------------------... | cveira/docker-aux | settings/scripts/get-consulmembers.sh | Shell | gpl-2.0 | 1,408 |
#!/bin/sh
CWD=`pwd`
PKG=/tmp/DracoLinux.$$
VERSION=$(cat VERSION)
if [ "$VERSION" == "" ]; then
VERSION=$(date +%Y%m%d)
fi
rm -rf $PKG
mkdir -p $PKG/DracoLinux-dist-$VERSION $PKG/DracoLinux-build-$VERSION || exit 1
cp -a $CWD/source/* $PKG/DracoLinux-dist-$VERSION/ || exit 1
cp -a $CWD/* $PKG/DracoLinux-build-$VER... | dracolinux/DracoLinux | tools/build_snapshot.sh | Shell | gpl-2.0 | 1,995 |
#!/bin/sh
# name of directory after extracting the archive in working directory
PKG_DIR="readline-6.3"
# name of the archive in dl directory
PKG_ARCHIVE_FILE="${PKG_DIR}.tar.gz"
# download link for the sources to be stored in dl directory
PKG_DOWNLOAD="https://m3-container.net/M3_Container/oss_packages/${PKG_ARCHIVE... | mi-schindler/M3_Container | oss_packages/scripts/readline-6.3.sh | Shell | gpl-2.0 | 1,474 |
#!/bin/bash
dir=$(dirname $0)
hello_path=${dir}/../bin/hello/hello
for a in $(seq 1 1000000); do
${hello_path}
done
| compudj/lttng-stress | loops/loop-app.sh | Shell | gpl-2.0 | 119 |
#!/bin/sh
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# wdb - weather and water data storage
#
# Copyright (C) 2011 met.no
#
# Contact information:
# Norwegian Meteorological Institute
# Box 43 Blindern
# 0313 OSLO
# NORWAY
# E-mail: wdb@met.no
#
# This is free software; you can re... | metno/wdb-metadata | install/uninstall_metadata.in.sh | Shell | gpl-2.0 | 3,395 |
#!/bin/sh
#
# $Id: senduu.sh,v 4.4 1998/11/15 10:59:04 mj Exp $
#
# Send stuff on hold as UUENCODEd mail
#
# usage: senduu user@domain Z:N/F.P ...
#
if [ $# -ne 2 ]; then
echo "usage: senduu user@domain Z:N/F.P ..."
exit 1
fi
user=$1
shift
for node in $*; do
<LIBDIR>/ftnflo -x "<BINDIR>/senduumail $user %s" ... | oldprogs/fidogate | scripts/misc/senduu.sh | Shell | gpl-2.0 | 331 |
# ----------------------------------------------------------------------------
# Codifica caracteres como entidades HTML e XML (< > ...).
# Entende entidades (>), códigos decimais (>) e hexadecimais (>).
#
# Opções: --html/--xml Codifica caracteres em códigos HTML/XML
# --hex Codific... | gmgall/funcoeszz | zz/zzcodchar.sh | Shell | gpl-2.0 | 9,941 |
killall Xvfb
killall skype
killall skypebot.py
| ForsakenX/forsaken-bots | skypebot/stop.sh | Shell | gpl-2.0 | 48 |
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/sde-package/patch-copyright.sh
# Copyright (C) 2006 - 2008 The OpenSDE Project
# Copyright (C) 2004 - 2005 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More informati... | OpenSDE/opensde-nopast | lib/sde-package/patch-copyright.sh | Shell | gpl-2.0 | 6,397 |
#!/bin/bash
# Realtime and Big Data Analytics Fall 2014 final project
# Using a Page Rank style ranking to inspect the movie, tv show and people ontology
# Lior Galanti lior.galanti@nyu.edu N14314920
ITERATIONS=3
#echo 'removing old input file from hdfs'
#hadoop fs -rm -r input.tsv > /dev/null 2>&1
#echo 'copying in... | moonwatcher/movierank | second/run.sh | Shell | gpl-2.0 | 6,450 |
#!/bin/sh
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Soft... | openjdk/jdk8u | hotspot/test/runtime/InitialThreadOverflow/testme.sh | Shell | gpl-2.0 | 2,374 |
# export AWS_ACCESS_KEY="Your-Access-Key"
# export AWS_SECRET_KEY="Your-Secret-Key"
today=`date +"%d-%m-%Y","%T"`
logfile="/awslog/ec2-access.log"
# Grab all Security Groups IDs for ALLOW action and export the IDs to a text file
sudo aws ec2 describe-security-groups --filters Name=tag:open-ssh-time,Values=01-00 Name=... | STARTSPACE/aws-access-to-ec2-by-timetable | ssh-22/allow-ad/ssh-allow-ad-01.sh | Shell | gpl-2.0 | 797 |
#!/bin/sh
if [ $# -ne 1 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Syntax: $0 step_name (note: NO space allowed!)"
echo "Example: $0 create_table_toto"
exit
fi
export CURRENT_VERSION='1.0.0-SNAPSHOT'
export VERSION_STR=`echo $CURRENT_VERSION | sed "s/-SNAPSHOT//g" | tr '.' '-'`
# mvn -f mi... | theAgileFactory/dbmdl-framework | src/main/resources/scripts/new.sh | Shell | gpl-2.0 | 480 |
time dd if=/dev/zero of=/dev/null count=100000
| Nils-TUD/Escape | source/dist/home/hrniels/scripts/speed.sh | Shell | gpl-2.0 | 47 |
#!/bin/bash
dpkg --purge torque torque-dev torque-initd
rm -rf /usr/src/*
rm -rf /tmp/*
cp /root/torque-4.2.6.tar.gz /usr/src/
| jas042/unixtools | cluster_torque/puppet/manifests/clean_torque.sh | Shell | gpl-2.0 | 128 |
#!/bin/bash
# Module outilsRC
# Avant éxécution se mettre dans le répertoire à traiter
# (Module spécifique à créer si nécessaire Voir archlinux)
# ------------------------------------------------------------------------------
Appli='OutilsRC'
Titre="${bold}Directory : $DirStart/$Appl... | RC69/RCsite1 | outilsRC/app/outilsRC.bash | Shell | gpl-2.0 | 766 |
#!/bin/sh
if [ -f ./cx-launcher.jar ]; then
if [ -d ./iast_cache ]; then
rm -r ./iast_cache
if [ -d ./logs ]; then
rm -r ./logs
fi
echo ""
echo "Previous Checkmarx IAST results in tools/CxIAST removed"
echo ""
fi
cd ../..
chmod 755 target/classes/insecureCmd.sh
mvn clean... | h3xstream/Benchmark | tools/CxIAST/runBenchmark_wCxIAST.sh | Shell | gpl-2.0 | 839 |
#!/bin/bash
STARTM=`date -u "+%s"`
function fmerge {
DIR="$1"
OUT="${1}/temp"
mkdir $OUT -p
INC=10
INC="$2"
ROOTPATH=/wlcg/sw/cms/slc5_amd64_gcc462/lcg/root/5.32.00
# failsafe - fall back to current directory
[ "$DIR" == "" ] && DIR="."
# save and change IFS
OLDIFS=$IFS
IFS=$'\n'
# read all file name into an array... | dhaitz/CalibFW | scripts/parallelmerge.sh | Shell | gpl-2.0 | 2,340 |
#!/bin/bash
yes no | pecl install mongo
| samtny/photos-deploy | ansible/roles/photos_api/templates/install_php_mongo.sh | Shell | gpl-2.0 | 41 |
#!/bin/bash
# test btrfstune options that enable filesystem features
source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfstune
check_prereq btrfs
setup_root_helper
prepare_test_dev
# test whether fsck can rebuild a corrupted extent tree
# parameters:
# - option for mkfs.btrfs -O, empty for defaults
#... | sten0/btrfs-progs | tests/misc-tests/001-btrfstune-features/test.sh | Shell | gpl-2.0 | 1,196 |
#!/bin/sh
lb clean
lb build
WWW="www"
if ! test -d $WWW; then mkdir $WWW; fi
THIS=$(cat $WWW/version)
if test -z "$THIS"; then echo "oops!"; exit 1; fi
NEXT=$(( $THIS + 1 ))
cp binary.hybrid.iso $WWW/$(printf "%06i.iso" $NEXT)
cp binary.hybrid.iso $WWW/hybrid.iso
if cd $WWW; then
zsyncmake -u $(p... | basilstotz/andrijn-boot | bootserver/build.sh | Shell | gpl-2.0 | 583 |
#!/bin/sh
#
# Install Voice CPE TAPI subsystem
START=30
# check for linux 2.6.x
uname -r | grep -q 2.6.
if [ $? -eq 0 ]; then
MODEXT=.ko
fi
bin_dir=/opt/lantiq/bin
drv_dev_base_name=tapi
drv_obj_file_name=drv_tapi$MODEXT
start() {
[ -z `cat /proc/modules | grep ifxos` ] && {
echo "Ooops - IFXOS isn't loaded,... | uwehermann/easybox-904-xdsl-firmware | package/infineon-utilities/feeds/ifx_voice_cpe/ifx-voice-cpe-tapi/files/ltq_load_voice_tapi.sh | Shell | gpl-2.0 | 1,034 |
#!/bin/sh
# This script produces a version number for the current git branch,
# based on the number of commits since the last-tagged version, the
# current branch, and any uncommitted changes.
if [ -n "$TRAVIS_PULL_REQUEST" ] || [ -n "$TRAVIS_BRANCH" ]; then
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
B... | radarsat1/dimple | util/version.sh | Shell | gpl-2.0 | 1,484 |
#!/bin/sh
T=$PWD
PRODUCT=KangBang-BFS-Kernel
PRODUCT_CONFIG_FILE=kangbang-mecha_defconfig
RAMDISK_FILES=ramdisk
MKRAMDISK=$T/tools/update-zip-tools/mkbootfs
MKBOOTIMG=$T/tools/update-zip-tools/mkbootimg
VERSION=1.0
DATE=$(date +%Y-%m-%d_%H":"%M)
# Setup omfgb-defconfigs and build zImage
echo "===== Cleaning kernel bu... | drod2169/KangBang-AOSP-BFS | build-scripts/KangBang-BFS-Kernel.sh | Shell | gpl-2.0 | 2,674 |
#!/bin/sh
# shellcheck disable=SC2034,SC2154
# set_configs.sh - set various configurations for screencast
#
# Copyright (c) 2015-2020 Daniel Bermond < gmail.com: danielbermond >
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published ... | dbermond/screencast | src/set_configs.sh | Shell | gpl-2.0 | 7,307 |
if [ $# -ne 2 ]
then
echo 'Only two parameters permitted.'
exit
# else
# echo $1 $2
fi
SRC=$1
DEST=$2
# echo $SRC $DEST
iFS=$IFS
IFS='
'
i=1
list=`ls $SRC`
for a in
do
# echo $a
if [ -f $a ]
then
echo $a is a file
files[$i]=$a
else
echo $a is a directory
fi
done
$IFS=$iFS
| safiyat/iCopy | copy.sh | Shell | gpl-2.0 | 289 |
#!/bin/bash
#
# $Id$
# 32-bit wrapper for win-setup.sh.
export DOWNLOAD_TAG="2012-09-13"
export WIRESHARK_TARGET_PLATFORM="win32"
WIN_SETUP=`echo $0 | sed -e s/win32/win/`
exec $WIN_SETUP $@
| sstjohn/wireshark | tools/win32-setup.sh | Shell | gpl-2.0 | 195 |
set -e -o pipefail
pre="INSERT INTO osm_ln (geom, osm_tags) ( SELECT wkb_geometry AS geom, hstore( "
mid=") AS osm_tags FROM en_ln WHERE code::TEXT LIKE "
end=");"
connect="psql -q -U postgres canvec"
if [ $(echo "\d" | $connect | grep en_ln | wc -l) = "0" ]; then
exit 0
fi
echo "$pre ARRAY['man_made', 'pipelin... | ingalls/canvecplus2osm | map/en_ln.sh | Shell | gpl-2.0 | 1,415 |
#!/bin/bash
#set -x
LOCALES=$*
# get newest .py file
NEWESTPY=0
PYTHONFILES=$(find . -name '*.py')
for PYTHONFILE in $PYTHONFILES
do
PYTHONFILEMOD=$(stat -c %Y $PYTHONFILE)
if [ $PYTHONFILEMOD -gt $NEWESTPY ]
then
NEWESTPY=$PYTHONFILEMOD
fi
done
# Gettext translation stuff
# for .po files by applying xgettext c... | takmid/inasafe | scripts/update-strings.sh | Shell | gpl-3.0 | 1,731 |
#!/bin/sh
mkdir asm
mkdir "asm/folder 1"
echo "H" > "asm/folder 1/aliases"
echo "He" > "asm/folder 1/bash_profile"
echo "Hel" > "asm/folder 1/bashrc"
echo "Hell" > "asm/folder 1/editorconfig"
echo "Hello" > "asm/folder 1/eslintrc.js"
echo "Hello " > "asm/folder 1/exports"
echo "Hello W" > "asm/folder 1/functions"
ech... | publicarray/IntrusionDetection | travis/before.sh | Shell | gpl-3.0 | 805 |
#! /bin/bash
########################################################################
# Install custom fonts for all users on the system
# Copyright (C) 2015 Carl J Smith
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... | dude56987/HackBox | scripts/install-custom-fonts.sh | Shell | gpl-3.0 | 1,386 |
#!/bin/bash
g++ -c -pipe -g -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../WellIndexBenchmark -I. -I/opt/Qt/5.4/gcc_64/include -I/opt/Qt/5.4/gcc_64/include/QtWidgets -I/opt/Qt/5.4/gcc_64/include/QtGui -I/opt/Qt/5.4/gcc_64/include/QtCore -I. -I/opt/Qt/5.4/gcc_64/mkspecs/linux-g+... | PetroleumCyberneticsGroup/FieldOptBenchmarks | WellIndexBenchmark/WellIndexBenchmark/compile_WIC_bport.sh | Shell | gpl-3.0 | 3,287 |
#!/bin/bash
apt-get -y install software-properties-common
apt-add-repository ppa:ansible/ansible
apt-get -y update
apt-get -y install ansible
| Isnardon/installAnsibleUbuntu | install.sh | Shell | gpl-3.0 | 142 |
#!/bin/bash
#1 : savepath 지정된 위치(저장될 경로)
#주의: 인자는 넘겨지기 전 콰우팅되어 있어야 합니다. ex)#!이스크립트명 "$HOME/LOG"
#+지정된 위치가 폴더면 실행된 스크립트명으로 내용을 추가합니다.
#+지정된 위치가 존재하지 않으면, 해당 위치에 내용을 추가합니다.
#+경로가 지정되지 않으면, 기본설정된 위치에 로그를 추가합니다.
#넘겨진 인수는 기본적으로 한번더 해석되니, bash쉘에서 사용되는 특수문자를 주의해서 사용하세요.
#여러 곳에서 다양한 이름으로 불리는 경우, 저장되는 이름도 제각각이니, 저장옵션에 파일명을 수동지정... | Thestar3Preservation/ScriptPack | Bash Shell Script/bashscriptrecode.sh | Shell | gpl-3.0 | 1,818 |
#!/bin/sh
case "$1" in
"record" )
git commit -a
;;
"pull" )
git pull origin master
;;
"push" )
git push git@github.com:linuxdeepin/deepin-ui-private.git
;;
"changelog" )
git log --oneline
;;
"checkout" )
git checkout -- .
... | liuhuan520/deepin-ui | repos.sh | Shell | gpl-3.0 | 2,591 |
# Default Theme
if patched_font_in_use; then
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="⮂"
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="⮃"
TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="⮀"
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="⮁"
else
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="◀"
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="❮"
TMUX_POWERLINE_SEPARATOR_R... | krischer/dotfiles | tmux/themes/custom.sh | Shell | gpl-3.0 | 1,897 |
#!/usr/bin/zsh
# Copyright (C) 2016 Nico Bäurer
# #
# # This program is free software: you can redistribute it and/or modify
# # it under the terms of the GNU General Public License as published by
# # the Free Software Foundation, either version 3 of the License, or
# # (at your option) any later version.
# #
# # This... | seebye/dotfiles | i3/touchpad_tap_click.sh | Shell | gpl-3.0 | 835 |
#!/bin/bash
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
UTILITIES="$SCRIPT_DIR/../Utilities"
# if it's not root, exit!
[ "$(whoami)" != "root" ] && echo -e "\n\tRUN this script as ROOT. Exiting...\n" && exit 1
#GENERAL CONFIG VARIABLES
INSTALL_DIR="/usr/sbin"
SUDOERS_LUKS="/etc/sudoers.d/luks"
LUKS_CMND_ALIAS="LUKS_... | alr46664/opensuse-auto | luks/install.sh | Shell | gpl-3.0 | 2,312 |
#!/bin/bash
#MASTER SIMULATOR! 20171001
package=GTWAS_POOL_RADseq_SIM
#######################
### ###
### IMPORTANT NOTES ###
### ###
#######################
#copy GTWAS_POOL_RADseq_SIM/ folder into /home/username/
#copy ddRADseqTools/ folder into /home/username/
#copy GWAlpha/ folder into /home/username/
###... | jeffersonfparil/GTWAS_POOL_RADseq_SIM | GTWAS_POOL_RADseq_SIM.sh | Shell | gpl-3.0 | 24,270 |
#!/bin/bash
set -eu -o pipefail
if FILEPATH="$(readlink -f "$0" 2>/dev/null)";
then
cd "${FILEPATH%/*}/"
else
FILEPATH="$0"
for _ in 1 2 3 4 5 6 7 8; # Maximum symlink recursion depth
do
cd -L "`case "${FILEPATH}" in */*) echo "${FILEPATH%/*}";; *) echo ".";; esac`/" # cd $(dirname)
if ! FILEPATH="$(readlink ... | isage/nxengine-evo | build-scripts/build-macos.sh | Shell | gpl-3.0 | 1,811 |
module load python/3.4.1-fasrc01
module load legacy/0.0.1-fasrc01
module load centos6/cython-0.20_python-3.3.2
module load gcc/6.2.0-fasrc01
| kareemcarr/cs205_2017_project | src/cython/cython_setup.sh | Shell | gpl-3.0 | 141 |
#!/bin/zsh
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile ${PWD:t:r}"
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
DIE=1
}
(automake --version) </dev/null >/dev/nul... | megacoder/dumpf | autogen.zsh | Shell | gpl-3.0 | 1,045 |
#!/bin/bash
#
# Note on reproducibility
# =======================
#
# I tried to use an Rmd file as the source file, because R can also execute bash code.
# Rendering an Rmd file would produce a more readable version of the source code, at the
# same time that the results are re-generated. But there is a problem: when ... | IgnasiLucas/fly | results/2019-11-25/README.sh | Shell | gpl-3.0 | 3,891 |
CONFIG_URL="https://raw.githubusercontent.com/guardicore/monkey/develop/deployment_scripts/config"
copy_monkey_island_to_build_dir() {
local src=$1
local build_dir=$2
cp "$src"/__init__.py "$build_dir"
cp "$src"/monkey_island.py "$build_dir"
cp -r "$src"/common "$build_dir/"
rsync \
-ar \
--e... | guardicore/monkey | build_scripts/common.sh | Shell | gpl-3.0 | 2,653 |
#!/bin/bash
ssh-keygen -t rsa
ssh-copy-id garvit@localhost
| garvitlnmiit/SNAPSync | onetimepass.sh | Shell | gpl-3.0 | 61 |
#!/bin/bash
for ((index=0; index<2; index++))
do
pdflatex CC_observables_def.tex
pdflatex Complex_DGLAP.tex
pdflatex DIS.tex
pdflatex Evolution_code.tex
pdflatex intrinsic_charm.tex
pdflatex Lagrange_derivative.tex
pdflatex QCD_QED_common_basis.tex
pdflatex TruncatedSolution.tex
pdf... | scarrazza/apfel | doc/sources/ProduceDocs.sh | Shell | gpl-3.0 | 492 |
#!/bin/sh
# !!!!!!!DRAFT!!!!!!!!
# script example to convert directories/files to MACOS' utf8 format
# REQUIRES iconv library
file="/music_mp3/Beyonce/4 [2011]/09_Beyoncé_-_4_[2011]-_Countdown.mp3"
beet -v -c ~/.config/beets/config-mp3-toProcess.yaml list path:"`iconv -f utf-8 -t utf-8-mac <<< "$file"`"
| djhibee/playlists-manager | scripts/old scripts/convertToUTF8.sh | Shell | gpl-3.0 | 311 |
#!/bin/bash
sudo yum --assumeyes install \
kernel-doc \
kernel-devel \
kernel-debug \
kernel-debug-modules-extra \
kernel-tools \
kernel-tools-libs \
kernel-tools-libs-devel
| jmanoel7/my_shell_scripts | bin/install-kernel-fedora.sh | Shell | gpl-3.0 | 209 |
#!/usr/bin/env php
<?php
if (!isset($argv[1])) exit('Invalid usage.' . PHP_EOL);
if (isset($argv[2]) && strlen($argv[2]) > 0) {
$VARIABLE = trim($argv[2]);
} else {
$VARIABLE = '';
}
switch($argv[1]) {
case 'update':
switch ($VARIABLE) {
case 'platform':
$platform['id'] = shell_exec('/usr/l... | Cat5TV/nems-scripts | tasks.sh | Shell | gpl-3.0 | 719 |
# Delete header information.
#
# See the Tests subsection of the manual for a complete explanation
# (in the Installing gnuastro section).
#
# Original author:
# Mohammad Akhlaghi <akhlaghi@gnu.org>
# Contributing author(s):
#
# Copying and distribution of this file, with or without modification,
# are permitted in... | VladimirMarkelov/gnuastro-vvm | tests/fits/delete.sh | Shell | gpl-3.0 | 1,287 |
#!/bin/bash
if [ -f carrier ]
then
CARRIER=`cat carrier`
else
CARRIER=2.45G
fi
CARRIER=$(zenity --entry --title "Carrier frequency for $HOSTNAME" --text "This host is named $HOSTNAME.\nEnter transmitter's carrier frequency:" --entry-text "$CARRIER")
echo $CARRIER > carrier
echo "Hostname: $HOSTNAME"
if [... | rwth-ti/gr-ofdm | lab_exercise/home/shell_scripts/usrp_tx.sh | Shell | gpl-3.0 | 737 |
#!/bin/bash
EC2_AVAIL_ZONE=`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone`
EC2_REGION="`echo \"$EC2_AVAIL_ZONE\" | sed -e 's:\([0-9][0-9]*\)[a-z]*\$:\\1:'`"
PVT_IP=`curl -s http://169.254.169.254/latest/meta-data/local-ipv4`
COLLECTOR_PORT=80
#cookies
COOKIE_EXPIRATION="36500 days" #100 ... | Bit-Clouded/Angostura | analytics/snowplow-kinesis-s3-sink/init-cmd.sh | Shell | gpl-3.0 | 1,497 |
#!/bin/bash
# jm33_m0
if ! test -e ~/ss; then
echo "
[*] Creating Shadowsocks folder at $path ...
"
mkdir -p ~/ss
fi
path=~/ss
# Check if our SSP instance is running fine, if not, launch it
ps -ef | grep "ssp-server" > /dev/null
if [ ! $? -eq 0 ]; then
echo "[-] SSP is not running, running $path/ss-run.s... | jm33-m0/gfw_scripts | ssplus/ss_add_api.sh | Shell | gpl-3.0 | 1,399 |
#!/bin/bash
set -e
CURRENT_DIR=$(pwd)
SRC_CHANGED="false"
BRANCHES=""
# Images based on alpine do not contain git
if [ -f "/etc/alpine-release" ];
then
apk add --no-cache git >/dev/null 2>&1
fi
if [ "$DRONE_BUILD_EVENT" = "pull_request" ];
then
git fetch origin --no-tags $DRONE_BRANCH:$DRONE_BRANCH
BRANCHES="$DRO... | CaliOpen/CaliOpen | devtools/drone/files_changed.sh | Shell | gpl-3.0 | 1,165 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.