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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
45645d7e6edb2098d91da0a29ff2cbd0d730b3d5 | Shell | Appdynamics/api-commandline-tool | /helpers/recursiveSource.sh | UTF-8 | 292 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
recursiveSource() {
if [ -d "$*" ]; then
debug "Sourcing plugins from $*"
for file in $*/* ; do
if [ -f "$file" ] && [ "${file##*.}" == "sh" ] ; then
. "$file"
fi
if [ -d "$file" ] ; then
recursiveSource $file
fi
done
fi
}
| true |
35a31826bd2c3931b3815108c77b2a84e97f4efc | Shell | bowmanmc/tall.tail | /test/access.sh | UTF-8 | 252 | 3.25 | 3 | [] | no_license | #!/bin/bash
SRC=/tmp/nasa.txt
OUT=/tmp/access.log
while :
do
cat $SRC | awk 'BEGIN { srand() } rand() >= 0.5 { print; exit }' >> $OUT
#cat $SRC | sort -R | head -n 1 >> $OUT
t=$((RANDOM % 5))
echo "Slepping for $t"
sleep $t
done
| true |
d908e8f66c55ba22f0c1ab738c0cb1b296c14683 | Shell | moorefu/docker-apisix | /centos/entrypoint.sh | UTF-8 | 1,410 | 3.703125 | 4 | [] | no_license | #!/bin/bash
LUAJIT_DIR=/usr/local/openresty/luajit
ADDONS_DIR=/usr/local/addons
ADDONS_SPEC=addons-master-0.rockspec
INIT_DIR=/docker-entrypoint-init.d
# 先运行init.d 再运行 addons.rockspec
run_file(){
echo "found file $1"
case "$1" in
*.sh) echo "[INIT] $0: running $1"; . "$1" ;;
*) echo "[INIT] $0: ig... | true |
e07525f4f988794044e3715269781b7b8cdcdffe | Shell | jcaamano/kubevirt | /automation/travisci-test.sh | UTF-8 | 1,490 | 3.109375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | #!/bin/bash -e
make generate
if [[ -n "$(git status --porcelain)" ]] ; then
echo "It seems like you need to run 'make generate'. Please run it and commit the changes"
git status --porcelain; false
fi
if diff <(git grep -c '') <(git grep -cI '') | egrep -v -e 'docs/.*\.png|swagger-ui' -e 'vendor/*' -e 'assets... | true |
55d16779851c5272c93afb60c798d49af1a4e341 | Shell | hspark-umn/GoNative4Abed | /CreateFileInfoFile.sh | UTF-8 | 149 | 2.875 | 3 | [] | no_license | cd image
count=0
for IM in `ls -1 $IMAGE_DIR | egrep ".bmp$"`
do
count=$((count+1))
done
cd ..
echo "0 image image / bmp 1 7 $count" > FileInfo.TXT
| true |
1018f194bf16b3750fff774bcfccd57ca3fbfdc4 | Shell | jondong/dotfiles | /bin/set-proxy | UTF-8 | 4,043 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [ -z $PLATFORM ]; then
platformName=$(uname)
PLATFORM=${platformName:0:6}
if [ $PLATFORM = 'CYGWIN' ]; then
PLATFORM='Cygwin'
fi
unset platformName
fi
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
... | true |
42d82febffd2e514b2b8b2c02983c7e081e45a1f | Shell | Jarpos/jarm-c | /build.sh | UTF-8 | 265 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
current_dir=$(pwd)
script_dir=$(dirname $0)
if [ $script_dir = '.' ]; then
script_dir="$current_dir"
fi
cd "${current_dir}"
mkdir -p ./build
touch ./build/.gitkeep
cd "${current_dir}/build"
cmake ../
cmake --build . --config Debug --target all
| true |
0a87b40f99b138c929dd4bfe9a0c9b63b9836032 | Shell | jrubinator/jrubin-cli | /scripts/git/gc | UTF-8 | 208 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# checkout or commit
flag=$1
command="checkout"
if [ $flag ]; then
if [[ $flag =~ ^- && $flag != '-b' ]]; then
command="commit"
fi
else
command="commit"
fi
git $command "$@"
| true |
23cafe21fe0d127f187d3b0465658744c8237886 | Shell | kyma-project/test-infra | /prow/images/cleaner/cleaner.sh | UTF-8 | 781 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
set -o pipefail
if [ -z "$CLOUDSDK_CORE_PROJECT" ]; then
echo "Environment variable CLOUDSDK_CORE_PROJECT is empty"
exit 1
fi
if [ -z "$GOOGLE_APPLICATION_CREDENTIALS" ]; then
echo "Environment variable GOOGLE_APPLICATION_CREDENTIALS is empty"
exit 1
fi
echo "Authenticating... | true |
330327ac5ae7c020e94ff620067ed2244c44b3e8 | Shell | m-natsume/equlipse | /openstack-install/sh/05.add-ctrl-tolxd.sh | UTF-8 | 271 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#!/bin/bash
sed -i "s/^TAG=.*/TAG=$2/g" inventory.sh
TARGETS=$(./inventory.sh --list|jq .sys.hosts[] -r)
MACHINES=$2
APPLIST=$1
for i in $(echo ${MACHINES})
do
echo "=== $i ==="
read
cat ${APPLIST}| xargs -I% -t juju add-unit % --to lxd:${i}
done
| true |
dd766734f313ecd14e722a163650674931f6bb00 | Shell | zhaowenjun333/workspace | /linux/software/crontab/elastic_imp.sh | UTF-8 | 11,783 | 3.359375 | 3 | [] | no_license | #!/bin/sh
#说明
#1、修改说明:连接配置和jdk路径
#2、执行说明:elastic_imp.sh user 10000 user为索引名称,10000为每次循环导入数量
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bin=${DIR}/../bin
lib=${DIR}/../lib
#jdbc连接参数
jdbc_url="jdbc:postgresql://10.163.15.131:5432/wwxiu"
jdbc_user="postgres"
jdbc_pass="pk2014"
#elas参数
elas_cluster="wawa... | true |
fb13c0a73443126b23e562b764e5922c8c758221 | Shell | rafaferri44/ScriptsShell-Python | /gitclone.sh | UTF-8 | 803 | 3.8125 | 4 | [] | no_license | #!/bin/bash
function carpeta {
declare -a archivo=(`ssh gestiweb@('IP') ls -l /git/web/facturascripts/ | grep ^d | rev | cut -d' ' -f1 | rev`)
list=`echo ${#archivo[@]}`
count=0;
while [ $count != $list ];do
echo -n $count-
echo ${archivo[$count]} | cut -d"/" -f 6
let count=$count+1
done
organizar
}
func... | true |
0e78a235d23d89e318f9787a0f39695480ab5416 | Shell | fishd72/Dotfiles | /.zshrc | UTF-8 | 3,646 | 3.375 | 3 | [] | no_license | #
# .zshrc
#
# @author Jeff Geerling
#
# Colors.
unset LSCOLORS
export CLICOLOR=1
export CLICOLOR_FORCE=1
# Don't require escaping globbing characters in zsh.
unsetopt nomatch
# Enable plugins.
plugins=(git brew history history-substring-search)
# Custom $PATH with extra locations.
export PATH="/Users/fishd/.pyenv/... | true |
c48f9d364ca8f9d64765fdc6a944b67a178ffa91 | Shell | jumpinjackie/mapguide-fdo-docker-build | /mg_checkout.sh | UTF-8 | 210 | 2.5625 | 3 | [] | no_license | #!/bin/bash
svn cleanup mapguide
svn update mapguide
while [ $? -ne 0 ]
do
echo "SVN update interrupted. Retrying after 5s"
sleep 5s
svn cleanup mapguide
svn update mapguide
done
echo "SVN update complete"
| true |
d804ca701fd09d0c5f63b769da0c38ea7b9a47c8 | Shell | slalomsv/simple-app | /ci/deploy.sh | UTF-8 | 707 | 3.671875 | 4 | [] | no_license | #!/bin/bash
source ./ci/helpers.sh
PACKAGE_NAME="simple-app.tar.bz2"
PUBLIC_IP=$(getval ci_vars PUBLIC_IP)
echo ">>> Building deploy package $PACKAGE_NAME"
tar -cjf "../$PACKAGE_NAME" * --exclude=id_rsa
if [ $? != 0 ]; then
echo "Build package failed. Exiting"
exit 1
fi
echo ">>> Transfering package to EC2 ins... | true |
4209aa99f19384bf83fb8671ae47676f01b8bfb8 | Shell | Alsan/turing-chunk07 | /build/stratos2/openstack/client/allocate_floating_ips.sh | UTF-8 | 154 | 2.703125 | 3 | [] | no_license | #!/bin/bash
source ./demorc
num_ips=$1
if [ -z $num_ips ]; then
num_ips=1
fi
for I in `seq 1 $num_ips`; do nova floating-ip-create; sleep 10; done
| true |
7867a82284fe60e720a3673df3aa1393f80f8d8b | Shell | ZwodahS/dotfiles | /bin/decrypt.sh | UTF-8 | 349 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
if [ "$1" == '' ]; then
echo 'decrypt <file_in> <algorithm[des3|aes] $others'
exit 1
fi
FILE=$1
ALGO=aes
if [ "$2" == 'aes' -o "$2" == 'des' ]; then
ALGO=$2
fi
shift
shift
if [ "$ALGO" == 'aes' ]; then
ALGO='aes-256-cbc'
elif [ "$ALGO" == 'des' ]; then
ALGO='des3'
fi
openssl $A... | true |
2df6a51c820d64848d3e5e9557ba089ce6befac7 | Shell | Legun/Nautilus-Scripts | /Scripts/Archiving/Ubuntu-One-Encrypt-Decrypt.sh | UTF-8 | 6,004 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Ubuntu One Encryption for Files and Directories.
# Script by Michael B Stevens, Oct. 2011, Version 1.
# Replace named numbers with digits,stevensfourthousand AT earthlink.net
# Please send suggested improvements.
# Suggested SCRIPTNAME: "U1_encrypt_decrypt_v1.sh"
# Loosely based on a script by Adam Buc... | true |
1e54ecc7e463db1b3e04ee90ac40b7956685741e | Shell | giordanorn/dotfiles | /.zshrc | UTF-8 | 633 | 2.5625 | 3 | [] | no_license | #!/bin/zsh
autoload -Uz compinit promptinit
compinit
promptinit
# This will set the default prompt to the walters theme
prompt suse
# Enables auto completion
zstyle ':completion:*' menu select
# Auto copmlete custom aliases
setopt COMPLETE_ALIASES
# Auto complete sudo commands
zstyle ':completion::complete:*' gain... | true |
48f28773fc34bd6192f38dbb68d0c8681fc99576 | Shell | netarch/DRing | /src/emp/datacentre/runTestsTree_par.sh | UTF-8 | 2,132 | 3.59375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
##Use it to run only with one traffic matrix
TOPO=$1
NPORTS=$2
NSVRS=$3
SUBFLOWS=$4
PATHS=$5
OVERSUBSCRIPTION=$6
TMatrix=$7
MAKE=$8
PARAM=$9
PARAMO=${10}
SEED=${11}
SUFFIX=${12}
NINST=3
SUFFIX2=`echo ${PARAM}| sed -e 's/\//$/g'`
tempResultFile=tempresult_$1_$2_$3_$4_$5_$6_$7_${SUFFIX2}_$9_${10}_${11}_$... | true |
3f7882b78d128f45c5d36de2d488fd56b8f4c2a3 | Shell | gpaOliveira/NewPythonApp | /bootstrap.sh | UTF-8 | 852 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# upgrade all
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get -y upgrade
# install basic python dependencies - https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-ubuntu-16-04
sudo apt-get install ... | true |
256ffe62afb321f792fdbccc436081c03eddebd0 | Shell | fooldoc/lanmp | /function/mysql.sh | UTF-8 | 11,620 | 3.15625 | 3 | [] | no_license | #!/bin/sh
Install_Boost()
{
if check_sys packageManager apt;then
#apt-get update
apt-get install -y python-dev
elif check_sys packageManager yum; then
yum -y install python-devel
fi
tar -jxvf $package_dir/$boost_pag -C $install_dir/
}
MySQL_Opt()
{
if [[ ${MemTotal} -gt 1024 &... | true |
e587414e6e4b6e1ae6e8ea2931c106c6227eed20 | Shell | jcnmedeiros/Syncovery-Dlink-Nas | /init.sh | UTF-8 | 286 | 3.265625 | 3 | [] | no_license | #!/bin/sh
# Init, run on NAS boot process
DEBUG=0
if [ -e /tmp/apkg_debug ] ; then
DEBUG=1
fi
if [ $DEBUG == 1 ] ; then
echo "APKG_DEBUG: $0 $@" > /dev/console
fi
path_des=$1
# link for images
[ ! -d /var/www/Syncovery ] && ln -sf ${path_des}/web /var/www/Syncovery
| true |
25fb1ed05b4a83c26700fd526055bea17ec58b98 | Shell | hanka/window_move | /move_to_display | UTF-8 | 606 | 3.203125 | 3 | [] | no_license | #!/bin/bash
unset x y
eval $(xwininfo -id $(xdotool getactivewindow) |
sed -n -e "s/^ \+Absolute upper-left X: \+\([0-9]\+\).*/x=\1/p" \
-e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" )
direction=$1
display_height=1080
top_margin=52
if [ $direction == "up" ]; then
y_pos=$(($y - $display_height - $... | true |
ebf99a0451f4242f9d4f8988cd042554dc3c2699 | Shell | Ramjivan/copier | /Pi Copier Project Files OLD/New/copy-old.sh | UTF-8 | 533 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#get all flesh drives in an array
media="/media/pi"
echo $(ls $media > drives.txt)
a=0
drives="/home/pi/drives.txt"
while IFS= read -r line
do
temp="$media"
temp+="/"
temp+="$line"
usb[$a]=$temp
echo ${usb[$a]}
let a+=1
done <"$drives"
#tLen=${#usb[@]}
for d in ${usb[... | true |
b45b80c3a3b1525d2a73ff99dcb410236be4760a | Shell | mntyfrsh/navcoin-core | /preinstall-pak | UTF-8 | 1,350 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
SERVICE_NAME=navcoin
ARCH=`dpkg --print-architecture`
# if odroid user does not exist then create
set +e
id -u odroid > /dev/null 2>&1
USER_EXISTS=$?
set -e
if [ ! $USER_EXISTS -eq 0 ]; then
# add odroid user without password for non-ARM arch
if [ $ARCH = "amd64" ] || [ $ARCH = "i386" ]; t... | true |
7df249d2889ee8d970f6733ef4b4678cc4220d8d | Shell | errordeveloper/cilium | /test/provision/compile.sh | UTF-8 | 6,227 | 3.5 | 4 | [
"GPL-1.0-or-later",
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
export CILIUM_DS_TAG="k8s-app=cilium"
export KUBE_SYSTEM_NAMESPACE="kube-system"
export KUBECTL="/usr/bin/kubectl"
export PROVISIONSRC="/tmp/provision"
export GOPATH="/home/vagrant/go"
export REGISTRY="k8s1:5000"
export DOCKER_REGISTRY="docker.io"
export CILIUM_TAG="cilium/cilium-dev"
export CILIUM_... | true |
4f604440f8dd79e7244e560f5d3cd1b05bb56b95 | Shell | pigetnet/bootstrap | /piget/install | UTF-8 | 703 | 3.5625 | 4 | [] | no_license | #!/bin/bash
echo " -------------------- PIGET INSTALL --------------------- "
echo " "
if [ $(id -u) -ne 0 ]; then
echo "ERROR : Script must be run as root."
echo "ACTION : sudo /boot/bootstrap/piget "
exit 1
fi
echo "--> Checking if your Raspberry Pi is connected to the internet"
ping -c1 www.google.com && inter... | true |
b165a9a898f98afe779a4c16340a9d8fdd1145d6 | Shell | SQLAdm/azure | /compute/vm/cli/linuxVM.sh | UTF-8 | 775 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
vnName="vm1"
resourceGroup=""
cat <<EOF > cloud-init.txt
#cloud-config
package_upgrade: true
packages:
- stress
runcmd:
- sudo stress --cpu 1
EOF
az vm create \
--resource-group $resourceGroup \
--name $vnName \
--image UbuntuLTS \
--custom-data cloud-init.txt \
--generate-ssh-keys
V... | true |
181502b8ea7dd3a483fc83f7532d8a1c07a58aab | Shell | Draka46/A1 | /test.sh | UTF-8 | 756 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
# Exit immediately if any command below fails.
set -e
make
echo "Generating a test_files directory.."
mkdir -p test_files
rm -f test_files/*
echo "Generating test files.."
printf "Hello, World!\n" > test_files/ascii.input
printf "Hello, World!" > test_files/ascii2.input
printf "Hello,\x00World... | true |
7616f7facab5526da97cd340b719998a128f5c28 | Shell | shyjupv/caliper | /test_cases_cfg/common/unzip/unzip_build.sh | UTF-8 | 619 | 3.015625 | 3 | [] | no_license | #!/bin/bash
url='www.estuarydev.org/caliper'
#url='http://7xjz0v.com1.z0.glb.clouddn.com/caliper_tools'
filename='kernel-dev.tar.gz'
build_compile() {
set -e
set -x
Path=$BENCH_PATH"312.unzip"
myOBJPATH=${INSTALL_DIR}/scripts
if [ ! -d $myOBJPATH ]; then
mkdir -p $myOBJPATH
fi
downl... | true |
132b027dd1da039d04f396b785d3901f20f803c1 | Shell | joshgav/azure-scripts | /acs/mesos/mesos-build.sh | UTF-8 | 539 | 2.53125 | 3 | [
"MIT"
] | permissive | # Bootstrap Mesos from source
sudo apt-get update && apt-get upgrade -y
sudo apt-get install -y git
sudo apt-get install -y openjdk-7-jdk
sudo apt-get install -y autoconf libtool build-essential
sudo apt-get install -y python-dev python-boto libcurl4-nss-dev libsasl2-dev maven libapr1-dev libsvn-dev
MESOS_ROOT_DIR=~/m... | true |
933927e371c085b1d0f9fbc3914dd041e20493d9 | Shell | AlexxandreFS/Batocera.PLUS | /plus/opt/Rpcs3/killrpcs3 | UTF-8 | 393 | 3.109375 | 3 | [] | no_license | #!/bin/sh
##
## Batocera.PLUS
## Encerra a execução do emulador rpcs3.
##
## Código escrito por: Sérgio de Carvalho Júnior
##
################################################################################
RPCS3_PID="$(pidof -s rpcs3)"
kill -15 ${RPCS3_PID}
sleep 0.2
if [ -z "${RPCS3_PID}" ]; then
echo 'RPCS3 ... | true |
21de7ece2a194907a566449b71478b245b1ddbd9 | Shell | TerabyteQbt/meta | /bin/qbt | UTF-8 | 6,186 | 3.515625 | 4 | [
"Unlicense",
"LicenseRef-scancode-unknown"
] | permissive | #!/usr/bin/env bash
set -e
# USAGE: use in place or copy this script somewhere where it will be on your path.
# modify the INSTALL_PREFIX if desired. QBT stores caches in ~/.qbt, so that should work for most people.
#
# QBT DEPENDENCIES: python, jdk8, git
# SCRIPT DEPENDENCIES: download requires curl and openssl
#
#... | true |
a4f6acf0799df8d621b469ecb8e88ea928ce6949 | Shell | vtasio/djengu | /.djengu/.production_toolbox/caddy/vagrant_caddy.sh | UTF-8 | 851 | 3.0625 | 3 | [] | no_license | #!/bin/bash
set -e
GREEN='\033[0;32m'
echo -e "\n${GREEN}Configuring vagrant. This may take a few minutes...${NC}\n"
vagrant up
export HOST=`hostname -I | grep -oP "192+[.]\d+[.]\d+[.]\d+"`
export API_DOMAIN=`grep -P "API_URL" env/.env.prod | sed -e "s/^API_URL=https:\/\///"`
export ORIGIN_DOMAIN=`grep -P "ORIGIN_URL... | true |
10ad1e37884b47b87e148b08766430da1e7df636 | Shell | gouthi2106/shell | /shells/average.sh~ | UTF-8 | 237 | 3.0625 | 3 | [] | no_license | #!/bin/sh
echo " please enter the first number"
read a
echo " please enter second number"
read b
echo " please enter third number"
read c
z=`expr $a + $b + $c`
average=`expr $z / 3`
echo " the average of the given numbers is: $average"
| true |
c037ca0d4c5d4c0fe425d14a2966b0f6ca08fae3 | Shell | jesuslerma/scripting | /dia1/simpleif.sh | UTF-8 | 288 | 3.375 | 3 | [] | no_license | #!/bin/bash
username=$(id -un)
if [[ $username = "hyde" ]]
then
echo "El usuario por defecto es hyde"
fi
distro=$(lsb_release --id)
echo $distro
if [[ $distro != 'Distributor ID: Centos' ]]
then
echo "No tienes centos instalado"
fi
if [[ 1 -eq 1 ]]
then
echo "Uno es igual a uno"
fi
| true |
102c0315014b91aabc75ea49f1f001a79cb17801 | Shell | DanielEnglisch/EV3Scripts | /scripts/ev3web.sh | UTF-8 | 467 | 2.921875 | 3 | [] | no_license |
#!/bin/bash
echo "=== EV3 Web-upload Script v.1.5 by Xer0, peerfunk ==="
echo "=== Compressing... ==="
cd ../web
tar -czvf upload_web.tar *
echo "=== Compress done ==="
#uploading files
echo "Copying files..."
sshpass -p 'Cisco0' scp ../web/upload_web.tar root@$1:/var/www/html/
sshpass -p 'Cisco0' ssh root@$1... | true |
ae2337be81541b1ebe7e14d855023b7eeea7b3d4 | Shell | isis-project/isis-project | /scripts/build_BrowserAdapter.sh | UTF-8 | 296 | 3.046875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/bash
. ./common/envsetup.sh
. ./common/makesetup.sh
export STAGING_DIR=$LUNA_STAGING
export QT_INSTALL_PREFIX=`$QMAKE -query QT_INSTALL_PREFIX`
if [ ! -z "$PACKAGE" ]; then
build_target $ISIS_ROOT $1 $2 Ubuntu stage $PACKAGE
else
build_target $ISIS_ROOT $1 $2 Ubuntu stage
fi
| true |
491f09302e820f25fc61d6a1004e2d177cd729a9 | Shell | Krushon/Zabbix_templates | /Asterisk/Asterisk IAX/asterisk.trunk-with-name.sh | UTF-8 | 724 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# Получаем количество всех транков в системе
total=`sudo asterisk -rx 'iax2 show peers' | sed -n '/iax2/p' | awk '{print $1}'`
# Получаем число активных транков
active=`sudo asterisk -rx 'iax2 show peers' | sed -n '/OK/p' | wc -l`
# Получаем имена транков с проблемам
offline=`sudo asterisk -rx 'iax2 sho... | true |
d9e701911d046a5769fac26fead08454d3bb6c23 | Shell | dnfcallan/THE-2020-PERSONALIZED-VOICE-TRIGGER-CHALLENGE-BASELINE-SYSTEM | /src/prepare_testset_data.sh | UTF-8 | 453 | 2.671875 | 3 | [] | no_license | #!/bin/bash
test_set=$1
dest_dir=$2
mkdir -p $dest_dir
awk '{printf("%s\n%s\n%s\n",$1,$2,$3)}' $test_set/trials_competitor | sort -u | awk '{printf("%s %s/wav_data/%s\n",$1,test_set,$1)}' test_set=$test_set > $dest_dir/wav_for_sv.scp
awk '{printf("%s\n",$4)}' $test_set/trials_competitor | sort -u | awk '{printf("... | true |
efb3c802fd528274ae50044531f1a1635246da50 | Shell | omohammed95/Upgrade | /modifPpa.sh | UTF-8 | 283 | 2.953125 | 3 | [] | no_license | #!/bin/bash
function DISABLE_PPAs {
#this function will add the # character in lines that begin with deb.
for i in docker-ce.list slack-desktop.list user.list
do
sed -i -E 's/^/#/' /etc/apt/sources.list.d/$i
echo "files has been modified successfully"
done
}
| true |
c018ac9dd69fed04658230bfc4f7cfa3544fd080 | Shell | CPSECapstone/LilBobbyTables-MyCRT | /scripts/clean_package_locks.sh | UTF-8 | 464 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
START_DIR="$(pwd)"
REPOSITORY_ROOT_DIR=`git rev-parse --show-toplevel 2>/dev/null`
if [ -z "$REPOSITORY_ROOT_DIR" ]; then
echo "Cannot determine LilBobbyTables-MyCRT root directory. Please run this script from within the repository."
exit 1
fi
cd $REPOSITORY_ROOT_DIR
echo "Removing all packa... | true |
3566d4dbba1d359e1d50d9d94dc926ba4069da6b | Shell | kajka/automatyzacja-macos | /04--install-homebrew.sh | UTF-8 | 260 | 3 | 3 | [] | no_license | if check $(which brew); then
echo 'Homebrew already installed!'
else
echo 'Installing Homebrew...'
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update & brew upgrade
echo 'Installation succeeded!'
fi
| true |
7e44fa6e3e014d5db8de0f648f5828ce4896491c | Shell | xsteadfastx/massdevextractor | /.test.sh | UTF-8 | 388 | 2.703125 | 3 | [] | no_license | #!/bin/sh
set -euo pipefail
for toxenv in py37 flake8 pylint mypy
do
sudo docker run \
--rm -t \
-v "$PWD"/massdevextractor:/data \
-w /data \
-e TOX_WORK_DIR=/tmp \
xsteadfastx/tox-python:full \
/bin/sh -c " sudo a... | true |
4ba78f6fce0751a2bec9bd9f0bf67fba1222a7ea | Shell | aarcro/dotfiles | /home/.vagrant.d/scripts/provision | UTF-8 | 571 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Personal provision script"
if [ -f /usr/bin/apt-get ]; then
apt-get update # Maybe bad things in the package index
apt-get -y install ack-grep git vim screen
fi
if [ -f /usr/bin/yum ]; then
yum install -y git-core screen vim
fi
# Do homeshick bootstrap
if [ ! -d /home/vagrant/.h... | true |
1b7ac0096014ce05f0be72711e3c4396729bfa31 | Shell | ODEX-TOS/packages | /babl/repos/extra-x86_64/PKGBUILD | UTF-8 | 736 | 2.65625 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer: Daniel Isenmann <daniel@archlinux.org>
pkgname=babl
pkgver=0.1.82
pkgrel=1
pkgdesc="Dynamic, any to any, pixel format conversion library"
arch=(x86_64)
url="https://gegl.org/babl/"
license=(LGPL3)
depends=(glibc lcms2)
makedepends=(git meson gobject-introspection vala)
_commit='aab30293930236fab173a879f2... | true |
1ef4f44f176caacd919fb87ed25690209bda036a | Shell | VladRyvkin/LPI-OS | /theminst.sh | UTF-8 | 3,538 | 2.65625 | 3 | [] | no_license | #!/bin/bash
sleep 0.3s;
echo ""
sleep 0.3s;
echo "file: theminst.sh"
echo ""
sleep 0.3s;
echo "In this file we have themes for XFCE"
sleep 0.3s;
echo ""
sleep 0.3s;
while true; do
read -p "Do you wish to copy themes?" yn
case $yn in
[Yy]* ) sleep 0.3s; echo ""; echo "Starting theminst.sh";
sleep 0.3... | true |
ef7c65cb2e16439f8df026caceb67d020f9c060b | Shell | hypermine-bc/hs-authenticator | /clean-build-install.sh | UTF-8 | 2,387 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
## reference https://stackoverflow.com/a/28938235/1851064
GREEN='\033[0;32m'
RED='\033[0;31m'
BLUE='\033[0;34m'
BLUE_BG='\033[44m'
NC='\033[0m' # No Color
if [ "$KCBASE" == "" ]; then
echo "Environment variable KCBASE is not. Set it to proceed."
exit
fi
echo "${BLUE}Keycloak homepath is : ${KC... | true |
b5fa6bc4b8a00faef10aef01087bbd8f7daa0d2e | Shell | ODEX-TOS/packages | /dkms/repos/extra-any/hook.sh | UTF-8 | 6,939 | 3.78125 | 4 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | #!/bin/bash
#
# Copyright © 2018-2020, Sébastien Luttringer
#
# 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 ... | true |
03e403494cbcfe16d7b3314d9f0793b2ba28cb59 | Shell | bjornreppen/Zwave2Mqtt-docker | /bin/build.sh | UTF-8 | 4,082 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# Run this to build, tag and create fat-manifest for your images
# Inspired to: https://lobradov.github.io/Building-docker-multiarch-images/
# Register quemu headers
sudo docker run --rm --privileged multiarch/qemu-user-static:register
Z2M_GIT_SHA1=d084fdf4eeb8287840b28d91e5714f7e537d166b
OPENZWAV... | true |
fab0d868e47afd4bb5270ee4cef78e64a7c7f3ef | Shell | 7thsense/elasticsearch-ecs | /docker-entrypoint.sh | UTF-8 | 1,203 | 3.53125 | 4 | [] | no_license | #!/bin/bash
set -e
# Add elasticsearch as command if needed
if [ "${1:0:1}" = '-' ]; then
set -- elasticsearch "$@"
fi
export ES_JAVA_OPTS=-Djava.net.preferIPv4Stack=true
# ECS will report the docker interface without help, so we override that with host's private ip
if [ -f /sys/hypervisor/uuid ] && [ `head... | true |
7d25e2948bff227bf4472022ffeb721766aad14b | Shell | escenic/ece-scripts | /usr/share/escenic/ece-scripts/ece.d/flush.sh | UTF-8 | 374 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | function flush_caches() {
if [ "${type}" != "engine" ]; then
print "You cannot flush the caches of a ${type} instance"
return
fi
print "Flushing all of ${instance}'s caches on $HOSTNAME"
local url=$(get_escenic_admin_url)/do/publication/clearallcaches
run wget $wget_opts $wget_appserver_auth \
... | true |
b0a73d9e062a2e0d276e2ff2984a1ec87e94edf8 | Shell | leanfrancucci/CIM-ARM | /install/rw/bin/run_tariff | UTF-8 | 1,522 | 3.015625 | 3 | [] | no_license | #!/bin/sh
PROVIDER=$1
CONFDIR=/rw/etc/peers/default
BINDIR=/rw/bin
CONF=$CONFDIR/telesup.conf
if test ! -e $CONF; then
echo "Falta $CONF"
exit;
fi
INTENTOS=`cat $CONFDIR/account.conf | grep -i "^attempts" | sed 's/attempts: */'/`
TIMEINTENTOS=`cat $CONFDIR/account.conf | grep -i time_between_attempts | sed 's/tim... | true |
1d6f9da997baf061e4d3398599d768bb69d9884b | Shell | thuna-garry/backupGT_server | /bin/findUnusedPort.sh | UTF-8 | 635 | 3.953125 | 4 | [] | no_license | #!/bin/bash
###########################################################
# find the first unused port in a range of ports
# considers all ip addresses on localhost
# defaults to range of 30000, 31000
###########################################################
portBeg=${1-30000}
portEnd=${2-31000}
mapfile -t arr ... | true |
43d328d0ec49d2f8f5445831716f37a3c665a4bf | Shell | shri314/bash-scripts | /settings/Scripts/datediff | UTF-8 | 131 | 2.796875 | 3 | [] | no_license | #!/bin/bash
RHS=$1; shift;
LHS=$1; shift;
FMT=${1-"+%F %T"}; shift;
TZ=UTC date -d "$LHS $(date -d "$RHS" "+%s") sec ago" "$FMT"
| true |
7772161688ddcb8718bc6e7199f421b9eb657d60 | Shell | jgmize/socorro | /scripts/crons/cron_libraries.sh | UTF-8 | 5,878 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# techo is echo, but with a timestamp
function techo(){
STAMP="[`date -u +'%F %T'`]"
echo "$STAMP $1"
}
... | true |
209475276c41ed317f52625b3c3b398b3eea9e85 | Shell | pry0cc/axiom | /interact/axiom-playbook | UTF-8 | 3,683 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
AXIOM_PATH="$HOME/.axiom"
source "$AXIOM_PATH/interact/includes/vars.sh"
source "$AXIOM_PATH/interact/includes/functions.sh"
playbooks="$AXIOM_PATH/playbooks"
echo -e -n "${BWhite}"
echo "ICAgICAgICAgICAgICBfICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfXyAgICAgICAgICAgIF9fICAgICAgICAgICAgICAgIF9fCiAgX19fXyBfX... | true |
f9c7b4affb4284344d80babe819984ed98128b55 | Shell | melange-app/melange | /mobile/android/run.sh | UTF-8 | 512 | 2.6875 | 3 | [
"MIT"
] | permissive | set -e
if [ ! -f run.sh ] ; then
echo 'can only be run from getmelange.com/mobile/android'
exit 1
fi
if [ -f assets/client/ ] ; then
rm -rf assets/client/
fi
cp -r ../../client assets/
lessc --clean-css assets/client/css/melange.less > assets/client/css/melange.css
rm assets/client/css/*.less
if [ -f a... | true |
29cbf1a26eab3428c94500d888af4aea2ede8049 | Shell | ivis-mizuguchi/ocs-templates | /OpenHPC-v1/docker/image/bc/common/etc/vcp/rc.d/20-serf.sh | UTF-8 | 444 | 2.8125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -e
if [ -z "${MY_HOST_IF}" ]; then
cat > /etc/sysconfig/serf <<EOF
SERF_NODE_ID=${SERF_NODE_ID}
VCCC_ID=${VCCC_ID}
VCCCTR_IPADDR=${VCCCTR_IPADDR}
PRIVATE_IP=${PRIVATE_IP}
EOF
else
cat > /etc/sysconfig/serf <<EOF
SERF_NODE_ID=${SERF_NODE_ID}
MY_HOST_IF=${MY_HOST_IF}
VCCC_ID=${VCCC_ID}
VCCCTR_IPADDR=$... | true |
78583dcdea2ddba9e88f154427f9956caf6e63c4 | Shell | nonflammable/MyScripts | /ds18b20_domoticz.sh | UTF-8 | 571 | 2.828125 | 3 | [] | no_license | #!/bin/bash
IPDOMOTICZ='localhost'
PORTDOMOTICZ=8080
DS18B20="28-80000003f7a7"
IDX=4
WAIT=10
URL="http://$IPDOMOTICZ:$PORTDOMOTICZ/json.htm?type=command¶m=udevice&idx=$IDX&nvalue=0&svalue="
DIRECTORY="/tmp/$(date +'%s')/$DS18B20"
mkdir -p $DIRECTORY
cd $DIRECTORY
while (sleep $WAIT); do
cp "/sys/bus/w1/devices... | true |
43137ac68f8d55332c21bebe0da9975b25041ae6 | Shell | NBoetkjaer/ROBINsect | /raspPi/raspiMake.sh | UTF-8 | 750 | 2.859375 | 3 | [] | no_license | #!/bin/sh
ROBINhost=raspi
RELATIVEDIR="src/test/"
BASEDIR="\$HOME/$RELATIVEDIR"
# Stop robinsect program/service.
ssh pi@$ROBINhost "sudo systemctl stop robinsect"
# Make directory and transfer source files.
ssh pi@$ROBINhost "mkdir -p $BASEDIR"
ssh pi@$ROBINhost "cd $BASEDIR; rm -r src/"
ssh pi@$ROBINhost "cd $BASE... | true |
83f6b5fb718ebf8b6dcb9a8e61a0ec2fcddc0982 | Shell | Rubenmartinezlozann/act6b | /act6bej2.sh | UTF-8 | 309 | 3.140625 | 3 | [] | no_license | total=0
contador=0
totalLineas=`cat precipitaciones.txt | wc -l`
while [ $contador -lt $totalLineas ];do
contador=$((contador+1))
litros=`cat precipitaciones.txt | head -$contador | tail -1 | awk '{print $2}'`
total=$((total+litros))
done
media=$((total/contador))
echo "La media de precipitaciones es $media" | true |
7c0abf99e74c46ad3e82db18006aaad911210904 | Shell | programandala-net/fsb2 | /fsb2-tap.sh | UTF-8 | 2,315 | 3.84375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
# fsb2-tap.sh
# This file is part of fsb2
# http://programandala.net/en.program.fsb2.html
# ##############################################################
# Author and license
# Copyright (C) 2015,2020 Marcos Cruz (programandala.net)
# You may do whatever you want with this work, so long as you
# retain ... | true |
1dc1ed9adbce0110eacda5e2f576dc353a15e57f | Shell | lotharsm/dockerized-bb | /toolchains/ps3/packages/sdl_psl1ght/build.sh | UTF-8 | 603 | 2.921875 | 3 | [] | no_license | #! /bin/sh
SDL_PSL1GHT_VERSION=d9763a92004369ba3d2384553eb84b2732be3ca9
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
HELPERS_DIR=$PACKAGE_DIR/../..
. $HELPERS_DIR/functions.sh
do_make_bdir
do_http_fetch sdl_psl1ght "https://github.com/bgK/sdl_psl1ght/archive/${SDL_PSL1GHT_VERSION}.tar.gz" 'tar xzf'
# e... | true |
e1096cbe4ecc0793511230d1a0431fa82da0d3ac | Shell | johnarnett/Script-Portfolio | /bash/online_check.sh | UTF-8 | 667 | 3 | 3 | [] | no_license | #!/bin/bash
. aprset
for i in $(cat stores.unl)
do
st=$(echo "select st_shp_st from stores where st_id = $i" | dbaccess atb 2>/dev/null | grep -v st_shp_st)
echo -n $i " - " $st " - "
ping -c 1 z$i > /dev/null
if [ "$?" -eq 0 ] ; then
echo "Online"
else
echo ""
echo $i >> offline_stores.log
fi
done
if [ -f offline_s... | true |
32006ce06131dec0b0e974bc3ba43adf22aa3857 | Shell | devkitPro/pacman-packages | /switch/SDL2_mixer/PKGBUILD | UTF-8 | 1,448 | 2.640625 | 3 | [] | no_license | # Maintainer: Dave Murphy <davem@devkitpro.org>
# Contributor: Cpasjuste <cpasjuste@gmail.com>
# Contributor: carstene1ns <dev f4ke de>
pkgname=switch-sdl2_mixer
pkgver=2.0.4
pkgrel=2
pkgdesc="A sample multi-channel audio mixer library."
arch=('any')
url="https://libsdl.org/projects/SDL_mixer/"
license=("zlib")
optio... | true |
4058267c7ccdfaa3f8a079721918e6d3714a6e72 | Shell | floatious/bootrr | /helpers/bootrr | UTF-8 | 242 | 3.125 | 3 | [] | no_license | #!/bin/sh
timeout() {
attempts="$1"; shift
cmd="$@"
for i in `seq ${attempts}`
do
$cmd && return 0
sleep 1
done
return 1
}
test_report_exit() {
TEST_RESULT=$1
lava-test-case ${TEST_CASE_ID} --result ${TEST_RESULT}
exit 0
}
| true |
804a3d830e988b13073d34af56785edcc720d871 | Shell | ban-archive/script_divers | /scripts/export/export_csv.sh | UTF-8 | 5,682 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# But : exporter la ban en csv format banv0
################################################################################
# ARGUMENT : $1 : repertoire dans lequel sera genere le fichier
# ARGUMENT : $2 : emprise de l export (deparmtement ou insee commune)
###################################################... | true |
f9d2134ccf43fee6976385a6233f184843635f97 | Shell | basiliocat/gebot | /roles/postgresql/install.sh | UTF-8 | 1,147 | 3.296875 | 3 | [] | no_license | #!/bin/sh
[ ! -x /usr/local/bin/screen ] && remove_screen=1
xargs pkg install -y <<EOT
databases/postgresql92-server
sysutils/screen
EOT
mkdir -p /data/pgdata
chown -R pgsql:pgsql /data/pgdata
grep -Eq '^postgresql_enable=' /etc/rc.conf || cat >> /etc/rc.conf << EOT
postgresql_enable="YES"
postgresql_data="/data/pgd... | true |
266f87f0c3ac73ce11825bf408743e35e91602d8 | Shell | yamennassif/Linux-Settings | /bin/monitor | UTF-8 | 1,796 | 3.375 | 3 | [
"Beerware"
] | permissive | #!/usr/bin/env sh
INTERN="LVDS1"
INTERN="eDP1"
EXTERN1="DP2"
EXTERN2="DP1"
MAXRES=`xrandr --query | awk '/^ *[0-9]*x[0-9]*/{ print $1 }' | sort | uniq -d | cut -d'x' -f 1 | sort -nr | head -1`
CHOOSEN_RES=`xrandr --query | grep $MAXRES | awk '/^ *[0-9]*x[0-9]*/{ print $1 }' | sort | uniq -d`
PrintUsage(){
cat << EOI
U... | true |
caee425213604514d177d57b768577ef43abf4c1 | Shell | IBM-Security/performance | /IAM/scripts/SDS_tuning_scripts/s_nanny_2.ksh | UTF-8 | 4,659 | 3.875 | 4 | [] | no_license | #!/bin/ksh
#DebugTrace=NO
DebugTrace=YES
if [ "${DebugTrace}" == "YES" ]; then
set -x
fi
LDAP_PORT=389
#START_SLAPD_CMD="su - ldap -c /export/home/ldap/start_slapd"
START_SLAPD_CMD="/ldapscripts/ldap_start start"
CORE_BACKUP_PATH=/var/ldap/testdata
TmpSearchResults=${CORE_BACKUP_PATH}/tmp.s_nanny_2.out
NannyLogFile=... | true |
8a51238830f62d8fe7a660c685675aa9acf92ca8 | Shell | morika-t/heroku-buildpack-rbenv | /bin/compile | UTF-8 | 7,699 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
BUILD_DIR=$1 # The app directory, usually /app. This will have the app source initially. Whatever is left here will be persisted.
CACHE_DIR=$2 # The contents of CACHE_DIR will be persisted between builds so we can use it to speed the builds up
ENV_DIR=$3 # An envdir directory of the app... | true |
3f08b1d82520755dc713305a8cac4c9f3e36e585 | Shell | djobbo/Una | /scripts/programs/ganache.sh | UTF-8 | 712 | 3.578125 | 4 | [] | no_license | #!/bin/bash
echo "Starting AppImage download"
curl -s -L https://api.github.com/repos/trufflesuite/ganache/releases/latest \
| grep -E 'browser_download_url' \
| grep linux-x86_64 \
| cut -d '"' -f 4 \
| wget -qi - -O ganache.AppImage
echo "Downloaded AppImage"
chmod u+x ganache.AppImage
echo "Extr... | true |
9ecf7b12b2f9984b7a08c7fee2a93f3f18fe009c | Shell | pentolone/OpenVPN | /crea-serverkey.bash | UTF-8 | 6,965 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#
# crea-servverkey.bash
# Create CA certificate and server certificate
# (C) Connexx srl 2021
#
#
#
#
#############################################################################
#
#--> Global variables
#
CNX_PRG_NAME=$0
CNX_PATH_TO_OVPN=$HOME/openVPN
CNX_PATH_TO_EASYRSA=$CNX_PATH_TO_OVPN/EasyRSA
CNX_PATH... | true |
7cb9c43c934f42b8fd3171eebc1470f8455ef404 | Shell | kamilion/kamikazi-core | /buildscripts/xenial/setup-build-environment.sh | UTF-8 | 1,430 | 3.234375 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user" 2>&1
exit 1
else
echo "[kamikazi-build] Setting this node up to be an ISO builder..."
apt-get install --no-install-recommends -y git gksu build-essential fakeroot make binutils g++ squashfs-tools xorriso x11-xserver-utils xserver-xephyr qem... | true |
7d4687f8592e612fc3b282faba4ceea62dd0a1bf | Shell | aakordas/creature_manager | /scripts/dice_test.sh | UTF-8 | 1,305 | 3.4375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/bash
make_request() {
curl --silent --request GET "127.0.0.1:8080/api/v1/roll${1}"
}
declare -a DICE
DICE=(4 5 6 8 10 12 20 100)
echo "Default values: "
curl --silent --request GET "127.0.0.1:8080/api/v1/roll"
echo
# Check with the variable, without queries.
echo "Variable for the sides., no quer... | true |
8b9fa88820cbaec11f0c8a8dc169129669d5f2ed | Shell | AustinSchuh/rules_go | /tests/race/race_on_test.sh | UTF-8 | 258 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | OUTPUT="$(tests/race/race_on_tester 2>&1)"
if [ $? -eq 0 ]; then
echo success
echo "Expected failure, got success"
exit 1
fi
if [[ $OUTPUT != *"WARNING: DATA RACE"* ]]; then
echo "Expected WARNING: DATA RACE and it was not present"
exit 1
fi
exit 0 | true |
a9f6e0d0cba1af3cf958be840b2eb2cb7027e74b | Shell | olsner/m3 | /test.sh | UTF-8 | 402 | 3.328125 | 3 | [] | no_license | #!/bin/bash
set -e
testdir=`mktemp -d` || exit 1
trap "rm -fr $testdir" exit
outdir=$testdir/out
mkdir $outdir
if [ "$1" = "-" ]; then
outdir=${testdir}
mod=temp_test
cat > ${testdir}/${mod}.m
else
mod="$1"
fi
shift
dist/build/m3/m3 ${testdir:+-I${testdir} -o${outdir}} ${mod}
file=${outdir}/${mod/::/__}
llvm-as $... | true |
03a58f40be80a3a630835a525642cca126cbbed0 | Shell | arapat/aws-jupyter | /aws_jupyter/scripts/install-jupyter-tmsn.sh | UTF-8 | 557 | 2.828125 | 3 | [] | no_license | # Mount SSD
# ami-07ebfd5b3428b6f4d
killall jupyter-notebook
sleep 1
nohup jupyter notebook --no-browser --port=8888 < /dev/null > /dev/null 2>&1 &
URL=$(dig +short myip.opendns.com @resolver1.opendns.com)
sleep 2
echo
echo "The Jupyter Notebook is running on the cluster at the address below."
echo
echo "Open the foll... | true |
a9d5ad7691994ac10bcc0db4f4e08751263c77cf | Shell | faust64/BaD | /bench_a_disk | UTF-8 | 8,272 | 3.984375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
CLEANUP_TMPFS=false
SETUP=false
RETRY_SUFFIXES="`seq 1 5`"
test -z "$LOG_PATH" && LOG_PATH=/var/tmp/BaD
test -z "$TARGET_PATH" && TARGET_PATH=/home/bench
test -z "$TARGET_DEVICE" && TARGET_DEVICE=/dev/sda2
while test "$1"
do
case "$1" in
-s|--setup) SETUP=true ;;
-l|--logpath) LOG_PATH="$2"; shift ;;
... | true |
db4cb08aa06a694390e6d3371f34f21ce5018fa1 | Shell | thirumurthy/dbbackup | /googledrivefiledownload.sh | UTF-8 | 504 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
fileid="### file id ###"
filename="MyFile.csv"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
# Reference : https://gis... | true |
9c043b01901c2303b3fe1009fe824f18adac38d2 | Shell | emunark/holberton-system_engineering-devops | /0x05-processes_and_signals/4-to_infinity_and_beyond | UTF-8 | 112 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
# To infinity and beyond
i=0
while [ $i ]
do
echo "To infinity and beyond"
sleep 2
done
| true |
5f97de57745655d49bc0696045b38d7ccbbac923 | Shell | anuraggupta704/fenics-course | /src/generate_all_notebooks.sh | UTF-8 | 571 | 2.59375 | 3 | [
"CC-BY-4.0"
] | permissive | # Convert Python scripts
find . -iname "*.py" -type f -exec sh -c 'echo "Converting {}" && mkdir -p ../notebooks/$(dirname {}) && python jupyter_converter.py {} ../notebooks/$(dirname {})/$(basename {} ".py").ipynb' \;
# Copy mesh files
find . -iname "*.xml" -type f -exec sh -c 'echo "Copying {}" && cp {} ../notebooks... | true |
23eadf8dca65e6ccbb4591ceb776b630eceeb1bb | Shell | esa-esdl/jupyterhub-k8s | /scripts/create_clusters.sh | UTF-8 | 1,559 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
export CORE_CLUSTER_NAME=jupyterhub-cluster
export CORE_MACHINE_TYPE=n1-standard-2
export CORE_BOOT_DISK_TYPE=pd-standard
export CORE_NUM_NODES=1
export CORE_ZONE=europe-west3-a
export JUPYTER_USER_MACHINE_TYPE=n1-highmem-2
export JUPYTER_USER_BOOT_DISK_TYPE=pd-standard
export JUPYTER_USER_MIN_NODE... | true |
9c1e4e22fcf63cb2b0a8e34f8365109318d31fde | Shell | unb-libraries/CargoDock | /travis/cleanupOldImages.sh | UTF-8 | 1,281 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Remove historical images from AWS ECR if there are more than
# $OLD_IMAGES_TO_KEEP historical images that exist in the repository.
set -e
SCRIPT_DIR=$(dirname $0)
if [[ $DEPLOY_BRANCHES =~ (^|,)"$TRAVIS_BRANCH"(,|$) ]]; then
AMAZON_ECR_URI="${AWS_ACCOUNT_ID}.dkr.ecr.$AMAZON_ECR_REGION.amazona... | true |
4ebf9f4b6293230970eee4c035e8e0cf71cf8ab1 | Shell | KermitYao/Scripts | /sh/vms.sh | UTF-8 | 4,952 | 4.1875 | 4 | [] | no_license | #!/bin/sh
initVar(){
vmsCount=0
getCount=0
vmsCount=$(($(vim-cmd vmsvc/getallvms|wc -l)-1))
ret=Null
vmsAll="False"
getVms="False"
setVms="False"
setVmsC="False"
setVmsO="False"
}
getAll(){ ... | true |
2c2b72d466c7115a7139199a9ae21a9df7125135 | Shell | ecs-org/ecs-appliance | /salt/appliance/ssl/prepare-ssl.sh | UTF-8 | 3,072 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | prepare_ssl () {
# re-generate dhparam.pem if not found or less than 2048 bit
recreate_dhparam=$(test ! -e /app/etc/dhparam.pem && echo "true" || echo "false")
if ! $recreate_dhparam; then
recreate_dhparam=$(test "$(stat -L -c %s /app/etc/dhparam.pem)" -lt 224 && echo "true" || echo "false")
fi
... | true |
5cd6d4dc6e84ca00eac8a16771fd1bed2047fb14 | Shell | wang-zhijun/Bash | /d | UTF-8 | 611 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# 用在线金山词霸和正则表达式写的一个命令行字典
# ./d memory 则是查memory的读音和意思
wget -q http://www.iciba.com/$1
cat $1 | col -b | sed 's/[ \t]*//g' > tmp
sed -n 's/<strong>\[<\/strong><stronglang="EN-US"xml:lang="EN-US">\(.*\)<\/strong><strong>\]<\/strong>/\1/p' tmp
echo -n "$proun" >> data
# 第七行的第二个sed的意思是找到<label>这一行之后,进而继续匹配
# 然... | true |
f3f1722dfc6225340438221047736c3d12116a5f | Shell | tkooda/config-public | /host/0/bash/bash.d/30-aliases.sh | UTF-8 | 2,091 | 3.4375 | 3 | [] | no_license | ## misc aliases
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias psl='ps f -eopid,user,etime,args'
alias pslw='ps f -wwweopid,user,etime,args'
alias scr='screen -D -R'
alias tem='emacs -nw'
alias mroe=more
alias give='find . -type d -exec chmod a+rx {} \; ; find . -type f -exec chmod a+r {} \; '
alias getu... | true |
a9686be6738a5710b234709106b134af1f09d0d1 | Shell | cstevens/Project-Support-Scripts | /IoTivity/gen2.sh | UTF-8 | 1,055 | 3.125 | 3 | [] | no_license | #!/bin/bash
CURPWD=`pwd`
PROJNAME=${PWD##*/}
MY_COMMAND="cd ${OCFPATH}/DeviceBuilder"
eval ${MY_COMMAND}
MY_COMMAND="sh ./DeviceBuilder_C++IotivityServer.sh $CURPWD/$PROJNAME.json $CURPWD/device_output \"oic.d.light\""
eval ${MY_COMMAND}
# copying the introspection file to the executable folder
MY_COMMAND="cp $CURPW... | true |
b771303775ba2b012885d1ad5ac1c89f26df01d4 | Shell | NanYoMy/DeepSimRegistration | /scripts/retune_registration.sh | UTF-8 | 3,151 | 2.5625 | 3 | [] | no_license | #!/bin/bash
# hyperparameter tuning.
TUNE_PLATELET=true
TUNE_PHC=true
TUNE_BRAIN=true
# Check if slurm compute cluster available. Submit as slurm job if possible.
if sbatch -h &> /dev/null; then
echo "Submitting to slurm..."
WRAPPER_FUNC=scripts/slurm/slurm_submit_nice.sh
else
echo "Running locally..."
... | true |
59ac257ea046070660c98d307475c1308fe1abe0 | Shell | ibaiul/SysAdmin | /mysql/mysql-secure.sh | UTF-8 | 3,560 | 4 | 4 | [] | no_license | #!/bin/bash
#
# Forked from https://gist.github.com/coderua/5592d95970038944d099
#
# Automated mysql secure installation for RedHat based systems
#
# - You can set a password for root accounts.
# - You can remove root accounts that are accessible from outside the local host.
# - You can remove anonymous-user accou... | true |
d8d9eae214196e07db65e74f91804fab819b81ff | Shell | Apoorvd/com.celebal.project | /DeployApacheAndFTP.sh | UTF-8 | 2,433 | 3.203125 | 3 | [] | no_license | #!/bin/bash
apt-get update
apt-get upgrade -y
#Install System Firewall
apt-get install ufw -y
systemctl start ufw
#Install FTP server
apt-get install vsftpd -y
#Enable and start vsftpd service
echo "------------- On SystemD ------------- "
systemctl start vsftpd
systemctl enable vsftpd
echo "------------- On SysV... | true |
ec48035eb16b69dd8370145acb56218caaff40c9 | Shell | Nv7-GitHub/vjsexample | /run.sh | UTF-8 | 340 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# needs reflex, get with:
# go get github.com/cespare/reflex
sh build.sh
v run devserver/devserver.v &
PID1=$!
v -prod -skip-unused -o main.js -b js -watch . &
PID2=$!
cleanup() {
echo "Cleaning up..."
kill -9 $PID1
kill -9 $PID2
kill -9 $(( $PID2 + 10 ))
exit
}
trap cleanup INT
reflex -r 'styl... | true |
7c9941251e60f073f828c3e2f3bdb716149387f2 | Shell | ashubits/aktu2017 | /OS Security Lab/KrShanu/lab4/cmp.sh | UTF-8 | 550 | 2.90625 | 3 | [] | no_license | #!/bin/bash
file="/home/monika/hash1.txt"
while IFS=: read -r col1 col2
do
echo "$col1" : $val2
echo "$col2" : $val1
done < "$file"
file="/home/monika/hash2.txt"
while IFS=: read -r col3 col4
do
echo "$col3" : $val4
echo "$col4" : $val3
done < "$file"
if ["$vol2" eq "$val4"];then
{
if ["$col1" != "$col3"];... | true |
036c2e68205d553c1971b8b6f5fff5718aaae653 | Shell | crzidea/local-bin | /docker-build | UTF-8 | 109 | 2.6875 | 3 | [] | no_license | #!/usr/bin/env bash
_dirname=`basename $PWD`
image=${_dirname/docker-/}
docker build --tag $USER/$image $@ .
| true |
47ec15731b7bb09b93dc23baa3c2f2e99f7e9d48 | Shell | salekseev/Manifests | /hdp/templates/check_status.sh.erb | UTF-8 | 692 | 3.109375 | 3 | [] | no_license | #!/bin/bash
file="/tmp/waitforhosttoregister.pid"
if [ -f $file ]; then
echo "Already Waited for agent it enough..."
else
while [ 1 ]
do
tasks=`curl -s -u admin:admin -H 'X-Requested-By: ambari' 'http://<%= scope.lookupvar('hdp::params::AMBARISERVER_HOSTNAME') %>:8080/api/v1/clusters/hadoopcluster/req... | true |
8bf9757b917473537b4999948e07641d45e1074e | Shell | KLMM-LSD/LSD-Deployment | /credential-download/copy-ssh-keys.sh | UTF-8 | 437 | 3.390625 | 3 | [] | no_license | #Temp file to work with
FILE=github_keys.txt
#Authorized_keys file on machine
SSHFILE=~/.ssh/authorized_keys
#Grabs keys from Github API
python get-ssh-keys.py | (tee $FILE;)
#Appends already authorized keys to downloaded file
cat $SSHFILE >> $FILE
#Removes all duplicate lines
sort -u -o $FILE $FILE
#Removes lines c... | true |
f5ce3c9b07ec83af7e32645abecc0fcfbac3d9b5 | Shell | remew/dotfiles | /bootloader.sh | UTF-8 | 758 | 3.78125 | 4 | [] | no_license | #!/bin/bash
GIT_URL="https://github.com/remew/dotfiles.git"
TAR_URL="https://github.com/remew/dotfiles/archive/master.tar.gz"
DOT_PATH=$HOME/dotfiles
function exists() {
which "$1" > /dev/null 2>&1
return $?
}
function dotfiles_download() {
if exists "git"; then
git clone $GIT_URL
elif exists... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.