blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
ed310e5a143277f6f17c8dceade9cb248b4bc348 | 320 | #!/bin/sh
# script to setup static links for config files in home directory
rm -f ~/.gitconfig
rm -f ~/.vimrc
ln -s /c/dev/dotfiles/.gitconfig ~/.gitconfig
ln -s /c/dev/dotfiles/.vimrc ~/.vimrc
#load & setup vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
|
fc550d13287b4e04e31937a4ea77b4baccd18f1c | 3,865 | #!/bin/sh
#
# Add ZoL filesystem capabilities to an initrd, usually for a native ZFS root.
#
# This hook installs udev rules for ZoL.
PREREQ=""
# These prerequisites are provided by the zfsutils package. The zdb utility is
# not strictly required, but it can be useful at the initramfs recovery prompt.
COPY_EXEC_LIST=... |
05edb35117ef03bdb01b745c1764f4e32ba70530 | 5,440 | #! //bin/bash
mysql -uroot -ps3r3n1t33 -DSRG_checks -N -e "SELECT RIGHT(CheckNumber, 4), DOB, LocationID FROM CheckDetail_Live WHERE CheckDetail_Live.CheckNumber like '100%'" | while read -r CheckNumber DOB LocationID;
do
echo $CheckNumber $DOB $LocationID
mysql -uroot -ps3r3n1t33 -DSRG_px -N -e "UPDATE CardActiv... |
95007167544096325003acf11e87a64ec33e36bc | 123 | #!/bin/sh
# talairach demon server
java -classpath $1/build/classes:. RegionsServer 19000 $1/database.dat $1/database.txt
|
e8b397f6ec783739f6b335ba157351e76f7c0af0 | 1,182 | f_docker_showContainersInNetwork() {
# https://stackoverflow.com/a/43904733
docker network inspect $1 -f "{{json .Containers }}"
}
f_docker_SSHIntoContainer() {
local containerName="$1"
local dockerContainerID="`docker ps -a | grep \"$containerName\" | cut -d ' ' -f 1`";
docker exec -it "$dockerContainerID... |
bfe42635924c69cf0106f3680acc294e8f9eab22 | 490 | #!/bin/sh
md51=$(md5sum /mnt/monitor_data/vm_ip/vm_vm_ip.txt|awk '{print $1}')
sleep 1m
md52=$(md5sum /mnt/monitor_data/vm_ip/vm_vm_ip.txt|awk '{print $1}')
if [ "$md52" != "$md51" ];then
sed -i '26,$d' /etc/ansible/hosts
for i in `cat /mnt/monitor_data/vm_ip/vm_vm_ip.txt `
do
echo -e "$i ansible_user=\"a... |
d725f110cf322d6b22df5a67a993a88e0979ecb9 | 137 | #!bin/bash
echo "Enter a Number : "
read n
fact=1
while [ $n -gt 1 ]
do
fact=$((fact * n))
n=$((n - 1))
done
echo "Factorial: $fact"
|
e64425aa0b326dd045ff0e3be5cf862c168b1e52 | 342 | s=''
for i in $(cut -d: -f1 /etc/passwd)
do
s=$s' -e '$i
done
echo $s
while inotifywait -q -e modify /var/log/auth.log > /dev/null; do
echo "filename is changed"
op=`sudo tail -3 /var/log/auth.log | grep $s -o --color`
echo $op
s='?users='
for j in $op
do
s=$s$j','
done
echo $s
curl localhost:... |
f0e4c6c805d37d077bd45c1f757e9d1e01d6b215 | 277 | CUDA_VISIBLE_DEVICES=$1 python main.py \
--id=road_runner.deploy_whenreset_count_seed_$2 \
--env-type=atari \
--game=road_runner \
--count-base-bonus=0.01 \
--seed=$2 \
--deploy-policy=reset \
--result-dir=/pvc/rainbow_lyf/results \
--checkpoint-interval=100000
|
e65851d8295407b2a0017f65667405e93eea4ef8 | 955 | #/bin/bash
## This script configures any rhel based system to be monitored by Nagios
## Install needed packages
yum install -y gcc glibc glibc-common openssl openssl-devel perl wget
mkdir /tmp/nagios && cd $_
wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.2.1... |
e5e13637434f66216017625a6e8dfaa2de67be59 | 8,956 | #!/bin/bash
# Cloud9 Bootstrap Script
#
# 1. Installs homebrew
# 2. Upgrades to latest AWS CLI
# 3. Upgrades AWS SAM CLI
#
# Usually takes about 8 minutes to complete
set -euxo pipefail
ACCOUNT_ID=$(aws sts get-caller-identity --query 'Account' --output text)
CURRENT_REGION=$(curl -s http://169.254.169.254/latest/me... |
e0a7e43ac3c74f1f7b34fa71851252c201712e96 | 1,160 | #!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2013:1213
#
# Security announcement date: 2013-09-05 18:58:48 UTC
# Script generation date: 2017-01-01 21:14:50 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - gdm.x86_64:2.16.0-59.el5_9.1
# - gdm-... |
72aea2da115cd27f9e106cab6e511e6594b7466a | 546 | #! /usr/bin/sh
cd $(dirname "$0") # Directorio Raiz
plugins="/usr/share/Natron/Plugins"
vinarender="$(cat /etc/vinarender)/modules/natron"
mkdir -p $plugins
rm -rf $plugins/*
mkdir -p $vinarender
rm -rf $vinarender/*
# copia el core a la carpeta plugins de natron
cp -rf ./core $plugins
cp -rf ./plugins $plugins
cp ... |
cceb2cadc2e36052f3793529b68bec8f390b9cf9 | 136 | g++ -fPIC -shared ../lib/test_so.cpp -std=c++11 -Wall -o ../lib/test_so
g++ ../src/tree.cpp -I../include -std=c++11 -ldl -Wall -c
|
173facbb875ddd81584d00fbccae98e6f767c67a | 8,909 | # download phastCons and liftover chain files
# wget http://hgdownload.soe.ucsc.edu/goldenPath/hg38/phastCons20way/hg38.phastCons20way.bw
# wget http://hgdownload.soe.ucsc.edu/goldenPath/hg38/liftOver/hg38ToMm10.over.chain.gz
## install bwtool
# mkdir tools
# PREFIX=$PWD/tools
# git clone https://github.com/CRG-Barcel... |
0fb0a4cdd18402306b01363f09988a7cd15a2fb0 | 466 | #!/bin/bash
# Clean up
rm profile.* traces.* tauprofile-gray-scott.bp
module list
sockets=`lscpu | grep Socket | awk '{print $NF}'`
cores=`lscpu | grep Core | awk '{print $NF}'`
numranks=`echo "${sockets} * ${cores}" | bc`
mpirun -np ${numranks} \
--oversubscribe \
-mca btl_openib_warn_no_device_params_found 0 \
-m... |
82ef8a50629f0ffdfb9b181686d381f9751e8d26 | 95 | matlab -r -nodesktop "study_id=1; subject_id=74; run('analysis_for_one_subject_SPM.m'); exit"
|
f8023e7b26f15aee46bddf4d8e6d184d59de01ad | 2,243 | #!/usr/bin/env bats
load ../test_helper
export NAMESPACE=test
@test "Create non-replicated volume using driver ($driver)" {
run $prefix2 docker volume create --driver $driver --opt size=10 stress-sync
assert_success
}
@test "Confirm volume is created (volume ls) using driver ($driver)" {
run $prefix2 docker v... |
8fb2dae62efacefd7f214accab2dc02657686199 | 718 | #!/bin/bash
# Escrito por Daniel Mendes e Franklin Moraes.
# Serve para ativar o dhcp na placa de rede designada e modificar o nome do computador.
# Interage com o usuário solicitando o nome da interface de rede.
echo "Qual o nome da sua interface de rede?"
# Efetue a leitura da informação passada pelo usuário.
read ... |
4074c44fcc8b64a62a6348c2fba4086ca222ec20 | 121 | #!
echo "setting up test environment..."
cat /dev/null > $LOGFILE
echo "log file "$LOGFILE
echo "running on "$(uname -a) |
29879fbc85cbe763e68dde9949eaaef92f88299f | 621 | #!/bin/zsh
# include my library helpers for colorized echo and require_brew, etc
source ./scripts/lib.sh
###############################################################################
# Gather info
###############################################################################
bot "testing bot function should be blu... |
2199074d704fc74bcf61156bd9297dc020067edc | 1,755 | perl -lne '@F = split /\t/; print "$F[0]\t$F[1]\t$F[11]" if $F[1] ne "NaN"' june30_pathwayRelAbund_p05_sort_b0.tsv > june30_pathwayRelAbund_p05_sort_b0_signif.tsv
perl -lne '@F = split /\t/; print "$F[0]\t$F[2]\t$F[11]" if $F[2] ne "NaN"' june30_pathwayRelAbund_p05_sort_b1depth.tsv > june30_pathwayRelAbund_p05_sort_b1d... |
cfcac4fc1b76077b62411db5b577d8f06701cb70 | 96 | faas-cli up -f animal-db.yml --label com.openfaas.scale.max=20 --label com.openfaas.scale.min=1
|
50265092bb374b7a183f50c6213f377da8ffe650 | 213 | #!/bin/bash
source ./setup.sh
#n=5
#./tesh.sh &
#pid=$!
#at now + $n minutes <<<"kill -HUP $pid"
#echo "after derp"
# http://stackoverflow.com/questions/4423934/bash-run-a-command-for-n-minutes-then-sighup-it
|
3e2b7e63569ec5d1f2426ff071851f04b1170d34 | 262 | #!/usr/bin/env bash
REPO=$1
ARCH=$(uname -m)
DOCKER="/usr/bin/docker"
source ./$REPO/vars
IMAGE_NAME="bigboards/${REPO}-${ARCH}:${VERSION}"
echo "Logging into the docker hub"
${DOCKER} login
echo "Pushing ${IMAGE_NAME}"
sudo -E ${DOCKER} push ${IMAGE_NAME}
|
c517093e0a6c72d89368b997bbdd3b7f76c0d5c0 | 185 | #!/bin/bash
while true; do
python3 manage.py migrate --no-input
python3 manage.py collectstatic --no-input
python3 manage.py runserver 0.0.0.0:8000
sleep 5s
done |
9f945ecd63e872280044d3ca0013aa8be183213c | 2,217 | #!/bin/bash
# プロジェクト名定義
COMPOSE_PROJECT_NAME="laravel-docker-for-mac"
# コンテナ名定義
NGINX_NAME="${COMPOSE_PROJECT_NAME}-nginx"
APP_NAME="${COMPOSE_PROJECT_NAME}-php"
# 実行コマンド定義
RUN_NGINX="docker exec -it ${NGINX_NAME}"
RUN_APP="docker exec -it ${APP_NAME}"
# コンテナ内のパス定義
REMOTE_LARAVEL_DIR="/opt/laravel"
REMOTE_VENDOR_DI... |
e2c8b07a337d1f79c594ca5288ffbeffe92e0214 | 543 | #!/bin/sh
# This command executes the command in the PFA without interacting with cgroups.
# This command is not intended to be called directly (it's called by pfa_launch)
echo $$ > /sys/kernel/mm/pfa_stat
# Experiments run on core 1. This works best if the kernel cmdline includes
# isolcpus=1
# XXX This is causing a ... |
927899cd56f99664d2b011a8d065bf300705717c | 365 | #!/usr/bin/env bash
COLOR=$1
if [ $COLOR = "blue" ]; then
echo "yes, color is $COLOR and the path to this file `pwd` "
else
echo "The color is not blue"
fi
USER_GUESS=$2
COMPUTER=50
if [ $USER_GUESS -lt $COMPUTER ];then
echo "you are too low"
elif [ $USER_GUESS -gt $COMPUTER ] ;then
echo "you're too h... |
2272c2a3de4116c27e08d3a18e786c4ad196660b | 88 | wget http://data.dmlc.ml/mxnet/models/imagenet/resnet/101-layers/resnet-101-0000.params
|
ee75353033791b140b6bb7e575897d415accf88e | 121 | #!/bin/bash
if [ ! -d ~/.k-log ];
then mkdir -p ~/.k-log/datastore
mkdir -p ~/.k-log/js-ipfs
touch ~/.k-log/config;
fi;
|
ee96a86334f06ef0ef825c1384ca17701d142f44 | 5,612 | #!/bin/bash
if [ $# -ne 1 ]; then
echo "[*] Usage $0 <git url>"
exit;
fi
check_github_api=$(curl -s https://api.github.com/users/ShefWuzi | jq 'select (.message != null) | .message' | grep "API rate limit")
while true;
do
if [[ $check_github_api != "" ]]; then
sleep 10m;
check_github_api=$(curl -s https://api... |
eaeb9c805c7f1d21d5ea8ece94f876baabfde89f | 114 | #!/bin/bash
echo "Free disk space: `df -Ph /home/111/timelapses/ | tail -1 | awk '{print $4}'`" | festival --tts
|
3bb373fa09e74f8006876b8a4d7296a29d32221d | 74 | rsync -cr --progress ./Filter vps:/home/he0119/nginx/typecho/usr/plugins/
|
0beace2f0a4642ef2823e384110a516bd70d55b3 | 380 | #!/usr/bin/env bash
. ~/grepblock/adeptio/adeptioDefaults.sh
parseBlocksInRangeFor=199
chainProvider="https://explorer.adeptio.cc"
getBlockHashMethod="/api/getblockhash?index\="
getBlockwithHashMethod="/api/getblock?hash\="
collectionBlocks=blocks
dataFileBlocks=/tmp/${database}-parsedBlock.json
# Start parsing
s... |
851bde3b59b2d72a2901342d9b2361edbedc8446 | 565 | # shellcheck shell=bash
# Setup defaults for XDG
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"${HOME}/.config"}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-"${HOME}/.cache"}"
export XDG_STATE_HOME="${XDG_STATE_HOME:-"${HOME}/.local/state"}"
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-"${HOME}/.run"}"
export XDG_DATA_HOME=... |
a15f1dfa2c171dc9aec4229f009e8b86bd9cdf3f | 230 | cat << EOF > /etc/yum.repos.d/python-native.repo
[python-native]
name=python-native
baseurl=file:///home/python-native
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/PRM-GPG-KEY-CentOS-7
enabled=1
EOF
createrepo /home/python-native
|
382ad4e49ce2b3b1079ce685d64ce42f01a63b91 | 1,129 | #!/bin/bash
if [ ! "`java -version > /dev/null 2>&1 | grep jdk1.7.0_45`" ] ;then
if [ ! -d /usr/lib/jvm ];then mkdir /usr/lib/jvm;fi
wget -qNO /tmp/jdk-jdk1.7.0_45-linux-x64.tar.gz https://s3.amazonaws.com/backupify-packages/jdk-1.7.0_45-linux-x64.tar.gz
tar -xzf /tmp/jdk-jdk1.7.0_45-linux-x64.tar.gz -C /usr/lib/jv... |
51e0ed726c36f098ee69aeb41d1b88a0cce00115 | 72 | #!/bin/sh
exec yt-dlp "$@" --config-location ~/.config/youtube-dl.conf
|
9ee348ea2823face31c8b3bff23495c73f2e540b | 728 | #!/bin/bash
# Create a symlink for repo based on the jira project name
function make_project_symlink() {
local repo_file="repo.cfg"
if [ ! -f $repo_file ]; then
echo "ERROR: '$repo_file' does NOT exist, exiting..."
return 1
fi
jira_project=$(cat $repo_file | grep jira | cut -d= -f2)
jira_project_low... |
be892dee1ad2483dc8cf0faa95938c20f2fca9d3 | 662 | #!/bin/bash
sleep_time=3
###################################install repo###############################
yum install --downloadonly --downloaddir=./package/epel-release epel-release
DIR_remi_release="package/remi-release"
if [ -f $DIR_remi_release ]; then
echo "File $DIR_remi_release exists."
else
echo "... |
8bcfacc64717ca55150e787ae1b6158a696fa5a0 | 311 | #!/bin/sh
# Buttkicker script
sudo echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
sudo echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
sudo echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
sudo echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
|
f0d427c31673d24b7b91f04ee4f7e68a0fdaef54 | 51 | #!/usr/bin/env sh
gunicorn -c gunicorn.py.ini app
|
9b556fb3740e4741e4cd6219032ab0af077b5b1b | 235 | docker build -t taiga_tensorflow240 .
docker run \
--gpus all \
--name taiga_tensorflow240 \
--ipc=host \
-w /mnt/home/ \
-p 8888:8888 \
-v ~/:/mnt/home/ -v /mnt/data/:/mnt/data/ \
taiga_tensorflow240 bash
|
a60f76ac58094b327688d77a07975b870c3144dc | 143 | #!/usr/bin/env bash
mkdir -p ${ANDROID_HOME}/licenses || true
rm ${ANDROID_HOME}/licenses/* || true
cp ./licenses/* ${ANDROID_HOME}/licenses/
|
403bb4747c7afa309b5d1ec42769b991db822772 | 352 | #!/bin/bash
rm ./garedetri/05csv/*
rm wget.sh;
i=0; while read line;
do
i=$((i+1));
echo 'wget'' -t1 --timeout=8 -P ./garedetri/17wget/'$line' http://www.'$line >> ./wget.sh;
done < ./garedetri/02source/csv.csv;
#ajout de 2 lignes en debut de fichiers
sed -i 1i'\\' ./wget.sh;
sed -i 1i'\#!/bin/bash\' ./wg... |
7ab0d0207fdbbbe98d74b2c5f9dfad5d698d70bf | 151 | mkdir cmake-build-linux
cd cmake-build-linux
cmake -f .. -DWITH_SYSTEM_GLEW=ON -DWITH_SYSTEM_GLUT=ON -DWITH_NATIVE_APP=ON -DWITH_NATIVE_CLIENT=OFF
make |
9102e14b5f1893f91e4099c9f2aa3315596f4998 | 166 | #!/bin/bash --login
#$ -cwd
module load tools/env/proxy2
module load use.own
module load priv_libs/python/ecmwfiapi/1.5.0
./download.py 2>&1 | tee log_download.txt
|
8597caff1cc9f9389c0cd90e5c512d407b37e550 | 278 | #!/bin/bash
# compileall
# Alice O'Herin
# 3/17/2019
# otp_enc_d
gcc -o otp_enc_d otp_enc_d.c otplib.c
# otp_dec_d
gcc -o otp_dec_d otp_dec_d.c otplib.c
# otp_enc
gcc -o otp_enc otp_enc.c otplib.c
# otp_dec
gcc -o otp_dec otp_dec.c otplib.c
# keygen
gcc -o keygen keygen.c |
690d7c6ff41469e845572aface999893bac6641b | 646 | # Contributor: Francesco Piccinno <stack.box@gmail.com>
pkgname=bluesnarfer
pkgver=0.1
pkgrel=2
pkgdesc="Bluesnarfer will download the phonebook of any mobile device vulnerable to bluesnarfing."
url="http://www.alighieri.org/project.html"
groups=('archpwn' 'archpwn-bluetooth')
license=('GPL')
arch=(i686 x86_64)
makede... |
95feb1d39fa08e5de9bf5193683ac39383c53b2c | 879 | #!/bin/bash
# File Name:update.zz
# Description: update function
# @Author: evil
# Created Time:Mon 26 Jar 2015 21:05:06 PM CST
#更新pip
update_pip(){
pip install -U pip
}
#升级gcc到4.8
update_gcc(){
# cat << EOF| sudo tee -a /etc/yum.repos.d/DevToolset.repo
# [DevToolset-2]
# name=RedHat DevToolset v2 $releasever... |
423b15ae2f1773de03b0e6e72c1c7378d2f9c4cf | 253 | #!/bin/bash
for file in *in.txt
do
if [[ "$file" == *in* ]]
then
echo $file
N=$(cat $file | wc -l)
filename=${file/in/fullmatrix}
echo "DL N = $N" > $filename
echo "Data:" >> $filename
cat $file >> $filename
fi
done
|
b42c434c26c20bccca2960a37e84d587286eab4e | 171 | #!/bin/sh
find /var/www/html -exec chown -R nobody:www-data {} \; && find /var/www/html -type f -exec chmod 664 {} \; && find /var/www/html -type d -exec chmod 775 {} \;
|
295a49b692c5dd70b132b0765370c25f6e079122 | 190 | #!/bin/bash
#SBATCH -n 1
#SBATCH -c 64
#SBATCH -p main
#SBATCH --qos main
#SBATCH -e errors.%A
#SBATCH -o output.%A
#SBATCH --mail-user hyemin.han@ua.edu
date
python run_meta_test.py
date
|
149571e2efe2b99994116c850336be3582b553a8 | 3,719 | \#!/bin/sh
if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi
sudo apt update sudo apt upgrade -y
# ------------------------- apps
sudo apt install curl -y sudo apt install git -y git config --global user.email "fedwiiix@gmail.com" git config --global user.name "fred"
# --- snap
sudo apt-get install snap... |
136356c6e3101a4e1fb606ede8cbc1d56a973dc8 | 264 | #!/bin/bash
experiment_name=nosemsup_run
python -m pisa.run 'train' --artifact-path artifacts/$experiment_name --data-path ./data/ --config configs/example_config.yml --overrides '{"save_frequency": 10, "eval_frequency": 10, "log_frequency": 1, "num_workers": 2}'
|
f3233f70db53a70e61a8c90a9cecee4f7713bc09 | 85 | #!/bin/sh
'feh' '--bg-fill' '/home/albert/Pictures/Wallpapers/starry_wallpaper.jpg'
|
a293d091514b3bcb6ada2fe6e51fc24b5c476719 | 1,068 | #!/bin/bash
ORIGIN_FILE=$1
TARGET_FILE=$2
NAMES=""
GEN_FILE="bios_set.nsh"
usage() {
cat <<__EOF
usage: ./${0##*/} ORIGIN_FILE TARGET_FILE
ORIGIN_FILE: usually it's default setting xml file
TARGET_FILE: usually it's our target worked bios xml file
Will generate bios_set.nsh
__EOF
}
[[ -e "$ORIGIN_F... |
c60fb1ee25831aeda132e52e480a96c39494b324 | 409 | #/bin/bash
# Reference: https://apple.stackexchange.com/questions/12371/how-can-i-compress-a-folder-into-multiple-zip-files
zip -r -s 64 archive.zip FolderName/
# 64 is the size of the split (in this case 64Mb).
# Use -s to set the split size and create a split archive.
# The size is given as a number followed... |
16aef38b4210272441067461ec8814526ad5f5f2 | 122 | #! /usr/bin/sh
# nTEST: equilibration
cd equilibration
./main
cat diag.txt | awk '{print $2}' | uscale 10 > diag.out.txt
|
fc1511d323162a0cd37853b8216406ff64ac2d7b | 38 | #!/bin/sh
sudo /etc/init.d/ssh status
|
ef872d4cfddcdc9c126756ef8140b3b4d49032e4 | 100 | #!/bin/sh
echo $1
LANG=C sed -f /srv/www/vhosts/wimtecc.de/r3/Tools/cmd.sed $1 >$1.new
mv $1.new $1
|
1ce1e7a657eff0d44b6aa3cd8b008ce4e29b923e | 355 | sd_part="/dev/block/vold/179:1"
kit=$sd_part/linux
img=$kit/linux.img
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=screen
export HOME=/root
export bin=/system/bin
echo "Installing script ..."
mount -o remount, rw /
busybox mount -o rw,remount /system
cd /sdcard/linux/
cp linux /system/bin
chmod 777 /... |
bf4977baca83412215d2d5f2c877d49c8455b288 | 150 | git add -A;
#git commit -m $(date +%Y%m%d);
#git push -u origin master;
read -p "此次上传:" val
#echo $val
git commit -m $val
git push all --all
|
fc973726a892e23dadffb7fcbe125ddf6d373fcd | 402 | export MNEMONIC="ranch come drum month cereal near promote text two great purpose truly"
export PRIVATEKEY="0xf6336587e022c31e434ef9f02ea68c862f4eae96d17c36c3339727862a492184" # jd test
# export PRIVATEKEY="14470e9aeaf76e44e26a952d845b6443cd40acf888e2222a09d158a79faff7da" # w2b
export ALCHEMY_KEY="9J5gfca6PBI-pSvV_DLw9... |
e1d739070fe3e0cd32bd57b545be0e630bb9626e | 140 | #!/usr/bin/env bash
set -eu
profile=${1:?}; shift
exec google-chrome --user-data-dir="$HOME"/.config/liskin-google-chrome-"$profile" "$@"
|
c90c7ebceea5900fb35bae193491112f8bec55bb | 1,277 | #!/bin/bash
echo -e "\e[34m Install Kafka chart \e[0m"
helm install incubator/kafka -n kafka-hlf --namespace orderer -f ../helm_values/kafka-hlf.yaml
echo -e "\e[34m Please be patient Kafka chart is getting install it migth take upto 10 min\e[0m"
# sleep 500
kubectl wait --for=condition=ready --timeout=800s -n orderer... |
419d4141a3d8b4ac3b0867d01e813b985fc24601 | 3,047 | #!/usr/bin/env bash
# PRUN+Chef: Based on ubuntu: 16.04.1 LTS + SSHD(with authorize_key)
sudo apt-get -y update
## Ruby and dependencies
# Pre-requirements
sudo apt-get install -y git build-essential libsqlite3-dev libssl-dev gawk g++
sudo apt-get install -y libreadline6-dev libyaml-dev sqlite3 autoconf libgdbm-dev... |
2d7164003cd94947815a1055820a5828adcba10c | 99 | PUBLIC_URL=/client
MONGOLAB_URI=mongodb://pipedrive:pipedrive123@ds159274.mlab.com:59274/pipedrive
|
4b33ba578d0f49cce2277dfae0e274ce8dfb7e1e | 539 | #!/bin/bash
# Shell Configs
set -euo pipefail
# Make the prject root out working directory
PROJECT_ROOT=$(pwd)
cd $PROJECT_ROOT
ISTIO_VERSION=1.6.3
ISTIO_DIRECTORY=istio-$ISTIO_VERSION
if [ ! -d "$ISTIO_DIRECTORY" ]; then
### Take action if DIR DOES NOT exists ###
echo "Installing Istio..."
curl -L... |
7f312194fb9ab3d09929a5dcd99513ced06c0bd4 | 1,995 | #!/usr/bin/env bash
curl -X PUT -H 'Content-Type: application/json' -d '[
{
"resourceType": "internal-auth",
"actions": [
... |
f298715e8a0c9aa747bc687325cf7ecabacb4b44 | 3,814 | #!/usr/bin/env bash
# This program and the accompanying materials are made available under the
# terms of the MIT license (X11 license) which accompanies this distribution.
# author: C. Bürger
# BEWARE: This script must be sourced. It expects one variable to be set and sets ten variables:
# in) profiling_configura... |
f8561a7a432156b06b7f2345cfe44a97c03e090a | 211 | #!/bin/bash
zip -r random.zip ./ruby/
aws lambda publish-layer-version --layer-name test_ruby_layer --description "test ruby layer" --license-info "" --zip-file fileb://random.zip --compatible-runtimes ruby2.5 |
9ed87e4e08902803a7007ba56eeae73206692491 | 334 | #! /bin/bash
#curl https://172.21.101.102:443/api/v1/ --cert /etc/kubernetes/ssl/apiserver.pem --key /etc/kubernetes/ssl/apiserver-key.pem --cacert /etc/kubernetes/ssl/ca.pem
curl https://kubernetes:443/api/v1/ --cert /etc/kubernetes/ssl/apiserver.pem --key /etc/kubernetes/ssl/apiserver-key.pem --cacert /etc/kubernete... |
5c3357d7b46fb5ed8624a152d79f14b69e0e6e44 | 167 | #wag.sh: call WAG on an LLVM bitcode file.
wag \
-host_name Capsicum \
-pol_file ../test/benchmarks/gzip/right_amb.txt \
-llvm_entry $1 \
-proj_to_dot
|
9085b109247e2ee340f36fcf86d5c99c3839e14d | 793 | javac -d ./bin -sourcepath ./src src/TestJavaUtilStack.java
java -cp ./bin TestJavaUtilStack
javac -d ./bin -sourcepath ./src src/UseList.java
java -cp ./bin UseList
javac -d ./bin -sourcepath ./src src/TestCompositionStack.java
java -cp ./bin TestCompositionStack
javadoc -docletpath ~/Téléchargements/UmlGraph.jar -... |
f7e215b8478318f0db71db8cba4bbe4084b96f55 | 494 | #!/bin/bash
#
# Copyright (c) 2019 Greg Padiasek
# Distributed under the terms of the the 3-Clause BSD License.
# See the accompanying file LICENSE or the copy at
# https://opensource.org/licenses/BSD-3-Clause
#
get_mnist()
{
if [ ! -f "$1" ]; then
wget "http://yann.lecun.com/exdb/mnist/$1.gz"
gunzip "$1.g... |
61b329a0a666f6723bd865276fdd9a67a5d0f749 | 429 | #!/usr/bin/env bash
set -euf -o pipefail
source common.sh
u -in backup.bin -out backup.zz.tmp dec
u -in backup.zz.tmp -out backup.bin.tmp dmp
c dd if=backup.bin.tmp of=md5sum bs=1 count=16
c dd if=backup.bin.tmp of=backup.tar.tmp bs=1 skip=16
c mkdir -p data
c tar -xf backup.tar.tmp -C data/
c pushd data
u -in ori... |
e06d3ead9da7498bc49fb6e44371a19c80b64fb6 | 1,076 | #! /bin/bash
THIS_DIR=`pwd`
if [ $# -eq 0 ]
then
LAUNCH_ANNEX=true
WITH_CONFIG=0
else
LAUNCH_ANNEX=false
WITH_CONFIG=$1
fi
sudo apt-get install -y gcc lsof
PYTHON_VERSION=$(which python)
if [[ $PYTHON_VERSION == *anaconda/bin/python ]]
then
echo "ANACONDA already installed. Skipping"
else
wget -O lib/anaconda... |
642148bc970ffb938901466e7edbf24edade085e | 670 | #!/bin/bash
CUR_DIR=${BASH_SOURCE%/*}
source $CUR_DIR/config.bash
source $CUR_DIR/include.bash
# download the web installer or find it in pkg folder
INSTALLER=`check_and_download ${VIVADO_URL} ${DOWNLOAD_DIR} ${VIVADO_PKG_NAME}`
# create the target folder
CUR_USER=`whoami`
sudo mkdir -p $VIVADO_INSTALL_PATH
sud... |
05a57d7e9af9c67dff80cb9ce531b142adccd84f | 165 | #!/bin/bash
THREADS=(1 2 4 8 16 32)
MAIN=$1
DIR=$2
for ((i=0;i<${#THREADS[@]};i++))
do
valgrind --tool=massif $MAIN $DIR/config.${THREADS[$i]}.valgrind.txt
done
|
d61e17e055fd6db6ec5bac95a639a793367de4cb | 557 | # Provisioning script for the Kerberos server
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y krb5-kdc krb5-admin-server
touch /var/log/krb5.log
chown vagrant:vagrant /var/log/krb5.log
[ -f /home/vagrant/krb5.conf ] && {
sudo cp /home/vagrant/krb5.conf /etc... |
b95869f1740a7d8b9888aedb8b2009c0fd433e8a | 756 | #!/bin/bash
echo 1..3 # for TAP
set -e
>&2 echo "Testing assembly of v2 branch (used for development)"
if [ -d "amr" ]
then
rm -rf amr
fi
curl -fsSL https://github.com/ncbi/amr/archive/v2.tar.gz | tar xz
cd amr-2
make
./amrfinder -u
./amrfinder --plus -p test_prot.fa -g test_prot.gff -O Escheric... |
a22ff92706e6e9664a74139a6f290c9efde3236c | 1,081 | #!/bin/bash
# constants
quiz_file=ESTqcm.txt
score=0
# Pour vérifier si le fichier de qcm existe
if [ ! -f $quiz_file ]
then
echo "Fichier QCM introuvable !"
exit 1
fi
# game loop (loop over quiz file line/line)
while read -u9 line
do
# analyse du fichier qcm pour la question en cours
... |
83fce712fc2c4a325f75d04471b6e28be093bf13 | 286 | #!/bin/bash
echo "Ce script supprime de vieux conteneur vous aurez peut être besoin de re builder certain conteneur"
docker rm $(docker ps -a -q)
#docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}')
docker rmi $(docker images -q --filter dangling=true)
echo "Done"
|
477a03e4731d39ad9213382dce5fbb6e1d53306a | 39,203 | #!/usr/bin/env bats
# https://github.com/bats-core/bats-core
# load '/d/code/bats-assert/load.bash'
# Import
. ./script/constants.sh
. ./script/strategies.sh
# Constants
OUT_RESULT_FILE=temp/_result.html
SYMBOL=BEI
SYMBOL_NAME="BEI BEIERSDORF AG"
@test "StrategieOverratedStochasticWhenOwn" {
function WriteComdire... |
d917d5dc50e1d60ee020c5373a3553249f9c2758 | 455 | REDDIT_ID=fake_reddit_script_app_id
REDDIT_SECRET=fake_app_secret
REDDIT_USERNAME=fake_username
REDDIT_PASSWORD=fake_user_password
REDDIT_SUB_NAME=europe
REDDIT_MIN_SCORE=100
FB_USER_ID=fake_page_admin_id
FB_PAGE_ID=fake_page_id
FB_APP_ID=fake_facebook_app_id
FB_APP_SECRET=fake_app_secret
FB_REDIRECT_URI=http://localh... |
44fe355901892e372b7066b3512ab72e16e61081 | 5,945 | #!/bin/bash
set -Eeuo pipefail
CONFIG_VARS=(REPO_DIR PW_FILE BACKUP_NAME BACKUP_LIST BORG_CREATE_OPTIONS BORG_PRUNE_OPTIONS PWGEN_CMD BORG_INIT_CMD BORG_PASSCOMMAND REPO_SYNC_COMMAND)
print_info() {
local GREEN='\033[0;32m'
local NC='\033[0m'
local MSG="$1"
if [ -t 1 ]; then
echo -e "${GREEN}[INFO]${NC} ... |
a4191ef3da4f39e5fa2c5fb597098ec9389debbb | 181 | scp -r 10.2.0.14:/www/$1 /www
scp 10.2.0.14:/etc/httpd/sites/$1.conf /etc/httpd/hosts/
chown -R $1:$1 /www/$1/
mysqldump -h10.2.0.14 -uroot -p3175br $1 | mysql -uroot -pTrash447 $1
|
fffbfc1b7c03d132a6d71b7983896452641283e5 | 2,088 | #!/usr/bin/env bash
create_test_symlinks.symlinks.init() {
create_test_symlinks.symlinks.create() {
local __test_dir="$1"
local __component="$2"
local __feature_length="${#__features[@]}"
logger.beginTask --message \
"Creating Symlinks"
logger.step --message \... |
68a08ebf5410de32526e606b6d5608e38e9e9a24 | 924 | #! /bin/bash
MIRROR_REGISTRY_DNS=$1
AUTH_FILE="./pull-secret.json"
#Build the catalog for redhat-operators
echo "****************************************"
echo "Build the catalog for redhat-operators"
echo "****************************************"
oc adm catalog build --appregistry-org redhat-operators \
--from=re... |
e3092335236e124aeb770516ec764da03682aef3 | 1,371 | #!/bin/bash
#
# LICENSE
# -------
#
# Copyright (C) 2018 Authlete, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... |
664b38e5ea9c5397d8a9af03b75d8bd4c899886e | 60 | #!/bin/bash
socat TCP-L:8099,fork UNIX:/var/run/docker.sock
|
41ebf3e1670ad11ddb347b6cd35df4a858a4e2b9 | 272 | #!/bin/ksh
aws dynamodb create-table \
--table-name ProductCatalog \
--attribute-definitions \
AttributeName=Id,AttributeType=N \
--key-schema AttributeName=Id,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=5
|
aeae9cac1e1c64d8017d8076513cfdee0d3dd21e | 854 | #!/bin/bash
out_list=""
while read packet
do
while read masks
do
temp_list=""
#Trimming spaces and comments
masks=`echo "$masks" | tr -d ' ' | sed -e 's/#.*//'`
if [[ "$masks" == "" ]]; then
continue
fi
#create array per ','.
readarray -d , -t rule_masks <<< "$masks"
#for every filter insert... |
515c9567375ad0f04b93a9daa16e222b894fb52a | 49 | #!/bin/bash
ed2k-lin &> ../zero-log/ed2k-lin.log
|
64226883605c55752ec55c4110a3253f353b4cf1 | 2,259 | . vars/settings.sh
# Old Extensions, removed for various reasons
cat > composer.json <<- _EOF_
{
"name": "Klean/CI Deployer",
"description": "first iteration of CI deployer files",
"authors": [
{"name": "Kasper Hansen", "email": "Kasper@klean.dk"}
],
"repositories": {
"installer-ma... |
1156ad31e9bb99b279a17a071151bafb9d8bde9e | 1,534 | #!/usr/bin/env bashio
CLIENT_ID=$(bashio::config 'client_id')
CLIENT_SECRET=$(bashio::config 'client_secret')
SUBSCRIPTION_KEY=$(bashio::config 'subscription_key')
DOMAIN=$(bashio::config 'domain')
HAIP=$(bashio::config 'haip')
MQTT_BROKER=$(bashio::config 'mqtt_broker')
MQTT_PORT=$(bashio::config 'mqtt_port')
MQTT_US... |
050193e864e5565cae811d328848778d1adbfdbf | 3,418 | #compdef porg
# The MIT License (MIT)
#
# Copyright (c) 2020 Shohei YOSHIDA
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... |
eedfa1885f5c6f635329872e96213f4638027a8e | 877 | pkgname="perl-file-mmagic"
pkgver="1.27"
pkgrel=1
pkgdesc="Guess file type"
arch=(any)
license=('PerlArtistic')
url="http://search.cpan.org/dist/File-MMagic"
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/K/KN/KNOK/File-MMagic-${pkgver}.tar.gz")
md5sums=('4ffb13b6587888e6e455c2298... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.