blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
a36ee1e686c3f9aa71be964fdb57082b2e05fdb9 | 586 | #!/usr/bin/env bash
if [[ "$1" == "-h" || "$1" == "--help" ]]; then cat <<HELP
Get WiFi SSID
http://benalman.com/
Usage: $(basename "$0")
If an SSID is specified and it is the current WiFi network's SSID, echo it,
otherwise echo nothing.
Copyright (c) 2012 "Cowboy" Ben Alman
Licensed under the MIT license.
http://b... |
013bdf0bd4e65b7f14f165cf2e84f798b92e5f7f | 1,632 | #!/bin/sh
activexcode=/Applications/Xcode.app
xcode5=~/tools/Xcode502.app
xcode6=~/tools/Xcode640.app
xcode7=~/tools/Xcode710.app
export current_xcode_version=`xcodebuild -version | grep "Xcode"`
if grep "Xcode 5" <<< "$current_xcode_version"
then
echo Current version is Xcode 5
export current_xcode_version=5... |
c546d1f06a7ac9bb90728bdc65afb2f879a723f3 | 3,154 | #!/bin/bash -x
# write to file
write_to_file()
{
curl "http://localhost/~bram/github.com/atelierbram/Base4Tone-prism/src/db/views/html/header-b4t_classic-a.inc.php" > "views/inc/header/header-b4t_classic-a.inc"
curl "http://localhost/~bram/github.com/atelierbram/Base4Tone-prism/src/db/views/html/header-b4t_classic-b.i... |
81a44e40697e141c9fb254110afcbb6211c4db82 | 99 | REACT_APP_PUBLIC_KEY=** your razorpay key id **
REACT_APP_SECRET_KEY=** your razorpay key secret ** |
df45993f1848c5be088eb89f7e5c9b9d959fb54b | 48,884 | swift download -o data_in/wrfout_d01_2018-01-16_00:00:00 wrf_long_run wrfout_d01_2018-01-16_00:00:00
swift download -o data_in/wrfout_d01_2018-01-16_01:00:00 wrf_long_run wrfout_d01_2018-01-16_01:00:00
swift download -o data_in/wrfout_d01_2018-01-16_02:00:00 wrf_long_run wrfout_d01_2018-01-16_02:00:00
swift download -o... |
e21ac85727f76d08326cbf4753babe95041777c1 | 474 | #!/bin/bash
echo "Making FlashySlideshows.."
cd InputParser
./make
cd ..
cd AFScripts
./make
cd ..
cd TextAnalyzer
./make
cd ..
LIBS="InputParser/libInputParser.a InputParser/libInputParser_C.a AFScripts/libAFScripts.a TextAnalyzer/libTextAnalyzer.a"
g++ WebSniperApp.cpp WebSniperMain.cpp HTMLAnalyzer.cpp Gen... |
77a92f7b0cec7eb22c72f20503a8a97be98c3eb2 | 8,074 | # ecd — Enhanced CD (for bash)
#
# Author: Micah Elliott http://MicahElliott.com
# License: WTFPL http://sam.zoy.org/wtfpl/
#
# Usage: source .../ecd.sh; cd ...
# (Don’t try to run this file; it is to be sourced)
#
# Useful aliases:
# alias cdl='cd -l'
# alias cde='vim -o2 .enterrc .exitrc'
#
# NOTE: I no longer use t... |
cbd6c7491e3d03ba081ea8ffee70366bf7121131 | 193 | #!/usr/bin/env bash
set -eo pipefail
source /usr/bin/entrypoint
CHECK="$(echo stats | nc 127.0.0.1 11211 | grep uptime 2>/dev/null)"
if [[ "${CHECK}" =~ "STAT" ]]; then
exit 0
fi
exit 1
|
234a8f12ed609241b4572fad4fe56d21c819fbdf | 716 | #!/bin/sh
#Maximum number of attempts to enable hcismd to try to get
# hci0 to come online. Writing to sysfs too early seems to
# not work, so we loop.
MAXTRIES=15
#setprop bluetooth.hciattach true
setprop ro.qualcomm.bt.hci_transport smd
setprop qcom.bt.dev_power_class 2
setprop qcom.bt.le_dev_pwr_class 2
i=1
whil... |
68d7d54fde15b60c9e3af154e3fd2e697552ad06 | 265 | #!/bin/sh
working_dir=`pwd`
cd ..
echo $working_dir
version=`grep 'version' $working_dir/manifest.json | tr '"' '\n' |grep '[0-9]'`
zip -r $working_dir/Simple-Usage-Meter-$version.zip $working_dir -x \*.git\* $working_dir/testdata\* $working_dir/docs\* \*.zip
|
9a28b678f59c3be6fa3a1079e54b98485d9a33f8 | 356 | #!/usr/bin/env sh
set -e
echo "Enter release version: "
read version
read -p "Releasing $VERSION -are you sure? (y/n)" -n 1 -r
echo
if [[$REPLY=~^[Yy]$]]
then
echo "Releasing $VERSION ..."
gid add -A
git commit -m "[build] $VERSION"
npm version $VERSION --message "[release] $VERSION"
git push orig... |
a2bf0e85461a23966dd2457a04a4233c6ee1ae9e | 792 | ###python3 generate.py data_giga_bin --path checkpoints/fconv/checkpoint_best.pt --batch-size 128 --beam 5
CUDA_VISIBLE_DEVICES=1 python3 generate.py data_giga_bin --path checkpoints/fconv/checkpoint_best.pt --beam 5 --batch-size 128 --lenpen 0.5 --remove-bpe | tee > ./output/result
: <<END
...
| Translated 3003 sen... |
e06c42d20ff5da548c76dc970e34baa51d67bb93 | 274 | #!/bin/bash
if [ "x$1" == "x" ]; then
echo use: $0 name
exit 1
fi
for f in `find . -type f | grep -vE '(git/|lib/)'`; do
if [ "`file -I $f | grep -E '(text|xml)'`" != "" ]; then
sed -e s,angular-signup-app,$1,g < $f > $$.tmp
mv $$.tmp $f
fi
done
rm -f bootstrap.sh
|
3bd796dbc91beddec86746ca60278f0ce8f99424 | 181 | #!/bin/sh
mv constants.hpp ../include/gapi/constants.hpp
mv functions.hpp ../include/gapi/functions.hpp
mv known.hpp ../include/gapi/known.hpp
mv functions.cpp ../src/functions.cpp
|
e90d7b19c8a6fec72b078a4399daf9939edd7d36 | 1,237 | # Maintainer: Zylex <zylex.stk@gmail.com>
pkgname=vala-gen-project-git
pkgver=20130510
pkgrel=1
pkgdesc="Tool to generate Vala projects from templates, taken from VTG."
arch=('i686' 'x86_64')
url="http://code.google.com/p/vtg/"
license=('GPL2')
depends=('vala')
makedepends=('git' 'gnome-common')
options=(!libtool)
pro... |
518c47dbd88811856c2c0e361a9f2492668080be | 967 | #!/bin/bash
# arecord -q -t wav -d 5 audio.wav
arecord -q -D hw:1,0 -f s16_le -c 1 -d 15 > audio.wav
sox -q audio.wav -r 16000 -b 16 -c 1 audio.flac
language=$1
output="NO_OUTPUT"
if [[ "$language" == "US" ]]; then
output=$(wget -q -U "rate=16000" -O - "http://www.google.com/speech-api/v1/recognize?lang=en-US&cli... |
c76187319238c24601e0a98baca86299c11fa535 | 987 | #!/usr/bin/env bash
npm_update() {
if command -v 'npm' > /dev/null; then
echo "Attempting npm update. Please wait" >> ~/.dotfiles.log
npm install -g npm 1>> ~/.dotfiles.log
print_result $? 'NPM update'
echo "Attempting npm upgrade npm packages. Please wait" >> ~/.dotfiles.log
npm update -g 1>> ~... |
f47cd9b4f11b53fc42f9c7abb702a617e70f9833 | 440 | #!/usr/bin/env bash
if [ -e "./data/mesh_reconstruction_dataset.zip" ]; then
unzip ./data/mesh_reconstruction_dataset.zip -d ./data/datasets
mv ./data/datasets/mesh_reconstruction/* ./data/datasets/
rm -rf /data/datasets/mesh_reconstruction
else
echo "Please download dataset from https://drive.google.c... |
66cc249f6e93f3078304603f42f616a91a80a4c6 | 520 | # $Id$
# Maintainer: damir <damir@archlinux.org>
# Contributor: Ben <ben@benmazer.net>
pkgname=ne
pkgver=1.41
pkgrel=1
pkgdesc="the nice editor"
arch=(i686 x86_64)
url="http://ne.dsi.unimi.it"
depends=('glibc' 'ncurses')
source=(http://ne.dsi.unimi.it/$pkgname-$pkgver.tar.gz)
md5sums=('023e68d23a6216e89737ff2b6996aa77... |
97af65de009fb38722d226fecedfa1f6a7716615 | 6,352 | #!/bin/bash
set -e
# Define all the versions that should be generated
VERSIONS=(1.0.0 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3)
# Define the "latest" version
LATEST=1.3.3
# Define which JRE versions to generate for
JRES=(7 8)
# Define the default JRE
DEFAULT_JRE=8
# Define default platform
DEFAULT_PLATFORM... |
7595a177d1bf882421d0e0596b33372d0d06fe72 | 766 | #Purpose: make dauily backup from DC to Office
#Revised: 20200420
#Version control
#Git name
#!bin/bash
#Home dir
BACKUPHOME=/backup/ETNbackup
#Source dir
SDIR1=192.168.0.55:/home/ETN_Documents/SdDocument
SDIR2=192.168.0.55:/home/ETN_Documents/SdDocumentAddendum
#Destination dir
DDIR=$BACKUPHOME/ETN_Documents
#Excl... |
962520c826d177cb9d16eac4765cd881c11f499e | 27 | PORT=3001
JWK = secret.json |
c96fa34946d9f590d425bcf5236e6133400cbd30 | 977 | #!/bin/bash
while true; do
choice=$(\
dialog \
--clear \
--stdout \
--backtitle "HADRIAN: Installation" \
--title "Choose Packages" \
--checklist "Use SPACE to toggle on/off." 17 80 10 \
capnet-assist "Captive Portal Assistant" off \
cerbere "The Pan... |
b73a09532a5fc625747159059bff8b88becbe1f7 | 407 | #!/usr/bin/env bash
export BASE_DIR="${HOME}/.base"
if [ ! -d "${BASE_DIR}" ]; then
git clone --recursive --quiet "git@github.com:nadeemahmad/dotfiles.git" "${BASE_DIR}"
bash "${BASE_DIR}/build.sh"
fi
# Load common configuration
if [ -f ~/.profile ]; then
source ~/.profile
fi
# Load zsh if it's available
if [ -... |
2196bf7d1b8e42d0c0aa0d022f9698ec66764ea5 | 186 | DB_CONNECTION_FILE=.env.db
DB_SCHEMA=public
VAULT_SCHEME='https'
VAULT_TOKEN_FILE=.env.secret.vault
VAULT_SKIP_VERIFY=true
VAULT_PKI=pki/meerkat
VAULT_TLS_AUTH=kv/meerkat/data/tls-auth
|
e38640896842484c79cbb731deb712a2a330d89a | 126 | PUSHER_APP_ID='548081'
PUSHER_APP_KEY='eeda9ba7478ba9d0c0af'
PUSHER_APP_SECRET='b18f13335172ab4dcb5e'
PUSHER_APP_CLUSTER='ap2' |
b4e846827bc419410f5857f79e4758a53656dfa9 | 72 | #!/bin/bash
# cURL headers
curl -s "$1" -H X-HolbertonSchool-User-Id:98
|
1efd5171542d15a7068011e9c3df55c64281a237 | 1,663 | #!/bin/bash
set -e
. /etc/pkg/pkg.conf
. /var/lib/pkg/functions
name=$(basename $0)
version=$GCC_VER
url=http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.xz
fetch $url
rm -fr $WORK_DIR/$name-$version
tar -xvf $SOURCE_DIR/$(basename $url) -C $WORK_DIR
cd $WORK_DIR/$name-$version
{ time \
{
case $(una... |
054f73e11191974a37e05cf5272bc165943e222e | 295 | #!/bin/sh
#Simple script print current audio/video mpv
musicIcon=""
cmus_current=$(cmus-remote -C status | grep "tag title" |awk '{print $3 $4 $5}')
if [ -z "$cmus_current" ]
then
echo -n "%{F#FF0000}$musicIcon off%{F-}"
else
echo -n "%{F#00FF00}$musicIcon $cmus_current%{F-}"
fi
|
3e9dc0c9589cbf4a3c152e9a490a96e394e2db5e | 321 | #!/bin/sh
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=20G
#SBATCH --time=10:00:00
#SBATCH --output=step01.parent.sh.%A_%a.stdout
#SBATCH -p intel
#SBATCH --workdir=./
scripts=`pwd`/scripts
#SNP called by Sofia
perl $scripts/genotype/RIL_VCF2Parents.pl --vcf ../input/reference/HEG4_dbSNP.VQSR.vcf
echo "done"
... |
7a130bcaf9f6d0423a171a81a4865c8539955060 | 782 | #!/bin/bash
count=1001
while [ $count -le 1964 ]
do
infile="/augie/gluster/data/netCDF/pmel/cccma/cccma_week${count}.nc"
mean="/augie/gluster/data/netCDF/pmel/cccma/Outputs/cccma_h1_average.nc"
outfile="/augie/gluster/data/netCDF/pmel/cccma/Diff/cccma_diffh1_week${count}.nc"
echo "Executing: ncbo $infil... |
4dc6a225dc14211ebce1258d7f30aa64d63dac70 | 1,647 | #!/bin/sh
echo "Waiting for database connection..."
until netcat -z -v -w30 $DB_HOST $DB_PORT
do
sleep 1
done
echo "WEB IS RUNNING"
# # Static files
# npm cache clean
# npm install .
# npm install -g less
# npm run build-css
# python manage.py collectstatic --noinput
pip install -r /app/CompetitionPlatform/requir... |
ebb116872d702af7eb767de78f9c4401c9e7d777 | 84 | #!/usr/bin/env bash
PYTHONPATH=$PYTHONPATH:src/ python src/scrape_riot_api.py config |
d41b494909438abb7eed0a537cd53213c35afc34 | 2,079 | #!/bin/bash
# Determine OS version
# Save current IFS state
OLDIFS=$IFS
IFS='.' read osvers_major osvers_minor osvers_dot_version <<< "$(/usr/bin/sw_vers -productVersion)"
# restore IFS to previous state
IFS=$OLDIFS
ERROR=0
# Checks to see if the OS on the Mac is 10.13 or higher.
# If it is not, the following me... |
81ec95b6c3b2ff9e62fff9426249d47d97d6575d | 217 | MONGO_URI=mongodb://admin:passw0rd@ds153766.mlab.com:53766/softcraft_development
CLOUDINARY_KEY=343426173554196
CLOUDINARY_SECRET=qWuM_lVPXNxikakDN0y2tz01A1Q
CLOUD=kaungsorcerer
CLOUDINARY_FOLDER=softcraft_development |
b4782fe680ca460217a18c585a95f5916063f2ee | 338 | #!/bin/bash
/usr/bin/go run server.go -generate
/usr/bin/rsync -trzR \
--delete \
--progress \
./css/ ./favicon/ ./js/ ./pages/ \
root@gudmundur.net:/usr/share/nginx/gudmundur.net/
/usr/bin/rsync -trz \
./nginx.conf root@gudmundur.net:/etc/nginx/sites-available/gudmundur.net
ssh root@gudmundur.net 'system... |
a27e297fe0f1576e53eaa9947a831d84bc0cbae8 | 366 | #!/bin/bash
sz="$(stat -c %s s.img)"
sz=$((sz/512))
sz=$((sz + 2048 ))
sz=$((sz / 2048 ))
sz=$((sz * 2048 ))
sum=2048
newsum=$((sum+sz+2048))
rm -f system-gpt
truncate -s $((newsum*512)) system-gpt
/sbin/sgdisk -C system-gpt
/sbin/sgdisk --new=1:2048:+$sz system-gpt
/sbin/sgdisk --change-name=1:system system-gpt
dd i... |
cb310bd53ef12590427d421d0b7b79bbc4be3677 | 82 | #!/bin/bash
for number in {00..99}
do
cp room.skeleton $number.room
done
exit 0
|
a42f3b3a40b493f2c832a93d16f7bacb33d55fee | 870 | #!/bin/bash
OPERATOR_NAMESPACE=${OPERATOR_NAMESPACE:-}
ZAP_FLAGS=${ZAP_FLAGS:-}
OUTPUT="${OUTPUT:-out/acceptance-tests}"
mkdir -p "$OUTPUT"
SBO_LOCAL_LOG="$OUTPUT/sbo-local.log"
_killall(){
which killall &> /dev/null
if [ $? -eq 0 ]; then
killall $1
else
for i in "$(ps -l | grep $1)"; do... |
27125cd79187c3808e04aef3be3cf6a9bc8e1706 | 1,327 | #!/bin/bash
database="{{ database }}"
declare -a raster_names=('worldpop2020_1km' 'worldpop2020_100m')
declare -a commands=(\
"bash ./db_setup_${database}.sh" \
"bash ./osm_gadm_tables_${database}.sh")
for cmd in "${commands[@]}"; do
echo "\n ${cmd}"
eval "$cmd"
done
for raster_name in "${raster_names[@]}"... |
d93e7de13b8fd2eea3efaf286c7f5dce1637f6eb | 40 | #!/bin/sh
cd /home
find -follow -type l
|
71505e9f0c6e07af49e9889bce1e43d9c100e93b | 289 | #!/bin/bash
SOFILE=tmpAVJE.so
if [ -f $SOFILE ];
then
rm tmpAVJE.so
fi
module purge
module load anaconda2 gcc/4.7.1
f2py -c --fcompiler=gnu95 daxpy_f.pyf daxpy.f90
#module purge
#module load anaconda2 intel/2013
#f2py -c --fcompiler=intelem daxpy_f.pyf daxpy.f90
python main.py
|
01d91e42ca1b7d3986d712678a975a353a0b3add | 15,697 | test -n "$_lst_sh_" && return 0
readonly _lst_sh_=1
#
# Portable string backed array library.
#
# @file
# @see lst.md
#
#
# Run lst() with RS set to the ASCII Line Feed character.
#
# @warning
# The Line Feed character is White Space and thus subject to
# special expansion rules, which affects the processing of
# emp... |
c986607a1497be564ac6fb55d2b2e088208517fe | 2,213 | #!/bin/sh
outdir=data/ChIPexo_QC_runs
N1=20000000
N2=50000000
seed=$1
## venters TBP
dr=/p/keles/ChIPexo/volume4/venters_data/sortbam
rscripts/scripts/ChIPexoQual_run.R $dr/TBP_K562_Rep1.sort.bam $outdir/venters_TBP_K562_Rep1_subsample20.RData $N1 $seed
rscripts/scripts/ChIPexoQual_run.R $dr/TBP_K562_Rep2.sort.bam $... |
ccbbf61a6f4c6c5bb293f1c2967d393142a1184e | 122 | Adding a remote repository
How to set your username and email
Limiting log output by time
Ignore files in git
Dates in git |
f9dae343d2da7eee133defa621d7c2fa4f62a31b | 109 | # Sort the data in descending order of the average monthly temperature in January.
sort -t $'|' -k2 -n -r
|
e8c5c680cf8fcd6ad30f457cc90cbd8905eb9eae | 447 | cat 7-input.txt | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\([a-z]\)\1\1/\1--\1/g' | grep -E "^[^\[]*([a-z])([a-z])\1.*\[.*\2\1\2" | wc -l
# Move all [] to the end (repeat 4... |
a705833d6d29b8367d41a0a95d2192d87f7d5a5a | 52 | #!user/bin/sh
echo "uid=mahlatyw,cn=gssapi,cn=auth"
|
7f43dd17a4661f27af88076b95606cfe425afdbd | 309 | #!/bin/sh
python -u DeepSpeech.py \
--train_files data/cmu/next_train.csv \
--dev_files data/cmu/next_test.csv \
--test_files data/cmu/next_test.csv \
--train_batch_size 1 \
--dev_batch_size 1 \
--test_batch_size 1 \
--n_hidden 494 \
--epoch 10 \
--checkpoint_dir "$checkpoint_dir" \
"$@"
|
14626af2fc395883c77ec4cb6f02bf725816d8bd | 1,092 | #!/bin/bash
set -o errexit
set -o nounset
INPUT=/bbx/input/biobox.yaml
OUTPUT=/bbx/output
METADATA=/bbx/metadata
TASK=$1
# Ensure the biobox.yml file is valid
sudo ${VALIDATOR}validate-biobox-file --input ${INPUT} --schema ${VALIDATOR}schema.yaml
# Parse the read locations from this file
READS=$(sudo /usr/local/bin... |
03c196af0150a2214597468ac25c716a175cc61a | 110 | POSTGRES_USER=
POSTGRES_PASSWORD_FILE=/run/secrets/POSTGRES_PASS
POSTGRES_DB=
PGDATA=/var/lib/postgresql/data
|
32b6a698e66ef4d099a5d6dad2742b9a346ec04d | 211 | #!/bin/bash
w=`zenity --entry --text="Leveys" --entry-text="1280"`
if [ $? -ne 0 ]; then
exit 0
fi
h=`zenity --entry --text="Korkeus" --entry-text="1024"`
if [ $? -ne 0 ]; then
exit 0
fi
publish $w $h $@
|
d5e908274f5b8b39c99d0a9165fc247ebc779bf4 | 9,525 | #!/bin/bash
#Politica y Privicidad »»»» HACKER-PC
echo -e "----> ESTE SCRIPT ESTA EN DESARROLLO PRONTO AGREGARE UN MENU <----"
sleep 3
clear
function limpiar_pantalla {
clear
}
limpiar_pantalla
while :
do
opcion=0
echo
echo
echo -e " \e[0;34m ::: ::: ::: :::::::: ::: ::::::::::::::::::... |
65385d2538cd1af1241ea0795f9c753afdeef553 | 883 | #!/bin/sh
set -e
case $1 in
purge)
if which deluser >/dev/null 2>&1 ; then
deluser --quiet --system sbws > /dev/null || true
else
echo >&2 "Not removing sbws system account because deluser command was not found"
fi
;;
esac
# Automatically added by dh_installsystemd/11.5.3
if [ ... |
da245858cb9123d1d6978220e455f92c76f600e9 | 1,024 | #!/bin/bash
mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby && cp Ruby.tmLanguage ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby/Ruby-custom.tmLanguage
mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Rails && cp Ruby\ on\ Rails.tmLanguage ~/Library/Application\ Su... |
ec338f0d46e3fa100a300246235a235492d94e33 | 1,493 | object Polymorphism {
def main() : Unit = {
if (42 == 42) { println("Ok"); } else { println("error"); }
if (new A() == new A()) { println("error"); } else { println("Ok"); }
if (new A() == new B()) { println("error"); } else { println("Ok"); }
if ("f" + "oo" == "fo" + "o") { println("error"); } else { prin... |
095f38d3a0a4f1f54795e083f3448cc20a770398 | 3,717 | #!/usr/bin/env bash
country_label="$(tr [A-Z] [a-z] <<< "$1")"
days_ago=${2}
gnuplot <<- EOF
set print "-"
data_file_name = '../data/total_history.csv'
time_format = '%m-%d-%y'
today_date = strftime(time_format, time(0)-18000)
output_file_relative_path = sprintf('plots/total/${country_label} ${days_ago}... |
8d30e1431a406a0fc343b0a2cc0b3e33e8a20202 | 615 | #!/usr/bin/env bash
mvn clean package
docker_registry="10.58.9.201:5000"
docker_name="motan-tenant"
docker_tag=$(git log --format="%H" -n 1)
docker_img="$docker_registry/$docker_name:$docker_tag"
cp deploy.sh.bak deploy.sh
chmod +x deploy.sh
sed -i 's/${GIT_COMMIT}/'"$docker_tag"'/' deploy.sh
docker ps | grep $dock... |
af2c30d08032a9850f8c4c49618fd4510ded4310 | 1,500 | #!/bin/bash
echo long_file_name
mkdir long_name
cd long_name
touch 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890... |
b7425d392148dfa8fe019c2842e7b7f343e19fc8 | 29 | #!/bin/sh
./runTests 2 12345
|
1c8c7e7198a3dcbb0cdbd03778826437b64e7489 | 6,219 | # clear the pipes (revert to defaults)
emulate -LR zsh
source ~/.git-prompt.sh
setopt PROMPT_SUBST
# homebrew only needs to have this done if we're not on intel architecture
arch=$(/usr/bin/arch)
if [[ "$arch" -eq "arm64" ]]; then
if [[ $(command -v brew) ]]; then
else
eval $(/opt/homebrew/bin/brew s... |
6d6e9ff7f3f0b77725e8320c42a5ae91db05ac0c | 1,072 | #!/bin/ksh
# -----------------------------------------------------------------------------
# This code has been developed in the service contract for C3S
#
# script for converting odb station files into gzipped ASCII format
#
# Limits for n should be adjusted depending on the server capacity
#
# (c) University of Vienn... |
d01c068dbe6cc6537ba8f9862e647ed0633e1bb1 | 110 | #!/bin/bash
/data/scripts/loadPage.sh /usr/local/apache2/htdocs
/usr/local/apache2/bin/httpd
sleep infinity
|
27a953f7df43304fbe6e560c7c70d9369c19026a | 70 | #!/bin/bash
for file in *.XML
do
sed -i '1,2d' "$file"
done
|
47a03f8fc206456d2aea44783a7cc655aa7f6019 | 65 | #!/bin/bash
set -ex
ncu -u -x "@types/node @types/vscode junk"
|
cd2dd8746dc450df3695be5de223dda8b378aede | 1,056 | TAG=6.3.0
FILEBEAT_TAG=6.3.0
ELASTIC_VERSION=6.3.0
ELASTICSEARCH_USERNAME=elastic
ELASTICSEARCH_PASSWORD=changeme
ELASTICSEARCH_PORT=9200
POSTGRES_VERSION=10-alpine
POSTGRES_USER=pl
POSTGRES_DB=playlist
RABBIT_TAG=3
RABBIT_PORT=15672
RABBITMQ_ERLANG_COOKIE=synker-rabbit-cookie
RABBITMQ_DEFAULT_USER=admin
R... |
0ddfc7104ee9a83f060d006faf8a264b57a6b8ed | 294 | #!/bin/sh
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# SUNWasu preremove script
#
DOCS_INSTALL_DIR=appserver/lib/install/docs
for x in `/usr/bin/ls $BASEDIR/$DOCS_INSTALL_DIR`
do
/usr/bin/rm -f $BASEDIR/appserver/docs/$x
done
|
da1e73abf5a158e2efb56f63d16bfa23e338173f | 1,131 | # Maintainer: Whyme Lyu <callme5long@gmail.com>
pkgname=dnsproxy-bin
pkgver=0.54.0
pkgrel=1
pkgdesc="Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support"
arch=('x86_64')
url="https://github.com/AdguardTeam/dnsproxy"
license=('Apache')
provides=(dnsproxy)
conflicts=(dnsproxy dnsproxy-adguard)
source=(
"https://gi... |
cce605c6f0191031de3c6c790a1326344b84fbae | 2,860 | #! /bin/bash
dquilt() {
local quiltrc=${HOME}/.quiltrc-dpkg
hasBin quilt || die EPACKAGE "Install quilt!!!"
if [[ ! -f $quiltrc ]] ; then
info "Write quilt configuration: $quiltrc"
cat <<'EOF' >>$quiltrc
d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done
if [ -d $d... |
34fe231f6bf6e4a66a737e55e32cdf6a44464439 | 882 | #!/bin/bash
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".ts\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
PASS=true
printf "\n\rValidating Typescript:\n\r"
# Check for tslint
which ./node_modules/.bin/tslint &> /dev/null
if [[ "$?" == 1 ]]; then
printf "\t\033[41mPlease ins... |
e0f74a0a3d7a4df0411ff15bfc4367536e745fb5 | 6,879 | echo "Welcome to Olympus, Ambidextrous"
echo ""
echo -n "Today is "; date "+%m-%d-%Y %H:%M:%S"
echo -n "System status: "; uptime
# Ambidextrous: Homebrew on Apple Silicon
CPU=$(uname -p)
if [[ "$CPU" == "arm" ]]; then
export PATH="/opt/homebrew/bin:$PATH"
export BREW_BASE="/opt/homebrew"
export EDITOR=/opt... |
77ec5b95e440bdf46b6847355235d08fb9e6c867 | 222 | alias vim="nvim"
alias watch_and=$HOME/watch_and/watch_and.sh
function ws {
tmux new -d -s $1 &&
# tmux doesn't really seem to care what is passed in
tmux split-window -p 10 -t ${1}.0;
tmux attach -t $1;
}
|
3c18212763425734a053c289c36cd14cd52c48f8 | 258 | #!/bin/bash
registry=$1
docker login $registry
docker tag votingweb:1.0-linux $registry/votingweb:1.0-linux
docker tag votingdata:1.0-linux $registry/votingdata:1.0-linux
docker push $registry/votingweb:1.0-linux
docker push $registry/votingdata:1.0-linux |
7833df5c3196f45d74352b5e466e831253175aad | 29 | sudo apt install screenfetch
|
6053742a402fdc1d00f19ed565e48931f3e07201 | 183 | #!/bin/bash
role=`id -u`
if test $role -ne 0
then
echo "运行脚本需要root权限"
exit 1
fi
yum install -y nodejs
npm install -g jasmine
npm install --save-dev frisby
|
a84c56cdcc705a9e49d7a4f384ac103744e2083c | 1,149 | #!/usr/bin/env bash
#
# Helper which exposes the path to the respective profile
# configuration file
#
# Author: André König <andre.koenig@posteo.de>
#
SHELLTYPE="$(basename /$SHELL)"
if [ $SHELLTYPE = "bash" ]; then
if [ -f "$HOME/.bashrc" ]; then
PROFILE_CONFIGURATION="$HOME/.bashrc"
elif [ -f "$HOME/.bash_... |
78b971d8caec1b3b04d554175b771e6e396fee7b | 83 | # Generate Makefile with CMake
cmake CMakeLists.txt
# Compile C++ unit tests
make
|
818cc7945107377e77c90fd579fb77251609ae83 | 1,995 | #!/bin/sh /etc/rc.common
# Copyright (C) 2015 OpenWrt.org
START=90
STOP=10
USE_PROCD=1
PROG=/usr/sbin/squid
CONFIGFILE="/tmp/squid/squid.conf"
MIMETABLE="/tmp/squid/mime.conf"
validate_squid_section() {
uci_load_validate squid squid "$1" "$2" \
'config_file:string' \
'http_port:port:3128' \
'http_port_options... |
21dcd089bbf27bee0201a460df1594892c7bab2d | 4,155 |
# print both matching pattern 'p' and stdout, output is duplicated, space is optional
sed ' p ' /etc/passwd
#suppress stdout and print only if pattern matches, use -n switch to suppress stdout
sed -n 'p' /etc/passwd
#print first 5 line
sed -n '1,5 p ' /etc/passwd
#print till the last line from 5th line
sed -n '5,$ ... |
56f727b3aa31b440906fb8b460445f29b9c55b7a | 440 | #!/bin/bash
EX_FOLDER="/usr/local/bin"
SCRIPT_NAME="touchf"
function script_install() {
if [ ! -d $EX_FOLDER ]
then
mkdir $EX_FOLDER
log "o1"
fi
cp $SCRIPT_NAME $EX_FOLDER/$SCRIPT_NAME
chmod +x $EX_FOLDER/$SCRIPT_NAME
log "o2"
}
function log() {
case $1 in
o1)
msg="Directory $EX_FO... |
7b6f34274e2e8051c79ac0efe8d0f257122b002b | 143 | APP_URL=http://localhost:3000
STORAGE_TYPE=local
MONGO_URL= mongodb://dgiovanelli:DGio3010!@ds127655.mlab.com:27655/livinho-backend
|
663b2542a39a420a209913b47e92ad41dd22230c | 62 | echo "ifconfig -a"
ifconfig -a
echo "ifconfig -s"
ifconfig -s
|
0f8d28a7f1351b1eaccacdf1a20c05ec117d44c9 | 3,401 | #!/usr/bin/env bash
scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
numblocksfile="$scriptdir/../numblocks"
numblocks=$(cat $numblocksfile)
echo "numblocks=$numblocks"
catpersoncmd="cat $scriptdir/../data/persons_header.csv"
catmailaddrcmd="cat $scriptdir/../data/mail_addresses_header.csv"
catresaddrcm... |
f01a0dbfd89ec786974462992ba81fcc6f62e825 | 1,996 | #!/usr/bin/env bash
# HeadURL: https://github.com/danielhoherd/homepass/blob/master/RaspberryPi/homepass.sh
CONFIG_FILE=/etc/hostapd/hostapd.conf
RELAY_TIME=100
DB=/root/homepass.db
service hostapd stop ; sleep 1 ;
pkill hostapd ; sleep 1 ;
pkill -9 hostapd
while true ; do
aps=()
#aps+=( $(sqlite3 "${DB}" "selec... |
08d5ff16348ff394abe27b191d2dc0f293b7cc33 | 280 | #!/bin/bash
#-*- coding: utf-8 -*-
#2#::.. Last edit: - Wed Apr 12 13:54:46 EDT 2017 - by: - - ..::## #_# - VERSION=0.0.0.9 - #_# #@#120417#@# #2#
#3#::..#####################_MAIN_#######################..::#3#
# Author: __INDNYALL__#
perl -pe "s/$1/\e[1;37;41m$&\e[0m/g" "$2"
|
e83412e26e82a4739c8c78d4a2e1b87b487c3ed8 | 1,409 | #!/usr/bin/env bash
# Check dependencies.
set -e
xargs=$(which gxargs || which xargs)
# Validate settings.
[ "$TRACE" ] && set -x
CONFIG=$@
for line in $CONFIG; do
eval "$line"
done
# Define variables.
GH_API="https://api.github.com"
GH_REPO="$GH_API/repos/$owner/$repo"
GH_RELEASES="$GH_REPO/releases"
AUTH="Auth... |
e8ea86ce330677c8e7bb412485c3ce7045662ebb | 1,651 | #!/bin/bash
# This script is intended to be used during the build of the bash language
# server to initialize the explainshell database with a few thousand man pages.
# This is a pretty slow process which takes ~30 minutes.
#
# This script assumes:
#
# - The current working directory is explainshell
# - Everything tha... |
8506bcc560906fa4d6203bd5fe4641c1341f2bdc | 2,846 | #!/bin/bash
start() {
printf "\n\n Building the Caligrafy development server...\n\n"
docker-compose up --build -d prod-box
if [ $? -eq 0 ]; then
clear
printf "\n\nCaligrafy Server successfully started.\n\n Hostname: http://localhost:8080 \n phpmyadmin: http://localhost:8077/ \n mysql usern... |
e895860e7a8f3cafdf856a7893ab17ed78bdc274 | 121 | #!/bin/bash
xscreensaver-command --lock
sleep 1
xset dpms force off
if [[ $1 == '--suspend' ]]; then
sudo pm-suspend
fi
|
2ad8732a760f4ea0a463155fd4b474d30c4fb027 | 1,186 | #!/bin/bash
dir_name="mg1_shear100_2000"
chunk_size=100
increment=50
iterations=40
rm -rf $dir_name
mkdir $dir_name
#location=$dir_name"/it_1"
format="csv,fasta"
alen="100"
metagenome=IMG\ Data/76969.assembled.fna,IMG\ Data/76969.unassembled_illumina.fna
reference="all_AP_WPS-2_bacterium.fna"
#echo $location
#python mg... |
35cd6a9baec84207b63784903afe456f7e50c015 | 3,199 | #!/bin/bash
# lnmp之php-7.2.2的安装
# author ctocode-zwj <982215226@qq.com>
# 判断用户或用户组是否存在,不存在则创建
user=www
group=www
#create group if not exists
egrep "^$group" /etc/group >& /dev/null
if [ $? -ne 0 ]
then
groupadd $group
fi
#create user if not exists
egrep "^$user" /etc/passwd >& /dev/null
if [ $? -ne 0 ]
then
u... |
361cccf90ce0d8d55758add6a378824174022309 | 553 | #!/bin/bash
#script to build reference genome for HiSAT2
#Made by Jonas N. Søndergaard
#Made on 171003
#UPPMAX commands (Uppsala Multidisciplinary Center for Advanced Computational Science)
#SBATCH -A uppmax_proj_number
#SBATCH -p core
#SBATCH -n 2
#SBATCH -t 3:00:00
#load packages. bioinfo-tools is loaded on uppma... |
b49d230224386325596921c0b201a59a46afdb3b | 775 | # Cache (redis)
CACHE_HOST=cache
CACHE_PORT='6379'
# Database (mariadb)
DB_HOST=database
DB_PORT='3306'
DB_KEYCLOAK_DATABASE=keycloak
DB_KEYCLOAK_USERNAME=keycloak
DB_KEYCLOAK_PASSWORD=keycloak
DB_DIRECTUS_DATABASE=directus
DB_DIRECTUS_USERNAME=directus
DB_DIRECTUS_PASSWORD=directus
# CMS headless (directus)
CMS_DIRE... |
7d08f5f70afd20f84ff6034f5be7f75001584642 | 294 | #!/bin/bash
xdg-icon-resource install --novendor --size 48 --mode system \
/usr/share/pwsafe/pwsafe.png
xdg-desktop-menu install --novendor --mode system \
/usr/share/pwsafe/pwsafe.desktop
[ -f /usr/share/man/pwsafe.1 ] && gzip /usr/share/man/pwsafe.1
exit 0
|
ec5fc66ed93fdb3dde8222c262390c61925c1182 | 757 | #!/bin/bash
if [ "$1" = "--hard" ] ; then
echo "------------------------";
echo 'Hard restart activated';
cd dao-service
mvn clean install -Dmaven.test.skip=true
if [[ "$?" -ne 0 ]] ; then
echo "------------------------";
echo 'Compilation failed on dao-service - restart stopped'; exit $rc
fi
... |
7b4ca3652fe0e58b371e337ce0c2cedcd1fa8a9e | 1,513 | #!/bin/bash
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
declare -a migrations
migration=all
function migrate {
migrationType=$1
migrationNumber=$2
number=$(printf "%04d\n" $migrationNumber)
echo "Running migration ${number} [${migrationType}]";
[[ $migrationType == "up" ]] &&... |
85cda74fbcf9a510c87e4bfe3673bbb961921b8d | 2,697 | #!/bin/bash
test_logstash_is_running() {
running=1
grep -q Debian /etc/issue && (service logstash status |grep -q 'running') && running=$?
grep -q CentOS /etc/issue && (initctl list |grep -q logstash) && (initctl status logstash |grep -q 'start/running') && running=$?
grep -q CentOS /etc/issue && test -x /etc/... |
9e2b226a50ea4fad2ea97350d8c640d05ad8962b | 190 | #!/bin/bash
#first argument is the database name
pwd='123456'
db2user='db2ins0'
dbname=$1
cd /home/$db2user
echo $pwd | sudo -u db2ins0 -H sh -c "~/sqllib/bin/db2 create database "$dbname
|
e89d6b7500605abd24853c3d84ab3289385c0080 | 916 | # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: perlawk
pkgname=aescm
pkgver=0.32
pkgrel=2
pkgdesc="aescm is a text file processor that expands embedded Scheme expressions in the input file. Unlike other text-embedded language processors, escm does not depend on a particular Scheme im... |
e1702371a05bc603acda2e621ff6aa72371b64dc | 1,968 | #!/bin/sh
# Build (and install) all KDE dependencies
# Modified from the KDE Slackware script by Eric Hameleers <alien@slackware.com>
# Set initial variables:
CWD=$(pwd)
TMP=${TMP:-/tmp}
# Set the config option variables if they are not already set:
[ -r ./alldeps.options ] && . ./alldeps.options
# This avoids comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.