blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
799b5a2f9a72d9801c7a4318b1c62139ce4a6d48
1,311
#!/usr/bin/env bash mkdir -p ./pkg/contractlib/rarity-contract/rarity mkdir -p ./pkg/contractlib/rarity-contract/attributes mkdir -p ./pkg/contractlib/rarity-contract/gold mkdir -p ./pkg/contractlib/rarity-contract/skills mkdir -p ./pkg/contractlib/rarity-contract/craft-i mkdir -p ./pkg/contractlib/rarity-contract/cra...
cc1efdb9df3369b0351acee1c7dfbe78a59f5796
4,734
#!/bin/bash set -e PKG_DIR=openldap SRC_DIR=${SRC_ARCHIVE}${SRC_SUBDIRS:+/${PKG_DIR}} BUILD_DIR=${BUILD_ROOT}${BUILD_SUBDIRS:+/${PKG_DIR}} mkdir -p $SRC_DIR mkdir -p $BUILD_DIR cd $SRC_DIR PACKAGE=openldap-2.4.45.tgz if [[ ! -f $PACKAGE ]] ; then if [[ -f $SRC_ARCHIVE/$PACKAGE ]] ; then cp $SRC_ARCHIVE/$PACKAG...
049c1bf2a11c78029ca85bcb00dc7ef0f66e1d9f
874
#!/bin/bash function is_ok { local url="$1" local auth=${2:-false} local auth_opt="" if $auth; then auth_opt="--user bigfix:bigfix" fi local status=`curl --insecure $auth_opt $url -s -o /dev/null -w "%{http_code}"` local retry=0 while [[ "$status" -ne 200 && "$retry" -lt 3 ]]; do sleep 15 ((retry++)) ...
722c934eed160ca2c6f01703b2b3648f5ecc68a0
584
#!/tools/bin/bash set -e cd /tmp tar xvf /sources/bzip2-1.0.6.tar.gz -C /tmp echo "Successfully extract bzip2-1.0.6.tar.gz" cd /tmp/bzip2-1.0.6 patch -Np1 -i /sources/bzip2-1.0.6-install_docs-1.patch sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile make -f Makef...
7c8cfb58136f37b38b613bf1bc69786f36634397
171
#! /bin/bash set -x set -e set -o pipefail cd $LFS/sources rm -rfv gawk-5.0.1 tar -xvf gawk-5.0.1.tar.xz cd gawk-5.0.1 ./configure --prefix=/tools make make install
c1fca6eb952d352c9d2ce161955b42c559c892cf
92
#!/bin/bash scp /home/debian/BBBIOlib/Demo/Demo_US/test.jpeg oliver@$1:/home/oliver/data/
e275fa296cff7e68f260e6534f579491f9cf8a91
4,740
#!/usr/bin/env bash # see https://github.com/wp-cli/wp-cli/blob/master/templates/install-wp-tests.sh if [ $# -lt 3 ]; then echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]" exit 1 fi DB_NAME=$1 DB_USER=$2 DB_PASS=$3 DB_HOST=${4-localhost} WP_VERSION=${5-latest} # TODO: allow environment vars fo...
60d81e292f006c3cf2e8d6ad05f95cebd9e69cd8
195
//geonames api geonames=jmccleary //weatherbit api weatherbit=5921086fa74d4d36a38bc3652d4bfca3 //pixabay api pixabay=20873600-37a38bfa9e5523a50f7de6b3f API_KEY=273e6de6b60a71fdf3035f9d7675054e
a72a5b08360b33fbc3143f8c9946245b5c6e0af0
594
#!/bin/sh # -*- coding: utf-8 -*- """ Created on Thu Nov 26 23:44:11 2020 Second example of bash function @author: esteban """ myfunc() { echo "myfunc was called as : $@" x=2 } ### Main script starts here echo "Script was called with $@" x=1 echo "x is $x" myfunc 1 2 3 | tee out.log echo "x is $x" echo "Script...
e85c8f4cdf194d4076cf76b2b802675ea2f9cb03
36
#!/bin/bash export LANGUAGE="utf-8"
3d9e6d2a24535b0e08b5ea6d11662c0f9dbce099
340
for jar in `ls [bg]*.jar ` do printf "_________ $jar _________\n\n" javac -d "./bin/" -cp "./lib/hamcrest-core-1.3.jar:./lib/junit-4.13.jar:./lib/$jar" "./src/text/TestFlushLeft.java" java -cp "./lib/hamcrest-core-1.3.jar:./lib/junit-4.13.jar:./bin/:./lib/$jar" org.junit.runner.JUnitCore text.TestFlushLeft ...
e1057cdd8927d081f42847dbec8fa622c4a0a793
4,526
#!/bin/sh -e if ! [ -e ./package.json ] ; then echo "Not in firenvim repository. Aborting." exit 1 fi if [ "$1" = "" ] ; then echo "No new version specified. Aborting." exit 1 fi if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ] ; then echo "Not on master. Aborting." ...
e6283a124efde9572c0ac5c3f937172f3066492a
152
DATABSE = blog DATABSE_HOST = localhost DATABSE_USER = root DATABSE_PASSWORD = JWT_SECRET = secretpassword JWT_EXPIRES_IN = 90d JWT_COOKIE_EXPIRES = 90
cfa36423f55d347e9b111d015af286d37b230b12
4,928
set -ex ADVERT_DB_INSTANCE_NAME="advert-db-instance" PAGE_DB_INSTANCE_NAME="page-db-instance" DB_PASSWORD="QUBccProject" DB_TEIR="db-n1-standard-2" REGION="europe-west2" ZONE="europe-west2-a" #creating sql instance for advert db gcloud sql instances create $ADVERT_DB_INSTANCE_NAME \ --tier="db-n1-standard-2" \ ...
5fe8327f7fb8a00e27c890bd23b8f5abeaf07e66
109
if [ -f /etc/lftp.conf ] && cmp -s /etc/defaults/etc/lftp.conf /etc/lftp.conf then rm /etc/lftp.conf fi
357edde240e32764777c964357b55ec267ec6283
429
#!/bin/bash -e install -v -d "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d" install -v -m 644 files/wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/" sed "s/SSID_TOKEN/${WIFI_SSID}/" files/wpa_supplicant.tmpl | sed "s/PSK_TOKEN/${WIFI_PSK}/" > files/wpa_supplicant.conf install -v -d "${ROOT...
1de1688cf90e7ba2c29336606d24bd4a0aa781a9
1,230
#!/bin/sh # Use vfs_getname probe to get syscall args filenames # Uses the 'perf test shell' library to add probe:vfs_getname to the system # then use it with 'perf record' using 'touch' to write to a temp file, then # checks that that was captured by the vfs_getname probe in the generated # perf.data file, with the t...
417cb0a411760f1787e890fe9f0d5753fe74b36f
88
#!/bin/sh cat testTime | time ../TextMiningApp ../dico.bin > /dev/null wc -l testTime
6e0bf7af3717ea577ad47badd5da3fa828a6f17f
2,024
#!/bin/bash source $GPAIR_CONSTANTS_PATH source $GPAIR_OUTPUTS_PATH source $GPAIR_UTILS_PATH echo-set-pair-usage() { echo -e "\n $(output::bold::green " USAGE:") gpair set <initials> [options] \n" echo -e " Sets your current pair.\n" echo -e " $(output::bold::green "[OPTIONS]:")\n" echo -e " $(output::help_f...
805fcde9544c679dc10a6a5dca20208768841399
91
#!/bin/bash docker run --rm -w /src -v $(pwd):/src gradle:6-jdk11 gradle build --no-daemon
2ba100f0e03fc754f7cd200c7e75478079bf97a4
412
#!/bin/bash set -x set -e if [ -z "${GB_ROOT_USER_PASSWORD}" ]; then echo 'skipping root user' exit 0 fi chroot ${GB_ROOT} /bin/bash <<-EOF source /etc/profile set -x set -e # do not enforce password qulity checks sed -i 's/enforce=.*/enforce=none/' /etc/security/passwdqc.conf if printenv GB_ROOT_USER_PASSWORD ...
7b392340d6bd3824451228f1f29662e547bf9b00
4,784
#!/bin/sh # If any command fails, cause the script to fail and exit with non-zero status. set -e # If any variable is used but unset, cause the script to fail and exit with non-zero status. set -u errorHandler () { errorCode=$? echo "$0:${BASH_LINENO[0]} error: Command failed: '$BASH_COMMAND'" exit $error...
f88c0474598fb2687fc90e37d4c3d872dae6dfcc
352
#!/bin/bash JAILS=$(fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g') INDEX=1 for JAIL in $JAILS do echo "" echo -n "${INDEX}) " fail2ban-client status $JAIL ((INDEX++)) done echo "" echo "$(find /var/log/syslog -type f -mtime -1 -exec grep "UFW BLOCK" {} \; | wc -l) blocks...
d8bd9aa4363ff9ba54d4f6672da10dcf25328421
109
FLASK_APP=run.py FLASK_DEBUG=1 SECRET_KEY=thisissupposedtobeasecretbutisit DATABASE_URL=sqlite:///database.db
18af81c694c333791c0da3db8e2d9ed33d264b1a
278
#! /usr/bin/env bash source "../../test-helper.sh" source "../../../src/lib/helpers/trim.sh" # # trim() tests # assert 'trim " foo bar "' "foo bar" assert 'trim "foo bar "' "foo bar" assert 'trim " foo bar"' "foo bar" assert 'trim "foo bar"' "foo bar" assert_end "trim()"
b6831a697573d8253a3122cfdbcfcb14e490f680
77
for file in output*.txt do cp $file $(echo $(basename $file .txt)).bak done
4cda149b2c09d56097c8ccc527fec853c164f6e5
541
#!/bin/bash function set_pkg_env { PKG_NAME="glib" PKG_VERSION="2.42.2" PKG_SRC_DIR="${PKG_NAME}-${PKG_VERSION}" PKG_SRC_FILE="${PKG_SRC_DIR}.tar.xz" PKG_SRC_URL="http://ftp.gnome.org/pub/gnome/sources/glib/2.42/${PKG_SRC_FILE}" # For now it is assumed that glib2-devel is also installed on the # build system....
990d103ac467e411ebdffaa3b6d2c991df41b30b
3,072
#!/bin/bash # modified from # https://github.com/paulczar/docker-wordpress/blob/master/docker # DOCKER_IMAGE=essa/mysql-repl echo echo "Create MySQL Tier" echo "-----------------" echo "* Create MySQL01" if [ -d data/mysql ]; then echo "using existing DB" else mkdir -p data/mysql cp ./initialize_db.sh data/mysq...
9f493f1a042217df6ee9b28d376eadeb86c41002
17,192
#! /bin/bash if [ $# -lt 2 ]; then echo "Usage: nps_check.sh nps_command ..." echo "nps_command:" echo " stdgt traindir traintag" echo " init workdir" echo " last workdir winshift1 winshift2 ..." echo " score workdir valdir valtag winshift1 winshift2 ..." echo "" echo "Not...
75ccea7e3f9883eea96e90ade3e499b4b7898367
41
#!/bin/bash rdate -o 9090 -p 127.0.0.1
79d1cedcacb5181dfc62d1553ac59bbdac87d93b
1,204
baudrate 115200 board khadas-vim bootcmd run m_autoboot; bootenv uEnv.txt bootdelay 5 bootscr boot.scr console ttyS0 cpu s905x dbglevel 0 errlevel 0 fdt kvim.dtb fdt_addr_r 0x01000000 fdt_high 0x20000000 ramdisk kernel/uInitrd ramdisk_addr_r 0x13000000 initrd_high 0x60000000 kernel Image kernel_addr_r 0x010800...
3532ce9c3506860b21fad591185310cad756b30a
128
cat fulltri.csv | grep blog > blogtri.csv cat fulltri.csv | grep news > newstri.csv cat fulltri.csv | grep tweet > tweettri.csv
5aa334881dbbf545160b95a0d1805d217b033e99
869
#!/bin/bash set -e set -o pipefail set -o xtrace export NIM_ROOT=$HOME/Nim compile() { ./bin/nim c koch ./koch boot -d:release ./koch nimble } # If Nim and nimble are still cached from the last time if [ -x "$NIM_ROOT/bin/nim" ]; then # Check if the Nim cache is older than 7 days if ! find "$NI...
b3657e82c616ac13dd7c6280657928dba12334d5
2,083
#!/bin/sh # Verify that chmod works correctly with odd option combinations. if test "$VERBOSE" = yes; then set -x chmod --version fi . $srcdir/../lang-default pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 trap '(exit $?); exit ...
bda44db4e22ea44d9acfd71911b0900f5f022947
742
#!/bin/bash bundle check || bundle install --binstubs="$BUNDLE_BIN" if [ -z $1 ]; then if [ -f tmp/pids/server.pid ]; then echo "Stopping old server processes..." kill -SIGINT "$(cat tmp/pids/server.pid)" >/dev/null 2>&1 rm tmp/pids/server.pid fi echo "Starting rails server in $RAILS_ENV environment...
9a72a284e4337554988d157e7946750901010831
379
#!/bin/bash # credit: https://pracucci.com/display-the-current-kubelet-context-in-the-bash-prompt.html __kube_ps1() { if [ -f ~/.kube/config ]; then CO="current-context:" # Get current context CONTEXT=$(cat ~/.kube/config | grep ${CO} | sed "s/${CO} //") if [ -n "$CONTEXT" ]; the...
9dcfc8f06256dd319e678d601931abc177af6d2f
523
#!/bin/bash output="nodejs_php.js" echo "Starting to compile all Functions, it may take a minute or two" echo "module.exports = { " > $output for dir in `ls functions`;do for file in `ls functions/$dir`;do #sed 's/function\s\(.*\)(/\1: function(/g' functions/$dir/$file >> $output sed '0,/function/s/function\s\(....
3c5e4ee0a72785e9ad7b2066fe1eaa951ae46a37
156
export GRASS_BATCH_JOB=/var/www/gis_spread/split_spread/files/admin_remove_rast.sh sh /usr/bin/grass63 -text /var/www/gis_spread/Splitsko_dalmatinska/WebGis
9cd2b4707fb5a77fed675f0751578c3e01a49d62
81
echo "hello" whoami echo "testpurpose" echo "hai rajesh this is for webhookhjki"
eac79ecc2f1804902de92a64bbf8abc3dc1d77e6
5,653
#find candidate items #input: file itemuri.txt output: folder itemcandidate (1000 files for 1000 target items) mkdir itemcandidate for i in $(cat itemuri); do j=$(echo ${i:27:11}) curl -G 'http://192.168.146.1:9999/blazegraph/namespace/data00/sparql' \ --header "Accept: text/csv" \ --data-urlencode query='...
db01c6d2ad51f0f0160f9b88d06e16434095daab
27
django-admin loaddata blog
e581b01755c74021e5d41d08f35579a503c3537e
381
#!/bin/sh #set -x openocd -f interface/picoprobe.cfg \ -f target/rp2040.cfg \ -c "init" \ -c "echo { ____ _}" \ -c "echo {| _ \ ___ ___ ___| |_}" \ -c "echo {| |_) / _ \/ __|/ _ \ __|}" \ -c "echo {| _ < __/\__ \ __/ |_}" \ -c "echo {|_| \_\_...
69d7dcbbd97c9521050fa7eb136344c58a315409
125
#!/bin/sh #exec /code/docker/wait-for-it.sh db:5432 -- python manage.py migrate --noinput python manage.py initdb exec "$@"
ac1f56b2b3a8edcde4ea8dbc6b1ccf0302e7e9eb
183
#!/bin/bash sudo aptitude install expat curl libcurl4-gnutls-dev libcurl4-openssl-dev tar -xvjf git-1.7.2.3.tar.bz2 cd git-1.7.2.3 ./configure --prefix=/ make all sudo make install
fd6045f8cc0903d9e897f9682903d6a46e2f9998
2,191
#!/bin/bash # # Copyright (C) 2013-2021 Expedia Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
7ea1a207934b3d56f0f0db01b61662feec1e4f07
739
# Maintainer: Junfeng Qiao <qiaojunfeng at outlook.com> # Contributor: # https://github.com/qiaojunfeng/texlive-fontconfig pkgname=texlive-fontconfig pkgdesc="" pkgver=20190225 pkgrel=1 arch=(any) url='https://github.com/qiaojunfeng/texlive-fontconfig' license=(custom) #depends=(fontconfig xorg-fonts-encodings xorg-...
b5da81a03d0330194e9f5124009e1308808189e6
849
#!/bin/bash # Script that use pactl to control volume and set volume limitation. Used from i3 config passing arguments if [[ $1 == "inc" ]]; then # volume=`/usr/lib/i3blocks/volume |sed s/%//` volume=`$HOME/Documents/Script/i3block/volume |sed s/%//` echo $volume if [ "$volume" -lt 100 ]; then ...
f692a12d14a41fa7669e9f379c869f8bc9b940fc
666
#!/usr/bin/env bats load ../test_helper @test "stacker build - missing environment key" { environment() { cat <<EOF vpc_private_subnets: 10.128.8.0/22,10.128.12.0/22,10.128.16.0/22,10.128.20.0/22 EOF } config() { cat <<EOF namespace: ${STACKER_NAMESPACE} stacks: - name: vpc class_path: stacker.te...
84299fad7d206e4c4e51e5ab989a71dd95d7a66c
425
#!/bin/bash # Wrapper script for starting & stopping frontier squid from supervisord # stop squid if supervisord sends a TERM signal trap "/etc/init.d/frontier-squid stop" TERM # we tell squid to run in the foreground, but by telling the # shell to start it in the background and waiting for it we # prevent the sh...
9ab05c1d2c25cc2c309c610cdf334f0a31b3d56e
412
#!/bin/sh GPIO_S88_KEY=gpio_s88 GPIO_S88_START=startmrgpios88 MRSYSTEM_CFG_FILE=/etc/mrsystem MRSTART_CFG_FILE=/etc/mrstart GPIO_S88_PARAM=`fgrep $GPIO_S88_KEY $MRSYSTEM_CFG_FILE | cut -f 2 -d "\""` GPIO_S88_START=`fgrep $GPIO_S88_START MRSTART_CFG_FILE | cut -f 2 -d "\""` if [ "x$GPIO_S88_START" = xstop" ] ; then s...
3742d485a48200e2b5ec64ef7faeab5b1ad51ce4
314
SERVER=127.0.0.1:5000 DATABASE_FILE="my.db" RUST_LOG=debug JWT_EXPIRATION_IN_H=12 # add a good secret here JWT_KEY= #RUST_BACKTRACE=1 LOGIN=your_user # create a pw with # htpasswd -nBC 12 "" | tr -d ':\n # use single quotes to prevent variable substituation! PASSWORD='?' STATIC_WEBAPP_FOLDER = "webapp_build"
15f124d2a5b6965f7d193a691a30c8fdcd5e85c4
691
#!/system/bin/sh cr_by="@Greyhat666" echo " Starting Tool [*] [*]" echo " Installing Requirements [ * ] [ * ]" echo "Installing ...." echo "successfully Installed [ + ] [ + ] " echo "Enter Your Username" read x print "Hello $x, Thanks For Using This Tool. This Tool Is created by $cr_by" internetconn() { if ping -c ...
e3779cb7157dd072bc76bea19040228f8b69cb7b
67
SERVER_PORT=8080 LOG_API_FILE=api.log LOG_REQUEST_FILE=request.log
71e5055a10476c284ad0d39000a41024e91c44d5
4,468
#!/bin/bash # # Install gcloud SDK and related components. UTIL_DIR="${UTIL_DIR:-${HOME}/profile.d/util}" GCLOUD_CONFIG_PATH="${HOME}/profile.d/config/gcloud.sh" GCLOUD_SDK_DIR="${GCLOUD_SDK_DIR:-${HOME}/google-cloud-sdk}" SDK="google-cloud-sdk-290.0.1-darwin-x86_64.tar.gz" # shellcheck source=./profile.d/util/log.sh...
01a7d527e741d3c7fb9ada156cf188205d1f7ed1
96
#!/bin/sh tmux split-window -v tmux split-window -h tmux select-pane -U tmux resize-pane -D 16
85d5b42eab017c4c6472bed9f303610d6e629500
244
#!/bin/sh # Check if a newer docker image is available. # Pull and restart if so. # Expects running service, will start it if not! # Service will restart! docker-compose pull docker-compose up --force-recreate --build -d docker image prune -f
75b61c42d6570719ce7803034e9785add4d8dd93
290
#!/bin/bash sum=0 #按规定的步数进行跳跃的方式实现列表for循环,例如计算1~100内所有的奇数之和 for i in {1..100..2} do let "sum+=i" done echo "sum=$sum" for file in $( ls ) #for file in * do echo "file: $file" done
ad89ea8e7f2220c17747374a7d7884a8ed10f598
316
#!/bin/bash #paras are group, user, codepath if [ $# -ne 3 ] then exit 1 fi chown $2:$1 -R $3 chown root:$1 $3/etc chown root:$1 $3/etc/hadoop chown root:$1 $3/etc/hadoop/container-executor.cfg chown root:$1 $3 chown root:$1 $3/../ chown root:$1 $3/bin/container-executor chmod 6150 $3/bin/container-executor
94a4ae49cabb2623193d594b51beb216c082f819
82
#!/bin/sh git config user.email prismabots@gmail.com git config user.name Prismo
998671f547fb897096086876956e34327c893be2
5,065
#!/bin/bash INSTALL_ROOT=$(readlink -f $(dirname "${BASH_SOURCE}")/..) echo "INSTALLER_ROOT: $INSTALL_ROOT" source "$INSTALL_ROOT/shell/func.sh" source "$INSTALL_ROOT/shell/master.properties" step=1 echo -e "\n******** step $step network 网络相关问题配置 ********" echo "******** 配置转发相关参数 generate /etc/sysctl.d/k8s.conf ****...
415ed3b1b9bcbdbceeb3b72418ef4da47a49c20b
2,896
#!/bin/bash export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/gy/usr/Linux/64/gcc7/lib MODEL_FOLD=./models # /home/gy/share/workfile/shapnet/ShapeNetSemv0 # ./models BIN=./scan_prediction ICP_DIR=./shn_icp SPHERE=./sphere-coarse.binary.obj ReportFile=./report.txt LOG_FILE=log.txt OBJ=$1 function sum(){ input=($*) ...
c1fbb622dea5b16939c2dc1ae47e10b5fa4f9468
94
java -Djava.library.path=/usr/local/lib -cp ".:FDxSDKPro.jar" SecuGen.FDxSDKPro.samples.JSGD
a2f02739ae33b847a7520cf0fda7da4353be242e
199
#!/bin/bash source "/vagrant/scripts/common.sh" function disableFirewall { echo "disabling firewall" systemctl stop firewalld systemctl disable firewalld } echo "setup centos" disableFirewall
06d3a11055043bfd9efb30e5aa1b1e82adbf0e8e
1,006
#!/bin/bash sudo apt-get update sudo apt-get install -y g++ nfs-common MINICONDA=https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh QLIB_CLIENT=https://github.com/microsoft/qlib.git STOCK_DATA_DIR=/data/stock_data/qlib_data CODE_DIR=$HOME/"code" DOWNLOADS_DIR=$HOME/"downloads" CONDA_DIR=$HOME/"mini...
9d7fb96652d1bd8be5e52c473f48a45a0a44ec1e
224
#!/usr/bin/expect # A Bash script to test the join room and leave room features spawn ./index.js expect "Nickname:" send "Joy" #expect "What would you like to do?" #send "1" # turn it back over to interactive user interact
2abf3bd481771aa3b601034ba60af3b2cf18d110
1,239
#!/bin/sh if [ -z "$1" ] # No argument passed? then echo "Usage: qoqt.sh 'executable_file_name'" ; return 1 fi SAVE_DIR=`pwd` cd /mnt/us/cr3 if [ ! -f "$1" ] # Check if file exists and it is a regular one then echo "goqt: "$1" -- regular file does not exist." ; exit 1 fi if [ ! -x "$1" ] then ...
d0903cdb5889ef1e8d575cddbe8651e93443bcf0
2,921
#!/bin/sh #postinstall.sh BASEDIR=$(dirname "$0") echo "$BASEDIR" . "$BASEDIR"/setup.ini SPRPath=${PRPath["OSX$shortver"]} INSTALL_PNAME="${PrinterName}" cp -Rf "$BASEDIR"/setup.ini /usr/libexec/cups/backend/setup.ini chmod -R 777 /usr/libexec/cups/backend/setup.ini #进程自启动 chmod -R 777 /private/var/isectoolsdir...
d2ea915fadf98554c6122e4420997245be3d510a
1,031
#!/bin/bash path=$0 if [[ -L $0 ]]; then path=$(readlink $0) fi DIR="$(cd "$(dirname "$path")" && pwd)" if [ $# == 0 ]; then echo "Usage: ./prod <start|stop|logs>" exit 1 fi if [ $1 == "start" ]; then echo "Starting..." WEB_VERSION=$(if [ -f web.version ]; then cat $DIR/build/web.version; fi) \ ...
6a914a12115aa28b98cc967cb4d688f8327d4d3e
219
# # Copy and rename this file to .env at root of this project. # COVID_PORT_NGINX=1577 COVID_PORT_MYSQL=1580 COVID_PORT_ADMINER=1582 COVID_PROJECT_DIR=../drupal COVID_MYSQL_ROOT_PASSWORD=password COVID_USER=1000:1000
62fbe7a7be65a82700f6c0190e2b3d6aca3c1b73
524
#!/usr/bin/env bash export LD_LIBRARY_PATH=/hive/lib:/usr/local/cuda/lib64/:/usr/local/cuda/lib64/stubs:/hive/miners/custom/epic:$LD_LIBRARY_PATH export LIBRARY_PATH=/usr/local/cuda/lib64/:/usr/local/cuda/lib64/stubs:$LIBRARY_PATH export PATH=/usr/local/go/bin:/usr/local/cuda/bin/:$PATH CUSTOM_DIR=`dirname $0` cd $CU...
8b2b04cd73c3d441e77e77732c9d572d96d6a87b
148
#!/bin/bash cd ~/projects/cq-dev-bootstrap sudo java -jar target/cq-dev-bootstrap-DEVEL-SNAPSHOT-executable.jar && open https://localhost/dashboard
9a4cc7eeec5507ef9b2497388311b2f53a1bd3a8
27
../bats_core/02_dotnet.bats
2f33287367340c4658ee9820fba4ac8ab08cd857
860
#!/bin/bash if [ $# -lt 2 ] then DIR=. else DIR=$2 fi if stat -t ${DIR}/datacard_${1}[-_]M=??0.txt >/dev/null 2>&1 then for datacard in ${DIR}/datacard_${1}[-_]M=??0.txt do DIR=`dirname $datacard` file=`basename $datacard .txt` suffix=${file##datacard_} mass=`ls $datacard | eg...
cba5b217a62fff28b2ca08794a4883b5e51a4a32
194
#!/bin/bash cat LogA.txt | sed s/INCORRECTPASSWORD/ACCESSDENIED/ > Update1CombinedAccesslogs.txt cat Update1CombinedAccesslogs.txt | awk -F" " '{print$4, $6}' > Update2CombinedAccess_logs.txt
cb91097dca5bcfd24bff9ff2160c170ae961b243
101
#!/bin/sh # run in dev mode docker build --build-arg BUILDMODE=debug-docker -t restpie-dev-image .
70ae608ea89ccbc1ee5150a0e69d5350fee07340
88
#!/bin/bash # print the first two lines to outputfile sed '1,2w outputfile' inputfile
dc7d46613168914c0c805908ccf9014cdb86ac44
226
#!/bin/bash cluster=`hostname -s` cluster=${cluster:0:1} RCMD=/usr/bin/ssh if [ "$cluster" == "n" ]; then RCMD=/usr/bin/rsh elif [ "$cluster" == "r" ]; then RCMD=/usr/bin/rsh fi echo ">>> $RCMD $(date) $@" exec $RCMD "$@"
e24df843e64c4d89a42a2b16ce776940fa64e084
1,222
# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return #PS1 RET='$(Ret=$? ; [ ${Ret} -eq 0 ] && echo -n "\[\e[32;1m\]▪" || echo -n "\[\e[31;1m\]▪")' #RET='$(Ret=$? ; [ ${Ret} -eq 0 ] && echo -n "\[\e[32;1m\]▪" || echo -n "\[\e[31;1m\]${Ret}")' # PS1 red="\[\e[0;32m\]" yellow="\[\...
cabc5f2e8262d87e89cef62e06aa90a35e082edd
228
#! /bin/bash #PBS -N GPUHelloWorld #PBS -o out.log #PBS -e err.log #PBS -q gpu module load compiler/anaconda3 source /home/debayan-student-03/gpustarter/env/bin/activate python3 /home/debayan-student-03/gpustarter/gpustarter.py
c9ff1f54a7dc2828b4a79be72e3e02ea26364bfe
37
#!/bin/sh echo "shell start success"
29985017ada20fd550fe8915162a284031abbdfd
1,169
#!/bin/bash # # Creates xelaie DB and tables on MySQL server at localhost. source init.sh || exit HOST=localhost read -r -p "This script will DROP ALL DB DATA and rebuild the database at ${HOST}. Is this your intent? [y/N] " response if [[ ! $response =~ ^([yY][eE][sS]|[yY])$ ]]; then exit fi DB_NAME=$(cfg mysql....
b149dbafc061b3b4639c65ffd7a2bc273b2cb270
155
#!/usr/bin/env bash set -euo pipefail PGPASSWORD=spoke_test psql -h localhost -p 5432 -U spoke_test spoke_test <<EOF CREATE EXTENSION pg_trgm; EOF
924187d4a467b2bf1c27f035ef21aadaae3aaeee
1,637
#!/usr/bin/bash echo "Installing Docker..." sudo apt-get update sudo apt-get remove docker docker-engine docker.io echo '* libraries/restart-without-asking boolean true' | sudo debconf-set-selections sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y sudo curl -fsSL https://dow...
3d21f5ca37b35cc1f359e806e2606fbb8e006170
598
#!/usr/bin/env sh starting_dir="$PWD" home_dir="$HOME" echo home_dir:$home_dir #1. If catkin workspace doesn't exist, Create a catkin workspace if [ ! -d "$home_dir/catkin_ws/src" ]; then # Control will enter here if $DIRECTORY doesn't exist. echo "Creating a catkin workspace @ $home_dir/catkin_ws" cd ~ mkdir...
485da22197d9d2c029c20619369a1ab12b7c64b0
1,211
#1/bin/bash case $1 in total) echo "SELECT (PagesTotal*PageSize) DataMB FROM (SELECT variable_value PagesTotal FROM information_schema.global_status WHERE variable_name='INNODB_BUFFER_POOL_PAGES_TOTAL') A, (SELECT variable_value PageSize FROM information_schema.global_status WHERE variable_name='Innodb_page_size') ...
16d366a1bbc12369cad63e6b47c377e4476d1254
104
#sudo apt-get install -y sun-java-jdk sun-java-jre sudo apt-get install -y openjdk-6-jdk default-jdk
746529770b16d02d311f87c5aac0d3287e30abef
1,381
#!/bin/bash readonly REPO_ROOT="$(git rev-parse --show-toplevel)" # Display a box banner. # Parameters: $1 - character to use for the box. # $2 - banner message. function make_banner() { local msg="$1$1$1$1 $2 $1$1$1$1" local border="${msg//[-0-9A-Za-z _.,:\/()]/$1}" echo -e "${border}\n${msg}\n${bo...
f3389b2b0164aead50fc4c04a0811455f6198d73
1,527
#!/bin/bash ## history.sh ## # get history out of home dir HISTDIR=${HOME}/.history [ -d $HISTDIR ] || mkdir --mode=0700 $HISTDIR [ -d $HISTDIR ] && chmod 0700 $HISTDIR # each shell has its own history file HISTFILE=$HISTDIR/history.$$ # don't put duplicate lines or lines starting with space in the history. # See b...
d2db5dd21a2d028a18f137155352eef69f80edd7
65
#!/bin/bash ./a.out < input.txt > p.out diff -y p.out output.txt
5289dcde3e5b64d97f8b2b7d44d35b96957042a9
44
./make/prebuild/r3-make-osx -qs make/make.r3
a626da74aed32ccab80d96750b0b76d72ec8bd89
95
mkdir conv for i in $( ls *.jpg); do convert -resize '1280x1280>' -quality 80 $i conv/$i; done
25d1fb897573dd3595fecbfbd852833c93e8b97e
1,294
mkdir android_arm_build; mkdir android_x86_build; mkdir linux_x64_build; DIR=`pwd` ANDROID_NDK=/opt/android-ndk #Android ARM cd android_arm_build PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/.local/android/armeabi-v7a/lib/pkgconfig/ cmake ../ -G Ninja -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DANDRO...
be9ce196487774701b3b2ff6f3a03e6f4aa81add
2,659
#!/usr/bin/env bash set -eo pipefail source /srv/provision/provision-helpers.sh # Grab the currently active PHP mods, and lowercase it for comparison enabled_mods=$(php -m) enabled_mods=${enabled_mods,,} # These PHPMods all interfere with each other in some way phpmods=( "xdebug" "xhgui" "tideways_xhprof" "pcov"...
dff9f187a7242f504679fd40dcf1bc244a637452
369
#!/bin/bash os=windows arch=amd64 cd client && \ GOOS="$os" GOARCH="$arch" go build \ -o ../bin/twilight-line-go-client-"$os"-"$arch".exe && \ cd - >/dev/null if [ $? -ne 0 ]; then exit 1; fi cd server && \ GOOS="$os" GOARCH="$arch" go build \ -o ../bin/twilight-line-go-server-"$os"-"$arch".exe && \ cd - >/d...
673e852598a0e6edef135cc509c2f17497bc79a3
82
PORT=5000 URI=mongodb+srv://wanis:zZri5JcKb8HYwJHC@cluster0.xzx9y.mongodb.net/test
9383613e0e686973ef3b1a562b72eb7a7443b487
1,105
#!/bin/bash . $BASEDIR/include/common.sh if [ $DISTNAME == "openSUSE-leap" ]; then REPOSITORY=http://download.opensuse.org/distribution/leap/$RELVER/repo/oss/ UPDATES=http://download.opensuse.org/update/leap/$RELVER/oss/ else REPOSITORY=http://download.opensuse.org/distribution/$RELVER/repo/oss/ UPDAT...
a4a20fdd60bf66bf475b6b252861aa53e1c5a4d7
663
#!/bin/bash INFO="\033[34m" GREEN="\033[32m" YELLOW="\033[33m" RED="\033[31m" NOCOLOR="\033[0m" function print_info { printf "${INFO}%s${NOCOLOR}" "$1" } function print_success { printf "${GREEN}%s${NOCOLOR}" "$1" } function print_warning { printf "${YELLOW}%s${NOCOLOR}" "$1" } function print_error { ...
21550e507449f390ab3b398ebc4cbdd1d573df80
875
#!/bin/bash #if your tmux counts from 1 instead of 0, change this START_INDEX_NUMBER=0 SESSION="transman" # translation-manager FOLDER_FRONTEND=$PWD # to assign to a variable #create detached session named $SESSION tmux new-session -d -s $SESSION #split the pane horizontally in half tmux splitw -h -p 50 -t $...
0ccaa1c553173a49b38379a894b5bb92818233c8
36
exec awk -f "$SNG_SUBCMD_IMPL" "$@"
8d30f044cc93576da02218e4b0a0fc500451a278
58
#!/usr/bin/env bash env $(cat .env | xargs) node index.js