blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
ecf73e99ed9d389163f6f3d3c5dbf15e02c2a774 | 6,617 | #!/bin/sh
SOURCE="$1"
LIBRARY="$2"
MIGRATE="$3"
WIREDDIR="Wired2"
install -m 775 -d "$LIBRARY/$WIREDDIR" || exit 1
install -m 755 -d "$LIBRARY/$WIREDDIR/etc/" || exit 1
if [ ! -f "$LIBRARY/$WIREDDIR/banlist" ]; then
install -m 644 "$SOURCE/Wired/banlist" "$LIBRARY/$WIREDDIR" || exit 1
fi
install -m 644 "$SOURCE/Wi... |
2870c378a6fc38f40e3a565fb2946317d6357c65 | 628 | #!/bin/bash
mc_list=( nomc slo slo2 volreg )
smooth_list=( smooth nosmooth )
stim_list=( learn unlearn )
for mc in ${mc_list[*]}; do
case ${mc} in
"nomc" )
condition_list=( nocovar )
;;
"slo"|"slo2"|"volreg" )
condition_list=( covar nocovar )
;;
esac
for condition in ${condition_list[*]}; do
... |
1d9fc53d83e7511580f67c37e42dab0c62b2fb77 | 2,227 | #!/bin/bash -l
cat /root/.bashrc|egrep -v "GOVC" > /tmp/.bashrc
echo "export GOVC_URL='192.168.100.102'" >> /tmp/.bashrc
echo "export GOVC_USERNAME='administrator@vsphere.local'" >> /tmp/.bashrc
echo "export GOVC_PASSWORD='W@ster123'" >> /tmp/.bashrc
echo "export GOVC_INSECURE=1" ... |
69c3e0b6fe07a96333f4ed089d327b1aefe401f4 | 9,690 | #!/bin/bash
#
# Author: Stefan Hepp <stefan@stefant.org>
#
# Compile and run various benchmarks and collect the pasim statistics.
# To add new setups, just add new collect_stats lines. Already existing
# results will be skipped, the script will only evaluate missing configurations.
#
# TODO port this to ruby, integra... |
7cf5a8c20c4b5837beb7c01e8871644721e28ccf | 170 | #!/bin/sh
#
# This installs yarn via homebrew
read -p "Do you wish to install yarn? [y/n]" yn
case "$yn" in
Y|y )
brew update
brew install yarn
esac
|
e9ffc9c2d16d92647ae2f3ddd1d4942a5e5e048f | 370 | /share/raid12/chenjinfeng/tools/bin/soap -a /share/raid12/chenjinfeng/FFgenome/assmbly/simulateSeq/chr04_500_30_75_reads1.fa -b /share/raid12/chenjinfeng/FFgenome/assmbly/simulateSeq/chr04_500_30_75_reads2.fa -D /share/raid12/chenjinfeng/FFgenome/assmbly/simulateSeq/chr04.txt.index -o /share/raid12/chenjinfeng/FFgenome... |
6de4b18701f4907ecfbff7fa233be751d8805b65 | 148 | alias cb='cargo build'
alias ct='cargo test'
alias cr='cargo run'
alias gen-ctags-rust="ctags -f tags --options=/Users/$USER/.dotfiles/ctags.rust"
|
41e64d89f2e43a272b8a59c1c99960a9f0abba56 | 498 | #!/bin/bash
dir=$1
srv_ip=141.212.113.208
model=$2
dup_ack_num=$3
draw_percent=$4
for rss in high low; do
for i in 3 3.5 4 4.5 5; do
echo "#############################################"
echo "Running $dir $i $rss..."
src/traceAnalyzer.py --retx_analysis --cross_analysis --dup_ack_threshold ... |
200d00f61c65fa6d05cf03d2119cfe09967b81ff | 199 | #!/bin/bash
back_to_menu() {
read -p "Press enter to continue"
bash /etc/server_admin/menu/developments/menu
exit;
}
back_to_menu_now() {
bash /etc/server_admin/menu/developments/menu
exit;
}
|
4c9d259621ad5dc7d5892bd905ecbf3e6d97131e | 196 | #!/bin/bash
. $(dirname $0)/../assert.sh
### NTP running
skip_if "test ! -z $NECTAR_TEST_BUILD"
assert_raises "pgrep -f 'ntp|chronyd|systemd-timesyncd'"
assert_end "time sync service is running"
|
30210b30f9b2119ce1d70936dde0104041ec2f4e | 37 | teest=$(cat test.sh) ; echo ${#teest} |
485ef05ef491a04206167a911a2a9e55a167aacf | 4,131 | #!/usr/bin/env bash
# exit on error
set -ETeuo pipefail
# get parent dir of this script
declare -r BASEDIR="$( cd "$( dirname $0 )" && cd .. && pwd )"
bcftoolsexec=${BASEDIR}/lib/3rd/bcftools
genimputeexec=${BASEDIR}/lib/progs/genimpute.sh
#---------------------------------------------------------------------------... |
7e832f5d9cf115a626b51975aa7266494f7205f3 | 2,332 | #!/bin/bash
echo "start CFormChange.sh"
#### 2015.03.29
############################################################
for FILENAME in CFormList*
do
cp ${FILENAME} ${FILENAME}.bak
##########################################################
sed -i 's/Power(E,/exp(/g' $FILENAME; ## exp(
sed -i 's/(I\*/(II\*/g' $FILE... |
67812a50aceda2894a7b66dd7afaf6f5ba86c88b | 256 | function installMavenArtifact(){
local JBITTORRENT="${PWD}/src/main/resources/jBittorrentAPI.jar"
mvn install:install-file -Dfile="$JBITTORRENT" -DgroupId=jBittorrent -DartifactId=jBittorrent-api -Dversion=1.0 -Dpackaging=jar
}
installMavenArtifact |
454c2822355152792cd94de0a757b9f1ac9d8af2 | 277 | #!/usr/bin/env bash
INSTALL_DIR="$HOME/.local/bin"
mkdir -p $INSTALL_DIR
pushd $INSTALL_DIR
wget -O tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
chmod +x tailwindcss
popd
echo "tailwindcss installed to $INSTALL_DIR"
|
cfdffa87e62e0c2cc63b3f003c04a58e88566c89 | 177 | #!/bin/bash
# Install hook scripts by making symlinks to $GIT_ROOT/hooks.
HOOK_DIR=.git/hooks
for hook in $(ls hooks); do
ln -s -f ../../hooks/$hook $HOOK_DIR/$hook
done
|
f55df8633219bf000ceb18e1f264971e95bd9491 | 1,369 | #!/bin/bash
MYNAME=`whoami`@`hostname`
DOCKERNETNAME='ec2metadata'
# Using a /30 here only allows 169.254.169.254 available.
DOCKERNET='169.254.169.252/30'
DOCKERGATEWAY='169.254.169.253'
if [ "`id -u`" == "0" ]; then
sudo=""
else
sudo="sudo"
fi
if which "docker.exe" > /dev/null 2>&1; then
dockercmd="docker.e... |
403779995c5168358a8de58eda9b102f6d02e47f | 84 | #!/bin/bash
stdbuf -oL -eL gawk ' { if (!mac[$1]) { mac[$1] = $0; print; flush }}'
|
3d399bad268a56164176fa4acdd04caf18aa409b | 322 | #!/bin/bash
npm config delete prefix
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 4.4
npm install
if [ -z ${COVERALLS_REPO_TOKEN} ]; then
npm run localcoverage
echo No Coveralls token specified, skipping coveralls.io upload
else
npm run coverage
f... |
5accebf54a3d1b558a1fa5f1d88d98f2b9c9e941 | 1,007 | #!/bin/bash
# Amibian Launcher
# ----------------
# Author: Henrik Noerfjand Stengaard
# Date: 2020-04-05
#
# bash script to show amibian launcher.
# main menu
while true; do
# show main menu
choices=$(dialog --clear --stdout \
--title "HstWB Installer for Amibian v$AMIBIAN_VERSION" \
--menu "Select option:" 0 0 ... |
18b2521de9675f41f6c76be722f38ae0a4445264 | 90 | #!/bin/bash
k=1
for k in {1,2,3,4,5,6}
do
sbatch confMemoryByte$k.slurm
k=$((k+1))
done
|
7fb1deadadf8f8a9f2896ee14c7b598ed0bc9201 | 152 | #!/usr/bin/env bash
USER="alert_user"
PASSWORD="alertme"
rabbitmqctl add_user ${USER} ${PASSWORD}
rabbitmqctl set_permissions ${USER} ".*" ".*" ".*"
|
218904126d981f8584eb023dc1cc04a9c0beec18 | 242 | #!/bin/bash
# screen -d -m pd -nogui -audiodev 3 -noadc -audiobuf 15 /home/ccrma/cyclophone/pi/fm/main.pd
# rc.local version:
#
sudo -H -E -u ccrma screen -d -m pd -nogui -audiodev 3 -noadc -audiobuf 15 /home/ccrma/cyclophone/pi/fm/main.pd
|
7142fcb19efffee897cbcd58c5fc6fc01b192da7 | 153 | #!/bin/bash
cd data/university/
old_characters=$1
new_characters=$2
for str in $(ls ${1}*)
do
mv "$str" "${str/$old_characters/$new_characters}"
done
|
c8e04094530317a864627b3171bd39bdb6487c44 | 2,910 | #!/bin/bash
#
#
rooms=()
pirs=()
alarms=()
col_no="\033[0m"
col_green="\033[1;32m"
col_red="\033[1;31m"
STATUS='INITIATE'
beep () {
echo -en "\aPIR1:\033[1;32m OK \033[0m"
sleep 0.5
echo -e "\e[s\033[1K\rPIR1:\e[u"
}
print_line() {
char=$1
n=$2
printf "%0.s${char}" $(seq 1 $n)
}
#declare -g rooms
#declare -g msg_... |
4649bc605f2599c9bd9316f1972045c67faf3b51 | 101 | #!/bin/bash
/snap/bin/blender -b "../scenes/easy_flow_3.blend" -P "2cameras_render" -- front left 20
|
2c8998e0e75226bdfdff2e090b954d1c7996b952 | 86 | #!/usr/bin/env bash
set -o errexit
set -o pipefail
npx lerna publish from-git --yes
|
521a236b4ed2940c342273179b30f96eeb6a8ac1 | 618 | #!/bin/bash
#
DIR_ThisScript="$(cd "$(dirname "${BASH_SOURCE:-${(%):-%N}}")"; pwd)"
#
FILE_BASH_PS=${HOME}/.bashrc.ps
if [ ! -e "${FILE_BASH_PS}" ] ; then
cp -p ${DIR_ThisScript}/.bashrc.ps ${FILE_BASH_PS}
fi
#
FILE_DIR_COLORS=${HOME}/.dircolors
if [ ! -e "${FILE_DIR_COLORS}" ] ; then
cp -p ${DIR_ThisScript}... |
948dfebf0165783a26c0b256d7f3555ccee94409 | 2,044 | #!/bin/sh
#
# The MIT License (MIT)
#
# Copyright (c) 2018 Thomas "Ventto" Venriès <thomas.venries@gmail.com>
#
# 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 ... |
7ca83f826cbeab966796ba9c760a0d7a4c59cdbd | 1,316 | #!/bin/bash
#SBATCH --account=def-amrowe
#SBATCH --time=02:00:00
#SBATCH --cpus-per-task=1
#SBATCH --nodes=1
#SBATCH --mem=1000mb
#SBATCH --job-name=V10_R4
#SBATCH --output=./output/output-%x-%a.out
#SBATCH --open-mode=append
if test -e ./pickleddata/$SLURM_JOB_NAME-$SLURM_ARRAY_TASK_ID; then
# Rerun the simulation
... |
92271afa98637e08a7b0cf012588535e45de4af9 | 98 | DB_HOST = 'localhost'
DB_PORT = '3306'
DB_USER = 'root'
DB_PASSWORD = 'password'
DB_NAME = 'tasks' |
3b03de02694f2cb2136aaa466c5ed725b70e3062 | 225 | #!/bin/bash
#SBATCH --time=6-20:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --job-name=simplot
#SBATCH --output=simplot.log
#SBATCH --mem=1GB
module load Tkinter/3.6.4-foss-2018a-Python-3.6.4
python DVtraitsim_plot.py
|
fefded2a68c02293e05fe1ef5b0feef592d39837 | 365 | #! /bin/bash
if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; curl https://sdk.cloud.google.com | bash; fi
# Add gcloud to $PATH
source $HOME/google-cloud-sdk/path.bash.inc
gcloud version
# Authentication flow
echo $GCLOUD_KEY | base64 --decode > gcloud.json
gcloud auth activate-service-ac... |
1a97af538e53305a857e3fdec80204c08042b82d | 86 | DISCORD_TOKEN=
INVOCATION_STRING=!kneel,!unlock
API_URL=http://localhost:8911/graphql
|
8e4ab075dfaa78db0924ea2427b0a139c9e196e3 | 4,794 | #!/bin/bash
echo "Folder s1 ------------------------------------------------------------------------------------"
matlab -nodesktop -nosplash -r "get_voiced_frames('~/Pruebas/RML_Emotion_Database_audio/s1/f1/');exit"
echo "Folder s2 ------------------------------------------------------------------------------------"
m... |
3e4e04e5f3c5ccb501b246ae853f597ce6d617b5 | 149 | #!/usr/bin/env bash
_dirname=$(cd "$(dirname "$0")"; pwd)
cd $_dirname
adb push main /data/local/tmp
adb shell "cd /data/local/tmp;chmod +x main"
|
d5a60022d1863ed600ac61ba10b316341b785360 | 1,960 | #!/usr/bin/env bash
set -x
source $(dirname $0)/gotestacc_vars.sh
# Setting default vars
## k3s
K3S_DOCKER_IMAGE=${K3S_DOCKER_IMAGE:-"rancher/k3s"}
K3S_KUBECONFIG_NAME=${K3S_KUBECONFIG_NAME:-"k3s_kubeconfig.yaml"}
K3S_KUBECONFIG=${TEMP_DIR}"/"${K3S_KUBECONFIG_NAME}
K3S_PORT=${K3S_PORT:-6443}
K3S_INGRESS_PORT=${K3S_I... |
fce808f1b838e5a3cfca83e16cc6ccb68b881877 | 286 | # Database setup
SQL_HOST=localhost
SQL_DATABASE=database
SQL_USER=sqlusername
SQL_PASS=sqlpassword
# Max pool size (recommended)
# SQL_MAX_POOL_SIZE=5
# Shared JWT secret
SHARED_SECRET=yoursecrethere
# Github login to increase api limit
GITHUB_USERNAME=blabla
GITHUB_PASSWORD=blabla |
4c6ffc9694b4ba1156370bf184e031a7f8b1836f | 1,916 | #!/bin/sh -ex
# Rebundle Ubuntu 11.04 cloud image with RightScale RightLink
release=11.04
codename=natty
arch=amd64
cloud=cloudstack
rightscale_release=5.7.16
download_dest="$HOME/src/dev-images"
image="ubuntu-$release-server-cloudimg-$arch"
mp_chroot="/mnt/$codename-server-cloudimg-$arch"
mkdir -p "$download_dest"... |
d35b0b6e765d0cfab142599c482f5302ded84c87 | 661 | #!/bin/bash
set -e
. mutil.sh
# sudo apt install sublime-text
distro=$(lsb_release -is | tr 'A-Z' 'a-z')
echo "Distro=${distro:?Unknown distribution}"
curl -fsSL https://download.docker.com/linux/$distro/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$dist... |
25b565e7d0e5584be8a419c3cfae80a61ccd04d6 | 1,358 | #!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get --yes --force-yes remove xroad-jetty9
sudo apt-get --yes --force-yes remove xroad-autologin
sudo apt-get --yes --force-yes remove xroad-common
sudo apt-get --yes --force-yes remove xroad-signer
sudo apt-get --yes --force-yes remove xroad-confclient
sudo apt... |
d3fe407a42331f6baad91c2f89089b822a1dd678 | 160 | #!/usr/bin/env bash
set -eou pipefail
host=$1
db_name=$2
/opt/mssql-tools/bin/sqlcmd -S "${host}" -U sa -P MsSqlServerLocal1 -Q "create database [$db_name];" |
71233473d6a9690fcbeb23eb1de13c5dca454ec6 | 138 | #! /usr/bin/env sh
PGPASSWORD=${ADMIN_PASSWORD} psql -h localhost -p 5432 -d ${DB_NAME} -U ${ADMIN_USER} -f "./scripts/setup/schema.sql"
|
d38b8b80e9a6a43867eb2aeb7369d7ba3aac6119 | 482 | #/bin/bash
#replace ":" to " " in "defects4j export -p cp.test"
#alg: 1.project(ex:Lang) 2.bugID(ex:1)
#output:replace result
project=$1
bugID=$2
ProjectPath="/home/rtx/repair/d4j/"$project"/"$bugID"b"
cd $ProjectPath
COMPILECP=`defects4j export -p cp.compile`
TESTCP=`defects4j export -p cp.test`
string=$TESTCP
st... |
66ce9d160c47dc0854cc4127dfaee21c25f7e7b3 | 290 | #!/bin/sh
mkdir -p ./scite_src
svn checkout http://scite-ru.googlecode.com/svn/trunk/ scite_src -r1382
cp Extender.own.h scite_src/src/scite/src/Extender.h
cp LuaExtension.own.cxx scite_src/src/scite/src/LuaExtension.cxx
cp SciTEGTK.own.cxx scite_src/src/scite/gtk/SciTEGTK.cxx
./build.sh
|
2a1de4a9457cee975ecca392f8c196599c6d3f2b | 412 | #!/usr/bin/env bash
# Script that redirects to 404
sudo apt-get install -y nginx
echo "Ceci n'est pas une page" | sudo tee /usr/share/nginx/html/custom_404.html
string="error_page 404 /custom_404.html;\\n location = /custom_404.html {\\n root /usr/share/nginx/html;\\n internal;\\n}"
mine="#error_page 404 /404.html;"
lo... |
b47698a2d8fe69f7efa4b434918127ac46986837 | 201 | alias o='nautilus'
alias ou='xdg-open'
alias ll='ls -al --color=auto'
alias ip="ifconfig|sed -n -e '/127.0.0.1/d' -e '/inet /p'|awk -F: '{print \$2}'|awk '{print \$1}'"
alias ifconfig='/sbin/ifconfig'
|
cf181cc4b09abec20e9f09df3f885f2e9e685d4d | 1,812 | #!/bin/bash
## script to laucn CNV calling GATK CNV calling pipeline on tumor normal pairs in folder ##
## folder needs to be specified and two files normal.csv and tumor.csv need to be present which list the PMABM IDs of the normal and tumor samples respectively ##
## normal.csv and tumor.csv need to be in correspond... |
24f14db2027d3b812cd07cb7f1925282f8999751 | 2,435 | #!/bin/bash
# TMGL compilation script.
# For a given TMGL program it produces an executable.
# Corresponds to the original script `tmg`.
#
# While the original script relies on the UNIX assembler to produce the
# executable, this script calls the C compiler. It is a principal difference
# between this project and th... |
16ba83cd69c689b70a32cc4d8d48419b1cdb5895 | 248 | #!bin/bash
# Assume: we are in the openssl root dir.
# Assume: $OKCNTEST_SSL_PREFIX is set.
make clean
set -e
./config --prefix=$OKCNTEST_SSL_PREFIX
make depend
make
make install_sw
# Assert: openssl has been installed at $OKCNTEST_SSL_PREFIX.
|
15beb66a3f46da76beeb462330db9458058ab1c0 | 115 | #!/usr/bin/env bash
bash sections/configure-macos.sh
bash sections/install-tools.sh
bash sections/install-apps.sh
|
8e3da995bb4e17bda6029ac22cc27c53e31b7dd6 | 224 | <<<<<<< HEAD
botFilePath=attachments.bot
=======
<<<<<<< HEAD
botFilePath=handling-attachments.bot
=======
botFilePath=./handling-attachments.bot
>>>>>>> master
>>>>>>> 9a1346f23e7379b539e9319c6886e3013dc05145
botFileSecret= |
9887f077842975f133d4e361d7c208df3151af49 | 954 | #!/bin/bash
NEW_PROJECT=$1
COMPANY=$2
CURRENT_ORG=$(realpath --relative-to=$GOPATH/src $PWD)
OLD_ORG=github.com/r2d4/go-starter
OLD_PROJECT=go-starter
mv cmd/$OLD_PROJECT cmd/$NEW_PROJECT
mv pkg/$OLD_PROJECT pkg/$NEW_PROJECT
find . -name $OLD_PROJECT.go -type f | sed -e "p;s/$OLD_PROJECT/$NEW_PROJECT/" | xargs -n2 ... |
a0d141e55ad407c7147eacb1a330032e175b80fe | 629 | #!/bin/sh
set -e
if [ -z "$FILE" ]; then
echo "FILE is not set. Quitting."
exit 1
fi
echo "Checking for file existence at s3://${S3_BUCKET}/${FILE} at the ${S3_ENDPOINT}"
the_command="aws ${S3_PROFILE} ${ENDPOINT_APPEND} s3api head-object --bucket ${S3_BUCKET} --key ${FILE} $*"
echo $the_command
# Verify file... |
c2f61ddee3c14760a5c9c8e7fd9d1414f07c5c94 | 833 | #!/bin/zsh
channel=$1
if [[ -z "$3" ]]; then
password=""
resolution=$2
else
password=$2
resolution=$3
fi
swfaddr=$(curl 2>/dev/null -I "http://www.justin.tv/widgets/live_embed_player.swf?channel=$channel&publisherGuard=$password" | grep Location | awk -F': ' '{print $2}')
embed=$(echo $swfaddr | sed ... |
28cb0960c394d0519d75f5bce515a2fc398e7dff | 126 | if grub-file --is-x86-multiboot $1; then
echo multiboot confirmed
return 0
else
echo the file is not multiboot
return 1
fi |
58d1ca6ceb0e07dd2e7a47a0bb24700ccdcb45e5 | 258 | #!/bin/sh
for i in `grep '#if !defined(HAVE_' openssl_missing.c | sed -e 's/\#if\ \!defined(HAVE_//' -e 's/).*//' `
do
if nm ../../../../../gemstone/lib/libssl*.dylib | grep -qi "$i"
then
echo Has $i;
else
echo Doesnt have $i;
fi
done
|
6db8b7cd9685a3903408f858ee6723e194425e21 | 163 | #!/bin/sh
PARNAME="11_BLOG"
DRIVE=gdrive
PARID=`$DRIVE list -q "title = \"${PARNAME}\"" | grep -v ^Id | cut -d " " -f 1`
$DRIVE upload --convert -p $PARID -f $1
|
a816e4d4ee59798912cd29c11aa5ff6c79a9507a | 1,338 | #!/bin/bash
#get the data from the JHU dashboard and save into JHU_new.json
curl 'https://services1.arcgis.com/0MSEUqKaxRlEPj5g/ArcGIS/rest/services/ncov_cases/FeatureServer/1/query?f=json&where=Confirmed%3C%3E0&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&resul... |
fbcfba51fef60bfaa79da5bec67fb879f94782fc | 405 | #!/usr/bin/env bash -euo pipefail
# Note: This script requires slither installed using solc 0.8.9
function require() {
hash $1 2> /dev/null || ( echo >&2 "I require $1 but I cannot find it."; exit 1 )
}
require slither
# cd to project root
while [ ! -d .git -a `pwd` != "/" ]; do cd ..; done
# Run from inside ... |
da8ad0244b2e2c8aba238fc5037c7e395567ba9e | 24 | #!/bin/bash
py3
make ci
|
e8925aa1f259b9c5459830ee7bc64a98454a4ba2 | 2,351 | #!/bin/bash
package=com.vaadin.prototype.wc
[ -n "$1" ] && version=$1 || version=1.0-SNAPSHOT
client=wc-client
gwtapicomponents=wc-polymer-demo
gwtapi=wc-gwt-api
m2repo=~/.m2/repository/`echo $package | tr "." "/"`
pkgName=vaadin-components
jarName=$pkgName-$version.jar
jsName=$pkgName.js
pwd=`pwd`
set -xe
setVersio... |
293051fef5027cf94055f049256e90b083a40c64 | 178 | #!/bin/sh
chosen=$(cat ~/.config/qutebrowser/quickmarks | awk '{print $2}' | dmenu -i -l 5 -p "Open quickmark:")
[ -z "$chosen" ] && exit
qutebrowser --target window "$chosen"
|
19c4cd966a9f4474333507c4539c4545cab57a4a | 35 | #!/bin/bash
expr $1 + 1 && exit 1
|
a3dbe338578e785c62e8fb5d08ab0d92d6eacdea | 88 | mvn clean
mvn package
java -jar target/dependency/webapp-runner.jar target/datalayer.war |
51c25c207d562b830e3689bfba5cfd6626f9eab6 | 418 | #!/bin/bash -x
RandomMax() {
max=0;
#min=0;
count=1;
while [ $count -le 5 ]
do
result=$(( $((RANDOM%1000)) + 1 ))
if [ $result -gt 99 ]
then
if [ $count -eq 1 ]
then
max=$result
elif [ $result -gt $max ]
then
max=$result
fi
if [ $count -eq 1 ]
then
min=$result
elif [ $result -lt $min ]
then
min=$resu... |
f4f9842f5b14c80869a3d97b7d1d63e66d2c79ff | 4,958 | # chromebook-config.sh - Configuration file for chromebook-setup
# stuff required for snow/peach for now
# from google: nv_uboot-snow-simplefb.kpart
#
# set NVUBOOT=1 to enable (not wired yet))
# default rootfs and toolchain (arm)
TOOLCHAIN="gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf"
TOOLCHAIN_URL="https://dev... |
3c079073ce798a5d7814018cf9acc9bebe99ce7e | 10,641 | #!/bin/bash
set +e && source "/etc/profile" &>/dev/null && set -e
source $KIRA_MANAGER/utils.sh
# quick edit: FILE="$KIRA_MANAGER/scripts/await-sentry-init.sh" && rm $FILE && nano $FILE && chmod 555 $FILE
set -x
CONTAINER_NAME=$1
SENTRY_NODE_ID=$2
SAVE_SNAPSHOT=$3
[ -z "$SAVE_SNAPSHOT" ] && SAVE_SNAPSHOT="false"
COMMO... |
2d48228071c5f9aa1421851433e967c05c1eb02a | 45 | #!/bin/bash
docker push location/appname:1.0 |
94290cb35af3daccbbc375b2d0e944b48abb7a64 | 2,567 | # !/usr/bin/env bash
set -e
export SOURCE_FOLDER="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; cd .. ;pwd -P )"
# Define your script profile
export RC_FILE=${RC_FILE:-"$HOME/.bashrc"}
if [ ! -f "$RC_FILE" ];then echo "$RC_FILE is not exist!"; exit; fi
# Define your kube folder
export KUBE_FOLDER=${KUBE_FOLDER:-"$HOME/.... |
17cfa29b00acb2242805197c702771012cb7b8a1 | 48 | ../../../ubuntu/16.04/daemon/start_rbd_mirror.sh |
f853e4f8addcf8920bece5ce59ba94443997309a | 42 | #!/bin/bash
echo /proc/sys/kernel/pid_max
|
b2292c88f384d2ae4a1f698aa1ca16cb5b357d08 | 140 | set -x
# remove the symlink that we create in the post-up hooks
rcfile="${XDG_CONFIG_HOME}/zsh/.zshrc"
[ -f "${rcfile}" ] && rm "${rcfile}"
|
1872c74b3cc2ce82520a45d0ed686fe90c0af214 | 41 | #!/bin/bash
set -e
./compose.sh stop sso
|
cb7cb44e1fdff84d0380477c1685d2ee9aec93a9 | 457 | #!/bin/bash
#在shell脚本中可以执行命令
rm -rf file_two
file_list=(file_one file_two)
for file in ${file_list[@]}; do
if [ -f "$file" ]; then
echo "$file is file"
break
fi
done
file_list=(file_s file_two file_one) #声明一个数组
for file in ${file_list[@]}; do
if [ $file != "file_one" ]; then
echo ... |
082641249444add44dd564df583cb885cd592020 | 221 | #!/bin/bash
set -euxo pipefail
LAMBDA_NAME="latest-lambda"
BIN_DIR="target"
DIST_DIR="dist/api"
LAMBDA_BIN="$BIN_DIR/$LAMBDA_NAME"
LAMBDA_ZIP="lambda.zip"
mkdir -p "$DIST_DIR"
cp "$LAMBDA_BIN" "$DIST_DIR/$LAMBDA_ZIP"
|
ccb3d892b000fc8b3f213831711292af84c00a08 | 340 | #!/bin/bash
PATH=$PATH:/home/export/src/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/bin:/home/export/src/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi
echo $PATH
. ./setvars.sh
cd build/beagle-linux
make CROSS_COMPILE=arm-angs... |
a3664da8491a4e6818aba9ed4bd7b17178851a18 | 898 | APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:SRQCi8mBh3Ht1mM8BUY9O0TALQBtFYXSD0dIIoQWsIY=
APP_DEBUG=true
APP_URL=http://test-mailhog.test
LOG_CHANNEL=stack
LOG_LEVEL=debug
DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=test_mailhog
# DB_USERNAME=root
# DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_... |
1cba712b6ee53aa9e7c6f34d1bf75b878bfc0cae | 118 | SESSION_SECRET = lkajsdfvito4i3u0auriowejflashdfak.hfialeoruthaoierhtaiuerghkjdfbkv..bedgjrhaeoiurh
SERVER_PORT = 3001 |
d86552e85d7b0a0b7f3b59ae7c5dbeec692ec2df | 299 | #!/bin/bash
# global vars
source ../../config.sh
mkdir -p ${YELP_DATA_STATS}
LOGGER "START..."
output=${YELP_DATA_STATS}/review_per_year.tsv
cat ${YELP_DATA_TSV}/review.tsv | cut -f4 | grep -v date | cut -d- -f1 | sort | uniq -c | sort -k2 | awk '{print $2"\t"$1}' > ${output}
LOGGER "Done."
|
f8d154af0e8c380b83d26bf3a4a6c5804633eb39 | 24,231 | #!/bin/ksh
#
${SCR_DBG}set -xv
set -xv
# GEODYN_II_ALL_IERS2010_RESXTND
#
# Imports are: CASEDIR CASE STAGE SV YR DATA LOCALDSK
#
#if [ `expr $#` -lt 5 ]; then
# echo "Usage: GEODYN_II_ALL_IERS2010_RESXTND ARC LABEL SAT DATA tdir\007"
# exit 101
#fi
#echo " # "
#echo " # GEODYN_II_ALL_IERS2010_RESXTND $* "
... |
a1772d06794e989f5542282ee4d9481e28f7a292 | 363 | #!/bin/bash
set -v
java TestHolidaySpots << END
1
BlueBottle
END
java TestHolidaySpots << END
1
JacquesPot
END
java TestHolidaySpots << END
3
END
java TestHolidaySpots << END
2
1
Romania
END
java TestHolidaySpots << END
2
1
UK
END
java TestHolidaySpots << END
2
1
SUA
END
java TestHolidaySpots << END
2
1
Italia
END
java... |
73be5af5a00dc9b28b393dea7bf6b384ff3a44ea | 747 | #!/bin/bash
# Send via Signal
hostname=$(env | grep "NOTIFY_HOSTNAME=" | awk -F'=' '{print $2}')
datetime=$(env | gre... |
a1ef7c9e5464f60838337387fc90809ae68d4a60 | 1,269 | #!/bin/sh
# jboss start shell
. ./env.sh
#-----------------------------------------------
# 1.
#unset JAVA_OPTS
MGMT_USER=`cat $SERVER_HOME/configuration/mgmt-users.properties | grep jboss | awk -F '=' '{print $1}'`
MGMT_PWD=`cat $SERVER_HOME/configuration/mgmt-users.properties | grep jboss | awk -F '=' '{print $2... |
67a72563dbab6a6472963e0c6e4eaed26ae60046 | 3,644 | #!/usr/bin/env bash
# Sets reasonable OS X defaults.
#
# Or, in other words, set shit how I like in OS X.
#
# The original idea (and a couple settings) were grabbed from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run ./set-defaults.sh and you'll be good to go.
# Disable the sound effects on b... |
cf1a871e662cb5b73b0b45a4cb6a8ffa2d71cf85 | 2,021 | #!/bin/bash
REMOTE=www.serverboards.io:/ubuntu/
REPOPATH=/var/repositories/
DEBFILE=${2:-serverboards.deb}
set -e
if [ ! -e "$DEBFILE" ]; then
echo "Need $DEBFILE in the current directory,or second argument"
exit 1
fi
case "$1" in
"unstable")
rm -f "$REPOPATH/dists/unstable/main/binary-amd64/Release.gpg"
... |
a2013743dcfa812a8dbf931b8a3c1045ab173b88 | 340 | #!/bin/bash
####################################
Usage :
###./getHosts.sh <server query>
# ./gethost.sh work
#######################################
grep $1 /var/lib/hannibal/sync/manifest/ems/ems_site.pp /var/lib/hannibal/sync/manifest/solr_islands/*.pp | fgrep node | awk '{print $2}' | fgrep messageone.com | sed... |
016ae20c1fd46f1e8dde9ab90a82a59d634aa4e6 | 1,063 | #!/bin/bash
# author:yangzl
#function可以省略,返回值必须存在,如果不显示使用return,就最后一行命令执行结果作为返回值
demoFun(){
echo "这是我的第一个 shell 函数!"
}
echo "-----函数开始执行-----"
demoFun
echo "-----函数执行完毕-----"
myFirstFun() {
printf "this is my first function \n"
}
myFirstFun
funWithReturn(){
echo "这个函数会对输入的两个数字进行相加运算..."
echo "输入第一个... |
5d504a1a58dbbec2f08c97daef2e750683178c54 | 4,752 | #!/bin/bash
#
# Undo stuff before sourcing anything
#
for a in l ll la; do
if alias -p | grep $a &>/dev/null; then
unalias $a &>/dev/null
fi
done
#
# Platform specific (first because some stuff in here relies on it)
#
case `uname` in
Darwin) source $HOME/.rc/profile_Darwin ;;
Linux) source $HOME/.rc/pr... |
1e2d5614a4e6dc9f9a69e20996d38560177cfe79 | 1,241 | #!/usr/bin/env bash
# setup.sh
# James Liu, Jan 2020
# This script runs all of the necessary download, analysis and wrangling scripts and generates a markdown report from
# an .Rmd file.
# example usage:
# bash setup.sh
# download the data
printf "============\nstarting download script\n"
python src/download_data... |
e066d888cf9683de807db536ff60d85e3401f6d9 | 430 | ###################
# Grafana options
###################
GF_SECURITY_ADMIN_USER=admin
GF_SECURITY_ADMIN_PASSWORD=admin
GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-worldmap-panel,grafana-piechart-panel
GF_AUTH_ANONYMOUS_ENABLED=true
GF_AUTH_ANONYMOUS_ORG_NAME=Main Org.
GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
############... |
ff70556e718160e9394ea8d4522c62c02a521b6e | 93 | python3 setup.py sdist
rm -rf *.egg-info build
pip3 install $(find dist -type f)
rm -rf dist
|
ff8c6d6d01c3af592ad0d5139436d86e840cb002 | 177 | x=$1
y=$2
if [ $x -gt $y ]; then
echo "El mayor es:$x"
else if [ $y -gt $x ]; then
echo "El mayor es:$y"
else if [ $x -eq $y ]; then
echo "Son iguales"
fi
fi
fi
|
c6388ee9b1e209b78268a5a9526c50a14ab55c6c | 447 | #!/usr/bin/env bash
PPATH=$(realpath ..)
. ../../../testdata_tools/gen.sh
use_solution atli_100.cpp opt
compile random_generator.py
samplegroup
sample 1
sample 2
group gA 20
for i in {01..05}; do
tc gA-rand-$i random_generator 3
done;
group gB 30
include_group gA
for i in {01..10}; do
tc gB-rand-$i random_generato... |
02c0d26f39aff036c75937b1342ecad7fe6d139e | 98 | #!/bin/sh
cd "$(dirname "$0")"
# Build tools
gcc src/png2bin.c -o png2bin -lSDL2 -lSDL2_image -lm
|
f41259043f53163abe37a1bd4b40785d90a6dac3 | 458 | #!/bin/ksh
# Prints the amount of matching ACLs for the IPs
# found in the source and destination
# Takes a list of IP's as an argument
# E.g. asasearch.sh 10.0.1.64/28,10.0.1.68
IPS=$*
for acl in */*.acl
do
for dir in src dst
do
eval cnt${dir}=`ipaclmatch.py --noany --permit --$dir -a $IPS $acl | wc -l | awk '{pr... |
0624d501a674e9de1cb4a27c9e359daa9c32922d | 476 | #!/bin/bash
SOURCE=$1
MASTERS=$2
NVALUE=$3
mkdir -p $MASTERS
COUNTER=1
while [ $COUNTER -le "$3" ]; do
####### create dictionary files for all texts
echo "Now processing ngrams of length $COUNTER..."
for f in $SOURCE/*.$COUNTER.ngram
do
cat "$f" >> $MASTERS/$COUNTER.master.txt
echo "Added $f to master unsorted list... |
388926b78c6f359ef4b879cc1a312fd97f503c4c | 221 | #!/bin/bash
BOARD="amd64-usr"
GROUP="$1"
VER="$2"
DIR=/home/ec2-user/scripts/oem/ami
if [ -z "$GROUP" -o -z "$VER" ]; then
echo "Usage: $0 alpha 1.2.3" >&2
exit 1
fi
$DIR/publish_ami.sh -b $BOARD -g $GROUP -V $VER
|
f88d6737db59224506c454642419336ea57af4c3 | 103 | #!/bin/bash
java -jar uap-tracemonitor-server-1.0.jar --spring.config.location=application.properties&
|
f8719f7d870214613a51984a0c2de0e454f8a141 | 374 | #!/bin/sh
set -e
python manage.py makemigrations users trainings routines programs predefinedroutines objectives exercises customroutines colections classes categories activities achievements shareachievements healthdata
python manage.py migrate --run-syncdb
python manage.py collectstatic --noinput
uwsgi --socket ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.