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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5534ff2348503c713a7afaa337f2aa8359714bc2 | Shell | vatadepalli/bash | /assignments/Assign_1.sh | UTF-8 | 2,372 | 3.328125 | 3 | [] | no_license |
# 1
# Create some files and sub directories.
mkdir shell
cd shell
touch one two three
mkdir cat1
mkdir cat2
cd cat1
touch four five six
cd ..
cd cat2C
touch seven eight nine
cd ..
# a) display files row wise, column wise, 1 per row
# rowwise
ls -l
# b) sort the files in ascending, descending order
# c) Create... | true |
ba33bd60fc842f21de217e7369cd3c1462182416 | Shell | jbsparks/katacode | /hpc-container-training-scenario/backgroundInstall.sh | UTF-8 | 709 | 2.625 | 3 | [] | no_license | #!/bin/bash
echo "Installing prerequisit container runtime alternates, podman and singularity"
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://d... | true |
d2525a90a4cf944af1afa46416d555090855647e | Shell | UAVWorks/groundsystem-client | /build-scripts/install_opencv.sh | UTF-8 | 719 | 3.203125 | 3 | [] | no_license | #!/bin/bash
# Install OpenCV
INITIAL_DIR=$(pwd)
cd $HOME
sudo apt-get -y install build-essential
sudo apt-get -y install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get -y install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev li... | true |
4739119be5ab07f8caa17f9acae9dc9fd6caeeb7 | Shell | calh/octopus | /sample_app/script/ci_build | UTF-8 | 359 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
dir=`readlink -f $0`
dir="`dirname $dir`/.."
RAILS_ROOT=`readlink -f $dir`
cd $RAILS_ROOT
bundle install --path=$RAILS_ROOT/.bundle
for stage in test development production; do
PGPASSWORD=$POSTGRES_PASSWORD psql -h "$POSTGRES_HOST" -U "$POSTGRES_USER" -c "create database octopus_sample_app_$stage"
done
... | true |
4d021663c7d8a2e62bdf72e912f68d6cc08b7613 | Shell | EricCousineau-TRI/repro | /python/bindings/pybind_clang/tools/bazel | UTF-8 | 171 | 2.609375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -eu
workspace_dir=$(cd $(dirname ${BASH_SOURCE})/.. && pwd)
# Ensure that the venv is setup.
${workspace_dir}/setup.sh
# Run bazel.
exec bazel-real "$@"
| true |
dc3a0876dacd4f4a222914a39db5557a00777e06 | Shell | kontena/ruby-packer | /.travis/install_deps.sh | UTF-8 | 267 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -uex
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update
brew install squashfs
brew install texinfo
brew install openssl
else
sudo apt-get update
sudo apt-get install -y -q openssl squashfs-tools curl install-info info texinfo texi2html
fi
| true |
6302c519f08b8223080fb40839d3e02336fdce6e | Shell | samuelkarp/amazon-ecs-init | /ecs-init | UTF-8 | 4,252 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the
# "License"). You may not use this file except in compliance
# with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "licen... | true |
02ecba61b34b19e2f906e946f8daaa0ee64b4b46 | Shell | hyperion-ml/hyperion | /egs/sre19-cmn2/v1/steps_kaldi_xvec/run_xvector_3a.1_adapt.sh | UTF-8 | 7,123 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2019 Johns Hopkins University (Author: Jesus Villalba)
# 2017 David Snyder
# 2017 Johns Hopkins University (Author: Daniel Garcia-Romero)
# 2017 Johns Hopkins University (Author: Daniel Povey)
#
# Apache 2.0.
# This script adapts F-TDNN ... | true |
918196ba8b5613639953a131de0f4badfe3d08d8 | Shell | Ahjema/docker_scripts | /jenkins_update.sh | UTF-8 | 592 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#this script will update (or install and update after) a jenkins server. It uses a docker volume to retain settings/configs)
#stops current jenkins (if named jenkins)
docker stop jenkins
#for science
sleep 5
#Delete stopped jenkins container
docker rm jenkins
#Delete all 'untagged/dangling' (<none>) image... | true |
3bcde467f3e8f075978e18f59ab717139c671925 | Shell | zandbelt/ping-scripts | /pingfed-admin-api/sp-connection-add-verification-cert.sh | UTF-8 | 970 | 3.46875 | 3 | [] | no_license | #!/bin/sh
# sample script to add a new verification certificate to a SP Connection
ADM_USER=administrator
ADM_PWD=2Federate
PF_API=https://localhost:9999/pf-admin-api/v1
FLAGS="-k -s -u ${ADM_USER}:${ADM_PWD} --header X-XSRF-Header:\ pingfed"
SPID=$2
#SPID=iIsFjLr8PxZhoE1h8zFEG4Rre3P
PEM=$3
case $1 in
list)
ech... | true |
0115cca1aa2f524a49b7aa0b5c481f3470f7713c | Shell | GrowSense/Index | /view-garden-devices-info.sh | UTF-8 | 546 | 3.5 | 4 | [] | no_license | DEVICES_DIR="devices"
DIR=$PWD
echo ""
echo "Garden devices info..."
echo ""
if [ -d "$DEVICES_DIR" ]; then
for d in $DEVICES_DIR/*; do
DEVICE_TYPE=$(cat $d/type.txt)
DEVICE_NAME=$(cat $d/name.txt)
DEVICE_LABEL=$(cat $d/label.txt)
DEVICE_PORT=$(cat $d/port.txt)
... | true |
0c6e38a4557e560bc258fe7bf20075a6da7bf19b | Shell | lovebaicai/SmallScript | /auto_install_python3.sh | UTF-8 | 1,551 | 3.828125 | 4 | [] | no_license | #!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use root to initialization OS."
exit 1
fi
version="3.7.5"
echo "Please enter the version number you need:"
read -p "(Defa... | true |
8140490dfae2d741e81acea03118e11578d0dd73 | Shell | sullenel/dotfiles | /zsh/functions/splac | UTF-8 | 572 | 3.609375 | 4 | [] | no_license | #
# Split a flac file into multiple files/tracks
# Usage: $0 <cue file> <flac file> <directory to save tracks>
#
if [[ $# -eq 3 ]]; then
local cuefile="$1"
local flacfile="$2"
local dir="$3"
echo "-> Creating '$dir'"
mkdir -p $dir
echo "\n-> Splitting $flacfile"
shnsplit -w -f $cuefile -... | true |
ca7e3c4fafb03ff7e19a345a72806d588b08c8f9 | Shell | Artemigos/Dotfiles | /verify_software | UTF-8 | 158 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
result=0
for prog in $(cat required_software.txt) ; do
if [ ! "$(which $prog)" ]; then echo "Missing $prog"; result=1; fi
done
exit $result
| true |
a26b18099f9931f486e56043b144f0aa53931edb | Shell | spiritsree/docker-torrent-client | /app/scripts/health.sh | UTF-8 | 257 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# http://www.tldp.org/LDP/abs/html/parameter-substitution.html
health_host=${HEALTH_CHECK_HOST:-www.google.com}
if ! ping -c 1 "${health_host}" > /dev/null 2>&1; then
echo "Network down"
exit 1
else
echo "Network up"
exit 0
fi
| true |
eb324a225ee1001181f00f450fa7560ac66e68c7 | Shell | eurunuela/EuskalIBUR_dataproc | /04.first_level_analysis/07.compute_rsfc.sh | UTF-8 | 1,524 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if_missing_do() {
if [ $1 == 'mkdir' ]
then
if [ ! -d $2 ]
then
mkdir "${@:2}"
fi
elif [ ! -e $3 ]
then
printf "%s is missing, " "$3"
case $1 in
copy ) echo "copying $2"; cp $2 $3 ;;
mask ) echo "binarising $2"; fslmaths $2 -bin $3 ;;
* ) "and you shouldn't see this"; exit ;;
esac
fi
... | true |
87252b582c9f66c6e8983e9ecc3cd7e85bf50a5b | Shell | simpsonw/dotfiles | /bash/install.sh | UTF-8 | 376 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
git clone git@github.com:jonmosco/kube-ps1.git
find `pwd` -name *.bash -exec echo "source" {} \; > bash/dotfiles.bashrc
chmod +x $PWD/bash/dotfiles.bashrc
grep -q -F "source $PWD/bash/dotfiles.bashrc" ~/.bashrc || echo "source $PWD/bash/dotfiles.bashrc" >> ~/.bashrc
grep -q -F "export PATH=\$PATH:$PWD/bin/"... | true |
ac59a67fcbd25d7528d523ef8eb5fe861e8c414d | Shell | halfhappy/checkout-js-old-structure | /fs_watch.sh | UTF-8 | 2,103 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
SOURCE_FILE=$1 # $1 absolute source file
SOURCE_PATH=$2 # $2 source path
DEST_PATH=$3 # $3 target path root
ROOT_PATH=$4 # $4 root path of the project
RELATIVE_STENCIL_PATH="../BigCommerceStencil/base/templates"
# Check source file against source path and do nothing if matching
SOURCE_PATH_LEN=${#... | true |
43d8fdc6951fc37efde09a53142811832681f640 | Shell | mamewotoko/text2qr | /bin/text2qr.sh | UTF-8 | 137 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/sh
# $1: text
# $2: output filename
MYDIR=$(realpath $(dirname "$0"))
java -jar $MYDIR/../build/libs/text2qr-all.jar "$1" "$2"
| true |
2bf9d4689fb5f790af12cea3dceb722cea43b58b | Shell | fluffybunnies/sire | /raptor/chef-config.sh | UTF-8 | 491 | 2.546875 | 3 | [] | no_license | # Pull configs down from waglabs/chef-deploy
#
#
git clone git@github.com:waglabs/chef-deploy.git /tmp/chef-deploy
# @todo: pick based on $CHEF_ENV instead of hardcoding DEV
if [ -f /tmp/chef-deploy/raptor/files/DEV.config.local.sh ]; then
cp -f /tmp/chef-deploy/raptor/files/DEV.config.local.sh "$installDir/config... | true |
ac2dcfb0f238c00c8fb1769e5d9d0c6b48cd5205 | Shell | tofu-James/KIC-SSH_AutoLogin | /KIC_SSH-Darwin.sh | UTF-8 | 2,686 | 3.765625 | 4 | [] | no_license | #!/usr/bin/env bash
waitTime=10
VMNAME="$1"
if [$VMNAME == ""]; then
VMNAME="$(vboxmanage list vms |grep -e ""| sed -e 's/"//g' -e 's/ .*//')"
fi
VMNAME_C="$VMNAME"
PROTOCODE="ssh"
HOST_IP="$(vboxmanage showvminfo $VMNAME | grep -e "name = $PROTOCODE" | sed -e 's/.*host ip = \(.*\)\, host port.*/\1/')"
HOST_PORT="$(... | true |
1ee318fec7c6f5531c9fdc959d87dff7946b6e62 | Shell | eshack94/dotfiles-1 | /bash_profile | UTF-8 | 885 | 3.59375 | 4 | [] | no_license | . ~/.bashrc
if [[ $OS = Linux && $DISPLAY ]]; then
# Configure the CAPSLOCK key to be ESC when pressed alone or CONTROL
# when held with another key.
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
# Use Karabiner Elements to achieve the same on macOS.
elif [[ $OS = Darwin ]]; t... | true |
f1820c41aa0c8e3629e4734892a2da538cefb324 | Shell | cyber-labrat/pos-install-ubuntu-dde | /programs_to_install_with_apt.sh | UTF-8 | 259 | 2.671875 | 3 | [] | no_license | #!/bin/bash
APT_PROGRAMAS=(
git
git-flow
deepin-screen-recorder
deepin-calculator
ubuntu-restricted-extras
unrar
gimp
curl
inkscape
vim
)
for program in ${APT_PROGRAMAS[@]}; do
sudo apt install "$program" -y
done
| true |
b3537cbea2c4fc76536a42c18ea3e23d14573b24 | Shell | stephenmathieson/release.sh | /release.sh | UTF-8 | 833 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# release
#
# Copyright (c) 2014 Stephen Mathieson
# MIT licensed
#
# tag to release
TAG="$1"
# dependencies
REQUIRED="git-release git-changelog"
# places to increment version number
FILES="package.json component.json"
# must be in a git repo
[ -d ".git" ] || {
echo >&2 "not in a git repo";
exit ... | true |
64553d97f244bdeabacffa4c22a9c5770d66b2ea | Shell | blajos/puppet-openstack.tsm | /profiles/p_libvirt/files/create-ceph-secret.sh | UTF-8 | 403 | 3.25 | 3 | [] | no_license | #!/bin/bash
set -ex
SECRET=`mktemp`
cat > $SECRET <<EOF
<secret ephemeral='no' private='no'>
<usage type='ceph'>
<name>client.$1 secret</name>
</usage>
</secret>
EOF
#Secret 73f9b93b-7246-4dc6-b56a-f7e2f18c3fab created
uuid=`virsh secret-define --file $SECRET|sed -e 's/^Secret \([0-9a-... | true |
dc66b5fdc5f482a10e3a1341bbe7dfc7500bc054 | Shell | ostelco/ostelco-core | /sample-agent/generate-test-scripts.sh | UTF-8 | 3,412 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
##
##
## This sets up a set of demo scripts that can be used
## in conjunction with the script "apply-yaml.sh" to
## apply changes to the product/segment/offer configuration
## in Prime. It is intended as a vehicle for testing
## the interaction in basic ways, and will most likely
## be removed or replac... | true |
a0a6f086bfc313bb59d39509b198f5746f0903fc | Shell | coms-team/lineeye_lanio | /libLANIO/libLANIO_uninstall.sh | UTF-8 | 370 | 3.0625 | 3 | [] | no_license | #! /bin/sh
libdir=/usr/local/lib
libdir=/usr/local/lib
realname=libLANIO.so.1.0.?
soname=libLANIO.so.1
linkername=libLANIO.so
ldcommand=ldconfig
rm -f $libdir/$realname
rm -f $libdir/$soname
rm -f $libdir/$linkername
if [ `which $ldcommand` ]; then
ldcommand=ldconfig
elif [ -e /sbin/ldconfig ]; then
ldcommand=/s... | true |
c2f42e10d8918e4cba8365b8b3bb2ee8dc37a774 | Shell | cagdass/p4 | /test.sh | UTF-8 | 479 | 3.265625 | 3 | [] | no_license | #!/bin/bash
cursize=32
blocksize=512
rm block_size_512b_varying_chunksize.txt
touch block_size_512b_varying_chunksize.txt
while [ ${cursize} -lt 65536 ];
do
while [ ${blocksize} -lt $((cursize*1024)) ];
do
for i in `seq 1 5`;
do
echo "Iteration ${i} for chunksize ${cursize} and blocksize ${blocksize}";
./ap... | true |
9eab1e864291c6a5bb015dff442e62982670b387 | Shell | fa35/pinguinsoft | /woche1/installenv.sh | UTF-8 | 1,350 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env bash
groupadd pa
groupadd pl
groupadd ewa
groupadd sb
# options used:
# -M: do not create home directory
# -N: Do not create a group with the same name as the user
useradd -c "Müller Christina" -M -N --groups pl,pa pla
echo "pla:osz" | chpasswd
useradd -c "Perterson Peter" -M -N --groups pl plx
echo "p... | true |
c784832918a451777810a50e72d0f9afcbab2360 | Shell | mmmmmrob/Vertere-RDF | /Examples/ourairports.sh | UTF-8 | 3,300 | 2.75 | 3 | [] | no_license | #!/bin/bash
cat /dev/null > ourairports.com/output_data/full.rdf.nt
echo Starting with turtle files in hand-written rdf
for file in $(ls ourairports.com/handwritten/*.rdf.ttl)
do
rapper -i turtle -o ntriples "$file" >> ourairports.com/output_data/full.rdf.nt
done
echo Describing airports
cat ourairports.com/2011-11... | true |
2b4354f381769cde6455f4c2c7a25ae0f25d74c3 | Shell | instedd/cdx-sync-sshd | /files/sshd.sh | UTF-8 | 567 | 3.5 | 4 | [] | no_license | #!/bin/sh
if [ ! -f /etc/ssh/keys/ssh_host_rsa_key ]; then
ssh-keygen -t rsa -N "" -f /etc/ssh/keys/ssh_host_rsa_key
fi
EXISTING_SYNC_UID=`id -u cdx-sync`
if [ $? -eq 0 ]; then
if [ $EXISTING_SYNC_UID -ne $SYNC_UID ]; then
echo "The cdx-sync user is already created but the UID is different from the one speci... | true |
85b81cb989e900fcaec2df95cd849caef05bee9d | Shell | 5l1v3r1/Blackbox-3 | /Desktop/Linux Mint Custom/Caja Plugins /70 Nautilus scripts/Internet/YouTube-DL(cc) | UTF-8 | 1,170 | 3.609375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
video()
{
echo
var=`zenity --entry --title="YouTubeDL" --text="Ingrese el link del video youtube que va a descargar:"`
{
if [ $? = 0 ] ; then
youtube-dl -t "$var" | zenity --progress --pulsate --auto-close --auto-kill --title="YouTubeDL" --text="Descargando el archivo $var !"
fi
}
}
subtitulo()
{
echo
... | true |
7f4567758710e8019e7cb371bfd173af7bdc11c6 | Shell | sjfloat/stack-container | /genDev | UTF-8 | 435 | 3.40625 | 3 | [] | no_license | #!/bin/sh
user=$1
shell=$2
if [ -z $user ]; then
if [ ! -z $DOCKER_USER ]; then
user=$DOCKER_USER
else
user=`whoami`
fi
fi
if [ -z $shell ]; then
if [ ! -z $DOCKER_SHELL ]; then
shell=$DOCKER_SHELL
elif [ ! -z $SHELL ]; then
shell=$SHELL
else
shell=/bin... | true |
1df785228f18a713bb3c8400b1bd163851f6afd8 | Shell | Geovation/plastic-patrol | /scripts/backup.sh | UTF-8 | 745 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# TODO: do it cron
# ..
export PROJECT=plastic-patrol-fd3b3
export FOLDER=`date +%Y-%m-%d`
# save firebase
gcloud beta firestore export gs://plastic-patrol-bks/$FOLDER/firestore --async --project $PROJECT
# save users
mkdir -p bks/users
firebase auth:export bks/users/users.json --project $PROJECT
gsutil -... | true |
d3e3aae7e46409c1a0a79b34e4732685b804afed | Shell | random220/gcode | /howto/pdf-bookmark/indexmaker-shell.txt | UTF-8 | 1,283 | 3.5 | 4 | [] | no_license | #!/bin/bash
cat <<'EOF'
EOF
function make_index() {
cat <<'EOF' >index.info
--COOKED-INDEX-HERE--
EOF
/usr/bin/gs -sDEVICE=pdfwrite -q -dBATCH -dNOPAUSE -sOutputFile=out.pdf -dPDFSETTINGS=/prepress index.info -f ~/in.pdf
}
function repackit() {
# -----------------------------------------------------------... | true |
16072da7b271a85f89a327a3c8f800c37dfc0901 | Shell | chrichards/Learning-Purposes | /macOS/Update OS (Old)/updateOS.sh | UTF-8 | 13,103 | 3.296875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
##############################################
# VARIABLES
##############################################
# If using Jamf, start on $4
if [[ "$1" =~ "/" ]]; then
for (( i=1; i<4; i++ )); do
shift 1
done
fi
Parameter=$@
if [ -n $Parameter ]; then
Organization=$(echo "$Parameter" | awk '{print tolower... | true |
8faa7b50adfd8d862f9eea5785b5da40b67f319a | Shell | lijaesela/lush | /lc | UTF-8 | 7,942 | 3.890625 | 4 | [] | no_license | #!/bin/sh
#
# lush shell compiler -- add local variables to POSIX shell!
#
# KNOWN LIMITATIONS/TODOS:
# - invocations of local variables cannot be nested, e.g. '@{var%@{chop}}'.
# \-> The function has been made, now I must figure out the recursion.
# \-> FUCK imagine making recursion in a language that doesn't hav... | true |
8dd2c0e11f6a3d939ee9c4248b488fee16ff29e8 | Shell | devinlimit/Clarusway_aws_devops_workshop | /aws/class-notes/for_loop.sh | UTF-8 | 79 | 2.765625 | 3 | [] | no_license | #!/bin/bash
for (( num = 1; num <= 20; num++ ))
do
echo "Number: $num"
done
| true |
2ea17d171cb357d31bc09447250cd57e5226ea3b | Shell | idf/haystack | /alias.sh | UTF-8 | 1,669 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
WEBFRONT_CONTAINER=h_webfront
CACHE_CONTAINER=h_cache
STORAGE_CONTAINER1=h_storage1
STORAGE_CONTAINER2=h_storage2
STORAGE_IP1=172.20.0.6
STORAGE_IP2=172.20.0.7
STORAGE_SERVER_PORT1=8081
STORAGE_SERVER_PORT2=8082
STORAGE_IMAGE=hyoung/haystack_storage
STORAGE_INTERNAL_PORT=8080
LOCAL_STORAGE_DIR=$(pw... | true |
fc3e2d234b6e00d8703ed2e2d74a920f681a23ab | Shell | Woona/src | /school/big3 | UTF-8 | 1,950 | 3.125 | 3 | [] | no_license | #!/bin/bash
bnum1=0; bnum2=0; bnum3=0; cap=$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport -I | grep "BSSID*" | awk '{print $2}')
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport -s | grep "BCBOE1" |... | true |
25a0a3494f3d388097d1858047998df675519620 | Shell | luis10814/Unix-Shell-scripting-and-C-projects | /assignment1/t/leaves.t | UTF-8 | 1,272 | 3.515625 | 4 | [] | no_license | #!/bin/sh
. ./t/harness.sh
use_files pc-*
use_files *.mf
export_set()
{
set +x
for name in "$@"; do
PKGMF="$name.mf" './pc-export-packages' "$name"
done
set -x
}
##test base set has no leaves
print_no_leaves()
{
export_set base
test "$(./pc-leaves base |wc -l)" -eq 0
}
##test vim se... | true |
2a5f0079233bbcb094c5d0d29202d623bdc41e71 | Shell | rleschuk/ebot | /deploy/ebot.sh | UTF-8 | 1,232 | 3.53125 | 4 | [] | no_license | #!/bin/sh
ROOT=/opt
PROG_NAME=ebot
PROG_EXEC=ebot.py
PROG_PATH=$ROOT/$PROG_NAME
PROG_EXEC="$PROG_PATH/venv/bin/python $PROG_PATH/$PROG_EXEC"
PROG_PID=$PROG_PATH/$PROG_NAME.pid
PROG_LOG=$PROG_PATH/$PROG_NAME.log
PROG_ARGS="run --config production"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/12.1/client64/... | true |
42335a374b7a7712c6b27887103b93bfc9107e33 | Shell | alexey-larionov/rms_aws_2021 | /s03_annotate/s05_update_chromosomes_in_header.sh | UTF-8 | 2,103 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# s05_update_chromosomes_in_header.sh
# Alexey Larionov 02Apr2021
# Use:
# ./s05_update_chromosomes_in_header.sh &> s05_update_chromosomes_in_header.log
# Notes:
# This step is optional: just to make some plots look nicier in VEP-html report.
# Of course, its only possible after we filtered al variants o... | true |
3dcadf69ac2160951676ba3ecb768ad154e9bcc0 | Shell | kpmmmurphy/FinalYearProject | /wifi_direct/setup_ap.sh | UTF-8 | 807 | 2.6875 | 3 | [] | no_license | #Author: Kevin Murphy
#Date: 6 - Jan - 15
#Sets up raspberry pi as an access point
sudo apt-get install hostapd udhcpd
sudo cp ./ap_config_files/udhcpd.conf /etc/udhcpd.conf
sudo cp ./ap_config_files/udhcpd /etc/default/udhcpd
sudo cp ./ap_config_files/interfaces /etc/network/interfaces
sudo cp ./ap_config_file... | true |
b4f2258d936424e1004e50c7cddbc58c26be4433 | Shell | drozdowsky/rc-files | /.local/bin/vol | UTF-8 | 3,982 | 3.84375 | 4 | [] | no_license | #!/bin/sh
#
# https://github.com/mitchweaver/bin
# https://github.com/drozdowsky
#
# Simple volume control
#
usage() {
echo "vol: change volume"
echo "Usage: vol [-+=value]"
echo " vol -mute"
echo " vol -unmute"
echo " vol -ismute"
exit 0
}
unmute() {
case $(uname) in
... | true |
fc1c7850eb3cddcad81d9c629853290a637f46f9 | Shell | chenquzhao/20T2_COMP9044 | /ass2/demo04.sh | UTF-8 | 309 | 3.40625 | 3 | [] | no_license | #!/bin/dash
# Designed for Subset 4
lan="Java"
case $lan in
"C")
echo "C is the best language"
;;
"Java")
echo "Java is the best language"
;;
*)
echo "Python is the best language"
;;
esac
i=0
while true
do
echo $i >>'tmp.txt'
if [ $i -eq 5 ]
then
exit 0
fi
i=`expr $i + 1`
done | true |
1d07a1ae6b4a3b5cafb3ace7cfc6f71217d016cc | Shell | TMRolle/anthos-bare-metal-ref-arch | /scripts/gcp/instance_startup_script.sh | UTF-8 | 1,162 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2020 Google LLC
#
# 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 copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | true |
608810ffc67e883a404b34932f7708f081a61111 | Shell | Tubbz-alt/WRF-ROMS-Coupled | /jobs/fcstrun.sh | UTF-8 | 1,617 | 2.953125 | 3 | [] | no_license | #!/bin/bash
set -x
ulimit -s unlimited
ulimit -c unlimited
. /usr/share/Modules/init/bash
#module purge
export I_MPI_OFI_LIBRARY_INTERNAL=1
#export WRFIO_NCD_LARGE_FILE_SUPPORT=1
#export GFORTRAN_CONVERT_UNIT='native;big_endian:10'
export GFORTRAN_CONVERT_UNIT='big_endian'
# module load wrfroms
module load gcc/6.5.0 ... | true |
6596f39f8d0737f7c847cf65af0dc196c83ff3a9 | Shell | fabsta/TreeFam | /tools/get_homologs/start_array_jobs.sh | UTF-8 | 668 | 2.796875 | 3 | [] | no_license | #!/bin/bash
NoOfArrayJobs=11
echo About to start $NoOfArrayJobs
NoOfJobsPerArray=500
echo Each job with have $NoOfJobsPerArray
#TotalNumberOfJobs=$(cat first_50_families.txt | wc -l)
TotalNumberOfJobs=5050
echo There are $TotalNumberOfJobs jobs in total
for (( Counter=1; Counter<=TotalNumberOfJobs; Counter=Counter+No... | true |
2d898450090e7e3ff074f736fe45eaf3f13111c8 | Shell | stvngrcia/holberton-system_engineering-devops-2018 | /0x05-processes_and_signals/100-process_and_pid_file | UTF-8 | 418 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
# creates a file, displays a string indefinitely, handles SIGTERM, SIGINT, SIGQUIT
touch /var/run/holbertonscript.pid
echo $$ > /var/run/holbertonscript.pid
trap "echo 'I hate the kill command'; rm /var/run/holbertonscript.pid; exit" SIGTERM
trap "echo 'Y U no love me?!'" SIGINT
trap "rm /var/run/ho... | true |
bf9fd332def2ed54b425b7d2517a10d3e45c2f83 | Shell | LighteningIce/partition-trees | /example/loop_run_small.sh | UTF-8 | 1,864 | 2.53125 | 3 | [] | no_license | #!/bin/bash
function ergodic(){
#dir_path="../result_noconstraint/$2";
# test_lessprocessor
org_path="../result_outMdeg/result_p$3"
mkdir $org_path
dir_path="../result_outMdeg/result_p$3/$2";
mkdir $dir_path;
#,2.00,3.00,8.00
for i in {0.01,0.10,1.00,5.00,10.00}
do
#i=1.00
echo $i;
for file in ` l... | true |
997c0848f5d88e4014947d127640c3dfd083a236 | Shell | osy/HaC-Mini | /Installer/scripts/install_kexts.sh | UTF-8 | 1,998 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
CONFIG="$1"
KEXTDIR="$2"
PLIST_BUDDY="/usr/libexec/PlistBuddy"
$PLIST_BUDDY -c "Delete :Kernel:Add" "$CONFIG" || true
$PLIST_BUDDY -c "Add :Kernel:Add array" "$CONFIG"
i=0
find "$KEXTDIR" -name '*.kext' -type d | \
while read line
do
_pf="$line.Priority.txt"
_priority=9999
if [ -f "$_pf... | true |
676b9176cfe718829df07ed431f02c20fac35d79 | Shell | robindanzinger/bash_playground | /lib/assert.sh | UTF-8 | 1,130 | 3.796875 | 4 | [] | no_license | # equal
function assert_equal {
expected=$1
actual=$2
if [ "$expected" != "$actual" ]
then
throw_error "$expected is not equal to $actual"
fi
}
# $1 folder $2 mode [not]
function assert_folder_exists {
if [ $2 ] && [[ "$2" == "not" ]]
then
assert "! -d $1" "folder $1 exists"
else
assert ... | true |
28154c18ab2c3438bb8eae1c59b59ececb96e744 | Shell | kwegner7/publish | /tools/tools-ubu/tools/bsh/backup-ubu.bsh | UTF-8 | 925 | 3.4375 | 3 | [] | no_license | #!/bin/bash -norc
##############################################################################
# copy ubuntu files to the windows side in order to use SyncToy
##############################################################################
declare -r SOURCE_FOLDER="/home/kurt/ubu"
declare -r DESTINATION_FOLDER="/medi... | true |
610e40e7c8d807d38238753f632ba6dca4410751 | Shell | MountainField/bash-timeout | /tests/test_bash-timeout.bats | UTF-8 | 2,218 | 3.25 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
# =================================================================
# bash-timeout
#
# Copyright (c) 2018 Takahide Nogayama
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
# =================================================================
@tes... | true |
0d636bf2431ec3d5417c24defe073d90f2aa752e | Shell | aadee92/BeeManager | /README/Provisioning.sh | UTF-8 | 1,405 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
# Provisioning File for Vagrant
# Installs everything needed for the HiveManagement App
#
#Start with everything updated
sudo apt-get update
#Install Python3 with Pip
sudo apt-get -y install python3-pip
#Setup a virtual environment
# - Make Folder
cd /vagrant/
mkdir /vagrant/venv
# - Install Virt... | true |
869527080abf10cb4d36645ba1d1e32ddfd93e6d | Shell | haderman/woki-extension | /dev.sh | UTF-8 | 856 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# how to use: sh dev.sh popup|newtab|background
# This script is to watch changes in files and creat bundles from it
trap before_exit EXIT
before_exit() {
echo "End"
}
watch_newtab() {
cd src/elm
elm-live src/NewTab.elm -- --debug --output=../newtab/newtab.bundle.js
}
watch_popup() {
cd src/elm
... | true |
857c2e243f9ed73075dc036e2fb5d8d8b05e5b80 | Shell | apigee/consumer-data-standards-au | /setup/undeployOpenBankingAU.sh | UTF-8 | 5,434 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #/bin/bash
#
# Copyright 2018 Google LLC
#
# 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 copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | true |
ddfbc9be6209946d6490043f39f5416baf13d846 | Shell | linuxandroid/syno5builder | /rmdisk_32/usr/syno/etc/rc.d/J30DisableNCQ.sh | UTF-8 | 441 | 3.34375 | 3 | [] | no_license | #/bin/sh
DISK_PATH=/sys/block/sd*/device/
NCQ_OFF_LIST=/usr/syno/etc/ncq_off_list
NCQOFF_DISK=`cat $NCQ_OFF_LIST`
NCQ_RET=1
for i in $DISK_PATH
do
Disk=`cat $i/model`
for j in $NCQOFF_DISK
do
echo $Disk |grep $j >/dev/null 2>&1
ret=$?
if [ 0 -eq $ret ]; then
NCQ_Value=`cat $i/queue_depth`
if [ ! 1 -eq ... | true |
0ce2403a58b469c781a351937b057f2990ac9f0d | Shell | deanberris/vim-foo | /setup.sh | UTF-8 | 682 | 2.6875 | 3 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
# Copyright 2009 (c) Dean Michael Berris
# Distributed under the Boost Software License 1.0
# See LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#
CWD=`pwd`
if [ -d $HOME/.vim ]; then
echo "Moving existing ~/.vim directory to ~/.vim-old"
mv ~/.vim ~/.vim-old
fi
ln -s $CWD/dot-vim ~/... | true |
21a515975e538212b8c2971235d1d19ff5ad5831 | Shell | akhayyat/dotfiles | /hg/cwdiff | UTF-8 | 8,288 | 3.359375 | 3 | [] | no_license | #! /bin/bash
#(C) 2009-2012 C. Junghans
# junghans@votca.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This... | true |
6e14f59e011ff93c719beaa668e6e1a91d1176b7 | Shell | linorobot/lino_install | /install | UTF-8 | 6,132 | 3.109375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
source /opt/ros/$(dir /opt/ros)/setup.bash
wget https://www.pjrc.com/teensy/00-teensy.rules
sudo cp 00-teensy.rules /etc/udev/rules.d/
ROSDISTRO="$(rosversion -d)"
BASE=$1
SENSOR=$2
ARCH="$(uname -m)"
echo $ARCH
echo "
______ _____________ _________ ________ _______ ________ _______ ___... | true |
6166fc71c98f1b129d683fc1ed7325ab38c773d6 | Shell | patinnc/60secs | /gen_report.sh | UTF-8 | 48,325 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# expecte to be run from /root folder
# gets the results from the most recent runs of specint, specjbb, stream, geekbench, fio, vdbench, sysinfo
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_ALL=C
SCR_DIR="$( cd "$( dirname "... | true |
9a77d9d8a12f9e03e8639a8fa2df0b00e2679526 | Shell | tincanbox/caravan | /burden/.mysh/bootstrap.sh | UTF-8 | 1,669 | 3.21875 | 3 | [] | no_license | # Add...
# source ~/.mysh/bootstrap.sh
# in your *rc file.
#
if test -n "$ZSH_VERSION"; then
current_shell=zsh
elif test -n "$BASH_VERSION"; then
current_shell=bash
elif test -n "$KSH_VERSION"; then
current_shell=ksh
elif test -n "$FCEDIT"; then
current_shell=ksh
elif test -n "$PS3"; then
current_shell=unkno... | true |
3daff5e52f4f10f401872b855acb4a1a01b624bb | Shell | marcosbaroni/mkp-thesis | /exp/kpbt/plot-proof-steps.sh | UTF-8 | 1,105 | 2.515625 | 3 | [] | no_license | #!/bin/bash
data1=$1
data2=$2
term=svg
gnuplot <<!
# PLOTING CURVE OF PROOF
set term $term
set datafile separator ";"
set output "proof.$term"
set style data linespoints
set grid
set logscale y
set title "KP Proof Steps"
set xlabel "N. of items"
set ylabel "Steps"
set yrange [1:1e+16]
plot "$data1" u 1:2 title "Avg. ... | true |
5508f467409bb91c9cff8354358e39e71fbe02dc | Shell | mozhuli/sonobuoy-plugin-ab | /run_ab.sh | UTF-8 | 344 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
RESULTS_DIR="${RESULTS_DIR:-/tmp/results}"
sleep 10
/usr/bin/ab -n 90000 -c 50 ${NGINX_ENDPOINT} >"${RESULTS_DIR}/ab"
echo "ab done"
cd ${RESULTS_DIR}
tar -czf e2e-ab.tar.gz *
# mark the done file as a termination notice.
echo -n ${RESULTS_DIR}/e2e-ab.tar.... | true |
5357e0ce908b597e1087e8c3f4ae788f73745def | Shell | pegasus-isi/pegasus | /share/pegasus/examples/bosco-shared-fs/hello.sh | UTF-8 | 531 | 3.625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
input=f.a
if [ ! -e $input ]; then
echo "ERROR: input file $input does not exist" 1>&2
exit 1
fi
# check that we got the input file ... | true |
69f8a58911dc0324d6463192e36f3164bb60f2ef | Shell | schutm/wakala | /environments/vagrant/setup.sh | UTF-8 | 198 | 3.1875 | 3 | [
"ISC"
] | permissive | #!/bin/sh
VAGRANTSTATUS=$(vagrant status)
# If vagrant is running already, reprovision it
if echo "$VAGRANTSTATUS" | egrep -q "running" ; then
vagrant provision
else
vagrant up --provision
fi
| true |
6d05f3ef9d02bf002b83b72661076c18e949699c | Shell | briannrmit/cpt264-assignment2 | /menu_system | UTF-8 | 3,461 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# This is the Menu System for Part C of the assignment written by Brian Nguyen s3689020
PRINTF=/usr/bin/printf
LS=/bin/ls
PWD=/bin/pwd
SLEEP=/bin/sleep
QUIT=0
menu(){
$CLEAR
$PRINTF "\n"
$PRINTF "~~~~~~~~~~~~~~~~~~~~\n"
$PRINTF " User Menu System\n"
$PRINTF "~~~~~~~~~~~~~~~~~~~~"
$PRINTF "\n"
... | true |
c60cb81d6466b32c31f33994ebe70d8aefb54a89 | Shell | fbricker/phpwiki-to-github | /phpwikiSctipts/wiki2github | UTF-8 | 3,079 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# mime2mdwn - Convert MIME format wiki export (developed for PhpWiki exports) to Markdown
#
# globals
debug=true
# the actual heavy lifting
function convert_mime_to_markdown() {
local in_header=false
local boundary='idsajhfkjafhskdhasjdf'
local version=0
local data=''
local data_version=0
while... | true |
fd89f710de5ef03f6ffc1702df1b5f27e6ef9278 | Shell | eklitzke/c.sh | /hello.sh | UTF-8 | 852 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# where ctypes.sh is installed; you will likely have to change this
LD_LIBRARY_PATH=$HOME/local/lib
. ~/code/ctypes.sh/ctypes.sh
# compile stdin to a DSO
function build {
cfile=$(mktemp /tmp/XXXXXX.c)
sofile=$(mktemp /tmp/XXXXXX.so)
while read line; do
echo $line>>$cfile
done
c... | true |
2771d8f85cdab8ccbdffbbad9a4790c138298d58 | Shell | mayongji12/health_examination | /script/old/��Ӳ����Ϣ.txt | GB18030 | 2,497 | 3.703125 | 4 | [] | no_license | #!/bin/ksh -eu
#--ϵͳӲϢ
THIS=`basename $0 .ksh`
RUN_DATE=`date '+%y%m%d'`
OUT_FILE=$HOME_OUT/${SERIAL_NUM}_${THIS}_${RUN_DATE}
LOG_FILE=$HOME_LOG/${SERIAL_NUM}_${THIS}_${RUN_DATE}.log
rm -f ${OUT_FILE}*
rm -f ${LOG_FILE}*
#echo $THIS
#echo $RUN_TIME
#echo $OUT_FILE
#echo $LOG_FILE
echo "Now start to co... | true |
0c1f2cf268e4bf6d3d9460ba2f5b5669b1271d84 | Shell | goldobin/trials | /nodes/redis-server.sh | UTF-8 | 1,589 | 3.84375 | 4 | [] | no_license | #!/usr/bin/env bash
INSTANCES=3
START_PORT=7001
CONF_DIR=/etc/redis
RUN_DIR=/var/run
DB_DIR=/var/lib
LOG_DIR=/var/log/redis
INIT_SCRIPT=/etc/init.d/redis-server
Redis Installation
add-apt-repository -y ppa:chris-lea/redis-server
apt-get -y update
# apt-get -y upgrade
apt-get -y install redis-server redis-tools ru... | true |
0ee324f894dfb8c39135941d0de098b04b66e630 | Shell | sproul/multivcs_query | /src/vcs_scripts/cache.ls | UTF-8 | 662 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
search_args=$*
if [ -z "$search_args" ]; then
search_args=.
fi
for cf in `ls $TMP/cache.*.cmd | sed -e 's/\.cmd$//'`; do
if cat $cf.cmd | grepm $search_args; then
cat $cf
echo EOD
echo "cache.get $cf"
echo '-------------------... | true |
1b170489f1973b0d388fcea53f09988b4842f504 | Shell | xiaodongzhang1025/faceswap-simple | /SimpleSteps/extract.sh | UTF-8 | 223 | 2.96875 | 3 | [] | no_license | #/bin/sh
if [ "$1" == "" ]; then
echo "Usage: $0 photo_dir"
exit -1
fi
echo extract photos from "$1" to "$1_extract"
/D/Python38/python ../faceswap.py extract -i "$1" -o "$1_extract"
cp "$1"/*.fsa "$1_extract"/
| true |
de68f95f339cb9c042a508d32b770254fa8d0074 | Shell | caudebert/seqomm | /clean.sh | UTF-8 | 580 | 3.234375 | 3 | [] | no_license | #!/bin/bash
if (( $# != 1 )); then
echo "Illegal number of arguments. There should be 1 argument: case name."
exit 1
fi
caseName=$1
rm -f ./pdf.txt *.out
rm -fr ./outputs/$1/cache ./outputs/$1/DOFSelection ./outputs/$1/PDFs
rm -f ./data/$1/OMM.in ./data/$1/selectedDOFs.txt
read -p "Delete also derivatives? (... | true |
71bbcf9276e730eba022fb9016699fb9f05622dc | Shell | pratikkshaa/pratiksha | /Desktop/ao.sh | UTF-8 | 228 | 2.671875 | 3 | [] | no_license | #!/bin/sh
#ip address >>ip.txt
#grep "inet addr">>ip.txt
#File="/Desktop/myfile.txt"
#echo "--file contents $File--"
#cat $File
#ip route get 8.8.8.8 | tr -s ' '|cut -d ' ' -f7
cat >>myfile.txt <<EOF
this is text file
...
EOF
| true |
1c1e01b2bff20232dbf8093b811bc9c48acfe7d3 | Shell | vrangasam/cloud-terasort | /scripts/spark/5.push-files-to-hosts-and-update-them.sh | UTF-8 | 1,534 | 2.828125 | 3 | [] | no_license | #!/bin/bash
while read line; do
echo "Sending file to $line"
scp -i $1 ./hosts ubuntu@$line:/home/ubuntu/
scp -i $1 ./slaves ubuntu@$line:/home/ubuntu/
scp -i $1 ./masters ubuntu@$line:/home/ubuntu/
scp -i $1 ./xmls/core-site.xml ubuntu@$line:/home/ubuntu/
scp -i $1 ./xmls/hdfs-site.xml ubuntu@$line:/home/ubuntu... | true |
ef59cbad9caab2432a499277f96b6752ccb74e3d | Shell | theathos/synity-Bash-Aliases | /functions/editMySQLConfig.sh | UTF-8 | 692 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | # ~/.bashrc
mysqlconfig() {
if [ -f /etc/my.cnf ]; then
sedit /etc/my.cnf
elif [ -f /etc/mysql/my.cnf ]; then
sedit /etc/mysql/my.cnf
elif [ -f /usr/local/etc/my.cnf ]; then
sedit /usr/local/etc/my.cnf
elif [ -f /usr/bin/mysql/my.cnf ]; the... | true |
65aada965a0ee6b4f7894076671dd52e31242211 | Shell | kamynina/pgday-example | /run-coverage.sh | UTF-8 | 714 | 2.609375 | 3 | [] | no_license | #!/usr/bin/env bash
docker-compose up -d postgres
# wait when postgres up and running
until
docker-compose run --rm -e 'PGPASSWORD=example' deploy_api psql -U example -h postgres -d example -c "select 1";
do
sleep 1;
done
# deploy
docker-compose run --rm deploy_api bash /deploy.sh -h postgres -d example -u example... | true |
873c49470e8a7ca6c7febaac5edf891925faa078 | Shell | spicy202110/spicy_202006 | /docs/blog/2021/10/14/20200613_8p6sv6vxlgk/20200613_8P6Sv6VXLGk.info.json.sh2 | UTF-8 | 4,056 | 2.53125 | 3 | [] | no_license | #!/bin/bash
rm -f \
20200613_8P6Sv6VXLGk.info.json.vo.* \
20200613_8P6Sv6VXLGk.info.json.ao.* \
20200613_8P6Sv6VXLGk.info.json.bo.* \
20200613_8P6Sv6VXLGk.info.json.wav
rm -fr 20200613_8P6Sv6VXLGk.info_dir
mkdir -p 20200613_8P6Sv6VXLGk.info_dir
mv 20200613_8P6Sv6VXLGk.info.j... | true |
f3862a276919e08b73d22fd2ac0b43993f6c206e | Shell | govCMS/ipfa-theme | /build | UTF-8 | 426 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# Remove the styleguide from previous builds.
echo -n "Deleting previous styleguide..."
rm -rf public *.html
echo " done."
# Build the CSS with Bundler, Sass and Compass.
compass compile
# Build the styleguide using kss-node.
# kss-node [source files to parse] [destination folder] --template [location of... | true |
5898a0b7675fb79b8bfbe51af7739aab0e8f9933 | Shell | rferri-gr8/test-versioning | /.scripts/tag_release.sh | UTF-8 | 2,757 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# exit w/ 0 when any command returns 0
set -e
remote=origin
release_branch_prefix=release
status_check=1
version=""
while getopts "v:r:di" opt; do
case $opt in
v)
version="$OPTARG"
;;
r)
remote="$OPTARG"
;;
i)
status_check=0
;;
\?)
>&2 echo "Inva... | true |
2306123c4443539ba2ecd710c55ad1dd06b675aa | Shell | smelnik84/temp | /repo-full-copy.sh | UTF-8 | 490 | 2.515625 | 3 | [] | no_license | # Клонируем исходный репозиторий без рабочего каталога (--bare)
git clone --bare https://github.com/exampleuser/old-repository.git
cd old-repository.git
# Делаем mirror-push(будут скопированы все ветки и тэги) в новый репозиторий
git push --mirror https://github.com/exampleuser/new-repository.git
cd ..
# Удаляем ... | true |
4e63d8682e5ffbb2ab90aefbf2b4552e385a170e | Shell | manasij7479/z3-partial-order | /utils/run-clause-tests.sh | UTF-8 | 1,132 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# Reads configs from a file
# num_vars num_clauses neg_prob clause_size name
make
# make -C ../ release
mkdir -p tests
# rm -rf tests/*
cp $1 tests/
cd tests
touch result
ulimit -t 60
TIMEFORMAT='%3R'
while read p; do
filename=`echo $p | awk '{print $5}'`
if [[ "${p:0:1}" == "#" ]]; then
continue
... | true |
766e3ce40ad28bae918a5890204fcfd9c3571040 | Shell | samsarahq/git-delete-lock-buildkite-plugin | /hooks/post-checkout | UTF-8 | 224 | 3.453125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -e
set -o pipefail
set -u
echo "Current directory:"
pwd
FILE=.git/index.lock
if [ -f "$FILE" ]; then
echo "$FILE exists - deleting"
rm -f $FILE
else
echo "$FILE does not exist - not deleting"
fi | true |
0b2fd0b71ba6f591960fc85a55a323d58351d527 | Shell | just-ai/jaicf-jaicp-spring-template | /docker/app/run.sh | UTF-8 | 2,583 | 2.953125 | 3 | [] | no_license | #!/bin/sh
SERVICE_HOME=/opt/jaicf
SERVICE_CONF_DIR=$SERVICE_HOME/conf
SERVICE_OVERRIDING_DIR=/etc/jaicf
SERVICE_ENV_CFG=/etc/jaicf/env.cfg
SERVICE_LOG_DIR=/var/log/jaicf
SERVICE_TMP_DIR=/tmp
JAR_FILE=$SERVICE_HOME/app.jar
#set default service parameters
SERVICE_JAVA_XMX=512m
SERVICE_JAVA_MAX_PERM_SIZE=256m
# ------... | true |
46e9887bb27f41ff1f7de87cc31be76de8dbc46e | Shell | faiden/dotfiles | /.bin/mpdSinkToggle.sh | UTF-8 | 550 | 3.296875 | 3 | [] | no_license | #!/bin/bash
IP="192.168.0.3"
SINK=$(mpc -h $IP outputs)
SINK=${SINK##*(Pulseaudio sink) is }
SINK=${SINK%%Output*}
SINK=${SINK/$'\n'/}
case $SINK in
enabled)
# Enable the raspi sink
mpc -p 6600 -h 192.168.0.3 disable "Pulseaudio sink"
dunstify --replace=1338 -a notify-send "mpd sink:" "Off"
;;
disabled)
... | true |
a57d78c3d3c145a876b95f7e2e97f8dfa95d8d97 | Shell | isabella232/earthquake-design-ws | /z_update_postgis.sh | UTF-8 | 133 | 2.90625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | #!/bin/bash -e
update=$(which update-postgis.sh || echo '/usr/local/bin/update-postgis.sh');
if [ -x $update ]; then
${update};
fi | true |
8c7e6b18497a34705f6a5654faa51a643bcfe0f9 | Shell | wpcampus/wpcampus-pantheon | /scripts/code-deploy.sh | UTF-8 | 1,083 | 4.15625 | 4 | [] | no_license | ###
# This script requires:
# - Access to the site's Pantheon Dashboard
# - Terminus, Pantheon's CLI (https://pantheon.io/docs/terminus)
# - An .env file which has your Pantheon email.
#
# See the README for more information.
###
# Make sure we have all the environment information we need.
# Defines the following vari... | true |
bc9d855a8ca1fa07280564cd5ca8c022749ef7d1 | Shell | blowyourheart/myconfig | /bin/free.sh | UTF-8 | 2,144 | 3.78125 | 4 | [] | no_license | #!/bin/sh
# Determine OS
uname=$(uname)
# Build stats
if [ $uname = 'Darwin' ]; then
escecho='echo'
cachename='speculative'
# Get total/swap stats from sysctl
totalMem=$(sysctl -n hw.memsize)
allSwap=$(sysctl -n vm.swapusage | sed 's/M//')
swapTotal=$(echo $allSwap | awk '{ print $3 }' | awk -F . '{ print $1*10485... | true |
4be4b61083885aeb99f5ce1ce06934816f05077f | Shell | JoshuaSkootsky/chuyu-tian | /deploy.sh | UTF-8 | 1,021 | 3.875 | 4 | [] | no_license | #!/bin/bash
# if command fails, whole script stops
set -e
# function cleanup_at_exit {
# # return to main branch
# }
# trap cleanup_at_exit EXIT
# Subtree method here: https://gohugo.io/hosting-and-deplooyment/hosting-on-github/
echo "Deleting old publication"
rm -rf public
mkdir public
git worktree prune
rm -rf... | true |
066b6af50d31fef78b25218fff0da8cf0b039c9c | Shell | vincentdm05/raytracer | /tools/clean.sh | UTF-8 | 250 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
rootDir=$(cd "$(dirname $0)/../" ; pwd)
if [[ ! -d "${rootDir}" || "$(basename ${rootDir})" != "raytracer" ]]; then
echo "Incorrect root directory '${rootDir}'." 1>&2
exit 1
fi
rm -r "${rootDir}"/bin
rm -r "${rootDir}"/build
| true |
165d2c1b6c5312a2d7e72e81ccc86e7c5e790d6e | Shell | dallakyan/imod_singularity | /imod | UTF-8 | 224 | 3.34375 | 3 | [] | no_license | #!/bin/bash
ARGS=$@
if [ "$#" -lt 1 ]; then
echo "Enter an IMOD command."
else
echo -e "\nExecuting \`$ARGS\`\n"
singularity exec -B /home/:/home/ imod.img bash -c "source /etc/profile.d/IMOD-linux.sh && $ARGS"
fi
| true |
d151f8d11b7d9f674f26f338c6bf024978b82334 | Shell | satoshi-hirayama/techtalk4 | /provisioning/bin/site | UTF-8 | 1,390 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
CWD=`dirname "${0}"`
ROOT_DIR=${CWD/bin/}
function help {
cecho 36 "This command is generate default playbooks and inventry."
echo ""
cecho 36 "- generate usage: ${CWD}/site -n [site_name]"
cecho 36 "- delete usage: ${CWD}/site -n [site_name] -d"
exit 0
}
function cecho {
echo -e "\... | true |
7795077d867e3ea849f5bc1b9c9def1820e6cfb7 | Shell | sentabi/AutoInstaller | /fedora.sh | UTF-8 | 10,396 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
## jangan asal di jalankan, liat dulu scriptna untuk menghindari hal-hal yang tidak
## diinginkan
# Set Zona Waktu WIB
rm -f /etc/localtime
cp /usr/share/zoneinfo/Asia/Jakarta /etc/localtime
waktuMulai=$(date)
# Set hostname
if [[ -n "$1" ]]; then
hostnamectl set-hostname --static "$1"
else
h... | true |
91fcc5d41d98b7b4bb3498a9345ec7ecbbe035e7 | Shell | iptux/AndroidDev | /bin/signapk | UTF-8 | 5,095 | 3.5625 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
#
# signapk
# signing a apk with keystore
# see https://developer.android.com/tools/publishing/app-signing.html
#
# Create: 2016-04-24 17:10
# Author: Alex.wang
# Require: keytool, jarsigner, zipalign
readonly KEYSTOREDIR=~/.android/keystore
readonly DEFAULTKEYSTORE=cert
# Timestamping Authority
# some u... | true |
683f697494066479b351af8f36b938aa2a09a591 | Shell | kzsh/scripts | /bash/direnv/pyenv | UTF-8 | 1,129 | 3.9375 | 4 | [] | no_license | #!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIRENV_DIR=$SCRIPT_DIR
PYTHON_VERSION="$(cat "$DIRENV_DIR/.python-version")"
VIRTUAL_ENVIRONMENT="$(cat "$DIRENV_DIR/.virtual-environment")"
function main() {
export PYENV_ROOT=$HOME/.pyenv
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pye... | true |
51db5bd3b9be70755a8218c737f80351d979f311 | Shell | MagHub/aoide-dac-drivers | /aoide_dac_drivers_install.sh | UTF-8 | 1,980 | 3.734375 | 4 | [] | no_license | #!/bin/bash
newest_driver_version="4.19.86"
newest_firmware_hash="b9ecbe8d0e3177afed08c54fc938938100a0b73f"
current_kernel_version=$(uname -r)
proper_driver_version=${current_kernel_version:0:(${#current_kernel_version}-1)}
driver_test_path="/lib/modules/"$proper_driver_version+"/kernel/sound/soc/codecs/sabre9018k2m.ko... | true |
9275bd2f4e817a7664496553737a8e88186a805b | Shell | rmkn/pdns4api | /entrypoint.sh | UTF-8 | 502 | 3.15625 | 3 | [] | no_license | #!/bin/sh
KEY=${APIKEY:-pdns}
DBF=${DBFILE:-/tmp/pdns.db}
echo "select * from domains limit 1;" | sqlite3 $DBF
if [ $? -ne 0 ]; then
curl -o /tmp/schema.sqlite3.sql -SL "https://raw.githubusercontent.com/PowerDNS/pdns/auth-4.1.1/modules/gsqlite3backend/schema.sqlite3.sql"
sqlite3 $DBF < /tmp/schema.sqlite3.sql
chm... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.