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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d6c68f9bb2448b7068d59be14df96c0d14c8c140 | Shell | dmariogatto/muget | /src/MuGet.Forms.iOS/appcenter-pre-build.sh | UTF-8 | 1,558 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
plistPath="${BUILD_REPOSITORY_LOCALPATH}/src/MuGet.Forms.iOS/Info.plist"
appCsPath="${BUILD_REPOSITORY_LOCALPATH}/src/MuGet.Forms.UI/App.xaml.cs"
buildNumber=$APPCENTER_BUILD_ID
buildOffset=$BUILD_ID_OFFSET
buildShortVersion="$VERSION_NAME"
# exit if a command fails
set -e
if [ ! -f $plistPath ] ; then
... | true |
9749d96655a976af99e2aa916af8b2b0311f6760 | Shell | hardboydu/PuTTY | /wcwidth-update/mk-putty-wcwidth | UTF-8 | 12,735 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh -
main() {
VER="${1:-10.0.0}"
DIR="${2:-$(pwd)}"
add_text > wcwidth-"$VER".c
}
add_combi() {
sed -e 's/#.*//' -e 's/[\t ]*$//' \
< $DIR/UNIDATA-$VER/extracted/DerivedGeneralCategory.txt |
awk -F'[\t ]*;[\t ]*' '
BEGIN{
for(i=0; i<256; i++) {
hexconv[sprintf("%x",i)] = i;
hexc... | true |
b6783b58a7d6a0972e71962114eca1c0027935ed | Shell | mwvaughn/bwa-0.59 | /lonestar/wrapper.sh | UTF-8 | 4,639 | 2.890625 | 3 | [] | no_license | tar -xzf bin.tgz
export PATH=$HOME/bin:$PATH:./bin
#query1=/vaughn/sample.fq
#databaseFasta=/shared/iplantcollaborative/genomeservices/builds/0.1/Arabidopsis_thaliana/Col-0_thale_cress/10/de_support/genome.fas
# SPLIT_COUNT / 4 = number of records per BWA job
SPLIT_COUNT=16000000
OUTPUT_SAM=bwa_output.sam
# Vars pa... | true |
1f4d766c0ad9818c5cf8ea1ad3753501cee06100 | Shell | jamesrafe/soal-shift-sisop-modul-1-C11-2021 | /soal1/soal1.sh | UTF-8 | 1,865 | 3.875 | 4 | [] | no_license | #!/bin/bash
# File management
input="syslog.log"
error_output="error_message.csv"
user_output="user_statistic.csv"
# 1(a)
error_regex="(?<=ERROR )(.*)"
info_regex="(?<=INFO )(.*)"
# 1(b)
error_list=$(grep -oP "${error_regex}(?=\ )" "$input")
# echo "$error_list"
# echo -n "Jumlah ERROR: "
# echo "$error_list" | wc ... | true |
14ef68d84249adc3c588e0ee8e3485d1c773cdb0 | Shell | mpbagot/SteamVR-OpenHMD | /docker.sh | UTF-8 | 710 | 2.984375 | 3 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
CD=$(dirname $BASH_SOURCE)
cd $CD
CD=$(pwd)
cd $CD/docker
#docker-compose up --build
docker build ./ -t steamvr_openhmd/build
docker run -ti --rm \
-e USER=$USER \
-v $HOME:/home/$USER \
-v $CD:/tmp/dev/ \
-v /etc/passwd:/etc/passwd \
--name build \
steamvr_openhmd/build:latest "$@"
... | true |
715955f4777e9f31387e929113be9f8028ae5744 | Shell | CarlosRayon/linux | /bash/Strings/test.sh | UTF-8 | 171 | 2.8125 | 3 | [] | no_license | #!/bin/bash
var1="Hello"
var2="World"
result="$var1 $var2"
var3="Bob"
var4="Hussain"
var3+=$var4
#echo $result
#echo $var3
str="Hello World"
sub=${str:6:5}
echo $sub | true |
066ab3e34d60f7cb5b233b24ca356c0e2f602b30 | Shell | ctssample/demo_repo | /src/hdfs/rio/transformations/rio_transaction_structure_coordinator/rio_transaction_structure_workflow/rio_determine_dest_dir.sh | UTF-8 | 2,077 | 3.953125 | 4 | [] | no_license | #!/bin/bash
########################################################################################################################
### Script : rio_determine_dest_dir.sh
### Description : This script determines the destination dir for rio based on specified raw dir path and nominal time of coordinator
#... | true |
5496f84954412e55e6afa9465cca7ead80c0c875 | Shell | liwen666/ETL | /dw-etl-onebank/bin/deploy.sh | UTF-8 | 7,075 | 3.265625 | 3 | [] | no_license | #!/bin/bash
##############################################
#调用方法:部署脚本
##############################################
timestamp=`date "+%Y%m%d%H%M%S"`
echo ========================================init config.cfg date:${timestamp}====================================
echo ''> config.cfg
if [ "$1" == sit ]; then
echo... | true |
338590e15889cf3ba46c70f4f3c246bd4f8ae5ac | Shell | andy-654321/database_asg4 | /setup.sh | UTF-8 | 364 | 2.96875 | 3 | [] | no_license | #!/bin/bash
if [ $(whoami) != "root" ]
then
echo "I must be run as root!"
exit
fi
echo "Success! Setting up environment now"
#backup initial html folder
[ -d html ] || cp -r /var/www/html .
rm /var/www/html/*
mysql -u root -pcoursework < database.txt
cp index.html /var/www/html
cp test.php /var/www/html
cp style... | true |
60003679e087ce13b1ce487cb453dd644b2bfecf | Shell | wplib/composer-docker | /files/usr/local/bin/composer | UTF-8 | 852 | 3.671875 | 4 | [] | no_license | #!/bin/bash
check_image()
{
VERSION="wplib/composer:$REQVERS"
EXISTS="`docker images -q $VERSION 2>/dev/null`"
if [ "$EXISTS" == "" ]
then
wget -q -O /dev/null https://index.docker.io/v1/repositories/wplib/composer/tags/$REQVERS
if [ "$?" == "0" ]
then
echo "WPLib: Need to retrieve $VERSION from reposito... | true |
0d580aa2b70b1530bdf8edf17b726cf5f3c55234 | Shell | ant-Korn/linux-configs | /scripts/i3layout.sh | UTF-8 | 398 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#Shell scipt to prepend i3status with more stuff
i3status --config /etc/i3status.conf | while :
do
read line
LG=$(xkb-switch | cut -c -2)
if [ $LG == "us" ]
then
dat="[{ \"full_text\": \"LANG: $LG\", \"color\":\"#00FF00\" },"
else
dat="[{ \"full_text\": \"LANG: $LG\", \... | true |
267621704b71bd4eae048837efe52fee0a71f216 | Shell | bitpixels/android_secure_shell | /secure_root/rootpwd.sh | UTF-8 | 1,009 | 3.59375 | 4 | [] | no_license | #!/system/bin/sh
dir="" #define directory
sec="secure" #secure folder
pwd="passwd" #password secure filename
pwdstore=$dir/$sec/$pwd #full secure path
function passwdexec {
if['$1' == '-change'];
then
secpwd
else
cat $pwdstore
fi
}
function secpwd {
echo -e "Enter current password for $USER'
stty -echo
read curpwd... | true |
045f42bb56943785e7af8d0f2164c5601118d2c0 | Shell | rogafe/autoInstall_pc | /install.sh | UTF-8 | 2,129 | 4.3125 | 4 | [] | no_license | #!/bin/bash
# Check the distribution
distro=""
if command -v lsb_release &> /dev/null; then
distro=$(lsb_release -si)
elif [ -e /etc/os-release ]; then
distro=$(awk -F= '/^ID=/{print $2}' /etc/os-release)
elif [ -e /etc/lsb-release ]; then
distro=$(awk -F= '/^DISTRIB_ID=/{print $2}' /etc/lsb-release)
fi
#... | true |
691b3dc60ec63f85930cb4ec98d42d3a6abc6478 | Shell | tonyswoo/naturalbugpatch | /generate_csv.sh | UTF-8 | 2,605 | 3.34375 | 3 | [] | no_license | export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JRE_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre
POOL=/data/ktony11/
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
ORIGDIR=$pwd
RESULT=result.csv
EVOSUITE=$ROOT/test_suite
LOGFILE="csv_gen.log"
rm $RESULT $LOGFILE 2> /dev/null
export PATH=$... | true |
d73469bcdc20721de8da9f922181fbfa70e145a1 | Shell | FahsinaFaisal/University | /mult.sh | UTF-8 | 145 | 3.1875 | 3 | [] | no_license | echo "Enter a Number"
read n
echo "Multiplication table of $n :"
for((i=1;i<=10;i++))
do
mult=`expr $i \* $n`
echo "$i * $n = $mult"
mult=0
done
| true |
3f1165080a2b059f0ae7e5083dee4bf67e01a630 | Shell | t-mario-y/dotfiles | /scripts/install_initial_chromeos.sh | UTF-8 | 1,848 | 2.6875 | 3 | [] | no_license | #!/bin/bash
set -eu
sudo apt-get update
apt-get upgrade -y
sudo apt-get install -y --no-install-recommends \
zsh \
# for VSCode settings sync
gnome-keyring \
seahorse
# VSCode
sudo apt-get install -y wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg... | true |
de1684fd6eb23a9d63417b61392de2adaa264886 | Shell | multatronic/akurra | /scripts/install_dependencies | UTF-8 | 395 | 3.140625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Install dependencies
sudo apt-get build-dep pygame
sudo apt-get install -y mercurial libavformat-dev libswscale-dev
mkdir -p $DIR/../tmp && cd $DIR/../tmp
# Grab source
hg clone --cwd $DIR/../tmp https://bitbucket.org/pygame/pygame
# Finally build ... | true |
46f4bd94ee95dbe8751b3e6da9bcc7e1593fcbf8 | Shell | pragmadox/DFA | /myfirst | UTF-8 | 143 | 2.546875 | 3 | [] | no_license | #!/bin/sh
# My First Program
# Jajuan Burton 31 MAY 2017
#
# This Program prints hello world to standard output
PATH=/bin/echo
echo "Hello World"
| true |
02419c343539ebb889bd828fc34fe1d36079be06 | Shell | Maethorin/copa_do_mundo | /gunicorn.sh | UTF-8 | 1,124 | 3.203125 | 3 | [] | no_license | #!/bin/bash
NAME="copa_do_mundo" # Name of the application
DJANGODIR=/webapps/copa_do_mundo/app/ # Django project directory
USER=copa # the user to run as
GROUP=webapps # the group to run as
NUM_WORK... | true |
edca4209e582424e9de2b8a7ae4a51e4466d692c | Shell | oondeo/oo-wordpress | /migrate-database.sh | UTF-8 | 570 | 2.71875 | 3 | [] | no_license | #!/bin/bash
# wp core install --path=www --url=${APPLICATION_DOMAIN} --title=${APPLICATION_DOMAIN} --admin_user=${WORDPRESS_ADMIN_USER} --admin_password=${WORDPRESS_ADMIN_PASSWORD} --admin_email=${WORDPRESS_ADMIN_EMAIL} --skip-email
# first='0'
# for i in $(echo $WORDPRESS_THEMES | tr "," "\n")
# do
# if [ $firs... | true |
f43668c9a6976031ba90f56aa7ef0e7967eb8867 | Shell | saketj/cs838-p2 | /grader/PartBQuestion1.sh | UTF-8 | 581 | 2.65625 | 3 | [] | no_license | #!/bin/bash
# Assumes position of streaming directory
# Rest can be customised by changing variables below
source /home/ubuntu/run.sh
echo "This application expects apache spark, hdfs and hive metastore to be running on the cluster"
sleep 1
datasetStreamDirectory=/user/ubuntu/cs-838/part-b/workload/dataset-stream/
spa... | true |
62c2459d2382a0c437df33454d0b0892a849c2ba | Shell | bschwedler/dotfiles | /.bash_prompt | UTF-8 | 158 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -n "$PS1" ]; then
# shellcheck disable=SC1090
source ~/local/etc/liquidprompt
fi
export PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
| true |
1b2ec8654c465e3d3e5b54b4bf65024a6b46cf21 | Shell | boy1583/graph-databases-testsuite | /vldb19.sh | UTF-8 | 3,423 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Comments this line out if deps have been installed globally.
# shellcheck disable=SC1091
[[ -f ".venv/bin/activate" ]] && source .venv/bin/activate
# Bash strict mode
# redsymbol.net/articles/unofficial-bash-strict-mode
set -ueo pipefail
# Some tests are possible/make sense only for index capable syste... | true |
34b5eca0e245c2fb68dc8a8e77af418c8518b9df | Shell | adesso-mobile/ams-android-gradle-docker | /install.sh | UTF-8 | 1,473 | 3.21875 | 3 | [] | no_license | #!/bin/bash
export ANDROID_SDK_ROOT=/android-sdk-linux
set -e
set -x
apt-get --quiet update --yes
apt-get --quiet install --yes wget tar unzip libx11-6 libx11-dev lib32stdc++6 lib32z1 git --no-install-recommends
apt-get --quiet install --yes libxcursor1 libasound2 libxcomposite1 libnss3 libgl1 libpulse0 libpulse-... | true |
40bc94a9ca250ec455a2b7973d5a29798d851508 | Shell | EasyX-Community/energi-scripts | /bin/energi3-status | UTF-8 | 652 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
while true
do
echo ""
if [[ -z "${ENERGI_WALLET_ADDR}" ]] ; then
echo "No wallet address is set! You may edit this script or enter it below."
read -p "Enter wallet address: " ENERGI_WALLET_ADDR
if [ -n "$ENERGI_WALLET_ADDR" ]; then
export ENERGI_WALLET_ADDRESS=${ENERGI_WALLET_ADDR... | true |
52ab57f5372323e4d0ae652a9db919ba3e6acc2c | Shell | kazi-nutanix/karbon-toolkit | /Pro SDK/testSshConnectivity.sh | UTF-8 | 686 | 3.703125 | 4 | [] | no_license | #!/bin/bash
set -e
source $SERVER_CONFIG/data.cfg
if [ ! -z "$1" ]; then
echo "Connecting $1 cluster"
else
echo "A cluster name is needed"
exit 1
fi
#-------------------------------------------------------------------------------#
# Iterage over each nodes and #
#-------------------------------------------... | true |
d1e7b1db03ab9513b1fede0f0fa2d71b4a521650 | Shell | noirgif/CORDS | /systems/eth/pre-merge/reset_nodes.sh | UTF-8 | 774 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
./stop.sh
while pgrep geth > /dev/null ; do
sleep 1
done
rm -f nodes
for i in {1..3} ; do
geth --datadir blkchain-${i} init genesis.json
# create for mining, also print the address for future connection
geth --datadir blkchain-${i} --nodiscover --networkid 1234 --port $((30302+i)) js pri... | true |
38bedef5b47f6420d557b45e9c6680c79db767ed | Shell | jmjjg/game-puzzle | /docker/usr/bin/docker-entrypoint.sh | UTF-8 | 216 | 2.625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
set -o errexit
set -o nounset
set -o pipefail
NODE_MODULES_DIR="${NODE_MODULES_DIR:-/opt/node_modules}"
GRUNT_TASK="${GRUNT_TASK:-default}"
${NODE_MODULES_DIR}/grunt-cli/bin/grunt "${GRUNT_TASK}"
| true |
b4c1587d5fc8aa892df988cbd5179bf3ddf5d149 | Shell | mimikun/dotfiles | /private_dot_local/bin/executable_git-browse | UTF-8 | 253 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
remote_url=$(
git remote -v |
head -n 1 |
cut -d ' ' -f 1 |
sed -e 's/origin//g' |
sed -e 's/\t//g' |
sed -e 's/ssh:\/\/git@/http:\/\//g' |
sed -e 's/\:2200/\:8080/g'
)
echo "$remote_url"
| true |
6a5a5d42c6ed91465d4898d6195db3f40d830519 | Shell | brandonwkerns/lpt-python-public | /realtime/download_cfs_rt.MASTER.sh | UTF-8 | 1,037 | 3.703125 | 4 | [] | no_license | #!/bin/bash
####### Download real time version of CMORPH.
ftpdir=https://nomads.ncep.noaa.gov/pub/data/nccf/com/cfs/prod/cfs
## parent directory directory where data will be downloaded.
download_parent_dir=/path/to/keep/your/data
ENS=01 #Ensemble number. 01 is control. 02, 03, and 04 are perturbed.
#############... | true |
5013bc1d27f2ff400712f698b2710922cb805660 | Shell | svandiek/summa-farsi | /path.sh | UTF-8 | 1,472 | 2.71875 | 3 | [] | no_license | # This contains the locations of the tools and data required for running
# the GlobalPhone experiments.
export LC_ALL=C # For expected sorting and joining behaviour
KALDI_ROOT=/disk/scratch1/svandiek/kaldi
[ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh
KALDISRC=$KALDI_ROOT/src
KALDIBIN=$KALDISRC/bin... | true |
d262d124e2c895c8175b00032b8ae9342e4d9919 | Shell | impactaky/dotfiles | /ubuntu20.04.sh | UTF-8 | 1,030 | 2.84375 | 3 | [] | no_license | #!/bin/bash
set -eux
CLANG_VERSION=15
IS_SERVER=${IS_SERVER:-no}
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo sh -c "wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -"
sudo sh -c 'echo "deb http://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-15 main" >> /etc/apt/sourc... | true |
d3c181f0899c161832398817a36c76986eaabd8a | Shell | yalzhang/kiss-vm-ns | /kiss-vm | UTF-8 | 79,303 | 3.125 | 3 | [] | no_license | #!/bin/bash
# author: yin-jianhong@163.com
# test pass on RHEL-7/CentOS-7, RHEL-8/CentOS-8 and Fedora-29/30/31
LANG=C
PATH=~/bin:$PATH
P=$0
[[ $0 = /* ]] && P=${0##*/}
Distro=
Location=
Imageurl=
VM_OS_VARIANT=
OVERWRITE=no
KSPath=
ksauto=
MacvtapMode=bridge
VMName=
InstallType=import
ImagePath=~/myimages
DownloadIm... | true |
0d5585d4f0ff934c4050605462caac6ed1ed509f | Shell | CiscoSystems/os-sqe | /tools/disk-image-builder/elements/manage-cloud-init/post-install.d/manage-cloud-init | UTF-8 | 447 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
for int in $(ip -o link | grep -P -o '\d+: eth\d+' | awk '{print $2}')
do
mac=$(ip address show $int | grep -P -o 'link/ether .*? brd' | awk '{print $2}')
IFS=':' octets=($mac)
if [ ${octets[1]} != "00" ] && [ ${octets[1]} != "10" ]
then
sudo systemctl start cloud-config
sud... | true |
78388e70f3c5e9d666de24e100497c93839cabef | Shell | ing-systems/crcxx | /generate_catalog.sh | UTF-8 | 1,597 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Extracted from https://github.com/akhilles/crc-catalog/blob/master/generate_catalog.sh
echo "use super::Params;" >> src/crc8/catalog.rs
echo "use super::Params;" >> src/crc16/catalog.rs
echo "use super::Params;" >> src/crc32/catalog.rs
echo "use super::Params;" >> src/crc64/catalog.rs
echo "use super::Par... | true |
1e89dd8df86965fd313e226d07a04a50e9c7a4df | Shell | fengjixuchui123/SourecCoding | /maintenanceToolKit/target/output/bin/backup.sh | UTF-8 | 280 | 2.671875 | 3 | [] | no_license | #!/bin/bash
backupFolder=$HPBA_HOME/pgsql/backup
WORKPATH=$HPBA_HOME/pgsql/bin
export WORKPATH
if [ ! -d $backupFolder ]
then
mkdir $backupFolder
fi
$WORKPATH/pg_dump -d xs_mng -U xsadmin > backup.txt
tar -czf $HPBA_HOME/pgsql/backup/backup.tar.gz backup.txt --remove-files
| true |
2bcaa31380b4ea830844b267a9bde1b44f0c5c98 | Shell | UCBerkeleyAPIs/docker-jboss-fuse-6.3 | /jboss-fuse-6.3-fabric/fabric.sh | UTF-8 | 1,779 | 4.15625 | 4 | [] | no_license | #!/bin/bash
#
# Starts a fabric with the given environment variables
#
# Sets the environment variables
#
if [ -z $FABRIC_USER ]; then
export FABRIC_USER=admin
fi
if [ -z $FABRIC_PASSWD ]; then
export FABRIC_PASSWD=admin
fi
if [ -z $SSH_PASSWD ]; then
export SSH_PASSWD=admin
fi
if [ -z $ZOOKEEPER_PASSWD ]; ... | true |
1768e7e24fc9eabf150f7ffcadb7834aa385e90f | Shell | Ferada/cl-nailgun | /src/script.sh | UTF-8 | 874 | 3.390625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
PORT=2323
PIDFILE=/home/ferada/.cl-nailgun-script.pid
CL=/home/ferada/src/opt/bin/sbcl
NG=/home/ferada/src/nailgun/ng
PID=
if [ -f $PIDFILE ]
then
PID=$(cat $PIDFILE)
fi
# TODO: file lock so only one server is started
SPAWN=
[ -z "$PID" ] && SPAWN=YES
/bin/kill -s 0 $PID || SPAWN=yes
if [ -n "$SPAWN" ... | true |
b6f0c48d3b40dd9e4554d83fe2ba5a0f03373012 | Shell | Duncaen/OpenDoas | /configure | UTF-8 | 10,281 | 3.890625 | 4 | [
"ISC"
] | permissive | #!/bin/sh
die() {
printf "$1\n" >&2
exit 1
}
usage() {
cat <<EOF
usage: configure [options]
--prefix=PREFIX installation prefix [/usr]
--exec-prefix=EPREFIX installation prefix for executable files [PREFIX]
--bindir=DIR user executables [PREFIX/bin]
--datadir=DIR architecture-in... | true |
98587e756a64c8c5fa9f5a25c4229dfbc507a4a7 | Shell | delkyd/alfheim_linux-PKGBUILDS | /sift/PKGBUILD | UTF-8 | 938 | 2.546875 | 3 | [] | no_license | # Maintainer: Javier Tiá <javier dot tia at gmail dot com>
pkgname=sift
pkgver=0.9.0
pkgrel=1
pkgdesc="A fast and powerful open source alternative to grep"
arch=('i686' 'x86_64')
url="http://sift-tool.org/"
license=('GPL3')
makedepends=('go' 'git')
options=('!strip' '!emptydirs')
conflicts=('sift-bin')
replaces=('sift... | true |
73916ec45004e4d511591d5f7eda04786dba9a30 | Shell | ildarf/scripts | /tide | UTF-8 | 438 | 2.609375 | 3 | [] | no_license | #!/bin/bash
# if [ $# -eq 0 -o "$1" = "-h" ]
# then
# echo 'Usage: testide'
# exit 0
# fi
tmux resize-pane -D 5
tmux split-window -c '#{pane_current_path}' -p 25
tmux split-window -h -c '#{pane_current_path}' -p 34
tmux send-keys "clear" Enter
tmux send-keys "runwatch $1"
tmux select-pane -t :.-
tmux send-keys "cl... | true |
7699f488a923846e218f6087b607b57de4a59c9a | Shell | sjorge/dotFiles | /homedir/.zshrc.d/envvars/os:solaris:MANPATH | UTF-8 | 546 | 2.921875 | 3 | [] | no_license | #!/bin/sh
# add /usr/share/man
[ -d "/usr/share/man" ] && \
MANPATH="${MANPAGE}:/usr/share/man"
# check for pkgsrc (smartos)
MANPATH="$(echo ${MANPATH} | /bin/sed -r 's#/opt/local/man:##g')"
if [ -d "/opt/local" ]; then
MANPATH="/opt/local/man:${MANPATH}"
fi
# check for omniti repository (omnios)
MANPATH="$(ech... | true |
2eb5bce68e7f81fbe47dd691fc0942773cd3869c | Shell | textarcana/bats-example-project | /test/basic.bats | UTF-8 | 119 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | # FLUNK="oh my yes"
@test "truth should be true" {
true
}
@test "string should be empty" {
[ -z "$FLUNK" ]
}
| true |
55565ccb8635f030f931a5e8f6fa82df8e6faafe | Shell | lancelet/dotfiles | /macinstall.sh | UTF-8 | 1,939 | 3.515625 | 4 | [] | no_license | #!/usr/bin/env bash
#
# Install on a new mac.
# "Safe" bash
set -euf -o pipefail
# ANSI codes
readonly GREEN='\033[0;32m'
readonly NC='\033[0m' # no color
# Print a log message, in green.
log () {
declare -r message="$1"
printf "${GREEN}MACINSTALL: ${message}${NC}\n"
}
log 'dotfiles installation commencing.... | true |
819eb01665c2fd3f10037b3e05f66088cc6bb85e | Shell | rogetsun/stzb | /docker/build.sh | UTF-8 | 426 | 3.21875 | 3 | [] | no_license | #!/bin/bash
baseimg=registry.cn-beijing.aliyuncs.com/songyw/stzb
image=${baseimg}:${1}
echo "image is ${image}"
if [[ "${1}" == "" || "${1}" == "0" ]]; then
echo "please input tag; ${image} ?"
else
docker build -t ${image} .
docker images | grep ${baseimg}
docker rmi ${baseimg}:latest
docker tag ${image} ${ba... | true |
58a5f39d53245c49118ab8bcdcb828656fa306a8 | Shell | sw897/CentOSGeoWebEnv | /soft/python.sh | UTF-8 | 1,073 | 3.0625 | 3 | [] | no_license | #!/bin/sh
#
# ******************************************************************************
# Software: CentOSGeoWebEnv
# Author: mapdb
# Website: www.mapdb.cn
# Email: mapdb2014@gmail.com
# ------------------------------------++++
# Thank you for choosing CentOSGeoWebEnv!
# *********************... | true |
900ad9abc788c077a8d1dec9663a3a7cbec6d2cf | Shell | ludmilaklenova/Tests-Plateforme | /pytests_platform/JavaRoot/integration/scripts/drjava_all_tests.sh | UTF-8 | 1,030 | 3.34375 | 3 | [] | no_license | #!/bin/sh
##+=============================================================================
##
## file :
##
## description : Ce script met à jour l'infrastructure et lance tous les tests pour le package Device Root Java
##
##
##-=============================================================================
#
... | true |
1d80fc111343ba3e24bb29749d0d7416b1020eab | Shell | chrismaes87/make-docker-base-image | /make-docker-base-image.sh | UTF-8 | 6,375 | 4.375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Create a base Docker image.
#
# inspired from https://github.com/moby/moby/blob/master/contrib/mkimage-yum.sh
set -e
me=$(basename $0)
usage() {
cat <<EOOPTS
$me [OPTIONS] <name[:version]>
SYNOPSIS
Create an image from scratch with certain packages installed.
The resulting image w... | true |
98e37c00e852d552b7565872c23bca7babf76c2b | Shell | cflury/sentiment-workshop | /infra/start_jupyter.sh | UTF-8 | 336 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
export PATH=~/anaconda3/bin:$PATH
source activate pytorch_p36
echo "PATH: $PATH"
JUP_ENV=`conda env list | grep "*" | awk '{print $1}'`
echo "starting jupyter in conda env $JUP_ENV"
cd /home/ubuntu/dev
/home/ubuntu/anaconda3/envs/pytorch_p36/bin/jupyter-notebook --config=/home/ubuntu/.jupyter/jupyter_not... | true |
e0641d4106ded69110638b6ce78af4c80197857c | Shell | StevenACoffman/go-clever | /convert.sh | UTF-8 | 488 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -x
npm install
ls -1 ./oas2/*.yml | while read swagger; do
# use '$item'
echo "${swagger}"
oapi_output="$(echo "$(basename "${swagger}")" | cut -d'.' -f1)"
echo "${oapi_output}"
# npx api-spec-converter --from=swagger_2 --to=openapi_3 --syntax=yaml "${swagger}" > "./oas3/${oapi_output}.oas3.yaml... | true |
9604cedbe0f28c9575606379f553fdff1eb34980 | Shell | haianos/script_ubx | /install | UTF-8 | 4,030 | 3.734375 | 4 | [] | no_license | #!/bin/bash
####
## Start Install Script
################################################################
##
# Functions
###
set_colors()
{
red='[0;31m'; lred='[1;31m'
green='[0;32m'; lgreen='[1;32m'
yellow='[0;33m'; lyellow='[1;33m'
blue='[0;34m'; lblue='[1;34m'
purple='[0;35m'; lpurple='[1... | true |
27c3e1d0bb9898355d9357eec740950c20ef0b34 | Shell | xmudrii/dotfiles | /zsh/.zshrc | UTF-8 | 2,325 | 3.03125 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH="/home/marko/.oh-my-zsh"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ ... | true |
9d00696e37628277791594a462b17bb2f7541223 | Shell | rofrol/git-helpers | /git-create | UTF-8 | 646 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#http://stackoverflow.com/a/10325316/588759
#http://stackoverflow.com/a/13509762/588759
#https://gist.github.com/robwierzbowski/5430952
user=$(echo ${1} | tr -d ' ')
repo=$(echo ${2} | tr -d ' ')
echo ${user}
echo ${repo}
[ -z "$user" ] && echo "user empty!" && exit 1
[ -z "$repo" ] && echo "repo empty!" &&... | true |
c7edf8e9ca7e49bc4a3d45e56490a98f30414bbe | Shell | dbat/shell-scripts | /timer.sh | UTF-8 | 1,338 | 3.921875 | 4 | [] | no_license | #!/bin/sh
test "$1" || { echo nothing happen; exit 1; }
bar="============================"
bar2="----------------------------"
unset err; log="/tmp/zz-${0##*/}.log"
alias today='date -j "+%Y.%m.%d %H:%M:%S"'
alias ticks='date -j +%s'
clock () {
test -z "$1" -o -z "$1" && \
{ echo "missing arguments"; return 1... | true |
9aeb6b758bf7938117fb9113f81e96611db565f2 | Shell | lucafavatella/provisioning-android | /bin/apksignercerts | UTF-8 | 1,141 | 3.53125 | 4 | [
"ISC"
] | permissive | #!/bin/sh
T="docker-apksignercerts"
F="${1:?}"
{ docker build \
-q \
-t "${T:?}" \
- \
>/dev/null <<"EOF"
FROM debian:bullseye
## Refs:
## - [apt-get best practices](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get).
RUN apt-get update && apt-get i... | true |
a5f3bac768b30caedbbe6cb1e05dea9d179e0b9f | Shell | niuzb/quake-android | /pela/quake2android/change_package_name.sh | UTF-8 | 2,383 | 3.078125 | 3 | [] | no_license | AppFullName=com.xianle.doomtnt
AppVersionCode=10
AppVersionName="1.0 releae TNT of Doom"
AppName="TNT Doom"
echo Patching java file
for F in project/src/*.java; do
echo Patching $F
cat $F | \
sed "s/package .*;/package com.xianle.doomtnt;/" > \
$F.1
mv -f $F.1 $F
done
echo Patching project/AndroidManifest.xml
ca... | true |
3f89d565633a79205769192697badd14c9b74b1e | Shell | saptakds/Day-7-Arrays | /script1.sh | UTF-8 | 505 | 3.578125 | 4 | [] | no_license | #!/bin/bash -x
arr=()
for i in `seq 0 9`
do
randomNo=$((100+$RANDOM%999))
arr[i]=$randomNo
done
first=${arr[0]}
min=$first
minTwo=$first
max=$first
maxTwo=$first
for j in ${arr[@]}
do
if [ $j -lt $min ]
then
minTwo=$min
min=$j
elif [ $j -lt $minTwo -a $j -ne $min ]
then
minTwo=$j
fi
if [ $j -gt $max ]
... | true |
55350943d83253ad44bccc612fcceffe64acf8e5 | Shell | yasam/tools | /eclipse/eprojects_kernel.sh | UTF-8 | 684 | 3.515625 | 4 | [] | no_license | #!/bin/sh
if [ $# == 1 ];then
echo "Changing directory : $1"
cd $1
fi
PROJECT_DIR=`pwd`
TEMPLATE_DIR=/home/yasam/projects/tools/eclipse
NAME=`basename $PROJECT_DIR`
echo "Creating project on $PROJECT_DIR"
echo "Project name : $NAME"
echo "Coping project files"
cp $TEMPLATE_DIR/.project ./
cp $TEMPLATE_D... | true |
ce0791a09f9f4294cdaf197a20620f73900b223e | Shell | joepetrowski/substraTEE | /scriptsM4/start_client.sh | UTF-8 | 718 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
clear
# wait until the worker 1 is ready
sleep 30s
# start the client and send first transaction
cd /substraTEE/substraTEE-worker-M4/bin
./substratee_client -p 9977 -s 192.168.10.10 2>&1 | tee /substraTEE/output/client_first.log
# wait until worker 2 registered
sleep 30s
# start the client and send sec... | true |
4a136713a7ab05ebc086651a828fa2da2b37b832 | Shell | cashgithubs/sda | /spider/bin/slave-control.sh | UTF-8 | 1,994 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env bash
bin=`cd "$( dirname "$0" )"; pwd`
spider_dir=`cd ${bin}/..;pwd`
usage() {
cat << EOF
usage: $0 options
NAME
slave-control.sh - script to control the slaves remotely.
SYNOPSIS
$0 -i <ip> -p <password> -c <content> [start|status]
OPTIONS:
-h Show this... | true |
6470f33d96b7c9528d411d6145e6f59fc822d43f | Shell | cat769/termux-project | /pythontools.sh | UTF-8 | 1,210 | 3.796875 | 4 | [] | no_license | clear
password="im learning"
read -p "enter the code here:" pass
if [ "$pass" != "$password" ]
then
exit
fi
clear
echo
toilet -f big -F gay "welcome to kevin's tools!"
echo "here are the options:"
echo "1.install python"
echo "2.install python2"
echo "3.install python3"
echo "4.ping to wifi"
echo "5.exit..."
echo "6.c... | true |
8935ec1e64180e13c669ec1b64126a6829301b5d | Shell | lalmeras/clickable_bootstrap | /dev-setup.sh | UTF-8 | 1,870 | 3.875 | 4 | [] | no_license | #! /bin/bash
# vim: tabstop=4 shiftwidth=4 softtabstop=4 expandtab ai
set -e
conda_prefix=.conda
# default values for MINICONDA_LOCATION and CONDA_ENV
: ${MINICONDA_LOCATION:=~/.miniconda}
: ${MINICONDA_URL:=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh}
: ${CONDA_ENV:=main}
echo "Detect con... | true |
851421c72094023d8a6e4618a88e3e960a8bfb3c | Shell | opendevstack/ods-core | /infrastructure-setup/conf/wildfly-init-redhat.sh | UTF-8 | 6,238 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
#
# WildFly control script
#
# chkconfig: 2345 80 20
# description: WildFly startup/shutdown script
#
### BEGIN INIT INFO
# Provides: wildfly
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Should-Start: $named
# Should-Stop: ... | true |
19743a855807c94ae423658f2e2dc8a0a9beb2b7 | Shell | curquiza/LibftASM | /tests/cat_tests.sh | UTF-8 | 599 | 3.734375 | 4 | [] | no_license | #/bin/bash
GREEN="\033[1;32m"
RED="\033[1;31m"
YELLOW="\033[1;33m"
DEF="\033[0m"
ft_cat="./c_cat_tests"
input_folder="tests/input_files"
for file in "$input_folder"/*; do
ft_ret="$($ft_cat $file)"
ret="$(cat $file)"
if [[ "$ft_ret" == "$ret" ]]; then
printf "%-50s$GREEN%s$DEF\n" "$file" "OK"
... | true |
7c9fa756144ae28ddc778e63000aae9fc5deab65 | Shell | ashrafsharif/gh-ost-trigger | /gh-ost-trigger.sh | UTF-8 | 6,034 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# This script will run gh-ost against a table with or without trigger.
# If a trigger exist for the table, it will make a backup of it and restore
# it again after gh-ost finishes.
# Supported options: run, test
# Example:
# ./gh-ost-trigger.sh test
# ./gh-ost-trigger.sh run
#### Update this ###
# Thi... | true |
4e8a45042bd303061c0b0e17b2c1c6947d1facb9 | Shell | tnotstar/tnotbox | /Utils/Fossil/Learn/QuickStart/working/tnothome-fossil/etc/bash/profile | UTF-8 | 194 | 2.828125 | 3 | [] | no_license | #
# ~/Local/etc/bash/profile -> ~/.bash_profile
#
# source local definitions
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi
fi
# EOF
| true |
10fa965da6554c3cc1b07fba2bb8d7bef73341f3 | Shell | TheEnbyperor/usable-git | /d | UTF-8 | 485 | 2.8125 | 3 | [] | no_license | #!/bin/bash
set -e
if (git remote | grep --fixed-strings --line-regexp --quiet 'upstream') then
git diff upstream/master --stat $@
git diff --check upstream/master $@
git diff --find-copies-harder --ignore-space-change --inter-hunk-context=10 --color --unified=10 upstream/master $@
else
git diff origin/master ... | true |
e19d20769caf8f093d4a0c81f67926822bd4ff36 | Shell | qcontom/Hacking-Protocol | /HackingProtocol Pieces/HackingProtocol Pieces/lvl 3 | UTF-8 | 4,594 | 3.4375 | 3 | [] | no_license | #!/bin/bash
let y=1
let z=1
let clearancelvl=2
let used=0
let fileuse=0
echo "------------------------------------"
echo "CONGRADULATIONS. WELCOME TO LEVEL 3 "
echo "------------------------------------"
echo " "
while [ $y -eq 1 ]
do
echo "Complex: "
read maininput
case $maininput in
"help")
echo "help: displays th... | true |
d3d462c0f91f63086aa5125ff5f64a5edc5cfaa7 | Shell | javieitez/scripts | /check_url_grepdate.sh | UTF-8 | 1,611 | 4.1875 | 4 | [] | no_license | #!/bin/bash
# Author: JA Vieitez (github.com/javieitez)
# Quick and dirty script to find a Date stamp in a URL. This is useful for checking logs to be up to date, or to check a proper refreshing of a given webservice.
# Check the date command man page for date options
# help requested or invalid parameters
#######... | true |
22f63d597e54995a5d7c1a0941964e8f8e7b0740 | Shell | lenik/uni | /java/coolmaven/set-layout.in | UTF-8 | 1,752 | 3.8125 | 4 | [] | no_license | #!/bin/bash
: ${RCSID:=$Id: - @VERSION@ @DATE@ @TIME@ - $}
: ${PROGRAM_TITLE:="Adjust the dir layout as the specified"}
: ${PROGRAM_SYNTAX:="[OPTIONS] [--] ..."}
. shlib-import cliboot
option --dry-run "Only show what to do"
option -q --quiet
option -v --verbose
option -h --help
... | true |
a65efc3eb826cd3636ca25e90e493eee1de05882 | Shell | Haufe-Lexware/wicked.haufe.io | /src/test/portal-auth/test.sh | UTF-8 | 796 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo Running as `whoami`
echo Waiting for portal-api...
node node_modules/portal-env/await.js http://portal-api:3001/ping
echo Ping returned 200 for portal-api
echo Waiting for portal-kong-adapter...
node node_modules/portal-env/await.js http://portal-kong-adapter:3002/ping
echo Ping returned 200 for port... | true |
2b92f5f26222b10f5d4646f207897290dee3b2e8 | Shell | shavchen/env_install_scripts | /jdk_install.sh | UTF-8 | 1,457 | 3.953125 | 4 | [] | no_license | #/bin/bash
#获取版本信息
ver="jdk_"`echo $1 | awk -F "-" '{print $2}'`
version=`echo $1 | awk -F "-" '{print $2}'`
#移动目录并解压
if [ ! -d "/opt/java" ]; then
echo -e "\e[1;32m 已创建 /opt/java 目录 \e[0m"
mkdir /opt/java
fi
if [ ! -f $1 ]; then
echo -e "\e[1;31m 不存在 $1 , 请上传tar.gz文件到当前目录\e[0m"
exit 1
else
cp $1 /opt/java/... | true |
775632d15439e56addd32a71b774a1cc890fb55c | Shell | vkvish19/confluent-schema-registry-and-rest-proxy | /kafka-avro-java-course/avro-tools.sh | UTF-8 | 705 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
cd /home/vishu/Softwares/Apache
#put this in any directory you like
wget http://central.maven.org/maven2/org/apache/avro/avro-tools/1.9.1/avro-tools-1.9.1.jar
AVRO_TOOL_JAR=/home/vishu/Softwares/Apache/avro-tools-1.9.1.jar
AVRO_PROJECT_FOLDER=/home/vishu/Learnings/Udemy/ApacheKafkaSeries/Confluent... | true |
dc4a59edc83d69e94fda4835a515ac3a2fadc270 | Shell | jaytaylor/circus | /fswatch.sh | UTF-8 | 510 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
cd "$(dirname "$0")"
cd 'quickstart'
echo 0 > /tmp/last
set +o errexit
while true ; do
# shellcheck disable=SC2016
fswatch -o -r -m poll_monitor themes \
| xargs -n1 -IX /bin/bash -c 'now=$(date +%s) ; last="$(cat /tmp/last)" ; secs... | true |
2ec7855f91b1a744e120d92af2fa5f8bd1aa89b5 | Shell | bradyhouse/house | /fiddles/bash/fiddle-0056-InstallLiveServer/test.sh | UTF-8 | 332 | 3.125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source script.sh
function catch() {
case $1 in
0) echo "all tests succeeded"
;;
1) echo "installLiveServer() failed";
;;
*) echo "fubar! Something went wrong."
;;
esac
exit $1
}
# try
(
installLiveServer || exit 1
)
cat... | true |
02699438574843ea0a5679df1fb4dca376aff870 | Shell | abcdabcd987/cse505 | /homework/hw4/configure | UTF-8 | 507 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
function ckcmd {
if ! command -v "$1" > /dev/null 2>&1; then
echo "Error: could not find $1"
exit 1
fi
}
function ckdeps {
ckcmd coqc
ckcmd ocamlbuild
if ! coqc --version | grep -q 'version 8.8'; then
echo "Error: bad coqc version, need Coq 8.8"
exit 1
fi
}
function c... | true |
91d9552e9d4a870f448841d8fdaa6b947d5f2925 | Shell | VanDerLars/MySQL-Upload-multiple-Dumps | /MySQL_upload_all.sh | UTF-8 | 1,714 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# -------------------------------
# ----------- CONFIG ------------
# Set Database Information here
DB_USER="root"
DB_PSWD="PASSWORD_VERY_SECRET"
DB_HOST="127.0.0.1"
PATH_TO_BACKUP_FILES="mysql_backups/path/to/dumps"
# -------------------------------
# -------------------------------
# -----------------... | true |
cfed106e29e7e277e2bca3491ee585fee45a02eb | Shell | obuk/use-groff | /script/generate-font.sh | UTF-8 | 1,041 | 3.8125 | 4 | [] | no_license | #!/bin/sh
set -eu
PATH=/usr/local/bin:$PATH
usage="usage: $(basename $0) [-av] [-s size] [-t .ext] [-n subname] style fontfile"
subname=""
while getopts n:s:t: OPT
do
case $OPT in
s) size=$OPTARG ;;
t) type=$OPTARG ;;
n) subname=$OPTARG ;;
*) echo $usage >&2; exit 2 ;;
esac
done
siz... | true |
e9afb773c5313dd0ff40dda015deaaa4fa5ef97d | Shell | leejefon/cluster-setup-kube | /create-certs.sh | UTF-8 | 5,063 | 2.5625 | 3 | [] | no_license | source ./env.sh
mkdir -p certs
cd certs
# CA
{
cat > ca-config.json << EOF
{
"signing": {
"default": {
"expiry": "8760h"
},
"profiles": {
"kubernetes": {
"usages": ["signing", "key encipherment", "server auth", "client auth"],
"expiry": "8760h"
}
}
}
}
EOF
cat > ... | true |
12aeec748101e4c4d1be27e5bc2c42d1587d3a06 | Shell | nikita-duseja/directed_studies_2020 | /run_process.sh | UTF-8 | 605 | 3.09375 | 3 | [] | no_license | ## upload file to google storage
file_path=$1
num_speakers=$2
rm -f speaker_windows
rm -f word-time-offsets
gsutil cp $file_path gs://tamu-nduseja-ds/
file_name=`basename $file_path`
gs_storage_path="gs://tamu-nduseja-ds/$file_name"
python transcription/transcribe_word_time_offsets.py $gs_storage_path &
python3 diariza... | true |
bc6a381a94050869b69770a3c5c3486d4aabe51d | Shell | jorgeavilacardenosa/dotfiles | /terminal/_aliases/utils.sh | UTF-8 | 1,489 | 2.5625 | 3 | [] | no_license | # Enable aliases to be sudo’ed
alias sudo='sudo '
# Others
alias aux='ps uax'
alias brwe='brew'
alias edithosts='sudo vim /etc/hosts'
alias c='pbcopy'
alias copy='pbcopy'
alias copy_ssh_key='xclip -sel clip < ~/.ssh/id_rsa.pub'
alias count_files_recursive='find . -type f -print | wc -l'
alias count_files_recursive_per... | true |
4e427017f02c663df4c5cbd79524de4e00c6b716 | Shell | ernestoriv7/APU-performance-evaluation | /scenes/filerandom.sh | UTF-8 | 290 | 2.90625 | 3 | [] | no_license | for file in cpu/*
do
#file=${file#*/}
mv "$file" "cpu/"$RANDOM\_"${file#*/}"
#echo $file
done
for x in gpu/*
do
#file=${file#*/}
mv "$x" "gpu/"$RANDOM\_"${x#*/}"
#echo $file
done
for y in apu/*
do
#file=${file#*/}
mv "$y" "apu/"$RANDOM\_"${y#*/}"
#echo $file
done
| true |
7f90b41470669570b93ba9c6a25410b5f567d97b | Shell | ProjectStudyMaterials/tslog | /scripts/preCommit/protectDevAndMainBranches.sh | UTF-8 | 310 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Protect Dev and Main Branches
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "main" ] || [ "$branch" = "dev" ]
then
echo "You can't commit directly to the $branch branch! Please open a PR on a separate feature branch and get it approved before merging into $branch."
exit 1
fi
| true |
049c1bf2a11c78029ca85bcb00dc7ef0f66e1d9f | Shell | bigfix/boxes | /bigfix/common/util.source.sh | UTF-8 | 874 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
function is_ok {
local url="$1"
local auth=${2:-false}
local auth_opt=""
if $auth; then
auth_opt="--user bigfix:bigfix"
fi
local status=`curl --insecure $auth_opt $url -s -o /dev/null -w "%{http_code}"`
local retry=0
while [[ "$status" -ne 200 && "$retry" -lt 3 ]]; do
sleep 15
((retry++))
... | true |
e275fa296cff7e68f260e6534f579491f9cf8a91 | Shell | theritesite/wp-ci-test | /bin/install-wp.sh | UTF-8 | 4,722 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# see https://github.com/wp-cli/wp-cli/blob/master/templates/install-wp-tests.sh
if [ $# -lt 3 ]; then
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
exit 1
fi
DB_NAME=$1
DB_USER=$2
DB_PASS=$3
DB_HOST=${4-localhost}
WP_VERSION=${5-latest}
# TODO: allow environment vars fo... | true |
ef5c93ec339686e7f56d7d7c491d7851aee45f6b | Shell | ankan1811/Crio-Winter-of-Doing-Part-2 | /install.sh | UTF-8 | 1,277 | 3.25 | 3 | [] | no_license | #INSTALL MONGODB
# Import the public key used by the package management system
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
# Add sources
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/... | true |
4bd3b05799c7fbb5b0969d8ebc1dd4903e7f9334 | Shell | rubiin/dotfiles | /dot_bin/git-extras/executable_git-loglive | UTF-8 | 378 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Originially stolen from: https://git.io/vi07z
while :
do
# Outputting like that reduces blinking
status_output=$(git -c "color.status=always" status --short --branch)
log_output=$(git --no-pager log --color=always --abbrev-commit --date=relative --pretty=live $@)
clear
echo "$status_o... | true |
0727737a654db2c9f1cd71d1f7f2c165ac15a6fe | Shell | apjanke/brew-el_cap-work | /bin/user-functions.zsh | UTF-8 | 198 | 2.75 | 3 | [
"MIT"
] | permissive | # Functions for interactive use
#
#
# Display the last brew run log (from this project's build scripts)
# for a given formula
function last-log() {
ls log/runs/*/*/$1 | tail -1 | xargs cat
}
| true |
35486aed266710fabdf4f64b03ebdd98fdb3b5a0 | Shell | iibot-irc/core | /bin/ircwatch | UTF-8 | 1,016 | 3.234375 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
NETWORK=`$HOME/config.py network`
BOTNAME=`$HOME/config.py nick`
CHAN=$1
CHAN_II=$HOME/irc/$NETWORK/$CHAN
inotifywait -e modify $CHAN_II/out > /dev/null 2>&1
STUFF=`tail -n 1 $CHAN_II/out`
USER=`echo "$STUFF" | sed -e 's/^[^<]*<//' -e 's/>.*$//'`
if [ "$USER" != $BOTNAME ]; then
MSG=`echo "$STUFF" | se... | true |
68a4e8c3562c4930ed6d337fe3d33c107bd9e0c9 | Shell | dsyer/kpack | /hack/update-codegen.sh | UTF-8 | 875 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
SCRIPT_ROOT=$(realpath $(dirname ${BASH_SOURCE})/..)
pushd $SCRIPT_ROOT
go mod vendor
popd
trap 'rm -rf $SCRIPT_ROOT/vendor' EXIT
CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-... | true |
9868f043c8cfb36ca27c19f25bfe2326d9f701d7 | Shell | lttr/mapreduce-wikipedia-visitors | /scripts/mapreduce-wikipedia-visitors-all-files-at-once.sh | UTF-8 | 506 | 3.140625 | 3 | [] | no_license | # Takes input files (Wikipedia pagecounts) as arguments and process them
# ungzip all input files to stdout
gunzip -c $* |
# sum all lines starting with "cs" and not too long
# finally print the associative array
awk '
$1=="cs" && length($2)<100 {a[$2]+=$3}
END { for (i in a) print i,a[i] }
' |
# sort lines by secon... | true |
824ee98ed61514d0b1bbe394e2912ed21b1dea30 | Shell | jakob1379/.dotfiles | /i3/.i3/Scripts/toggle-microphone | UTF-8 | 284 | 2.9375 | 3 | [] | no_license | #! /bin/sh
amixer set Capture toggle
ans=$(amixer sget Capture toggle | grep -Pom1 '(?<=\[)(on|off)(?=\])')
echo "Registered state after change: $ans"
if [ "$ans" = "on" ]; then
notify-send " Microphone On"
elif [ "$ans" = "off" ]; then
notify-send " Microphone Off"
fi
| true |
c73a6314752e8a4de4c4fe5297e90fbac741454c | Shell | alexvasseur/mylio | /deletePmov.sh | UTF-8 | 310 | 3.28125 | 3 | [] | no_license | #!/bin/bash
D='/Volumes/TBSSD/TMP'
DD='' #2011-2020/2016
find "$D/$DD" -type f | egrep "/P.*\.mov" | while read aF
do
echo "$aF"
baseFileName=`basename "$aF" .mov`
inDir=`dirname "$aF"`
if [ -f "$inDir/$baseFileName.jpeg" ]
then
echo rm "$inDir/$baseFileName.jpeg"
echo " deleted"
fi
done
exit 0
| true |
1316e7398cc8696d18ebb35de8e3ae3134860a95 | Shell | davewhiiite/stakeware | /withdraw.sh | UTF-8 | 1,235 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# example script invocation:
# $ ./withdraw.sh usb://ledger?key=0 stake-account.json 2ETrrFcKsKpnE1RCLpxDfdwDA1fBVRKZmWQmEBi4sBqv
funding_keypair=$1 # ex: usb://ledger?key=0
stake_keypair_filename=$2 # stake-account.json
recipient_address=$3 # <receiving solana address>, ex: 2ETrrFcKsKpnE1RCLpxDfdwDA1fBVR... | true |
658b6ad909d053bc5cd8370cbfffa5b4f1e99abd | Shell | hallzy/pickapart-database | /populate-database-stmhall.sh | UTF-8 | 7,324 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Unset globbing
set -f
# Now readarray delimits with newlines
IFS='
'
# No case sensitivity for string matching
shopt -s nocasematch
#Name of the file that contains the necessary information.
ARGS_FILE=arguments_for_script
# If the arguments file exists then read the file and get the arguments, and
#... | true |
42c4c8846e6904d8da3531555f42c6c44cd579c3 | Shell | rdfostrich/cobra-bear-results | /polish-raw-offset-ostrich.sh | UTF-8 | 1,046 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
dir=$1
policies="versionmat deltamat version"
for policy in ${policies[@]}; do
i=0
queries=$(ls -d $dir/_raw/*.txt)
for query in ${queries[@]}; do
query=$(echo $query | sed 's/\/$//')
file=$query/$policy-
pol=$(echo $policy | sed "s/versionmat/vm/" | sed "s/deltamat/dm... | true |
5cd899dd53e977476f3a22889af86449daf2d447 | Shell | xinyuegtxy/pre_data | /.bashrc | UTF-8 | 6,112 | 3.546875 | 4 | [] | no_license |
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history l... | true |
4db0c253a9f337bb3a6712904bc541d8bb9658ef | Shell | jan-kaspar/analysis_d0_totem | /run_multiple | UTF-8 | 2,233 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#----------------------------------------------------------------------------------------------------
# defaults
models_ranges=()
make_plot_links="n"
uncs=(
#"st"
#"st+sy"
"st+sy+no"
)
#----------------------------------------------------------------------------------------------------
# parse co... | true |
fd5e585bf4e6bb98a2a25ec218a4015f4b8c3567 | Shell | HenriqueMorato/cc_dotfiles | /ubuntu.sh | UTF-8 | 2,037 | 2.65625 | 3 | [] | no_license | #!/bin/sh
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo... | true |
fd8b3cad7c6725f76ee1044e64be16b5b3962709 | Shell | TerranceN/asdf | /asdf | UTF-8 | 2,612 | 4.09375 | 4 | [] | no_license | #!/bin/bash
unhide_cursor() {
printf '\e[?25h'
}
trap unhide_cursor EXIT
_key()
{
local kp
ESC=$'\e'
_KEY=
IFS= read -d '' -r -sn1 _KEY
case $_KEY in
"$ESC")
while read -d '' -sn1 -t1 kp
do
_KEY=$_KEY$kp
case $kp in
[a-zA-NP-Z~]) break;;
esac... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.