blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
711a3d022f7326bc842051616525429bc35cc37f
2,184
#!/usr/bin/env bash #cd "$1" #cont="<html><body><ul>" # ##find . -name 'v*' -type d #-exec echo {} + >> cont # #echo $cont #perl -e 'print ; while(<>) { chop $_; print "<li><a href=\"./$_\">$_</a></li>";} print "</ul></body></html>"' > index.html #!/bin/bash set -e ROOT="$1" HTTP="/" OUTPUT="$2" OUTPUT_DIR=$(dirnam...
55f363930f5c3d302817ba19e7ec8bf927b9a16d
447
function install_homebrew() { /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" } function install_rbenv() { # https://github.com/rbenv/rbenv#installation git clone https://github.com/rbenv/rbenv.git ~/.rbenv cd ~/.rbenv && src/configure && make -C src } funct...
399fe483f210839cc4f34ba0977db3447ee8cb3e
191
#!/bin/bash if [ "${PICAM_DATA}" = "" ] ; then export PICAM_DATA=/opt/picam_data fi if [ "${PICAM_PORT}" = "" ] ; then export PICAM_PORT=8080 fi # cd app python picam_viewer.py #
07072e0472ba8155061c56ba5fd767014710bd1c
72
#! /bin/bash lsout=`ls -l` for i in $lsout do echo $i" foobar" done
d53e756b2f2e3ed69935874cec87b210bb31afe7
381
#!/bin/bash if [ "$#" -ne 1 ]; then # No Arguments echo You need to specify the web archive file echo Usage: ./local-deploy APP.war exit fi warname=$1 filename=$(basename ${warname} .war) echo echo Removing old WAR sudo rm -f /usr/share/tomcat/webapps/${filename}.war echo echo Copying new WAR sudo cp $warname /u...
a4ec56f2a653bca1e6d595a7fd80052008c232d2
41
#!/bin/sh curl -s localhost:6984/404.xqy
bd4c7632c344c58b329f06dbb6fa50d3b423ce7b
1,466
#!/bin/bash ROOT=$(dirname ${BASH_SOURCE}) . $ROOT/../util.sh backtotop desc "Amplify Central Dataplane Governance Demo!" desc "This script will launch the agents and install the project." . env.sh desc "Creating the environment" show "project/environment.yaml" run "amplify central --baseUrl=$AMPLIFY_URL apply -f...
3422802f30b12d91ba3869bee4d713059176921b
718
#!/bin/bash # MuMuDVB Boot Script by Jamie Whittingham (( UID != 0 )) && { echo "Error: you MUST be logged in as root."; exit 1; } echo "Starting MuMuDVB" mkdir /var/run/mumudvb killall mumudvb mumudvb -c /root/mumudvb_0.conf mumudvb -c /root/mumudvb_1.conf mumudvb -c /root/mumudvb_2.conf mumudvb -c /root/mumudvb...
465d6f15eb722e03a281ca2c910001acd9a1af57
586
set -x killall fabcoind #backup old code sudo mkdir /usr/local/bin/old sudo cp /usr/local/bin/fabcoin* /usr/local/bin/old #download new code wget http://fabcoin.pro/en/released/Fabcoin-v160203-ubuntu16.04.tar.gz tar xvfz Fabcoin-v160203-ubuntu16.04.tar.gz sudo cp fabcoin/* /usr/local/bin #copy wal.et.dat to new dat...
06db1d9773c0bbbc78c2cd9cd720d5da0fcdfbc3
990
+++Steps for Installing Graphite++++++ apt-get upgrade apt-get install graphite-web graphite-carbon apt-get install postgresql libpq-dev python-psycopg2 sudo -u postgres psql CREATE USER graphite WITH PASSWORD 'password'; CREATE DATABASE graphite WITH OWNER graphite; \q Changes for /etc/graphite/local_settings.py S...
0b9e1a72d229a2a26175ec65e29c34602104ad26
525
#!/bin/sh if [ `expr match "$username" '^.*@itbhu[.]ac[.]in'` -eq 0 ] then username="${username}@itbhu.ac.in" fi blacklisted=`cat /etc/openvpn/blacklist` declare -A blacklist for bluser in $blacklisted do blacklist[$bluser]=1 done if [[ ${blacklist[$username]} ]] then exit 1 fi outp=$(curl --silent --locat...
752f1df95e506eb46f70224f1439c13b443916fc
3,032
#!/bin/dash # shrug-commit --- saves a copy of all files in the index to the repository. # shrug-commit [-a] -m message # commands: # -m msg: a message describing the commit # message: assumed to be legal, i.e. ASCII and not starting with '-' # -a : optional, causes all files in the index to have their contents from th...
7713715d75235abf37cd23b684635b96a77a3b93
444
#!/bin/bash echo "$0 $@" if [ $# -ne 2 ]; then echo "illegal number of parameters - expected 2: homeDir jarDir" exit 1 fi HOME_DIR=$1 JAR_DIR=$2 JAR_PATH=${JAR_DIR}/gvod_ws.jar APP_CONF=${HOME_DIR}/etc/gvod.conf WS_CONF=${HOME_DIR}/etc/gvod_ws.yml IPV4="-Djava.net.preferIPv4Stack=true" nohup java $IPV4 -Dconfi...
f61670f318c7f01b7c74278545f304772d5c3a7f
126
#! /bin/bash service mysql start fwconsole restart if [[ $# -gt 0 ]]; then exec "$@" else exec /usr/sbin/sshd -D fi
5d1179e37f299d84bf010b41b6a1a00f0cd5e85d
165
scp root@servidor://var/lib/mysql/wiki_sibe/* /var/lib/mysql/wiki_sibe/ chown mysql.mysql /var/lib/mysql/wiki_sibe/ -R -f mysqlcheck -uroot -psqlmestre -o wiki_sibe
f3f85fcc937dffd42d38b24c793eb7624430a3fd
638
#!/usr/bin/env bash # exported from COACH - https://github.com/alittlebrighter/coach #-ALIAS- = gcloud.svcaccount.create # -TAGS- = gcloud,service account #-SHELL- = bash # #-DOCUMENTATION- !DO NOT EDIT THIS LINE! # Creates a new service account for Google Cloud. # #-SCRIPT- !DO NOT EDIT THIS LINE! NAME=$1 PROJECT=$2...
f1e2c0b3956017a9e1fe80ef877c5ad75a374efe
2,068
#!/bin/sh # Run the VM, setting SQUEAK_PLUGINS if unset to the VM's containing directory # if unset, and ensuring LD_LIBRARY_PATH includes the VM's containing directory. BIN=`/usr/bin/dirname "$0"`/@expanded_relative_imgdir@ GDB= if [ "${SQUEAK_PLUGINS-unset}" = unset ]; then export SQUEAK_PLUGINS="$BIN" fi if [ "$1" ...
1bf5d78348749c7e34c9a172dbdca9178d872f1e
68
PUBLIC_URL=https://jopt05.github.io/link-shortener-front-end-mentor/
677a852e2a1a988be5c86dccdedb792f6cdef4c6
127
#! /bin/bash # ground environment export ROS_HOSTNAME="wrkcomp.ddns.net" export ROS_MASTER_URI="http://$ROS_HOSTNAME:11311"
f70f01536c6c89b073b884a5e3c18daec5d75d90
156
docker run -v /opt/atlassian/bitbucket:/var/atlassian/application-data/bitbucket --name="bitbucket" -d -p 7990:7990 -p 7999:7999 atlassian/bitbucket-server
14a33c7667befd01f7433ceb9651250e7580d096
643
#!/bin/bash mkdir static/img/positive/ mkdir static/img/negative/ mkdir static/img/log/ mkdir static/img/single_prediction/ mkdir core/cnn/dataset/ mkdir core/cnn/dataset/test_set/ mkdir core/cnn/dataset/test_set/class_positive/ mkdir core/cnn/dataset/test_set/class_negative/ mkdir core/cnn/dataset/training_set/ mkdir ...
cc51bbc36ded6fcd3772edca4a7fe047925e7ebd
75
mkdir -p build cd build conan install .. --build missing && conan build ..
05539f1b718bc89bc589076675bf83faa3fe4f1b
112
for i in {1..2} do echo '{"Name":"Daniel","Age":18,"Subjects":["OS","CN"]}' | fn invoke dotnetFDK fdk done
0d594d9079a35ef7f89808624c15b9978e6f1e87
4,069
# ------------------------------------------------------------------------ # Juan G. Hurtado oh-my-zsh theme # (Needs Git plugin for current_branch method) # ------------------------------------------------------------------------ # Color shortcuts RED=$fg[red] GREEN=$fg[green] BLUE=$fg[blue] CYAN=$fg[cyan] MAGENTA=$...
4787c4603895710a54e571517a43fd190226c0a7
47
#!/bin/sh jq -r . /github/workflow/event.json
0a26a967c73264a1d0d6f0f4f4028f06d370b5a4
2,609
#!/bin/bash checkMakeDirectory(){ echo -e "checking directory: $1" if [ ! -e "$1" ]; then echo -e "\tmakedir $1" mkdir -p "$1" fi } # create subdirectories checkMakeDirectory DI checkMakeDirectory HMM checkMakeDirectory DOMAINS checkMakeDirectory LOG checkMakeDir...
a1d14243a08849f3ebaad5fd9fbc54e0d5e9d780
238
./gradlew -Penvironment=production :sample-android:installFreeProdRelease && \ adb shell am start -n "kim.jeonghyeon.sample.compose/com.example.sampleandroid.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
c4c1633ec7dff52eb2277d13e74debb35bad7a3d
107
#!/bin/bash git config --global user.name "Euclydes20" git config --global user.email "tiddys08@gmail.com"
192d6e2b98bf49398fba3ca0f4f34b268a5f2f45
918
base='/Volumes/Public/StockExchange/data/NSE/SecuritiesInformation/' date=`date "+%Y_%m_%d"` mkdir "$base/$date" cd $date curl -O 'https://www.nseindia.com/content/equities/EQUITY_L.csv' curl -O 'https://www.nseindia.com/content/equities/IDR_W9.csv' curl -O 'https://www.nseindia.com/content/equities/PREF.csv' curl -O '...
0ebee4534cfa83ff7e285ef59da751abe2df1da4
737
#!/bin/sh set -e -x ################################################### # copy images from several subfolder to one folder ################################################### usage () { echo "use:" echo "./copy_im <src> <dest>" echo "" exit 1 } if [ -z $2 ]; then usage fi SRC=`pwd`/$1 DES=`pwd`/$...
1412ca2172d98dea22da186f41da17f165e4e101
463
#!/bin/bash pieceHeight=5408 pieceSlide=$[$pieceHeight-130] targetdir=./work infile="$1" inputname=${infile%%.*} mkdir -p ${targetdir} function getwidth() { magick identify -format '%[height]' "$1"; } height=$(getwidth "${infile}") echo "[${height}]" top="0" fno="0" while [ $top -lt $height ] do echo "$top $height...
fbda33ac52846bb396c94f9c11460f85ec6278d5
3,993
#!/bin/sh adb root sleep 1 adb shell mount -o rw,remount / mkdir tmp/ if [ -f "open_gapps-x86_64-7.1-pico-20201218.zip" ] then echo "File open_gapps-x86_64-7.1-pico-20201218.zip already downloaded!" else echo "Downloading houdini64.sfs" curl "https://uni-bonn.sciebo.de/s/s2z65Xs8eN4DHQc/download?path=%2F...
390ee8eaaec9a5e6e478377129e3fed508c1f7a8
136
# TODO: create shell script for Problem 2 python3 rnn/test.py --valid $1 --gt $2 --save_txt $3 --load_model 'rnn/log/model_best.pth.tar'
922ddb6e5bf9b43b4e0786bc77d3a35c7dd72f5a
174
#!/bin/bash TARGET=$1 if [ -z $TARGET ] ; then TARGET="/Volumes/firefox/vr/obj-arm-linux-androideabi/gradle/build/mobile/android/geckoview" fi cd $TARGET && simple-server.sh
da0303609f8cdcb0b1fdd48ca5fc1b29a6bdbbb7
33
for f in `ls`; do echo $f done
aa74459e5760e76628db3a14cca53d9574389fde
444
#!/bin/bash -x for (( i=0;i<10;i++ )) do val=$((100+RANDOM%99)) arr[$i]=$val done echo "Array: ${arr[@]}" temp=0 for (( i=0; i<10; i++ )) do for (( j=i+1; j<10; j++ )) do if [ ${arr[i]} -gt ${arr[$((j))]} ] then temp=${arr[i]} arr[$i]=${arr[$((j))]} arr[$((j))]=$temp fi done done echo "...
d279a8ae3a5e7e013d881d508e505302a02e51b5
1,379
#!/bin/bash # Copyright 2015 Google Inc. All Rights Reserved. # 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...
0868709f6dad3135b52aee7824f60bd44eb70395
172
#!/bin/sh if [[ -z $@ ]] ; then src=alacritty.yml else src=alacritty.$@.yml fi mkdir -p ~/.config/alacritty install -m 644 $src ~/.config/alacritty/alacritty.yml
76abf03f66e3f01608c0d3d09f7d23ff46b3588d
328
#!/bin/bash cp .env.example .env docker-compose exec app composer install docker-compose exec app chmod -R 775 storage docker-compose exec app php artisan key:generate docker-compose exec app php artisan config:cache docker-compose exec app php artisan migrate:fresh --seed docker-compose exec app php artisan passport:...
75cc1de57c5bba01910a61984aadd3e2269cf74b
1,242
H LLL LHL LLL LLL LLL LLL LLL LLL LLL LLL ...
eca900e7e90d30b7d27ffbe13ea3d1059f2cf4aa
10,705
#!/bin/bash # # Run remote bash commands through sudo or not via ssh and printing color report # author: sendmailwith@gmail.com # ## ## Setting variables ## SERVER_LST_FILE="" COMMAND_FILE="" SCRIPT_FILE="" CRED_LINE="" ## ## ## RUNNING_EXAMPLE_1=" \e[0;34mExample 1 : \n\t \e[1;36mautomate.sh -l server_list.txt -c...
ea73826741ccd41d10c8817ebdf1f758cdbbcfb9
2,472
#!/bin/sh # # kinect_fetch_fw - Fetch and install the Microsoft Kinect UAC firmware # # Copyright (C) 2011 Antonio Ospite <ospite@studenti.unina.it> # # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms...
b7c2d6c21ae7c2e02d2d2be03b114009cc79bc26
25
HOST=localhost PORT=5000
7b602f6221a54cc61f07cbd67747c04e50112cfa
383
#!/usr/bin/env sh export RELEASE_PAYLOAD='{'\ ' "data":{'\ ' "stagedRepositoryIds":['\ ' "'${STAGING_ID}'"'\ ' ],'\ ' "description":"Releasing Atlas repo"'\ ' }'\ '}' curl --fail -s -u ${SONATYPE_USERNAME}:${SONATYPE_PASSWORD} \ -X POST \ -H "Content-Type:application/json" \ -d ...
5a8dfaff5a61f32f715604a4cc0b8251f140eb16
256
#!/bin/bash # testing closing file descriptors exec 3>test echo "This is a test line of data" >&3 # closing file descriptor exec 3>&- echo "This won't work" >&3 cat test #覆盖前一个test文件 exec 3>test echo "This'll be bad" >&3
09c858ca3110e3cbd61d5d8868fc296eb11bb0cd
989
#!/bin/sh # makes a backup of the owncloud server on the raspberry pi # # taken from # https://doc.owncloud.org/server/9.1/admin_manual/maintenance/backup.html # # author: langenhagen echo "Really?" echo "<ctrl+c> to escape or enter to proceed" read THROW_AWAY_VAR echo "`date` Starting Owncloud backup" OWNCLOUD_B...
df29770c5a6ee14349fe70895afb89d5fefd76ce
1,958
# IMPORTANT!!! DO NOT EDIT THIS FILE # # Do not edit /etc/profile. Instead, edit the master copy in Puppet, and run # puppetd -t. This will make sure the change is applied to all servers, and # not lost if the system is reinstalled. For more information, see # <https://wiki.toolserver.org/view/Admin:Puppet>. #ident...
ad1dcf35ccb2ca620e873fdcb0d0fcdbb73ce6f6
450
#!/usr/bin/env bash . /scripts/lib/main.lib librequire "standard"; std.msg "\nLoading Modules...\n" "default" "ok"; std.msg "Collecting information...\n" "default" "ok"; std.msg "Displaying information...\n" "default" "ok"; std.msg "\nLoaded Modules:\n" "blue,bold"; std.msg "${LIB_MODULE_LIST[*]}"; std.msg "\nclass lis...
fb0ee7866880bdb8ad3add7a69b229629c17a6d0
2,516
#!/bin/bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" source ${DIR}/../../scripts/utils.sh if ! version_gt $TAG_BASE "5.4.0"; then logwarn "WARN: Audit logs is only available from Confluent Platform 5.4.1" exit 0 fi ${DIR}/../../ccloud/environment/start.sh "${PWD}/docker-compo...
a753d318b74844afd24677b2d887cfdf75feeec0
855
#!/bin/bash #Terminal # #Authors: # Bruno Goncalves Araujo <www.biglinux.com.br> # #License: GPLv2 or later ################################################# #kde-konsole if [ "$(ps -A | grep plasma-desktop)" != "" ] then if [ "$(which konsole)" != "" ]; then konsole $* exit 0 fi fi #gnome-termi...
6b7c297e60182ece1ebf8300d619128517b29d4f
431
#!/bin/bash echo "=============================" echo "Generating app artifactory..." echo "=============================" ./gradlew clean build echo "============================" echo "Building app docker image..." echo "============================" docker build -t playlist-by-weather . echo "============...
d6301faf0adb1860731b8341a185cd0095692951
4,292
#!/bin/sh PATH=/bin:/davinci:/davinci/dvr export PATH remove_usbdrivers() { [ -f /var/dvr/udhcpc.pid ] && kill `cat /var/dvr/udhcpc.pid` ifconfig rausb0 down /bin/rmmod rt73 /bin/rmmod mos7840 /bin/rmmod usbserial } # let tab102(live) finish its job if [ -f /var/dvr/tab102live -a -f /var/dvr/tab102.pid ]; ...
ec4533795785c44e0739101b4fbc7988e9f72d3c
65
python readImageCircleGrad.py application.linux64/pathCircleGrad
698ad03cf45cc920bc012dd541302992ef14005b
3,616
#!/bin/sh touch ~/.bash_untracked echo $'\n#!/bin/bash' > ~/.bash_untracked # Install brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew update brew upgrade #Install essential packages brew install \ coreutils automake autoconf openssl \ libyaml readline ...
5bfee3bfc868fbd5f6a95e686de0e1d3961ef982
181
TimeZone=America/New_York OLS_VERSION=1.6.15 PHP_VERSION=lsphp74 MYSQL_DATABASE=wordpress MYSQL_ROOT_PASSWORD=password MYSQL_USER=wordpress MYSQL_PASSWORD=password DOMAIN=localhost
75d6b15017b689864c82175ad28f50a8a818b37b
217
# DATABASE_URL= # AUTH0_CLIENTID= # AUTH0_DOMAIN= # AUTH0_CLIENT_SECRET= # AUTH0_SCOPE='openid profile' # AUTH0_COOKIE='some-really-long-string-has-to-be-at-least-40-characters' # BACKEND_ADDRESS=http://localhost:3000
195000ef085482e1772a373d1fa55ee06e2ef4c1
2,871
#!/bin/sh set -e cd $(dirname $0) cd .. RootPath=$(pwd) if test "$(uname -s)" != "Linux"; then echo "[ERROR] Current OS is not Linux" exit 2 fi if test ! -x "$(command -v pacman)"; then echo "[ERROR] pacman command is not found." exit 2 fi # check proxys # echo "==> checking proxy" # read -p "Should use pro...
b360891c955ee906672882bd73db3fb48623fed4
198
#!/bin/bash FWDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" WORK_DIR="$FWDIR/.." export PYTHONPATH="$WORK_DIR/python/:$PYTHONPATH" executable=$1 python $executable "${@:2}"
a4730e9d8930a1e8fbe43a914747518e84ae2138
1,015
APP_NAME = "Laravel Multi Auth" APP_ENV = local APP_KEY = base64:yY/+lD9ouyiJKk9UhjyFlm6EdBAquWBAnaWE0qna7BM= APP_DEBUG = true APP_URL = http://127.0.0.1:8000 LOG_CHANNEL = stack DB_CONNECTION = mysql DB_HOST = 127.0.0.1 DB_PORT = 3306 DB_DATABASE = laravel_multi_auth DB_USERNAME = root DB_PASSWORD = BROADCAST_DRIV...
37785dd9cfaa287b8dd1d13d9a74f735af84ad12
439
#!/bin/sh MYABSPATH=$(readlink -f "$0") PATCHBASE=$(dirname "$MYABSPATH") cd "$PATCHBASE" mkdir -p overlay/packages/apps/Settings/res/xml/ xmlstarlet ed --pf --ps \ -u '/PreferenceScreen/PreferenceScreen[@android:key="additional_system_update_settings"]/@android:title' -v "@string/wifi_show_advanced" \ ../../../pac...
47ef83b731c3dbb7996868b2e9bb869cc21a751f
1,196
#!/bin/bash hadoophome=~/HADOOP/hadoop-3.0.0-SNAPSHOT common="hadoop-common-project/hadoop-common/src/main" hdfs="hadoop-hdfs-project/hadoop-hdfs/src/main" yarn="hadoop-yarn-project/hadoop-yarn" mapred="hadoop-mapreduce-project" kms="hadoop-common-project/hadoop-kms/src/main" function copier { local dest=$1 shift ...
83c56a5b1745fccdaebc361b6a53a9fb1f553f60
362
echo 10 0 | gmt psxy -R-100/100/-80/120 -JX10 -Ba20g10/a20g10 -Sc2 -P -K > 01_psxy.ps echo -10 0 | gmt psxy -R-100/100/-80/120 -JX10 -Ba20g10/a20g10 -Sc2 -P -O -K >> 01_psxy.ps echo 0 40 | gmt psxy -R-100/100/-80/120 -JX10 -Ba20g10/a20g10 -Sc2.2 -P -O -K >> 01_psxy.ps echo 0 2 2 4 | gmt psxy -R-100/100/-80/120 -JX10 -B...
2626f8eed40e306609b9f37668c12820fe8ea4de
43
docker run -p 5555:8000 clean-mart-api:v99
3ce61128c1fa0f1fab46904169360d259b5e8c2b
5,097
#!/bin/bash # # Input a line cube uvt, and a continuum uvt # Output uvt = the line cube uvt subtract the continuum uvt # # Last update: # 2017-03-30 using "pdbi-uvt-core-arg-v4" # 2017-03-30 using "pdbi-uvt-core-arg-v5" # 2018-02-16 using "pdbi-uvt-core-arg-v8", cleaning more files # # # # Uage # usag...
0365ca7ea82bbb27231cbb839c387449c7f2eb0f
177
if [ ! "$(docker ps -q -f name=front-end)" ]; then if [ "$(docker ps -aq -f status=exited -f name=front-end)" ]; then # cleanup docker rm front-end fi fi
a523c5c463ceaa389fa1981e8f1effbe1fddd9b1
119
MAYA_SCRIPT_PATH = \\octvision.com\CG\Tech\maya_eighteen\scripts;\\octvision.com\CG\Tech\maya_eighteen\scripts\mayamel;
4d8ccee3db519167c357d717f13b7eabbd326f11
2,816
#!/bin/bash # This script is designed to do the following: # # 1. If necessary, create a directory for storing backup copies of Jamf Pro Self Service bookmark files. # 2. Make copies of the Self Service bookmark files. # 3. Name the copied files using the title of the Self Service bookmark. # 4. Store the copied book...
fe663e8f0cdcde243d5f5638c6a9c5511c4fa6f8
77
REACT_APP_API_SPACE="developer_bookshelf" REACT_APP_ACCESS_TOKEN="0b7f6x59a0"
154c14a7c96f9133037ff1b0f951d76b67e85bd3
1,967
#!/bin/bash # To run this, make sure you have dropboxfs already running. MOUNTPOINT=test echo "Runnning tests" cd $MOUNTPOINT function Run_Test() { NAME=$1 EXPECTED=$2 shift shift COMMAND=$@ DIFF=$(diff <(echo $EXPECTED) <(echo $COMMAND)) if [ -z "$DIFF" ]; then echo "PASSED $N...
98e37c00e852d552b7565872c23bca7babf76c2b
336
#!/bin/bash export PATH=~/anaconda3/bin:$PATH source activate pytorch_p36 echo "PATH: $PATH" JUP_ENV=`conda env list | grep "*" | awk '{print $1}'` echo "starting jupyter in conda env $JUP_ENV" cd /home/ubuntu/dev /home/ubuntu/anaconda3/envs/pytorch_p36/bin/jupyter-notebook --config=/home/ubuntu/.jupyter/jupyter_not...
0a5b46169d2dafea359ee6b66c25e4a79c8440b5
248
#!/usr/bin/env bash set -euxo pipefail COCKROACH_PATH="${GOPATH}/src/github.com/cockroachdb/cockroach" source "${COCKROACH_PATH}/build/jepsen-common.sh" progress Destroying cluster... terraform destroy --var=key_name="${KEY_NAME}" --force || true
495b761e259bdd02d312bea968cef14c508d0f86
510
#!/bin/sh launchctl setenv PATH /usr/local/bin:$PATH log_dir=$HOME/Library/Logs/Homebrew/update log_name=${log_dir}/`date "+%Y%m%d"`.log if [ ! -d ${log_dir} ]; then mkdir -p ${log_dir} fi brew doctor >> ${log_name} 2>&1 if [ $? -eq 0 ]; then brew file update >> ${log_name} 2>&1 brew file cask_upgrade -C >...
c70296f7c72e47200b4119194cf3919bce6f852d
807
#! /bin/sh # File: a12p3.sh # Author: Lei Xie # Purpose: the shell program find the file in /usr/bin count the sum of # file and sum of text file, print the sum of file, sum of text # file and precent of script file # Date: Dec 3, 2014 # Version: 1.0 # Note: None total=0 text=0 fi...
5b0378e6ab48a81ba1f182b017af9876a781a43a
2,537
#!/bin/bash function clone_repo { if [ -d "$1" ]; then echo 'Skipped: already exists.' else git clone --recursive https://github.com/${2:-PeterJCLaw}/$1 fi } for POSSIBLE_PYTHON in python3.9 python3.8 python3.7 python3 python; do PYTHON=$(which $POSSIBLE_PYTHON) $PYTHON --version 2>...
ef6c6da212ed61820bab46d540418fbd6a8c13a9
663
# Basic Config ENV=dev DEBUG=on # Time & Language LANGUAGE_CODE=ru-RU TIMEZONE=Europe/Moscow USE_I18N=on USE_L10N=on # Emails DEFAULT_FROM_EMAIL=info@example.com EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend #EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend EMAIL_HOST=smtp.example.com EMAIL_H...
cb59814bad760fd73631bef5f77de439a3582005
180
#!/bin/bash ps -A -o pid | awk '{file="/proc/"$1"/statm"; getline f < file; close(file); split(f, a); print $1,":", a[2] - a[3]}' | sort -r -n -k3 > script4file.log 4th.sh (END)
be5e9c18bc2936209c77d589025a2e8fc2bfc88e
678
#!/bin/bash for q in {1..9} do echo "Checking grid0$q" cat grid0$q.txt | python3 sud2sat_alt.py > alt_sat_input0$q.txt minisat alt_sat_input0$q.txt alt_sat_output0$q.txt python3 sat2sud.py alt_sat_output0$q.txt > alt_solution0$q.txt python3 check_sudoku.py < alt_solution0$q.txt echo "----------------------------...
7916cc0a604c8c18a1beebbb92a075fda2707ce6
843
#!/bin/sh exitWithMessage() { echo "$1" exit 1 } validateEnvironmentVariables() { if [ -z $AWS_ACCESS_KEY_ID ]; then exitWithMessage "AWS_ACCESS_KEY_ID missing" fi if [ -z $AWS_SECRET_ACCESS_KEY ]; then exitWithMessage "AWS_SECRET_ACCESS_KEY missing" fi if [ -z $AWS_DEFAULT_REGION ]; then ex...
27bd1a952c7dcffe225a8a19dc5744f241b636e4
6,352
#!/bin/bash function logToScreen() { clear printf '%s\n' "$(tput setaf 2)$1 $(tput sgr 0)" sleep 1 } function installPackages() { logToScreen "Installing required pacakges..." apt -y update apt -y install wget pwgen unzip git curl apache2 libapache2-mod-php php mariadb-...
e3f3ce4ac9c7598b42c0afc24ac5a16906941940
438
#!/usr/bin/env bash cd $(cd $(dirname $0) && pwd)/.. # Tweak php modules and install dependencies docker/tests-up.sh # Set browser according to environment variable docker-compose -f ./docker/docker-compose.yml exec php /var/www/html/docker/sh/set-test-browser.sh "${YY_TEST_BROWSER}" # Restart world rm -rfd runtime...
d43f71a58b45a824ba0a51ed27996017c5da6a31
1,760
#!/system/bin/sh #echo "" #echo " This is for QCT monitor mode" #echo "" if [ "$1" == "STOP" ]; then echo 0 > /sys/module/wlan/parameters/con_mode ifconfig wlan0 up iwpriv wlan0 monitor 0 echo "QCT SNIFFER MODE EXIT" return fi CHANNEL="$1" BANDWIDTH="$2" if [ "$CHANNEL" == "" ]; then CHANNEL=1...
7126b57dc271286d95a51da2e56f01f769ca02da
60
git commit src/main/java/girafon/MApriori/*.java git push
bf531f43c02f2ef93733954d654288b2de545b37
1,066
#!/bin/sh # ****************************************************************************** # Oracle WebLogic 12.2.1.4.0 Docker image build file. # # Since : September, 2021 # Author: Arnold Somogyi <arnold.somogyi@gmail.com> # # Copyright (c) 2020-2021 Remal Software and Arnold Somogyi All rights reserved # BSD (2...
2e3b5fee008895ffb51ef8f1887c9e733a5fc6a1
242
#! /bin/bash set -e for test in acceptance_tests/*.sh; do echo "--------------------------------------------------------------" echo "$test" echo "--------------------------------------------------------------" (exec "$test"); done
ed28ffbac08d9713082918d08dc87eaccc3f650d
315
#!/usr/bin/env sh echo "Run migrations" python3 /opt/app/src/manage.py migrate --noinput # collect static files # echo "Collect static" python3 /opt/app/src/manage.py collectstatic --noinput echo "Starting production server" cd /opt/app/src || exit ; uvicorn boosting.asgi:application --host 0.0.0.0 --port 8000
3c5e26cb9af2240918e45234a1a8469ec99c0263
151
export EDITOR=/usr/bin/nano if [ "$XDG_CURRENT_DESKTOP" = "KDE" ];then echo $XDG_CURRENT_DESKTOP else export QT_QPA_PLATFORMTHEME="qt5ct" fi
272ec99e99a567eed99529df13a5bc8b74fea6c2
473
#!/bin/bash IMAGE_NAME=xiangming/java8:node6; echo "Pulling latest code..."; git pull --all if ! docker ps | grep "performance" | grep -v grep; then echo "Running docker image..."; docker run \ --tty \ --interactive \ --volume=$(pwd):/root/Developer/performance \ --workdir=/root/Developer/perfor...
591c1806269fdcd0c4d5fd0227b4555e9f590e38
1,181
#! /bin/sh -e #### BEGIN INIT INFO # Provides: samba-shares # Default-Start: 2 3 4 5 # Default-Stop: S 0 1 6 # Short-Description: generates /etc/inveneo/samba/shares.conf # Description: generates /etc/inveneo/samba/shares.conf # by reading all *.conf files in /etc/inceneo/sa...
e0065c4d35f57025a774764f3504cb720c46114e
161
aws_ssm_maintenance_window_delete() { local window_id="$1" shift 1 cond_log_and_run aws ssm delete-maintenance-window --window-id $window_id "$@" }
cc9479eb05b93a6b1357ca81d60f7eba1c3c08a0
185
#!/bin/bash PYTHONPATH=${PYTHONPATH}:/home/ubuntu01/IdeaProjects/QuantoniOanda/oanda/oandapy export PYTHONPATH python robotrunner.py --account 475120 --settings settings03.json #1 #2
4e574b8a71776fa9a4733a03c937f2e5eae99349
34
$PREFIX/bin/luarocks remove pprint
25fbe945082948f40697ba71c799919aeb088b03
1,707
#!/usr/bin/env bash DOTFILES=~/.dotfiles export EDITOR="/usr/bin/vim" export GIT_EDITOR='/usr/bin/vim' unset MAILCHECK # Don't check mail when opening terminal. alias reload='source ~/.bash_profile' source "${DOTFILES}/prompt/colors.theme.bash" source "${DOTFILES}/prompt/base.theme.bash" source "${DOTFILES}/prompt...
c7e7ebf878134a971714a6a4c4e44ae45e2bb421
6,609
#!/bin/sh # Copyright (c) 2015-2022 Franco Fichtner <franco@opnsense.org> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list o...
e0641d4106ded69110638b6ce78af4c80197857c
488
#!/bin/sh set -x npm install ls -1 ./oas2/*.yml | while read swagger; do # use '$item' echo "${swagger}" oapi_output="$(echo "$(basename "${swagger}")" | cut -d'.' -f1)" echo "${oapi_output}" # npx api-spec-converter --from=swagger_2 --to=openapi_3 --syntax=yaml "${swagger}" > "./oas3/${oapi_output}.oas3.yaml...
7236aa7fb8538f72264ceee82e26fe6b75d12fbb
2,189
#!/bin/bash green='\e[0;32m' yellow='\e[33m' bold='\e[1m' endColor='\e[0m' usage() { echo -e " ${green}excel_validator compiler v1.1: ==================================${endColor} $0 option ${yellow}Available options: -b --build - build executable -c --clean - delete prepared files without executable...
444ebdb1a3aaac31130257ae5c9c7144ebef4983
298
#!/bin/sh usage() { echo "Delete the last N bytes of the file" >&2 echo "usage: $(basename $0) [length_of_data_to_delete] [filename]" >&2 exit 1 } if [ $# -ne 2 ];then usage fi LENGTH=$1 FILESIZE=$(stat --format=%s $2) FILESIZE=$(expr ${FILESIZE} - ${LENGTH}) truncate -s ${FILESIZE} $2
dd3afa2d6dd0c868557dbeab8213c09213e66a83
564
#!/bin/bash heslo=$1 echo $heslo if [ ${#heslo} -le 5 ] then echo Kratke heslo fi if [[ $heslo =~ [0-9] && $heslo =~ [a-z] && $heslo =~ [A-Z] ]] then echo Heslo je OK else echo Heslo nie je OK fi #================================================================== heslo=$(pwgen 12 1) heslo=$(date +%s | md5sum) he...
c75878d43e53de2b37b02a040c50e36083132c93
832
#!/bin/sh # # ECOS settings for tfisher-hp2 # export HOST=localhost export BINDING_HOST=localhost export JAVA_HOME=c:/software/jdk1.7.0_80_64 #export JAVA_HOME=c:/software/jdk1.6.0_38_x86_64 export JBOSS_HOME=c:/software/jboss-eap-6.4 #export JBOSS_HOME=c:/software/jboss-as-7.1.1.Final-node2 export JBOSS_RUNTIME_...
2a92d0d2d4ba33de8f7ecfe08a97be05bd5a9fca
5,648
declare -A arr arr+=( ["1941"]=-3 ["1943j"]=-3 ["1943kai"]=-2 ["1943mii"]=-2 ["1943u"]=-3 ["280zzzap"]=-1 ["3wonders"]=-2 ["4dwarrio"]=-2 ["jt1942"]=-3 ["A.1942"]=-5 ["A.ARKANOID"]=-2 ["A.ASTDELUX"]=-4 ["A.ASTROCADE"]=-2 ["A.CCLIMB"]=-3 ["A.COMSPC"]=-2 ["A.GALAXN"]=-2 ["A.PACMAN"]=-4 ["alibaba"]=-3 ["alienaru"]=-5 ["...
0c9f93062d15d033b0f1d8916b7d55a4ab9feac3
184
#!/usr/bin/env bash docker-compose -f ./docker-compose.yml down docker stop $(docker ps | awk ' /sagemaker/ { print $1 }') docker rm $(docker ps -a | awk ' /sagemaker/ { print $1 }')