blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
e57636b0317243a3ceed6ae59c21422fdec40298 | Shell | cmichi/visualizing-university-submissions | /process.sh | UTF-8 | 543 | 2.8125 | 3 | [
"MIT",
"CC-BY-3.0"
] | permissive | #!/bin/sh
cat $1 \
| grep "Datum der letzten" \
| sed "s/<span class=\"small\">Datum der letzten Abgabe: //" \
| sed "s/<br>//" \
| sed "s/---//" \
| awk 'NF > 0' \
| sed 's/^\s*//g' \
| sed 's/\.//g' \
| sed 's/\,//g' \
| awk '{ print $3 "/" $2 "/" $1";"$4":00" }' \
| sed 's/Nov/11/g' \
| sed 's/Dez/12/g' ... | true |
2171a185d81c07483c7306f75b3b3eefeba66e00 | Shell | spacetiller/experiment | /shell/test-meta.sh | UTF-8 | 160 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# metaprogram
echo '#!/bin/bash' > test-meta-gen.sh
for ((I=1; I<=92; I++)) do
echo "echo $I" >> test-meta-gen.sh
done
chmod +x test-meta-gen.sh | true |
cc2b17fe8912db8e4cabad09438b5524d8664675 | Shell | theirix/TorrentMultiplexer | /deps/build_libtorrent.sh | UTF-8 | 1,462 | 3.203125 | 3 | [] | no_license | #!/bin/sh
set -e
BUILDROOT=`pwd`
NAME=libtorrent
TARNAME=$NAME-0.12.9
INSTALL_DIR=$BUILDROOT/$NAME-prefix
FRAMEWORK=$NAME.framework
MAJOR=14
trap "cd $BUILDROOT" EXIT
rm -rf $TARNAME $FRAMEWORK $INSTALL_DIR
tar xf $TARNAME.tar.gz
cd $TARNAME
./configure --prefix=$INSTALL_DIR --disable-openssl STUFF_CFLAGS="-I$BUILDR... | true |
133300834e2b7e43002167dd307dc9fb97298129 | Shell | elvout/OS | /runall.sh | UTF-8 | 226 | 3.28125 | 3 | [] | no_license | #! /usr/bin/env zsh
if [[ $TESTS_DIR == "" ]]; then
TESTS_DIR="."
fi
for test in $TESTS_DIR/*.ok; do
name=${test:t:r}
printf "\e[2K\e[1G"
echo $name
../breakonfail.sh $name
echo "\e[2K\e[1G---"
done
| true |
cd330b48d8fb60d187ee1d663dfb2031eb9b45de | Shell | mads-hartmann/dotfilesv2 | /bin/serve | UTF-8 | 195 | 3.078125 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
function serve {
local port=$1
echo "Listening on http://localhost:${port} 🚀"
python -m SimpleHTTPServer ${port} .
}
port=${1:-8080}
serve ${port}
| true |
0e676384423a285788637af3bc60b3be6059cfad | Shell | bOmBeLq/mongo-backup | /backup.sh | UTF-8 | 1,477 | 3.828125 | 4 | [] | no_license | root_backup_dir='/var/data/backup'
# params from call
type=$1
versions=$2
# check parameters
if [ ! $1 ]; then
echo "backup dir has to be defined" >&2;
exit 1;
fi
if [ ! $2 ]; then
echo "backups count has to be defined" >&2;
exit 1;
fi
backup_dir="$root_backup_dir/$1"
versions=$2
if [ ! -d ${dir} ]... | true |
51d8ca95cdad56fee059281f9f6c11eb097f1c58 | Shell | Sen5or/Android | /serviceOn.sh | UTF-8 | 153 | 2.953125 | 3 | [] | no_license | #!/bin/bash
tvStatus=$(xset q | tail -n1)
set -- $tvStatus
user=$(whoami)
if [ "$3" = "Off" ]
then
xset dpms force on
echo "Powered ON display."
fi
| true |
25fd5b31d3fddcedf6c6489655e622888ab33e52 | Shell | enterstudio/lycheejs-runtime | /html-webview/package.sh | UTF-8 | 7,813 | 3.546875 | 4 | [] | no_license | #!/bin/bash
lowercase() {
echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/";
}
OS=`lowercase \`uname\``;
ARCH=`lowercase \`uname -m\``;
LYCHEEJS_ROOT=$(cd "$(dirname "$0")/../../../"; pwd);
RUNTIME_ROOT=$(cd "$(dirname "$0")/"; pwd);
PROJECT_NAME="$2";
PROJECT_ROOT="$LYCHEEJS_ROOT$1";
PROJE... | true |
b80e251a2e7cebd2a4adfa658210da6f32bda745 | Shell | shenyunhang/linux_configure_scripts | /tmux.sh | UTF-8 | 568 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -x
set -e
# apt-get
apt-get install -y libevent-dev
apt-get install -y bison flex
# tmux
apt-get install -y tmux
#apt-get remove -y tmux
#cd ~/Documents/
#git clone https://github.com/tmux/tmux.git
#cd tmux
#git checkout 3.1
#sh autogen.sh
#./configure && make
#make install
#echo "source "/usr/loca... | true |
5ee580958b851991b27c9232d6dd0cb4763ec6a9 | Shell | nadalpablo/graphql-poc | /docker-entrypoint.sh | UTF-8 | 417 | 2.828125 | 3 | [] | no_license | #!/bin/sh
set -eo pipefail
if [ -z "$JAVA_OPTS" ]; then
JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
else
JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom"
fi
if [ $DEBUG == "true" ]; then
JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
fi
if [ -z "$J... | true |
5a1f7ac7d86bde9c22d7ee70e06429a40c2d6fb5 | Shell | tahti/dotfiles | /bin/turnMonitor.sh | UTF-8 | 733 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#if [ $1=="off" ]
#then
#xset dpms force off; exit 0
#fi
if [ $# -eq 0 ]
then
SIDE="left"
else
SIDE="$1"
fi
OUTPUTS=( $(xrandr | grep \ connected | egrep -o "^[a-zA-Z0-9\-]+[0-9]") )
MODES=( $(xrandr | grep -A1 \ connected | egrep -o "[^a-z] [0-9][0-9][0-9][0-9]?x[0-9][0-9][0-9][0-9]?") )
max=${#OUT... | true |
b131b45c1437cb4295e2f86e4d828b091703f570 | Shell | sne11ius/oelint-adv | /tests/rule_var_pathhardcode_good | UTF-8 | 1,491 | 3.171875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
TESTFILE="${TMP}oelint_adv_test.bb"
trap "rm -f ${TESTFILE}" EXIT
TESTID="oelint.vars.pathhardcode.*"
TESTOCC="0"
cat > ${TESTFILE} << EOF
VAR = "${systemd_user_unitdir}"
VAR = "${systemd_system_unitdir}"
VAR = "${docdir}"
VAR = "${infodir}"
VAR = "${mandir}"
VAR = "${libexecdir}"
VAR = "${systemd_unitdir}"
V... | true |
a8de9f15a8397527461529b074a1da659d48f5db | Shell | joshuakarjala/dotfiles | /osx/set-defaults.sh | UTF-8 | 3,485 | 2.75 | 3 | [
"MIT"
] | permissive | # only if running osx
if test "$(uname -s)" != "Darwin"; then
exit
fi
# Sets reasonable OS X defaults.
#
# Or, in other words, set shit how I like in OS X.
#
# The original idea (and a couple settings) were grabbed from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run ./set-defaults.sh and y... | true |
1dafff4d6c3b96be51a2eb89eb99a3ab70f47bef | Shell | davidkhala/mac-utils | /ssh.sh | UTF-8 | 677 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | set -e
genRSA() {
local keySize
local email
local rsaKeyPrv
read -p "enter email (default:david-khala@hotmail.com):" email
read -p "enter keySize (default:4096) :" keySize
keySize=${keySize:-4096}
email=${email:-"david-khala@hotmail.com"}
ssh-keygen -t rsa -b $keySize -C $email
eval "$(ssh-agent -s)"
if [[ -... | true |
587b904c552d563de18fa08e99fc0c2dfbd0955c | Shell | kurniawan77/Domoticz | /scripts/milights/living_fade_off.sh | UTF-8 | 239 | 2.515625 | 3 | [] | no_license | #!/bin/bash
cd /home/pi/domoticz/scripts/milights
for i in {12..1}
do
./milight all B $i
for x in $(seq 100); do # do it slow
echo $i $x # show value and slow down
done
done
#./milight all off | true |
c836cea832b4f8e3840304cd714292b6bf0e99a1 | Shell | KennyIT3/LinuxScripts | /Scripts/patch.sh | UTF-8 | 466 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo -n "Please enter the password: "
read Pass
echo "${Pass}"
while :
do
for i in `cat ./patch_list.txt`
do
echo "$i"
sshpass -p "${Pass}" ssh -o PreferredAuthentications=password -o StrictHostKeychecking=no root@"${i[*]}" "yum update -y"
sshpass -p "${Pass}" ssh -o PreferredAu... | true |
371585e1849a62295abf95a51d35eec46073a7d6 | Shell | kids300/dotfiles-1 | /dev/java/_init | UTF-8 | 290 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
source ${0:A:h}/../../deploy
source env.zsh
install() {
# TODO Install android SDK
case $(_os) in
macos) brew cask install java gradle ;;
arch) yay --needed --noconfirm -S jdk8-openjdk gradle ;;
esac
}
# update() {}
# link() {}
# clean() {}
init "$@"
| true |
7e633df8702ad5e1945fad699a7f8f6559ca6063 | Shell | jamisbrill/McServerAutomatedInstall | /mcinstallv2.sh | UTF-8 | 1,226 | 2.75 | 3 | [] | no_license | #!/bin/bash
echo "please run with sudo (sudo ./mcinstallv2.sh)"
sudo apt-get update #make sure you have all up to date packadges
sudo apt-get upgrade
sudo apt-get install default-jdk #install java
useradd -m -d /home/mc -s /bin/bash -c "mc server user" -U mc #create a seggregated user
echo "please enter a pass for yo... | true |
a4d98ab39ec5a615a055cac994075f36393cad75 | Shell | SojournLabs/netboot | /ipxe_builder.docker/build_ipxe | UTF-8 | 1,800 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
# Usage:
# $0 imgserver1 templateserver1 imgserver2 templateserver2 ...
keyname() {
# Output the base name of the key-certificate files pair.
# Assume keyfile names never end in newline characters.
keyname_KEYFILE_NAME=$(ls /vapr/keys)
printf %s "${keyname_KEYFILE_NAME%.*}"
}
gen... | true |
cb4b92c38ae309d5cabaf63a9c649d91e93e605f | Shell | KaiL4eK/LEGO_ev3_compilation | /install_pack/ev3cleti_library/binary/newProject.sh | UTF-8 | 2,513 | 3.703125 | 4 | [] | no_license | #!/bin/bash
read -d '' main_text <<"EOF"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <ev3_core.h>
int main ( void )
{
// Here lay code =)
return( 0 );
}
EOF
read -d '' makefile_text <<"EOF"
#
# Configurable area
#
# This must be set to robots ip
ip_robot_address = __ip_address
execute_... | true |
f0ee0e4e9e15953f5cd23b385980e44d99221c93 | Shell | hubrigant/dotfiles | /config_masters/theming.zsh | UTF-8 | 427 | 3.796875 | 4 | [] | no_license | TRY_THEME="p10k"
if [ -n "${TRY_THEME+1}" ]; then
if [ -f ${HOME}/.${TRY_THEME}.zsh ]; then
if ${DEBUG}; then
echo "Using the ${TRY_THEME} theme."
fi
source ${HOME}/.${TRY_THEME}.zsh
else;
echo "TRY_THEME was set, but the RC file ${HOME}/.${TRY_THEME}.zsh doesn't exis... | true |
ec681cfd00c9ce4cc342cb47274d30bb39d6c6be | Shell | jaschenk/Tomcat-Instance-Generator-2.0.0 | /src/main/resources/tc/bin/setenv.sh | UTF-8 | 4,831 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# -----------------------------------------------------------
# Tomcat Instance Environment Settings
# -----------------------------------------------------------
#
# *************************************************************************
# Tomcat Instance Generation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... | true |
7e65be4c59f0862d75d6a8a0dbc321b7c6344c95 | Shell | XBrOtk/TCSS562-TLQ | /python_template/deploy/build_function.sh | UTF-8 | 274 | 2.765625 | 3 | [] | no_license | #! /bin/bash
# Destroy and prepare build folder
rm -rf build_function
mkdir build_function
# Copy files to build folder.
cp -R ../src/* ./build_function
cp -R ../platforms/aws/* ./build_function
# Zip and submit to AWS Lambda.
cd ./build_function
zip -X -r ./index.zip *
| true |
3f13ad90ee6ee9395bb7209263306072c1a05ac6 | Shell | grawity/code | /bin/find-computer-name | UTF-8 | 704 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# get-computer-name -- Extract the computer name out of a mounted Windows partition
#
# Depends on `reged` from the 'chntpw' package.
. lib.bash || exit
for root; do
root="${root%/}"
# Case-insensitive search
for name in 'Windows' 'System32' 'config' 'SYSTEM'; do
debug "lookup '$name' in '$r... | true |
aba23e71f41c1aa3869f9c1b2903b32726aeb9d5 | Shell | ayonbakshi/RBD-Physics-Sim | /scripts/movie.sh | UTF-8 | 295 | 2.890625 | 3 | [] | no_license | # Script to generate an mp4 from png files of the form $1%d.png (as created by recording, for example)
# $1 is the common prefix of all png's and $2 is the output name
set -e
test "${PWD##*/}" == "out"
ffmpeg -r 60 -f image2 -s 1920x1080 -i $1%d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p $2
| true |
61a63f7fbd7af43dacfd8629b648a94ed6745ab0 | Shell | Hikaru-Morita/allPNGtoEPS | /getPNGfilename.sh | UTF-8 | 223 | 3.03125 | 3 | [] | no_license | PNGfilename_array=[]
PNGdir_path="./PNG_images/*"
EPSdir_path="./EPS_images"
filename=""
for filepath in $PNGdir_path; do
filename=`basename $filepath .png`
convert $filepath eps2:"./EPS_images/$filename.eps"
done
| true |
6a6348196f350e15780ceb21784b7d447c2d7147 | Shell | enjoysoftware/atom-unofficial | /bin/atom-launch | UTF-8 | 286 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Create $XDG_RUNTIME_DIR if it doesn't exist
[ -n "$XDG_RUNTIME_DIR" ] && mkdir -p $XDG_RUNTIME_DIR -m 700
case "$@" in
*bin/apm*)
exec "$@" --executed-from="$(pwd)" --pid=$$
;;
*)
exec "$@" --executed-from="$(pwd)" --pid=$$ > /dev/null 2>&1 &
;;
esac
| true |
802c38e97ecf924f738a5a11c08f53f13ace6098 | Shell | knine79/notifyBuildResult | /completed.sh | UTF-8 | 431 | 3.359375 | 3 | [] | no_license | #!/bin/bash
BASEDIR=$(dirname "$0")
MSG=$1
NOTIFY=$(cat /usr/local/etc/NotifyBuildResult/notify)
START=$(cat /usr/local/etc/NotifyBuildResult/start-time)
END=$(date +%s)
TIME=$(date -r `echo $END - $START | bc` "+%M:%S")
rm /usr/local/etc/NotifyBuildResult/start-time
if [ "$NOTIFY" != "off" ]; then
$BASEDIR/sendMessa... | true |
8e6df3756305a3fc6a5526e7c478cbb8770feb86 | Shell | tlaxson14/BashScripts | /readtest | UTF-8 | 547 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This shell script demonstrates using the bash read command without a loop
echo "Enter in a string, then hit enter:"
read myvar
echo "You entered: $myvar"
echo $myvar > "tempfilename$$"
echo $myvar >> "tempfilename$$"
echo $myvar >> "tempfilename$$"
echo "The temp file contents are:"
cat "tempfilename$$"
... | true |
8083ea934bcc99c45882b175cc9a5edbb25e69c3 | Shell | stephanfriedrich/dockerbunker | /data/services/padlockcloud/service.sh | UTF-8 | 1,876 | 3.296875 | 3 | [
"MIT"
] | permissive |
######
# service specific configuration
# you should setup your service here
######
# overrides service specific docker-variables
safe_to_keep_volumes_when_reconfiguring=1
declare -A WEB_SERVICES
declare -a containers=( "${SERVICE_NAME}-service-dockerbunker" )
declare -a add_to_network=( "${SERVICE_NAME}-service-doc... | true |
86fbc1d128cf41bb4090a8baa78ed13398d441a6 | Shell | delkyd/alfheim_linux-PKGBUILDS | /slingshot/PKGBUILD | UTF-8 | 1,299 | 2.84375 | 3 | [] | no_license | # Maintainer: twa022 <twa022 at gmail dot com>
# Contributor: jsteel <mail at jsteel dot org>
# Contributor: Erdbeerkaese
# Contributor: Arkham <arkham at archlinux dot us>
pkgname=slingshot
pkgver=0.8.1p
pkgrel=7
pkgdesc="A 2D strategy game in the gravity fields of several planets"
arch=('any')
url="http://slingshot.... | true |
02ec27ccb6844da5947e41e506022f2b75c058be | Shell | mhcerri/configs | /home/bin/git-fetch-from-origin | UTF-8 | 293 | 3.25 | 3 | [] | no_license | #!/bin/bash
set -e
branch=$(git rev-parse --abbrev-ref HEAD)
case "$branch" in
*@*)
# Handling special kernel branch...
remote="${branch#*@}"
remote_branch="${branch%%@*}"
;;
*)
remote="origin"
remote_branch="$branch"
;;
esac
echo git fetch "$@" "$remote"
git fetch "$@" "$remote"
| true |
b700e871bbe2c12572a8461c9ac87339b6d1fa40 | Shell | RafaelGPaz/dotfiles | /bin/tours/swfpath_to_currentxml.sh | UTF-8 | 492 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# Description: replace '%SWFPATH%' for '%CURRENTXML%' in any xml file inside any directory named 'scenes'
# Usage: Run inside the directory containing all the tours' folders
for tour in $(find . -maxdepth 3 -type d -name 'scenes' ); do
for xmlfile in $(find $tour -name "*.xml" ); do
echo "Edit... | true |
87779fca860b518e64105c3460dc3c834c24e409 | Shell | cedricwalter/Joomla-on-Synology-NAS | /scripts/postuninst | UTF-8 | 462 | 3.09375 | 3 | [] | no_license | #!/bin/sh
if [ "$SYNOPKG_PKG_STATUS" == "UPGRADE" -o -f "/tmp/Joomla.upgrade" ]; then
exit 0
fi
rm -rf /usr/syno/synoman/webman/3rdparty/Joomla
ServiceTool="/usr/syno/bin/servicetool"
ApacheUserScript="/usr/syno/etc/rc.d/S97apache-user.sh"
if [ -e "$ServiceTool" ]; then
$ServiceTool --restart webservice > /dev/nu... | true |
790c9d6bb6eb5f139f9182fc6ef300fed2b25e9b | Shell | caguerra/Burkardt-Fortran-90 | /f_src/lagrange_interp_nd_test/lagrange_interp_nd_test.sh | UTF-8 | 489 | 2.765625 | 3 | [] | no_license | #! /bin/bash
#
gfortran -c -Wall lagrange_interp_nd_test.f90
if [ $? -ne 0 ]; then
echo "Compile error."
exit
fi
#
gfortran lagrange_interp_nd_test.o $HOME/lib/lagrange_interp_nd.o $HOME/lib/r8lib.o
if [ $? -ne 0 ]; then
echo "Load error."
exit
fi
rm lagrange_interp_nd_test.o
#
mv a.out lagrange_interp_nd_test
... | true |
38baa2f5efa772cbe1c7d7eb5125d556df2c6476 | Shell | wjqgit/web | /test/shell/08-arithmatic_operations_integer_expr.sh | UTF-8 | 253 | 2.796875 | 3 | [] | no_license | #This is script#8
#Arithmetic operations (Integer)
a=13 b=14
echo `expr $a + $b`
echo `expr $a - $b`
echo `expr $a \* $b`
echo `expr $a / $b`
echo `expr $a % $b`
#Precedence
c=7 d=7
echo `expr $a \* $b + $c / $d`
echo `expr $a \* \( $b + $c \) / $d `
| true |
ba908fe86669c50728eea99a180f4b06aafb9b16 | Shell | ryankumar/ryan_git | /shell-programming/1.sh | UTF-8 | 314 | 3.46875 | 3 | [] | no_license | #!/bin/sh
<< COMMENT
for file in *
do
if [ $file == $1 ]
then
echo $file
fi
done
COMMENT
# file search from current directory
# if [ -f add_number.sh ]
if test -f add_number.sh
# if test -d array_file
then
echo "file is exist"
else
echo "file doesn't exist"
fi
| true |
8e51c2b8b48bacd04ec20e2be405c9e81da9f4ee | Shell | Code-Hex/Laputa | /migrate | UTF-8 | 303 | 2.6875 | 3 | [] | no_license | #!/usr/bin/env bash
# migrate for ssl
if [ ! -d "./ssl" ]; then
mkdir -p ./ssl
cd ./ssl
openssl genrsa -out laputa.key 2048
openssl req -new -key laputa.key -sha256 -out laputa.csr
openssl x509 -in laputa.csr -days 36500 -req -signkey laputa.key -sha256 -out laputa.crt
cd ..
fi | true |
a954e103e6ae1fbf4c47da9fe6aed957e882a2ee | Shell | padde/dotfiles | /install.sh | UTF-8 | 1,037 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
DOTFILES=~/.dotfiles
if [ -d $DOTFILES ]; then
echo "$DOTFILES already exists! Aborting."
exit 1
fi
# Fetch dotfiles
git clone https://github.com/padde/dotfiles.git $DOTFILES
cd $DOTFILES
# Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebre... | true |
a1f3ec399b7a9ed52fccece71316a341d8ebb1f5 | Shell | kumarsaurabh20/NGShelper | /SGE/bact_01_create_and_submit_rapsearch_jobs.sh | UTF-8 | 2,746 | 3.296875 | 3 | [] | no_license | #!/bin/bash
clear
work_dir=/home/ISAD/mds207/adela_data
clean_dir=$work_dir/merged/deconseq-merged/clean
rap_dir=$work_dir/rap_clean_02_bact
megan_out=$rap_dir/megan_rma_files
nr_db=$work_dir/2.19_bact_nr_db
NSLOTS=30
#
#
# Make the rapdir if it does not already exist:
mkdir -p $rap_dir
# change into it and... | true |
134bcc0bc2771268d78bac7d4ec2980f2b2ca12d | Shell | micado-scale/ansible-micado | /demos/wordpress/3-generate-traffic.sh | UTF-8 | 785 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
settings_file="./_settings"
. $settings_file
if [ -z "$MICADO_MASTER" ]; then
echo "Please, set MICADO_MASTER in file named \"$settings_file\"!"
exit
fi
if [ -z "$MICADO_WORKER" ]; then
MICADO_WORKER=$MICADO_MASTER
echo "No MICADO_WORKER specified, trying MICADO MASTER - ensure port 30010 is open.... | true |
28d6da8e0a5b38c4dea05ce81cede8a04c20b803 | Shell | liaoyunkun/tinynf | /experiments/perf-lowlevel/measure-stats.sh | UTF-8 | 3,784 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
TINYNF_DIR='../../code'
DPDK_DIR='../baselines/dpdk/measurable-nop'
EXTRACFLAGS=''
LAYER='2'
RESULTS_SUFFIX='/nop'
if [ "$1" = 'write' ]; then
EXTRACFLAGS='-DTN_DEBUG_PERF_DOWRITE'
RESULTS_SUFFIX='/write'
elif [ "$1" = 'lookup' ]; then
EXTRACFLAGS='-DTN_DEBUG_PERF_DOLOOKUP'
RESULTS_SUFFIX='/lookup'
... | true |
e34e0f7d2bbd03c7a3c5aeb681e116ea72eea17c | Shell | jpritt/boiler-experiments | /scripts/qsub/unpaired/simulate.sh | UTF-8 | 477 | 2.609375 | 3 | [] | no_license | #!/bin/bash
sizes=('5' '10' '25' '50' '100')
for i in "${sizes[@]}";
do
mkdir -p /scratch0/langmead-fs1/user/jacob/compress-alignments-test/drosophila/tech_reps/single$i/all_reps
cp simulation$i.par /scratch0/langmead-fs1/user/jacob/compress-alignments-test/drosophila/tech_reps/single$i/all_reps/simulation.pa... | true |
4b18a7c76f814816e2908bc7741252498f98f11e | Shell | ruebroad/scripts_and_stuff | /scripts/ubuntu_setup.sh | UTF-8 | 3,276 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | sudo apt update
# install git
sudo apt install git -y
# Install curl
sudo apt install curl -y
# Install gnome tweaks
sudo apt install gnome-tweaks
# install brave browser
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg ad... | true |
4aa0f107ab442800e072438dbca94e65add672b8 | Shell | aaivu/aaivu-machine-trans-eng-sin | /src/Subword-segmentation/Transformer-subword-regularization/scripts/preprocess-joined-ensi.sh | UTF-8 | 1,828 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SRC=en
TGT=si
VOCABSIZE=5000 # vocabulary size
TRAIN_MINLEN=0
ROOT=$(dirname "$0")
SCRIPTS=$ROOT/scripts
DATA=$ROOT/data
TMP=$DATA/${SRC}_${TGT}_unigram${VOCABSIZE}
DATABIN=$ROOT/data-bin/${SRC}_${TGT}_unigram${VOCABSIZE}
mkdir -p $TMP $DATABIN
SPM_TRAIN=$SCRIPTS/spm_train.py
SPM_ENCODE=$SCRIPTS/spm_... | true |
a8172144ee7de651de0e9f9520e0cdbc8e42ec83 | Shell | hopecaogit/sinatra | /check_ec2_public_dns.sh | UTF-8 | 458 | 3.34375 | 3 | [] | no_license | #!/bin/bash
#first parameter of this script is resource filename
if [ $# -eq 0 ]; then
echo "Please provide resource filename as first parameter"
exit 1
fi
deploy_region="ap-southeast-2"
resr_file=${1}
source ${resr_file}
aws ec2 describe-instances --instance-ids ${inst_id} --region ${deploy_region} \
--... | true |
415b1b47922b79a1dff1d404e46785b760732638 | Shell | agonzalezcollins/Instalaciones | /apps/Robomongo/robomongo.sh | UTF-8 | 875 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Ver ultima version en: https://robomongo.org/download"
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
rm robo3t*.tar.gz
sudo mkdir -p /usr/local/bin/robomongo
sudo mv robo3t-1.2.1-linux-x86_64-3e50a65... | true |
4c29b0614f4d488187c519608f609e28b1ba319b | Shell | ghxwm/tflow | /jalangi/config/likely-types-on-trace1.sh | UTF-8 | 515 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
export PATH=$PATH:/opt/local/bin:/usr/local/bin
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
cd $DIR
echo "" > jalangi/out/out.html
echo "Inferring likely types ..."
export JALANGI_MODE=replay
export JALANGI_ANALYSIS=analyses/likelytype/LikelyTypeInferEngine
node src/js/commands/replay.js... | true |
5c46ea3e91718089e241368ead5a53e430a5a435 | Shell | bmwcarit/joynr | /tests/graceful-shutdown-test/build_all.sh | UTF-8 | 324 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -Eeuxo pipefail
# build joynr backend images
cd ../../docker/ && ./build_backend.sh
cd -
# build the other images
for BUILD_DIR in graceful-shutdown-test-consumer graceful-shutdown-test-provider graceful-shutdown-test-second-level-provider
do
pushd $BUILD_DIR
./build_docker_image.sh
popd
d... | true |
6ab1e535e42fd292df5eb10a8a31c9a1c6308090 | Shell | m-walker/hello-world | /.bash_profile | UTF-8 | 638 | 2.71875 | 3 | [] | no_license | if [ -e code ]; then
cd code
fi
rvm_silence_path_mismatch_check_flag=1
bind "set completion-ignore-case on"
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
function prompt {
local RED="\[\033[0;31m\]"
local CHAR="♥"
local BLUE="\[\e[0;49;34... | true |
cf1289adb1012147cddde93f7a68757a200f8141 | Shell | me1kd/urlwatch_conf | /loop.sh | UTF-8 | 125 | 2.859375 | 3 | [] | no_license | #!/bin/bash
while :
do
now=$(date +"%T")
echo "Current time : $now"
python3 $1 >> ./logs.txt
sleep $2
done
| true |
49c2a36a70ba29ab74e4ce6404b0986210a04a61 | Shell | rhodey/usbreset | /reset-rtl.sh | UTF-8 | 398 | 3.546875 | 4 | [] | no_license | #!/bin/bash
device_count=`lsusb -d 0x0bda:2838 | wc -l`
if [ "$device_count" -eq "0" ]; then
echo "no RTL devices found."
exit 1
fi
device_ids=`lsusb -d 0x0bda:2838 | cut -c5-8,16-18`
while read -r device_id; do
parts=($device_id)
device="/dev/bus/usb/${parts[0]}/${parts[1]}"
docker run \
-... | true |
d2488a163ab0802a671211b2f2c93133e5c95ccd | Shell | tap52384/getgrav-php | /install-php.sh | UTF-8 | 4,496 | 4.125 | 4 | [] | no_license | #!/bin/bash
APACHE_CONF=/usr/local/etc/httpd/httpd.conf
# Checks whether Homebrew is installed or not
function checkBrew {
installed brew
BREW_INSTALLED=$?
}
# Checks whether the specified application is available in the $PATH
function installed() {
# empty case: empty string
if [ -z "$1" ]; then
... | true |
80a630e859a736639bd79f358623c9fb0e13d7ba | Shell | nyclei/eyNotes | /rcl-platform/tariq-scripts/create-marathon-lb-accounts.sh | UTF-8 | 3,703 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#
# SCRIPT: install-marathon-lb.sh
# Check if the DC/OS CLI is in the PATH
CMD_FILE=$(which dcos)
if [ "$CMD_FILE" == "" ]
then
echo
echo " The DC/OS Command Line Interface binary is not installed or not in your path. Please install it."
echo " Exiting."
echo
exit 1
fi
... | true |
8af0e58508d0ff0932b61f254bb260032fd5aa99 | Shell | wiedehopf/adsb-scripts | /throttled.sh | UTF-8 | 1,421 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if ! command -v vcgencmd &>/dev/null
then
echo -------
echo "Command vcgencmd not found, can't check for throttling!"
echo "Exiting."
echo -------
exit 1
fi
#Flag Bits
UNDERVOLTED=0x1
CAPPED=0x2
THROTTLED=0x4
SOFT_TEMPLIMIT=0x8
HAS_UNDERVOLTED=0x10000
HAS_CAPPED=0x20000
HAS_THROTTLED=... | true |
2abd000fbb4b3ed90ff6c4b34c2cb6228d5f70a5 | Shell | optimistiCli/util | /lastfile | UTF-8 | 1,326 | 4.34375 | 4 | [] | no_license | #!/bin/bash
read -r -d '' USAGE << "EOU"
Usage:
lastfile [-h] [-s <number>] [<dir>]
Return the path to the latest file in the given directory, by default the
current directory is used.
Options:
-h
Print this help message and exit
-s <N>
Skip N latest files and return the path to the N+1st latest fi... | true |
d28f1284dd79c559850ff68e9820f5603ae18bf6 | Shell | Mantha32/Teaching-HEIGVD-AMT-2019-Project-CourseApp | /localGlassFishConfig.sh | UTF-8 | 2,179 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Source: https://github.com/payara/Payara-Examples/blob/master/administration-examples/setup-sample-domain.sh
# Payara Variable Initialisation
# DOMAIN_NAME will be the name that you use to reference your domain when
# working with some Payara/Glassfish commands.
DOMAIN_NAME="domain1"
# The PAYARA_HOME ... | true |
ff773f237fb74288a25144f635bcb60385748608 | Shell | TheBrokenRail/android-bin | /build.sh | UTF-8 | 372 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set +e
run() {
local RESET='\033[0m'
local START='\e[33m\e[1m'
local FAIL='\e[31m\e[1m'
local SUCCESS='\e[32m\e[1m'
echo -e "${START}Running $1${RESET}"
$1
if [[ $? != 0 ]]; then
echo -e "${FAIL}$1 Failed${RESET}"
else
echo -e "${SUCCESS}$1 Succeeded${RESET}"
fi
}
run ./build-je... | true |
fae225769c9b6abff635e045a54e29effb780629 | Shell | achmadnabawi/sparkdata | /airflow/wrt/ec/item_and_shop_info/ec_iteminfo_parse.sh | UTF-8 | 465 | 2.609375 | 3 | [] | no_license | #!/bin/bash
source ~/.bashrc
pre_path='/home/wrt/sparkdata'
hadoop fs -test -e /user/wrt/temp/iteminfo_tmp
if [ $? -eq 0 ] ;then
hadoop fs -rmr /user/wrt/temp/iteminfo_tmp
else
echo 'Directory is not exist,you can run you spark job as you want!!!'
fi
spark2-submit --driver-memory 6G --num-executors 20 --executor-... | true |
9edb1c362716f264c8612663a8630c36e7cd85fc | Shell | georgewitteman/dotfiles | /home/exact_dot_scripts/executable_jqq | UTF-8 | 312 | 3.109375 | 3 | [] | no_license | #!/bin/sh
set -o errexit
if test ! -t 0; then
jq --color-output --unbuffered --raw-input --raw-output '. as $raw | try fromjson catch $raw'
else
printf "jq --color-output --unbuffered --raw-input --raw-output '. as \$raw | try fromjson catch \$raw'" | pbcopy
echo "ok: copied jq command to clipboard"
fi
| true |
fb81c45551ff15996503ba6cf0ffc34b06ceef0a | Shell | dellelce/mkit | /modules/postgresql10/hooks/custom_download.sh | UTF-8 | 333 | 3.390625 | 3 | [] | no_license |
# add support for downloading postgresql from custom commit
[ ! -z "$pgcommit" ] &&
{
commit="${pgcommit}"
fname="$PWD/pg10-${commit}.tar.gz"
ghpath="postgres/postgres"
fullurl="https://github.com/${ghpath}/archive/${commit}.tar.gz"
wget -q -O "$fname" "$fullurl"
rc=$?
[ -f "$fname" ] && echo "$fname"
exit $... | true |
663b539e7c5b2c5535d2365220e2abf1a8720dda | Shell | Ichbinjoe/dotfiles | /i3lock-multimonitor | UTF-8 | 2,123 | 3.96875 | 4 | [] | no_license | #!/bin/bash
#Constants
DISPLAY_RE="([0-9]+)x([0-9]+)\\+([0-9]+)\\+([0-9]+)" # Regex to find display dimensions
IMAGE_RE="([0-9]+)x([0-9]+)" # Regex to find image dimensions
FOLDER=`dirname "$BASH_SOURCE"` # Current folder
CACHE_FOLDER="$FOLDER"/img/cache/ # Cache folder
#Image paths
BKG_IMG="$FOLDER/img/background... | true |
c935ba7a9a7a4d583ff46a18db651997c6d4541c | Shell | Argonne-National-Laboratory/Arcond | /scripts/arc_update | UTF-8 | 291 | 2.640625 | 3 | [] | no_license | #!/bin/bash
#>> ArCond update script
# Get newest version of arcond from ASC
# ARC_HOME='/users/condor/Arcond'
# PWD=`pwd`
# cp -f $ARC_HOME/arcond $PWD/
# cp -f $ARC_HOME/basic/* $PWD/basic/
# cp -f $ARC_HOME/admin/* $PWD/admin/
# echo "ArCond was updated in your installation area"
| true |
795a1fca1738c8f3720d76a96720aafdbb72def5 | Shell | plitc/r-vmadm | /rel/pkgng/deploy/usr/local/lib/brand/jail/halted | UTF-8 | 233 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# include shared utility functions
brand_root="$1"
jail_root="$2"
. ${brand_root}/../shared/utils.sh
validate_root "${jail_root}"
# outer jail
umount ${jail_root}/root/dev
# inner jail
umount ${jail_root}/root/jail/dev
| true |
01349c7b086bfa87b0222e58ed1c273b8e5eedf1 | Shell | mba811/cloudrouter-dockerfiles | /contrib/hooks/commit-msg.signoff-verify | UTF-8 | 192 | 3.15625 | 3 | [] | no_license | #!/bin/sh
#
# A commit-msg hook that checks for sign-off
grep '^Signed-off-by: ' "$1" > /dev/null || {
echo >&2 Aborting commit ...
echo >&2 [POLICY] Commits require sign-off.
exit 1
}
| true |
066541616e9e01a2dfa691da9ebfe74b843aaceb | Shell | tangdavid/PRS-sim | /scripts/sim/filter.sh | UTF-8 | 482 | 2.96875 | 3 | [] | no_license | #$ -N job-filter
#$ -cwd
#$ -l h_rt=05:00:00,h_data=16G
#$ -j y
#!/bin/bash
. /u/local/Modules/default/init/modules.sh
module load vcftools
module load bcftools
if [ $# -ne 1 ]
then
echo "Usage: ./filter.sh [population 1]"
exit 1
fi
# input files
hapmatrix='../../data/vcf/full.recode.vcf'
pop=$1
out="../../data/v... | true |
2793fab8e304fb971f4b7c1c0430e6fe3f1b612c | Shell | Silverpeas/silverpeas-native-packages | /rpm/silverpeas.init | UTF-8 | 2,243 | 3.953125 | 4 | [] | no_license | #!/bin/bash
### BEGIN INIT INFO
# Provides: silverpeas
# Required-Start: $local_fs $remote_fs $network $time $named openoffice
# Required-Stop: $local_fs $remote_fs $network $time $named openoffice
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Silverpeas
# Description: ... | true |
697d863ba27a0e79541cd7f2a9cc267cf23fc5a3 | Shell | ReneFroger/dotfiles | /bashrc | UTF-8 | 5,269 | 2.578125 | 3 | [] | no_license | DOTFILES=$HOME/dotfiles
# -----------------------------------------------------------------------------
# Environment
# -----------------------------------------------------------------------------
export EDITOR='vim'
export PIP_DOWNLOAD_CACHE="$HOME/.pip/cache"
alias vim='vim' # Override
# --------------------------... | true |
6593df1a559dfa3e7db07c3653209fe872e645db | Shell | achreto/barrelfish | /lib/acpica/generate/linux/make-patches.sh | UTF-8 | 3,437 | 4.3125 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-dco-1.1",
"MIT"
] | permissive | #!/bin/bash
#
# NAME:
# make-patches.sh - extract a set of linuxized patches from the
# ACPICA git repository
#
# SYNOPSIS:
# make-patches.sh [-r release] [-u] <old_commit> [new_commit]
#
# DESCRIPTION:
# Creates the linuxized patch set from old_commit to new_commit in
... | true |
e0d195eb13781341d8daad45eda79bec44ed546e | Shell | nikolavp/configs | /bin/make-l | UTF-8 | 468 | 2.640625 | 3 | [] | no_license | #!/bin/bash
# vim: set sw=4 sts=4 et foldmethod=indent :
# Same as fab -l but without the documentation see to make your makefiles
# self documenting.
# If this is a self documenting makefile as described indent
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
# use it
# Note that both of these don... | true |
68864aa5773bd0505801576da9bfc04fa41ee612 | Shell | DenisHsieh/opencv_installation_scripts | /opencv_install_ubuntu_1604.sh | UTF-8 | 2,658 | 2.828125 | 3 | [] | no_license | function run () {
sudo apt install -y libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev libhdf5-dev \
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev \
libx264-dev libgtk-3-dev libatlas-base-dev gfortran \
build-essential cmake pkg-config libeigen3-dev libtbb-dev libtbb2 \
ma... | true |
eb2eff6d0b411ac22ae41061d176410009f48dd8 | Shell | epam/fonda | /src/integrationTest/resources/templates/dnaAmpliconVarFastq/testControlSampleNotNAAllTasksXenomeNo/DnaAmpliconVar_Fastq_exomecnv_for_GA5_analysis.txt | UTF-8 | 1,516 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
# --- SGE options --- #
#$ -V
#$ -wd build/resources/integrationTest/output
#$ -N DnaAmpliconVar_Fastq_exomecnv_for_GA5_analysis
#$ -o build/resources/integrationTest/output/log_files/DnaAmpliconVar_Fastq_exomecnv_for_GA5_analysis.log
#$ -e build/resources/integrationTest/output/err_files/DnaAmpliconVa... | true |
b2c27a5bbbb85a0d1398fe10ecc210e856660ce7 | Shell | bollu/coremlir | /nofib/spectral/life/life.test | UTF-8 | 356 | 3.171875 | 3 | [
"Apache-2.0",
"LLVM-exception"
] | permissive | #! /bin/sh
#
$1 | sum > /tmp/sum-real-$$
cat > /tmp/sum-expected-$$ << EOTHING
02845 1350
EOTHING
if cmp -s /tmp/sum-real-$$ /tmp/sum-expected-$$ ; then
/bin/rm /tmp/sum*$$
exit 0
else
echo -n '*** sum I got: ' ; cat /tmp/sum-real-$$
echo -n '*** sum I expected: ' ; cat /tmp/sum-expected-$$
... | true |
b63f7cf6792a10ec0ef6f9298f1b8038c1dd71ac | Shell | paulolobt/env-examples | /Scripts/Shell/example-cli.sh | UTF-8 | 7,113 | 3.796875 | 4 | [] | no_license | #!/bin/sh
#===============================================================================
#
# FILE: app-cli.sh
#
# USAGE: ./app-cli.sh [options] [services]
#
# DESCRIPTION: App environment client to manage services and data containers.
#
# OPTIONS: -h, --help show help
# ... | true |
fafb87c7047f23faf93db38d3780a57931e5375d | Shell | vicentecg/bash | /bash.sh | UTF-8 | 418 | 3.21875 | 3 | [] | no_license | #!/bin/bash
clear
while :
do
echo " Opciones disponibles "
echo "a. Calculadora"
echo "b. Apagar"
echo "c. Reiniciar"
echo "d. Sistema"
echo "e. Salir"
echo -n "Seleccione una opcion [a - e]"
read opcion
case $opcion in
a) echo "Abriendo calculadora:";python calculadora.py;;
b) echo "Apagando:";shutdown -h now;;
c) e... | true |
d35da5b0fea3dababaaf47ada2100aa1d78abd49 | Shell | AbhilashTUofficial/Shell-scripting | /lab/EX2/A/script.sh | UTF-8 | 306 | 2.625 | 3 | [] | no_license | logname
id -un
whoami
sh
echo -e "current shell: $SHELL"
echo $HOME
echo -e "your os type:$OSTYPE"
echo -e "path: $PATH"
echo -e "current directory: pwd"
echo -e "currently logged $nouser user(s)"
echo -e "computer cpu information:"
cat/proc/cpuinfo
echo -e "computer memory information:"
cat/proc/meminfo
| true |
4fe2e381a2198cfcc172dba1f86e0a16dd04a606 | Shell | muad-dweeb/utilites | /scripts/setup_virtualenv.sh | UTF-8 | 411 | 2.59375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# Assumes no pre-existing virtualenv setup
# Install packages
sudo apt-get install python-pip
sudo pip install --upgrade pip
sudo pip install virtualenv virtualenvwrapper
sudo apt install virtualenv
echo "Add the following lines to .bashrc:"
echo 'export WORKON_HOME=$HOME/.virtualenvs'
echo 'export PIP_D... | true |
3e858a177f775e2e4016beec3310d7da740e9392 | Shell | pfafman/meteor-bootstrap-material-design-less | /update.sh | UTF-8 | 1,233 | 3.546875 | 4 | [] | no_license | #!/bin/bash
BOOTSTRAP_GIT_ROOT=$1
BOOTSTRAP_ROOT='lib'
BOOTSTRAP_DIRS="less js fonts"
BOOTSTRAP_JS="transition alert button carousel collapse dropdown modal tooltip popover scrollspy tab affix"
METEOR_PACKAGE_FILE=package.js
# check if the path is given and exists
if [ ! -d $BOOTSTRAP_GIT_ROOT ]
then
echo "You must ... | true |
b4e73f2ebb4027e6e632349f42e4924bb460a566 | Shell | asanza/asanza.github.io | /jekyll-post.sh | UTF-8 | 402 | 3.546875 | 4 | [
"MIT"
] | permissive | if [[ -z $1 ]]; then
echo "A post title is required. Bye.."
exit 1
fi
_post=$(echo $1 | tr ' ' '-')
_date=$(date +'%Y-%m-%d')
_datetime=$(date +'%Y-%m-%d %H:%M:%S')
_title="${_date}-${_post}.md"
_cwd=$(pwd)
_post_file="${_cwd}/_posts/${_title}"
if [[ -f ${_post_file} ]]; then
echo "File already exists. By... | true |
b9b9fb5bf12f797c61afb094ba86bebc008febd7 | Shell | timplab/ncov | /pipeline_scripts/run_nextstrain_clades.sh | UTF-8 | 1,434 | 3.671875 | 4 | [] | no_license | #!/bin/bash
if [ "$(uname -s)" = 'Linux' ]; then
BINDIR=$(dirname "$(readlink -f "$0" || echo "$(echo "$0" | sed -e 's,\\,/,g')")")
else
BINDIR=$(dirname "$(readlink "$0" || echo "$(echo "$0" | sed -e 's,\\,/,g')")")
fi
#Run directory
RUN=$1
if [ $RUN == "test_data" ]; then
DIR="/home/idies/workspace/covi... | true |
76da99f26883e60548572e92d833fbb17c286529 | Shell | shivakarna2991/kkphpcode_with_old_features | /core/CRON Jobs/FindTaskToExecute.sh | UTF-8 | 839 | 3.296875 | 3 | [] | no_license | #!/bin/bash
#
# Bash script for slave servers, checks to see if it should run based on server Instance-Type.
# By definition, slave servers will be of AWS instance type c4.4xlarge - a fast, server for doing the vid processing.
# While the master server will be a lower-end, always on (less-expensive) server like an m... | true |
6edb10cb546da12c4ca1c6dbf45f29f34185e422 | Shell | Arjunkhera/Notes | /tools/commandline/solutions_UnixWorkbench/varthird.sh | UTF-8 | 95 | 2.890625 | 3 | [] | no_license | #! /usr/bin/env bash
num=$#
first=$1
res=$(expr $num \* $first)
echo "The product is : $res"
| true |
38f4fba75952778792ba84517b1ebc90ca695cf5 | Shell | njsmith/download | /installers/rpm-code/codes.sh | UTF-8 | 6,404 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
codes_assert_easy_install() {
local easy=$(find $(pyenv prefix)/lib -name easy-install.pth)
if [[ $easy ]]; then
install_err "$easy: packages used python setup.py install instead of pip:
$(cat "$easy")"
fi
}
codes_bin_dir() {
dirname "$(pyenv which python)"
}
codes_cmake() {
... | true |
4bdce50c57ba19221f48aadf5428c6ef0c992f8a | Shell | Cloudxtreme/archC7 | /installarch.sh | UTF-8 | 7,562 | 3.59375 | 4 | [] | no_license | ## Code modified from
## http://chromeos-cr48.blogspot.com/2013/05/chrubuntu-one-script-to-rule-them-all_31.html
#
#
# Check we're in dev mode.
fw_type="`crossystem mainfw_type`"
if [ ! "$fw_type" = "developer" ]
then
echo -e "\nYou're Chromebook is not running a developer BIOS!"
echo -e "You need to run:... | true |
2220659f175bf8619ff66fb090d3150b49015d14 | Shell | cf-gemfire-org/routing-release | /ci/tasks/create-final-routing-api-cli-release/task | UTF-8 | 768 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -exu
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
root_dir="${PWD}"
OUTPUT_DIR="${root_dir}/${OUTPUT_DIR:?"OUTPUT_DIR must be provided"}"
export RTR_VERSION=$(cat version/version)
pushd "${CF_ROUTING_RELEASE_DIR}/"
export GOPATH=$PWD
export PATH=$GOPATH/bin:$PATH
cli_src_dir="src/co... | true |
11f1abb795261cdc1bda2d388be88845111e823f | Shell | chakralinux/desktop | /groovy/PKGBUILD | UTF-8 | 2,158 | 2.953125 | 3 | [] | no_license | pkgbase=groovy
pkgname=('groovy' 'groovy-docs')
pkgver=2.4.11
pkgrel=1
pkgdesc='Programming language based on Java, inspired by Python, Ruby and Smalltalk'
arch=('any')
url='http://groovy-lang.org/'
license=('APACHE')
makedepends=('gendesk')
source=("http://dl.bintray.com/groovy/maven/apache-$pkgbase-binary-$pkgver.zip... | true |
d1f03c74d2021582eeca735aba3722d717cef9c2 | Shell | strymj/ubuntu_settings | /scripts/display_settings.sh | UTF-8 | 2,789 | 4.3125 | 4 | [] | no_license | #!/bin/bash
echo "##### display_settings.sh #####"
brightness=$(xrandr --verbose | grep -m 1 rightness | awk '{ print $2 }')
brightness_max=1.0
brightness_min=0.1
brightness_step=0.1
brightness_mine=0.5
redshift_on=5000
redshift_off=6500
gamma=$(xrandr --verbose | grep -m 1 amma | awk '{ print $2}')
gamma_defaul... | true |
8c3c4d5ccdae7a99bf3f0bb09c59e80a65ae9260 | Shell | tupyy/dotfiles | /utils/.utils/utils.sh | UTF-8 | 381 | 2.515625 | 3 | [] | no_license | # source fzf functions
[[ -n "$HOME/.utils/fzf_functions.sh" ]] && source "$HOME/.utils/fzf_functions.sh"
# source aws alias
[[ -n "$HOME/.utils/aws_aliases.sh" ]] && source "$HOME/.utils/aws_aliases.sh"
# source kube utils
[[ -n "$HOME/.utils/kube.sh" ]] && source "$HOME/.utils/kube.sh"
[[ -n "$HOME/.utils/change_f... | true |
7c9c3adf66a690a5d0aec4f11dca9e196238d506 | Shell | kalettuce/cse461-22 | /project3/run.sh | UTF-8 | 770 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# Note: Mininet must be run as root. So invoke this shell script
# using sudo.
time=200
bwnet=1.5
# TODO: If you want the RTT to be 20ms what should the delay on each
# link be? Set this value correctly.
delay=5
for qsize in 20 100; do
dir=-q$qsize
# TODO: Run bufferbloat.py here...
python... | true |
0b4ec4dffdded631d0e2581d5712bf27b2254596 | Shell | os1315/DVS-ESA | /open-loop-dataset-tools/shell/view_compound.sh | UTF-8 | 2,446 | 2.671875 | 3 | [] | no_license | #!/bin/sh
NEW_FILE="noisetest_2"
NEW_PATH="frames/${NEW_FILE}"
if [ -d $NEW_PATH ]
then
echo "A folder for $NEW_FILE exists"
else
echo "Creating new directory for $NEW_FILE"
mkdir $NEW_PATH
NEW_PATH="frames/${NEW_FILE}/raw_bright"
NEW_CMD="frames/${NEW_FILE}/raw_bright/${NEW_FILE}_%03d"
mkdir $NEW_PATH
fi... | true |
15fb193324f84c99da8a0eb49e18e39396731c1c | Shell | zgtman/fusion_genes | /parsing_arriba_result.sh | UTF-8 | 340 | 3.015625 | 3 | [] | no_license | #! /bin/bash
rm -f tmp_result.xls
for i in *_fusions.tsv;
do name=${i%_out*}
awk -v name=$name '{OFS="\t"}NR>1{print name,$0}' $i >> tmp_result.xls
done
file=$(ls -1 *_fusions.tsv | awk 'NR==1{print $0}')
head -1 $file | awk '{OFS="\t"}{print "NAME",$0}' | tr -d "#" | cat - tmp_result.xls > final_arriba.xls
rm... | true |
29bd48174f0d0f8ca81591a29f1288e0d1337485 | Shell | Frojd/VersionWatcher | /tools/track.sh | UTF-8 | 3,238 | 3.5 | 4 | [] | no_license | #!/bin/bash
# Usage example: ./track.sh python django
containsElement () {
local e match="$1"
shift
for e; do [[ "$e" == "$match" ]] && return 0; done
return 1
}
CMD=$1
CIRCLE_BRANCH=${CIRCLE_BRANCH:-master}
SERVICE_DOMAIN=${TRACKER_API:=https://n2t2izj4a0.execute-api.eu-west-1.amazonaws.com}
PROJECT=... | true |
2bf5751a09f86e2a40e0f3d677628ee09a5bfb1c | Shell | FauxFaux/debian-control | /g/gtkballs/gtkballs_3.1.5-11+b1_amd64/postinst | UTF-8 | 604 | 3.484375 | 3 | [] | no_license | #! /bin/sh
# postinst script for Gtkballs
set -e
case "$1" in
configure)
# create a high score file
SCOREFILE=/var/games/gtkballs-scores;
if [ ! -f $SCOREFILE ]; then
touch $SCOREFILE;
chgrp games $SCOREFILE;
chmod 0664 $SCOREFILE;
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
... | true |
944d7f5847dfe4df39a5741360cfce8dac55ba3e | Shell | rnoth/kludgewm | /recall | UTF-8 | 237 | 3.4375 | 3 | [] | no_license | #!/bin/sh
TMPDIR=${TMPDIR:-/tmp}
test -z "$1" && { ls -b ${TMPDIR}/marks | \
while read mark; do
printf "%s\t%s\n" ${mark} `cat ${TMPDIR}/marks/${mark}`
done
}
test -n "$1" && { cat ${TMPDIR}/marks/${1}
shift
}
kludge "$@"
| true |
a8fbd0b622593578f5ef43c5e0fa0f8a1a26edb2 | Shell | bborsari/Scripts | /utils/add_header.sh | UTF-8 | 298 | 3.421875 | 3 | [] | no_license | #!/bin/bash
#adds a header to a file; the header is R-type (length of the header = NF-1)
[ $# -ge 1 -a -f "$1" ] && input="$1" || input="-"
awk 'BEGIN{FS=OFS="\t"}{if(NR==1){
for(i=1;i<=(NF-2);i++)
{printf "V"i"\t"};
printf "V"NF-1"\n";
print $0}
else
{print $0}}' $input
| true |
13cd2905890af21340b9e04a4991244b0230389e | Shell | jim-meyer/PrimeChallenge | /ColdVsWarmCacheTest.sh | UTF-8 | 1,319 | 3.453125 | 3 | [] | no_license | #!/bin/bash
set -euxo pipefail
if [[ $# -lt 1 ]]; then
echo "Usage: ${0} <<IP address of prime challenge server>>"
exit 1
fi
PRIME_SERVER="${1}"
jobid=$(curl --request POST "http://${PRIME_SERVER}:8080/Start/1,3")
echo ${jobid}
curl --request GET "http://${PRIME_SERVER}:8080/Query/${jobid}"
STARTTIME=$(date... | true |
983fb62a4b193ff0cb07d6b73f4dd943eb2751bb | Shell | DHTC-Tools/ATLAS | /dCache Utilities/pathfinder.sh | UTF-8 | 375 | 2.8125 | 3 | [] | no_license | #!/usr/local/bin/bash
#$Id: pnfsidof.sh,v 1.2 2009/12/17 21:30:22 sarah Exp $
get_pnfsidof() {
/usr/local/bin/dcache-admin << EOF 2>/dev/null | strings | egrep -v '^\[|dCache Admin|dmg.util.CommandExitException|Connection reset by peer'
cd PnfsManager
pathfinder $1
..
logoff
EOF
}
get_pnfsidof $1
if [ $? != 0 ] ; ... | true |
df42d328c370f48a67733fba8c5b8d56d9c0714b | Shell | sanyuli/cygwin-toy-scripts | /build_ChinaDNS.sh | UTF-8 | 1,325 | 3.421875 | 3 | [] | no_license | #!/bin/sh
Work_Root=$(pwd)
PKG_NAME="ChinaDNS"
DOWNLOAD_URL="https://github.com/shadowsocks/ChinaDNS/releases/download/1.3.2/chinadns-1.3.2.tar.gz"
SRC_FILE="1.3.2.tar.gz"
SRC_FILE_MD5="285957df58a3522ee9d06f09838e2bb8"
DIST_FILES="${Work_Root}/srcs/ChinaDNS_cygport/ChinaDNS-1.3.2-1bl1.i686/inst/usr/bin/chinadns.exe"... | true |
81057d744ee7bb7d7e2cd68511467757a81523fc | Shell | cleverom/bash_scripting_intro_course | /create_script2 | UTF-8 | 2,066 | 4.59375 | 5 | [] | no_license | #!/bin/bash
# Create script
# This script creates new bash scripts, sets their permission and more
# Author: Tega
# The shift command removes the first argument
# All positional parameters shift
# $2 -> $1, $3 -> $2, $4 -> $3 etc.
# $# i.e total number of arguments is reduced by one after every "shift" call
# You can... | true |
f46c45e58de73808659b3de575e747a8f203f503 | Shell | kvnlpz/x86-Assembly-files | /assignment3submission/run.sh | UTF-8 | 1,995 | 3.3125 | 3 | [] | no_license |
#Copyright (C) 2020 Kevin Lopez
#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 2
#of the License, or (at your option) any later version.
#This program is distributed in the hope ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.