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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0e37fdf78b03203e9f86e9c9726f4ceb73405f75 | Shell | s-reimann/progressbar.sh | /progressbar.sh | UTF-8 | 1,073 | 3.921875 | 4 | [] | no_license | #!/bin/bash
#
# +-----------------------------------------------------------------------+
# | description: this script will count the number of items to process |
# | and print a progress bar. |
# | date: February 7th, 2018 |
# | author: Sascha Reimann |
# | git: https://github.com/s-reimann/progressbar.... | true |
ae8ddcdf1c52dd6daa4620d3e201372b9e2ce241 | Shell | shota-imoto/grass_chords_v2 | /db_backup_sh/execute_db_backup.sh | UTF-8 | 366 | 2.546875 | 3 | [] | no_license | #!/bin/bash
# ダンプ生成用shファイルの起動
docker container exec ec2-user_db_1 bash db_backup.sh
# ダンプをコンテナからホストにコピー
docker container cp ec2-user_db_1:/etc/mysql_backup/gc_backup.sql .
# ダンプをホストからS3にアップロード
aws s3 mv gc_backup.sql s3://grasschords-db-backup/mysql_backup/gc_backup.sql
| true |
f62f13555998fdb3bdf5a0c6357d4e350149200c | Shell | KensoDev/pig-herder | /launcher/submit-to-amazon.sh | UTF-8 | 596 | 2.96875 | 3 | [
"MIT"
] | permissive | date_string=`date -v-1d +%F`
echo "Starting process on: $date_string"
cluster_id=`aws emr create-cluster --name "$CLUSTER_NAME-$date_string" \
--log-uri s3://$BUCKET_NAME/logs/ \
--ami-version 3.8.0 \
--applications Name=Hue Name=Hive Name=Pig \
--use-default-roles --ec2-attributes KeyName=$KEY_NAME \
--ins... | true |
c4f8c43d620fe5c6a27d78dc6459e40c61662a24 | Shell | 2stacks/docker-ovpn | /bin/run | UTF-8 | 3,184 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
[ -d /dev/net ] ||
mkdir -p /dev/net
[ -c /dev/net/tun ] ||
mknod /dev/net/tun c 10 200
cd /etc/openvpn
if [ -n "${OVPN_DEBUG}" ]
then
TCPSTATUS="/tmp/openvpn-status-443.log"
UDPSTATUS="/tmp/openvpn-status-1194.log"
TCPLOG="/tmp/tcp443.log"
UDPLOG="/tmp/udp1194.log"
VER... | true |
4504fca837ca61626d994a321cbc2e4094dea48d | Shell | pskarin/pyqpgen | /makemany | UTF-8 | 369 | 2.984375 | 3 | [] | no_license | #!/bin/bash
mv .config .config.save;
for mf in $@;
do
D=$(dirname $mf);
L=$(basename $mf .m);
MK=$D/.makemany.mk;
echo LIBNAME=qp$L > $MK;
echo MFILE=$L.m >> $MK;
echo QPPROJ=$L >> $MK;
popd >/dev/null;
make CONFIG=$MK;
if [ $? -ne 0 ];
then
echo "ERROR";
mv .config.save .config;
exit 1... | true |
79c14f57abf6abfba5d51b00de47c04518acc903 | Shell | syntelos/gwtcc | /properties.sh | UTF-8 | 759 | 3.90625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Generate list of missing properties files
gwt_dir=~/src/google-web-toolkit
dev_dir=${gwt_dir}/trunk/dev
core_dir=${dev_dir}/core
list=properties.txt
rm -f ${list}
for srcd in $(find src/com/google/gwt/dev -type d )
do
tgtd=${core_dir}/${srcd}
if [ -d ${tgtd} ]
then
if flist=$(2>/... | true |
91bb550f556e929254f551472a75d86bfd67ae5a | Shell | symball/docker-quick-stack | /environment_php55_mysql_developer/usergroup.sh | UTF-8 | 643 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
USER_ID=$1
GROUP_ID=$2
# Check if the platform group exists and configure accordingly
if grep -q "^:$GROUP_ID:" /etc/group
then
echo "Modifying the group name"
groupmod -n platform $GROUP_ID
else
if grep -q "platform" /etc/group; then
echo "group exists"
el... | true |
13d956fd01bdeb0f87171ca4d493278adc1d0df3 | Shell | melezhik/sparky | /watcher.sh | UTF-8 | 329 | 2.828125 | 3 | [] | no_license | set -x
set -e
if ps uax|grep bin/sparky-web.raku|grep -v grep -q; then
echo "sparky-web already running"
else
cd ~/projects/sparky
export SPARKY_HTTP_ROOT="/sparky"
export SPARKY_ROOT=/home/rakudist/projects/RakuDist/sparky
export BAILADOR=host:0.0.0.0,port:5000
nohup raku bin/sparky-web.raku > sparky-web.... | true |
8baa22b183cbc64e00503211bdc6ee9a90ee0e28 | Shell | douglaswrg/tools_flash_cards | /scripts/adoc | UTF-8 | 1,607 | 4.40625 | 4 | [] | no_license | #!/bin/bash
EXT='html'
OUT_DIR='/tmp'
OPEN=1
QUIET=0
function strip_extension {
flength=${#1}
start=$((flength - 5))
if [[ ${1:$start:5} == '.adoc' ]]; then
echo ${1:0:$start}
else
echo 'ERROR: Only support .adoc extentions.' 1>&2
exit 1
fi
}
function usage {
bn=`basen... | true |
0349618784eb55a036d5537182bf89d5f8c60b53 | Shell | hoffmangroup/hoffutils | /bin/pickup | UTF-8 | 181 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
_PICKUPDIR="${PICKUPDIR:-$HOME/.pickup}"
rm -r ${_PICKUPDIR}
mkdir -p ${_PICKUPDIR}
for FILENAME in "$@"; do
ln -sfv "${PWD}/${FILENAME}" ${_PICKUPDIR}
done
| true |
883c2ed3668200731bf88a1e2c654f58367f8bdc | Shell | fishin/ficion | /bin/start.sh | UTF-8 | 856 | 3.25 | 3 | [] | no_license | #!/bin/bash
if [ ! -e cfg/gills_confidence.json ];
then
echo "cfg/gills_confidence.json does not exist. Please copy from gills_confidence_example.json"
exit 2
fi
if [ ! -e cfg/tacklebox_confidence.json ];
then
echo "cfg/tacklebox_confidence.json does not exist. Please copy from tacklebox_confidence_example.... | true |
14af180931b2d382e707773cb69fae1537e4a909 | Shell | bennythejudge/toolbox | /Misc/zd_attachments.sh | UTF-8 | 1,121 | 3.921875 | 4 | [] | no_license | #!/bin/bash
#set -x
export subdomain=$2
export id=$1
if [[ "$zd_user" == "" || "$zd_password" == "" ]]; then
echo "Set zd_user and zd_password in your environment"
exit 1
fi
if [[ "$1" == "" || "$2" == "" ]]; then
echo "Usage is: $(basename $0) <ticket id> <domain>"
exit 1
fi
# get the list of file
echo "Executi... | true |
0beed3d434b55ddbd436d0d98ba28ed39646441d | Shell | fqez/common | /jails/bin/newjail | UTF-8 | 1,119 | 3.765625 | 4 | [] | no_license | #!/bin/bash
if [ $# != 4 ]
then
echo "usage: newjail.sh so ver arch name"
echo "example: newjail.sh ubuntu trusty amd64 trusty"
exit -1
fi
so=$1
ver=$2
arch=$3
name=$4
jailpath="/usr/local/share/jails"
pathdest="/var/chroot/$name"
if [ ! -d $pathdest ]
then
url="http://archive.ubuntu.com/ubuntu"
if [ "$so" = "... | true |
03c1b49cd5384de314114b1d2065539e05d83767 | Shell | sameergk/REINFORCE_SOURCE | /examples/flow_table/go.sh | UTF-8 | 507 | 2.96875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
cpu=$1
service=$2
print=$3
if [ -z $service ]
then
echo "$0 [cpu-list] [Service ID] [PRINT]"
echo "$0 3,4 1 --> cores 3,4 with Service ID of 1"
echo "$0 3,4 1 10000 --> cores 3,4 with Service ID of 1 and print rate of 10000 packets"
exit 1
fi
if [ -z $print ]
then
sudo ./flow_ta... | true |
cee30c4108bb095748d468850043ac96bfb24c2f | Shell | alexsuslov/dotfiles | /node.sh | UTF-8 | 1,349 | 2.75 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-inst... | true |
dbe7803ff3449c9d5e3e03286ca9b29bbf5473ba | Shell | andytanoko/4.2.x_integration | /GTAS/GridTalk/rollout/solaris_sparcv/setup.sh | UTF-8 | 2,371 | 3.375 | 3 | [] | no_license | #!/bin/bash
logfile=$HOME/GridTalk_setup.log
if [ -d $1 ]; then
cd $1
echo [setup] Changed directory to $1 >> $logfile
fi
echo [setup] before setenv >> $logfile
. ./setenv.sh
echo [setup] after setenv `set` >> $logfile
# application server environment settings
properties=
#properties=-Dappserver.name=jboss
#prop... | true |
76203d32fb51ab6731dc818b724e124194a7c98f | Shell | deepikabartwal/shellScripts | /underlinerl.sh | UTF-8 | 111 | 2.984375 | 3 | [] | no_license | #! /bin/bash
input="kanishka keerthy reshmi"
underscore=$(echo "$input" | tr "[a-z]" "_" | tr " " "_")
echo "$underscore"
| true |
f3ee04c4cd2d548da2b9130d49b0fba6631f2a98 | Shell | otus-kuber-2019-06/SergeSpinoza_platform | /kubernetes-vault/vault-guides/identity/vault-chef-approle/terraform-aws/mgmt-node/templates/userdata-mgmt-node.tpl | UTF-8 | 9,906 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -x
exec > >(tee /var/log/tf-user-data.log|logger -t user-data ) 2>&1
logger() {
DT=$(date '+%Y/%m/%d %H:%M:%S')
echo "$DT $0: $1"
}
logger "Running"
##--------------------------------------------------------------------
## Variables
# Get Public IP address
PRIVATE_DNS=$(curl http://169.2... | true |
4fdab9ce0ec8e9b4db474b89241c2423b77cb7b2 | Shell | poonamgp14/Operationalize_Microservices | /run_docker.sh | UTF-8 | 583 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env bash
## Complete the following steps to get Docker running locally
# Step 1:
# Build image and add a descriptive tag
docker build --tag=machlearning .
# Step 2:
# List docker images
docker image ls
# Step 3:
# Run flask app
# mapping the port 4000 to the container exposed port 80
# You should see a ... | true |
0db0c9aa3d06aac0081f3887810a883bc0dc400b | Shell | ijaxon/test-vagrant | /bin/minion_bootstrap.sh | UTF-8 | 570 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
sudo add-apt-repository -y ppa:saltstack/salt
sudo apt-get update
sudo apt-get -y install salt-minion
cat <<EOF >/etc/salt/minion
# The user to run salt.
user: root
file_client: local
environment: development
file_roots:
base:
- /srv/salt/base
development:
- /srv/salt/development
pro... | true |
e3f1bfdfea15627eb8e179cbae4813d151005110 | Shell | ShuoWangNSL/prism-rust | /testbed/scripts/start-algorand-transaction.sh | UTF-8 | 260 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/bash
for script in /home/ubuntu/payload/algorand-startup/*.sh; do
[ -f "$script" ] || continue
node_name=`basename $script .sh`
nohup /home/ubuntu/payload/binary/algorand gentx -rate $1 -node $node_name > /home/ubuntu/log/$node_name-tx.log &
done
| true |
d4e0562e87e48ebc9dbf427452c141032d38b661 | Shell | SLO42/init | /init/scripts/4 | UTF-8 | 291 | 2.921875 | 3 | [] | no_license | #!/bin/bash
controlStat=$(stat -c %Y "/etc/crontab")
while sleep 1; do liveStat=$(stat -c %Y "/etc/crontab")
if [[ $liveStat != $controlStat ]]; then echo "MODIFIED" | mutt -s "file was modified" root@localhost < /dev/null; break; fi
done
echo "0 0 * * * ./Path/To/File/$0 &" | crontab | true |
b3e6dc6d4fc3cb86da814fb38ca0110367de6d5f | Shell | InnovAnon-Inc/CIS | /test | UTF-8 | 474 | 3.03125 | 3 | [
"Unlicense",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #! /bin/bash
set -exo nounset
DIR=`mktemp -d`
trap "rm $V -rf $DIR" 0
for k in "$EXEC" $DATA ; do
test -f $PKG$k.txz || continue
tar ${V}xpf $PKG$k.txz -C $DIR
done
TEST_PATH=
for k in $DIR/{usr/{local/,},}{s,}bin ; do
test -d $DIR/$k || continue
TEST_PATH=$DIR/$k:$TEST_PATH
done
if test x$TEST_PATH == x ; then... | true |
71e7e4844b5a491d7664808c994284632da4a27b | Shell | jpalardy/dotfiles | /bin/zcomp | UTF-8 | 373 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
(
echo "original $(wc -c < "$@")"
for level in 1 5 9; do
echo ""
echo "gzip -$level $(gzip -$level -c - < "$@" | wc -c)"
echo "bzip2 -$level $(bzip2 -$level -c - < "$@" | wc -c)"
echo "xz -$level $(xz -$level -c - < "$@" | wc -c)"
done
) | awk '
NR == 1 {original=$2}
NF == 0 { print ""; nex... | true |
783807ad776ec837af69c579726aa7a080bb2402 | Shell | Nutrient/lfs | /src/cross-toolchain/15-make-gzip.sh | UTF-8 | 213 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -e
tar -xf gzip-*.tar.xz
pushd gzip-*/
./configure \
--prefix=/usr \
--host=$LFS_TGT
make
make DESTDIR=$LFS install
mv -v $LFS/usr/bin/gzip $LFS/bin
popd
# Clean up
rm -rf gzip-*/
| true |
ed159d1faea1d9fecb1d350d33e01a38bfa08bef | Shell | ImperadorSid/installer-scripts | /Development/Rust/rust.sh | UTF-8 | 279 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env bash
curl -s https://sh.rustup.rs | sh -s -- --no-modify-path -y
CUR_PATH=$(fish -c 'echo $fish_user_paths')
CARGO_BIN=~/.cargo/bin
[[ "$CUR_PATH" != *"$CARGO_BIN"* ]] && fish -c "set -p fish_user_paths $CARGO_BIN"
$CARGO_BIN/cargo install $(cat packages.txt)
| true |
f7da2364dcb64a62b0a5f64b61f2ba2338fea150 | Shell | RonitNayak25/Shell-Scripts | /LabExperiments/15.sh | UTF-8 | 226 | 3.25 | 3 | [] | no_license | # Write a shell program to evaluate the operation 12+22+32+......+n2
echo "Enter the limit for 12+22+32+......+n2: "
read n
sum=0
for((i=1;i<=n;i++))
do
p=`expr $i \* 10`
sum=`expr $sum + $p + 2`
done
echo "Ans= $sum" | true |
3f381ea45a44ab03aed59fe90e19359aaa9c9c35 | Shell | jeongheon81/gsdc-eos-docker | /playbooks/roles/eos-docker-builder/files/image_scripts/eos_mgm_fs_setup.sh | UTF-8 | 905 | 3.609375 | 4 | [] | no_license | #!/usr/bin/env bash
n_fst=7
[[ $# -ne 0 ]] && n_fst=$1
# Enable default space with quota disabled
eos -b space set default on
eos -b space quota default off
echo "Wait for FSTs to become online ..."
for i in `seq 1 30`; do
if [ `eos fs ls | grep online | wc -l` -eq $n_fst ]; then
echo "All FSTs are online"
... | true |
ff05b061ba428c9b27d3b9b2ca6020c79d504ec1 | Shell | linghuiliu/CosmiTestLCIO | /calice_cddata/dbfillExamples/.svn/text-base/pushListOfCalibMeasurementsToDB.sh.svn-base | UTF-8 | 590 | 3.046875 | 3 | [] | no_license | #!/bin/zsh
# mip / gain
#runList=( $(ls mip_single | cut -d n -f 2 | cut -d c -f 1) )
#runList=( $( ls -l mip_single/*clearFit.txt | awk '{ if ($7 > 18) print $9}' | cut -d\/ -f2 | cut -d n -f 2 | cut -d c -f 1 ) )
#
#for run in $runList; do
# pushMIPtoDB.sh $run
#done;
# ic
fileList=( $( ls -l ic_single/*.dat ... | true |
0d3a4a47093c895215d4d7981797872cff6a690b | Shell | NERSC/tokio-abc | /run-wrapper-cori-knl-cscratch.sh | UTF-8 | 762 | 2.9375 | 3 | [
"BSD-3-Clause-LBNL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# This submit script is intended to be submitted from the repository's base dir.
#
#SBATCH -J tokio-abc-cori-knl-cscratch
#SBATCH -N 256
#SBATCH -p debug
#SBATCH -t 00:30:00
#SBATCH -C knl
#SBATCH -A m888
i=0
today=$(date "+%Y-%m-%d")
output_base_dir="${SLURM_SUBMIT_DIR}/runs.${NERSC_HOST}.$today"
while ... | true |
feaefe1896daae7f6b31149b82cc328403614cc0 | Shell | weltonrodrigo/pdfa-converter | /convert.sh | UTF-8 | 273 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#set -x
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
INFILE="${1}"
OUTFILE="PDFA-${1}"
./gs-919-linux_x86_64 -dPDFA=1 -dNOOUTERSAVE -sProcessColorModel=DeviceRGB -sDEVICE=pdfwrite -o $OUTFILE ${DIR}/PDFA_def.ps -dPDFACompatibilityPolicy=1 $INFILE
| true |
c9187fea64b300a8c3ff975babc50adb4aa9dc61 | Shell | COSMOS-ASMC/ShowerMC | /Cosmos9.00/UserHook/D-Skel/FleshHist/setupenvcls.sh | UTF-8 | 3,378 | 2.765625 | 3 | [] | no_license | #!/bin/bash
### don't touch next line. test is needed for sge job.
test $# -eq 0 && source ../confirm.inc
source ../setupenvcls.sh
TOPDIR=$COSMOSTOP/UserHook/$ARENA
export TOPDIR
# id emmbeded in the command name as mentioned above. must not start with
# number for sge jobs.
EXECID=qgsp17cos1.000... | true |
eeeb51f12441986b78221f1d550bd25fcd69606f | Shell | sharils/home | /shell_plugins/x/tz.sh | UTF-8 | 835 | 3.8125 | 4 | [
"Unlicense"
] | permissive | #!/usr/bin/env sh
tz() {
cmd="$1"
shift
if [ "$cmd" = pdt ]; then
cmd=PST8PDT
elif [ "$cmd" = mdt ]; then
cmd=MST7MDT
elif [ "$cmd" = cdt ]; then
cmd=CST6CDT
elif [ "$cmd" = edt ]; then
cmd=EST5EDT
fi
if [ -n "$cmd" ] && realpath -q "/usr/share/zoneinfo/$cmd" >/d... | true |
78ed05bfec53cbe66d36aeabb25606347a6abcfb | Shell | theodi/eduroam-freeradius | /eapol_test/run-tests.sh | UTF-8 | 721 | 2.53125 | 3 | [] | no_license | #!/bin/bash
echo ""
echo "Running local eap-ttls test"
./bin/eapol_test -c eap-ttls.conf -s localsecret > /dev/null
if [ $? -eq 0 ]
then
echo "SUCCESS"
else
echo "FAILED"
fi
echo ""
echo "Running local peap-mschapv2 test"
./bin/eapol_test -c peap-mschapv2.conf -s localsecret > /dev/null
if [ $? -eq 0 ]
then
echo ... | true |
78596db62afde0f254e8436a03ea45fd69e95254 | Shell | gearysystems/mockupgem | /frontend/tests/test_screenshots.sh | UTF-8 | 1,610 | 2.84375 | 3 | [] | no_license | # !/bin/bash
URL=localhost:3000
if [ "$PRODUCTION" == "true" ]
then
URL=http://mockupgem.gearysystems.com
fi
SAMPLE_IMAGE=$1
if ["$SAMPLE_IMAGE" == ""]
then
SAMPLE_IMAGE=screenshot.png
fi
LARGE_IMAGE=IMG_0576.PNG
VALID_UUID=5415ee81-e5ce-4e84-892f-ae85e4e76d0b
# TODO: Handle case where they submit empty form
ec... | true |
5a383ac0e709b9d4f7fa8c95508e4dec46dbb8dd | Shell | hpreston/mantl_cicd | /archive/install-gitlab.sh | UTF-8 | 2,267 | 3.53125 | 4 | [] | no_license | #! /bin/bash
[ -z "$MANTL_CONTROL" ] && echo "Please run 'source setup' to set Environment Variables" && exit 1;
[ -z "$MANTL_USER" ] && echo "Please run 'source setup' to set Environment Variables" && exit 1;
[ -z "$MANTL_PASSWORD" ] && echo "Please run 'source setup' to set Environment Variables" && exit 1;
[ -z "$M... | true |
67ccaf5ffdedc071a10a012e82cc3d20b7bbcf9f | Shell | hke/quiet | /src/scripts/rundiffmaps.sh | UTF-8 | 870 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# this creates difference maps, and differenced noise pixels files for any set of .a,.b files in the
# directory you run it in
for i in *a_map.fits; do
filea=$i
bam=`echo $i | cut -d'.' -f1`
fileb=$bam.b_map.fits
if [ -f $fileb ]; then
diffmap=$bam.diff_map.fits
echo 'differen... | true |
29992e258c0f0ff02f167ac614dd40901db33674 | Shell | roshnet/tagger | /tagger.sh | UTF-8 | 442 | 2.9375 | 3 | [] | no_license | #! /bin/bash
. ./util_init.sh
. ./proc_end.sh
. ./proc_tagfile.sh
execute ()
{
if [ $# -lt 1 ]
then
end_proc
fi
if [ "$1"="init" ]
then
if [ "$2"="--hard" ]
then
force_init
else
safe_init
fi
elif [ "$1"="tag" ]
then
... | true |
79f0a80e24909fc646d71635278755659824e481 | Shell | sigenae/RNArefinery | /shell/do_filter_new.sh | UTF-8 | 3,773 | 3.3125 | 3 | [] | no_license | #!/bin/sh
# Sample shell script to perform filtering
echo "Reading refinery config..." >&2
source refinery.properties
#
# parse command line args
#
while [[ $# > 1 ]]
do
key="$1"
case $key in
-s|--searchpath)
SEARCHPATH="$2"
shift # past argument
;;
--default)
DEFAULT=YES
;;
*)
... | true |
4f29c724f66e8a309444ffd594089e9f42b80315 | Shell | VINAYCS18/UnixLab | /0_calc.sh | UTF-8 | 187 | 2.734375 | 3 | [] | no_license | echo "enter two numbers"
read a
read b
echo "addition"
expr $a + $b
echo "subtraction"
expr $a - $b
echo "product"
expr $a \* $b
echo "division"
expr $a / $b
echo "modulous"
expr $a % $b
| true |
3758bf73c5244e0f04ab027194bd37e3583447e8 | Shell | harrifeng/system-config | /lib/jkd/select-project | UTF-8 | 232 | 2.515625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/usr/bin/env bash
set -e
select-output-line -i "$*" \
"-O" "select-jira-project" "-p" "Which project do you want to use?" \
'jkd rest project | jkd rest project|jq ".[]|\"\(.key): \(.name)\"" -r' |
pn 1 | tr -d ':\n'
| true |
688877558719c234e91a2030df52b99388d87d0f | Shell | mpolatcan/robodock | /docker-latest.sh | UTF-8 | 432 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Install Docker Engine
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
# Install ... | true |
0053fe8286b400c28241417a5e19a7f773942df2 | Shell | aaronlaver/docker-qgis-build | /scripts/build-arm.sh | UTF-8 | 1,369 | 3.375 | 3 | [] | no_license | #!/bin/bash
set -xe
BUILD_THREADS=${BUILD_THREADS:-8}
## Clone qgis if requested
if [[ ! -z $QGIS_CLONE ]]; then
echo "Cloning Qgis $QGIS_CLONE"
git clone --depth 1 -b $QGIS_CLONE git://github.com/qgis/QGIS.git /src
cd /src
GIT_BRANCH=$QGIS_CLONE
else
GIT_BRANCH=$(basename `git rev-parse --abbrev-ref HEAD`)
fi
SR... | true |
66c37f280d889341e096043cb492abb25fced6fb | Shell | jerryz920/SAFE | /configure | UTF-8 | 1,975 | 2.796875 | 3 | [] | no_license | #!/bin/bash
SDXSERVER="http://152.3.136.36:8080/"
RIAKSERVER="147.72.248.6"
SSHKEY="~/.ssh/id_rsa"
EXOGENIPEM="~/.ssl/geni-yuanjuny.pem"
SDXNAME="sdx"
ALICENAME="c1"
BOBNAME="c2"
SDXSAFEKEY="bphJZn3RJBnNqoCZk6k9SBD8mwSb054PXbwV7HpE80E"
ALICESAFEKEY="V1F2853Nq8V304Yb_GInYaWTgVqmBsQwC0tXWuNmmf8"
BOBSAFEKEY="UIz4bXT7accig... | true |
02f508b04fdc3276da13554f55663122af2706e3 | Shell | Fuangwith-Bkk/WebinarQuarkus | /Init/3.Postgresql/create_postgresql.sh | UTF-8 | 903 | 3.390625 | 3 | [] | no_license | #!/bin/sh
oc login -u user1
oc new-project demo-s2i
echo "Create PostgreSQL for Freelancer Service"
oc process -f postgresql-ephemeral.yml \
-p DATABASE_SERVICE_NAME=freelancer-db \
-p POSTGRESQL_USER=dbuser \
-p POSTGRESQL_PASSWORD=password \
-p POSTGRESQL_DATABASE=sampledb | oc create -f -
echo "Wait for pod to st... | true |
51554c8f9ab6b5f67e21f927ac0eaf38684cbad5 | Shell | wook2014/relate | /old_versions/relate_v1.1.1_x86_64_dynamic/scripts/RelateSGE/MakeChunks.sh | UTF-8 | 1,927 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#$ -V
#$ -j y
echo "***********************************************"
echo "SGE job ID: "$JOB_ID
echo "SGE task ID: "$SGE_TASK_ID
echo "Run on host: "`hostname`
echo "Operating system: "`uname -s`
echo "Username: "`whoami`
echo "Started at: "`date`
echo "***********************************************"
##... | true |
c9fbf28ace48d7b78632c2c381ce8d178a218073 | Shell | emuikernel/BDXDaq | /devel/coda/src/scripts/init_level2 | UTF-8 | 287 | 2.875 | 3 | [] | no_license | #!/bin/sh
#\
exec /usr/bin/wish -f "$0" ${1+"$@"}
#
# init_level2
# set TS level2 variable to 0
if { [llength $argv] != 0 } {
set roc $argv
} else {
set roc "clastrig2"
}
set err [catch {set status [exec tcpClient $roc reset_ts_level2]}]
if {$err!=0} {exit $err} else {exit 0}
| true |
32f18800c958ca1a1ed162620fb01f96ba335859 | Shell | tokazio/musicfile-manager | /mp3lib/src/entagged/entagged-build-resources/misc/entagged.sh | UTF-8 | 898 | 3.890625 | 4 | [] | no_license | #!/bin/sh
#Entagged launch script to be placed in /usr/bin or something
#renamed to entagged if possible...
#These two variables have to be setup during installation process
#to reflect the program installation directory (eg. "/usr/share/entagged")
#and version number (eg. "0.15")
PROGRAM_DIR=##PROGRAM_DIR##
PROGRAM_... | true |
7d7536cd5abea0ed0d0d57efd71aac250e25ffff | Shell | malvery/dotfiles | /bin/tmux-workspace.sh | UTF-8 | 308 | 3.21875 | 3 | [] | no_license | #!/bin/bash
if [ -z "$1" ]; then
tmux attach -t 0 && exit 0
tmux new-session -d -s 0
# tmux split-window -h
# tmux split-window -v
# tmux selectp -t 0
tmux -2 attach-session -d
else
ls $1 &> /dev/null || exit 2
TARGET=${1%/}
tmux attach -t $TARGET || tmux new -t $TARGET -c $TARGET
fi
| true |
b9e503f3934aef17f7cbf30b9987b6484ba432e5 | Shell | kuptservol/sphinx-management-console | /ansible/distrib/bin/sphinx-console-agent.j2 | UTF-8 | 390 | 2.625 | 3 | [] | no_license | #!/bin/bash
# description: sphinx-console Start Stop Restart
# processname: sphinx-console-agent
# chkconfig: 234 20 80
sphinx-console_HOME={{sphinx-console_path}}
case $1 in
start)
sh $sphinx-console_HOME/bin/start-agent.sh
;;
stop)
sh $sphinx-console_HOME/bin/stop-agent.sh
;;
restart)
sh $sphinx-console_HOME/bin/sto... | true |
36302cefe98fcd9aac796898b39e272d8f7c0976 | Shell | dustinliddick/elk | /rasmussen/install/prod_kibana3_node.sh | UTF-8 | 4,081 | 3.25 | 3 | [] | no_license | #!/bin/bash
set -e
# Setup logging directories
mkdir -p /opt/collegis/software/logstash
# Logs stderr and stdout to separate files.
exec 2> >(tee "/opt/collegis/software/logstash/kibana.err")
exec 1> >(tee "/opt/collegis/software/logstash/kibana.log")
# Register server with satellite
curl http://il1satsvr01.deltakedu... | true |
686497054c2870a6dbcdb9e8eb2de09c28ac3f25 | Shell | lxd2502/danhuang | /public/nsConfig/1process.sh | UTF-8 | 3,615 | 3.609375 | 4 | [] | no_license | #!/bin/bash
# Download the H.264 video (lossless H.264 encoded) from "http://www2.tkn.tu-berlin.de/research/evalvid/cif.html"
# http://csie.nqu.edu.tw/smallko/ns2_old/myevalvid2.htm
# http://csie.nqu.edu.tw/smallko/ns2/myEvalvid.htm
# http://csie.nqu.edu.tw/smallko/ns2_old/Evalvid_in_NS2.htm
# http://www2.tkn.tu-berlin... | true |
5531baf5d2f444494ad6df712eae2f14fddc00ea | Shell | smukher2/GithubScientificReportsGlioblastomaStemApril2020 | /RNAseqASUcyverseClusterResultsScript/GSE70696_RNA-seq_NCBIgenome_pipeline_rat.sh | UTF-8 | 3,543 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#
################This script is for GSE70696################
#Run this script in a new directory
#mkdir GSE70696
#This script assumes all the tools are in your path. If not specify the path of your tools.
#'rnor6_ensemble_seq_whole_genome.fa' renamed and indexed as 'Rnor6.fa' by tophat and bowtie2 above... | true |
7188b34a2b7dbbd4c31dc681db661c0d646390ec | Shell | mffrench/fabric-ca | /scripts/fvt/enroll.sh | UTF-8 | 1,888 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
FABRIC_CA="$GOPATH/src/github.com/hyperledger/fabric-ca"
FABRIC_CAEXEC="$FABRIC_CA/bin/fabric-ca"
TESTDATA="$FABRIC_CA/testdata"
SCRIPTDIR="$FABRIC_CA/scripts/fvt"
. $SCRIPTDIR/fabric-ca_utils
HOST="http://localhost:8888"
RC=0
$($FABRIC_TLS) && HOST="https://localhost:8888"
while getopts "du:p:t:l:x:" opti... | true |
3be311bf52b49415b719794e8a09772f852bfccf | Shell | delkyd/alfheim_linux-PKGBUILDS | /rgbds-git/PKGBUILD | UTF-8 | 835 | 2.796875 | 3 | [] | no_license | # Maintainer: Jaume <jaume@delclos.com>
pkgname=rgbds-git
pkgver=v0.0.2.r25.g3ecd169
pkgrel=1
pkgdesc="Rednex GameBoy Development System"
arch=('i686' 'x86_64')
url="https://github.com/bentley/rgbds/"
license=('custom')
depends=('glibc')
makedepends=('git' 'gcc' 'bison')
source=("$pkgname::git+https://github.com/bentle... | true |
773cdab633942fd075ab91e1fcff45aea06d0826 | Shell | edlanglois/dotfiles | /src/config/i3blocks/scripts/gpu-usage | UTF-8 | 598 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# usage: gpu-usage [NUM_GPUS [WARNING_THRESHOLD [CRITICAL_THRESHOLD]]]
set -eu
NUM_GPUS=${1:-1}
WARNING_THRESHOLD=${2:-200}
ERROR_THRESHOLD=${3:-200}
for ((ID=0;ID<NUM_GPUS;ID++)); do
PCT_USAGE="$(nvidia-smi --query-gpu=utilization.gpu --format=csv,nounits,noheader --id="$ID")"
FG=""
if [ "$PCT... | true |
cfe25f2ee7256bb936238907953c508583836cb6 | Shell | laristra/flecsi | /tools/find_guard | UTF-8 | 156 | 2.65625 | 3 | [
"BSD-2-Clause"
] | permissive | #! /usr/bin/env bash
cwd=`pwd`
guard="flecsi_"`echo $cwd | sed 's,^.*\/flecsi,,g'"_"`$1"_h"
echo $guard
guard=`echo $guard | sed 's,\/,_,g'`
echo $guard
| true |
43fddbf61818fa6112b89e7ab5259a3a2e498015 | Shell | mkoskar/pkgbuilds | /aur/edid-decode-git/PKGBUILD | UTF-8 | 769 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | # Maintainer: Jonathan Liu <net147@gmail.com>
pkgname=edid-decode-git
_gitname=edid-decode
pkgver=r652.e48fb38
pkgrel=1
pkgdesc="EDID decoder and conformance tester"
url="https://git.linuxtv.org/edid-decode.git/"
arch=('i686' 'x86_64')
license=('MIT')
depends=('gcc-libs')
makedepends=('git')
provides=('edid-decode')
so... | true |
63349e62591477ae662a7844826fafb036233a88 | Shell | sqrtroot/Observatory | /install.sh | UTF-8 | 5,271 | 3.203125 | 3 | [] | no_license | #!/bin/bash
set -e
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
software(){
figlet Software
# ____ __ _
#/ ___| ___ / _| |___ ____ _ _ __ ___
#\___ \ / _ \| |_| __\ \ /\ / / _` | '__/ _ \
# _... | true |
960256312c8706fbcfd62b6ea190c8223cef1362 | Shell | t0nik0/tmux | /dracula.tmux | UTF-8 | 208 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Author: Dane Williams
# a theme for tmux inspired by dracula
# source and run dracula theme
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
$current_dir/scripts/dracula.sh
| true |
b7270d58271016282dd400500c035d35970f435c | Shell | sroycode/identt | /test/test_store_invite.sh | UTF-8 | 648 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
export SRCDIR=$(dirname $(cd ${0%/*} 2>>/dev/null ; echo `pwd`/${0##*/}))
export SRCFIL=$(basename $(cd ${0%/*} 2>>/dev/null ; echo `pwd`/${0##*/}))
. ${SRCDIR}/config.sh
## ---- variables
export medium=${medium:="msisdn"};
export address=${address:="919999999991"};
export room_id=${room_id:="@12345"};
exp... | true |
adad787dae60aeb78273d70ad67bbb420c58e690 | Shell | benevolence-doctor/sunny_shell | /scripts/totle.sh | UTF-8 | 1,397 | 3 | 3 | [] | no_license | #!/bin/bash
TIME=$(date -d "1 days ago" +%Y-%m-%d)
#TIME="2014-07-31"
for dir in `cat /opt/dir.txt`
do
/bin/mkdir "$dir"/"$TIME"/test
/bin/tar -zxvf "$dir"/"$TIME"/*"$TIME".tar.gz -C "$dir"/"$TIME"/test
/bin/ls "$dir"/"$TIME"/test >/opt/file.log
for num2 in `cat /opt/file.log`
... | true |
825f3a585476c26537cdaf2fc34ec44c291ad9ff | Shell | croesch/beefiles | /src/maven-repository-houskeeping.sh | UTF-8 | 1,205 | 3.390625 | 3 | [
"Beerware"
] | permissive | #!/bin/bash
LOGNAME=maven-housekeeping.log
LOGFILE="/var/log/${LOGNAME}"
AGE=36
if [ "$#" -eq 1 ]
then
LOGFILE="${1}"
fi
date >> ${LOGFILE}
echo "------------------------------------------------------------------------" >> ${LOGFILE}
if [ -z "${M2_REPO}" ]
then
M2_REPO=$(mvn help:evaluate -Dexpression=settings... | true |
df21a8cceecbe03a4faa03024da17ada0d9a1510 | Shell | JanLunge/wAI | /wlardinstall.sh | UTF-8 | 2,698 | 3.59375 | 4 | [] | no_license | #!/bin/bash
arch_chroot() { #{{{
arch-chroot $MOUNTPOINT /bin/bash -c "${1}"
}
function mirrors() {
url="https://www.archlinux.org/mirrorlist/?country=DE&use_mirror_status=on"
tmpfile=$(mktemp --suffix=-mirrorlist)
# Get latest mirror list and save to tmpfile
curl -so ${tmpfile} ${url}
sed -i 's/^#Serv... | true |
f77d8f13c88e674f6099087234962cfca58fcd18 | Shell | aldinh777/game-kejar-pencury | /compile.sh | UTF-8 | 627 | 3.4375 | 3 | [] | no_license | JSINPUTLOCATION="scripts/main.js"
JSOUTPUTLOCATION="public/javascripts/bundle.min.js"
function testerror {
if [ $1 -ne 0 ]
then
echo $2
exit $1
fi
}
function broserifying {
echo "broserifying"
browserify $JSINPUTLOCATION -o $JSOUTPUTLOCATION
testerror $? "Error At Browserify"
}
function uglifying {
echo "... | true |
1f91c790a28f7824d815bb40b89379a9495ee978 | Shell | alienth/dotfiles | /.zprofile | UTF-8 | 1,802 | 3.46875 | 3 | [] | no_license | # Stop here if we aren't interactive
[[ ! -o interactive ]] && return
# I'd like to use the window-title functions I've written, but they aren't
# loaded here yet. Loading that file itself in a login shell would be
# problematic.
if [[ -f ~/.window-name ]]; then
echo -ne "\e]2;$(cat ~/.window-name)\a"
fi;
if [[ $TE... | true |
1ec4db94a1064eb99c453dd9c93093f8e4dc05dc | Shell | JustinPainter/dotfiles | /.zshenv | UTF-8 | 2,022 | 2.984375 | 3 | [] | no_license | #!/bin/zsh
# Fill $PATH with useful things
# coreutils [/usr/local/opt/coreutils/libexec/gnubin]
# bin for Go [/usr/local/opt/go/libexec/bin]
# scmtool for RTC [/Users/jlpainte/Library/Jazz/scmtools/eclipse]
# local sbin [/usr/local/sbin]
# $HOME bin [$HOME/bin]
export JAVA_HOME=/Library/Ja... | true |
422e0c7313abdf723eda7e1e7bd9b3cdf849a0a8 | Shell | ChanJeunlam/geocomputing | /snap/02_array_job/snap_array_job.sh | UTF-8 | 1,376 | 3.078125 | 3 | [] | no_license | #!/bin/bash -l
#SBATCH --job-name=snap_array_job
#SBATCH --output=out_%A_%a.txt
#SBATCH --error=err_%A_%a.txt
#SBATCH --account=project_2000599
#SBATCH --partition=small
#SBATCH --time=02:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --mem=8000
#SBATCH --array=1-3
#SBATCH --gres=nvme:10
### Load SNAP modu... | true |
af0db5a1517ba59f994f7b64be1f0a5cefe878c2 | Shell | PolymerLabs/uni-virtualizer | /scripts/deploy-examples.sh | UTF-8 | 560 | 3.265625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# Create a new worktree at `gh-pages/`
if ! git worktree add gh-pages ; then
git worktree remove gh-pages
git worktree add gh-pages
fi
# Clean it out
rm -rf gh-pages/*
# Build uni-virtualizer-examples and copy the build into the gh-pages worktree
npm run build --prefix packages/uni-virtualize... | true |
6d92ee0227885f545b952195fd4425408491ce1f | Shell | gogog22510/Ptt-backend | /testing-script/C3-1-3.sh | UTF-8 | 425 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# C3-1-2
# 以 SYSOP 帳號登入之後, POST /v1/boards board_id=testboard01 title=TestBoard 後取得看板列表可以看到 testboard01 看板
ACCESS_TOKEN=`./get_sysop_token.sh`
result=`curl -s http://localhost:8081/v1/boards -H "Authorization: bearer $ACCESS_TOKEN"`
echo "SYSOP"
echo $result | jq '.data[] | select(.id=="SYSOP")'
echo "p... | true |
86d960dc076b1b244d72e671542eb3ba61f5c7bc | Shell | swift-embedded/swift | /utils/baremetal/build-qemu | UTF-8 | 1,156 | 3.59375 | 4 | [
"Apache-2.0",
"Swift-exception"
] | permissive | #!/usr/bin/env bash
set -e
LOCAL_DIR="$(cd "$(dirname "$0")" && pwd)"
SWIFT_PATH="$( cd "$(dirname "$0")/../../.." && pwd )"
QEMU_REMOTE="https://github.com/qemu/qemu.git"
QEMU_DIR="$SWIFT_PATH/qemu"
QEMU_COMMIT="808ebd66e467f77c0d1f8c6346235f81e9c99cf2"
if [ -f "$QEMU_DIR/build/arm-softmmu/qemu-system-arm" ] ; then
... | true |
28db3a5d421e9a2ad386a937fe3c0b0c528be4a8 | Shell | Lertsenem/workpile | /libexec/workpile-push | UTF-8 | 705 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage: workpile push [<taskname>]
# Summary: Push a task on the pile
# Help: This will push a tasks on the pile.
# IMPORTS
########################################
. "$_WORKPILE_ROOT/lib/workpile.ini"
. "$_WORKPILE_ROOT/lib/generic.cst"
. "$_WORKPILE_ROOT/lib/workpile.cst"
. "$_WORKPILE_ROOT/li... | true |
d957a841b09e092313b4e62266a906a5232d8a36 | Shell | dinhnguyen7025/example-using-sqs-with-localstack | /scripts/update-lambda-func-code.sh | UTF-8 | 307 | 3 | 3 | [] | no_license | #!/bin/sh
for filename in ./bin/*; do
[ -e "$filename" ] || continue
# gz and update lambda function code
zip ${filename}.zip ${filename}
awslocal lambda update-function-code --function-name=custom-lambda --zip-file fileb://bin/custom.zip
# delete gz file
rm ${filename}.zip
done
| true |
93b879e435a69a1bac10e6a87c7b5213d6414aa5 | Shell | Cr0wn-Gh0ul/Bash_Scripts | /MAP_FILE_TO_IMG.sh | UTF-8 | 853 | 3.265625 | 3 | [] | no_license | #!/bin/bash
#USAGE: ./MAP_TO_IMG.sh {IMAGE_FILE} {FILE_TO_MAP}
$(xxd -p $2 > ./hex_tmp)
$(xxd -p $1 > ./img_hex)
$(mkdir ./Music)
#COUNTER=1
OPS=1
POS=2
CURRENT_LINE=1
EOF_LINE=$(wc -l < ./hex_tmp)
EOF_BYTE=$(tail -n1 ./hex_tmp | wc -c)
while true; do
if [[ $OPS -lt 31 ]]; then
if [[ $CURRENT_LINE == $EOF_LINE ]] ... | true |
7b18698a84b53d8aae7913b249a9f70bb0a69b74 | Shell | jamesy0ung/raspberrypi-scripts | /setup_clean | UTF-8 | 443 | 2.640625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# This software is licensed under the BSD-2-Clause license
# Copyright (c) 2017, James Young
# All rights reserved.
# Before executing, run: chmod +x setup
if [[ $EUID -ne 0 ]]; then
echo "This script is intended to be run as root" 2>&1
exit 1
else
apt-get purge bluej geany dillo epiphany-browser epip... | true |
bba354086a1e6899c94d50dcf6002701acafd4e9 | Shell | neurosys/Scripts | /sf | UTF-8 | 93 | 2.5625 | 3 | [] | no_license | #!/usr/bin/env bash
if [[ -n $1 ]]
then
surf $1
else
surf https://duckduckgo.com
fi
| true |
d4471102d2a63060ea4d424f7084adb3d43f75d5 | Shell | joseHbernardino/Shell-Scritp | /Arrays em Shell.sh | UTF-8 | 452 | 3.203125 | 3 | [] | no_license | #!/bin/bash
echo "Olá Mundo"
MUNDO=("Shell Script" "Bash" "GNU" "Linux" "Debian")
echo ${mundo[0]} # Ira mostrar o primeiro que é Shell Script
echo ${mundo[1]} # Ira mostrar o Segundo que é Bash
echo ${mundo[2]} # Ira mostrar o Terceiro que é GNU
echo ${mundo[3]} # Ira mostrar o Quarto que é Linux
echo ${mun... | true |
1c9f17e432acf780864e79214e521c822cd72645 | Shell | axelandersson/dotfiles | /bash/contrib/completion-2.1/completions/_yum-utils | UTF-8 | 624 | 3.0625 | 3 | [
"MIT"
] | permissive | # bash completion for repomanage -*- shell-script -*-
# Use of this file is deprecated. Upstream completion is available in
# yum-utils >= 1.1.24, use that instead.
_repomanage()
{
local cur prev words cword split
_init_completion -s || return
[[ "$prev" == -@(h|-help|k|-keep) ... | true |
cfd0fd35095024673b8bd02ebca939e766cceb4f | Shell | monotonemonk/arch_svntogit_community- | /gtkdialog/trunk/PKGBUILD | UTF-8 | 882 | 2.609375 | 3 | [] | no_license | # $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: dojo <joerg.doll[at]gmx.de>
pkgname=gtkdialog
pkgver=0.8.3
pkgrel=3
pkgdesc="Gtkdialog is a small utility for fast and easy GUI building."
arch=('i686' 'x86_64')
#url="http://linux.pte.hu/~pipas/gtkdialog/"
url="http://code.google.com/p/gtkd... | true |
4832cf30f6d69afaa455bb77eee42eb494a6eca5 | Shell | ARPASMR/elab_msg_rss | /scripts/elab_msg.sh | UTF-8 | 5,666 | 2.984375 | 3 | [] | no_license | #################################################################################
#
# FILE.......: elab_msg.sh
# -------------------------------------------------------------------------------
# PURPOSE....: Conversione immagini Meteosat-9 HRIT/LRIT
# Lo script si aspetta in linea di comando: nome file prologo
# ... | true |
7412fc4ab0c0e983ed855ba06147fa7449278de0 | Shell | zhj149/multibootiso-1 | /create.sh | UTF-8 | 3,421 | 3.6875 | 4 | [] | no_license | #!/bin/sh
# the problem with this approach is: while it allows to multiboot a kernel and
# initrd, it will pick the rootfs from the first partition always
set -e
mkdir -p isomount
mkdir -p extmount
mkdir -p mainmount
cleanup() {
sudo umount isomount
sudo umount extmount
sudo umount mainmount
}
trap cleanup 1 2 ... | true |
ac8db9c7e5348ea789817035fcea3a6a9a16b234 | Shell | streemline/kernel_build | /AnyKernel/META-INF/com/google/android/update-binary | UTF-8 | 1,101 | 3.609375 | 4 | [] | no_license | #!/sbin/sh
OUTFD=/proc/self/fd/$2;
ZIP="$3";
DIR=`dirname "$ZIP"`;
ui_print() {
until [ ! "$1" ]; do
echo -e "ui_print $1\nui_print" > $OUTFD;
shift;
done;
}
show_progress() { echo "progress $1 $2" > $OUTFD; }
set_perm_recursive() {
dirs=$(echo $* | awk '{ print substr($0, index($0,$5)) }');
for i in ... | true |
c136edff26390bf868d76e7424708fd4d004b4e1 | Shell | familiafacundes/dotfiles | /config/local/bin/firefox.sh | UTF-8 | 111 | 2.96875 | 3 | [] | no_license | #!/bin/bash
firefox="$(pidof firefox)"
if [ -e $firefox ]; then
firefox
else
echo "Não foi dessa vez."
fi
| true |
3b9b76e5a04dbe0b02fcd222e92b0ae3b0fba8fc | Shell | miko-798/cirrus-ngs | /src/cirrus_ngs/server/Pipelines/scripts/SmallRNASeq/bowtie2/cutadapt.sh | UTF-8 | 2,182 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
project_name=$1
workflow=$2
file_suffix=$3 #extension of input file, does not include .gz if present in input
root_dir=$4
fastq_end1=$5
fastq_end2=$6
input_address=$7 #this is an s3 address e.g. s3://path/to/input/directory
output_address=$8 #this is an s3 address e.g. s3://path/to/output/directory
l... | true |
c7935387cca88287c10d0c714f643958cfc83edb | Shell | fayaaz/3d-print-tools-pi-gen | /stage3/01-install-packages/01-run.sh | UTF-8 | 743 | 2.84375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
## Install cura and octoprint
on_chroot << EOF
pip3 install --upgrade pip
pip3 install docker-compose
usermod -aG docker pi
wget https://github.com/smartavionics/Cura/releases/download/20210908/Cura-mb-master-aarch64-20210908.AppImage -O /opt/Cura.AppImage
chmod +x /opt/Cura.AppImage
... | true |
0cda34b8d8cc55804da1dd26218896fd942b2426 | Shell | pombreda/irods | /packaging/setup_irods.sh | UTF-8 | 1,993 | 4.03125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
# detect correct python version
if type -P python2 1> /dev/null; then
PYTHON=`type -P python2`
else
PYTHON=`type -P python`
fi
# throw STDERR warning if short hostname found
MYHOST=`hostname`
if [[ ! $MYHOST == *.* ]] ; then
echo "" 1>&2
echo "*******************************************... | true |
fbf422aabda6ba1987feda82fffb658cba66b0ca | Shell | lagopus/lagopus-next-virtio | /test/datastore/long_run/shell/stop_lagopus.sh | UTF-8 | 665 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# ./stop_lagopus.sh <LOG_DIR> <TIME_OUT>
LOG_DIR=${1:-"."}
PID_FILE="/var/run/lagopus.pid"
RETRY_MAX=${2:-30}
PROC_STATUS_FILE="${LOG_DIR}/end_proc_status.txt"
if [ -f "${PID_FILE}" ]; then
PID=`cat ${PID_FILE}`
# save proc
sudo cat /proc/$PID/status > $PROC_STATUS_FILE
# kill
sudo ki... | true |
a57557c9ce8034216d786c54a99b9a79633d2113 | Shell | examon/tmux_stuff | /send.sh | UTF-8 | 1,102 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# send command to specified range of panes
#if [ "$#" -ne 1 ]; then
# echo "$0 session_name"
# exit 1
#fi
#session=$1
from=1
to=1
while read -r -p "> " line; do
#read -p "> " line
#echo $line
# get out of repl
if [ "$line" == ":quit" ] || [ "$line" == ":q" ]; then
exit 0
... | true |
d795e4e516e79da7c814ed1489b40aa29c790756 | Shell | chlunde/dotfiles | /bin/go-tool-install | UTF-8 | 996 | 2.65625 | 3 | [] | no_license | #!/bin/bash
set -e
cd /
export GOPATH=~/opt/gotoolpath
test -d $GOPATH/ || mkdir -p $GOPATH
test -d ~/bin || mkdir -p ~/bin
if ! [[ -L $GOPATH/bin ]]
then
ln -s ~/bin/ $GOPATH/bin
fi
if [[ $# == 0 ]]
then
go install golang.org/x/tools/gopls@latest
go install github.com/junegunn/fzf@latest
go insta... | true |
50c93e08449dccc14ce44e23cbfa79156b5eadee | Shell | KRMAssociatesInc/docker-vista | /GTM/bin/removeVistaInstanceMinimal.sh | UTF-8 | 2,491 | 3.859375 | 4 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#---------------------------------------------------------------------------
# Copyright 2011-2013 The Open Source Electronic Health Record Agent
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a ... | true |
a93b276c2781069bc045b45ef5015b01424ffd1b | Shell | lc4t/BiliTools | /LiveRecorder/liverecorder.sh | UTF-8 | 537 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bash
# bash liverecorder.sh [ROOMID] [DIR] [DOWNLOAD_SPEED]
roomid=$1
echo "直播间号为:$1"
echo "查询空间目录:$2"
echo "下载限速 $3 kb"
#mkdir $roomid
while (true)
DISK=`df -l | grep "$2" | awk '{print $4}'`
if [ "$DISK" -lt "10240" ]; then
echo "磁盘空间不足, only $DISK bytes"
date
sleep 60
continue
else
echo "磁盘空间充足, $D... | true |
04b92daaf3b743194d090fe0626a51ff173b609a | Shell | las1991/tool-scripts | /iterm2Login.sh | UTF-8 | 998 | 3.390625 | 3 | [] | no_license | #!/usr/bin/expect
set timeout 30
set host [lindex $argv 0]
# 这一行是设置一个变量的意思,变量名随便起,尽量有意义,后面表示的是传入的参数,0 表示第一个参数,后面会用到。
set port [lindex $argv 1]
set user [lindex $argv 2]
set pswd [lindex $argv 3]
spawn ssh -p $port $user@$host
# spawn 是 expect 环境的内部命令,它主要的功能是给 ssh 运行进程加个壳,用来传递交互指令。
expect {
"(yes/no)?"
... | true |
c57304c7630bd873429467eba481bd87b4f7e350 | Shell | HudaF/Operating-Systems-Coursework | /Bash scripting/test_passwd.sh | UTF-8 | 321 | 3.484375 | 3 | [] | no_license | #!/bin/bash
passCount=$(echo $1 | wc -c)
digitCount=$(echo $1 | egrep -o "[0-9]" | wc -l)
alphaNumericCount=$(echo $1 | egrep -o "[,#$%&*+-=]+" | wc -l)
echo $alphaNumericCount
if [ $passCount -lt 8 ] || [ $digitCount -lt 1 ] || [ $alphaNumericCount -lt 1 ];
then
echo weak password
else
echo strong password
fi
... | true |
81cc1d0eabcf7be269bd132fbb859c0813c57249 | Shell | Junhaoo/IntersectProject | /test/generateData.sh | UTF-8 | 189 | 3.0625 | 3 | [] | no_license | #!/bin/bash
int=1
a=$1
b=$1
val=`expr $a + $b`
echo $val > input.txt
while(($int<=${1}))
do
echo "L ${int} 0 ${int} 1">>input.txt
echo "L 0 ${int} 1 ${int}">>input.txt
let "int++"
done
| true |
bb8db9309f90b81d0bcfe6264602497bd4dfb930 | Shell | JasonGross/slow-coq-examples | /insert-timings.sh | UTF-8 | 286 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
PREV_TIME=$(date +%s.%N)
PREV=""
DO_PRINT=""
while read i
do
NEXT="$(date +%s.%N)"
DIFF="$(echo "$NEXT - $PREV_TIME" | bc)"
if [ ! -z "$DO_PRINT" ];
then
echo "$DIFF: $PREV"
else
DO_PRINT="yes"
fi
PREV="$i"
PREV_TIME="$NEXT"
done
| true |
c86ffd2ce19cefb6958c9a0ac267840ccc1efcc6 | Shell | alldatacenter/alldata | /dts/airbyte/airbyte-integrations/connectors/source-github/fixtures/scripts/create_branches_and_commits.sh | UTF-8 | 508 | 3.375 | 3 | [
"MIT",
"Elastic-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | #!/bin/bash
touch ".gitignore"
git add ".gitignore"
git commit -m "Initial commit"
git push origin master
for (( i = 0; i < 5; i++ )); do
git branch "feature/branch_$i"
done
for (( i = 0; i < 5; i++ )); do
git checkout "feature/branch_$i"
mkdir github_sources
for (( j = 0; j < 5; j++ )); do
ech... | true |
7f0c3f5381a59645f41287a165b69a0bf816b35b | Shell | Louis-Veitenheimer/init_workspace | /install.sh | UTF-8 | 826 | 2.890625 | 3 | [] | no_license | #!/bin/sh
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y \
cowsay \
curl \
wget \
vim \
tmux \
htop \
jq \
zsh \
git
cp .vimrc ~/.vimrc
cp .zshrc ~/.zshrc
# install "oh my zsh"
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.g... | true |
b3cbd86e855d396ec19c2fffc2dc85d6f5100c48 | Shell | zenazn/dotfiles | /profile.d/10-jump | UTF-8 | 1,632 | 3.859375 | 4 | [] | no_license | #!/bin/bash
# Jump!
# Usage:
#
# # Add this to your profile
# mkjump qq path/to/place/you/want/to/jump <<EOF
# any-alias anywhere
# have as/many/of/these/as/you/like
# EOF
#
# # Try this!
# qq direct<Tab> # Tab complete some subdirectory of the target
# qq an<Tab> # Tab complete t... | true |
bd72f8b1fac170116fc86371a0a1f3b30a29e3ac | Shell | tsukolsky/eagle-library | /createOshparkRelease.sh | UTF-8 | 954 | 3.5625 | 4 | [] | no_license | #!/bin/bash
##########################################
## createOshParkRelease.sh
##
## Initial Build: 6/29/12
## Last Revised: 7/7/12
## Initial Author: Mark Taylor
## Maintained By: Todd Sukolsky
##########################################
## Description:
## This script prepares gerbers for release
## to ... | true |
0a900f50f9ac3e2452351ba85b4e6772cd7736a6 | Shell | hypercube1024/firefly | /firefly-jni-helper/src/main/cpp/jni-helper/build.sh | UTF-8 | 1,227 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
PROJECT_HOME=$(cd "$(dirname "$0")" && pwd)
echo "project dir: $PROJECT_HOME"
RELEASE_BUILD_DIR="$PROJECT_HOME/build-release"
echo "cmake release dir: $RELEASE_BUILD_DIR"
if [ ! -d "$RELEASE_BUILD_DIR" ]; then
mkdir "$RELEASE_BUILD_DIR"
else
rm -rf "$RELEASE_BUILD_DIR"
fi
echo "$(uname)"
if [ "$(unam... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.