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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a75467d4c8a08402fdc2869d978c7f4858c7d478 | Shell | HumboldtWirelessLab/click-brn-scripts | /500-experiments/003-interference-measurement/evaluation/eval.sh | UTF-8 | 980 | 3.59375 | 4 | [] | no_license | #!/bin/sh
dir=$(dirname "$0")
pwd=$(pwd)
SIGN=`echo $dir | cut -b 1`
case "$SIGN" in
"/")
DIR=$dir
;;
".")
DIR=$pwd/$dir
;;
*)
echo "Error while getting directory"
exit -1
;;
esac
if [ "x$RESULTDIR" = "x" ]; then
if [ "x$1" = "x" ]; then
echo "Use: \"RE... | true |
c74527f8a7bc5da337e241b32ec579c3583b7794 | Shell | ZVlad1980/adm_scripts | /api/installer/launch.sh | UTF-8 | 842 | 3.171875 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
declare -r __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
declare -r __dir_log="${__dir}/logs"
declare -r __dir_ora="${__dir}/oracle"
declare -r __dir_ora_scripts="${__dir_ora}/scripts"
declare -r __dir_repos="${__dir}/repos"
declare -r __log_fi... | true |
0481f2b3d4837bd4c169cfae861930b628230f95 | Shell | IKAMTeam/depl-scripts | /config-tomcat-security.sh | UTF-8 | 1,049 | 3.34375 | 3 | [] | no_license | #!/bin/bash
### Script for configure Tomcat filesystem security ###
# shellcheck source=utils.sh
. "$(dirname "$0")/utils.sh"
require_root_user
# Remove unresolvable symbolic links to prevent 'cannot dereference' error from chown/chmod
find -L "$TOMCAT_PATH" -type l -exec sh -c 'realpath "$1" &> /dev/null || (echo "... | true |
6788e887228de8aa3b94869d01dfde64fc4f29de | Shell | maxieds/GATechGTDMMBSoftwareBackup | /RNADB-construction/rna2ndary/UtilityScripts/RunRNADBConstruction-MathMulberry.sh | UTF-8 | 1,491 | 3.5 | 4 | [] | no_license | ## Usage: RunRNADBConstruction.sh [SequenceDataInputDir] [SequenceDataOutputDir]
#!/usr/bin/env bash
PYTHON3=`which python3`
MATH_MULBERRY_SRC=/projects/rna/RNADBConstructionScript
SEQDATA_INDIR="$MATH_MULBERRY_SRC/RNADB-sequence-data/DatabaseSequenceData"
SAMPLE_OUTDIR=./RNADBConstructionScriptOutput-`date +"%Y.%m.%... | true |
4cd2ed40bfc187385dcb36f7b771b97f5e1c1107 | Shell | ssb22/indexer | /html2apk/compile.sh | UTF-8 | 2,312 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
export SDK=/usr/local/adt-bundle-mac-x86_64-20140702/sdk # or whatever
export PLATFORM="$SDK"/platforms/android-19 # or whatever
export BUILD_TOOLS="$SDK"/build-tools/21.0.2 # or whatever
export KEYSTORE_USER=my_user_id # if you want to sign the apk
export KEYSTORE_PASS=my_password # ditto
export KEYSTORE_... | true |
553e461819d45b933e94ffff3e946c7f5e1b1842 | Shell | xieydd/shell | /system/create_user_centos.sh | UTF-8 | 280 | 3.109375 | 3 | [] | no_license | #!/bin/bash
USER_COUNT=`cat /etc/passwd | grep '^xieydd:' -c`
USER_NAME='xieydd'
if [ $USER_COUNT -ne 1 ]
then
useradd $USER_NAME
echo "123456" | passwd $USER_NAME --stdin
else
echo 'user exits'
fi
# visudo
#sed -i '/root ALL=(ALL) ALL/a\xieydd ALL=(ALL) ALL' /etc/sudoers
| true |
512b410707de1dc1aa86ce56b217385e71777c78 | Shell | YukariChiba/mirrors_sync | /sync/rsync_common.sh | UTF-8 | 682 | 3.5 | 4 | [] | no_license | #!/bin/bash
touch $sync_path/status/$sync_name
if [[ `cat "$sync_path/status/$sync_name"` != "syncing" ]];
then
echo "[$sync_name] Syncing..."
echo "syncing" > "../$sync_name"
rsync -rltz4 --progress --delete --log-file="$sync_path/log/$sync_name.log" "$sync_url/$sync_name" "$sync_path/data/$s... | true |
3be095366e9409981fdbb005c655e8b04f7f69a0 | Shell | edouard-lopez/dotfiles | /includes/posix/git.bash | UTF-8 | 1,521 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
function configure() {
# GITHUB
# Create a repo on github and connect it to local repo
# @param $1|$project project name
# @param $2|server remote server
# @param $3|$user remote user account
# @return void
function github-new() {
local project="${... | true |
f64ee3167f6b06257bf0ee6beee81f0cdc4cc839 | Shell | windystrife/UnrealEngine_NVIDIAGameWorks | /Engine/Source/ThirdParty/SDL2/build.sh | UTF-8 | 925 | 3.640625 | 4 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash
Architecture=x86_64-unknown-linux-gnu
#Architecture=i686-unknown-linux-gnu
#Architecture=aarch64-unknown-linux-gnueabi
BuildWithOptions()
{
local BuildDir=$1
local SdlDir=$2
local SdlLibName=$3
shift
shift
shift
local Options=$@
rm -rf $BuildDir
mkdir -p $BuildDir
pushd $BuildDir
cmake $Option... | true |
4965cbd3c59e0a6e0cd684d564510235b642b6b7 | Shell | AmesianX/wasm-binary-security | /linear-memory-analysis/build.sh | UTF-8 | 1,301 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# Clang wasi
compilers/wasi/wasi-sdk-8.0-linux/wasi-sdk-8.0/bin/clang --sysroot compilers/wasi/wasi-sysroot-8.0/wasi-sysroot main.c -O2 -o clang-wasi.wasm
compilers/wasi/wasi-sdk-8.0-linux/wasi-sdk-8.0/bin/clang --sysroot compilers/wasi/wasi-sysroot-8.0/wasi-sysroot main.c -O2 -Wl,--stack-first -o clang-s... | true |
e1b6fb58918c619272dc20ef7986fb0bd46c947f | Shell | domogik/domogik-website | /src_closed/build.sh | UTF-8 | 346 | 3.359375 | 3 | [] | no_license | TEMPLATE_DIR=./templates
STATIC_DIR=./static
BUILD_DIR=../build
# clean build
mkdir -p $BUILD_DIR
rm -Rf $BUILD_DIR/*
# generate html
for tpl in index
do
cat $TEMPLATE_DIR/header.tpl $TEMPLATE_DIR/$tpl.tpl $TEMPLATE_DIR/footer.tpl > $BUILD_DIR/$tpl.html
done
# copy static
for fic in $STATIC_DIR/*
do
cp ... | true |
e620757f0267baac628b78b6e7ed5e174ec71ecc | Shell | Vauxoo/travis2docker | /src/travis2docker/templates/rvm_env.sh | UTF-8 | 372 | 3.640625 | 4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
# First try to load from a user install
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
# Then try to load from a root install
source "/usr/local/rvm/scripts/rvm"
else
... | true |
24ce904b8bce31fc40ebe3bcec86c2791f2e0089 | Shell | libscie/liberator | /bin/zenodo-deposit.sh | UTF-8 | 3,506 | 3.53125 | 4 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | #!/bin/bash
# Return error if arg is missing
if [ ! "$1" ]; then
echo "Please point towards cmine project directory"
exit 1
fi
for path in $(ls $1/*/ -d)
do
if [ -f "$path/fulltext.pdf" ]; then
# Include country
PUB=$(jq '.["publisher"]' "$path"crossref_result.json)
# Include year
YEAR=$(jq '.["... | true |
ebc60c65354bd17d2077137866707b51ad5f86f2 | Shell | Darcos90/repositorio-scripts-alumnos | /simulacro02_JuanTonda.sh | UTF-8 | 769 | 3.3125 | 3 | [] | no_license | #script: 2 arrays , uno con el nombre de 6 amigos; y otro con sus telefonos
#!bin/bash
# declare -a para la declaración del array
# declaracion de 2 arrays usuario (nombre de amigos)
# y telefono (para los telefonos), colocados en orden de los amigos
#
# JUAN TONDA. Octubre 2017. simulacro02 /arrays
clear
contador=0
... | true |
81dcef51a4096be2790293a38369e6bf8b68b30c | Shell | CJS-ES6-Module-Transformation-Research/transformation-tools | /timeTransformations.sh | UTF-8 | 813 | 3.328125 | 3 | [] | no_license | #!/bin/bash
numRuns=$1
projDir=$2
projName=$3
curDir=`pwd`
testOutFile=`echo $curDir`"/tests_$3_$1runs.out"
timeOutFile=`echo $curDir`"/time_$3_$1runs.out"
echo $timeOutFile
# if the time output file or test output file already exist,
# delete them, to avoid repeatedly appending and polluting the old
# data (move th... | true |
74c7fe6d7e297612905088f99e13893ad8ebdf4b | Shell | enchobelezirev/concourse | /oq.tests/crawling/SL4XS2/XS Deploy Service OQ Tests/Test Suites/XSA Components Acceptance Tests/Execute OQ Tests/NodeJS Sample Application Scenario/env.sh | UTF-8 | 765 | 2.671875 | 3 | [] | no_license | #!/bin/bash
current_dir="$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")"
parent_dir="$(dirname -- "${current_dir}")";
if [ -f "${parent_dir}/env.sh" ] ; then
source "${parent_dir}/env.sh";
fi
export STEP_PATH="${STEP_PATH}/NodeJS Sample Application Scenario"
export ADDITIONAL_OPTIONS="--no-namespaces-for-se... | true |
d8b101b8512f1e72535625cd7ab57a80143d7265 | Shell | sinoe9891/ejercicios_bash | /denis-tutoria-1/ejercicio4.sh | UTF-8 | 600 | 3.78125 | 4 | [] | no_license | #!/bin/bash
function nombreprint(){
echo "Por favor ingresar su nombre"
read nombre
hora=`date +"%H:%M"`
echo "Hola $nombre son las $hora"
}
function numberpro(){
echo "PID es: $$ "
}
function salir(){
echo "Se salió del programa"
exit
}
m=0;
while [ $m -eq 0 ]
do
echo "Bienvenido"
echo "1) Ingrese su nomb... | true |
490d418a300c2e3e714992840000aca6921e96ce | Shell | chimay/configuration | /clifm/plugins/vid_viewer.sh | UTF-8 | 1,145 | 3.765625 | 4 | [] | no_license | #!/bin/sh
# Video thumbnails plugin for CliFM
# Written by L. Abramovich
SUCCESS=0
ERROR=1
if ! [ "$(which ffmpegthumbnailer 2>/dev/null)" ]; then
printf "CliFM: ffmpegthumbnailer: Command not found\n" >&2
exit $ERROR
fi
if [ -z "$1" ]; then
printf "CliFM: Missing argument\n" >&2
exit $ERROR
fi
TMP_DIR=".vidth... | true |
cc08c4cbfc0d6918ff4ed4fba545a2af0a784eba | Shell | Snake4life/cambae | /clients/chaturbae/cb_client/bash_scripts/streamlink.sh | UTF-8 | 249 | 2.90625 | 3 | [] | no_license | #!/bin/bash
pid=0
USERNAME=$1
datetime=$2
function finish {
[ ${pid} -gt 0 ] && kill ${pid} 2>/dev/null
}
trap finish EXIT
streamlink -Q "http://www.chaturbate.com/${USERNAME}" worst -o "${USERNAME}-${datetime}.mkv" &
pid=$!
sleep "3"
finish
| true |
b9cf0f5d7d9ddfdd6f48d83ced4ef4365f6f37ad | Shell | sonata-nfv/tng-schema | /package-specification/test/test_5gtango-vnf-package-example.sh | UTF-8 | 619 | 3.109375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -e
##
## Test package examples against schemas,
## e.g., NAPD, NSDs, VNFDs, REFs, ...
CMD=yamlvalidate
BASE_DIR=`dirname $0`
# schema paths
NAPD_SCHEMA=${BASE_DIR}/../napd-schema.yml
REF_SCHEMA=${BASE_DIR}/../ref-schema.yml
NSD_SCHEMA=${BASE_DIR}/../../service-descriptor/nsd-schema.yml
VNFD_SCHEMA=${BA... | true |
fb14dfe77805bbeff766c434abd23e69f3b6d649 | Shell | FichteFoll/dotfiles | /bin/bin/video-to-gif | UTF-8 | 767 | 3.203125 | 3 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/usr/bin/env zsh
# parse args
_fps=(--fps 10)
zparseopts -D -E -K -fps:=_fps i:=_input o:=_output
fps=$_fps[2]
input=$_input[2]
output=$_output[2]
params=($@)
if [[ -z $1 || $1 == --help || $1 == -h || -z "$input" || -z "$output" ]]; then
echo "params:"
echo " --fps n (optional)"
echo " -i input"
... | true |
92521b1852cc7acc36d80970bc271b822e3dd3fa | Shell | johnBgood/ansible | /ohmyzsh/roles/oh-my-zsh/files/bash_aliases | UTF-8 | 623 | 2.75 | 3 | [] | no_license | alias lla='ls -al'
alias ll='ls -lh'
# Global aliases -- These do not have to be
# at the beginning of the command line.
alias -g M='|more'
alias -g H='|head'
alias -g T='|tail'
alias -g L='|less'
# List only directories and symbolic
# links that point to directories
alias lsd='ls -ld *(-/DN)'
# List only file begin... | true |
e3761a8b417f7054e33ba3e7652f19792d286bba | Shell | DerekStride/dotfiles | /zsh/prompt.zsh | UTF-8 | 772 | 3.6875 | 4 | [
"MIT"
] | permissive | autoload colors && colors
# If the current path, with prefix replacement, has 3 or more elements `%3~`
# then return the directory we're in `%1/` else return the whole path `%2~`.
#
# The `~` in `%3~` means the current working directory but if it starts with
# $HOME, that part is replaced by a ‘~’. Changing it to `%3/... | true |
6818d82050f5bfe6b1459568bbf5cf853be86cd9 | Shell | tleonardi/tapRNAs | /scripts/other_analysis/ctcf_coverage.sh | UTF-8 | 3,869 | 2.984375 | 3 | [] | no_license | #!/bin/bash
set -xe -o pipefail
shopt -s extglob
source $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../include.sh
PC=$BASEDIR/nc/posConNCwithCodingPartner.bedx
HIC=$BASEDIR/downstream/hic
DIR=$BASEDIR/downstream/ctcf
mkdir -p $DIR/data
if [[ ! -f $DIR/data/tfbs.bed ]]; then
wget -O - http://hgdownload.cse.ucs... | true |
f66f70492d888f5f5f9457f925578d302139136e | Shell | christaotaoz/shkd-work | /work/panabit_plugin/pa_plugin/cfy/Route/src/dhcpsvr_leaselist | GB18030 | 5,152 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan
printf "Content-type: text/html;charset=gb2312
Cache-Control: no-cache
"
echo -n "";
. ../common/common.sh
myself="/cgi-bin/Route/`basename $0`"
[ "${CGI_id}" = "" ] && CGI_id=0
echo -n "
<script type=\"text/javascri... | true |
d91cb78db7ea38ea2cb8a6dcedb58c104fa531c3 | Shell | woodstok/tmux-butler | /modes/butler-history | UTF-8 | 251 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
ROOTDIR="$( cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P )"
export READER="cat $ROOTDIR/.history | uniq"
# Get the buffername from the selection
export SELECTOR="$ROOTDIR/scripts/fzf-common --no-sort"
$ROOTDIR/tmux-butler
| true |
d11e136b854247b76526c06a81c492e7ea5a947f | Shell | GbalsaC/edxRoot | /scripts/ctl.sh | UTF-8 | 3,477 | 3.46875 | 3 | [] | no_license | #!/bin/bash
WORKERS=( "edx.lms.core.low" "edx.lms.core.default" "edx.lms.core.high" "edx.lms.core.high_mem" "edx.cms.core.low" "edx.cms.core.default" "edx.cms.core.high" )
WORKERS_CONCURRENCY=( "1" "3" "4" "2" "3" "4" "1" )
start_worker() {
cd /opt/bitnami/apps/edx/edx-platform
if [ `id|sed -e s/uid=//g -e s/\... | true |
28c075b1c9140bdd7aea7ad43619a7645e01a55d | Shell | vfbsilva/docker | /theano/run.sh | UTF-8 | 382 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
IMAGE=theanogru-gpu
if [ "$1" == "train" ]; then
CMD=./train.sh
elif [ "$1" == "process" ]; then
CMD=./process.sh
else
CMD=bash
fi
# execute docker run with nvidia driver and device
docker run -it --device=/dev/nvidiactl --device=/dev/nvidia-uvm --device=/dev/nvidia0 --volume-driver nvidia-do... | true |
a449e559ba11b08189e7735dcc3c93b21b3052cc | Shell | vishalsacharya/stokes | /scripts/3stampede.job | UTF-8 | 1,896 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#SBATCH -J TBSLAS
#SBATCH --export=ALL
#SBATCH -n 64 # total number of mpi tasks requested
#SBATCH -N 64 # nodes
#SBATCH -p normal # queue (partition) -- normal, development, etc.
#SBATCH -t 02:00:00 # run time (hh:mm:ss) - 1.5 hours
#SBATCH --mail-user=arash@ices.utexas... | true |
834df846249027e341fdb691d8ec034eb220417b | Shell | raghavnauhria/whatmt | /pytorch/.jenkins/pytorch/macos-build-test.sh | UTF-8 | 298 | 2.84375 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | #!/bin/bash
if [ -z "${BUILD_ENVIRONMENT}" ] || [[ "${BUILD_ENVIRONMENT}" == *-build* ]]; then
source "$(dirname "${BASH_SOURCE[0]}")/macos-build.sh"
fi
if [ -z "${BUILD_ENVIRONMENT}" ] || [[ "${BUILD_ENVIRONMENT}" == *-test* ]]; then
source "$(dirname "${BASH_SOURCE[0]}")/macos-test.sh"
fi
| true |
72eff12506203d4501fd8a0b5c6f878a967338d6 | Shell | techno-tanoC/shell | /arch.sh | UTF-8 | 2,018 | 2.8125 | 3 | [] | no_license | #!/bin/sh
set -eu
setup_base() {
sudo pacman-mirrors -c Japan
sudo pacman -Syyu
sudo pacman -S --noconfirm yay
sudo pacman -S --noconfirm tree
sudo pacman -S --noconfirm vim
# binutils installs the strip command
sudo pacman -S --noconfirm base-devel
sudo pacman -S --noconfirm zsh
sudo pacman -S --no... | true |
67205c7d4ed244fd2bb683270a31b20808bc0135 | Shell | stfxecutables/dynamic_loss | /apptainer/helper_scripts/prepare_code.sh | UTF-8 | 808 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
APPTAINER_ROOT="$(dirname "$SCRIPT_DIR")"
PROJECT="$(dirname "$APPTAINER_ROOT")"
PREP="$PROJECT/prepare"
RUN_SCRIPTS="run_scripts"
SCRIPTS="scripts"
SRC="src"
TEST="test"
EXPERIMENTS="experiments"
... | true |
14c1af33187c2b00584b44447df0cdf88c7bdeef | Shell | wonkarthik/myscripts | /sample/yacy.sh | UTF-8 | 1,303 | 3.265625 | 3 | [] | no_license | #!/bin/bash
pidof java && kill `pidof java`
grep yacy /etc/passwd || useradd -m -s /bin/bash -d /opt/yacy yacy
# get java8
test -f /etc/ssl/certs/java/cacerts || apt-get install ca-certificates-java -y
apt-get remove default-jre ca-certificates-java openjdk-7-jre openjdk-7-jre-headless -y
apt-get autoremove
cd /opt... | true |
f33d4a517500ad036104e48b273fc3e1c6c8c37b | Shell | rxxq/CSC209_assignments | /practice/largest_file.sh | UTF-8 | 282 | 3.578125 | 4 | [] | no_license | #! /bin/bash
PATH=/bin:/usr/bin
if test $# -eq 0
then
echo usage: $0 file ... >&2
exit 1
fi
maxsize=-1
for i
do
echo $i
thissize=`wc -c <"$i"`
if test $thissize -gt $maxsize
then
maxsize=$thissize
maxname="$i"
fi
done
echo "$maxname"
| true |
c7114c5b02767af6de52907555250dcfe81ef575 | Shell | UniversityOfHelsinkiCS/sis-importer | /importer-db-staging-sampletaker/run.sh | UTF-8 | 2,921 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Exit on error
set -e
# constants
container="importer-db-staging-copy"
db="sis-importer-db"
# Get dump from pannu to local env or copy inside pannu
get_dump() {
read -rp "Are you running this locally or in pannu(l/p)?" RUNENV
pannupath="/home/importer_user/staging/backup/importer-db-staging.sqz"
i... | true |
ea7fc3ca7fd54872ba89a3c020fcbe27941199a8 | Shell | boti-li/cloud-native-security-book | /code/0304-运行时攻击/02-安全容器逃逸/docker/attack.sh | UTF-8 | 997 | 3.984375 | 4 | [] | no_license | #!/bin/bash
set -e
echo -e "\t[+] In the evil container"
echo -e "\t[*] Searching for the device..."
found_clh_dev=false
for path in /sys/dev/block/* ; do
curr_target=$(readlink $path)
if [[ $curr_target == *"vda1"* ]]; then
dev=$(basename $path)
guest_fs_major=$(echo $dev | cut -f1 -d:)
guest_fs_mi... | true |
0b8746bcc479e571124aea7e8a634f65eaf28b77 | Shell | fteychene/dokku-alt | /plugins/dokku-postgresql/pre-delete | UTF-8 | 512 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source "$(dirname $0)/vars"
verify_app_name "$1"
DB_LINKS="$DB_APP_DATABASES$APP/"
DB_APP_PASSWORD="$DB_APP_PASSWORDS$APP"
# Revoke all privileges
[[ ! -d "$DB_LINKS" ]] || ls -1 "$DB_LINKS" | while read DB_NAME; do
pgsql_admin <<EOF || true
REVOKE ALL PRIVILEGES ON DATABASE "$DB_NAME" FROM ... | true |
32766e6c461abd898f439e3a1209591da00c2499 | Shell | jgrocho/dot-files | /xinitrc | UTF-8 | 1,516 | 3.171875 | 3 | [] | no_license | #!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [[ -d /etc/X11/xinit/xinitrc.d ]]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[[ -x "$f" ]] && . "$f"
done
unset f
fi
# Set the cursor (XMonad does not set one by default)
xsetroot -cursor_name left_ptr
# Set screen la... | true |
e41e0c8bed7c9a73b5489c304c77c0f25a61f3b6 | Shell | LeCoyote/optware | /sources/clutch/postinst | UTF-8 | 463 | 3.15625 | 3 | [] | no_license | #!/bin/sh
CONF=/opt/etc/lighttpd/lighttpd.conf
test -f ${CONF} || exit 0
#uncomment fastcgi module
echo "Enabling fastgi module for lighttp"
sed -i -e '/^#[ \t]*"mod_fastcgi"/s/^#/ /' ${CONF}
#uncomment fastcgi.server
sed -i -e '/^#fastcgi.server/b uc;b;:uc;s/^#//;n;s/^#//;t uc' ${CONF}
SERVER_PORT=$(sed -ne 's/server... | true |
af77d14bc04d497b3d277b2e8a0ec44fc6c1f365 | Shell | Fonmon/Fondo-DevOps | /environment/scripts/restore_env | UTF-8 | 1,132 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -x
if [ $# -ne 1 ]; then
echo 'Arguments: recovery_file'
exit 1
fi
source /etc/environment
RECOVERY_FILE=$1
cd $HOME_FONMON
tar -xzf $RECOVERY_FILE
# letsencrypt
cp -r recovery_files/letsencrypt/* /etc/letsencrypt
chown -R root:root /etc/letsencrypt
cd $(find /etc/letsencrypt/live/* -typ... | true |
035e760c029cfe5b3fabe55f2442d71e7fc441fd | Shell | 7error/docker-harbor | /wait-for-postgres.sh | UTF-8 | 363 | 3.546875 | 4 | [] | no_license | #!/bin/bash -e
# wait-for-postgres.sh
# Adapted from https://docs.docker.com/compose/startup-order/
# Expects the necessary PG* variables.
until psql -c '\l' -U "postgres" -tw >/dev/null 2>&1; do
echo >&2 "$(date +%Y%m%dt%H%M%S) Postgres is unavailable - sleeping"
sleep 4
done
echo >&2 "$(date +%Y%m%dt%H%M%S) Pos... | true |
24c6631ba85945581859ae792c7415c062ddbf55 | Shell | semoho/Linux-Tutorial | /students-assignments/1/Assignment 06/calculator.sh | UTF-8 | 349 | 3.34375 | 3 | [] | no_license | #!/bin/bash
echo "Enter Two numbers: "
read a
read b
echo "Enter Operation: "
read ch
case $ch in
+)res=`echo $a + $b | bc`
;;
-)res=`echo $a - $b | bc`
;;
\*)res=`echo $a \* $b | bc`
;;
/)res=`echo "scale=5;$a / $b" | bc`
;;
^)res=`echo $a ^ $b | bc`
;;
%)res=`echo $a % $b | bc`
... | true |
75417fc48314ffa3c5ac79f080c33f7bdabca034 | Shell | BackupTheBerlios/projectdev | /oldtree/current/base/cpio/PKGBUILD | UTF-8 | 609 | 2.78125 | 3 | [] | no_license | # $Id: PKGBUILD,v 1.1 2004/11/02 13:04:40 dpb Exp $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=cpio
pkgver=2.5
pkgrel=4
pkgdesc="A tool to copy files into or out of a cpio or tar archive"
url="http://www.gnu.org/software/cpio"
depends=('bash')
source=(ftp://ftp.gnu.org/gnu/cpio/cpio-$pkgver.tar.gz)
build() {
c... | true |
939c2613c55d62a4f87953cf47bc56d558d43cf2 | Shell | syranez/.bash | /alias | UTF-8 | 776 | 3.09375 | 3 | [] | no_license | #! /usr/bin/env bash
#
# aliases
# jshint alias
alias jshint=/usr/lib/node_modules/jshint/bin/hint
if [[ ${OSTYPE//[0-9.]/} == 'darwin' ]]; then
alias ls="ls -G"
else
alias ls='ls --color=auto'
alias grep='grep --color=auto'
fi
alias ip='curl ifconfig.me'
# enable per default all Warnings, as recommende... | true |
3552cb2efcbf2d8a51b4c395191d5452935fb422 | Shell | kgyang/pi3 | /buildall.sh | UTF-8 | 185 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
TARGET=$1
cd $(dirname $0)
make -C common $TARGET && make -C bcm2835 $TARGET && make -C DHT $TARGET
[[ "$TARGET" == "clean" ]] && {
cd $(dirname $0)
rm -rf lib bin
}
| true |
ac37375a04e367fb0c7ea78b564be4e90a8cbaca | Shell | rajatk32/Assignments | /server-upgrade/deploy-servers | UTF-8 | 3,337 | 4.46875 | 4 | [] | no_license | #!/bin/sh
# script tested on ubuntu
# How the deployment works:
# If a server on the target machine is already running, its process id is extracted
# The server file is copied/replaced with scp command (If the old server was running, it still remains in operational state)
# If the old server was running, it is checked... | true |
c978f6e8b277d6742a7ddddec76916534a27c904 | Shell | brianclements/zsh | /zsh.d/colors.zsh | UTF-8 | 1,328 | 3.21875 | 3 | [] | no_license | autoload colors; colors
# The variables are wrapped in \%\{\%\}. This should be the case for every
# variable that does not contain space.
for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do
eval PR_$COLOR='%{$fg_no_bold[${(L)COLOR}]%}'
eval PR_BOLD_$COLOR='%{$fg_bold[${(L)COLOR}]%}'
done
eval RESET='... | true |
e50a0caf843ed5187ff15768148e7071514b72e0 | Shell | mgijax/pwi | /admin/stopserver.sh | UTF-8 | 218 | 3.046875 | 3 | [] | no_license | #!/bin/bash
if [ "${MGICONFIG}" != "" ]
then
source ${MGICONFIG}/master.config.sh
fi
source ../Configuration
PID=`pgrep -f "prodserver.py --port=$SERVER_PORT"`
printf "Killing process with pid=$PID\n"
kill -9 $PID
| true |
1a3fdae85c6d871d81cdc1004d1f57138a2b4045 | Shell | firepick1/ArduinoJson | /scripts/buildzip | UTF-8 | 578 | 3.59375 | 4 | [
"MIT"
] | permissive | #! /bin/bash
echo "SCRIPT : buildzip"
echo "HELP : build zip file for Arduino installation"
TAG=`git log --pretty=format:'%H' -n 1`
OUTPUT="ArduinoJson-$TAG.zip"
echo "STATUS : creating $OUTPUT"
rm -f $OUTPUT
pushd .. >& /dev/null
zip -r -q $OUTPUT \
ArduinoJson/CHANGELOG.md \
ArduinoJson/examples \
ArduinoJso... | true |
411896882b6b0f96fe783390752fc76284522f26 | Shell | eliasdorneles/dotfiles | /bin/run-jison.sh | UTF-8 | 528 | 4 | 4 | [] | no_license | #!/bin/bash
set -e
error(){ echo "$*"; exit 1; }
[ "x$1" = "x" ] && error """Usage: `basename $0` JISONFILE [INPUTFILE...]
If no INPUTFILEs are provided, the input will be read from STDIN
"""
jisonfile=$1; shift
[ -f "$jisonfile" ] || error "ERROR: File not found: $jisonfile"
outjison=`mktemp`
tmpfile=`mktemp`
# g... | true |
1ecb03190979ca619310bd7cd297f931c7095419 | Shell | zhangaz1/dotfiles-58 | /.setup/sync.sh | UTF-8 | 210 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit
set -o pipefail
_main() {
brew bundle --global dump --force && sed -i "s/, link: false//" ~/.Brewfile
code --list-extensions > "$HOME/.vscode/extensions/list"
}
_main
| true |
13a9a6199a901df4f14b541617d7fb696dd57c0e | Shell | ZubairNabi/ciel | /scripts/check_space_workers.h | UTF-8 | 214 | 3.296875 | 3 | [
"LicenseRef-scancode-other-permissive",
"ISC"
] | permissive | #!/bin/bash
#SCRIPT: check_space_workers.sh
#PURPOSE: Check space on workers
FILENAME=$1
USERNAME=root
while read MACHINE
do
echo "Showing space on $MACHINE"
ssh -n $MACHINE df -h
done < $FILENAME
| true |
bfd177f6121095a436b83b8faffe212d1ddd4d08 | Shell | WIEQLI/devenv | /install_linux/install_oh_my_git.sh | UTF-8 | 151 | 2.5625 | 3 | [] | no_license | set -e
if [ ! -d $DEV_HOME/development/oh-my-git ]; then
cd $DEV_HOME/development
git clone https://github.com/arialdomartini/oh-my-git.git
fi
| true |
b60fa34c45c66af6a4482b67bf17d069f579d274 | Shell | supunj/sl2garmin | /map_locations.sh | UTF-8 | 923 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#Author: Supun Jayathilake (supunj@gmail.com)
# Content locations
MAP_ROOT=$(dirname $(readlink -f $0))
TEMP_LOC=$MAP_ROOT/tmp
STYLE_LOC=$MAP_ROOT/resources/style
TYP_LOC=$MAP_ROOT/resources/typ
MP_LOC=$MAP_ROOT/maps/mp
OSM_LOC=$MAP_ROOT/maps/osm
IMG_LOC=$MAP_ROOT/garmin
OTHER_IMG_LOC=$MAP_ROOT/maps/img
P... | true |
48bb6bee65ebcafa30240f40caca789475b685c8 | Shell | shanky123/test-cluster | /node_mgmt/node_warrior.sh | UTF-8 | 297 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# Logs in to HP ILO-card and resets the system
# Change user and password to fit you system
expect << EOF
set timeout 20
spawn telnet ipmi-$1
expect "login: "
send "admin\r"
expect "Password: "
send "admin\r"
expect "*>"
send "reset system1\r"
expect "*>"
send "exit\r"
EOF
| true |
a95709292bebecff6bfc233da889112653cf3a7d | Shell | testee256/.dotfiles | /tools/find-by-time.sh | UTF-8 | 224 | 3.21875 | 3 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
set -e
FIND_DIR=$1
FIND_NAME=$2
if [ ! -z "$3" ]; then EXTRA_ARGS="${@:3}"; else EXTRA_ARGS="-n -r"; fi
find $FIND_DIR -name $FIND_NAME -printf "%Ty-%Tm-%Td %TH:%TM:%.2TS %12s %p\n" | sort $EXTRA_ARGS
| true |
72638fa96a40908c7150836002b1f6f21d107010 | Shell | MalikHesham/Bash-Project | /disable_site.sh | UTF-8 | 359 | 3.21875 | 3 | [] | no_license | #!/bash/bash
# this script takes the website name from the user and disables it
# exit code 0 : success
read -p "Enter the site name to be disabled: " WEBSITE
cd /etc/apache2/sites-available
a2dissite $WEBSITE.conf
echo "$WEBSITE was disabled successfully"
# reloading apache2 to effects are done
echo "restarting apa... | true |
7af1f651c0f01bfc2dafd7e7fdbd33ca9cf70af0 | Shell | ttripp/searchlight-ui | /tools/gate/integration/post_test_hook.sh | UTF-8 | 419 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script will be executed inside post_test_hook function in devstack gate
set -x
DIR=${BASH_SOURCE%/*}
source $DIR/commons $@
set +e
cd /opt/stack/new/searchlight-ui
sudo -H -u stack tox -e py27integration
retval=$?
set -e
if [ -d ${SEARCHLIGHT_UI_SCREENSHOTS_DIR}/ ]; then
cp -r ${SEARCHLIGHT_UI... | true |
00055f1ba78db26baaa44f9f9133cd0b8a44b081 | Shell | mafm/asif | /bin/legalityTest.sh | UTF-8 | 297 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$(dirname $0)" != "." ]
then
echo "You should run this from its directory. Run:"
echo " cd $(dirname $0)"
echo "and try again. :)"
exit 1
fi
src=$1
base="$(basename $1 | sed 's/\.pts//')"
ast=examples/pgms/$base
cd systemu
./.cabal-sandbox/bin/runLegalityTest $ast
| true |
60470de947280a4b1c1c32cf2dd6f7ce3f840b68 | Shell | biomechanics-hlrs-gebert/M-ROT-Rotational-Tensor-Optimization | /manage_geb-lib.sh | UTF-8 | 841 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ----------------------------------------------------------------------------------------
# Johannes Gebert - Doctoral project - initialize the subtree of the Geberts Library
#
# Author: Johannes Gebert - HLRS - NUM - gebert@hlrs.de
# Created: 27.12.2021
# Last edit: 27.02.2022
# -----------------... | true |
4dd0f270ce293ef818a72686632abb2278ae94c0 | Shell | bebyx/dtapi | /db.sh | UTF-8 | 1,023 | 3.1875 | 3 | [] | no_license | #!/bin/sh
export DEBIAN_FRONTEND=noninteractive
# Update Debian10 and install needed packages
apt update && apt upgrade -y
apt install mariadb-server wget -y
# Run mysql_secure_installation script
mariadb -u root <<-EOF
UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root';
DELETE FROM mysql.user WHERE User=... | true |
47224ee93cbc09e0a0401621719a083371299ddc | Shell | orial/Procesadores-de-Lenguajes | /JPL/runtest | UTF-8 | 945 | 4.25 | 4 | [] | no_license | #!/bin/bash
# Usage: `./runtest` will run all the tests under the `test` directory
# `./runtest test/NAME.pl` will run only the given test
passed_test=0;
# $1 path to the exercise
# $2 counter if any
correct_exercise () {
# Compile solution
bin/jplc $1 solution.j;
# Compile exercise
java -cp bin:../lib/java-c... | true |
c37c4a588544edc89a42b4acf82e34ca28fe15e0 | Shell | staneleigh/kodi_aio | /dialog_scripts/networking/wifi_settings.sh | UTF-8 | 2,252 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#wifi-configuration
#V1.0.0.0.A
if [[ $nw_iface != *eth* ]] && [ "$nw_wifi_present" = "true" ]
then
#ask for wifi configuration
if (whiptail --backtitle "$headline" --title "Configure Wifi" \
--yesno "\nWifi was selected as primary network interface but is not configured yet. \nDo you want to do this ... | true |
67febbdcfd505192d80ad42b80711d59c075d696 | Shell | un-knower/data-base | /api-test/py-test/Part4_FlaskWeb/c00_腾讯云安装python2.7.sh | UTF-8 | 7,757 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
# go2infc 原本就有 python2.7 环境,需要安装pip2.7
alias go2infc="ssh 10.47.200.3"
# go127 只有 python2.6,需要安装 python2.7 和 pip2.7
alias go127="ssh 10.47.200.127"
# go203 原先只有python2.6环境,通过tar包成功安装 python2.7, 然后再补 pip2.7
alias go203="ssh 10.47.200.203"
###### 一、 go2infc 基于已有python2.7 创建虚拟环境
# 1)检查当前 pip 版本,不符合... | true |
de778ac85d23434ea9b6aea1e1ec95e8faa6c95a | Shell | RaoKarter/manifold_0_12_ei | /manifold-ipa/code/simulator/SPXQsim/run.sh | UTF-8 | 492 | 2.90625 | 3 | [] | no_license | #!/bin/bash
TESTBENCH=`ls ./benchmarks3/`
trap 'exit 1' 1 2 15
#export LD_LIBRARY_PATH=$QSIM_PREFIX/lib
export QSIM_PREFIX=/home/hugh/Project/HARDWARE/ME/local_install/qsim-root
export LD_LIBRARY_PATH=/home/hugh/Project/HARDWARE/ME/local_install/qsim-root/lib
mkdir -p results
for testcase in $TESTBENCH; do
echo ... | true |
e54ac171123ca3071580208488e6c44a20e7f02e | Shell | baconslayer/commons | /calc_checkout/checkout-support/checkoutServer.sh | UTF-8 | 1,593 | 3.546875 | 4 | [] | no_license | #!/bin/bash
CHECKOUT_DIR=./calc_checkout
TEST_CONNECTIONS_SCRIPT=./testConnections.sh
. ./main.functions
. ./parse.args.functions
. ./file.functions
. ./config.entry.functions
. ./test.connection.functions
function validateServer()
{
echo ""
echo "Validating Server Deployment for $APPNAME on $(host... | true |
1b9c2e46efdb93af9855643234d6c9baf3029adb | Shell | bakerwm/test_perl | /old_versions/create_mapping_results.sh | UTF-8 | 5,827 | 2.609375 | 3 | [] | no_license | From Clean fasta to soap & match_genome
1. Soap >> (Bi server, 1 cpu for each job)
(1) 45SE & 81SE: -M 0 -r 2 -v 0 -p 1
example: soap -a clean.fa -D NC_000962.fna.index -o Rv_45SE.soap -u Rv_45SE.unmap -M 0 -r 2 -v 0 -p 1
(2) 90PE: -m2 -r 2 -v 2 -p 1 -x 1000 -s 40 -l 32 -o... | true |
7402794500c0abfd361f088e6c900d098204be2d | Shell | shudhanshh/gcp-terraform-infra | /xyz-Dev-Project/create-cluster.sh | UTF-8 | 2,388 | 2.796875 | 3 | [] | no_license | #!/bin/bash
#
# Create cluster zonal cluster in standard mode with premptible node in us-east1-a zone with two node pools
# One node pool is default and the other one with premptible vm
# Used below gcloud command which will create a new cluster
#Setting environment variable
PROJECT_ID="xyz-dev-freelance"
ENV="d... | true |
b0ca21acadc1efbfe4fa32e9bf7efc3811726272 | Shell | NSOPORTEDESARROLLO/nstools | /files/nstools/bin/cat_samba4 | UTF-8 | 435 | 3.34375 | 3 | [] | no_license | #!/bin/bash
NSTOOLS_PATH="/opt/nstools"
trap "exec $NSTOOLS_PATH/bin/cat_samba4" SIGINT
clear
. /opt/nstools/lib/header
echo "SAMBA4 (Active Directory) - Seleccione una opcion:
[1] - Usuarios
[2] - Grupos
[3] - Recursos Compartidos
[4] - Configuraciones Avanzadas
[r] - Regresar
"
read OPT
... | true |
05ec3970a5a5847ce0580b0c3830dd03d4349b78 | Shell | Fellepp/CloudComputing | /Task3/vectorSum/gpu_job.sh | UTF-8 | 754 | 2.640625 | 3 | [] | no_license | #!/bin/sh
##
## Nombre del trabajo que se va a crear
##
#PBS -N gpu_job
##
## Cola donde se lanzará el trabajo
##
#PBS -q batch
##
## Se ha de solicitar la ejecución en uno de los nodos con GPU's instalada
##
#PBS -l nodes=verode10
##
## Tiempo máximo de ejecución del trabajo. El formato es HH:MM:SS.
##
#PBS -l walltim... | true |
c7c589338e229834ea818eef32e2f504542e7496 | Shell | xnandor/cees | /volumes/host/askbot.sh | UTF-8 | 4,490 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
##################OPTIONAL INPUT PARAMATERS VIA ENVIRONMENT
# ASKBOT_ROOT
# ASKBOT_DB_HOST
# ASKBOT_DB_PORT
# ASKBOT_DB_TYPE
# ASKBOT_DB_USERNAME
# ASKBOT_DB_PASSWORD
apt-get --assume-yes update
# apt-get --assume-yes install python-mysqldb
# apt-get --assume-yes install binutils libproj-de... | true |
83f70813c2b06c424909052d8804ca0ea37720c6 | Shell | manaphys/dest | /install.sh | UTF-8 | 2,087 | 2.65625 | 3 | [] | no_license | #!/bin/bash
#font: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
sudo apt-get update
#apache
sudo apt-get install apache2
sudo cp etc/apache2/apache2.conf /etc/apache2/apache2.conf
#apache test
##ifconfig eth0 | grep "inet " | awk '{ p... | true |
8851ef5959c0ad75d591b4dec95b62ee95493120 | Shell | mattt416/rpc-designate | /scripts/deploy.sh | UTF-8 | 2,038 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2014-2017, Rackspace US, Inc.
#
# 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 applica... | true |
8ee8a6c5089d4a5f8680d740e1d78fbfb11b0e0c | Shell | kunihal96/asement | /flipcoin.sh | UTF-8 | 1,052 | 3.203125 | 3 | [] | no_license | #!/bin/bash -x
head=1
tail=0
headcount=0
tailcount=0
for (( i=0;$i<10;i++ ))
do
check=$((RANDOM%2))
if (( $check == $head ))
then
echo "got head"
((headcount++))
else
echo "got tail"
((tailcount++))
fi
done
echo "head count: $headcount"
echo "tail count: $tailcount"... | true |
2b2ef4407971b09292a2bd3f175253bc28236253 | Shell | img/makecerts | /make_server_certs.sh | UTF-8 | 2,026 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# Create a Device Certificate for each domain,
# such as example.com, *.example.com, awesome.example.com
# NOTE: You MUST match CN to the domain name or ip address you want to use
openssl genrsa \
-out all/privkey.pem \
2048
# Create a request from your Device, which your Root CA will sign
openssl req... | true |
2e9a751576513353efb427606d115f8c7e76a118 | Shell | scalableminds/time-tracker | /build/build.sh | UTF-8 | 3,463 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
: ${BUILD_NUMBER:?"Need non empty BUILD_NUMBER variable! If you are starting this script from cli you should use build-cli.sh"}
: ${JOB_NAME:?"Need non empty JOB_NAME variable"}
SCRIPT_DIR=$(dirname $0)
export WORKSPACE=${WORKSPACE:-$(readlink -f ${SCRIPT_DIR}/..)}
if [ `python2 -c "import jinja... | true |
323d399b656a3516c809b3337f091b51fa2f1cfc | Shell | cashgithubs/NLPClass | /lab4/java/run~ | UTF-8 | 1,109 | 3.96875 | 4 | [] | no_license | #!/bin/sh
#
# You may find this shell script helpful.
#
tmp=/tmp
subdir=sentiment-data
data=/courses/nchamber/nlp/lab4/data
# These statements copy the data directory above to the local machine.
# The tweets are 100's of MBs, so we don't want our Java code
# constantly making NFS calls. Copy it all into /tmp/sentime... | true |
e257b0d9a8781008f103ff7b6d3e4e12f69d52bb | Shell | sokangmin/wini-nifi | /docker/sh/start.sh | UTF-8 | 2,382 | 3.25 | 3 | [] | no_license | #!/bin/sh -e
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the... | true |
15a029bd707a12cee8873ea8b8ba7787322e1f70 | Shell | TheArqsz/auto-ssh-key | /auto-ssh-key.sh | UTF-8 | 6,649 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Bash script that generates ssh key and upload it to remote server
#
# Copyright 2021 TheArqsz
# sshpass is needed for smooth passing password to ssh commands
if ! command -v sshpass &> /dev/null
then
echo "sshpass could not be found"
echo "Use: sudo apt install sshpass"
exit 1
fi
# Prin... | true |
154d54df59098a3e8e60c191c7b97f7c3a3f4917 | Shell | fhdk/project-sx | /calamares-oem/PKGBUILD | UTF-8 | 1,400 | 2.59375 | 3 | [] | no_license | # Maintainer: Philip Müller <philm@manjaro.org>
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
pkgbase=calamares-oem
pkgname=("calamares-oem-modules" "calamares-oem-sx-settings")
pkgver=20180217
pkgrel=1
arch=('any')
_repo=project-sx
_commit=f10c08f0e60ea1564423a1a6fdf833c7db61d582
url="https://github.com/philmm... | true |
df1a8b9bd9ed565053c6abe9c4170a07455b3254 | Shell | 20after4/phabricator-tools | /testbed/arcyon/exercise_arcyon.sh | UTF-8 | 2,906 | 2.84375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | trap "echo 'FAILED!'; exit 1" ERR
set -x
# cd to the dir of this script, so paths are relative
cd "$(dirname "$0")"
arcyon='../../bin/arcyon'
$arcyon -h
$arcyon comment -h
$arcyon comment-inline -h
$arcyon get-diff -h
$arcyon paste -h
$arcyon query -h
$arcyon raw-diff -h
$arcyon show-config -h
$arcyon update-revisio... | true |
39a1c567acd63ced3d762572cdd459186d46bb16 | Shell | bbyun28/openmm-tutorial-msbs | /clean.sh | UTF-8 | 520 | 3.328125 | 3 | [
"LicenseRef-scancode-public-domain",
"CC-BY-4.0"
] | permissive | #!/usr/bin/env bash
# Strip withspace form markdown files
for file in $(find . | grep 'md$'); do
echo Cleaning ${file}
sed -i -e $'s/\t/ /g' ${file}
sed -i -e $'s/[ \t]\+$//' ${file}
sed -i -e :a -e '/^\n*$/{$d;N;ba' -e '}' ${file}
done
# Remove nbconvert outputs
rm */*.nbconvert.ipynb
# Strip output cell... | true |
5d5e5cc82a1939ec1cfbf3a5c6cba5dd8e7af05d | Shell | fuzzy76/dotfiles | /scripts/start.sh | UTF-8 | 628 | 3.921875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# This file check outs the repository and starts the rest of the installation from inside.
# Check for git command
command -v git >/dev/null 2>&1 || { echo "git missing. Make sure it is available before running." >&2; exit 1; };
# Check for key, generate if missing
if [ ! -d "$HOME/.ssh" ]; then
ssh-ke... | true |
024fcfdaef9434369c6486af46f57594a1eedadc | Shell | ducet8/dotfiles | /etc/bash.d/duce/batdiff.sh | UTF-8 | 190 | 2.59375 | 3 | [] | no_license | # vim: ft=sh
# 2023.08.14 - ducet8@outlook.com
if ! type -P bat &>/dev/null && type -P git &>/dev/null; then
return 0
fi
batdiff() {
git diff --name-only --diff-filter=d | xargs bat --diff
}
| true |
48e1c816a5abd18e90eee43db89faf383b50bdee | Shell | developmentseed/house-gerrymandering-2018 | /bin/scripts/tiger-to-topojson.sh | UTF-8 | 1,105 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
WORK=./bin/data
BIN=./node_modules/.bin
FILE=us_cd115_updated_pa
echo "Converting $WORK/$FILE/$FILE.shp to geojson"
ogr2ogr -f GeoJSON -t_srs crs:84 \
$WORK/$FILE.json \
$WORK/$FILE/$FILE.shp
echo "Converting to ndjson"
cat $WORK/$FILE.json | jq -c "." | $BIN/ndjson-split 'd.features' > $WORK/$FILE-n... | true |
a5a28875ca5c71bc87b5c95ec6fa28ac55179b68 | Shell | h4g0/esc-trabalhos | /assignment1/src/esc-nas/mpi_pbs/compile_mpi.pbs | UTF-8 | 1,745 | 2.984375 | 3 | [] | no_license | #!/bin/bash
#PBS -l nodes=1:ppn=1:r662
#PBS -l walltime=00:20:00
#PBS -V
module load gcc/5.3.0
cd esc-nas/NPB3.3.1/NPB3.3-MPI
compilers=("gnu_mpich_eth,1.2.7" "gnu_mpich2_eth,1.5" "intel_eth,1.6.3" "intel_mpich_eth,1.2.7" "intel_mpich2_eth,1.5" "intel_eth,1.8.2" "gnu_eth,1.8.2" "gnu_eth,1.6.3")
for i in ${compi... | true |
dc81436661c9493cf8b19c504a06405341b61903 | Shell | NixOS/nixpkgs-channels | /pkgs/development/libraries/science/math/tensorflow/prefetcher.sh | UTF-8 | 776 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
version=1.14.0
hashfile=binary-hashes.nix
rm -f $hashfile
echo "{" >> $hashfile
echo "version = \"$version\";" >> $hashfile
for sys in "linux" "darwin"; do
for tfpref in "cpu" "gpu"; do
for platform in "x86_64"; do
if [ $sys = "darwin" ] && [ $tfpref = "gpu" ]; then
... | true |
24f27fac25985356c67d23ccc55527642c7e3f10 | Shell | tsw1985/CharvaHelloWorld | /run/run.sh.backup | UTF-8 | 2,239 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# This script runs the Charva test program (if it is invoked as
# "test.sh swing", then the Swing version of the tutorial application
# is started instead).
# JAVA_HOME must be set to the JDK or JRE installation directory (for example,
# /usr/local/jdk1.4 or /usr/local/jre1.4).
clear
export LD_LIBRARY_PA... | true |
b647c4271decdeee77f632499eab5199eb613cc4 | Shell | rbgarga/my-desktop-config | /bin/vol.sh | UTF-8 | 649 | 3.765625 | 4 | [] | no_license | #!/bin/sh
echo "$@" >> /tmp/debug
action=$1
cur_vol=$(mixer -S vol | cut -d: -f2)
save_vol() {
if [ "$cur_vol" = "0" ]; then
return
fi
echo "$cur_vol" > /tmp/.saved_vol
}
restore_vol() {
local _vol=50
if [ -f /tmp/.saved_vol ]; then
_vol=$(cat /tmp/.saved_vol)
fi
echo "$_vol"
}
case "$action" in
up)
... | true |
b8ae7dd904aef24d0655a2fd79b18f39dfbef556 | Shell | juanka1995/ingenieria_informatica_etsiit | /AÑO 1/fundamentos_del_software/Practicas/Sesiones/Sesion 6/Ejercicio 6.2 | UTF-8 | 765 | 3.953125 | 4 | [] | no_license | #!/bin/bash
#Filtro para que la entrada de datos sea 1
if [ $# -eq 1 ]; then
#Compruebo que el parametro introducido sea un directorio
if test -d $1; then
# Guardo en archivo una lista con todo el contenido del directorio introducido
# grep -v '/$' elimina la linea con el propio directorio
for archivo in $(fin... | true |
6b5c8ee61f079f0816cf7ec9672577d79923b593 | Shell | zendegani/scripts | /old/scripts/0.0_Code&Scripts/s6disp_pre_endmmbr | UTF-8 | 893 | 3.171875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
cd Q-Al-Mg
#module load sphinx/serial/2.0.4
#run this script in main folder Q-Al-Mg
folder=`ls -1d [0-9]*`
here=`pwd`
for f in $folder; do
echo $f
cd $f/finite
head -28 relax/CONTCAR > POSCAR
echo 'convert POSCAR to strcut'
sxstructprint --vasp -i POSCAR > struct.sx
echo 'generating supercell... | true |
82fb9ade8201ca3a8c70c2cf91d4f3523adef35e | Shell | delkyd/alfheim_linux-PKGBUILDS | /psp-sdl_ttf/PKGBUILD | UTF-8 | 1,086 | 2.859375 | 3 | [] | no_license |
pkgname=psp-sdl_ttf
pkgver=2.0.11
pkgrel=1
pkgdesc="A simple library to load ttfs of various formats as SDL surfaces (psp)"
arch=('any')
url="http://www.libsdl.org/projects/SDL_ttf/"
license=('custom')
depends=('psp-sdk' 'psp-sdl' 'psp-freetype2')
makedepends=('psp-gcc' 'psp-pkg-config')
options=('staticlibs' '!buildf... | true |
f9d0ec8de313964fdce738a2d55008edb84782a8 | Shell | stelligent/blog_refactor_nodejs | /pipelines/deploy.sh | UTF-8 | 2,367 | 3.234375 | 3 | [
"MIT"
] | permissive | #bin/bash
# these environment variables should be in the script executor's profile
export AWS_REGION="us-east-1"
export AWS_VPC_ID="vpc-857a3ee2"
export AWS_SUBNET_IDS="subnet-c5a76a8c,subnet-3b233a06"
export AWS_AZS="us-east-1c,us-east-1b"
export AWS_KEYPAIR="dugas-labs"
# set up local variables
app_name=NodeJSApp
r... | true |
4e97e7763b083328c5e789bd006d5e3ad2b67c15 | Shell | anshulm/knife_solo-experiments | /config/pull_the_trigger.sh | UTF-8 | 626 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# check for correct number of arguments
if [ $# -ne 3 ]; then
echo "Usage: $0 <user> <ip> <port>"
exit 1
fi
# set variables
USER=$1
IP=$2
PORT=$3
# upload key for root - need to have a root user. Check EC2 specific changes
ssh-copy-id -i ~/.ssh/id_rsa.pub -p $PORT vagrant@$IP
# install chef
#cd chef &... | true |
aa1d0b11077208a86228e74c3b82967cbab23156 | Shell | igorper/med-seq-explorer | /compres.sh | UTF-8 | 684 | 3.671875 | 4 | [] | no_license | #!/bin/bash
input_folder="/scratch/users/pernek/results/search_tseq_nint_*/"
tmp_folder="/scratch/users/pernek/results/tmp/"
while getopts ":i:" opt; do
case $opt in
i)
input_folder=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
:)
echo "Option -$OPTARG ... | true |
c490e861858429086aa6a1f922cdaebbe1776c1b | Shell | yuliujuan/docker-pan | /entrypoint.sh | UTF-8 | 753 | 2.65625 | 3 | [] | no_license | #!/bin/bash
set -eux
if [ ! -e /var/www/html/index.php ]; then
echo "[FileRun fresh install]"
unzip /filerun.zip -d /var/www/html/
cp /autoconfig.php /var/www/html/system/data/
mkdir -p /user-files/superuser/dl
#wget https://gist.githubusercontent.com/jae-jae/9b09a9bf90b733aed8... | true |
61d76d988afbdc6f1a5161f7d6c7dab9f6fb0ebf | Shell | leblanck/macOS-Scripts | /ExtensionAttributes/AccountinOSXMail.sh | UTF-8 | 382 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#Get Logged in Users
userName=$(defaults read /Library/Preferences/com.apple.loginwindow.plist lastUserName)
echo $userName
mailContents=$(ls /Users/$userName/Library/Mail)
echo $mailContents
size=${#mailContents}
if [[ "$size" -gt "1" ]]; then
echo "<result>Account Enabled in macOS Mail</result>"
els... | true |
5a185c87f2960640701cd864da5468ca3e67a53f | Shell | ZavalichiR/Backup | /SO/Teste/Test 1/4/createfis.sh | UTF-8 | 600 | 3.78125 | 4 | [] | no_license | #!/bin/bash
if [[ ($# < '1') || ($# > '9') ]];then
echo "Numarul argumentelor este gresit"
exit
fi
ls
verificare ()
{ if [[ -d $1 ]];then
return 0
elif [[ -f $1 ]];then
return 1
else
return 2
fi
}
verificare $1
rez=$?
echo "$rez"
if [[ $rez == '0' ]];then
echo " Exista deja un director cu acest nume "
exi... | true |
03dc5ec64700fe9c67a778638dfb8e8973adad93 | Shell | miloooooz/Data-Structure-and-Algorithms | /Solvability of the NxN sliding tile puzzle/test.sh | UTF-8 | 791 | 4.0625 | 4 | [] | no_license | #!/bin/sh
PROG=./puzzle # running program
DIR=Tests # directory of testcases
case $1 in
"1") T=$DIR/bad* ;;
"2") T=$DIR/sol* ;;
"3") T=$DIR/unsol* ;;
"4") T=$DIR/* ;;
esac
# if we have valid command
if [ A$T != A ];
then
# test all selected testfiles
for i in $T
do
echo ===========... | true |
9a5b9bf93268801d8f6c4967430bf244fd3cd328 | Shell | Daviddddl/ssm-demo | /src/main/webapp/data/see.sh | UTF-8 | 105 | 2.6875 | 3 | [] | no_license | for (( i=51,j=17; i<=73; i++,j++ ))
do
echo $i $j
#head -c 100 _$i.json
mv _$i.json _$j.json
done
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.