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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d2f58371500ac9b07da30b61ab9eb3e1433ee080 | Shell | qidouhai/GeneralGameServerMod | /monitor.sh | UTF-8 | 319 | 3.296875 | 3 | [] | no_license | #!/bin/bash
IP="127.0.0.1"
PORT="9000"
while true
do
# 暂停
sleep 1
# 检测程序是否正常
status_code=`curl -I -m 10 -o /dev/null -s -w %{http_code} http://${IP}:${PORT}/heartbeat`
if [ ${status_code} = "200" ]; then
echo "is alive"
else
echo "is dead"
fi
done
| true |
f169f4cce9c1221557dbf25ddfeb59995827fd99 | Shell | lokarlhorst/CB | /alg30/test1.sh | UTF-8 | 1,326 | 3.703125 | 4 | [] | no_license | #!/bin/bash
GECCO=gecco.sh
# Checks if the current alg compiler translates the
# alg30 source file TST1.ALG such that it produces the expected output.
# Translates TST1.ALG into a class, executes that class, redirects the
# output of that execution into a file FOUND1.OUT, compares that file
# with a file EXPECTED1.OU... | true |
852c6e66c428e8f9a59ec4ac6cfaf2287e009e99 | Shell | CarlOlson/cedille | /create-libraries.sh | UTF-8 | 120 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
rm -f libraries
for f in src/cedille.agda-lib ial/ial.agda-lib ; do
echo "`pwd`/$f" >> libraries
done
| true |
f495efb6cfdc825da327740e79aaaf6e8f510dcd | Shell | josefbacik/virt-scripts | /fedora-install.sh | UTF-8 | 257 | 2.78125 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: fedora-install.sh <path to image>"
exit 1
fi
IMAGE=$1
virt-install --install fedora-rawhide --disk $IMAGE --memory=4096 --vcpus=2 \
--initrd-inject minimal-ks.cfg --extra-args "ks=file:/minimal-ks.cfg"
| true |
6e91b262ffef5b5cfe3ac5aa14ba6d978f163b4c | Shell | espressoelf/motd | /ins-ru.sh | UTF-8 | 701 | 3.609375 | 4 | [] | no_license | #!/bin/bash
echo "Выберите, что вы хотите сделать:"
echo "1) Установка"
echo "2) Удаление скрипта"
echo "3) Редактирование"
read x
if test $x -eq 1; then
echo
echo "Создание конфигурации сервера"
sudo cat /dev/null > /etc/motd
sudo wget -O /etc/profile.d/sshinfo.sh https://raw.githubusercontent.com/mazeram/motd/main/ma... | true |
640e76a4af8ccdd98e62ac959fc7888b8f010972 | Shell | rygwdn/dotfiles | /bin/win-start | UTF-8 | 382 | 2.84375 | 3 | [] | no_license | #!/bin/bash
# use powershell because it handles ampersands better than cmd or explorer on WSL
#echo "$1" | powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "&{ [System.Diagnostics.Process]::Start(\$args[0]) }" "\"$1\""
echo "$1" | powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "&{ \$inp = read-ho... | true |
3e5bddd933206c67190f2be381b16fd2428160a9 | Shell | outsidecontext/ofSketches | /clone-addons.sh | UTF-8 | 796 | 3.15625 | 3 | [] | no_license | #!/bin/bash
# Clones dependencies for Mumm
# !Run this script from the Mumm project root!
# cd ../../addons/
# create new addons dir
# mkdir addons
cd ../../addons
# passing no arguments means read only
if [ -z $1 ]; then
CLONE="git clone https://github.com/"
echo "Cloning read-only"
else
CLONE="git clo... | true |
e6eb821d534fb1221a2b06ca93b768bae42e711f | Shell | monotonemonk/arch_svntogit_community- | /libacpi/repos/community-x86_64/PKGBUILD | UTF-8 | 688 | 2.53125 | 3 | [] | no_license | # $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=libacpi
pkgver=0.2
pkgrel=4
pkgdesc="general purpose lib to gather ACPI data"
arch=(i686 x86_64)
url="http://www.ngolde.de/libacpi.html"
license=('GPL')
depends=()
options=(!emptydirs)
source=(http://www.ngolde.de/download/${pkgname}-${pkgver}.tar.... | true |
c4508687ccf96ae56fbec9d09e07fdab287b8cac | Shell | jckstrw/scripts | /merge_whisper/merge.sh | UTF-8 | 190 | 2.59375 | 3 | [] | no_license | #!/bin/bash
#
for i in $(find -type f -name '*.wsp');
do
#echo $i
grep $i /tmp/all_whisper.txt > /dev/null; /usr/local/bin/whisper-merge.py $i /opt/graphite/storage/whisper/DFW2/$i
done
| true |
32e2143963f2cf410e3146678cb61bbf4f73d134 | Shell | hnagrasona/cs-auth-proxy | /dockerfiles/saml-proxy/update-idp-xml.sh | UTF-8 | 415 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit
URL=http://keycloak:8080/auth/realms/sonatype/protocol/saml/descriptor
FILENAME=/etc/httpd/saml2/idp-metadata.xml
until curl -f -s -o /dev/null -f $URL; do
>&2 echo "keycloak is unavailable - sleeping"
sleep 5
done
>&2 echo "keycloak is up - retrieving idp descriptor"
curl -s... | true |
78f2cee813243747720a38f0e03e0e7e8e18a7d9 | Shell | mut0u/system-config | /bin/ask-for-input | UTF-8 | 589 | 3.59375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
## start code-generator "^\\s *#\\s *"
# generate-getopts ssecret p:prompt
## end code-generator
## start generated code
secret=false
prompt=
OPTIND=1
while getopts 'sp:' opt; do
case "$opt" in
s) secret=true;;
p) prompt=$OPTARG;;
*) echo Usage Error; exit 2;;
esac... | true |
acae9e88513231d8f779aeb1ae185019b42f07b7 | Shell | shilpi230/scripts | /screen-toggle | UTF-8 | 1,574 | 3.875 | 4 | [] | no_license | #!/bin/sh
usage(){
fmt <<EOF
DESCRIPTION
Toggle the laptop display on or off.
USAGE
screen-toggle
EOF
exit
}
die(){ printf "Error: ${1}\n" 1>&2; exit 1; }
require(){ command -v $1 > /dev/null 2>&1 || { suggestion=""; if [ ! -z "$2" ]; then suggestion=" $2"; fi; die "$1 is not installed.${suggestion}"; } }
if [ $... | true |
33d23125e632c2a74883235086d543ec2dfc23d8 | Shell | leyao-daily/virtlet | /build/circle-dump.sh | UTF-8 | 1,713 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
DIND_SCRIPT="${DIND_SCRIPT:-$HOME/dind-cluster-v1.14.sh}"
circle_token_file="$HOME/.circle-token"
job_num="${1:-}"
if [[ ! ${job_num} ]]; then
echo >&2 "Usage: ${0} job_number"
echo >&2
echo >&2 "You need to have kubeadm-dind-cluster scri... | true |
5233647dec69cf96549033fad9cf7c65f491e16e | Shell | Zestx/init | /script/02.sh | UTF-8 | 338 | 3.5 | 4 | [] | no_license | #!/bin/bash
read -p "user to delete: " USER
read -p "also delete $USER homefolder? (y/n): " DELHOME
echo "unloging and deleting $USER..."
if [ -z "$(pgrep -u $USER)" ]; then
echo "..."
else
while read PROC; do
sudo kill -9 $PROC
done < $(pgrep -u $USER)
fi
sudo userdel $USER
if [ $DELHOME = "y" ]; then
sudo rm -... | true |
649830923447c5a469919523274b5a7fddc5273a | Shell | alivemike/docker-storjshare-cli | /entrypoint | UTF-8 | 1,045 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh -e
if [ -z "${WALLET_ADDRESS}" ]; then
echo "!!! WALLET_ADDRESS must be set to an ERC20 wallet address";
exit 1;
fi;
if [ -n "${DAEMONADDRESS}" ]; then
sed -i "s/127\.0\.0\.1/${DAEMONADDRESS}/" /usr/lib/node_modules/storjshare-daemon/lib/config/daemon.js
fi
# If our hostname has a hyphen-delimited suff... | true |
632dd042e3c744053ba8cdf554c0183521671914 | Shell | VeggieTorta/dotfiles | /setupfiles/plex | UTF-8 | 666 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# Author: @veggietorta
# Update: 02.28.21
Install_plex()
{
# prep system
sudo apt-get update -y
sudo apt-get upgrade -y
# Allow apt packages over https
sudo apt-get install apt-transport-https -y
# Dll and add plex GPG key to package manager
curl https://downloads.plex.tv/ple... | true |
c2b5342c1410576ec402d076bd9d8aa27311dc4f | Shell | kontrabanda/mgr-2 | /tool_cons.sh | UTF-8 | 722 | 2.78125 | 3 | [] | no_license | #!/bin/sh
if [ "$1" = "boundries" ]; then
scriptPath="./scripts/tools/crimesInBoundries.R"
elif [ "$1" = "poiDist" ]; then
scriptPath="./scripts/tools/poiDist.R"
elif [ "$1" = "poiDens" ]; then
scriptPath="./scripts/tools/poiDensity.R"
elif [ "$1" = "auc" ]; then
scriptPath="./scripts/tools/aucForExperimentWrapper... | true |
f0f8e271bb586d2cde9d54d33752415c8f42a30c | Shell | g23988/line_bot_april | /ap/line_send.sh | UTF-8 | 67 | 2.765625 | 3 | [] | no_license | #!/bin/sh
case $0 in
start) echo "start";;
stop) echo "stop";;
| true |
e5444e481238a5c5934f32b937dfef00647aa473 | Shell | epheo/shaddock-openstack | /images/openstack/shaddock/cinder/configure.sh | UTF-8 | 2,484 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
CINDER_PATH=/opt/openstack/services/cinder/bin/
OS_CLI=/opt/openstack/services/python-openstackclient/bin/openstack
ln -s /opt/openstack/services/cinder/etc/cinder /etc/cinder
echo "Updating conf file..."
$CINDER_PATH/python /opt/configparse.py
source /opt/openstack/service.osrc
endpoint=`$OS_CLI endpo... | true |
2a7e5e5fccd3ede66b6d922591d2e932c32f31e4 | Shell | nya3jp/icfpc2019 | /tanakh-solver/run-intensive.sh | UTF-8 | 1,337 | 3.15625 | 3 | [] | no_license | #!/bin/bash -e
probrange="$1"
trials="50"
if [[ -n "$2" ]]; then
trials="$2"
fi
coins="B BB C CC CCC CCCC CCCCC CCCCCC L"
if [[ -n "$3" ]]; then
coins="$3"
fi
default_opts="--increase-mop --aggressive-item --aggressive-teleport --spawn-delegate --change-clone-dir --use-drill=60 "
for prob in $(seq $probrange);... | true |
1888ec4bda4181e259f4694544f4536253c7486a | Shell | cwru-robotics/cwru_baxter | /build_scripts/hku_make.sh | UTF-8 | 199 | 2.9375 | 3 | [] | no_license | #!/bin/bash
python ./hku_make.py "$@"
ret=$?
if [ "$JENKINS_BUILD" != "1" ]; then
if [ -f /opt/hku_drc_team_scripts/setup.sh ]; then
. /opt/hku_drc_team_scripts/setup.sh
fi
fi
return $ret
| true |
eb2086403bca558292c6b773000fc1ea05af71bd | Shell | jin5866/ICV | /serving/experiments/serving_1.sh | UTF-8 | 919 | 2.859375 | 3 | [] | no_license | EXPATH=~/hwlee/Inferencing-CPU-for-network-performance-in-virtualized-environments/serving/experiments
VM=1-test
model_name=random_forest
while IFS=',' read pkt_size bandwidth_tx
do
python3 $EXPATH/code/main.py $model_name $pkt_size $bandwidth_tx >> cpu_quota.txt
quota=$(<cpu_quota.txt)
rm cpu_quota.txt
... | true |
55973940e6f59f6ac96612526e04e4c76a768f50 | Shell | ZJUHSY/CS61C | /projects/beargit/project_code/init_test | UTF-8 | 1,290 | 3.75 | 4 | [] | no_license | #!/bin/bash
if [ ! -f "beargit.c" ]; then
echo "ERROR: Need to run "source init_test" from your source directory"
return
fi
if [ -d "test" ]; then
if [ -f "test/.BEARGIT_TEST_IGNORE_ME" ]; then
rm -rf test
else
echo "ERROR: A test directory already exists, but it was not created by make. Pl... | true |
f555b4706a42fcb9459276f4f037fea2630fcb47 | Shell | JashDave/MTP_New | /Test/src/DetailesScript.sh | UTF-8 | 602 | 3.078125 | 3 | [] | no_license | echo "CPU count, CPU util, NW rx(KBps), NW tx(KBps), NW util, Mem Size, Mem util, Disk util, Page Faults"
#CPU Count
cpuc=`sar -f abc -u | awk 'NR==1{print substr($9,2)}'`
#CPU util
cpuu=`sar -f abc -u | tail -n-1 | awk '{print (100-$8)}'`
#NW
nwc=`sar -f abc -n DEV | tail -n 3 | awk '$2=="eth1" {print $5","$6","$10... | true |
a14e507511529f5742dc53e67a638b5f762f5427 | Shell | zygolife/LCG_Assembly | /Annotation/scripts/make_genome_file_links.sh | UTF-8 | 785 | 3.3125 | 3 | [] | no_license | #!/usr/bin/bash
SAMPFILE=samples_prefix.csv
IFS=,
BASEFOLDER=/bigdata/stajichlab/shared/projects/ZyGoLife/LCG/Assembly/genomes
tail -n +2 $SAMPFILE | while read SPECIES STRAIN JGILIBRARY BIOSAMPLE BIOPROJECT TAXONOMY_ID ORGANISM_NAME SRA_SAMPID SRA_RUNID LOCUSTAG TEMPLATE
#ProjID JGISample JGIProjName JGIBarcode SubPhy... | true |
de9fcb404f66375edc1d255bb5124f8414c8a06d | Shell | rrakus/bash-talks | /bash-course-advanced/scripts/01-parameter-expansion1.sh | UTF-8 | 284 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# variable a is set and have value
# varibale b is only set, without value
# variable c is unset
unset a b c
a="set and have value"
b=
echo ${a:-"word used"}
echo ${b:-"word used"}
echo ${c:-"word used"}
echo ${a-"word used"}
echo ${b-"word used"}
echo ${c-"word used"}
| true |
8ed462bc1c5ad070adaa5ffa7c6ffd5ed6f09d13 | Shell | smoobs/dotfiles | /bin/bak | UTF-8 | 356 | 3.34375 | 3 | [] | no_license | #!/bin/sh
cp='cp -r'
for opt in $*; do
case $opt in
-m)
cp=mv
;;
-*)
echo "Bad option: $opt"
exit 1
;;
*)
args="$args $opt"
;;
esac
done
suffix="`date +%Y%m%d-%H%M%S`.bak"
for obj in $args ; do
echo "$obj saved as $obj.$suffix"
$cp $obj "$obj.$suffix"
don... | true |
dd2e6d4189f18cc44b4a699db8fcba14bf486de4 | Shell | awarelab/seed_rl | /JointInternRepo/marlgrid/local/sync_periodicaly.sh | UTF-8 | 99 | 2.65625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
FROM="$1"
TO="$2"
while :
do
gsutil -m rsync -r "$FROM" "$TO"
sleep 60
done
| true |
009474e0b53aea57e6f59f9394dc978e6fb46d80 | Shell | hodiapa/G5K-VMPlaceS | /g5k-deployment-scripts/tools/set_cpu_load-memtouch-adjust-sleep.sh | UTF-8 | 775 | 3.296875 | 3 | [] | no_license | #!/bin/bash
CPU_CALIB=$1
MEM_CALIB=$2
MEM_SCRATCHFILE_SIZE=$3
LOAD=$4
DP_RATE=$5
echo "Usage= set_cpu_load.sh CPU_CALIB MEM_CALIB LOAD DP_RATE"
echo "setting cpu load to $LOAD with DP_RATE ($DP_RATE in MB/S) "
# find the memtouch processes
memtouch_pid=$(ps aux | grep "memtouch-adjust-sleep" | grep -v "... | true |
7a45712961c45683f4521a260dca6f3227dca73e | Shell | IvanmgmSoftwareEngineering/WorkflowPROGRAMACION | /WEB/nhtml | UTF-8 | 1,864 | 3.5625 | 4 | [] | no_license | #!/bin/bash
#CONTROL ERRORES ARGUMENTOS DE ENTRADA
if test $# -eq 0
then
echo "Error: por favor indique el nombre del fichero"
exit 1
fi
if test $# -gt 1
then
echo "Error: el numero de argumentos es mayor que 1"
exit 2
fi
if test -e $1.html
then
if test -f $1.html
then
echo "Error: el Fichero ... | true |
88bb4d3ea9bbeea261eb14d36ca13769c6d9eaf1 | Shell | jhanschoo/dotfiles | /.disabled/x-desktop/.startde | UTF-8 | 245 | 2.796875 | 3 | [] | no_license | #!/bin/sh
case ${1} in
gnome-x)
echo 'exec gnome-session' > .xinitrc
startx
;;
gnome-wayland)
XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session
;;
*)
exit 1
;;
esac
| true |
67f2b7e47e5baf90539ca36f6bc3cbb789fe2ac2 | Shell | someonefighting/GID | /run.sh | UTF-8 | 4,024 | 2.875 | 3 | [] | no_license | #!/bin/bash
. ./cmd.sh
. ./path.sh
set -e
plpdir=`pwd`/plp
vaddir=`pwd`/plp
trials=data/test/trials
num_components=64 # Larger than this doesn't make much of a difference.
nj=24
steps/make_plp.sh --nj $nj --cmd "$train_cmd" \
data/dongchedi exp/make_plp $plpdir
sid/compute_vad_decision.sh --nj $nj --cmd "$train... | true |
7ad8bb0ab93f8db55d31fa7b429de22e648400be | Shell | chenyu85/cyclone | /scripts/tools/create-version.sh | UTF-8 | 368 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Usage: create-version.sh <service id>
if [[ $# -ne 1 ]]; then
echo "Arguments error."
echo "Usage: create-version.sh <service id>"
exit 1
fi
curl -sS -X POST -H "Content-Type:application/json" -d "{
\"name\": \"v0.1.0\",
\"description\": \"just for test\",
\"service_id\": \"$1\"
}" "http:/... | true |
722291e1bb31517ddb6e05cb77066acbd97fa4ac | Shell | wh936467040/HisMonitorKDB | /kdbDataMonitor/tablespaceCollect.sh | UTF-8 | 2,366 | 3.484375 | 3 | [] | no_license | #!/bin/sh
########################################################################################################################################
###
### Descipt: the script is used to add datafiles to kingbase,before you run it,you should set the variables
###
#######################################################... | true |
ebecaa8ea0e1379dfd34cff24a9471acfa272f24 | Shell | jrbourbeau/openbrewerydb-python | /ci/install.sh | UTF-8 | 780 | 3.203125 | 3 | [
"MIT",
"Python-2.0"
] | permissive | #!/bin/bash
# Install conda
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
MINICONDA_FILENAME="Miniconda3-latest-MacOSX-x86_64.sh"
else
MINICONDA_FILENAME="Miniconda3-latest-Linux-x86_64.sh"
fi
wget https://repo.continuum.io/miniconda/$MINICONDA_FILENAME -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export... | true |
31d3b7a22ef3eeaab8108a17fb276fc6892ef4ff | Shell | nashjunior/OpenStack-Ocata | /ocata/controller/10_openstack_create_instance.sh | UTF-8 | 404 | 2.796875 | 3 | [] | no_license | #!/bin/bash
function assert_superuser {
[[ "$(id -u)" != "0" ]] && echo "You need to be 'root' dude." 1>&2 && e$
}
function main
{
openstack flavor create --id 0 --vcpus 1 --ram 64 --disk 1 m1.nano
. "/home/openstack/OpenStack-Ocata/ocata/controller/admin-demo/demo-openrc"
ssh-keygen -q -N ""
openstack ke... | true |
bf67164265a133b4e6cfbecbea550897e88b408e | Shell | plathome/debian_based_firmware | /build_ramdisk/files/install-firmware.sh | UTF-8 | 4,063 | 3.328125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Copyright (c) 2013-2023 Plat'Home CO., LTD.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this ... | true |
dce303fd4cddfdc59d52d411396b002e174d22ba | Shell | Ascend/ModelZoo-PyTorch | /PyTorch/contrib/audio/speech-transformer/test/steps/shift_feats.sh | UTF-8 | 2,719 | 3.984375 | 4 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
# Copyright 2016 Vimal Manohar
# Apache 2.0
# This script is deprecated. The newer script utils/data/shift_feats.sh
# should be used instead.
# This script shifts the feats in the input data directory and creates a
# new directory <input-data>_fs<num-frames-shift> with shifted feats.
# If the ... | true |
f440d9b8fe82b089317c85141780922fc1d86b3a | Shell | sh1nu11bi/tlosint-live | /build_tracelabsiso_recipe.sh | UTF-8 | 1,946 | 3.859375 | 4 | [] | no_license | #! /bin/bash
# Abort the execution if any of the step fails
set -e
# Log output to STDOUT and to a file.
logPath="squid_setup.log"
exec &> >( tee -a $logPath)
# Clone the Kali live-build and Tracelabs repositories
git clone https://gitlab.com/kalilinux/build-scripts/live-build-config.git /opt/live-build-config
git c... | true |
745f6b4c8b7cf2d753cb9eba4e4247d89c08d164 | Shell | harasou/alfred-workflows | /RunSSH/ssh.sh | UTF-8 | 134 | 3.21875 | 3 | [] | no_license | #!/bin/bash
opts=$1
if [[ $opts =~ ^\[(.*)\]:([0-9]+)$ ]] ; then
ssh -p ${BASH_REMATCH[2]} ${BASH_REMATCH[1]}
else
ssh $opts
fi
| true |
21d92db1988c3c925f21e671048ea105af9bba18 | Shell | MinhHuong/Programmation_backup | /ASR1.0/TD/add_search_path/them_duong.sh | UTF-8 | 478 | 3.421875 | 3 | [] | no_license | #!/bin/bash
add_path_1() {
echo -n "Them duong di : "
read path
echo $path > filetemp
tr " " ":" < filetemp >> path.txt
}
add_path_2() {
echo -n "So buoc di : "
read nb
echo -n "Nhap duong di : "
read path
let total=2*nb-1
i=0
while [ $i -lt $total ]; do
echo -n ${pa... | true |
367a4487b5c0e4ad9d675857d8fc840fa2ada998 | Shell | theosp/bupler-lib | /modules/test | UTF-8 | 2,927 | 3.71875 | 4 | [] | no_license | #!/bin/bash
bupler.import string
test._ok ()
{
echo '[OK]'
return 0
}
test._error_message ()
{
# test._error_message(code,expected_result,result)
local test_type="${FUNCNAME[1]}"
local code="$1"
local expected_result="$2"
local result="$3"
string.String message_title "Error $test_typ... | true |
7a6de389508cad71c5955455207affa5216a84a1 | Shell | cometsong/rcfiles | /bashrc | UTF-8 | 1,720 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
# ---------------------------------------------------------------------------- #
# bashrc of rcfiles #
# ---------------------------------------------------------------------------- #
# source base etc files, varying based on OS
for BRC in ... | true |
5fdac3a8592ecf68f996602c57f3b00e1b7aa822 | Shell | CoRfr/jenkins-scripts | /calamari/build.sh | UTF-8 | 1,076 | 3.65625 | 4 | [] | no_license | #!/bin/bash
COLOR_TITLE="\033[1;94m"
COLOR_MSG="\033[1;36m"
COLOR_DUMP="\033[2;37m"
COLOR_ERROR="\033[1;31m"
COLOR_WARN="\033[1;93m"
COLOR_RESET="\033[0m"
message() {
COLOR=$1
MESSAGE=$2
echo -e $COLOR $MESSAGE $COLOR_RESET
}
check_ret() {
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
message $COL... | true |
d193e2463a45eb09a0578327d04fde9fad1dbe61 | Shell | andresr22/appiumApp | /AppiumSetup/android_appium_setup.sh | UTF-8 | 995 | 3.234375 | 3 | [] | no_license | #!/bin/bash
## First install appium with npm install -g appium -unsafed-perm=true -allow-root
path=$($HOME) # Home variable
echo $path
cd $path # Change to home directory
mkdir -p appiumAndroidSetup/android # Create a directory for Android SDK
cd appiumAndroidSetup/android
echo "Downloading Android SDK ...."
curl -O... | true |
0269b3dae3e0fb8e0a334d268a730b1c1bfe6537 | Shell | itang/bin | /install-go.sh | UTF-8 | 2,696 | 2.734375 | 3 | [] | no_license | #!/bin/bash
go version
VERSION=1.18
function install() {
#URL=https://storage.googleapis.com/golang/go${VERSION}.linux-amd64.tar.gz
URL=https://dl.google.com/go/go${VERSION}.linux-amd64.tar.gz
echo "download from ${URL}"
(
cd /tmp || exit
wget $URL &&
rm -rf ~/dev-env/go &&
... | true |
660ed67750493884045959baad3b811f4165370f | Shell | jakeyeung/sortchicAllScripts | /scripts/processing_revisions/mapping_tagging/1-run_demux.sh | UTF-8 | 510 | 2.828125 | 3 | [] | no_license | #!/bin/sh
# Jake Yeung
# 1-run_demux.sh
# 2021-10-29
inmain="/hpc/hub_oudenaarden/jyeung/data/scChiC/revisions_data/new_experiments/fastqs"
jmem='16' # no suffix for SCMO
jtime='24'
BNAME=$inmain/demux
[[ ! -d $BNAME ]] && mkdir $BNAME
DBASE=$(dirname "${BNAME}")
[[ ! -d $DBASE ]] && echo "$DBASE not found, exiting"... | true |
4fc9bd70ecbefe0b993b230f04cb5ec7f6690c7a | Shell | d3j4n/dotfiles | /dotenv/cygwin/bin/npp | UTF-8 | 747 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# make sure we go to the right path
X86_PGM_PATH="Program Files"
if [[ -d "/c/Program Files (x86)/" ]]; then
X86_PGM_PATH="Program Files (x86)"
fi
PROGRAM=$(cygpath -u "c:/${X86_PGM_PATH}/Notepad++/notepad++.exe")
# if there are any baked in arguments they are defined here
args=( )
for arg in "$@"
do
... | true |
71596a5d572699fca7dd4e8b305cfc23dcea5cab | Shell | websightdesigns/vagrant-precise64 | /bin/resite | UTF-8 | 434 | 3.375 | 3 | [] | no_license | #!/bin/sh
WEBROOT="/var/www/"
VHOSTDIR="/etc/apache2/sites-available/"
EXTENSION=""
RESTARTCMD="/usr/bin/sudo service apache2 reload"
if [ "$1" != '' ]; then
sudo a2dissite $1
sudo a2ensite $1
$RESTARTCMD
echo "reloaded $1"
elif [ "$1" = 'help' ] || [ "$1" = '' ]; then
echo "usage:"
echo "sudo resite <h... | true |
7f8df20b17acaf88c0a37bd22455d9d35bd3828b | Shell | AndroidBlobs/vendor_asus_I003_1 | /proprietary/vendor/bin/q_cali_golden | UTF-8 | 633 | 2.640625 | 3 | [] | no_license | #!/vendor/bin/sh
if [[ "$2" == "0" || "$2" == "2" || "$2" == "4" ]]
then
camDir="rear"
elif [[ "$2" == "1" || "$2" == "3" || "$2" == "5" ]]
then
camDir="front"
else
echo "Invalid argument!!(par1 : cameraID = $1)"
exit 0
fi
if [ "$3" == "" ]; then
rm /data/data/cal_golden_$camDir$2_result.txt
rm /data/data/SHD_lo... | true |
16a5ada5d9799cdfd727f8592f6375f056ee3b85 | Shell | Mokey2002/Shell_Script | /scriptfolder | UTF-8 | 298 | 3.5 | 4 | [] | no_license | #!/bin/bash
date=$(date)
#get the topic
topic="$1"
#filename
filename="${HOME}/${topic}notes.txt"
#Ask user for input
read -p "YOur note: " note
if [[ $note ]]; then
echo "$date: $note">>"$filename"
echo Note "$note" saved to $filename
else
echo "No input; note wasnt saved." 1>&2
fi
| true |
3923b4a39d7facb81e7c46856ac34cba9cdf534d | Shell | Robinrrr10/shellscripts | /practiseShell/shellfiles/file32.sh | UTF-8 | 341 | 3.40625 | 3 | [] | no_license | #another case statement
echo -e "Enter a word"
read word
case $word in
[aeiou]* | [AEIOU]*)
echo -e "The word beign with vowel"
;;
[0-9]*)
echo -e "The word begin with number"
;;
*[0-9])
echo -e "The word end with number"
;;
???)
echo -e "This is three letter word"
;;
*)
echo -e "This is default. none of the a... | true |
0e70770dd106936b98f2b0790a5a581871289902 | Shell | C4yz/mandatory1 | /mandatory.sh | UTF-8 | 330 | 3.359375 | 3 | [] | no_license | #!/bin/bash
echo "Press 1 to install from tar, and press 2 to install with dpkg"
read installtype
echo "Enter full name of the pacakge you want to install"
read package
echo "Enter install link"
read link
if [ $installtype == "dpkg" ]
then
wget -O /usr/local/src/$package "$link"
sudo dpkg --install /usr/local/src/$pa... | true |
1f37a61bc60dd521ce1b87a01db64ab3eccf382c | Shell | symerio/vtext | /ci/azure/install.sh | UTF-8 | 630 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -e
UNAMESTR=`uname`
TO_INSTALL="python=$PYTHON_VERSION pip"
conda create -n $VIRTUALENV --yes $TO_INSTALL
source activate $VIRTUALENV
python --version
pip --version
pip install numpy>=1.12.0 scipy>=1.0.0 pytest>=4.0.0 wheel>=0.31.1
python -c "import numpy; print('numpy %s' % numpy.__version__)"
p... | true |
41731c00998b06b25672fd787f2308eb97f9e8da | Shell | JBADougBurns/OasisLMF | /tests/model_execution/err_kparse_reference/il_eltcalc_1_output_20_partition.sh | UTF-8 | 11,642 | 3.15625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT")
# --- Script Init ---
set -e
set -o pipefail
mkdir -p log
rm -R -f log/*
error_handler(){
echo 'Run Error - terminating'
exit_code=$?
set +x
group_pid=$(ps -p $$ -o pgid --no-headers)
sess_pid=$(ps -p $$ -o sess --no-headers)
printf ... | true |
3bcca7c9d8d89ff72033b385fb305838d36cfc95 | Shell | Kommunicate-io/Kommunicate-Android-Chat-SDK | /hooks/pre-push | UTF-8 | 4,415 | 4.03125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Instructions:
# 1) Download the checkstyle(code inspector) jar from https://github.com/checkstyle/checkstyle/releases/
# NOTE: preffered version 8.28
# 1 a) Install wget and unzip. (sudo apt install wget unzip) or (brew install wget) and (brew install unzip)
# 2) Copy the "pre-push" script in the ./ho... | true |
e8ad2ce316c85af09f38f695ccb72bf2fe92afc3 | Shell | softwaremill/trqbox-demo | /deploy-ror.sh | UTF-8 | 437 | 3 | 3 | [] | no_license | #!/bin/bash
if [ "$1" = "--skip-config" ]; then
echo "skip config"
echo "TORQUEBOX_HOME = $TORQUEBOX_HOME"
echo "PATH = $PATH"
else
source conf_env
fi
export YML_FILE=$TORQUEBOX_HOME/apps/trqbox-demo-frontend-knob.yml
if [ -e $YML_FILE ]; then
echo "Redeploy, touching"
touch $YML_FILE
else
echo "Fir... | true |
e45f3dbd2c70ab00f6cf3c4d8a82ad058ff64c2e | Shell | humphreyhung/shell | /filter.sh | UTF-8 | 369 | 3.015625 | 3 | [] | no_license | #!/bin/bash
FNAME="/home/humphrey/tmp/test.1.sh"
echo $FNAME
echo ${FNAME}
echo ${FNAME##/*/} #from start with longest /*/
echo ${FNAME#/*/} #from start with shortest /*/
echo ${FNAME%%.*} #from end with longest .*
echo ${FNAME%.*} #from end with sgortest .*
echo ${FNAME/sh/bash} #replace first sh with bash
... | true |
15eccebc85a9debda06a348dc3a92964c0b63759 | Shell | Anees-Mon/fosslab | /script1.sh | UTF-8 | 380 | 3.046875 | 3 | [] | no_license | echo "The logged in user is: $(echo $USER)"
echo "The current used shell is: $(echo $SHELL)"
echo "The current working directory is: $(echo $HOME)"
echo "The current operating systrem type is: $(echo $OSTYPE)"
echo "The current path setting is: $(echo $PWD)"
echo "The current working directory is: $(echo $PWD)"
echo "T... | true |
a26838aa6626b3003d73b4826f4f0f6e29ca477b | Shell | Tiryoh/dotfiles | /etc/init/backup_bash.sh | UTF-8 | 461 | 3.125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -eu
BACKUPDIR=${HOME}/.backup/$(date +%Y%m%d_%H-%M-%S)
mkdir -p ${BACKUPDIR}
if [ -a ${HOME}/.inputrc ]; then mv ${HOME}/.inputrc ${BACKUPDIR}/.inputrc.bak; fi;
if [ -a ${HOME}/.bashrc ]; then mv ${HOME}/.bashrc ${BACKUPDIR}/.bashrc.bak; fi;
if [ -a ${HOME}/.bash_profile ]; then mv ${HOME}/.bash_profile ${B... | true |
e4416d334093c10d7ef40056bd0a20a518de094b | Shell | singmyr/adventofcode | /2018/1-2/main.sh | UTF-8 | 819 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
# --- Day 1: Chronal Calibration --- #
# Bash version: GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.5.0)
# Run by running:
# ./main.sh
FREQ=0
declare -A SEEN
SEEN[NONE0]=1
while true
do
echo "LEN: ${#SEEN[*]}"
while read line
do
NUM=`echo "$line" | sed "s/+//;s... | true |
5deb48c3068db9d827ca30d2112e14087adb0ca7 | Shell | nicamdc-dev/nicamdc | /test/framework/mkrawgrid/Mkjobshell.OBCX.sh | UTF-8 | 1,584 | 2.96875 | 3 | [
"BSD-2-Clause"
] | permissive | #! /bin/bash -x
GLEV=${1}
RLEV=${2}
NMPI=${3}
ZL=${4}
VGRID=${5}
TOPDIR=${6}
BINNAME=${7}
# System specific
MPIEXEC="mpiexec.hydra -n \${PJM_MPI_PROC}"
GL=`printf %02d ${GLEV}`
RL=`printf %02d ${RLEV}`
if [ ${NMPI} -ge 10000 ]; then
NP=`printf %05d ${NMPI}`
elif [ ${NMPI} -ge 1000 ]; then
NP=`printf %04d ${NMPI}... | true |
c15dc03c410fe3550ab4b55739a67612151dfb8d | Shell | rthallisey/atomic-osp-installer | /docker/keystone/start.sh | UTF-8 | 4,844 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
# Run Kolla common script
echo "Running the kolla-common script"
. /opt/kolla/kolla-common.sh
# Credentials, token, etc..
: ${ADMIN_USER:=admin}
: ${ADMIN_USER_PASSWORD:=password}
: ${ADMIN_TENANT_NAME:=admin}
: ${KEYSTONE_USER:=keystone}
: ${KEYSTONE_ADMIN_PASSWORD:=password}
: ${KEYSTONE_ADMIN_T... | true |
6709e376863df57640811f162ab4b90ba854ea0e | Shell | noodles-v6/gist | /code/useful_cmd.sh | UTF-8 | 627 | 2.84375 | 3 | [] | no_license | #
# strings命令可以查看非文本里文本内容,具体man strings
# 下面的语句可以打印出CREATE TABLE语句
#
strings expdp.dmp | grep "CREATE TABLE"| sed -e 's/,/,\n/g'
#
# 片段来源于:http://www.softpanorama.org/Scripting/Perlorama/perl_in_command_line.shtml
# 下面的代码做了简单的文本替换工作
#
find . -type f -exec perl -i -pe 's/something/another/g' {} \;
# 处理回车符
# TODO 看看... | true |
965717863657a45e54f718fae6415efa42ee03d9 | Shell | nbcrrolls/stats | /archive/google-analytics/dolinks | UTF-8 | 234 | 2.96875 | 3 | [] | no_license | #!/bin/bash
year=2015
names="website-location website-overview wiki-location wiki-overview"
ext=".pdf"
for a in $names; do
if [ -f ga-$a$ext ]; then
rm -rf ga-$a$ext
fi
ln -s $year/$a-$year$ext ga-$a$ext
done
| true |
41fe3ea4ffa1811ef97b9a504a4cf798e11cc851 | Shell | pinkmaguro/Ubuntu-Shell-Script | /example-dictionary/078.ssh-fail.sh | UTF-8 | 169 | 2.765625 | 3 | [] | no_license | #!/bin/sh
securelog="./sample-sshd"
pattern="^.*sshd\[.*\].*Failed password for.*from \(.*\) port .*"
sed -n "s/$pattern/\1/p" $securelog | sort | uniq -c | sort -nr
| true |
fd309d6f58255e496bfbd06928db3e997095af5f | Shell | bobrito1004/OS-labs | /lab4/rmtrash | UTF-8 | 474 | 3.625 | 4 | [] | no_license | #!/bin/bash
if [[ ! -e "$HOME/.trash/.num" ]]
then
echo 1 > "$HOME/.trash/.num"
fi
if [[ $# != 1 ]]
then
echo "There should be only 1 argument"
exit 1
fi
if [[ ! -f $1 ]]
then
echo "No $1 file in this directory"
fi
if [[ ! -d "$HOME/.trash" ]]
then
mkdir "$HOME/.trash"
fi
num=$(cat "$HOME/.trash/.num")
f="$PW... | true |
d985a584f4fc5ad688cab0641a3794c651266722 | Shell | petronny/aur3-mirror | /arch-test-git/PKGBUILD | UTF-8 | 699 | 2.90625 | 3 | [] | no_license | # Maintainer: Enrico Bacis <enrico.bacis@gmail.com>
pkgname=arch-test-git
pkgver=latest
pkgrel=3
pkgdesc='Just a simple arch test.'
arch=('any')
url='https://github.com/enricobacis/arch-test'
license=('unknown')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git... | true |
06b60df4c7e5b8b96129327fe2578a08e3479361 | Shell | SixArm/sixarm_aws_cli | /aws-route53-list-hosted-zones-by-name-then-select-by-name-then-to-id | UTF-8 | 470 | 3.484375 | 3 | [] | no_license | #!/bin/sh
set -euf
##
# Use AWS Route 53 list hosted zones by name,
# then select a specific zone by its name.
#
# Syntax:
#
# aws-route53-list-hosted-zones-by-name-then-select-by-name-then-to-id \
# <hosted zone name>
#
# Example:
#
# aws-route53-list-resource-record-sets-then-select-by-name \
# ... | true |
6c14e7b1c409b92f5c7e632d95ea4b91eb94ad19 | Shell | bikz007/CS693_OS_lab_Assignments | /Assignment2/factorial.sh | UTF-8 | 448 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#bash script to calculate factorial of a number
echo "Enter the number :"
#takin user input
read num
fact=1
#storing in a temporary variable
temp=$num
#checking if the number is 0 or greater than 0
if [ "$num" == "0" ]
then
echo "Factorial is 1"
exit
fi
while [ "$num" -gt 0 ];
do
fact=$[num*fact... | true |
7ff538f0d938733ab67c222f97d4ec65e2876fbc | Shell | ruffrey/kval | /install-scripts/ubuntu.sh | UTF-8 | 1,315 | 3.6875 | 4 | [
"MIT",
"OLDAP-2.8",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #! /bin/bash
CONF_DIR=/etc/init
CONF_FILE=$CONF_DIR/kval.conf
LOG_DIR=/var/log/kval
LOG_FILE="$LOG_DIR/kval.log"
LOGROTATE_FILE=/etc/logrotate.d/kval
LOGROTATE_CONFIG="$LOG_FILE {
weekly
rotate 26
size 10M
create
su root
compress
delaycompress
postrotate
service kval restart > /... | true |
bad874931d030d1b4f6b735e22beb0ad79ac1839 | Shell | michaelpalmeruw/mbib | /mbib.sh | UTF-8 | 1,901 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# determine path to script and directory
export mbib_sh="${BASH_SOURCE[0]}"
export mbib_dir="$( cd "$( dirname "$mbib_sh" )" && pwd )"
usage() { echo "Usage: $mbib_sh [-d <database file>] [-i <ini file>] [-b <batch operation>] [-f <folder>] [-t <target file>] [-c (clobber target files)]" 1>&2; exit 1; }
... | true |
a7df4ef7635ee8651dcca8837c50c81146675a36 | Shell | mlcommons/ck | /cm-mlops/script/prune-bert-models/run.sh | UTF-8 | 609 | 2.546875 | 3 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
echo "===================================================================="
echo "Start pruning ..."
echo ""
CM_TMP_CURRENT_SCRIPT_PATH=${CM_TMP_CURRENT_SCRIPT_PATH:-$PWD}
time ${CM_PYTHON_BIN_WITH_PATH} \
${CM_GIT_REPO_BERT_PRUNER_NEURIPS_2022_CHECKOUT_PATH}/main.py \
--model_name ${CM_BERT_PRUNE_... | true |
a51b28d9d2982eda6bdb246b590c9f8f385bd59b | Shell | usfbelhadj/AirBnB_clone_v2 | /0-setup_web_static.sh | UTF-8 | 661 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
# script that sets up web servers for the deployment of web_static
sudo apt-get update
sudo apt-get install -y nginx
sudo mkdir -p /data/web_static/shared/ /data/web_static/releases/test/
echo "<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This... | true |
56068ba50855b2ce485bf4ab0fbc80702c82d23f | Shell | ishaanjain/atlas-walk | /run.sh | UTF-8 | 493 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
numargs=$#
model=$1
if [ $numargs -eq 0 ]
then
echo "Error: provide the type of model to use"
elif [ $model == "DDPG" ]
then
echo "Running humanoid environment with the deep deterministic policy gradient model..."
python3 DDPG/main.py "${@:2:$numargs}"
elif [ $model == "CDQN" ]
then
... | true |
502453df2dc85bfb22ea0e09c2275cf076f5f1db | Shell | sensu/sensu-ruby-runtime | /build_scripts/build_alpine_platforms.sh | UTF-8 | 223 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p dist
mkdir -p assets
mkdir -p scripts
# Alpine platform
platform="alpine" test_platforms="alpine:latest alpine:3" ./build_and_test_platform.sh
retval=$?
if [[ retval -ne 0 ]]; then
exit $retval
fi
| true |
148db0d78e7a0659820b69ecd9446a1cded4e97d | Shell | mperdikeas/tools | /make_snapshot.sh | UTF-8 | 3,019 | 3.46875 | 3 | [] | no_license | #!/bin/bash
unset PATH
readonly ID=/usr/bin/id;
readonly ECHO=/bin/echo;
readonly MOUNT=/bin/mount;
readonly RM=/bin/rm;
readonly MV=/bin/mv;
readonly CP=/bin/cp;
readonly TOUCH=/bin/touch;
readonly RSYNC=/usr/bin/rsync;
readonly EXCLUDES=/home/mperdikeas/tools/make_snapshot.sh.excludes
readonly SNAPSHOT_RW=/media/El... | true |
5d9470a110bfc1a7206b0b32f48317813739a100 | Shell | kaizengarden/webmin-migration-scripts | /mig_restore_one_by_one.sh | UTF-8 | 2,403 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/opt/local/bin/bash
#
# Attempts to restore an account from a Virtualmin backup tarball by restoring
# each domain in turn.
#
#
# Copyright (c) 2014 Jacques Marneweck. All rights reserved.
# Copyright (c) 2014 Václav Strachoň. All rights reserved.
# Copyright (c) 2014 Kaizen Garden. All rights reserved.
#
set -o e... | true |
9eac79e2d4fc3a5aaffeea77534fcddb64807cfd | Shell | RUAN0007/fabric-contract-api-go | /.release/changelog.sh | UTF-8 | 685 | 2.984375 | 3 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | #!/bin/sh
# Copyright the Hyperledger Fabric contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
OLD_VERSION=""
if [ ! -z "$1" ]; then
OLD_VERSION="${1}.."
fi
echo "## $2\n$(date)" >> CHANGELOG.new
echo "" >> CHANGELOG.new
git log ${OLD_VERSION}HEAD --oneline | grep -v Merge | sed -e "s/\[... | true |
99df5d97ded3b5efe021b3d8347818a70e2474ed | Shell | wangxuemin/service_Http | /service_http/include/dict/test/run_test.sh | UTF-8 | 311 | 2.53125 | 3 | [] | no_license | #!/bin/bash
./rand_string 100 > tmp
for mode in 1 2 3 4 5 6 7
do
echo "====================running mode $mode===================="
./test_sign $mode 1 < tmp
done
rm -f tmprm -f tmp
echo "====================running mode 8,9===================="
./test_sign 8 1 < case.list
./test_sign 9 1 < case.list
| true |
f3df65c29d500a4b914b4703860e7189e1e60a43 | Shell | cmilanf/raspberrypi | /pcspeaker/bigbensound.sh | UTF-8 | 2,853 | 3.78125 | 4 | [] | no_license | #! /bin/bash
########################################################
# Big Ben clock sound for Raspberry Pi GPIO #
# Carlos Milán Figueredo #
########################################################
# This script uses a PC Spekaer connected to the Pi #
# GPIO in order to pla... | true |
f66020e7c74e4010fe2ff761cc2ead87c409e1a4 | Shell | hmarcelino/dev-utils | /libexec/dev-gen-ssh-key | UTF-8 | 1,626 | 4.34375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Usage: $_SUB_NAME gen-ssh-key -n <name> [-h <hostname>]
# Summary: Generate a rsa public/private key with 1024 bits
# Group: Env
#
# Help: Generate a rsa public/private key with 1024 bits
# -n : the name of the private/public key
# -h : the hostname to use in the ~/.ssh/config file
#
# * Example: $... | true |
4ca99225b368c411a6b2ab6192b578a8ea898a97 | Shell | bodii/test-code | /shell/test4/backup/select_dir_ifelse.sh | UTF-8 | 853 | 3.71875 | 4 | [] | no_license | #!/bin/bash
echo
echo "Which directory do you want to list:"
echo "(Press\"Enter\" directory show menu again)"
echo
# 把要显示的菜单项写在in后面的列表里
select dir in /bin/ /usr/bin/ /usr/local/bin/ /sbin/ /usr/sbin/ /usr/local/sbin/ /usr/share/ quit
do
if [ ! -z "$dir" ]
then
if [ "$dir" = "quit" ]
then
# 如果用... | true |
a0009af6b56833edbd49ddedda7caa1aeb6f0157 | Shell | johnmbaughman/System.Ben | /scripts/build.sh | UTF-8 | 324 | 2.625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
scriptsFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
projectRootFolder="$(dirname "$scriptsFolder")"
cd $projectRootFolder
#restoring packages
dotnet restore
#running tests
dotnet test $projectRootFolder/tests/System.Ben.Tests.csproj
#building solutions
dotnet build -c Relea... | true |
3f7225b379718e25f88e5775cadc170c339b1973 | Shell | google-code/admin-scripts | /linux/ubuntu/install-beanshell | UTF-8 | 570 | 3.453125 | 3 | [] | no_license | #!/bin/sh
[ -n "$JAVA_HOME" ] || { JAVA_HOME="$(readlink -e $(which java))" && JAVA_HOME="${JAVA_HOME%%/jre/bin/java}" && JAVA_HOME="${JAVA_HOME%%/bin/java}"; }
VER="${1:-2.0b4}"
ARC="bsh-$VER.jar"
REF="http://www.beanshell.org/download.html"
DLD="$JAVA_HOME/jre/lib/ext"
OPT="-t1 --connect-timeout=5 -a $DLD/$ARC.log"... | true |
44eb8db7f5d9ea4acf364e5fdd1722419b706a07 | Shell | belak/zsh-utils | /completion/completion.plugin.zsh | UTF-8 | 2,110 | 3.359375 | 3 | [
"MIT"
] | permissive | #
# Requirements
#
if [[ "$TERM" == 'dumb' ]]; then
return 1
fi
if zstyle -T ':zsh-utils:plugins:completion' use-xdg-basedirs; then
# Ensure the cache directory exists.
_cache_dir=${XDG_CACHE_HOME:-$HOME/.cache}/zsh
[[ -d "$_cache_dir" ]] || mkdir -p "$_cache_dir"
_zcompdump="$_cache_dir/compdump"
_zcomp... | true |
2d60bfe704e3df8747aaa3bc8fb260551cd243fc | Shell | cmastalli/crocoddyl | /examples/log/update_logfiles.sh | UTF-8 | 1,378 | 3.703125 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
LOGPATH="$( cd "$(dirname "$0")" ; pwd -P )"
EXAMPLEPATH=${LOGPATH}/..
# If PYTHON_EXECUTABLE has not been set, then try to determine using `which`
if [ -z $PYTHON_EXECUTABLE ] ; then
tmp=$(which python)
if [ $? -eq 0 ] ; then
echo "Using $tmp"
PYTHON_EXECUTABLE=$tmp
else
tmp=$(which pyt... | true |
8ab55ff762db345e2e5819c2f0f3a893bf80b64c | Shell | pauldevnull/crypto-mining-utils | /mine.sh | UTF-8 | 1,215 | 3.265625 | 3 | [] | no_license | #!/bin/bash
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Missing required parameter(s): COIN, POOL"
exit 1
fi
if [ pgrep 'mine.sh' > /dev/null 2>&1 ]; then
exit 0
else
export GPU_FORCE_64BIT_PTR=0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_HEAP_SIZE=100
export GPU_MAX_ALLOC_PERCENT=... | true |
84f849ec15949b2a31dd48440032b2bc9c4dbb06 | Shell | basimar/ub_htb_scripts | /han_rorschach_archiv/make-rorschach.sh | UTF-8 | 4,390 | 3.625 | 4 | [] | no_license | #!/bin/bash
# make-rorschach.sh
# bereite Daten auf zur hierarchischen Darstellung der Archive des Rorschach Archivs
# --------------------------------------------------------------------
# Input:
# dsv05.seq
#
# Output:
# JS-Code fuer Tigra Tree Menu:
# tree_items.js (Personen)
# ------------------------... | true |
d9f0d6c1537109af73bd8f662986093bd7b7c53c | Shell | leycec/fluviol | /zsh/zeshy/zeshy.core | UTF-8 | 21,134 | 3.296875 | 3 | [] | no_license | #!/bin/zsh
# ====================[ zeshy.core ]====================
# [ Time-stamp: "2009-04-18 19:29:36 leycec" ]
#
# --------------------( SYNOPSIS )--------------------
# ZSH core functionality upon which other ZSH functionality depends, comprisin... | true |
38c01384f69c525deeaefeaeccf710624ccfa683 | Shell | hatanagayasu/itooii-api | /bin/build | UTF-8 | 316 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
target=itooii-api-1.0-SNAPSHOT
if [ -f ${target}/RUNNING_PID ]; then
kill `cat ${target}/RUNNING_PID`
fi
rm -rf $target
./activator clean dist
unzip target/universal/${target}.zip
cd $target
ln -s application-example.conf conf/application.conf
bin/itooii-api -Dconfig.file=conf/application.conf $* &
| true |
a4b6952c348b2344415ea8b7fb01d60eba6a2859 | Shell | nthomson-pivotal/pcf-paasify | /bin/cf-login.sh | UTF-8 | 435 | 2.90625 | 3 | [] | no_license | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/opsman-env.sh
cf_api_endpoint=$(terraform output cf_api_endpoint)
cf_admin_password=$(om credentials -p cf -c .uaa.admin_credentials -t json | jq -r '.password')
echo "Authenticating to CF with username 'admin' a... | true |
2c317b1c991f07b450d09820a0f866b41ba9cf46 | Shell | Gelma/misspell-fixer | /lib/initialisation_functions.sh | UTF-8 | 7,477 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
function warning {
echo "misspell-fixer: $*" >&2
}
export -f warning
function verbose {
if [[ $opt_verbose = 1 ]]; then
warning "$@"
fi
}
export -f verbose
function initialise_variables {
set -f
export LC_CTYPE=C
export LANG=C
export opt_debug=0
export op... | true |
c339a3ef6d9beffddbd873b6b9900c2c8615c9c4 | Shell | justwagle/MatrixMultiplicationHPX | /circle_ci_scripts/build-boost.sh | UTF-8 | 326 | 3.078125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
set -x
if [ ! -d "boost_1_63_0/" ]; then
wget 'http://downloads.sourceforge.net/project/boost/boost/1.63.0/boost_1_63_0.tar.bz2'
tar xf boost_1_63_0.tar.bz2
fi
if [ ! -d "boost_1_63_0_install/" ]; then
cd boost_1_63_0
./bootstrap.sh --prefix="$Boost_ROOT"
./b2 -j4 install
cd ..
... | true |
454169d771983123f165f513bb409c107011ce73 | Shell | quanzhan/pymonitor | /tags/pymonitor-v0.0.1/pym_client/package_client.sh | UTF-8 | 1,812 | 3.34375 | 3 | [] | no_license | rm -rf /root/rpmbuild;
mkdir -p /root/rpmbuild/{SPECS,SOURCES};
cat > /root/rpmbuild/SPECS/1.spec << _BAOYILUO_
Name: pym_client
Version: 1.0
Release: 1
Summary:this is a monitor client rpm!
Group: CSVT
License:GPL
URL: http://www.csvt.net
Source0: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot
... | true |
03e111fb5c32d151fc42b1fe2d3451b33c6fa8bc | Shell | ShinojEdakkara/kube-toolchain-devops-test | /mfp-appcenter/scripts/startappcentergroup.sh | UTF-8 | 18,231 | 3.53125 | 4 | [] | no_license | # Licensed Materials - Property of IBM
# 5725-I43 (C) Copyright IBM Corp. 2011, 2015. All Rights Reserved.
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#!/usr/bin/bash
usage()
{
echo
echo " Running a MobileFirst... | true |
b3aeb652ee78dda6f41b67fc3dd626fe17d5fbbf | Shell | AnnaNenarokova/ngs | /old_projects/blasto/bowtie2_tRNAseq.sh | UTF-8 | 833 | 2.78125 | 3 | [] | no_license | #!/bin/bash
threads=30
fasta="/media/4TB1/blastocrithidia/genome_assembly/bnonstop_corrected_assembly.fasta"
bt2_base="/media/4TB1/blastocrithidia/mapping/bw2_indexes/bnonstop_corrected_bw2"
file_path="/media/4TB1/blastocrithidia/mapping/p57_ill_bw2_tRNA_DNA/new_tRNA_ill_p57"
reads="/media/4TB1/blastocrithidia/reads... | true |
8b4e7aa547c130291c6ee95c7013dfb41dcaab91 | Shell | nponcian/makeIdeasMakeReality | /script/environmentVariablesExporter.sh | UTF-8 | 1,011 | 3.96875 | 4 | [] | no_license | # PURPOSE
# Exports all environment variables defined within the config file, making them available within the
# current shell and all the spawned child shells. Useful if running the django app through the
# default django provided server via manage.py runserver since the settings are already dependent
# on the environ... | true |
aee9fb79fe3b5ea821a71039333286ac72ede943 | Shell | rbenigno/packer-templates | /scripts/update.sh | UTF-8 | 441 | 3.8125 | 4 | [] | no_license | #!/bin/bash -eux
if [ -f /etc/os-release ]
then
. /etc/os-release
else
echo "ERROR: /etc/os-release not present"
exit
fi
case $NAME in
Ubuntu)
apt-get update
apt-get -qy dist-upgrade
;;
CentOS*)
yum update -y
yum clean all
;;
*)
... | true |
7e66d3c307606f07b13d0822685ca39904d46b05 | Shell | luohoufu/k8s-scripts | /node.sh | UTF-8 | 762 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
# -*- bash -*-
set -e -o pipefail -o errtrace -o functrace
# runtime env
basepath=$(cd `dirname $0`; pwd)
command_exists() {
command -v "$@" > /dev/null 2>&1
}
# check run user
if [[ ! `id -u` -eq 0 ]]; then
echo "Please run this shell by root user!"
exit 1;
fi
# check config
bas... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.