blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
ab5baf9a90eb6b5fb7ab1ab5a5c4dc860c6fb4f1 | 138 | #!/bin/bash
#this will work if run sh script from root folder in other case need to update ../config
source config
docker stop $appname
|
0dfd0a77c4583c93fb19215340313cb251e2c79f | 620 | sleep 1
./client DEPARTURE TP70 init: 10 takeoff: 50
./client DEPARTURE TP73 init: 10 takeoff: 50
./client DEPARTURE TP71 init: 20 takeoff: 40
./client DEPARTURE TP72 init: 30 takeoff: 60
./client ARRIVAL TP80 init: 40 eta: 50 fuel: 50
./client ARRIVAL TP81 init: 50 eta: 10 fuel: 30
./client ARRIVAL TP82 init: 60 eta:... |
8305cb55a2419da6bc66bfb577b3c7a219fde226 | 150 | cd /vagrant
if [ ! -f miracle/settings/local.py ]; then
echo Creating local.py
mv miracle/settings/local.py.example miracle/settings/local.py
fi
|
bfce65304b9a1a2313e74332748d89ba1fc30412 | 324 | cargo xbuild --release --target i386-unknown-none.json && \
mkdir -p build/isodir/boot/grub && \
cp grub.cfg build/isodir/boot/grub/grub.cfg && \
cp target/i386-unknown-none/release/kfs build/isodir/boot/kernel.bin && \
grub-mkrescue -o kernel.iso build/isodir && \
rm -Rf build/ &&
qemu-system-i386 -cdrom kernel.... |
9a13ae8ee478987c128a3c98764dd62ac21c67fc | 1,269 | #!/bin/sh
WORKDIR="/tmp/email/$$"
mkdir -p "$WORKDIR"
MSG="$WORKDIR/msg"
if [ '' = "$RECIPIENT" ];then
echo "RECIPIENT is not set" >&2
exit 1
fi
SUBJECT=$1
MSG_BODY=$2
ATTACH=$3
mkdir -p /tmp/.maildir
if [ -s /mnt/nvram/rom/UnitID.txt ];then
UNIT_ID=`cat /mnt/nvram/rom/UnitID.txt|tr -d '\r'|tr -d '\n'`
else... |
dc35a8c26f682b404db105628f5002e8f6e32d4b | 1,026 |
mkdir -p src/tree-sitter-parser
# rm tree-sitter-javascript.wasm
# npx tree-sitter build-wasm node_modules/tree-sitter-javascript
# mv tree-sitter-javascript.wasm src/tree-sitter-parser
rm -rf tree-sitter-rust.wasm
npx tree-sitter build-wasm node_modules/tree-sitter-rust
mv tree-sitter-rust.wasm src/tree-sitter-p... |
1e71f8823c3b18b8c28654f50ba22f40ade2aa6f | 2,054 | #!/bin/bash
# This script is meant to reload HAProxy when certmonger triggers a certificate
# renewal. It'll concatenate the needed certificates for the PEM file that
# HAProxy reads.
die() { echo "$*" 1>&2 ; exit 1; }
[[ $# -eq 2 ]] || die "Invalid number of arguments"
[[ $1 == @(reload|restart) ]] || die "First ar... |
041b2134cc94bea76016ac8958d54b8388d5e692 | 1,064 | #!/bin/bash
export bucket="XXXXXXXXX"
common_params="--acl public-read --content-encoding gzip --cache-control 'public, max-age=86400'"
function print_aws_env {
echo -n AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" " "
}
function aws_sync {
src=$1
shift
print_aws_en... |
89515e6834bd563f57b76813273206fd5b96ea98 | 36 | jc =p =a "./BangBangController.prj"
|
1f06df98aaf6c79db801eb8518d85c6d1f22ea75 | 3,014 | #!/usr/bin/env bash
gc_post_receive_get_ref_name() {
# --- Arguments
oldrev=$(git rev-parse $1)
newrev=$(git rev-parse $2)
refname="$3"
# --- Interpret
# 0000->1234 (create)
# 1234->2345 (update)
# 2345->0000 (delete)
if expr "$oldrev" : '0*$' >/dev/null
then
change_type="create"
else
if expr "$newr... |
a626287da6402cadd3ceaa85e820c7d42472c195 | 52 | #!/bin/sh
./tcpClient 67.216.218.141 10000 1 1500 0
|
d53f0df08c3ff581dcf1aeaeddf1bcd4828fcdf8 | 156 | #!/bin/bash
[ -f "$ul_localresdir/pre-acd" ] && "$ul_localresdir/pre-acd" $*;
cd $*;
[ -f "$ul_localresdir/post-acd" ] && "$ul_localresdir/post-acd" $*;
|
9d06936603aa5f9c14f734c241e1da21fcf77ed7 | 971 | #!/bin/bash
# This script works on each file in a directory.
# It stores the file in a datastore (where no file will be stored twice),
# then replaces the original file with a symlink to the file in the datastore.
#
# To run this script:
# $ ./filecompactor.sh <path to store> <path of store>
# $ ./filecompactor.sh... |
cfd656f9ae93946caf05bc750eecdc08a1762714 | 305 | # given a folder, generate this code to be used in a ClientBundle or ui.xml
folder=$1;
for i in $(ls $folder)
do
base=${i%.*}
#echo "@Source(\"$folder/$i\")"
#echo "ImageResource $base();"
echo "<ui:image field=\"$base\" src=\"$folder/$i\" />"
echo "<g:Image resource=\"{$base}\" />"
echo ""
done
|
5a3a82f14ddd1b361b790f9cebb879511f61ee31 | 66 | #!/usr/bin/env bash
pushd `bundle show $1 --paths`
$EDITOR .
popd
|
3046bfda7ac733fb05d3bf02b836f6262cb3cb3b | 1,099 | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=mako
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.1.3
pkgrel=2
pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages"
arch=('i686' 'x86_64')
url="https://pypi.python.org/pypi/Mako"... |
a4bf602f025f97344f0bf891347f8b506629a0cb | 443 | #!/bin/bash
gem build logstash-filter-handsetdetection.gemspec
mv logstash-filter-handsetdetection-*.gem test.gem
docker run -i --rm \
-e API_USERNAME \
-e API_SECRET \
-e API_SITE_ID \
-v $(pwd)/test.gem:/test.gem:z \
-v $(pwd)/ci/logstash.sh:/logstash.sh:z \
-v $(pwd)/ci/sample.log:/sample.... |
9b9a3699387a47e2e7d5e16841254f3d27723d21 | 117 | #!/bin/bash
echo "Qual o nome da sua distro favorita"
read nome_distro;
echo "Você gosta da distro $nome_distro"
|
64812ca9e939050d43b45958c69ca9b17b993c2c | 174 | #!/bin/bash
nasm -f elf32 kernel.asm -o kasm.o
gcc -m32 -c kernel.c -o kc.o
ld -m elf_i386 -T link.ld -o project_kernel kasm.o kc.o
qemu-system-i386 -kernel project_kernel
|
1a990920f3733f5bc89a92372c338af6cbae15c7 | 22 | ../setup/run-docker.sh |
8bef70b37bd68df50c7d26866b51eb37c1237abe | 48 | table-prefix() {
basename "$1" | tr "-" "_"
}
|
9cd3aee80247762035468e5529918d14552c3c7d | 6,302 | #!/bin/bash
function setSimpleDBRoot
{
local this
local lls
local link
local bin
this="${BASH_SOURCE-$0}"
while [ -h "$this" ]; do
lls=`ls -ld "$this"`
link=`expr "$lls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
this="$link"
else
this=`dirname "$this"`/"$link"
fi
do... |
0ee207f3f83e451bd9a798af5edd2a14eafc87a1 | 117 | How to unmodify a modified file
Using tags for version control
Finding a tag
Make your log output pretty
Dates in git |
c2e80a25c6e8ed477fdb9d43e2956206772e60e9 | 296 | #openssl openssl-devel
#bison
#boost
#cmake
#php libxml2
#ubuntu
apt-get install libxml2
apt-get install libxml2-dev
#centos
yum install libxml2
yum install libxml2-devel -y
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache/bin/apxs
|
c74e81eba6d225034ab1f84effbd57a953737e19 | 313 | #!/bin/bash
source configuration.sh
NAME="bk-client"
NCLIENTS="20"
scp ${TMPL_FILE} ${USER}@${CLUSTER}:~/tmp
${SSHCMDHEAD} onetemplate update ${TMPL_ID} tmp
for i in `seq 1 ${NCLIENTS}`
do
echo "Instanciating client ${i}"
${SSHCMDHEAD} onetemplate instantiate ${TMPL_ID} --name ${NAME}
done
rm -f tmp
|
cb452fa0c53edf1c0247ce7a671b8b7d84dd036a | 994 | # Maintainer: Mort Yao <soi@mort.ninja>
pkgname=emacs-processing-mode-git
pkgver=20150609
pkgrel=1
pkgdesc="Major mode for Processing 2.0."
arch=('any')
url="https://github.com/ptrv/processing2-emacs"
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-processing-mode')
replaces=('emacs-processing-... |
e2a24775874d9b00bec97c2e17d2c4c01b443926 | 384 | #!/bin/sh
apt install -y libseccomp-dev libseccomp2 seccomp protobuf-compiler libnl-3-dev libnl-route-3-dev valgrind python3 python3-pip build-essential make cmake git zsh wget curl make cmake
git clone git@github.com:cmd2001/TesutoHime.git
pip3 install -r Judger/requirements.txt
mkdir /exe/ && chmod 777 /exe/
mkdir /w... |
39d5ef01a5812afc592c29b17089f1d512e49c59 | 542 | #!/bin/bash
run_gem() {
if type_exists "gem"; then
e_header "Installing gems..."
# list of gems
local packages="sass compass haml"
# if doesn't exist yet, then install
if which ${packages[@]} &> /dev/null; then
msg_ok "${packages[@]}"
else
msg_run "${packages[@]}" "sudo ge... |
7b152c2fe21b8067494295567825ba101c8d4d36 | 819 |
#!/bin/sh
# Automation of Particle Swarm Power Measure Collection
# Variable Definitions
coreStart=1
coreEnd=4
# Header
echo "Particle Swarm Power Measure Run"
# No File Generation Here - Just for Power Measures
# Make Program
make clean
make
echo
# Initial Test Run - shows which values are which.
./swarm 0.5 0.5... |
1474d577a0e464d660d560ee1e35e6482d985c9d | 1,086 | #!/usr/bin/env bash
# Mike Carifio <mike@carif.io>
# TODO mike@carif.io: figure out afuse to make this script unnecessary
# exit on error
# set -e
function usage {
echo <<EOF
-v verbose
-h help
-? help
-d mount all mount points in a directory
EOF
}
function complete {
echo "bash completion spec tbs"
}
f... |
6fa62f84cc39f66d4412bc9349830d5398a92aab | 629 | sudo apt-get update
sudo apt-get install -y python-software-properties
sudo apt-get install -y python-netaddr
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible
sudo cp /vagrant/provisioning/id_rsa /home/vagrant/.ssh/id_rsa
sudo chown vagrant:vagrant /home/vagrant/.ssh/id_r... |
750a3c45ddab02318ac3b8139c67366935925ab1 | 48 | #!/bin/bash
echo git tag $*-lw
git tag $*-lw
|
f66104113c59bd21258b0743cadd575339430d0d | 591 | #! /usr/bin/env zsh
function clone_repo()
{
url=$1
dest=$2
if [ -d "${dest}" ]; then
echo "${url} already cloned"
else
git clone "${url}" "${dest}" --depth 1
fi
}
# oh-my-zsh
clone_repo https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
# syntax highlighting
clone_repo https://github.com/zs... |
f44b04da0ee7be88429ca3c35e94826ae59d7280 | 705 | #!/usr/bin/env bash
blockCounts=(1 1 3 1 10 30)
threadPerBlockCounts=(1 3 1 32 32 32)
for ((i=0;i<6;i+=1))
do
cp main.cu main_tmp.cu
sed -i -E "s/(const int BLOCKS_COUNT = )[0-9]+;/\1${blockCounts[$i]};/" main_tmp.cu
sed -i -E "s/(const int THREADS_PER_BLOCK_COUNT = )[0-9]+;/\1${threadPerBlockCounts[$i]};... |
028c135d1018f1d67169118c497700bc8588f013 | 55 | #! /usr/bin/env bash
mkdir ./Results
mkdir ./ProdRules
|
e78d3156da235ada76e68e9a4341473607c032ad | 1,019 | MODEL_NAME=unet_transformer_en_de_debug_02Oct20
rm -rf checkpoints/$MODEL_NAME
mkdir -p checkpoints/$MODEL_NAME
fairseq-train\
data-bin/wmt17_en_de_toy \
--user-dir ./unet_transformer \
--arch unet_transformer --share-decoder-input-output-embed \
--encoder-layers 4 \
--encoder-embed-dim 128 \
... |
ce310de155dd3ac3dc4d78a0b70a5e6dfcbc034d | 260 | #!/bin/bash
create_dir(){
read -p "请输入目录名:" dirname
directory="/home/tarena/materials/xiaojian/forth_phase/shell/day02/$dirname"
if [ !-e $directory ];then
mkdir $directory
else
echo "文件夹已经存在"
fi
}
create_dir
|
e2606439f65bb3acd38a8c6c997dca16d861dc2a | 153 | #!/bin/bash
DOTFILES_REPOS='https://github.com/dstil/dotfiles' source <(curl -s https://raw.githubusercontent.com/rimmington/dothooks/master/bootstrap)
|
1198de279837d7c369ac8f6cf7574623426ef6eb | 14,846 | #!/bin/bash
# +------------------------------------
# | AliyunDDns Script v0.1
# +------------------------------------
# | 阿里云DDNS解析脚本版 V0.1
# | 一键将DNS解析到指定位置,方便非固定ip实现动态解析.
# | 一键DDNS用法:
# | export Ali_Key=xxx
# | export Ali_Secret=xxx
# | export Ali_Domain=example.com
# | aliddns.sh -m --record blog --value ... |
76cd08a48ba738c95dd8db41e000e88e56f1ca8c | 2,441 | #!/bin/sh
######################################################################
#
# @file simyan.sh
#
# @brief Version and build information for simyan.
#
# @version $Rev$ $Date$
#
# Copyright © 2012-2017, Tech-X Corporation, Boulder, CO.
# See LICENSE file (EclipseLicense.txt) for conditions of use.
#
#####... |
1c91cfd80c33a5d2947588aa85128bbaf76b6eb4 | 930 | #!/bin/bash
rm out.txt
avSingleTime=0
for((singleRun=0; singleRun<2; singleRun++))
do
temp=$( { /usr/bin/time -f "%e" ./serial.o -args; } 2>&1 )
avSingleTime=$(bc -l <<<"$temp + $avSingleTime")
done
avSingleTime=$(bc -l <<<"$avSingleTime/2.0")
avMultiTime=0
for((processCount=4; processCount<=2048; processCount*=2... |
0190715f5fc45faf5186caec7a3f2a7e3fd6b1a1 | 1,389 | #!/bin/bash
SYNC_DIR="/vagrant"
apt-get update
apt-get -y upgrade
apt-get -y install wget
apt-get -y install --no-install-recommends ccache cmake curl g++ make unzip git
apt-get -y install python3 python3-dev python3-pip python3-setuptools python3-virtualenv python3-numpy python3-scipy python3-yaml python3-h5... |
04c8bf5f680147923bd9f314f1cccac8772e2d04 | 35 | kubectl create -f ./hello-k8s.yaml
|
238c9ce6113c15b8327bde5fbfa185d49231e5d4 | 302 | #!/usr/bin/env bash
src=$(cygpath -w ${1})
if [ -d "${1}" -a -d "${2}" ] ; then
dst=$(cygpath -w ${2})'\'${src##*\\}
else
dst=$(cygpath -w ${2})
fi
xcp=$(cygpath -w /c/Windows/system32/xcopy)
echo '
CALL chcp 65001 > nul
'${xcp}' /E /I /Q /K /Y /B /J '${src}' '${dst}'
exit
' | cmd > /dev/null
|
da74c47db029f78041c4e98dd8b63726997a9623 | 655 | # Maintainer: Christian Sturm <reezer@reezer.org>
pkgname=perl-compress-lzf
pkgver=3.43
pkgrel=1
pkgdesc="extremely light-weight Lempel-Ziv-Free compressionl"
arch=(any)
url="http://beta.metacpan.org/module/Compress::LZF"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.12.0')
options=(!emptydirs)
install=
source=(http... |
bd187d98567cdf75caf8c3b404abf655fceb2535 | 907 | #!/bin/bash
# colorize default logs for standard logs format
TERMINAL_NO_COLOR="\033[0m"
TERMINAL_BLUE="\033[1;34m"
TERMINAL_GREEN="\033[1;32m"
TERMINAL_YELLOW="\033[1;33m"
TERMINAL_RED="\033[1;31m"
MESSAGE_PREFIX="|"
while read -r line; do
severity=${line:0:3}
meta="${line% $MESSAGE_PREFIX *}"
meta="${meta:4... |
a8480602d7294fce2a38c263f787ddbd3e013c97 | 321 | # Maintainer: Armand Cezar Mathe <me@cezarmathe.com>
pkgname=tcx-sound-system
pkgver=0.1.0
pkgrel=1
pkgdesc="Collection of packages for the sound system."
arch=('x86_64')
url="https://cezarmathe.com/"
license=('MIT')
depends=(
pamixer # pulseaudio command line mixer
pulseaudio
pulseaudio-alsa
pulseaudio-equalizer
)... |
f651fce3c2ad4e73e8e8ad17e9fcbd5b4fe8ca44 | 239 | #! /bin/bash
export BASE=/Volumes/StorageDrive/jmthompson/git/xwing-miniatures-1
open ${BASE}/artifact/src/TestSuite.html
open ${BASE}/state/src/TestSuite.html
open ${BASE}/model/src/TestSuite.html
open ${BASE}/app/src/TestSuite.html
|
eef91afe8be0d95796cad218f7a1aa389a73f987 | 128 | #!/bin/bash
python RunBootstrap.py --paralog1 YDR418W --paralog2 YEL054C --bootnum 47 > YDR418W_YEL054C_Boot47_PrintScreen.txt
|
e2763dbab1f9e9d7b3f5ae41dc22f42da2393fed | 29 | STR="Hello World!"
echo $STR
|
8bca3dc866f7c023390154d950501cca0c1554ea | 117 | #!/bin/bash
set -eu
docker build --build-arg DOWNLOAD_URL=${DOWNLOAD_URL} --build-arg SHA1=${SHA1} -t $IMAGE_NAME .
|
859166ad0d7d98baa69ef46865d96b7c7ac155f4 | 1,370 | #PATH
BITCOIN_CLI=~/Bitcoin/bitcoin-0.20.1/bin/bitcoin-cli
#Generate the new addresses
Address_A=$($BITCOIN_CLI -regtest getnewaddress)
echo $Address_A
Address_B=$($BITCOIN_CLI -regtest getnewaddress)
echo $Address_B
#First generate 50 blocks to address A
Genereatedblocks_A=$($BITCOIN_CLI -regtest generatetoaddress ... |
4d519decfd1ce1af32120224f611876daafecb3e | 992 | #!/bin/bash
#############################
#
# Base setup for Deep Box
#
# This installs a Linux and dev tool foundation that
# sets the stage for the rest of the installation.
#
#############################
sudo apt-get update
sudo apt-get upgrade -y
sudo a... |
dcee6f82c1468b95d3d63944271a0e8caded0d9d | 316 | SERVER = 5000
ACCESS_TOKEN_SECRET = 74b7db5cbc3bb8f9650d2ec35c86f5585d4eeef63b7ef410c868b7a35b9a569025fd880ee3a5c9c67abd436df6d4a2ddea5d06a0c69b89c7f3b18d717903fc83
REFRESH_TOKEN_SECRET = da707be8e8d278bc57902812d66c87667177af1f5e20491a19122e12364f34961146a909eabb17f87bcce1b113c20e3205b4f66bd9e87af542853fdfda34e43b |
86a35940c631c8ed622d6a8eb71940256758ea78 | 65 | #!/bin/sh
cd www
yarn install
yarn build
yarn deploy:root:travis
|
6cc8c6c074d8cdb2ca1681e7614b930aea287e65 | 325 | #!/bin/sh
echo "@sSteamCmdForcePlatformType linux
login $STEAM_USERNAME $STEAM_PASSWORD $STEAM_GUARD
force_install_dir /steamcmd/starbound
app_update 211820
quit" > /install.txt
echo "Install Starbound"
/steamcmd/steamcmd.sh +runscript /install.txt
echo "Run Starbound"
cd /steamcmd/starbound/linux
./starbound_server... |
41cd3c872868e8112797af14e57dff4bfa182137 | 100 | #!/bin/bash
SRC=`pwd`
cd ../../deploy_server/addons/sourcemod/scripting/include/
ln -s $SRC/*.inc .
|
b6a8f8b2fdf873e2b944c02e834cdf5315ee4e0a | 165 | ../../test/lands.exe -d OS_shape.txt -M Hybrid --freq --ExpectationHints Asymptotic --scanRs 1 --freq --nToysForCLsb 3000 --nToysForCLb 1500 --seed 1234 -n OS_shape
|
8e0f16990f870ef0485d8fa05f7780eaf14aa191 | 4,821 | #!/bin/bash
set -e
USER="default"
while test $# -gt 0; do
case "$1" in
-h|--help)
echo "This is a script to measure performance of a clickhouse query against a live database instance."
echo ""
echo "USAGE:"
echo " measure.sh [FLAGS]"
echo ""
echo "EXAMPLE:"
echo " ... |
b836b4ac012ea3295f50aa5579ddf60ad3276ccb | 3,270 | #!/bin/bash
# Configuration variables
# Scale factor. 1 = 1GB, 10 = 10GB. TPC-H has rules about which scale factors
# are considered valid for comparative purposes.
SCALE=25 #GB
# Other configuration variables
BASEDIR=$(dirname "$0")
BASEDIR=$(cd "$BASEDIR"; pwd)
TPCHTMP=$HOME/tpch/tpch_tmp
PGDATADIR=$HOME/tpch/pgdat... |
a420bf174a98b47be462bdd7d2aad313b27b3833 | 1,294 | #!/bin/bash
if [[ `git status --porcelain` ]]; then
# changes
>&2 echo "You have unstaged changes. Please commit before you run this."
exit 1
fi
# REPO=git@github.com:Blizzard/node-rdkafka.git
REPO=https://github.com/Blizzard/node-rdkafka.git
git remote add deploy $REPO
# Get the most recent stuff if we don't... |
ba6abea97c4f84bd8e9098eb114d6de5cee65975 | 46 | DJANGO_DEBUG=
DJANGO_SECRET_KEY=
DATABASE_URL= |
1142c73f43b2f7ac39dbcdd9c86f114d1d5436bf | 168 | #!/usr/bin/env bash
sudo apt-get install python3
sudo apt-get install python3-pip
sudo apt-get install python-psycopg2
pip3 install psycopg2-binary
pip3 install pandas
|
55a61e89cb5de00c0f7fb970dd9e43f161415a8d | 7,412 | #!/bin/bash
## This is the iscsi-specific configuration script
## to enable setup of iscsi-backed SRs
if [ -z ${MY_HOSTNAME} ]; then
MY_HOSTNAME=`hostname`
fi
ISCSIADM="/sbin/iscsiadm"
INITIATORNAME_FILE="/etc/iscsi/initiatorname.iscsi"
# Wait for device to appear
iqn_wait()
{
TARGET_IQN=$1
count=0
w... |
8210308ab06d9c90bdaba826a68954a523017806 | 55 | #!/bin/sh
amixer -D pulse sset Master 5%- > /dev/null
|
50845f062d530fc34479c4b34fe7ba9a76352e3a | 4,309 | #!/bin/sh
set -e
dhit_libkpathsea_configured ()
{
kpsewhich --version >/dev/null 2>&1
}
case "$1" in
configure)
# dealing with doc link changes, bug #716892
# tex-common >=4 removes the link
# /usr/share/texmf/doc -> /usr/share/doc/texmf
# In addition, the preinst of tex-common renames the li... |
5a7115efdcfbc6dbe8df03cf7e75e23e0abf12ac | 2,701 | #!/bin/bash
echo "installing wiring-pi"
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
cd ..
rm -rf wiringPi
IRIN=15
IROUT=18
RFIN=2
RFOUT=0
echo "Do you want to install the components for transmitting and receiving infrared signals?"
echo "Enter 'skip' if you want to skip this step, otherwise press an... |
d4eed852ec113848c847463bb83f215a7a24eae9 | 50 | #!/bin/bash
echo 'VNCMain Started'
tail -n0 -f $0
|
b7d9448b0e31e645a617512ca8df2877bcb0ce06 | 498 | #!/bin/bash
echo "This will take a while ... grab a coffee/tea/water/cocktail"
mkdir -p logs
N_JOBS=4
i=0
for var in MET HT ST WPT lepton_pt abs_lepton_eta NJets; do
echo "Getting ttbar normalisation: $var"
nohup time python dps/analysis/xsection/01_get_ttjet_normalisation.py -v $var --visiblePS &> logs/01_${var}_b... |
5db6aa683e717988efcf6706d1c4844fef7d6012 | 419 | #!/bin/sh
set -e
cd "$HOME"
world=$HOME/etc/cabal/world
test -f "$world" || exit 0
cmd=$1
shift
case $cmd in
(install|update)
cabal v2-update
while read -u 3 name
do
case $name in
(--*)
continue
;;
(*/*)
test -d "$name" || continue
(cd "$name" && cabal v2-clean && rm -f .ghc.environment.* && ... |
4ca2d8bccad0ff51f17066fe40b8c6c3bd9982b1 | 1,240 | #!/bin/bash
# a simple bash script for running tests on calc
# can take a test file as input and will run tests on
# that file
function pause()
{
read -p "$*"
}
echo "Now running tests for calc";
if [ -z ${1+x} ];
then
echo "Using test input from file 'test/input/test-file1.txt'";
echo "Inpu... |
fd735b8f990885eeb2a7e30fcd8cbc5818636af0 | 732 | #!/bin/bash
DOT_FILES=(bashrc vimshrc bash_profile screenrc nvimrc tmux.conf latexmkrc)
NVIM_DIR="${HOME}/.config/nvim"
VIM_DIR="${HOME}/.vim"
for file in ${DOT_FILES[@]}
do
ln -is $HOME/dotf/$file $HOME/.$file
done
mkdir -p $HOME/.config/fish
ln -is $HOME/dotf/config.fish $HOME/.config/fish/config.fish
ln -is $HO... |
eadb0deb6d4dc0f10456858e7104147b906de30f | 83 | #!/bin/bash
flex wc.l
gcc -o wc lex.yy.c -ll -std=gnu89
echo "1234567890" | ./wc |
273addf36980e798002a8e58880959c74522fa2b | 7,756 | #!/bin/bash
#Function1
whatisclass(){
if [ "$ip1" -le "127" ]; then
class=$(echo '''A''')
usedfor=$(echo '''Very large networks''')
elif [ "$ip1" -le "191" ]; then
class=$(echo '''B''')
usedfor=$(echo '''Medium networks''')
elif [ "$ip1" -le "223" ]; then
class=$(echo '''C''')
... |
315191b199773fd377137e9691c12c7a5f7aace7 | 80 | echo " hai everyone "
echo " to day i am start new Project "
echo " modified "
|
c71eeb7c04309909631ce45e9f05be140daabccb | 67 | #!/bin/bash
cd suitecrm-analytics/
./start-suitecrm-analytics.sh
|
7d8439b01f3ceeedf0994e981dba4d11de8e1038 | 198 | #!/usr/bin/env bash
cd ~
if [ -f '.env/CARTRIDGE_VERSION_2' ]; then
if [ "$1" == "INCLUDE_GIT" ]; then
gear restore --restore-git-repo
else
gear restore
fi
else
restore.sh "$@"
fi
|
67e2b89548551fd167a193e44f754ac659ac355b | 418 | # Use this script if you don't have a container registry and just
# want to get your image onto your k8s nodes directory.
#
myImage=kube-mc:0.1
docker save $myImage -o /tmp/o.tar
mv /tmp/o.tar .
tar czvf t.tgz ./o.tar
for i in kube-test-10 ; do
scp -i junk.rsa t.tgz ubuntu@$i:/tmp
ssh -i junk.rsa ubuntu@$i "cd /t... |
9a3dffbe73dcaf0ff0c3313e45ec4880f00eb5d3 | 267 | #!/usr/bin/env bash
# This is a Bash script that displays the content of the current directory list
# format where only the part of the name after the first dash is displayed
# * means current directory in bash script
for f in *
do
echo "$f" | cut -d "-" -f2
done
|
181f96beb841e463510f77f4b12b96ef9af3bbed | 215 | #!/usr/bin/env bash
# remove old search indexes
rm docs/en.search*
# build docs
hugo -d ./docs
# add changes
git add docs/.
# autocommit
git commit -m "autocommit publish docs"
# publish by pushing changes
git push |
919d6b6246b1bc26f5a347f055bccd192bbe7f97 | 388 | wget 'https://www.dropbox.com/s/oxld3vcdwxwpqyp/generator_537.pth.tar?dl=1' -O models/dcgan/generator_537.pth.tar
wget 'https://www.dropbox.com/s/zz6reezhuy4hu3a/generator_603.pth.tar?dl=1' -O models/acgan/generator_603.pth.tar
python3 generate_image.py --output_dir $1 --dcgan_model models/dcgan/generator_537.pth.tar -... |
0dde96a175ea197cb2a559275403b79645bd8e2f | 1,027 | #!/bin/ksh
###############################################################
# Author: Habib Rangoonwala
# Creation Date: 03-May-2012
# Updation Date: 03-May-2012
###############################################################
hFile='gcstat.txt'
hJavaVendor=`java -version 2>&1 |grep -i jroc... |
e769eab8cf6fa3951f8b350e7d6a0d1a9e35d233 | 1,168 | sudo apt-get update
sudo apt-get install mysql-server
sudo apt-get install php-mysql php-fpm monit
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:nginx/stable
sudo apt-get install nginx
sudo systemctl start nginx php7.4-fpm monit
sudo systemctl enable mysql nginx php7.4-fpm monit
sudo mv n... |
20ac9e1a56e88779f4c389f4d328222da1b817df | 226 | #!/bin/bash
#echo 'Input a file name'
#read input
file=$1
while read line; do
echo $line
done < $file
cat $file
cde extract $file -o $file.json
#cde tokenize sentences $file
#cde tokenize words $file
#cde pos tag $file |
77478a2ebfa8d985e46818d2dc7626a9e6a68ccf | 2,741 | #!/bin/sh
#
# Updates all subprojects with the correct (and most recent) plugins
# and also updates the platforms; run after a cordova update and/or
# plugin update. TEST AFTER: things are almost certainly to break.
#
echo "Updating all subprojects with updated platforms and plugins..."
cd ch5
echo "... ${PWD##*/}"
ech... |
dec305d0980c1a8536b2adebf1d2aed38d86dcbd | 157 | #!/bin/sh -eux
ub_compile \
-Dtests=false \
-Ddoxygen=false \
-Dsamplerate=disabled \
-Dspeex=enabled \
-Dudevrulesdir=/usr/lib/udev/rules.d/
|
426ae46a66fab5d667dc191b6d7450d5b95836f8 | 434 | #!/bin/sh
install="false"; pull="false"
for var in "$@"; do
if [ "$var" = "-install" ]; then install="true"
elif [ "$var" = "-pull" ]; then pull="true"
fi; done
$pull && bash -c "cd ../; git pull"
$install && bash -c "cd ../; npm i"
gnome-terminal --geometry 0 50 10 10 -e "bash -c 'cd ../; npm start; exec $... |
43c0759a586c468b9475768f68df557662ffafc6 | 1,886 | #!/bin/bash
#
# Prepare the global environments used for TCNG build tools.
#
# NOTE: the followings can be pre-configured, otherwise default will be used:
# - $WORKSPACE
# - $TCNG_REPO_ASIC
# - $TCNG_REPO_MIDDLEWARE
# - $TCNG_REPO_TUNETSYS
# - source $TCNG_CFG_DIR/cfg.tcng/source_me_first_tcng_env.sh
#
... |
9e81b12092e3b3bd2376eef5443637d2b891d270 | 3,114 | #!/usr/bin/env bash
# Options
VERSION=${VERSION:-latest}
# SageTV Version
SAGE_VERSION=""
if [ "${VERSION}" = "latest" ] ; then
SAGE_VERSION=`curl https://github.com/OpenSageTV/sagetv-linux/releases/latest | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' | egrep -e '9\.[0-9]+' | sort -V | tail -1`
els... |
57c61ee42867803d3b7610d0e50e1543bb6f3e16 | 4,031 | #!/bin/bash
source "$PWD/../../lib/dash_functions.sh"
print_cgi_headers
Size="Default size" ; Image="Source Image" ; Cloud="Cloud" ; Region="Region" ; Role="Default Role"
open_cluster "Cluster"
print_cluster_inline "Size" "Image" "Cloud" "Region" "Role"
close_cluster_line
print_timeline "Server"
close_cluster
# lo... |
a3aec1be880413684835b2815817b4f744fa9c81 | 179 | #!/bin/bash
# Atualiza SO
yum update -y
# Instala Docker
yum install docker -y
# Start docker
service docker start
# Inicia container com apache
docker run -p 80:80 -d httpd
|
f852e47f7a7b1512de462381c3faf14363bc1755 | 104 | #!/bin/bash
chown -R template:template /data/nr
chown -R template:template /root
uwsgi --ini uwsgi.ini
|
84f734e2f383eaa59cf01885f39b5fd79acad913 | 342 | #!/bin/sh
# unzip of downloaded CNDA files creates unusable session folder names
# in the form NN-blerg (e.g., 7-T1w_MPR). Run this from on top of
# the directory tree to fix (e.g., cd to PL123346/scans)
for FILE in *
do
if [ -d ${FILE} ]; then
NEWNAME=`echo ${FILE} | cut -d- -f 1`
mv -v "${FILE}" "$... |
35d58cc4e28173f6af6a0ee1dc1270eee63f87f8 | 716 | #!/bin/bash
# Skript which is executed when the powerbutton is pressed
source /_config/bin/g2v_funcs.sh
EJECT_CMD="/_config/bin/eject.sh"
if [ "$(pidof vdr)" != "" ] ; then
HALT_CMD="/usr/bin/svdrpsend.sh HITK power"
else
HALT_CMD="shutdown -r now"
fi
#set -x
CMD="$HALT_CMD"
if [ "${PB_FUNCTION}" = "EJECT" ] ; ... |
62593405e629b32ad73b898a8d3725f10e65bd41 | 10,839 | #!/bin/bash
set_settings() {
# check for settings file
if [[ ! -f settings ]]
then
echo "'settings' file is missing!!!"
echo "Rename/copy 'settings.tpl' file to 'settings', then set S3 region, and AWS keys there"
exit 0
fi
# Overall Workflow settings
# S3 region
# AWS credentials
source settings
}
install() {... |
495c301e8c7e5e1d4b8d4617350a6431800800da | 398 | #!/bin/sh
until $(curl --output /dev/null --silent --head --fail $ARANGO_URL); do
sleep 5
done
zip -rq app.zip /app
FILENAME=$(curl --silent -F file=@app.zip "$ARANGO_URL/_db/_system/_api/upload?multipart=true" | jq -r '.filename')
curl --silent -X PUT -H "Content-Type: application/json" -d '{"appInfo":"'"$FILENAME... |
e6116f8115c6a5e5441a92ce33a79df4083d1ce8 | 354 | #!/bin/bash
#guess a number
#author zrz 2019 0815
RIGHT=`expr $RANDOM % 100`
i=0
while true
do
read -p "please input a number(0-99):" GUESS
let i++
if [ $GUESS -eq $RIGHT ];then
echo "恭喜你猜对了"
echo "你一共猜了$i次"
exit
elif [ $GUESS -lt $RIGHT ];then
echo "猜小了,再试试:"
else
echo "猜大了,再试试:"
fi
done
|
0cbbccf52eda76ba691934e040a5654a6544b1a6 | 826 | # Contributor: Tilman Blumenbach <tilman (at) ax86 (dot) net>
# Maintainer: moostik <mooostik_at_gmail.com>
pkgname='geonext'
pkgver=1.74
pkgrel=1
pkgdesc='Dynamic mathematics software, tool for creating geometric constructions.'
arch=('any')
url='http://geonext.uni-bayreuth.de'
license=('GPL')
depends=('java-runtime'... |
d522376944010ca3ff76524fc1fd4994ab8f375e | 273 | #!/bin/bash
# go get github.com/google/pprof
go get github.com/gomodule/redigo/redis
go get github.com/go-martini/martini
go get github.com/go-sql-driver/mysql
go get github.com/martini-contrib/render
go get github.com/martini-contrib/sessions
go build -o golang-webapp .
|
c38f761babf4e8451a3465f2eb6107fed63c0469 | 61 | cmake-build-debug/task4.exe
read -p "Press enter to continue" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.