blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
6adaa8b40d2d47cada8b50232fc897f985d128af | 1,185 | #!/usr/bin/env bash
echo ".................................."
echo "...............START..............."
echo ".................................."
from=.env.sample
declare -a List=(
"env"
)
for env in "${List[@]}"
do
to=".$env"
if test -f $to; then
echo "$to file exist. You need t... |
a08177b3d7dddfefdb84cd6b688cba4db35d5b83 | 920 | #!/bin/sh
set -e
umask 0022
do_didiwiki_adduser () {
if ! getent passwd didiwiki >/dev/null; then
adduser --quiet --system --no-create-home --home /var/lib/didiwiki \
--gecos "DidiWiki" --group didiwiki
fi
chown -R didiwiki:didiwiki /var/lib/didiwiki
}
do_didiwiki_css () {
ln -s /et... |
ab7809289cf1efdf435185cd97dc226ab2837a3b | 293 | #!/bin/sh -e
FILE=$AUTOPKGTEST_TMP/aesfile
echo test | aespasswd -n -f $FILE autotest 2>&1
grep autotest $FILE
echo User added: OK
echo test2 | aespasswd -f $FILE autotest 2>&1
grep autotest $FILE
echo User modified: OK
aespasswd -f $FILE -d autotest
test ! -s $FILE
echo User deleted: OK
|
2fa29ca1ef91f0a538563a48d77c948c1a2d2a57 | 420 | #!/bin/bash
# Add local user
# Either use the LOCAL_USER_ID if passed in at runtime or fallback
#
# source: https://denibertovic.com/posts/handling-permissions-with-docker-volumes
USER_ID=${LOCAL_USER_ID:-9001}
USER_NAME=dockeruser
echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash --uid $USER_ID --non-u... |
25e2983c88bdc79a1fdb5146b7d8d85540376c14 | 27 | /init.sh
cd /jepsen/nebula/ |
9d97526f8ae6f6d169e25aa4db295a84ec56556e | 30 | BLACK=$(tput setaf 0)
# if xyz |
86ff09dcb8b03c714269c495578c726daee1b5a5 | 188 | #!/usr/bin/env bash
if type keychain > /dev/null 2>&1 && [[ $(hostname) = "anonix" ]]
then
eval $(keychain --eval --agents ssh -Q $HOME/.ssh/id_rsa)
fi
export DESKTOP_SESSION=i3
startx
|
f7f173337a17a5d5e064c89fde8def63c281aee0 | 97 | #!/bin/sh
mac "$1wav" "$1ape" -c2000
cp "$1cue" "$1ape.cue"
sed -i 's/.wav/.ape/g' "$1ape.cue"
|
8a0f33fd779710137163385a06fb49a769658a65 | 179 | #echo "Got query : \n`cat $1`\n"
curl -ss -H 'Content-Type: application/json' -XPOST 'vinyas:9200/streamingevents*/_search?pretty' -d @$1 -o temp
#cat tempB | jq .hits.total
|
45fc3ffc799ca2e2fbbfcf408e9ce23bff107c0a | 4,071 | # Returns whether the given command is executable/aliased
_has() {
return $(command -v "$1" >/dev/null 2>&1)
}
# fzf + rg/ag
if _has fzf; then
if _has fd; then
export FZF_DEFAULT_COMMAND="fd --type f --type l --follow --hidden --exclude .git"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
_fzf_compge... |
da77532035aab6da1e67c6254572aea51fa21232 | 1,467 | # -*- mode: sh -*-
# vim: set filetype=sh :
# get_perm [-u] NAME
function get_perm() {
local scope regpath
local arg
local dest src value
# set -- `getopt -aluser,system,help,version -- $*`
scope=machine
for arg; do
case $arg in
-u|--user)
shift; scope=user;;
... |
5d77e3f7840fd67707c53909ade79018b79081e0 | 117 | #!/bin/bash
for i in `seq 1 100`
do
echo "Please enter command"
read cmd
echo "Exuecting..."
eval $cmd
done
|
f56831c9de375df69d25c9176dea2f1bb473ceba | 500 | #!/bin/bash
cd /tmp
# Compress function with pigz for faster compression
com ()
{
tar --use-compress-program="pigz -k -$2 " -cf $1.tar.gz $1
}
time com ccache 1 # Compression level 1, its enough
if [ $with_gapps == "true" ];then # This is me testing out whether ccache's of vanilla and gapps build vary in bui... |
9f339373d1efa459716a22cf15ba5275eede9828 | 242 | #Run this script if there was a reboot in the process of setting up Gentoo
CHROOT_DIR="/diskless/10.0.1.91"; echo CHROOT_DIR is $CHROOT_DIR;
mount -t proc none $CHROOT_DIR/proc
mount -o bind /dev $CHROOT_DIR/dev
chroot $CHROOT_DIR /bin/bash
|
bf4480ccfec806066c5d260c40f8a7b186053151 | 95 | mvn clean package -DskipTests && docker build -t kiekkohamsteri-backend . && docker compose up
|
a4d1d8dccdc2ae85287c77b8b519cc446d55046f | 108 | export SFDX_ORG_CREATE_ARGS="-e prototype"
cci org scratch dev scratch
cci flow run dev_org --org scratch
|
a3d2019c50e8a85b8bb9c826737251a650a547e0 | 81 | #!/bin/bash
time $GRAALVM_HOME/bin/java -XX:-UseJVMCICompiler TopTen large.txt
|
46f0e0ffc4ece946732d7ca9f3f07bea8dfc38cd | 1,397 | #!/bin/bash
if [[ `ifconfig -a | grep "venet0"` ]]
then
cekvirt='OpenVZ'
elif [[ `ifconfig -a | grep "venet0:0"` ]]
then
cekvirt='OpenVZ'
elif [[ `ifconfig -a | grep "venet0:0-00"` ]]
then
cekvirt='OpenVZ'
elif [[ `ifconfig -a | grep "venet0-00"` ]]
then
cekvirt='OpenVZ'
elif [[ `ifconfig -a | grep "eth0"` ]]
then
cekv... |
bbe99ec7d299b0503beb3483648b945fa2717ffe | 920 | #!/bin/bash
apt update
apt install git
pip3 install -y psutil requests google-auth google-cloud google-api-python-client pyyaml \
google-cloud google-cloud-bigquery mock absl-py wheel tfds-nightly scikit-learn
python3 lib/benchmark.py --git_repos="https://github.com/tensorflow/models.git" \
... |
66c3936e2626ccca3b42c54fac8849d2711a34ba | 1,629 | #!/bin/bash
DETOX_ROOT_DIR=./build/detox
grep -v '^ *#' < .python-version | while IFS= read -r PYENV_VERSION
do
# echo PYENV_VERSION="$PYENV_VERSION"
# echo SHELL="$SHELL"
# echo $PATH
# pyenv install -sv "${PYENV_VERSION}"
# https://github.com/pyenv/pyenv/issues/1819#issuecomment-780803524
# ... |
6c7a1c8df6d14f8cebf4a83811b727c7f8c0f7f5 | 178 | PORT=3000
SENDGRID_API_KEY=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
MONGODB_URL=mongodb://127.0.0.1:27017/bug-monitoring-api
JWT_SECRET=nodecourse
|
bdee9cde5a457015c28fb2c56dbd021b96203873 | 20,851 | #python runPDFandScale.py --runOnTopNanoAOD --cores 1 --combine --year 2018 --controlRegion misDY3 --selectEstimator TTG_NLO_gen #SPLIT57
#python runPDFandScale.py --runOnTopNanoAOD --cores 1 --combine --year 2018 --controlRegion misDY3 --selectEstimator TTG_NLO_misID #SPLIT57
#python runPDFandScale.py --runOnTopNanoAO... |
ff2bb946e662284e94f8c2392bd3434b372d287a | 70 | directory=generator
source commands.sh
cmd=$clean
source execution.sh
|
8f0f5188851414fcf5cd0a314a6452475f836da4 | 790 | #!/usr/bin/zsh
# Check if command is installed
isInstalled() {
[[ -x `command -v $1` ]]
}
# Green background echo
green() {
echo -e "\n\x1B[1;32m$1\x1B[0m\n"
}
# Yellow background echo
info() {
echo -e "\n\x1B[1;33m$1\x1B[0m\n"
}
# Error echo
error() {
echo -e "\n\x1B[1;5;31m$1\x1B[0m\n" 1>&2
[[ $2 -gt 0 ... |
0319814240a7864dbafed4a04c30f0fd03f3dd33 | 50 | .env
/index.js
Secretkey=asdfasfasdfajsdkhfkjashdf |
b611a923d97c928243ae111134fc34ad383caa9b | 595 | #!/bin/bash
# Correct path
cd "$(dirname "$0")"
BASE_DIR=$PWD
BASE_PROJECT=$(dirname "$BASE_DIR")
# Load common
source ${BASE_DIR}/common.sh
info "Loading common"
# Check needed
if [ "$(is_install mvn)" == "1" ]
then
error "Please install maven to continue"
exit 1
fi
if [ "$(is_install docker)" == "1" ]
then
e... |
84b61870684586b20cf94ae563103d6d5aa52994 | 198 | #!/bin/bash
# retrieve all lines that end in IP http://192.168.5.162/ and wtire them to a file called
# 162attempts.txt
cat sampledata.txt | grep 'http://192.168.5.162/$' > 162attempts.txt
exit 0 |
c2c7ddb71a29b3cf6776d42aff9dc0872086358d | 59 | mvn clean package assembly:assembly -Dmaven.test.skip=true
|
085f6b35e6999f9ddf838f324067398d28411684 | 2,834 | # a ripoff of fino.zsh-theme, sorry
# I made this to help me with my Latex PHD thesis, it shows how my working directory differs from remote repository
function prompt_char {
git branch >/dev/null 2>/dev/null && echo "%{$FG[100]%}╄╅┭" && return
echo '┧'
}
#tex file without extension
local project_file="tese_main"
... |
1405150e7d2084255d98f6bd107bd9c03bcaaef7 | 18,255 | ## must change directories towards end; not set up like other scripts
ROOT_DIR=./
INSITOME_DATA_DIR=00_data/insitomedata/
QC_DIR=${ROOT_DIR}01_QC/ancientDNA_qc/
PHASE_DIR=00_data/ancientDNA_impute/phased/
IMPUTE_DIR=00_data/ancientDNA_impute/imputeresults/
ALIGNMENTS_DIR=00_data/ancientDNA_impute/alignments/
# exec... |
200b4762eb7b659328fb2f88fe9b897376e2787d | 667 | if [[ $OSTYPE == darwin* ]]; then
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export HOMEBREW_NO_ANALYTICS=1
manpath=(/usr/local/share/man /usr/share/man "$manpath[@]")
for pkg in coreutils diffutils findutils gawk gnu-sed gnu-tar grep; do
path=(/usr/local/opt/"${pkg}"/libexec/gnubin ... |
6819c9cfccb56d7280821da0d1ec95ee1d0b71c1 | 203 | count=0
echo "enter the number"
read n
for (( i=1;i<=n;i++))
do
if [ `expr $n % $i` -eq 0 ]
then
((count++))
fi
done
if [ $count -eq 2 ]
then
echo "its a prime number"
else
echo "not prime"
fi
|
083e429879373a5c1affafb1c44d0940c880805e | 222 | #!/bin/bash
clear
echo "Exporting the dictionary database without data"
mysqldump -P 3360 --protocol=tcp -uroot -psecret --no-data --single-transaction --skip-lock-tables --databases dictionary > 01_export_no_data.sql
|
d541b34a2593e57469c600a7992049b879905727 | 1,353 | #!/usr/bin/perl --
use strict;
use Config::Simple;
use File::Spec;
use LWP::UserAgent;
use JSON;
my ($res, $ua, $cfg);
my $home_path = File::Spec->rel2abs();
$home_path =~ s/__FILE__//g;
my $prog_path = "$home_path";
$cfg = new Config::Simple("$prog_path/radiko.ini")->vars();
my $temp_path = "share/temp";
my $cook... |
2d854e91f87358772b21cebde43156c07f48fb77 | 92 | #!/bin/bash
ssh web@85.143.223.101 'cd /home/web/www/td-deploybot/ && npm ci && npm start'
|
22a99cb9fa266f1fbf0b6c67c45e6d0609753662 | 1,047 | #!/bin/bash
#gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=640, height=480, framerate=30/1 ! videorate ! videoconvert ! queue ! x264enc ! video/x-h264, width=640, height=480, target-bitrate=8000000, control-rate=variable ! queue ! filesink location=cap.h264
#gst-launch-1.0 v4l2src device=/dev/video0 ... |
cebb2e5481803ff79da7f5c032cd744314fb9d0e | 2,619 | #!/usr/bin/env sh
#
# webdown -- static website generator from markdown sources
# . .
# . , _ |_ _| _ . ,._
# \/\/ (/,[_)(_](_) \/\/ [ )
#
# Copyright (C) 2012-2013 Juan M Martínez
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law. You can ... |
178a1e670dcc1d920d7facc2ad5f236bd61918a7 | 578 | #!/usr/bin/env bash
FORCE_LANGUGE=$1
set +x
set -e
echo "===========================================$0 $@"
OUTPUT_DIR=spark-emails-translation
if [[ -d "pst-extract/$OUTPUT_DIR" ]]; then
rm -rf "pst-extract/$OUTPUT_DIR"
fi
spark-submit --master local[*] --driver-memory 8g --files spark/moses_translator.py,spark... |
0220a7282d807688b840a05ade1b5ee0dba5d902 | 6,590 | #!/bin/sh
perl -x $0 "$@"
exit $?
#!/usr/bin/perl
###############################################################################
##
## Illinois Open Source License
## University of Illinois/NCSA
## Open Source License
##
## Copyright (c) 2004, The University of Illin... |
acf5d30eae55d8e351a958b8451fddb86f27b9de | 752 | #!/bin/bash
# This is a bash script I use to convert a word into every possible uppercase and lowercase combination
#
# EXAMPLE USAGE:
# ./generate_all_uppercase_lowercase_combos_for_a_word.sh osbornepro
# osbornepro
# osborneprO
# osbornepRo
# osbornePro
# osbornEpro
# osborNepro
# osboRnepro
# osbOrnepro
# osBornep... |
3c3500f0c7cb0a74a9e4d9b52042c5627d552611 | 651 | #!/bin/bash
#This is a bash script that can be included inside of cron to automatically start downloading files.
#My current recommendation is to create two cron jobs to execute every 30 minutes
#Example 30 * * * * root cd /scriptdirectory/ && /scriptdirectory/vturlwrapper.sh
#Example 00 * * * * root cd /scriptdirector... |
c5ef0e285e4ca82d2c49365c8ba23c87a1a03c29 | 55 | #!/bin/bash
docker-compose --env-file .env.prod up -d
|
0a3a0c9082d9f8e7386e2c2a739283d7a44a09ef | 86 | #!/usr/bin/bash
gem install zentest rspec rspec-autotest rake-compiler rmagick
rspec
|
06e0d285dbf74114d796f95b1aae013931b5f858 | 79 | GITHUB_TOKEN=PAT_HERE
GITHUB_ENTERPRISE=ENTERPRISE_NAME_HERE
HISTORY_IN_DAYS=10 |
dddfd1f25030f3d78c7e042feddbb3d49a2d6f9f | 1,648 | # How to use this script:
# source /scripts/create_service.sh <service-name> <image-tag> <environment> <db-uri>
# source /scripts/create_service.sh aws-qe-deploy praqma/questionaire-engine:0.1.0 test "mongodb://praqmadb:..."
# ATTENTION: the grep command requires the -P or -G... |
8d4971a4ec9d834b4499b514a9203fc4db3d59a7 | 2,054 | #!/bin/bash -e
# install some lab extensions
# enable nbgitpuller URLs
jupyter serverextension enable nbgitpuller --sys-prefix
# enable nbgrader extensions
jupyter nbextension install --symlink --sys-prefix --py nbgrader
jupyter nbextension enable --sys-prefix --py nbgrader
jupyter serverextension enable --sys-prefi... |
5caaafcb318956d1faad4278435686cd17aa489d | 78 | DATABASE_URL=postgres://*******:*****@******:****/*******
SUPER_SECRET_KEY=dev |
73b5c62dd5ba530f3dada89913c9404c219cad4b | 91 | #!/bin/bash
echo "[Hint] Password in 'basics'"
docker run -it devopsdockeruh/pull_exercise |
04ec14cd4d14b4f69d8a6661b729744fdefc9120 | 126 | #!/bin/sh
if [ ! -d bin/data ]; then
cp -R data bin/
fi
if [ ! -f bin/settings.ini ]; then
cp misc/settings.ini bin/
fi
|
4d5305169443ae8ff1d8954df8ac2383b63475cf | 959 | #!/usr/bin/env bash
input=$*
input=${input//[[:blank:]]/}
if ! [[ "$input" =~ ^[0-9]{2,}$ ]]; then
echo 'false'
exit 0
fi
num=${input// /}
declare -a arr=()
for ((i=0; i<${#num}; i++)); do
if [ $(((i+1)%2)) -ne 0 ]; then
# echo ${num:$i:1}
dup=$((${num:$i:1}*2))
[ $dup -gt 9 ] && dup=$((dup-9))
a... |
8e95da502705a0a89e43a38000203a6d78dfdd99 | 885 | #!/usr/bin/env bash
#------------------------------------------------------------
#
# Ciro D. Santilli
#
# finds scripts based on extension and shebangs
# and returns their paths null separated
#
# shebangs can be either of type #!/bin/XXX or #!/bin/env/
#
# currently supported script types types:
#
# bash : 'sh', ... |
2b762ebbc1edf73cac4dbd7abb98f63e490b8103 | 283 | set_env(){
file_points=/tmp/count
}
run(){
if [ -f $file_points ];then
num=`cat $file_points`
let num+=1 || { let num=0; }
else
let num=0
fi
echo $num > $file_points
xcowsay "$num Rounds !" &
}
#reset1 &
steps(){
set_env
run
}
steps
|
fe67b0cf3448d6261807f3678ce7998278e54437 | 116 | #!/bin/bash
pushd $home/HT
git pull
cp docker-compose.yml /opt/
docker-compose -f /opt/docker-compose.yml up -d
popd |
8aa40b145dd182424175fc5ac10f7de259faabd2 | 18 | echo "start file"
|
5b93bf2205b1ee6e826df30c371edd8f4f85399e | 22 | ant -f ../build.xml $@ |
b5406153f2b6f73732282a1f94c0c39f4bb9f337 | 238 | #!/bin/bash
set -euxo pipefail
if [[ -z $NAMESPACE ]]; then
echo "Environment variable NAMESPACE is required."
echo "Example: NAMESPACE=test ./install.sh"
exit 1
fi
echo "INSTALLING BEE NODES"
helmsman -apply -f bee.yaml
|
83b0bac6f1309ab42fbdf78e8a89d791b0071f04 | 533 | #!/bin/sh
#SBATCH --nodes= 2 #Node allocation
#SBATCH --cpus-per-task=48 #Number of thread allocation
#SBATCH --priority=TOP
#SBATCH --partition=b_fat #Partition Allocation More details about the partion available at ara-wiki.rz.uni-jena.de/Hauptseite
#SBATCH --time=200:00:00 #Maximum amount of running time
#SBATCH --n... |
3de19cb2ec3d4536dbecd4c91f9ee2b832bf7af5 | 929 | unset AWS_SESSION_TOKEN
if [ $ENVIRONMENT == "prod" ]
then
temp_role=$(aws sts assume-role \
--role-arn "arn:aws:iam::119184259962:role/PipelineRole" \
--role-session-name "circleci-prod")
elif [ $ENVIRONMENT == "test" ]
then
temp_role=$(aws sts assume-role \
... |
c9a11197488cd421e62521cf5516992361c37bc5 | 531 | #!/bin/sh
NUM_NODES=$1
if [ -z "$NUM_NODES" ]; then
echo "usage teardown_docker_cluster.sh NumNodes"
echo " NumNodes the number of nodes started when using start_docker_cluster.sh"
exit 1
fi
echo "Stop opscenter (if available)"
docker stop opscenter > /dev/null 2>&1
echo "Remove opscenter (if available)"
doc... |
42aea3d61519685917e7e60bfd1d024b5506236f | 1,661 | # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# bu... |
41cb99f77945b4b058b43d9c5ec455f6e814c4de | 493 | #!/usr/bin/env bash
rm -r /Users/naman/Documents/big-data-pipeline/applications/learning-spark/output/wordcounts
/Users/naman/Documents/spark/spark-2.1.0-bin-hadoop2.7/bin/spark-submit \
--class com.learning.spark.WordCount \
/Users/naman/Documents/big-data-pipeline/applications/learning-spark/target/learning-spark-1... |
e1ed7cc509e1f7bffaf76b23991d97cb785df5f5 | 55 | API_HOST = url to API (Ex.: http://localhost:3001/api/) |
c8a1e1766418cba8c128463aea899ac2deb11f20 | 226 | # List alert rules
RESOURCE_GROUP="myresourcegroup"
az resource show --id /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/microsoft.alertsManagement/smartDetectorAlertRules --api-version 2019-06-01 |
27020342612f6e850ddcd167ebffffcbeee0d385 | 4,887 | #!/bin/bash
function print_usage() {
cat <<EOF
https://github.com/Azure/azure-quickstart-templates/tree/master/301-jenkins-k8s-blue-green
Command
$0
Arguments
--app_id|-ai [Required] : Service principal app id used to dynamically manage resource in your subscription
--app_key|-ak ... |
f0282d1042177312d70846248dc35464fe561fd2 | 836 | #!/bin/sh
# Uses state on Jeff's machine, not really scaleable
deploy_new_vm() {
gcloud compute instances create "ptrack" \
--image-project=arch-linux-gce \
--image-family=arch \
--machine-type=e2-small \
--zone=us-east1-b \
--network-tier=STANDARD \
--boot-disk-size=32GB \
--hostname="p... |
690566595af028e2a46db51ca9885637e258d3bb | 3,046 | #!/bin/bash
if [ -z "$1" ]; then
echo usage: $0 single_directory_of_raw_reads genome_build
exit
fi
WD=$1
Build=$2
echo Genome Build Set to: $Build
echo Processing files in : $WD
cd $WD || { echo ERROR: could not find $WD , exiting... ; exit 1; }
mkdir raw || { echo 'ERROR: could not make raw directory, exiting... |
c23bee6e434f868b493023cc8e41a151a6a6d55a | 340 | #!/usr/bin/env bash
set -e
set -o pipefail
mapbox_time "checkout_mason" \
git submodule update --init .mason
mapbox_time "install_xcpretty" \
gem install xcpretty --no-rdoc --no-ri --no-document --quiet
mapbox_time "install_recent_git" \
brew install git
mapbox_time "install_awscli" \
brew install awscli
mkdir -p... |
f5a74c1af51d2e18ba6b2d2b06311e32f23f7880 | 177 | DATABASE_URL= postgres://yvvolgajbbjpnq:b801d07085a10a46e2b0e7f0b48831040e086410da37c9fac33758d93a7bc0c7@ec2-54-163-230-199.compute-1.amazonaws.com:5432/d1bi9sodopekiv?ssl=true
|
a79ae741bc9dc41da0bb10a2cc9d10c41b0a4160 | 513 | #!/bin/bash
#
# Copyright (c) 2019. TIBCO Software Inc.
# This file is subject to the license terms contained in the license file that is distributed with this file.
#
if [[ "$9" == "aws" ]]; then
nohup python be_docker_container_discovery_aws.py -t $3 -u $4 -p $5 -py $6 -pi $7 -s $8 > discovery.logs 2>&1 &
eli... |
d6003e7d74c9f5c6f805ec33b781a1aa2e626ff9 | 155 | How to unmodify a modified file
Adding a remote repository
How to set your username and email
Make your log output pretty
How to write a git commit message |
e6f64d07cc6373864c9f481b2c1a6ce93c9fe280 | 1,581 | #!/bin/sh
if [ ! -e /tmp/wifi.preloaded ]; then
/usr/local/share/script/preload.sh
fi
rm -f /tmp/wifi.preloaded
KO=bcmdhd.ko
# BCM will get name by configure.
BCM=bcmdhd
P_FW="firmware_path=/usr/local/${BCM}/fw"
P_NVRAM="nvram_path=/usr/local/${BCM}/nvram.txt"
P_IF="iface_name=wlan"
P_DBG="dhd_msg_level=0x00"
load_... |
79ce876b615e3013b95e106f54e74f87aed8ec97 | 328 | #!/bin/sh
python embed.py \
--experiment_root ./experiments/VeRi/expr1 \
--dataset data/VeRi/VeRi_test.csv \
--filename VeRi_test_50000_embeddings.h5 \
--checkpoint checkpoint-50000 \
--batch_size 16
# --flip_augment \
# --crop_augment five \
# --aggregat... |
95a179de317dc4b9d9eaa19a9210e1f46cad70ab | 116 | #!/bin/bash
set -eux
autoconf
./configure optflags="-O0" debugflags="-g3" --prefix=/ruby/build
make
make install
|
468c762bb476100ecf14577da2162d125c5537d3 | 1,939 | #!/bin/bash
export FLAGS_fraction_of_gpu_memory_to_use=0.5
export FLAGS_eager_delete_tensor_gb=0.0
export FLAGS_fast_eager_deletion_mode=1
train()
{
python train.py \
--train_data ./data/train.tsv \
--test_data ./data/test.tsv \
--model_save_dir ./models \
--validation_steps 2 \
... |
d566826c05d722f7ac0ea9a4cf88000ab2edcf07 | 73 | ./node_modules/.bin/mocha --compilers ts:ts-node/register ./test/test.ts
|
e29cfbb0f5b807cc5bbe7c10761bc7d3bfea49eb | 2,353 | #!/bin/bash
##脚本用于检查172.16.103.203的同步情况 ... |
ade1671e568e88b8c1f229c102cbda65ead80f56 | 716 | #!/usr/bin/env bash
# ##################################################
# Stop_App Script
# Starts the flask application in its pipenv environment
#
version="1.0.0" # Sets version variable
# HISTORY:
#
# * 2020-04-13 - v1.0.0 - Initial creation
#
# ##################################################
# ... |
7f65f3eca03568d68bcad5084ff6e6df57107fa6 | 303 | #!/bin/bash
# Merge *.po AA files and produce finall *.mo file
cd /var/www/s2a/active_agenda/lang/$1/LC_MESSAGES
shopt -s extglob
msgcat --use-first active_agenda.base.$1.po !(active_agenda|active_agenda.base.*).po | msgattrib --no-fuzzy -o active_agenda.po
msgfmt active_agenda.po -o active_agenda.mo |
714181c5e522ba2edc8490468e9bf77957700b6b | 368 | #!/bin/bash
echo "Create topomap symlinks."
FILES="willow.tmap.outlet_overrides.xml willow.tmap.door_overrides.xml willow.tmap"
for file in $FILES ; do
rm -f `rospack find trex_pr2`/test/$file
echo "ln -s `rospack find willow_maps`/$file `rospack find trex_pr2`/test/$file"
ln -s `rospack find willow_maps... |
c70000028368cb5b9e683c4d7e0cff6c8a1eb7da | 46 | #!/bin/sh
#python run_download.py
exec "$@"
|
f048c095b52d4d140ac957a774717e8678bb127c | 460 | pkgname=2gis-kurgan
pkgver=104
pkgrel=1
pkgdesc="Map of Kurgan for 2GIS, November 2014"
arch=('i686' 'x86_64')
url="http://info.2gis.ru/kurgan/products/download#linux"
license=('custom')
depends=('2gis>=3.14.9.0')
source=("http://download.2gis.com/arhives/2GISData_Kurgan-104.orig.zip")
md5sums=('008ac88930deb4dca8e8954... |
3735540b21771a256dbb9299f73cf59d12d85797 | 114 | #!/usr/bin/env bash
#a bash script that stops 4-to_infinity_and_beyond process
pkill -f "4-to_infinity_and_beyond" |
ce0269a6ae3f8f84cc849f5e7c22ab755def511d | 1,185 | #!/bin/bash
yum install -y java-1.8.0-openjdk
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
cat >>/etc/yum.repos.d/elk.repo<<EOF
[ELK-6.x]
name=ELK repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
e... |
0c74ef4ce9fe3360e1edd2c9c9158fb255d8eec8 | 111 | /opt/jdk1.6.0_32/bin/jstatd -J-Djava.security.policy=/opt/jstatd.java.policy -J-Djava.rmi.server.logCalls=true |
27f97251e6bd75d17fa8d5543293ce8c40505b41 | 755 | # Maintainer: Shane "SajeOne" Brown <contact@shane-brown.ca>
pkgname=python-spotipy-git
_pkgname=spotipy
pkgver=r276.7499d8e
pkgrel=2
pkgdesc='Simple client for the Spotify Web API'
arch=('any')
url="https://github.com/plamere/spotipy"
license=('MIT')
provides=('python-spotipy')
depends=('python' 'python-requests>=1.0'... |
e3c3bb289b56a556de7555f6f980adbd406fe3df | 137 | #!/bin/bash
if [ -f ~/.env/sphinx/bin/activate ]; then
. ~/.env/sphinx/bin/activate
fi
python get-examples.py
make html
make latexpdf
|
1dcec58a6a8f71de5dc8f6198adc5b6ab128fdac | 2,042 | #!/bin/bash
PROMPT="127.0.0.1:9851> "
exec_tile38_cli(){
echo -n "$PROMPT"
echo "$@"
echo "$@" | tile38-cli
}
export -f exec_tile38_cli
commands-1(){
cat <<EOF | awk 'gsub(/#.*/,"")>=0'
DROP location
DROP lunch
#
GET location me POINT 35.6581 139.6975
#
SET lunch ramen:A POINT 35.6586 139.6982
SET lunch g... |
27f83e67580840f9ff8836f1c98f0c9b625092eb | 869 | # Packager: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
pkgname=xmppjs-hg
pkgver=19
pkgrel=1
pkgdesc='xmpp.js is a server-side XMPP library for Node.js'
arch=('i686' 'x86_64')
provides=('xmppjs')
conflicts=('xmppjs')
url='http://xmppjs.prosody.im/'
license='MIT'
depends=('nodejs' 'node-xml')
makedepends=('mercurial')
... |
06768a0f855a6108768976097216cd74800fe11b | 192 | #!/bin/sh
dir=~/Recon/$1
cat $dir/$1_probed | while read line ; do echo "QUIT"|openssl s_client -connect $line:443 2>&1|grep 'server extension "heartbeat" (id=15)' || echo $line: safe; done
|
4ae3e4465e34c8dfb64d759c47bf6c40c4fc8227 | 855 | #!/usr/bin/env bash
set -euo pipefail
. "${BASH_SOURCE[0]%/*}/../../../helper/run-in-nix-env" "git gnupg" "$@"
TMPDIR=$(mktemp -d -p /tmp)
trap 'rm -rf $TMPDIR' EXIT
cd "$TMPDIR"
echo "Fetching latest release"
git clone https://github.com/simplexum/python-bitcointx 2> /dev/null
cd python-bitcointx
latest=python-bitco... |
f8d84b0dfebe3936c51931c92111eafa5f84d62a | 158 | #!/usr/bin/env bash
set -ex
go clean -cache
git clean -xdf
cd src
./make.bash
cd ..
for i in {1..50}
do
./bin/go run ../git-bisect-run/crash2.go
done
|
7b145d116dd5ddc4648270215663e2a174417e13 | 3,594 | #!/bin/bash
# This bash file install apache on debian
# Parameter 1 hostname
wm_hostname=$1
wm_ipaddr=`ip addr show eth0 | grep global`
environ=`env`
echo "Environment before installation: $environ"
echo "Installation script start : $(date)"
echo "Apache Installation: $(date)"
echo "##### wm_hostname: $wm_hostname... |
302779748726c5fea6f00dd49a87a913e7073067 | 4,886 | #!/bin/bash
#################################################
# Title: ALSA.sh #
# Date: 2018-02-10 #
# Version: 1.1 #
# Author: baho-utot@columbus.rr.com #
# Options: #
#################################################
set -o errexit # exit if error...insurance ;)
set -o nounset # exit... |
4153f38123eab43f4a281a8eab82dc3174a10e4e | 1,299 | #!/bin/bash
#
# Build script for GNU/Linux
# Usage: Run from Moai SDK's root directory:
#
# build-linux.sh
#
# You can change the CMake options using -DOPTION=VALUE
# Check moai-dev/cmake/CMakeLists.txt for all the available options.
#
set -e
if [ -z $1 ]; then
libprefix=`dirname $0`/../lib/linux
else
libprefix=... |
1a9a491e139801ababb1ee77b1c0804ff442d411 | 1,331 | #!/bin/sh
export OMP_NUM_THREADS=8
echo "Starting run at: `date`"
for isx in {0..35}; do
echo "modelling shot number $isx"
dsx=100
osx=100.0
sx=$(echo $osx+$isx*$dsx | bc)
# shot positions
sfmath output=2 < s_.rsf > zs_$isx.rsf
sfmath output=$sx < s_.rsf > xs_$isx.rsf
sfmath output=1 < s_.rsf... |
d260635b8b24ad1dbba49e228c7482b8d962f483 | 904 | #!/bin/bash
if [ ! -e ~/configuration.done ]; then
echo "*:*:*:rep:$REPL_PW" > ~/.pgpass
chmod 0600 ~/.pgpass
until ping -c 1 -W 1 master
do
echo "Waiting for master to ping..."
sleep 1s
done
rm -rf /var/lib/postgresql/10/main/*
until pg_basebackup -h master -D /var/lib/postgresql/10/main/ -U rep -vP
do
e... |
d81cc2d30758524ce2df31941dfbcc96b7ec9c2e | 124 | tmux send-keys -t ":1.0" clear
tmux send-keys -t ":1.1" clear
tmux send-keys -t ":1.2" clear
tmux send-keys -t ":1.3" clear
|
bbfae5d686eb6457b03a3056ddcbaacc2955abbd | 41 | PORT=
MONGO_CONNECTION_STRING=
API_KEY= |
42c4c8846e6904d8da3531555f42c6c44cd579c3 | 1,046 | #!/bin/bash
dir=$1
policies="versionmat deltamat version"
for policy in ${policies[@]}; do
i=0
queries=$(ls -d $dir/_raw/*.txt)
for query in ${queries[@]}; do
query=$(echo $query | sed 's/\/$//')
file=$query/$policy-
pol=$(echo $policy | sed "s/versionmat/vm/" | sed "s/deltamat/dm... |
fdcea868eda329487c5ed84f9a46c92dbef0ee63 | 525 |
########### ADD GIT BRANCH NAME ##########
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
########### Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.