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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0d742cb747975d702c94082a4cd0659ea381d1d8 | Shell | sector-f/MinecraftServer | /software.sh | UTF-8 | 651 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
read -r -p "Are you sure want to install Minecraft Server Software 1.17.1? [y/N] " input
case "$input" in
[yY][eE][sS]|[yY] | "")
;;
*)
# "No" should be the default case
exit
;;
esac
cd MinecraftServer
wget 'https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk16u-2021-05-08-1... | true |
5ecce1950c19413bb9015e5262e5dc2f79607d9f | Shell | hankbao/roq-samples | /src/collector/run.sh | UTF-8 | 206 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
if [ "$1" == "debug" ]; then
shift 1
PREFIX="libtool --mode=execute gdb --args"
else
PREFIX=
fi
$PREFIX ./roq-samples-collector \
--gateways femas=test:1234@/var/tmp/femas.sock $@
| true |
b6f77a1d74d58ef700263cb5c0d6d30e7799c366 | Shell | maeveynot/home | /lib/sh/path.sh | UTF-8 | 678 | 3.421875 | 3 | [
"ISC"
] | permissive | _add_to_PATH() {
for dir; do
if test -d "$dir"; then
case "$PATH" in
"$dir":*|*:"$dir":*|*:"$dir")
# echo "profile: $dir already exists in $PATH" 1>&2
;;
*)
PATH="$dir:$PATH"
;;
... | true |
10089feee83c818905b7a7092e87af4c3c12a33c | Shell | masoncloud/eeedora | /eee-setup/acpi/rebuild_acpi-ko | UTF-8 | 542 | 2.84375 | 3 | [] | no_license | #! /bin/bash
pushd .
cd 2.6.24
./rebuild-asus_acpi_eee-ko
cp *.ko ..
popd
perl make_events.pl
exit 1
# This is for the previous 2.6.23 version..
unrar x -y ASUS_ACPI_071126.rar
tar -xzf asus_acpi.tar.gz
pushd .
cd asus_acpi
sed -i \
-e 's|2.6.21.4-eeepc|$(shell uname -r)|' \
Makefile
#sed -i \
# -e |acpi_b... | true |
7b8bb656f65ddc5ed8cfbd36cc999b0cc8bff88f | Shell | ravage/postgresql-encrypted-backup | /pg-basebackup.sh | UTF-8 | 632 | 3.375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
set -o errexit
set -o pipefail
set -o nounset
TODAY=$(date +'%s')
TODAY_KEY=$TODAY.key
ARCHIVE_DIR=/mnt/pg_archive/basebackup-$TODAY
PUBLIC_KEY=/opt/scripts/key.pub
OUT_KEY=basebackup-key.enc
IN_FILES="base.tar.gz pg_wal.tar.gz"
pg_basebackup -U postgres -h 127.0.0.1 -D "$ARCHIVE_DIR" -Ft -z
cd "$... | true |
ce8d290ab54f2160ba0599c056ad4a2139e8dd81 | Shell | manuel-192/m-m | /PKGBUILDs/notme/PKGBUILD | UTF-8 | 1,390 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# Maintainer: EndeavourOS-Team <info@endeavouros.com>
pkgname=notme
pkgdesc="EndeavourOS news notification tool."
url="https://github.com/manuel-192/m-m/raw/master/PKGBUILDs/$pkgname"
pkgver=1
pkgrel=1
arch=('any')
license=('GPL')
depends=(
bash
)
source=(
"$url/$pkgname"
"$url/$pkgname"-init
... | true |
23bdec13c5906959715546c87dd5bf980a23a450 | Shell | brittanyhowell/sv_discovery | /general/remove_files.sh | UTF-8 | 398 | 3.203125 | 3 | [] | no_license | #!/bin/bash
# provide list of files, and DIR, and those files will be removed.
listFiles=/lustre/scratch115/projects/interval_wgs/WGbams/poor_quality_samples.list
ext=".out"
fileDIR=/lustre/scratch115/projects/interval_wgs/analysis/sv/breakdancer/out/WG_3724
while read f; do
filename=$f$ext
echo "removing: ${... | true |
10970d59dc23f45737690ed104278baeb1514bad | Shell | l1on/shift-scheduler-admin | /ci-scripts/build | UTF-8 | 324 | 2.625 | 3 | [] | no_license | #!/bin/bash
set -euxo pipefail
readonly IMAGE_NAMESPACE='iluvzhouying'
readonly IMAGE_NAME='shift-scheduler-admin'
readonly IMAGE="${IMAGE_NAMESPACE}/${IMAGE_NAME}:$(git log -1 --pretty=%h)"
docker build -t ${IMAGE} .
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push ${IM... | true |
b0d20ffb6b81ddebd4637978a16ba2f16770a9ac | Shell | alphaarking/Multi-Media-Event-Detection | /MED_with_Audio_ASR/soundnet_feat.sh | UTF-8 | 389 | 2.671875 | 3 | [] | no_license | #!/bin/bash
for line in $(cat "/home/ubuntu/multimedia/SoundNet-tensorflow/all_file.txt"); do
echo "${line}" > /home/ubuntu/multimedia/SoundNet-tensorflow/demo.txt
python /home/ubuntu/multimedia/SoundNet-tensorflow/extract_feat.py -o /home/ubuntu/multimedia/11775-hws-master/hw1_code/sound_net_10 -m 10 -x 11 -s... | true |
e7c6fe7f5fa539e7c772e43ec6a7c638b1957611 | Shell | wzbbbb/bkp_home | /pj2_rsync/bkpAdmArch.ksh | UTF-8 | 1,410 | 3.5625 | 4 | [] | no_license | #!/bin/ksh
set -x
######################
#
# To back up the ADMIN5/archive directory to the /bkp on support5
#
######################
tsp=`date +%Y%m%d-%H%M%S`
days=7
MSG () {
echo "#CMD `date +%Y%m%d-%H:%M:%S`# $1"
}
mount|grep "/bkp" |grep "support5" >> /dev/null
l_rc=$?
[ $l_rc -ne 0 ] && MSG "/bkp on Support5 is n... | true |
84734ed6cf48bd26663cf8540c9f405ef100ef36 | Shell | swalker-sada/anthos-practice | /platform_admins/shared_terraform_modules/gcp/gitlab/gitlab_creds.sh | UTF-8 | 1,762 | 2.578125 | 3 | [] | no_license | #!/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 ag... | true |
bb88cb27b72b3843ea25da2ee9522b4a9a7297b5 | Shell | insidegui/VirtualBuddy | /VirtualCore/Source/GuestSupport/CreateGuestImage.sh | UTF-8 | 3,358 | 4.125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
: '
This script is used by VirtualBuddy to dynamically generate a disk image that can be mounted in a virtual machine,
containing the current version of the VirtualBuddyGuest app embedded into VirtualBuddy itself.
Images are stored in ~/Library/Application Support/VirtualBuddy/_GuestImage.
Alongside the im... | true |
e516c8b54cdbc72edd4645c2a27d491521c04df2 | Shell | iu-parfunc/array-dsl-benchmarks | /OpenAcc/run-openacc-benchmark.sh | UTF-8 | 1,105 | 3 | 3 | [] | no_license | #!/bin/bash
set -x
if [ -d "$1" ]; then
cd $1/OpenAcc
shift
fi
set -e
pwd
if [ "$CABAL" == "" ];
then CABAL=cabal
fi
CBLOPTS="--disable-documentation --force-reinstalls"
# This benchmark needs the pgi compiler
# ============================================================
module add pgi
# (0) Dependencies, ... | true |
6b73f4fe653ec1f4a0db32714dd6e9e61bd2a25e | Shell | ISmAdeo/batch-lmes-purge | /init_purge.sh | UTF-8 | 6,128 | 3.140625 | 3 | [] | no_license | #!/bin/bash
ENV=$1
CUSTOMERS_FILE=$2
source /home2/purge_lmes/purge_config.sh
source /home2/purge_lmes/functions.sh
UPDATE_CUSTOMERS_SQL=/home2/purge_lmes/update_customer_sql-${TODAYDATE}.sql
UPDATE_COMMUNICATION_SQL=/home2/purge_lmes/update_communication_sql-${TODAYDATE}.sql
UPDATE_EXT_IDENTIFIER_SQL=/home2/purge_lme... | true |
01b2c02e09173815263bad1f1922e8eb4061c45d | Shell | stennyc/multidocker | /files/docker_shell.sh | UTF-8 | 2,047 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DOCKER_CONTAINER=ubuntu:latest
DESIRED_USER=$(whoami)
DOCKER_NAME="${DESIRED_USER}_shell"
DESIRED_UID=$(id -u $DESIRED_USER)
DESIRED_GID=$(id -g $DESIRED_USER)
HOMEDIR=$(eval echo ~$DESIRED_USER)
#MYHOSTNAME="$(hostname --fqdn)-${DESIRED_USER}-docker"
MYHOSTNAME="${DESIRED_USER}.bemban2u.com"
FQDN="${DES... | true |
b5c92cdaa5e08176a97a833764551e15a91edbc3 | Shell | Seanstoppable/dotfiles | /git_hooks/pre-commit.d/check_branch_name.sh | UTF-8 | 269 | 3.5625 | 4 | [] | no_license | #!/bin/bash
a=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
b=$(echo "$a" | awk '{print tolower($0)}')
if [[ ${a} != ${b} ]]
then
echo "Must have lowercase branch name"
exit 1
fi
if [[ ${a} == "master" ]]
then
echo "You can't commit to master!"
exit 1
fi
| true |
304812760dcc0aaaa56cdf485739ea4c4c00bfc7 | Shell | pradeeptomer4u/terraform-course | /terraform-ecs-vpc-jenkins/modules/ecs/deploy-image.sh | UTF-8 | 331 | 3.078125 | 3 | [] | no_license | #!/bin/bash
region=$1
image_name=$2
repository_url=`echo $3 | sed 's~http[s]*://~~g'`
aws ecr get-login-password --region ${region} | docker login --username AWS --password-stdin ${repository_url}
docker build -t ${image_name} .
docker tag ${image_name}:latest ${repository_url}:latest
docker push ${repository_u... | true |
21b79a3a07b7dfadbd48e0e9439ddeefdeca3194 | Shell | NIGHTFIGHTING/cplusplus | /shell/oldboy/13/13_1_1.sh | UTF-8 | 131 | 3.15625 | 3 | [] | no_license | #/bin/bash
array=(1 2 3 4 5)
for((i=0;i<${#array[*]};++i))
do
echo ${array[i]}
done
for n in ${array[*]}
do
echo $n
done
| true |
e179df4601fecc4d96d4b9b6f8a788a31b263534 | Shell | foobar-sudo/mine | /arch-scripts/MAIN.sh | UTF-8 | 727 | 3.625 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
echo "Welcome to my install script!"
echo "Do you want to continue?"
select i in Yes No; do
case $i in
Yes)
echo "You've chosen YES. Continuing..."
break;;
No)
echo "You've chosen NO"
exit;;
esac
done
echo "Sourcing env..."
source ./env
echo "Preparing for chrooting..."
ls PRE-*.sh | while read line; do { ... | true |
dff6efbeb16e7e8dbd6646305ca127209f00e85e | Shell | MichaelJie888/basealgorithm | /词频统计.sh | UTF-8 | 586 | 3.28125 | 3 | [] | no_license | awk '{for(i=1;i<=NF;i++) a[$i]++} END {for(k in a) print k,a[k]}' words.txt | sort -k2 -nr
cat words.txt | tr -s ' ' '\n' | sort | uniq -c | sort -r | awk '{ print $2, $1 }'
tr -s: truncate the string with target string, but only remaining one instance (e.g. multiple whitespaces)
sort: To make the same string succes... | true |
c417830247610dd055534dd8854eaa6263d248a0 | Shell | garnieretienne/cloudbox | /board/odroidxu4s/rootfs-overlay/opt/cloudbox-cli/libexec/cloudbox-app:status | UTF-8 | 3,357 | 3.84375 | 4 | [] | no_license | #!/usr/bin/env bash
# Usage: cloudbox app:status
# Summary: Manage your nextcloud instance
# Help: This will print the current state of your nextcloud instance
#
# Usage:
# cloudbox app:status
# cloudbox app:status deploy [<options>]
#
# Commands:
# d, deploy # install and configure a nextcloud ... | true |
74b92a04e7b081c242f120c37164547a30838454 | Shell | pierregermain/MyTux | /DevOps/do_genDBscpDB_ll_dev | UTF-8 | 1,192 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# Este script sirve para conectarse a un servidor remoto previamente configurado
# En dicho servidor flushea las cashes
# Realiza Backup de la DB (se debe configurar para cada usuario)
# Comprime la DB
# Y la baja a tu local
#DEFINICION VARIABLES
SERV_SSH='projectname.dev'
SERV_REPO_DIR='/var/www/projectn... | true |
76bf86dafc3695c0c469ab664fc3a46e677e67fb | Shell | samiracho/openhabproxy | /app/updnginx.sh | UTF-8 | 1,214 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
IP_CURRENT=$([ -e "$DIR/../data/ip" ] && cat "$DIR/../data/ip" || echo "")
IP_PREVIOUS=$([ -e "$DIR/../data/ip_prev" ] && cat "$DIR/../data/ip_prev" || echo "")
#HOME_DNS=$(doctl compute domain records list racho.es --no-heade... | true |
bcd90333152727b893001b7dca8921f30511e119 | Shell | stanwood/Xcode_Templates_iOS | /Script/install.sh | UTF-8 | 533 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Clone xcode templates
echo "Cloning Xcode Template"
git clone git@github.com:stanwood/Xcode_Templates_iOS.git /tmp/xcode_template
echo "Removing existing Template folder"
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates/Source/Module.xctemplate
echo... | true |
0bde98cdbccd3ee013366c9ceecdeeba5396d762 | Shell | scribblemaniac/_ebDev | /scripts/imgAndVideo/IMgridSlice.sh | UTF-8 | 843 | 2.984375 | 3 | [] | no_license | # DESCRIPTION: Slices a larger image into x by x tiles.
# USAGE: Run this script with three parameters; $1 input image file name, $2 width of cut tiles, and $3 height of cut tiles. Use this wolframalpha.com query to find a common factor (divisor) for square tiles (just a adjust the numbers) : http://www.wolframalpha.c... | true |
5e06d232afd852916d41c7cda55e59b942fef6fa | Shell | forest80/wdmerger | /science/wdmerger_II/run.sh | UTF-8 | 65,970 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source $WDMERGER_HOME/job_scripts/run_utils.sh
function set_run_opts {
if [ -z $ncell ]; then
echoerr "ncell not set; exiting."
exit
fi
to_run=1
# The following assumes we are using Titan.
if [ $MACHINE == "TITAN" ]; then
queue="batch"
threads_per_task=4
... | true |
d05967f6d4cc3b8ee1582a3db5ad146815e735c4 | Shell | yangjinheng/fabric-sample-raft | /scripts/install_explorer.sh | UTF-8 | 203 | 2.609375 | 3 | [] | no_license | #!/bin/bash
export NAMESPACE=baas
NFS_ADDR=$(ifconfig eth0 | awk -F '[: ]+' 'NR==2{print $4}')
kubectl apply -f <(sed "s/{{clusterName}}/$NAMESPACE/ ; s/{{nfsServer}}/$NFS_ADDR/" fabric-explorer.yaml) | true |
d9837c416be78c03685f93552192d97141fa49b9 | Shell | wangdi2014/OmicsPipe2.0 | /build/lib.linux-x86_64-2.7/omics_pipe/scripts/mutect.sh | UTF-8 | 787 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -x
#Source modules for current shell
source $MODULESHOME/init/bash
#Move tmp dir to scratch
export TMPDIR=$3 #TEMP_DIR
#Loads specified module versions
module load mutect/$4
#Make output directory if it doesn't exist
mkdir -p $8
####INPUTS: $1: BWA_RESULTS $2 SAMPLE $3: TEMP_DIR $4 MUTECT_VERSION... | true |
a8daa0bc28d278d3c0f0c0ff908b80072db33d60 | Shell | KurtWimer/OS-Cache-Exploration | /scripts/test.sh | UTF-8 | 1,366 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#This script compiles and test a variety of cache size's across the different cache positions
#output results to bcache.txt, ecache.txt, and mcache.txt
DIRECTORY="/run/media/manjaro/60a74a4a-05b1-4661-974b-a57d1de6fb3e/home/kurt/Documents/OSLab/proj3/project/"
STEPSIZE=1000
START=1000
END=50000
TRACKSIZE=... | true |
f2c08115da94818b436bf48db5af8c0c89d0f246 | Shell | kraiz/shell | /install.sh | UTF-8 | 7,801 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# we need git and curl
if ! [ -x "$(command -v git)" ] || ! [ -x "$(command -v curl)" ]; then
echo 'Install both: git and curl.' >&2
exit 1
fi
# zsh with zplugin
cat <<-"EOF" > ~/.zshrc
#! zsh
# basics
export EDITOR='vim'
export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'
export PATH="$HOME/.local... | true |
9d604ee5bba670ef5b8b208f10f98985b31e9b08 | Shell | test20190621/s19009 | /TEST_taisaku/052303.sh | UTF-8 | 400 | 2.828125 | 3 | [] | no_license | ls -R ~ | grep -v '^$' | grep -v ';$' | sort | head -n 5
# ホームディレクトリ以下(サブディレクトリも含む)にあるファイルをファイル名の昇順でソートして上位5件を表示する
# ファイル名の一覧を取得する際、「ls -R」を使用する
# -v ログファイルやデータファイルなどから、不要な値を持つ行を取り除く
| true |
a866ec15293f0a0df5740b34743ec4f72c7f6df6 | Shell | hung0913208/Base | /Tests/Pipeline/Prepare.sh | UTF-8 | 10,921 | 3.90625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# - File: prepare.sh
# - Description: This bash script will be run early before build.sh and test.sh
# and it will be used to define a specific environment to build any projects
# @NOTE: detect system os, we need this infomation to define our own package
# managerment
PIPELINE="$(dirname "$0")"
source $PIP... | true |
c2ae5b33f6717a9066623cf22c9b8836991f40a5 | Shell | jimyang2008/ss | /setup_mifi.sh | UTF-8 | 181 | 2.65625 | 3 | [] | no_license | #!/bin/bash
set -x
CMDDIR=$(dirname $0)
$CMDDIR/setup_ss.sh
$CMDDIR/setup_ap.sh
while ! systemctl status shadowsocks-libev
do
systemctl restart shadowsocks-libev
sleep 3
done
| true |
8f0f00d97a3b49535d27d0df76ccf821fe8d9474 | Shell | aneto88/docker_zs | /zendserver/scripts/run | UTF-8 | 726 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#Generate password if none was set
if [ -z $ZEND_ADMIN_PASSWORD ]; then
ZEND_ADMIN_PASSWORD=`cat /root/zend-password 2> /dev/null`
if [ -z $ZEND_ADMIN_PASSWORD ]; then
export ZEND_ADMIN_PASSWORD=`date +%s | sha256sum | base64 | head -c 8`
echo $ZEND_ADMIN_PASSWORD > /root/zend-password
fi
fi
#Gra... | true |
9229682f4fa74bf357f1d564c19ce6ce1db6b7a9 | Shell | jim80net/pcf-scripts | /vpn/setup_tunnel | UTF-8 | 843 | 3.453125 | 3 | [] | no_license | #!/bin/bash
if [ -z "$INNER_JUMPBOX_IP" ]; then
echo "Missing env var. Have you run \`source .envrc\`?"
exit 1
fi
set -evx
chmod 400 config/id_rsa_jb config/pcf
. .venv/bin/activate
# enter local workstation password to update sudo timer
sudo -v
# login to the outer jumpbox and wait 2 seconds for a sshuttle t... | true |
a3330c82a6c029b2802d7c3794556a7ae4b51394 | Shell | resonai/google-cloud-cpp | /google/cloud/bigtable/ci/run_integration_tests.sh | UTF-8 | 3,279 | 3.59375 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | true |
bfc6e143ecddeb37bdbf718c1f72470fae67a776 | Shell | RusKursusGruppen/scripts | /lister/bin/makelists.sh | UTF-8 | 872 | 3.5 | 4 | [] | no_license | #!/bin/sh
# Fail on error
set -e
BINDIR=bin
WORKDIR=work
OUTPUTDIR=output
COLUMNDIR=lister
RUSFILE=russer
SUPFILE=vejledere
LIBDIR=lib
mkdir -p $WORKDIR
mkdir -p $OUTPUTDIR
TABLEDATA=$(ls $COLUMNDIR/*.a3 $COLUMNDIR/*.a4)
#TABLETEX=$(echo $TABLEDATA | sed 's/ /.tex /g' | sed s/$COLUMNDIR/$WORKDIR/g)
#TABLERESULTS=$(... | true |
f5d32f829ceb74b1a9c05c1a866ec86854993ce2 | Shell | daschaich/misc_scripts | /KSchecksort | UTF-8 | 829 | 3.3125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
path=`pwd`
temp=${path##*nt} # Strip everything up to and including "nt"
nt=${temp%%/*} # Strip everything after and including "/"
echo "t = $nt"
ls KSdecomp.t* | wc -l
if [ "$nt" == "192" ]; then
head -n 1 KSdecomp.* | grep 0.001071 | wc -l
exit 0
elif [ "$nt" == "128" ]; then
head -n 1 KSd... | true |
5d8fe6952c6c86d11d8f998ebcfa43690e734c51 | Shell | jayleicn/TVRetrieval | /utils/text_feature/extract_single_sentence_tokens.sh | UTF-8 | 1,533 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage:
# bash utils/text_feature/extract_single_sentence_tokens.sh \
# OUTPUT_ROOT FINETUNE_MODE EXTRACTION_MODE SAVE_FILEPATH
# Examples:
# bash utils/text_feature/extract_single_sentence_tokens.sh ${output_root} query query tvr_query_roberta_tokenized.jsonl --debug
output_root=$1
finetune_mode=$... | true |
16a1b5cfc08de4db7cf01c8fb7b61ecbc7aa45c7 | Shell | rosenhouse/workspace | /install.sh | UTF-8 | 5,487 | 3.734375 | 4 | [] | no_license | #!/bin/bash
set -e
set -u
function clone_if_not_exist() {
local remote=$1
local dst_dir="$2"
echo "Cloning $remote into $dst_dir"
if [ ! -d $dst_dir ]; then
git clone $remote $dst_dir
fi
}
function confirm() {
read -r -p "Are you sure? [y/N] " response
case $response in
[yY][eE][sS]|[yY])
... | true |
3488be804dde8c486a1813c512542131895fa5ca | Shell | brendonthiede/brendonthiede.github.io | /_attachments/k8s-cert-manager-tls.sh | UTF-8 | 2,444 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
mkdir -p ~/openssl-ca
cd ~/openssl-ca
##### Install cert-manager
kubectl apply --record=true -f https://github.com/jetstack/cert-manager/releases/download/v1.1.0/cert-manager.yaml
##### Creating the CA
# Generate a private key for our self signed CA,
openssl genrsa -out ca.key 2048
# Use the priv... | true |
a8ed9d496a361de7a494292aa034a02dd8340b9e | Shell | petronny/aur3-mirror | /gtk-theme-numix-git/PKGBUILD | UTF-8 | 881 | 2.546875 | 3 | [] | no_license | # Maintainer: Diego <cdprincipe@at@gmail@dot@com>
pkgname=gtk-theme-numix-git
pkgver=146.d782b3c
pkgrel=1
pkgdesc="A flat and light theme with a modern look that support Openbox, Xfce, Gnome, Unity and KDE"
arch=('any')
url="https://github.com/shimmerproject/Numix"
license=('GPL3')
depends=('gtk-engine-murrine')
maked... | true |
2cd98c2ebd716e8adaac223331f78a5d55ccb35b | Shell | miguelmota/dotfiles | /bin/slackpost | UTF-8 | 1,845 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage: slackpost -w <webhook_url> -c <channel> -u <username> [-m <message>]
# Usage: echo <message> | slackpost -w <webhook_url> -c <channel> -u <username>
# exit immediately if a command exits with a non-zero status
set -e
# error if variable referenced before being set
set -u
# produce failu... | true |
a553dfc0f3f2cb8d4d49b9e6681b7e6a75557225 | Shell | hsz-devops/docker-aspnetcore | /2.0/runtime-az/_src/docker-entrypoint-az.sh | UTF-8 | 1,167 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
#
# v1.0.0 2018-02-02 webmaster@highskillz.com
#
# Support SSH on Azure WebServices for Containers on Ubuntu based images
# https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-ssh-support
#
set -e
set -o pipefail
pwd
echo "Entering /docker-entrypoint-az.sh args [$@]... | true |
4da0102cfe35e801e5e3940ec6928adb9066c026 | Shell | cardoni/dotfiles | /.zshrc | UTF-8 | 4,688 | 2.625 | 3 | [] | no_license | # source 'autoenv' so that it can source '.env' files on each 'cd'
source /usr/local/opt/autoenv/activate.sh
if [ -n "$ZSH_VERSION" ]; then
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
chruby 2.2.2
fi
# nvm - https://github.com/creationix/nvm
# sets nvm ... | true |
c00b9ad3ed3aaf41746359da0249217a70b0ceb8 | Shell | Tier3SW/ATLASLocalRootBase | /containerUtils/batchScript | UTF-8 | 6,012 | 3.71875 | 4 | [] | no_license | #! /bin/bash
#!----------------------------------------------------------------------------
#!
#! batchScript
#!
#! create a batch script template for use in containers
#!
#! Usage:
#! batchScript --help
#!
#! History:
#! 08Oct18: A. De Silva, First version
#!
#!-------------------------------------------------... | true |
001da2bc6b7052b953f5b064c1aaa3883711d4c2 | Shell | khoa-le/shopware-production | /.gitlab-ci/split_repo.sh | UTF-8 | 1,424 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -x
PLATFORM_REPO=$1
PREFIX=$2
PKG=$(basename ${PREFIX})
PKG_REPO=repos/${PKG,,}
SPLITSH=${SPLITSH:-'bin/splitsh-lite'}
if [[ ! -f $SPLITSH ]]; then
if [[ "$OSTYPE" == "darwin"* ]]; then
wget https://github.com/splitsh/lite/releases/download/v1.0.1/lite_darwin_amd64.tar.gz
tar xvfz ... | true |
6d035fcaefaf86ddaa64b0d6d3011d880d4081c2 | Shell | gabi9669/Db_connected_webapp_Vagrant | /web.sh | UTF-8 | 1,126 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# Create your provisioning script here
sudo apt-get update
sudo apt-get install -y openjdk-11-jre-headless
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
cd /tmp
sudo yes | cp -rf /vagrant/apache-tomcat-9.0.41.tar.gz ./
sudo mkdir /opt/tomcat
sudo tar xzvf apache-tomcat-... | true |
040173b3023fbc9ed7648dd4d7b352a662b348dd | Shell | dennisaldea/genetic-heatmaps | /src/heatmap-interface.sh | UTF-8 | 6,701 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#===============================================================================
# TITLE : heatmap-interface.sh
# ABSTRACT : A BASH script that validates command line arguments before passing
# them to the heatmap engine
#
# AUTHOR : Dennis Aldea <dennis.aldea@gmail.com>
# DATE : 2017-0... | true |
2c60d8f7fa00b623cf1fdb11cf2b956ca9c184d0 | Shell | daKmoR/fdummy | /Scripts/global.sh | UTF-8 | 564 | 3.5 | 4 | [] | no_license | #!/bin/bash
folder="${PWD##*/}";
if [ "$folder" != "Scripts" ]
then
echo "You need to call Scripts from within ./Scripts/";
exit
fi
username='username';
password='password';
host='127.0.0.1';
database="$(basename ${PWD%/*})";
test -f hostconf.sh && source hostconf.sh
test -f ../../hostconf.sh && source ../../hostc... | true |
46fbf3869b3f0689ab8f59cd93b2f6848722b02a | Shell | kousu/hashapass | /tests/nested.sh | UTF-8 | 7,108 | 3.4375 | 3 | [] | no_license | #!/bin/sh
# this exercises a strange case wof the interaction of hashapass (really, xclip) and bash:
# a $() subshell doesn't exit until xclip does. But if you run hashapass by itself on the command line, it exits fine. What gives?
echo "-------------------------"
echo "Calling hashapass"
F=$(echo nested.sh: $$ >&2;... | true |
f4911b26d868c24b52562d39d8e66e9666fde701 | Shell | callmexiaolu88/tvusyscustom | /harbor/saveimages.sh | UTF-8 | 250 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ ! -z "$(docker images goharbor/* --format {{.Repository}})" ]
then
echo "saving goharbor images to [/data/dockerimages/goharbor]"
docker save -o /data/dockerimages/goharbor $(docker images goharbor/* --format {{.Repository}})
fi | true |
1a5ff0b689ea3404540a4cc5401889304dbdda63 | Shell | JeffersonLab/hd_utilities | /jlab_builds/jlab_tricks.sh | UTF-8 | 789 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# farm-specific set-up
nodename=`uname -n`
if [[ $nodename =~ ^farm* || $nodename =~ ^ifarm* || $nodename =~ ^qcd* || $nodename =~ ^gluon* ]]
then
export http_proxy=http://jprox.jlab.org:8081
export https_proxy=https://jprox.jlab.org:8081
fi
grep -lq " release 6." /etc/redhat-release
if [ $? -eq... | true |
550eac05e1a7e12a418572a021c09bfd75a70ebe | Shell | soifou/dotfiles | /@debian/.config/x/xsession | UTF-8 | 682 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env sh
# update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/i3 1000
# update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/spectrwm 1100
# update-alternatives --set x-window-manager /usr/bin/i3
# exec x-window-manager
# Start WM
case $WM in
i3... | true |
7186b6978a76c938e6a9bb91264b05494b810f17 | Shell | MyXelf/mx-dot-files | /bash/system/history.system.bash | UTF-8 | 2,827 | 3.734375 | 4 | [
"MIT"
] | permissive | # --------------------------------------------------------------------------------------------------
# OOSM :: Out-Of-Service Mode
# --------------------------------------------------------------------------------------------------
# The Out-Of-Service Mode will avoid the typed commands to be stored on the
# History.... | true |
c5f091bcabc0de1f70d2f888931c3c1ded5e1cfe | Shell | Danack/Convert | /runTests.sh | UTF-8 | 604 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# set -x
sh runCodeSniffer.sh
php vendor/bin/phpunit -c test/phpunit.xml
php ./phpstan.phar analyze -c ./phpstan.neon -l 7 src
php ./psalm.phar
#php vendor/bin/infection --configuration=infection.json.dist --log-verbosity=all --only-covered --min-covered-msi=90
#infection_exit_code=$?
... | true |
2cf79e67919d9dc8d2fe59eb7cadaa41724fc23f | Shell | cha63506/dots | /artyom/.sh.d/functions/5-extract | UTF-8 | 903 | 3.390625 | 3 | [] | no_license | #!/bin/sh
# lazybrain can't remember tar flags for shit
NUL=/dev/null
exists () {
which $1 &> /dev/null && return 0 || return 1
}
extract () {
if [[ -f $1 ]]
then
case $1 in
# extraction rules
*.tar.gz) exists tar && tar xzf $1 || tput 31 ;;
*.tgz) exists tar && tar xzf $1 || tput ... | true |
8af0522e0a046d58fab7570fb889ce1e99eb92cc | Shell | Pmmlabs/rinstagram | /ig_live.sh | UTF-8 | 669 | 2.6875 | 3 | [] | no_license | #!/usr/bin/env bash
source session_id.sh
JQ="./jq"
LIVE="live.json"
curl 'https://i.instagram.com/api/v1/feed/reels_tray/' -H 'user-agent: Instagram 10.26.0 (iPhone7,2; iOS 10_1_1; en_US; en-US; scale=2.00; gamut=normal; 750x1334) AppleWebKit/420+' -H "cookie: sessionid=$session_id" --compressed > $LIVE
#/v1/live/get... | true |
9e407e2a0490a37a0c59b2caa5ac01b495def1bd | Shell | kristel-/Corpus-Linguistics | /Unix/changeFiles.sh | UTF-8 | 473 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# Kristel Uiboaed
# 26.10.2016
# Remove headers from xml-files in the working directory
# and write the output a file with xml2-extension.
# In the end move output files to the output directory.
mkdir outputDir
for f in `ls *.xml`
do
myInput=${f}
myOutput=${myInput/.xml/.xml2}
echo == in file $myInpu... | true |
ada4c06c492a63c173c39476c455113b69d35268 | Shell | ibrunton/dotfiles | /bash/functions | UTF-8 | 1,131 | 3.625 | 4 | [] | no_license | #!/bin/bash
function mach() {
echo -e "\nMachine information:" ; uname -a
echo -e "\nUsers logged on:" ; w -h
echo -e "\nCurrent date :" ; date
echo -e "\nMachine status :" ; uptime
echo -e "\nMemory status :" ; free
echo -e "\nFilesystem status :"; df -h
}
function mkcd() { mkdir "$@" && cd "... | true |
5ac887a33b243c503f7ba2b1c67d9bda00b387ab | Shell | tyler-lee/lightcore | /bin/buildForWindows.sh | UTF-8 | 1,781 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
NODE_VERSION="4.4.3"
#Move to the folder where ep-lite is installed
cd `dirname $0`
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
cd "../"
fi
#Is wget installed?
hash wget > /dev/null 2>&1 || {
echo "Please install wget" >&2
exit 1
}
#Is zi... | true |
f28faa11c9230fb5194d2d4e45fc7952b88ab4b0 | Shell | The-Quill/StackNews | /setup.sh | UTF-8 | 5,684 | 3.5 | 4 | [
"MIT"
] | permissive | n="
"
# From http://stackoverflow.com/a/246128
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pass (){
echo $1 | sha256sum | head -c 64
}
# Redis
redis (){
ulimit -n 10032
slave=false;
echo "Enter the desired password for the Redis instance:"
read -s password
password=$(pass $password)... | true |
953a7f2e218c86d0f07a7d0469bbca72093c7e71 | Shell | helmedeiros/itunesScript | /builtin/unmute.sh | UTF-8 | 140 | 2.546875 | 3 | [] | no_license | #!/bin/sh
#
# "itunesScript unmute" builtin command.
function unmutting(){
osascript -e 'tell application "iTunes" to set mute to false';
} | true |
656b80d859a20643655ba5287d921207986bab4e | Shell | adamk33n3r/bin | /allow-bind | UTF-8 | 136 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "This allows process passed as arg to bind to reserved ports"
sudo setcap 'cap_net_bind_service=+ep' $(readlink -f $1)
| true |
31fc8fc59277ebc16024d9827b96577891d4401c | Shell | ano0/resdb | /scripts/hex2dec | UTF-8 | 217 | 2.75 | 3 | [] | no_license | #!/bin/sh
(
if [ x"$USE_BC" = x1 ]; then
echo -n "ibase=16; "
fi
if [ x"$1" = x ]; then
cat
else
echo "$1"
fi
) | (
if [ x"$USE_BC" = x1 ]; then
bc -q
else
cat `dirname "$0"`/hex2dec.d/"$(cat)"
fi
)
| true |
9900ddfffd6437f93e8ded5d7bc275bc0203318c | Shell | yfauser/simplicity | /bootstrap/vcsa_deploy.sh | UTF-8 | 1,166 | 3.515625 | 4 | [] | no_license | #!/bin/bash
set -e
# VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle should already be installed.
# use VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle --extract <dest_dir> for custom (unattended) install.
help()
{
echo 'this script deploys the VCSA and configures it using puppet'
echo ''
echo 'vcsa_deploy.sh <a... | true |
2dee5d9e91f620f1034fc9ddc8fd32e2367b779b | Shell | emma-borhanian/raspberry_pi | /setup/bin/setup_firewall | UTF-8 | 361 | 3.15625 | 3 | [] | no_license | #!/bin/bash
set -e
source "$HOME/setup/lib/bash_include"
IPTABLES_FILE="$HOME/setup/iptables.rules"
PREUP_IPTABLES_FILE=/etc/network/if-pre-up.d/iptables
echo "configuring firewall"
echo "#!/bin/sh" > "$PREUP_IPTABLES_FILE"
chmod +x "$PREUP_IPTABLES_FILE"
echo "iptables-restore < \"$IPTABLES_FILE\"" >> "$PREUP_IPTAB... | true |
a1d6643f7c90c4ed43ad6bcd83019e3edd600219 | Shell | markusdobler/msp430-template | /auto-update.sh | UTF-8 | 216 | 2.578125 | 3 | [] | no_license | while true
do
FILES_TO_WATCH="Makefile $(find ./src/ -iname "*.[ch]")"
make
if [ $? -eq 0 ]
then
sudo mspdebug rf2500 "prog build/main.elf"
fi
inotifywait -e modify -e move_self $FILES_TO_WATCH
sleep 1
done
| true |
6e2d6f97f5d5ded4bb729dd5f5403e8e9386526f | Shell | atom-chen/BOB-Project | /Bob_Truck/.svn/pristine/6e/6e2d6f97f5d5ded4bb729dd5f5403e8e9386526f.svn-base | UTF-8 | 2,241 | 3.484375 | 3 | [] | no_license | #!/bin/sh
function show() {
time=`date "+%Y-%m-%d %H:%M:%S"`
echo "\033[32m $1 \033[0m \033[31m $time \033[0m"
}
#通过项目路径判断打包平台以及渠道
path=`pwd`
if [[ $path =~ "ios" ]]; then
platform="ios"
elif [[ $path =~ "android" ]]; then
platform="android"
fi
if [[ $path =~ "southeast" ]]; then
channel="southeast"
fi
if [[ ... | true |
b68fe186e100d5aa1fc8af1d68b6b63114e87768 | Shell | uprootx/go-to-tools | /install_syncthing.sh | UTF-8 | 349 | 2.578125 | 3 | [] | no_license | #!/bin/bash
#This script automatically adds the Syncthing repo and installs the latest stable version. Safe for Ubuntu.
#by fluxola
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb http://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt updat... | true |
48fad5c93c63f31a1098462a6498b8efc662e828 | Shell | InklingSplasher/argon2_bash | /hash.sh | UTF-8 | 1,551 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Just a little script to verify argon2 hashes
# Script by inklingsplasher; https://keybase.io/inklingsplasher; https://github.com/InklingSplasher
# Colors for making stuff cooler
RED='\033[0;31m'
LIGHT_RED='\033[1;31m'
LIGHT_GREEN='\033[1;32m'
LIGHT_BLUE='\033[1;34m'
NC='\033[0m' # No Color
# Set ARGONDI... | true |
84b2cc93efec9d710d22b8d8069a7cd04f9aa37b | Shell | ess-dmsc/nicos-misc | /v20/set-git-user.sh | UTF-8 | 2,136 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
# Make git use predefined credentials for this shell session only
# This script should be sourced in .bashrc or similar
# Usage: set_git_user <username>
# To add new users:
# 1. Generate an rsa key and register it with your git account:
# $ ssh-keygen -t rsa -f ~/.ssh/id_rsa.<username>.nicos -... | true |
f652a9e1484d178358b0af3a6250b5c496c942a3 | Shell | RameezKhan05/HealthCheckLogic | /monday health | UTF-8 | 3,669 | 2.859375 | 3 | [] | no_license | #!/bin/ksh
. $HOME/.profile
export ora_user_SCOI="ABC"
export ora_pwd_SCOI="ABC"
export ora_sid_SCOI="ABC"
export SCRDIR=$HOME/stream/script
export LOGDIR=$HOME/stream/logs
#export MAIL_LIST=rameez.khan@gmail.com
PERMISSION="rwxr-xr-x"
APP_CRONENTRY="#"
SERVER_NAME=`whoami`
echo ' ' > $LOGDIR/monda... | true |
d731b18a843c1d20e6f0aab6d2723c83ba7d1950 | Shell | ljmdullaart/photoswipe | /configyour.photoswipe | UTF-8 | 4,229 | 3.34375 | 3 | [] | no_license | #!/bin/bash
#INSTALL@ /usr/local/bin/configyour.photoswipe
THUMB=200x300
FULL=1500x1200
WD=`pwd`
BASE=`basename $WD`
HOST=pn
DIR=.
LOG=configyour.log
echo "$0 starting">> configyour.log
parsedir(){
DIR=$comment
if [ ! -d $DIR ] ; then
if [ -d /links/diaadm/$DIR ] ; then
DIR=/links/diaadm/$DIR
fi
fi
}
parsei... | true |
018d4d27a97e089eae8793e07262486f6c0ed9bb | Shell | KRostyslav/dotfiles | /install_plugin.sh | UTF-8 | 792 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
ZSH_PLUGIN_DIR="/home/$USER/.oh-my-zsh/plugins"
#echo "=== Install zsh themes ==="
echo "=== Install zsh plugins ==="
if [ ! -d "${ZSH_PLUGIN_DIR}/zsh-autosuggestions" ]; then
echo "Install zsh-autosuggestions"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh}/plug... | true |
b521842f4bd29c6932b0805d5b2ae149d3e6548d | Shell | thisisemailhello/NGS | /shell/hiseq_coverage_by_flowcellid.sh | UTF-8 | 3,187 | 3.34375 | 3 | [] | no_license | #!/bin/sh
# calculate target coverage for each flowcell
source $HISEQ/NGS/shell/setup.sh
## change this later!!!
## target region will be customizable in config.yml
Target=$GATK/bed/SureSelect50mbclean
Target_bed=$Target.bed
Target_picard=$Target.picard
###### FUNCTION check_files ######
# check the locations ... | true |
21f87c4b8cf9985cf3b1610b2e89c90f10644029 | Shell | FaithOS/scripts | /old-scripts/disk.sh | UTF-8 | 3,684 | 3.625 | 4 | [] | no_license | #/bin/bash
#########################################
#Function: auto mount disk
#Usage: bash disk_2016-11-29.sh
#Author: Faith
#OICQ: 820007989
#Blog: jianguoa.wang
#Company: XX
#Version: 1.0
#Date: 2016-11-30
#########################################
#该脚本适应于cenos 和ubuntu系统
PWD=... | true |
4a2bf39660b587e020ea2474abe06e3c9104b66b | Shell | ali01/dotfiles | /zsh/functions/utility/cmps | UTF-8 | 89 | 3.0625 | 3 | [] | no_license | #!/bin/sh
for arg in $@ ; do
echo "Compressing $arg"
tar -czf ${arg}.tar.gz $arg
done
| true |
b5e10f0118e72da8bf97183320cc2a9f6c446817 | Shell | Vico1993/MacOs-Install | /.bash_profile | UTF-8 | 4,284 | 3.125 | 3 | [] | no_license | #Color in shell Terminal
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
#Specific HomeBrew Cask Default environement Variables
export HOMEBREW_CASK_OPTS="--appdir=/Users/vico/Applications"
#Go PATH
export GOPATH=$HOM... | true |
3892c2acae3247eda93b611e83c7f55bbf758686 | Shell | Scheer1996/BS | /Aufgabe4/setup.sh | UTF-8 | 381 | 3.1875 | 3 | [] | no_license | #!/bin/bash
module="aufgabe"
device="aufgabe"
mode=666
sudo rm -f /dev/$device
sudo /sbin/insmod ./$module.ko $* || exit 1
bash filter.sh
#sudo tail -f /var/log/kern.log
major=$(grep $module /proc/devices | cut -c-4)
sudo mknod /dev/$device c $major 0
sudo chmod $mode /dev/$device
#echo Ein device fuer major n... | true |
b20e10f6c742c8b40e8969c968249890caab273c | Shell | runeio/platform | /build.sh | UTF-8 | 4,033 | 3.78125 | 4 | [] | no_license | #!/usr/bin/sh
check_expand_tarball_packages () {
if [ -e ${1} ]; then
if [[ ${1} != *.tgz ]]; then
echo "Skipping ${1} in tarball dir"
return 0
fi
echo "Expanding tarball package ${1}"
tar xfz ${1}
if [ $? != 0 ]; then
echo "**: FAILED: to untar tarball: ${1}"
exit 1
fi
return 0
fi
return... | true |
19d46db140ec268c4dec63f3ac2f52a87fefdd5f | Shell | rcbops/ceph-deployment-toolkit | /scripts/prepare-deployment.sh | UTF-8 | 1,785 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ ! -e ./cephrc ]
then
echo "Can't find ./cephrc"
exit
fi
source ./cephrc
echo " ###################################"
echo " # CREATING ceph_deploy VIRTUALENV #"
echo " ###################################"
OS_RELEASE=$(lsb_release -sr)
if [ ${OS_RELEASE} = "18.04" ] || [ ${CEPH_ANSIBLE_VERSIO... | true |
e9c6f5f0bc77b0e4699314d27ec4c9cc30ccfed4 | Shell | princeton-vl/PackIt_Extra | /download.sh | UTF-8 | 949 | 2.90625 | 3 | [
"BSD-3-Clause"
] | permissive |
wgetgdrive(){
# $1 = file ID
# $2 = file name
URL="https://docs.google.com/uc?export=download&id=$1"
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate $URL -O- | sed -rn 's/.*co... | true |
f8c99eefdf9e0c5d61efac98f63c31bec7b71064 | Shell | Hasodikis/Lenovo-Ideapad-s540-14IWL---Hackintosh | /PlugFix/install.command | UTF-8 | 566 | 2.75 | 3 | [] | no_license | #!/bin/bash
cd $(dirname $BASH_SOURCE) || {
echo Error getting script directory >&2
exit 1
}
sudo chmod 755 ALCPlugFix
sudo chmod 755 hda-verb
sudo chmod 644 good.win.ALCPlugFix.plist
sudo cp -f ALCPlugFix /usr/local/bin
sudo cp -f hda-verb /usr/local/bin
sudo cp -f good.win.ALCPlugFix.plist /Library/LaunchAg... | true |
9a1d06d6142157453a7d15b839650f3073b3a265 | Shell | sbrisbane/shc4hpc | /lib/core/slurm_conf_to_hash | UTF-8 | 188 | 3.34375 | 3 | [] | no_license | #!/bin/bash
usage()
{
echo $0 path/to/slurm.conf
}
if [ -z "$1" ]; then
usage exit 1
fi
SLURMCONF=$1
grep -v \# ${SLURMCONF} | grep -v ^$| awk -F = '{print "\""$1"\": \""$2"\","}'
| true |
2a708007b840ed8b2d951c7251250ef5d8ca0692 | Shell | Simonster04/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/8-for_ls | UTF-8 | 160 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
# displays content of the current dir in list format & only the name part after first dash
for i in *
do
echo "$i" | cut -f2 -d'-'
done
| true |
dab61bf132db2efc9de40202fb9c8c8647b4fb58 | Shell | doraeric/dotfiles | /bin/uninstall_unity.sh | UTF-8 | 663 | 2.921875 | 3 | [] | no_license | #!/bin/sh
# https://gist.github.com/ManuelTS/5ed3fa4e5035e489796b374e0654b649
# Uninstalls the Unity Editor on Ubuntu.
#
# Tested for Unity 2017.30f1 downloaded from https://beta.unity3d.com/download/3c89f8d277f5/public_download.html
# and Ubuntu 17.10, but it should work with other version too.
#
# Unity is expected t... | true |
cb49f6365b75fa5d7405b10fdd0b0843125bdeff | Shell | kojima-r/raspberry_slideshow | /stop_slideshow.sh | UTF-8 | 199 | 2.984375 | 3 | [] | no_license | LOCK_FILE=slideshow.lock
PID_FILE=slideshow.pid
DIR_FILE=slideshow.dir
if [ -e $DIR_FILE ] ; then
rm -f $DIR_FILE
fi
if [ -e $PID_FILE ] ; then
echo "kill `cat $PID_FILE`"
kill `cat $PID_FILE`
fi
| true |
c495a2486b8f06ce350f81c520a6a3f8bdedba7d | Shell | rootsongjc/inlets | /hack/provision-vultr.sh | UTF-8 | 1,219 | 3.671875 | 4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-dco-1.1"
] | permissive | #!/bin/bash
export SUFFIX=$(head -c 16 /dev/urandom | shasum | cut -c1-8)
export NAME="inlets$SUFFIX"
export USERDATA=$(cat `pwd`/hack/userdata.sh)
export VULTR_REGION=8 #London
export VULTR_OS=270 #ubuntu 18.04
export VULTR_PLAN=201 #1024 MB RAM,25 GB SSD,1.00 TB BW
echo "Creating: $NAME"
VULTR_SCRIPT_ID=$(vultr-c... | true |
3021649504372decc65bbfa646ca800d65ebb83a | Shell | jmchatman/BASH | /bash_tutorial/ch_09/t-out.sh | UTF-8 | 188 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#t-out.sh
TIMELIMIT=4
read -t $TIMELIMIT variable <&1
echo
if [ -z "$variable" ]
then
echo "Time out, variable still unset."
else
echo "variable = $variable"
fi
exit 0
| true |
f23bb22afbf0080a489b28e0515f75ee8658078e | Shell | Sayardiss/filesystem-rpi-projet2su | /var/lib/dpkg/info/mariadb-server-10.1.preinst | UTF-8 | 5,685 | 3.90625 | 4 | [] | no_license | #!/bin/bash -e
#
# summary of how this script can be called:
# * <new-preinst> install
# * <new-preinst> install <old-version>
# * <new-preinst> upgrade <old-version>
# * <old-preinst> abort-upgrade <new-version>
#
. /usr/share/debconf/confmodule
# Just kill the invalid insserv.conf.d dire... | true |
85f70192731b53aa923bcb3d901961c91b3cfe7f | Shell | mc256/ACM_ICPC | /_0build.sh | UTF-8 | 139 | 2.953125 | 3 | [] | no_license | #!/bin/bash
if [ -e "$1" ]
then
rm -vf ./${1}.out
g++ -g -std=c++11 $1 -o ${1}.out && ./${1}.out < test.txt
else
echo "Need argument"
fi | true |
d1b18cf9ede90e5cfa26792f5bc1a46be4681724 | Shell | emersonmx/phpstubs | /build.sh | UTF-8 | 622 | 3.15625 | 3 | [] | no_license | #!/bin/bash
set -e
filename='netbeans-8.2-201609300101-php.zip'
checksum='51ae034b99f16c3bab66ab7dfd07c3554953e78828c2493cde1bb67c95c43e2b'
download_path="/tmp/$filename"
code_path='code'
pushd /tmp > /dev/null
curl -O -C - "http://download.netbeans.org/netbeans/8.2/final/zip/$filename"
popd > /dev/null
echo 'Check... | true |
97a4107fa143992bd473c1210d38e56efd3fc9e9 | Shell | opensafely-core/backend-server | /services/osrelease/install.sh | UTF-8 | 1,093 | 3.328125 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
DIR=~jobrunner/osrelease
SRC_DIR=services/osrelease
CODE=$DIR/code
VENV=$DIR/venv
WHEELS=$DIR/wheels
CONFIG=$DIR/config.py
mkdir -p $DIR
test -d $CODE || git clone https://github-proxy.opensafely.org/opensafely-core/output-publisher $CODE
test -d $WHEELS || git clone https://github-proxy... | true |
9606542df0b41eecd0d0f3ba0c1b339d61b2e483 | Shell | TangMingCode/JavaDeomo | /runend.sh | UTF-8 | 751 | 2.96875 | 3 | [] | no_license | #!/bin/sh
basePath=$(cd "$(dirname "$0")";pwd)
$basePath/setbundleid.sh $basePath/SignTimeCMokey/TargetApp/*.ipa &&
userPath=${HOME}
$userPath/Library/Developer/Xcode/DerivedData/SignTimeCMokey-*/Build/Products/Debug-iphoneos/createIPA.command &&
raw_dir="$userPath/Library/Developer/Xcode/DerivedData/SignTimeCMoke... | true |
4fa3042f01495615e755b1c55e30b632e23c45ce | Shell | omailson/dotfiles | /bin/rdio | UTF-8 | 297 | 2.953125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
if [ "$#" -eq 0 ]
then
chromium --app=http://rdio.com/
else
case "$1" in
play|pause)
action="space"
;;
next)
action="Right"
;;
previous)
action="Left"
;;
*)
action="space"
;;
esac
xdotool key --window $(xdotool search --name '– Rdio') "$action"
fi
| true |
25385aef9e398bfe5f63709500487f3f56399714 | Shell | petronny/aur3-mirror | /desktoptracks/PKGBUILD | UTF-8 | 853 | 2.578125 | 3 | [] | no_license | #Maintainer: kiefer <jorgelmadrid@gmail.com>
pkgname=desktoptracks
pkgver=0.1.2
pkgrel=4
pkgdesc="Record statistics about used applications"
arch=('i686' 'x86_64')
license=('GPLv2')
url="http://code.google.com/p/desktoptracks/"
depends=('dbus' 'dbus-python' 'glibc' 'glib2' 'gtk2' 'fontconfig' 'pygtk' 'python2-gnomeca... | true |
4425abf4ff7c241e07525320ac533295316f5ff8 | Shell | ibmcb/cbtool | /scripts/xping/cb_run_xping.sh | UTF-8 | 1,992 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#/*******************************************************************************
# Copyright (c) 2012 IBM Corp.
# 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
# htt... | true |
a6744c845d5c83f333cf677f4f33ba5ce7eaeeec | Shell | poprusha/canvas | /docker/cypress/docker-entrypoint.sh | UTF-8 | 196 | 3.046875 | 3 | [] | no_license | #!/bin/sh
set -e
if [ "$2" = 'functional-tests' ]; then
{
$1 $2 && yarn cy:report:create
exit 0
} || {
echo "Test failed error: $?"
yarn cy:report:create
exit 1
}
fi
exec "$@" | true |
6997876715d54dfe83c4d4d6c2718a90e972cc43 | Shell | SibghatullahSheikh/ngcpcfg | /scripts/status | UTF-8 | 2,168 | 3.859375 | 4 | [] | no_license | #!/bin/bash
# Purpose: display state of ngcpcfg setup and pending/recommended actions
################################################################################
set -e
set -u
if ! [ -r /usr/share/ngcp-ngcpcfg/functions/main ] ; then
printf "Error: /usr/share/ngcp-ngcpcfg/functions/main could not be read. Exit... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.