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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
03f007974b6fce3d5711c1d98c9a843bc0c3d10f | Shell | fabiocorneti/admin-tools | /ztdisable | UTF-8 | 1,588 | 3.75 | 4 | [] | no_license | #!/bin/bash
# A QAD script to disable zerotier hosts via the zerotier API
# $1 is the ansible host or group name
set -eo pipefail
err_report() {
echo "errexit on line $(caller)" >&2
}
trap err_report ERR
die() {
echo $2 >&2
exit $1
}
CURL_ARGS=-SsfL
if [[ ! $ZT_TOKEN_FILE ]]; then
ZT_TOKEN_FILE=/roo... | true |
ae3a66152d4113072eb76c197faed1e6438a57f5 | Shell | Ruxton/shell_config | /install.sh | UTF-8 | 5,242 | 4.53125 | 5 | [] | no_license | #!/usr/bin/env sh
SHELL_CONFIG_IS_OSX=false
## Manage calls to True Crypt
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
SHELL_CONFIG_IS_OSX=true
fi
if [[ $SHELL_CONFIG_IS_OSX == true ]]; then
truecrypt='/Applications/TrueCrypt.app/Contents/MacOS/Truecrypt --text'
else
truecrypt='truecrypt'
fi
## Sou... | true |
1482a053d86eac7490ed077de98c4d6868d4f31f | Shell | megalithic/dotfiles | /bin/tmux-ip | UTF-8 | 857 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env zsh
# display wan and lan ip addresses only when we're not pairing
# $(tmux display-message -p '#S') != 'pairing' &&
while true
do
if [[ $(dnd status) ]]; then
wan=$(dig +short myip.opendns.com @resolver1.opendns.com)
tun=""
for i in {0..3}
do
[[ -n $(ifconfig utun$i >/dev/null ... | true |
80433ff7fb52c3b63c91fa3a03509beca76252b7 | Shell | willtack/presurgical-epilepsy | /curate_bids.sh | UTF-8 | 1,383 | 3.90625 | 4 | [] | no_license | #!/bin/bash
#
# Loop fw-heudiconv from command line over a list of subjects (line-separated text file)
# Specify -x to override dry_run
#
# Will Tackett
# October 10th, 2019
#
cmd=$(basename "$0")
syntax="$cmd [-x]{p Project}{-h heuristic} [Subjects]"
error_exit()
{
echo "$@" 1>&2
echo "$syntax" 1>&2
exit 1
}
whi... | true |
8aa06a84a7d708bd2a159303c12db6d85af38791 | Shell | tuminoid/kisakone-dev | /scripts/install-postfix.sh | UTF-8 | 356 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
export DEBIAN_FRONTEND=noninteractive
# postfix
# do not install postfix by default on a development box to avoid mailing people by mistake
echo "postfix postfix/main_mailer_type select Internet Site" | debconf-set-selections
echo "postfix postfix/mailname string trusty64" | debconf-set-selections
apt-get -... | true |
e453954e9eaa2e6674be14a5c992cc17fc33f080 | Shell | chesstrian/adodm-gui | /extras/svn.sh | UTF-8 | 326 | 2.71875 | 3 | [] | no_license | #!/bin/bash
##
# Falta verificar que se ingrese $1 o más, de lo contrario no permitir que se ejecute.
echo "Creando Proyecto $1"
cd /var/www/svn/
svnadmin create $1
svn mkdir file:///var/www/svn/$1/trunk file:///var/www/svn/$1/tags file:///var/www/svn/$1/branches -m "$1 Initial SVN Structure"
chown -R apache\: $1
ex... | true |
ec0b31518a2a955812df686290177b2103d0e83a | Shell | justinchou/ethereum-privatechain-generator-script | /import.sh | UTF-8 | 721 | 3.515625 | 4 | [] | no_license | #!/bin/bash
KEY=$1
if [ "${KEY}" == "" ]; then
echo 'invalid key ${KEY}'
exit 1
fi
EXAMPLE=d657c6e5a313bf0d493975ad283be013de06cb2d4beebaf9a27af807ec636962
if [ "${#KEY}" != "${#EXAMPLE}" ]; then
echo "invalid key length ${#KEY} should ${#EXAMPLE}"
exit 2
fi
PRIV_PATH=private
if [ ! -d ${PRIV_PATH} ]; then
... | true |
fc3299742e5570f1ebe6f4d8519d0f631c2492a4 | Shell | allisonjack/CDD | /fslvbm_modified.sh | UTF-8 | 690 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#output from SUIT normalization
#wsuit_mGM_prob.nii
#merge individual GM probability images in the -t dimension, take mean across -t dim, thresh
#above 0 and binarize to create a merged 4D mask
STUDYDIR=/Users/allisonjack/Documents/CDD_R01/SUIT
cat $STUDYDIR/SUIT_IDs.txt | while read ID || [ -n "$ID" ]... | true |
07b3de36782cf2b72edf163d406d0abd16cd28a7 | Shell | jakecraige/dotfiles | /zshrc | UTF-8 | 1,791 | 2.640625 | 3 | [] | no_license | #!/bin/zsh
export EDITOR="vim"
export SHELL="/bin/zsh"
export PATH="/usr/local/bin:/usr/local/sbin:$HOME/bin:/usr/sbin:$PATH"
export DOT="$HOME/.dotfiles"
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export ZSH="$DOT/oh-my-zsh"
export ZSH_CUSTOM="$DOT/zsh_custom"
export ZSH_THEME="poetic"
export DISABLE_AU... | true |
8e86538dafedbd08a79d6b3acacd1661c76936b4 | Shell | claymoret/codis-package | /tools/backup-rdb.sh | UTF-8 | 787 | 3.46875 | 3 | [] | no_license | #!/bin/bash
cd $(dirname $0)
BACKUP_MAX=12
port=${1:-6379}
backup_dir=${2:-./backup_$port}
host=$(netstat -nltp | grep :${port} | awk '{print $4}' | awk -F: '{print $1}')
if [[ -z $host ]] || [[ $host == "0.0.0.0" ]]
then
host="127.0.0.1"
fi
rdb_name=$(redis-cli -h $host -p $port config get dbfilename| grep -v... | true |
28bfa56b27a604eb5cdaa780f5afb0581af110d4 | Shell | longlongagee/ito-shells | /upgrade_ssh/upgrade_ssh.sh | UTF-8 | 5,421 | 3.25 | 3 | [] | no_license | #!/bin/bash
#Author:xujianan
#modify wusl
#Version:V1.3
#CentOS6.8 CentOS7.5
#20180516
#20191022 1,修改支持ssh 7.9p1 2,文件夹及脚本重命名
# 提供源码包地址:
# https://github.com/openssl/openssl/releases
# wget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.6p1.tar.gz
# wget http://mirrors.ibiblio.org/openssl/source/openssl... | true |
ca25654a923b91c1deee6ac68f94892b37acfd90 | Shell | rednammoc/bash-examples | /Process/pid_and_ppid.sh | UTF-8 | 123 | 2.625 | 3 | [] | no_license | #!/bin/bash
#
# Get current and parent process-id.
#
# 13/07/12
#
echo -e "PID:\t$$"
echo -e "PPID:\t`ps -p $$ -o ppid=`"
| true |
dd15d3c5beda4f833c6d907f68f2b37629fc8ac7 | Shell | opnsense/plugins | /databases/redis/src/opnsense/scripts/redis/setup.sh | UTF-8 | 208 | 2.59375 | 3 | [
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause"
] | permissive | #!/bin/sh
for redis_dir in /var/db/redis /var/log/redis /var/run/redis
do
mkdir -p $redis_dir
chown redis:redis $redis_dir
done
touch /var/log/redis/redis.log
chown redis:redis /var/log/redis/redis.log
| true |
4579103f89b2660dc81878f086171f0b1e1d4489 | Shell | infomaniac50/dotfiles | /.exports/meta.sh | UTF-8 | 1,687 | 4.125 | 4 | [] | no_license | # vim:set filetype=sh:
meta()
{
local implemented="Only aliases, functions, and files are currently implemented."
local file="$1"
local shell=$(basename $SHELL)
if [[ -z "$1" ]]; then
cat <<EOF
meta [-tf] <alias|function|script>
Prints the definition of any alias, function, or executable shell script.
Ex... | true |
c44de84f01c6cc696912c32d8d8e5c9c0eaa778b | Shell | soso128/ibd_signal | /scripts/vectgen.sh | UTF-8 | 645 | 3.140625 | 3 | [] | no_license | #!/bin/bash
args=(${PJM_JOBNAME//_/ })
run=`echo ${args[0]} | cut -c2-`
emin=${args[1]}
emax=${args[2]}
repeat=${args[3]}
setpos=${args[4]}
source exec_card.sh
date
outname=$vector_dir/$emin\_$emax
mkdir -p $outname
outfile=$outname/$vector_prefix\.r$run\.$repeat\.zbs
cd ..
if [ "$setpos" -eq 0 ]
then
echo "./ve... | true |
74fbc2ed9ac034e4aa47b3d08d28b5aec0e9c66b | Shell | YYHugo/Trabalho-avaliacao | /desempenho/togray.sh | UTF-8 | 121 | 2.828125 | 3 | [] | no_license | #!/bin/bash
mkdir grayscale
cd grayscale
for i in "$@"
do
echo "$i"
time(convert "../$i" -colorspace Gray "$i")
done
| true |
6a62177a35569fe7fd272fbfb9b42321e3314181 | Shell | alongay/labautomation | /tools/roboshop-issue-tracker/install.sh | UTF-8 | 1,389 | 3.875 | 4 | [] | no_license | #!/bin/bash
echo -e "This script runs only in FRONTEND, Hence if you are sure that you are \nrunning under frontend server then proceed.."
read -p 'Proceed [Y|n]: ' action
ACTION=$(echo $action| cut -c -1 | tr [a-z] [A-Z])
if [ "$ACTION" == "Y" ]; then
if [ ! -f /etc/nginx/default.d/roboshop.conf ]; then
echo -e... | true |
e640ab08601202faf6efa550256f6bf6d73d45c0 | Shell | opnfv/moon | /old/tests/functional/run_tests_for_component.sh | UTF-8 | 603 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
CUR_PWD=$(pwd)
INPUT_FILE=../tools/moon_kubernetes/templates/moon_functest.yaml
OUTPUT_FILE=tests/functional_pod/moon_functest.yaml
echo current working directory: ${CUR_PWD}
cat ${INPUT_FILE} | sed "s|{{PATH}}|${CUR_PWD}|" > ${OUTPUT_FILE}
kubectl create -f ${OUTPUT_FILE}
sleep 5
kubectl get -... | true |
3708537defe45da742bc1dd881bff96a6f9ef032 | Shell | epasham/mgicode-k8s-shell | /04k8s(10.1.12.20-29)/09consul/04consul.sh | UTF-8 | 1,510 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive |
# author:pengrk
# email:546711211@qq.com
# qq group:573283836
#hostpath的存储需要权限,不然不能读写指定的consuldata目录
for ip in $ZONE_CONSUL_IPS ;do
echo "$ip..."
ssh root@$ip "cd /root/; mkdir consuldata; chmod 777 consuldata; ls -l;"
sleep 5
done
#cp /root/k8s-new/16consul/* /consul/
#把16consul的两个Yaml文件copy to /consul/
mkdir ... | true |
1f0055e19d98722435a43c0998c09e8ff099806a | Shell | Projects-OC/WebKit | /CocoapodsUpload | UTF-8 | 662 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#更改了podspec中的版本号,需要pod install,之后再执行脚本
echo "更改了podspec中的版本号,需要pod install,之后再执行脚本"
echo -n "enter the version : "
read version
echo "**************begin commit*********************"
git add -A && git commit -m "Release ${version}"
echo "***************begin tag***********************"
git tag ${version}
... | true |
a1b5cadceb05e9bfb1d939e477560a555d8e7bba | Shell | aes/DirT | /dirt.sh | UTF-8 | 1,107 | 3.578125 | 4 | [] | no_license | #!/bin/echo "You should *source* this file:"
# ...OR COPY THIS TO YOUR .bashrc AND GO WILD WITH THE ALIASES
export DIRT=
export DIRT_SHARED=/tmp/$USER.dirt
DIRT_SAVED_PROMPT_COMMAND=$PROMPT_COMMAND
touch $DIRT_SHARED
chmod 0600 $DIRT_SHARED
function dirt_filter()
{
tr : "\n" | sed "s@^${HOME}@\~@" | sort -u... | true |
e4731f6ca8f6f77c6206baa81b5cf7ccdeee3a01 | Shell | mrchapp/ci-job-configs | /lt-qcom-linux-automerge/builders-kernel.sh | UTF-8 | 1,658 | 3.578125 | 4 | [] | no_license | #!/bin/bash
set -ex
function build_integration_kernel()
{
export ARCH=$1
export KERNEL_CONFIGS=$2
source install-gcc-toolchain.sh
export CROSS_COMPILE="ccache $(basename $(ls -1 ${tcbindir}/*-gcc) gcc)"
export PATH=${tcbindir}:$PATH
make distclean
make ${KERNEL_CONFIGS}
# build QCOM DTBS with warnings
if ... | true |
e1836554b6696cbb5558fa2e8d296e9294217228 | Shell | freebsd/freebsd-ports | /graphics/geoserver/files/geoserver.in | UTF-8 | 1,115 | 3.359375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# PROVIDE: geoserver
# REQUIRE: NETWORKING
#
# Add the following line to /etc/rc.conf[.local] to enable geoserver
#
# geoserver_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable geoserver.
. /etc/rc.subr
name="geoserver"
rcvar=geoserver_enable
load_rc_config ${name}
: ${geoserver_ena... | true |
8504182bdb6c3772b5b8e553db54df507be173c6 | Shell | vmogilev/evnt | /linux/mon/sys/bin/evntproc.sh | UTF-8 | 9,586 | 2.953125 | 3 | [] | no_license | #!/bin/ksh
#
# $Header evntproc.sh 04-NOV-2013 1.6
#
# File:
# evntproc.sh
#
# Author:
# Vitaliy Mogilevskiy VMOGILEV
#
# Purpose:
# Process EVENT
#
# Usage:
# evntproc.sh EVENT_ASSIGMENTS.EA_ID
#
# History:
# 23-JUL-2002 VMOGILEV (1.1) Created
# 10-MAR-2003 VMOGILEV (1.2) added collection processing procs
# 03-APR-200... | true |
7a96a7e31b717b259825a7ab81951c031bb0eb26 | Shell | plbelief222/test | /ping.sh | UTF-8 | 400 | 3.421875 | 3 | [] | no_license | #!/bin/bash
IP_LIST="172.16.16.11 172.16.16.12 106.52.30.129"
for IP in $IP_LIST;
do
NUM=1
while [ $NUM -le 2 ];do
if ping -c 1 -W 1 $IP > /dev/null ;then
echo "$IP ping is ok"
break
else
FAIL_COUNT[$NUM]=$IP
let NUM++
fi
done
if [ ${#FAIL_COUNT[*]} -eq 2 ];then
echo "${... | true |
d98a606ac1e802a51c845f82aa4a1e02eda6f02c | Shell | freifunk-goettingen/ffgoe-jenkins | /build.sh | UTF-8 | 1,931 | 3.515625 | 4 | [] | no_license | #!/bin/sh
#
###############################################################################################
#
# Buildscript zur Erstellung der Images
#
###############################################################################################
# Based on https://github.com/FreiFunkMuenster/site-ffms/blob/master/bu... | true |
88662d6464e2d5437460d356303cc73b252fc37d | Shell | angelini/dotfiles | /server/k8s-cluster.sh | UTF-8 | 1,125 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
# shellcheck disable=SC1091
# shellcheck disable=SC2155
set -euo pipefail
source "${BASH_SOURCE%/*}/common.sh"
readonly FLANNEL_YAML="https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml"
readonly NETWORK_CIDR="10.244.0.0/16"
create_cluster() {
log "create c... | true |
6f08a0a20582e5e029de3267339f5ef07f8c1d32 | Shell | tathagat2006/serenity-js | /scripts/travis/script.sh | UTF-8 | 286 | 2.703125 | 3 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | #!/bin/bash
set -e
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "Verifying a pull request, BrowserStack is not available in this mode.";
echo "- see https://docs.travis-ci.com/user/pull-requests#Pull-Requests-and-Security-Restrictions";
fi
make clean verify report
exit 0;
| true |
dc57ef425a202b3d6a2da2224eeead0bc560eb98 | Shell | suryanshagnihotri/rubix | /rubix-rpm/src/main/resources/rpm/scripts/configure-spark.sh | UTF-8 | 1,592 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
RUBIX_HOME_DIR=/usr/lib/rubix
# Configure Spark as RubiX client
SPARK_DEFAULTS_CONF_FILE="${SPARK_HOME}/conf/spark-defaults.conf"
SPARK_DRIVER_EXTRA_CP_OPTION="spark.driver.extraClassPath"
SPARK_EXECUTOR_EXTRA_CP_OPTION="spark.executor.extraClassPath"
RUBIX_EXTRA_CP="${RUBIX_HOME_DIR}/lib/*"
if grep -qF ... | true |
5af894b06e97698ae71143cf13b99f329b9d7884 | Shell | dizk/torquebuilder | /build.sh | UTF-8 | 464 | 3.171875 | 3 | [] | no_license | #!/bin/bash
set -e
#############################
# Change this value to make rpms of another version
VERSION="4.2.10"
#############################
FOLDER="torque-$VERSION"
ARCHIVE="$FOLDER.tar.gz"
BASEPATH="http://wpfilebase.s3.amazonaws.com/torque/"
echo "Downloading source..."
curl -O "$BASEPATH$ARCHIVE"
echo "E... | true |
ab585da15ff2bfa3305f0ad4edde0d2954a728fc | Shell | Duke-GCB/pypi-to-module | /example_install_script.sh | UTF-8 | 419 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# Save arguments
SV_NAME=$1
SV_VERSION=$2
SV_RELEASE=$3
BASESPECFILES=/tmp/basespecfiles
#TODO cd to helmod base
module purge
source ./setup.sh
# Restore our original arguments
export NAME=$SV_NAME
export VERSION=$SV_VERSION
export RELEASE=$SV_RELEASE
export TYPE=Core
cd "$FASRCSW_DEV"/r... | true |
c7c31e74810f33dfa7798b5ebc2bc5691b4ecdc3 | Shell | tituspijean/n8n_ynh | /scripts/_common.sh | UTF-8 | 782 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
nodejs_version=16
version=0.129.0
timezone=$(cat "/etc/timezone")
#=================================================
# PERSONAL HELPERS
#===============================================... | true |
f1139e6b77139fd4528cfa06f73524621a10882b | Shell | cjfff/xmind-analysis | /deploy.sh | UTF-8 | 444 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成静态文件
npm run build
mkdir temp_web
cd temp_web
# 拷贝 gh-pages 目录下到
git clone --depth 1 -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/cjfff/xmind-analysis.git && cd xmind-analysis
# 删除原本的所有文件
rm -rf ./*
cp -rf ../../dist/* .
git add -A .
git commit -m "dep... | true |
92458894c94d56593fc8443c7053979fe6514f7d | Shell | riazarbi/serversetup | /set_up_remote_server.sh | UTF-8 | 1,176 | 3.640625 | 4 | [] | no_license | #!/bin/bash
echo
echo "Creating a new local private key."
echo "If you already have one then don't overwrite"
echo
ssh-keygen -t rsa
echo
echo "Enter remote IP address:"
read remoteIPaddress
echo
echo "Enter remote sudo username:"
read remoteSUDOUSER
echo
echo "Attempting to send key to remote server"
echo
ssh-copy-id ... | true |
a5ae0eaaba874b61bf6b4b72fa054d5fbc4d6ac9 | Shell | SGywzhang/mangoDB | /run | UTF-8 | 322 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
declare -a hosts=('192.168.48.229' '192.168.48.230' '192.168.48.231' '192.168.48.232' '192.168.48.233')
./gradlew client:experiment -PtFile=queryDatabase.txt -PtHost=${hosts[0]} --no-daemon &> experiment_log/expectedDatabase.out &
PID=$!
echo $PID | tee experiment_log/expectedDatabase.pid
sleep 40... | true |
f5a0d56617661731e9cf5cbda70ff0835ffd9e5b | Shell | ausdomainledger/hosting-benchmark-2018 | /benchmark-suite/wordpress.sh | UTF-8 | 757 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
set -euf -o pipefail
# Download and build wrk2
if [ ! -d "./wrk2" ]; then
git clone --depth=1 -b multi-ip https://github.com/ausdomainledger/wrk2.git
fi
if [ ! -f "./wrk2/wrk" ]; then
pushd ./wrk2
make
popd
fi
# Parameters
while getopts ":u:r:" o; do
case "${o}" in
u)
URL=${OP... | true |
c8f15582e73211db6ad1f1191c92dff2c95f04d8 | Shell | milindoke/amazon-redshift-utils | /src/SnapshotManager/build.sh | UTF-8 | 293 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set +x
ver=`cat package.json | grep version | cut -d: -f2 | sed -e "s/\"//g" | sed -e "s/ //g" | sed -e "s/\,//g"`
# defaults
function_name=RedshiftUtilsSnapshotManager
zipfile=RedshiftSnapshotManager-$ver.zip
zip -r $zipfile *.js package.json node_modules/ && mv $zipfile dist | true |
e83d8b7a143bfc4a0f52726377e95b724799e7d6 | Shell | DougZheng/kingdom_training | /bin/install-hdfs.sh | UTF-8 | 9,265 | 3.890625 | 4 | [] | no_license | #!/bin/bash
host_num=3
ips=()
hosts=()
if [[ ! -e ./config ]]; then
echo "ERR: config not exsits."
echo 'INFO: config format is $ip $hostname'
exit
fi
if [[ `whoami` != root ]]; then
echo "ERR: root required"
exit
fi
echo -e "input user to install: \c"
read username
echo "INFO: user is $username"
user_ex... | true |
d994a71ccdedf1e2e779f82641256f4763699cf0 | Shell | aquarion/dotfiles | /bin/install_packer.sh | UTF-8 | 1,440 | 3.765625 | 4 | [] | no_license | #/usr/bin/bash -x
if [[ ! -d ~/scratch ]]; then mkdir ~/scratch; fi
if [[ ! -d ~/bin ]]; then mkdir ~/bin; fi
if [ "$(uname)" == "Darwin" ]; then
ARCH="darwin_amd64";
elif [[ `uname -i` -eq "x86_64" ]];
then
ARCH="linux_amd64";
elif [[ `uname -i` -eq "i686" ]];
then
ARCH="linux_386";
fi
if [[ -z $1 ]]
t... | true |
4487da6c71a7aa0c4d0db0b841a5418ddc5b225a | Shell | ev-br/adatoms | /seed | UTF-8 | 302 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#
# add random SEEDs to parameter file
# format: seed filename N STARTSEED
# outputs _FILE, ready for parameter2xml
#
FILE=$1
N=$2
test $# -lt 3 && STARTSEED=8000 || STARTSEED=$3
OUT="$FILE"_
cat $FILE > $OUT
for I in `seq 1 1 $N`; do
echo { SEED=$(expr $STARTSEED + $I) } >>$OUT
done
| true |
b43e7ed89ace1a2e1da46f58da92cb444182c314 | Shell | kenjibailly/calibre-web | /docker-entrypoint.sh | UTF-8 | 1,406 | 3.21875 | 3 | [] | no_license | #!/bin/bash
BOOKS_SCRIPT="/app/Auto_Books_Calibre.sh"
NOTIFICATIONS=$(echo $NOTIFICATIONS | tr a-z A-Z)
# Checking Notifications are enabled
echo "###########################"
echo "# Checking Notifications #"
echo "###########################"
echo ""
if [ "$NOTIFICATIONS" = "ENABLED" ]; then
echo "# Notific... | true |
6b8004e12e844fbc9459ac441ff45ca66321214c | Shell | b-i-hide/dotfiles | /zsh/runcoms/.zlogout | UTF-8 | 272 | 2.59375 | 3 | [] | no_license | #
# Executes commands at logout.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Print the message.
#cat <<-EOF
#Thank you. Come again!
# -- Dr. Apu Nahasapeemapetilon
#EOF
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogout" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogout"
fi
| true |
83b280b63f24f8e50fa0637c9f69d859c2290615 | Shell | scls19fr/openphysic | /python/scripts/ip_logger/ip_logger.sh | UTF-8 | 453 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
LOGFILE="iplog.txt"
LASTIPFILE="lastip.txt"
CURRENT_IP=`exec wget --tries=5 -q -O - http://www.celles.net/php/whatismyip.php`
LAST_IP=`exec /bin/cat $LASTIPFILE 2> /dev/null`
TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S")
#echo "Current IP: " $CURRENT_IP
#echo "Last IP: " $LAST_IP
if [ "$CURRENT_IP" !... | true |
d69dfe836a7a99bed2e4a2d15fe74c897bba1491 | Shell | Librechain/bytecoin | /build.sh | UTF-8 | 1,520 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
svn up
VERSION=1.0.4
REVISION_CURRENT=`svn info --xml . | grep "revision" | awk 'END{print $NF}' | sed 's/revision="//' | sed 's/">//'`
REVISION_OLD=`grep CLIENT_VERSION_BUIL src/clientversion.h | awk -F" " '{print $3}'`
MOD_TIME=`svn info --xml . | grep date | awk -F">" '{print $2}' | awk -F"Z" '{print... | true |
c5a2a067a5cd55468dc9a9c545829e6fc9d12119 | Shell | gpmd/m2-theme-boilerplate | /dev/scripts/bower-install.sh | UTF-8 | 468 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# Import variables
source ./dev/scripts/vars.sh
read -p "--- Update bower components? [y/N] " answer
if [[ $answer = y ]] ;
then
echo "--- Updating bower components..."
# M2base theme
cd vendor/gpmd/theme-frontend-m2base
(bower install && bower prune)
cd ../../../
# Custom theme
... | true |
fac12fb47f453389c2cabd3d2752f02f49a8474e | Shell | vkushnir/rsyslog | /usr/bin/devConfSaveCisco.sh | UTF-8 | 4,947 | 3.671875 | 4 | [] | no_license | #!/bin/sh
#
# devConfSaveCisco.sh - Save runing configs
# devConfSaveCisco.sh -i <ip> [-n <name>] [<text>]
#
###########################################################################
# Variables
# read variables from config file
. /etc/devConfVars.conf
# snmpCommunity="****"
# tftpRoot="****"
# tftpServer="****"
# t... | true |
0fe45dfaa35390cd4d7e1637049a8f84e88f6abc | Shell | hpvb/scummvm-win32-build | /build-win32-toolchain.sh | UTF-8 | 3,125 | 3.5625 | 4 | [] | no_license | #!/bin/bash
set -e
export PREFIX=${HOME}/scummvm-win32/toolchain
export DOWNLOADPREFIX=${HOME}/scummvm-win32/dl
export BUILDPREFIX=${HOME}/scummvm-win32/toolchain-build
export PATH=${PREFIX}/bin:${PATH}
BINUTILS=binutils-2.27
GCC=gcc-6.2.0
MINGW64=mingw-w64-v5.0.0
NASM=nasm-2.12.02
mkdir -p ${PREFIX}/stamps
mkdir -p... | true |
804d31a7b15a4f73ff76b0a68691b6cfe7ae68f0 | Shell | anantgehi/May-2021-batch-notes | /OS/Scripts/changePermOthers/changePermissionsOthers | UTF-8 | 506 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# Solution 1:
find . -perm /o+w -type f -exec chmod o-w+r {} \;
echo "Write permissions of others changed."
# Solution 2:
# Working:
# Find all the files in current directory onwards which have write permissions for others. Used awk command to go line by line in the output. Used the line output from aw... | true |
64170558c432f3b9f965924ff5b8a175fe295808 | Shell | AbhijeetAher/Bash_public | /conf_file_bkp.sh | UTF-8 | 257 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#Author:- Abhijeet Aher
##Note:- Please change source & destination path as per your requirement.
SPATH=/etc/samba/
DPATH=/root/DEC2016/
for i in `ls $SPATH`
do
cd $SPATH
/bin/cp $i $DPATH/$i-orig
cd
done
| true |
d8c99c62866fe35fe3308638c75f39726279e79e | Shell | efege/opacmarc | /test.sh | UTF-8 | 2,478 | 3.359375 | 3 | [] | no_license | # Script para testear la instalación de opacmarc en Linux
# Creado: FG, 2008-10-03
#
# Este script me resulta útil para testear la aplicación a partir de una
# working copy local. Para usarlo en otro contexto, habría que ajustar
# los parámetros de configuración y tal vez algún otro detalle.
#
# TO-DO: considerar dos t... | true |
5ad9b4c0e96affdb1b92aff110cb0d6f075601cd | Shell | huilinho/what-to-eat-server | /image_thumb.sh | UTF-8 | 652 | 3.5 | 4 | [] | no_license |
function thumb() {
for file in `find $1`; do
if [ -d $file -a "$file" != "qrcode" ]; then
echo "folder:$file"
thumb $1/$file
elif [ -f $file ]; then
if [[ ! "$file" =~ "_thumb" ]]; then
prefix=${file%.*}
suffix=${file#*.}
if [ "${suffix,,}" = "png" -o "${suffix,,}" = "jpg" -o "${suff... | true |
d7debb54b032810695b9d227b01ddc2e5bec141e | Shell | khellendros/bash | /fractaltree.sh | UTF-8 | 3,254 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
maxcol=100
maxrow=63
maxtrees=6
echo "How Many Trees? [1-$maxtrees]"
read tree
let "branches=2**$tree"
let "treesize=(2**($maxtrees-$tree)) / 2"
count=0
branchop="+1"
treeflag=0
#setup initial branch positions
leftbranchstart=$(( ($maxcol / 2) - (($branches-1) * ($treesize)) ))
rightbranchend=$((... | true |
d66163ed74393fe7a01ae49a0a414b29a7e0517e | Shell | RheaSidana/linux | /FileCreated/q34.sh | UTF-8 | 376 | 3.5625 | 4 | [] | no_license | #!/bin/bash
echo "Enter the numbers (press '-' at the end) : "
max=0
pos=0
size=0
while [ $size -ge 0 ]
do
read input
if [[ $input == "-" ]]
then
size=$((size-1))
break
fi
arr[$size]=$input
if [ $input -gt $max ]
then
max=$input
pos=$((size+1))
fi
size=$((size+1))
done
echo " "
echo "Array: ${arr[@]}... | true |
42af2a4bef5b9c29e255a9f76a8780bc00e813cb | Shell | longjiayu168/agent | /frpcentos.sh | UTF-8 | 760 | 2.765625 | 3 | [] | no_license | #!/bin/bash
printf "btctop-agent FRP安装:"
cd /root
if [[ ! -f frp_0.28.2_linux_amd64.tar.gz ]]; then
curl -L -k -o /root/frp_0.28.2_linux_amd64.tar.gz https://121.40.180.105:6441/longsoft/frp_0.28.2_linux_amd64.tar.gz
fi
tar -zxvf frp_0.28.2_linux_amd64.tar.gz
cd frp_0.28.2_linux_amd64
sed -i '2s/127.0.0.1/121.40.18... | true |
d8d35c5c80097ded0edd03ac30735c3671810e85 | Shell | johnymarek/manta | /PLIMS/www/modules/PLIMS/scripts/xLiveCZ/msdl.sh | UTF-8 | 2,246 | 2.9375 | 3 | [] | no_license | #!/bin/sh
# Version 3.1,
# Copyright (c) 2012, 2013 kmarty, killerman
# This file is a part of xLiveCZ, this project doesnt have
# any support from Xtreamer company and just be design for
# realtek based players
CUR_DIR=$(dirname $0)
msdl=$CUR_DIR/msdl
ffmpeg=$CUR_DIR/ffmpeg
QUERY_STRING="NONE&${QUERY_STRING}"
QUERY... | true |
da36630df9d50f9be20fd560172fe13a4159c548 | Shell | vicentgodella/url-shortener | /script/build-local-k8s.sh | UTF-8 | 1,050 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -x
MINIKUBE_BIN_DIRECTORY="$PWD/script/bin"
MINIKUBE_PATH="${MINIKUBE_BIN_DIRECTORY}/minikube"
function get_minikube() {
mkdir -p ${MINIKUBE_BIN_DIRECTORY}
$MINIKUBE_PATH version || curl -Lo $MINIKUBE_PATH https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && c... | true |
1d8e7d6542fb47f05835c6a4487ea765821158f2 | Shell | genothomas/superbackup | /superbackup-script.sh | UTF-8 | 45,519 | 3.90625 | 4 | [] | no_license | #!/bin/bash
#
# The SuperBackup Suite created by Jeffrey Langerak
#
# Bugs and/or features can be left at the repository below:
# https://github.com/langerak/superbackup
#
# Setting global version used for updates:
VERSION="1.0.0"
cur_epoch=`date +%s`
export LANG="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
logger -t ... | true |
f63c477b3a2d8e6a8d47e52a529a16815ba3fc75 | Shell | djtal/dotfiles | /bin/gifenc | UTF-8 | 556 | 3.421875 | 3 | [] | no_license | #!/bin/sh
# see http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html for more details
#/ Usage: gifenc my_video.mov
#/ Transform my_video.mov into a high quality gif file with the same name
usage() {
grep '^#/' "$0" | cut -c4-
exit 0
}
expr "$*" : ".*--help" > /dev/null && usage
palette="/tmp/palett... | true |
c07d85ee97225e27f956e1b5f6a7f133fe77cbdc | Shell | CalPolyPat/CPAlice | /jets/GridOutputs/rname.sh | UTF-8 | 169 | 2.90625 | 3 | [
"MIT"
] | permissive | for f in ./plotsKlayWeak/*; do
if [ -f "$f" ]; then
mv "$f" "${f/>/-}"
fi
done
for f in ./plotsKlayStrong/*; do
if [ -f "$f" ]; then
mv "$f" "${f/>/-}"
fi
done
| true |
b0643dde0ec8eb8652271499fd5814e354ade2d4 | Shell | copslock/7525 | /apps/private/etc_script/ct/wan_start_ipv6.sh | UTF-8 | 11,978 | 3.15625 | 3 | [] | no_license | #!/bin/sh
if [ $# != 1 ] ; then
echo "usage: $0 [PVCn]"
exit 0
fi
i=$1
CONFFILE=/etc/isp$i.conf
echo $CONFFILE
if [ -f $CONFFILE ] ; then
chmod 777 $CONFFILE
. $CONFFILE
else
exit 0
fi
MAC_CONFFILE=/etc/mac.conf
if [ -f $MAC_CONFFILE ]; then
chmod 777 $MAC_CONFFILE
. $MAC_CONFFILE
fi
if [ "$Active" != "Ye... | true |
df56dfb1756c97480d74eba71b067a2508a5ccbb | Shell | allanice001/UnISPConfig | /extras/theme.install.sh | UTF-8 | 1,550 | 3.5625 | 4 | [] | no_license | #!/bin/bash
###############################################################################################
# Complete ISPConfig setup script for Debian/Ubuntu Systems #
# Drew Clardy #
# http://drewclardy.com ... | true |
93669443a18e4fd2f59d355930a61f2e9d8da89d | Shell | Terkwood/redis-rs | /scripts/update-versions.sh | UTF-8 | 682 | 3.53125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# This script is pretty low tech, but it helps keep the doc version numbers
# up to date. It should be run as a `pre-release-hook` from cargo-release.
set -eo pipefail
if [ -z "$PREV_VERSION" ] || [ -z "$NEW_VERSION" ]; then
echo "Missing PREV_VERSION or NEW_VERSION."
echo "This script nee... | true |
cbb854b2554608474d55d53a9810494a36093fce | Shell | gt22/hse-lecture-notes | /make_conspect.sh | UTF-8 | 247 | 2.765625 | 3 | [] | no_license | pt=src/$1
template=src/term0-template
mkdir $pt
cp -r $template/* $pt
rm $pt/core.tex $pt/switch.sh .tgconfig
ln -s $template/core.tex $pt/core.tex
ln -s $template/switch.sh $pt/switch.sh
ln -s $template/.tgconfig $pt/.tgconfig
echo "Created $1."
| true |
a0220393942dc747c36d72daa6168711d53d08ab | Shell | fredpy/trex2-agent | /scripts/trex_devel.bash.in | UTF-8 | 2,886 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#####################################################################
# Software License Agreement (BSD License)
#
# Copyright (c) 2011, MBARI.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condit... | true |
80591b35ba52a8ad9de121f0de358bf6b6e1f3fb | Shell | hanwei7788/LM-auto | /automatedtesting/lm-autotest-utilities/autorun-tools/Full_Main_CheckFlashTest.sh | UTF-8 | 5,077 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Master Script to Check for New Image, Flash and Run Current Test v1
source "$HOME/automatedtesting/c4c-functional-tests/TestReports_$1/image.conf"
TESTRUNFLAG="${autotest_root}/c4c-functional-tests/TestReports_$1/TestRunOn"
if [ -f "${TESTRUNFLAG}" ]
then
printf "Test run already in progress\n"
exi... | true |
3fb5d1a70f7f9f707132a03d4b78275a18aec9f1 | Shell | andrea-manzi/egi-notebooks-images | /deploy.sh | UTF-8 | 727 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -euo pipefail
DOCKER_REPO=$1
TAG=$2
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push $DOCKER_REPO/base &
docker push $DOCKER_REPO/base:$TAG &
#docker push $DOCKER_REPO/single-user &
#docker push $DOCKER_REPO/single-user:$TAG &
docker push $DOCKER_REPO/single-us... | true |
0257aec55472651e9a80d4e386d4f5476f78e5b5 | Shell | aaronga97/crawler | /parserOutside | UTF-8 | 232 | 3.09375 | 3 | [] | no_license | #!/bin/bash
#Looks for every link that point to external websites
curl $1 | grep href | awk '{for(i = 1;i <= NF; i++){if(substr($i,0,4) == "href"){print $i}}}' | grep http | awk -F '\"' -v len=$2 '{if(length($2) < len ) print $2}'
| true |
d91bcc7492b9e3642ae91d69b70e8933ad090944 | Shell | sarbal/phasXer | /bin/run_vcf_calling_2.sh | UTF-8 | 2,609 | 2.6875 | 3 | [] | no_license | picard=/sonas-hs/gillis/hpc/home/sballouz/GenomeAnalysisTK/picard.jar
GATK=/sonas-hs/gillis/hpc/home/sballouz/GenomeAnalysisTK/GenomeAnalysisTK.jar
igvtools=/sonas-hs/gillis/hpc/home/sballouz/IGVTools/igvtools.jar
samtools=/opt/hpc/bin/samtools
genome_fa=/sonas-hs/gillis/hpc/home/sballouz/STAR/GRCh38_Gencode25/GRCh38.p... | true |
fe7ead9cc1c78b6018a8aa3a021f7de7a95220fa | Shell | tianyunchong/phpshell | /localhost/syncCode.sh | UTF-8 | 452 | 3.375 | 3 | [] | no_license | #!/bin/sh
# brew install fsevents-tools
# 监听下一个目录下的文件修改,同步代码到另外一个目录下
from="/data/cap/remote/172.20.12.100/data/supsite/gc.supsite.work"
to="/data/cap/www2017/gc.supsite.work"
basepath=$(cd `dirname $0`; pwd)
fswatch $from | while read file
do
if [ "${file##*.}"x = "php"x ];then
#格式化代码
echo $file
cmd_shell="/usr/bin/... | true |
bdf18462acf923e683a1ed3bdaa1adbaf4272cb1 | Shell | avillanueva1005/avillanueva1005.github.io | /OpenSourceGIS/PERMANENT/.bashrc | UTF-8 | 880 | 2.65625 | 3 | [
"MIT"
] | permissive | test -r ~/.alias && . ~/.alias
PS1='GRASS 7.8.5 (OpenSourceGIS):\w > '
grass_prompt() {
MAPSET_PATH="`g.gisenv get=GISDBASE,LOCATION_NAME,MAPSET separator='/'`"
LOCATION="$MAPSET_PATH"
if test -f "$MAPSET_PATH/cell/MASK" && test -d "$MAPSET_PATH/grid3/RASTER3D_MASK" ; then
echo "[2D and 3D rast... | true |
9be67df2e8d51d4b52ec595d8f654d409b594de2 | Shell | abdullahk90/shell-scripts | /rename-files-cp.sh | UTF-8 | 1,758 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
## Make globally available with:
# sudo ln -s ~/Desktop/www/shell-scripts/rename-files-cp.sh /usr/local/bin/rename-files-cp && sudo chmod a+x /usr/local/bin/rename-files-cp
echo "== Safely rename all files in subdirectories. Store in 'renamed' directory. ==
Example
rename-files-cp \"Flowers\" \"2019\"";
#... | true |
60b4c4b1598bd9e61743b390124d6b0d696d5664 | Shell | bronzehedwick/git-growl | /bootstrap.sh | UTF-8 | 381 | 3.375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
endpath="$HOME/.git-growl"
echo "Thanks for installing git-growl!\n"
if [ ! -e $endpath/.git ]; then
echo "cloning git-growl\n"
git clone --recursive -b master http://github.com/bronzehedwick/git-growl.git $endpath
else
echo "updating git-growl\n"
cd $endpath && git pull
fi
echo ... | true |
9ceb6a0dd61c0e3864bf690819b35b7af5239456 | Shell | tomees/Nginx-vhost-deploy | /deploy/delete.sh | UTF-8 | 332 | 3.109375 | 3 | [] | no_license | #!/bin/bash
LN_FILE=$NGINX_SITES_ENABLED/$DOMAIN
CONFIG_FILE=$NGINX_CONFIG/$DOMAIN
if [ -f $LN_FILE ]; then
sudo rm $LN_FILE
echo "Vhost deaktivován"
else
echo "Vhost nebyl aktivní"
fi
if [ -f $CONFIG_FILE ]; then
sudo rm $CONFIG_FILE
echo "Konfigurační soubor odstraněn"
else
echo "Konfigurační soubor nenaleze... | true |
8142b6dbf8291d783fefe7ca75565f9337897643 | Shell | puslip41/scripts | /lcdet.sh | UTF-8 | 1,168 | 4.21875 | 4 | [] | no_license | #!/bin/bash
TEMP_FILE=lc.list
print_help() {
echo "$0 [OPTIONS] FILE"
echo "Find File Decoding Language Set."
echo ""
echo " -h help"
echo " -k find word"
exit 0
}
set_args() {
while getopts "k:h" opt
do
case $opt in
k) keyword=$OPTARG;;
h) print_help ;;
?) pri... | true |
39cd8c5b5858e675923cc40ff7b6f6f5a0f714c8 | Shell | syuria27/Automation_Scripts | /ibm_plugins_install.sh | UTF-8 | 1,179 | 3.265625 | 3 | [] | no_license | #!/bin/bash
################ ENVIRONMENT VARIABLES ################
media_full_path=/tmp/was.repo.9000.plugins.zip
extraction_full_path=/tmp/PLUGINS
media_install_dir=/opt/IBM/WAS/Plugins
im_path=/opt/IBM/IM
sdkmedia_full_path=/tmp/sdk.repo.8030.java8.linux.zip
sdkextraction_full_path=/tmp/SDK
#####... | true |
419e10943495fe29963b7d17df60e380b5fc8e4d | Shell | deshawes/Alternate-Jormungandr-Testnet | /scripts/jstatus.sh | UTF-8 | 23,868 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# Author: Redoracle
# Pool: Stakelovelace.io
# TG: @redoracle
# Website: https://stakelovelace.io/tools/jstatus-watchdog/
#
# To keep logs of this WatchDog tool please use it as described below.
# Usage: ./jstatus.sh
#
#
# How the fork/stuck check works:
# The script will retrieve the last block hash elab... | true |
bc1ecad540eac3f48263c4a17d7d499afeaa51b1 | Shell | erin-baggs/ID-Pipeline | /scripts/nlrid_pipeline_KVK/processing_scripts/bash_primary_transcript_parser.sh | UTF-8 | 351 | 2.640625 | 3 | [] | no_license | #!bin/bash
for f in $1.format.id ; do sort -k1,1 $f > $(basename $f .txt).sort ;done
for f in *.sort ; do python /tgac/workarea/group-tg/projects/erinphd/script/processing_scripts/primary_transcript.py $f > $(basename $f .sort).primaryT ; done
for f in *primaryT ; do cat $f | sed 's/\]//g' | sed 's/\[//g' | sed "s/'//g... | true |
0c8eb5af831dc3954c7f86af4c13da11b5cc1393 | Shell | RagulVignesh/linuxsimplified | /funarg.sh | UTF-8 | 604 | 3.5 | 4 | [] | no_license | #Script for functions with argument
hi()
{
echo "hi $1, THis is my first live" #$1 is the argument taken for consideration from function call based on its position
}
hi Ragul #Ragul is the argument which is passed to the functions
#Script for functions with return type
hi()
{
echo "hi... | true |
7a64839800672acbb28b2b590ef323280b8ece01 | Shell | angela-baby/syscuts | /src/boot_startup.sh | UTF-8 | 376 | 2.578125 | 3 | [] | no_license | #!/bin/bash
echo -e "时间:`date`\n"
echo -e "正在停止正在运行的容器\n"
docker stop `docker ps |awk '{print $1}' | grep [0-9a-z]`
echo -e "正在删除已经停止的容器\n"
docker rm `docker ps -a |awk '{print $1}' | grep [0-9a-z]`
echo -e "正在启动phpmyadmin容器\n"
docker run --name myadmin -d -e PMA_HOSTS=172.17.0.1 -p 8080:80 phpmyadmin/phpmyadmin
| true |
1572790a2c00d8e8ab2f38e5e89d99144976fc1d | Shell | ShalokShalom/plan.sh | /dvd+rw-tools/plan.sh | UTF-8 | 1,251 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | pkg_origin=cosmos
pkg_name=dvd+rw-tools
pkg_version=7.1
pkg_description="dvd burning tools"
pkg_license=('GPL')
pkg_upstream_url="http://fy.chalmers.se/~appro/linux/DVD+RW"
pkg_deps=('cdrtools' 'gcc-libs')
pkg_source=("http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${pkg_name}-${pkg_version}.tar.gz"
'dvd+rw-t... | true |
5a1f8b7ef45d7cd99656dd82bcb2b155be6cc4f9 | Shell | smadivad/gpjava | /concourse/scripts/pljava_gpdb_test.sh | UTF-8 | 1,855 | 3.75 | 4 | [] | no_license | #!/bin/bash
set -x
WORKDIR=`pwd`
GPDBBIN=$1
PLJAVABIN=$2
OSVER=$3
GPHDFS=$4
TMPDIR=/tmp/localplccopy
if [ "$OSVER" == "centos5" ]; then
rm -f /usr/bin/python && ln -s /usr/bin/python26 /usr/bin/python
fi
# Put GPDB binaries in place to get pg_config
cp $GPDBBIN/$GPDBBIN.tar.gz /usr/local
pushd /usr/local
tar z... | true |
b19ed539ef57cca8617926290daf0f614c3e23b4 | Shell | Meigyoku-Thmn/renpy-debug-build | /nightly/python.sh | UTF-8 | 637 | 3.203125 | 3 | [] | no_license | #!/bin/bash
set -e
if [ ! -e $VENV/bin ]; then
python2 -m virtualenv $VENV
fi
. $VENV/bin/activate
pip install -r $ROOT/requirements.txt
pushd $BASE/pygame_sdl2
python2 ./fix_virtualenv.py || true
popd
pushd $BASE/pygame_sdl2
python setup.py install_headers
popd
pushd $BASE/renpy
if [ ! -e pygame_sdl2 ]; th... | true |
4ec7b54a15fae9f76b1fb6e7ab58f7b6daa71768 | Shell | Wissman/tools | /nettool/modules/AUTO_START_UPDATE.sh | UTF-8 | 4,458 | 3.515625 | 4 | [] | no_license | #!/bin/sh
### inicio
#
# THIS SCRIPT WAS MADE TO LAUNCH THE UPDATE MODULE
# ON TOOLKIT STARTUP (depending of toolkit_config file settings)
# Develop By: pedr0 Ubuntu [r00t-3xp10it]
# peterubuntu10[at]sourceforge[dot]net
# KALI-DISTRO
#
###
# ----------------------------------------
# variable declarations
# --------... | true |
8936ed53d9597dbd7dcd7ec5696bef5767f82607 | Shell | krlex/DataBase-scripts | /mariadb-backup.sh | UTF-8 | 341 | 3.21875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
backup=$1 ; shift
[[ -z $backup ]] && echo "Usage: $0 <backup-name> [<dbname>...]" && exit 1
databases="$@"
rm -rf /host/$backup
mariabackup --user=root --backup \
--databases="$databases" \
--target-dir=/host/$backup
cd /host/
rm -f $backup.tgz
tar --create --gzip --file=$backup.tgz $ba... | true |
bd36c67d306175d4a92414da8ec4e2f001878ccd | Shell | rhzs/maven-benchmarks | /javac-native/prepare.sh | UTF-8 | 2,984 | 3.09375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | #!/usr/bin/env bash
set -e
mkdir -p tmp/bin
dependencies=(
"https://github.com/oracle/graal/releases/download/vm-1.0.0-rc16/\
graalvm-ce-1.0.0-rc16-linux-amd64.tar.gz"
"https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/\
jdk8u212-b03/OpenJDK8U-jdk_x64_linux_hotspot_8u212b03.tar.gz"
"https://githu... | true |
560064fcfc3fb839e198e28cb4ed5299e75644ca | Shell | furgerf/linux-scripts | /conky/get-wan | UTF-8 | 142 | 3 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
# retrieves the wan address
a=$(wget -qO - icanhazip.com)
if [[ "$a" == "" ]]; then
echo No Address
else
echo "$a"
fi
| true |
1a772be6950f821feb42c49c9213eabbcf243934 | Shell | masawada/dotfiles | /bin/git-af | UTF-8 | 406 | 3.46875 | 3 | [] | no_license | #!/bin/bash
BRANCH=$1
FILE_PATH=$2
[ -v $BRANCH ] && BRANCH=$(git branch -l | grep -Ev '^\*' | awk '{ print $1 }' | peco)
[ -v $BRANCH ] && echo 'branch not found' && exit;
[ -v $FILE_PATH ] && FILE_PATH=$(git ls-files $(git rev-parse --show-toplevel) | peco)
[ -v $FILE_PATH ] && echo 'file_path not found' && exit;
... | true |
b7b3df59999a5abd16496d7eae9fbe191651162c | Shell | bitdog-io/bitdog-hub-installer | /install-bitdog.sh | UTF-8 | 46,260 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#-----------------------------------------------------------------------------
#
# install-bitdog.sh
#
# Copyright (c) 2015-2017 Bitdog LLC.
#
# SOFTWARE NOTICE AND LICENSE
#
# This file is part of bitdog-hub.
#
# bitdog-hub is free software: you can redistribute it and/or modify
# it under the terms of th... | true |
0d6b5120197e4b8d90ac6d80d3de3a9a5e2592c4 | Shell | akro89/Myproject | /src/db/oracle_rman/restore.sh | UTF-8 | 757 | 2.78125 | 3 | [] | no_license | #!/bin/sh
NLS_LANG=ENGLISH
export NLS_LANG
NLS_DATE_FORMAT=YYYY-MM-DD:hh24:mi:ss
export NLS_DATE_FORMAT
ORACLE_HOME=$1
RMAN=$ORACLE_HOME/bin/rman
ORACLE_SID=$2
ORACLE_ACCOUNT=$3
ORACLE_PASSWORD=$4
RESTORE_PORT_NUM=$5
RESTORE_TABLESPACE_NAME=$6
RESTORE_UNTIL_TIME=$7
RESTORE_FILELIST_PATH=$8
LOG_PATH=$9
echo "RUN... | true |
edcc222f922c53335fa734d7458aa6c63df5bc06 | Shell | barronh/gadm2ioapi | /scripts/make_ioapi_frac.sh | UTF-8 | 200 | 2.515625 | 3 | [] | no_license | #!/bin/bash
INPATH=ioapi/gadm36_4US1.IOAPI.nc
for lvl in {1..3}
do
OUTPATH=ioapi_frac/gadm36_4US1_12US1.ID_${lvl}.IOAPI.nc
./scripts/make_ioapi_frac.py ${INPATH} ID_${lvl} 12000 ${OUTPATH}
done
| true |
128ba1391e5619a51136a48d4b07dd90b867f24c | Shell | shayanmukhtar/HelloWorld | /Bash/run.sh | UTF-8 | 680 | 2.734375 | 3 | [] | no_license | #!/bin/sh
if [ $# -eq 0 ]
then
echo "No arguments supplied"
fi
echo Running Fibonnaci using OpenMP and generating Task Spawn Graph
cd ~/git/openmp/runtime
make
cd src
sudo cp libomp.so /usr/local/lib
cd ~/Documents/Git/HelloWorld/HelloWorld/OpenMP_Fib/src/
export LD_LIBRARY_PATH=/usr/local/lib
export KMP_A_DEBU... | true |
7715cbb4511c94cf40155cc0e07a9afe8223bb7f | Shell | nirendy/compilation_project | /check_diffs_ex3.sh | UTF-8 | 1,106 | 3.328125 | 3 | [] | no_license | #!/bin/bash
mkdir -p temp_out
mkdir -p temp_expected
mkdir -p temp_actual
echo "Running semantic logic..."
printf "\n\nChecking semantic passing results against expected:\n"
echo "---------------------------------"
echo "OK" > temp_out/passing.txt
for path in $(ls examples/ex3/test_cases/passing/*.xml); do
echo "C... | true |
ec51f8f642a388b2aa13961eeb728184c070023c | Shell | TaumuLu/mac-config | /install/rvm.sh | UTF-8 | 651 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
# set -x
set -euo pipefail
# source ./scripts/common.sh
function install_rvm() {
if ! command_exists 'rvm'; then
\curl -sSL https://get.rvm.io | bash -s stable
fi
cyan 'rvm is already installed'
}
# https://gems.ruby-china.com/
function install_gem() {
gem update --system
cyan "ge... | true |
5c9dc0efc469189e5434d7bae073b688fb6bd8bd | Shell | mchchiang/polymer_adsorption | /simulation/src/homopolymer_adsorption_grafted.sh | UTF-8 | 4,631 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# An input script for setting parameters in the LAMMPS config file
# Read in and set parameters
nbeads=$1 # number of beads
e_wall=$2 # wall energy
e_bead=$3 # bead energy
run=$4 # trial number
run_dir=$5 # run directory
# Formatting input arguments
e_wall=$(pyth... | true |
4b066d01d0bba557401f650872adc4401d7d096c | Shell | vqiu/ops | /shell/install/openssh-install.sh | UTF-8 | 2,099 | 3.265625 | 3 | [] | no_license | #!/bin/bash
# Filename: openssh-install.sh
# Auth: shuhui
ZLIB_VER=1.2.8 # Zlib Version
OPENSSL_VER=1.0.2e # Openssl Version
OPENSSH_VER=7.1p2 # Openssh Version
CPU_CORE=$(grep 'processor' /proc/cpui... | true |
c97a763c3b6b5bf68a00769a9538f0f296f2a328 | Shell | 416207298/shell | /final-chpwd/Newclean.sh | UTF-8 | 1,199 | 3.375 | 3 | [] | no_license | #!/bin/bash
# $1---deleteKeySeiralNum, $2--user, $3--IP,4--new_pub_key_num, $5---SPV'sIP
spvRootPwd="62960909"
if [ $# -ne 5 ]; then
echo "Five arguments are needed."
echo 1、deleteKeySeiralNum, 2、user,3、IP,4、new_pub_keyNUM, 5.SPVIp
exit
else
# 删除authorized_keys中oldKey、删除oldKey、删除本地私钥,需先上传slash
spvPath="/h... | true |
925da7312f66488c90518cf0903c28a2107895e3 | Shell | aquasecurity/community-operators | /scripts/ci/check-pr | UTF-8 | 850 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
DIRS=()
GIT_INFO=""
if [[ "$1" == "openshift" ]]; then
DIRS=( "community-operators" )
else
DIRS=( "upstream-community-operators" )
fi
GIT_INFO=master
# Only run CI on changes to certain directories.
IS_TESTABLE=0
if git diff --name-only $GIT_INFO | grep -q '\.yaml'; then
for d in "$... | true |
faaf1fb5ca82df03d24bd41c4c2c75e0f7bed36d | Shell | RanMax/SysProg | /2014-2015/RT2_91/Иванова Екатерина/DZ (5).sh | UTF-8 | 574 | 3.671875 | 4 | [] | no_license | #!/bin/bash
#Задание №5
echo "Enter the path to the archived directory"
read path #Считываем путь до архивируемой директории
echo "Enter the path in which you want to place the created archive"
read dirpath #Считываем путь директории, в которую необходимо поместить архив
D=$(date +%F_%H-%M-%S)
echo "Created archi... | true |
0e401e6f9fcae07534f9a68719a1811a09af215c | Shell | paul-b-manning/epiphany | /core/core/src/scripts/common/functions.sh | UTF-8 | 4,248 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2019 ABB. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | true |
b89013eb1a5632b1499d9a652520adb4069dc3e6 | Shell | alexdevsec/pypi-vuln | /container/inst.sh | UTF-8 | 469 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
export package="${PACKAGE}"
export python_bin="${PYTHON_BIN}"
export output_file="${OUTPUT_FILE}"
export PYTHONUSERBASE=/home/developer
export XDG_CACHE_HOME=/home/developer/c
echo "Installing $package with $python_bin"
if [ "$package" == "none" ] ; then
echo "You need to specify a package to check."
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.