blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
3ebd1c61572ce683531e23ef615c822c0c71759a | 324 | #!/bin/bash
echo "TEST $0"
echo "PASS this is a successful assertion"
echo "CODE 0"
# if ommited a TEST statement
# a PASS statement triggers a syntax error
echo "PASS this is a syntax error (premature pass)"
# even when the continuation is correct
echo "TEST $0"
echo "PASS this is a successful assertion"
echo "CODE... |
98ef1add891cc117ceb04a1708a7515f3e4efa37 | 118 | #!/bin/bash
python -m dl4nlt.models.sswe.train --dataset=global_mispelled
python -m dl4nlt.models.lstm.experiments
|
ee7069f0729591188595e7e7836b30003a02f5f8 | 1,129 | #
# Based on PKGBUILD firefox-extension-shumway and firefox-extension-adblock-plus
_plugin_name=requestpolicy-continued
pkgname=firefox-extension-${_plugin_name}
pkgdesc="Be in control of which cross-site requests are allowed. Improve the privacy of your browsing by not letting other sites know your browsing habits. ... |
2394317d6909b4c74f4dea0ed6e1d36fb63b3342 | 212 | #!/bin/sh
XCODE_TEMPLATES_DIR="/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates"
sudo mkdir -p "$XCODE_TEMPLATES_DIR"/Custom
sudo cp -R *.xctemplate "$XCODE_TEMPLATES_DIR"/Custom
|
6f62b1833f36abcd3da4b97d6fdad39113e98d50 | 516 | #PBS -l nodes=1:ppn=2
#PBS -l walltime=50:00:00
#PBS -q p100_normal_q ##or p100_dev_q for short jobs
#PBS -W group_list=newriver
#PBS -A vllab_2017
source activate py36
module load cuda/8.0.44
module load cudnn/6.0
cd /home/sloke/oml/Matrix-Capsules-pytorch
#python3 train.py "smallNORB"
echo $CUDA_VISIBLE_DEVICES
#pyth... |
9517fc844951fd29cb382fc56898cb89973bf22f | 2,923 | #!/usr/bin/env bash
# Copyright 2016 Christoph Reiter, 2019 Dan Yeaw
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
... |
7e0c6419674d6faa33ce253968c6d534b0b71df4 | 52 | ENABLE_NEW_JSX_TRANSFORM="true"
FAST_REFRESH="true"
|
3a1bd0f2f4583233a8580d892c66256c6b9ff515 | 1,651 | # Maintainer: Jody James <ajjamesobr@gmail.com>
pkgname=obr-desktop
pkgver=1.00
pkgrel=1
pkgdesc="Desktop Meta-Package for OBRevenge"
arch=('any')
license=('GPL')
install=obr-desktop.install
makedepends=('git')
url=https://github.com/obrevenge/obr-desktop
depends=('python2' 'openbox' 'obr-control-panel' 'obr-panelswit... |
df2219d08106e6b3e16e91898beb0b4669e017bd | 994 | #!/bin/bash
set -euo pipefail
# Verify that all the unsupported.*parquet files result in an error when creating the virtual table,
# but don't segfault.
load_unsupported() {
file=${1:?must provide file to load}
basename=$(basename "$file")
cat <<EOF
.echo on
.load build/linux/libparquet
.testcase $basename
.bai... |
7bd75e550e9c35927470590968f857313492f4ec | 6,070 | ###########################################
# Battery plugin for oh-my-zsh #
# Original Author: Peter hoeg (peterhoeg) #
# Email: peter@speartail.com #
###########################################
# Author: Sean Jones (neuralsandwich) #
# Email: neuralsandwich@gmail.com #
# Modified t... |
c5ed9d9943b7d9b8011b7b2f4a28d0095801c130 | 48 | #!/bin/bash
sudo podman exec routera qdstat -n
|
f9228ec0b57ba2d9970f9f4c2547a9e8ef3530cb | 184 | #!/bin/bash
set -eu
find_files() {
find ${NGTS}/flat-field-optimisation/data -name 'proc*.fits'
}
limit() {
head -n 200
}
main() {
find_files | limit > $1
}
main "$@"
|
97f7b507709ad4b581d0eadad8c6d2983ac5bcd0 | 94 | #!/bin/bash
T=$(sha1sum "$1" | cut -b 1-40)
echo $T
p=/home/calapova_maria/dir
cp "$1" $p/$T
|
f8b367137d5510b2892b55dadabbd2b82da3ec47 | 3,325 | ulimit -t 1
echo $1 $2 $3 $4 $5 >> testruns.txt
case $2 in
p1) $1 6320 1 1 -9136 16 -9103 2 8092 632 0 2 0 | diff outputP/O1 - && exit 0 ;;
p2) $1 6328 1 1 3296 -7440 2160 2 618 639 0 2 0 | diff outputP/O2 - && exit 0 ;;
p3) $1 4336 1 1 2288 80 4000 -4 5968 604 0 2 1 | diff outputP/O3 - && exit 0 ;;
p4) $1 6368... |
7a02fb2eac6517eddc98992946408c7c48545cdb | 326 | #!/bin/bash
if [ ! -n "$GOPATH" ]; then
echo "GOPATH IS NULL"
exit 0
else
echo "GOPATH="$GOPATH
fi
rm go-package-plantuml -rf
go build github.com/maobuji/go-package-plantuml
if [ -f "plantuml.jar" ]
then
echo "plantuml.jar exist"
else
wget https://jaist.dl.sourceforge.net/project/plantuml/plantuml.jar
fi... |
e4b37d652a50305fb2132b573d47ef9cee64c7b0 | 131 | #!/bin/bash
docker run --name cyan-dev -p 127.0.0.1:5432:5432 -e POSTGRES_USER=cyan -e POSTGRES_PASSWORD=secretpass -d postgres:10 |
7699f488a923846e218f6087b607b57de4a59c9a | 546 | #!/bin/sh
# add /usr/share/man
[ -d "/usr/share/man" ] && \
MANPATH="${MANPAGE}:/usr/share/man"
# check for pkgsrc (smartos)
MANPATH="$(echo ${MANPATH} | /bin/sed -r 's#/opt/local/man:##g')"
if [ -d "/opt/local" ]; then
MANPATH="/opt/local/man:${MANPATH}"
fi
# check for omniti repository (omnios)
MANPATH="$(ech... |
c566492d0306e988f26984453c1a959d75eb85ec | 4,582 | #!/bin/bash
VERSION="1.0.0"
dbuse=1
dbuser="sqlpile"
dbpass=
dbname=
verbose=0
testing=0
dbfuncimport="mysqlimport"
history=".sqlpile"
historylist=( )
opmode=0
opdir=`pwd`
opoutput="compose.sql"
historyfile="${opdir}/${history}"
function mysqlimport {
local dumpfile="$1"
`mysql -u "${dbuser}" -p${dbpass} <... |
b9733f3a738d818cc06486b7220c5d71f279fc6a | 199 | #!/bin/bash
rm -rf ./docs/*
pushd plat_plus
./gradlew html:dist --console=plain
popd
cp -r ./plat_plus/html/build/dist/* ./docs
git add .
git commit -m "web deploy updated"
git push origin master
|
b8bce145b08bf07a65b7581ee170c2a43534726f | 354 | #!/bin/bash
SESSION=tmux-ppe-mysql-and-mongo
tmux new-session -d -s $SESSION
tmux split-window -h
tmux select-pane -t 0
tmux send-keys "ssh bshah@tvl10dbm05prd" C-m
tmux select-pane -t 1
tmux send-keys "ssh bshah@tvl10dbm04prd" C-m
tmux split-window -v
tmux send-keys "ssh bshah@tvl10dbm06prd" C-m
# Attach to sessio... |
60d7302ff4e61a403ac182a0c3f4fced3b5c71d9 | 71 | erl -noshell -s solution_slow_tc main <tc3-in.dat >tc3-out-slow-tc.dat
|
0d5e2e38ee858c5ca0f2ecca88979b7cdddcadfd | 2,975 | #!/bin/sh
set -o errexit
set -o nounset
DOCKER_TIMEOUT=20 # Wait 20 seconds for docker to start
DATA_VOLUME=/docker-partition
BUILD=/build
SRC=/src
PARTITION_SIZE=${PARTITION_SIZE:-2048}
PARTITION_IMAGE=${PARTITION_IMAGE:-docker-data-partition.img}
CONTAINER_SUFFIX=${CONTAINER_SUFFIX:-.tar.gz}
IMAGE_SUFFIX=".tar"
fi... |
20013ca9ee87942d6b439bfce81722827926a285 | 1,531 |
#Change to directory with simulated data
cd ../Simulated_data/N
#Run the WN sampler
for f in *WN*; do
# run regression with k=1 and prior variance=5
../../Ccodes_and_scripts/Regression_WN.exe 1 5 $f
# run analysis with autocorrelations (argument 1) and write report to dat file
../../Ccodes_and_scripts/Analysis.ex... |
dc78675c3869ee2e0a9e92b1208ff6d16d01f6f8 | 211 | # This script runs the bzip examples in the CCR project.
#
# Ed Hartnett 11/18/20
# Set the plugin path to find plugin.
export HDF5_PLUGIN_PATH=../src/.libs:$HDF5_PLUGIN_PATH
# Run the example.
./h5ex_d_bzip2
|
521ff27020a2e5f8b3a5981f424784d903cb37af | 542 | #!/bin/sh
realcpu="$(~/.tools.realcpu.sh 3)"
cpuload="$(read l1 l2 l3 __ < /proc/loadavg; echo $l1 $l2 $l3)"
date="$(date +'%a %d %b %H:%M')"
if [ -x "$(command -v sensors)" ]; then
temp="$(sensors | sed -rn '/temp1|Core/s/.*:\s+\+(\w+)\.\w+(ยฐ).*/\1\2/p')"
temp="${temp//[$'\n']}"
fi
if [ -x "$(command -v acp... |
df5142e8b696b6a57269134da2ad25ffa1ce3379 | 3,399 | #!/usr/bin/env bash
. versions.sh
if [ -f env.sh ]; then
. env.sh
fi
function usage {
__usage="Usage: $(basename $0) [-h] [-S ip:port]
Options:
-h print this help and exit
-S sidecart address - A side cart address:port multiple side cart can be comma delimited
The script starts Thanos query, it c... |
a5707c991f29f0da2d88faf010d7eb197010306f | 193 | // variables.env
PORT=5001
PUBLIC_VAPID_KEY=BJ3yPOked8MTO8ld9VVyxhULPLhvl2DWEhkukkxZKEhWz0fcNdRsliPicFSVp7HUQ8G7ZO32IPjQyDg-hYejf3E
PRIVATE_VAPID_KEY=TQD9jBPI71P-Eyef2yUz0ePSnpWVBH2A5tLKLAqLYvM |
79f2106666a8d0e0e1b65c6e0c4862e62b2b5304 | 422 | #!/bin/bash
a=$(sudo docker ps | grep petclinic | cut -d' ' -f 1)
echo "ID container="$a
if [ -n "${a}" ]; then
echo "Conteiner runing"
docker-compose -f docker-compose_petclinic.yml stop
docker-compose -f docker-compose_petclinic.yml rm -f
else
echo "Conteiner don't run"
fi
docker rmi 10.23.27.6:443/petclini... |
12eaddee1c87e94f36e96394dd622b04b3f5d624 | 7,272 | perl 01_filter_gene_based_drug_cancer_mutation_info.pl #ไธบ "/f/mulinlab/huan/ALL_result_ICGC_ALL_drug/output/19_gene_based_ICGC_somatic_repo_may_success_logic.txt"
#ไป"/f/mulinlab/huan/workspace/drugrepo/dataset/gene-disease/Cancer/somatic_mutation/ICGC/release_27/release_27_snv_indel/data_statistics/pathogenicity_id_ca... |
200b3cf0efcc5ea14f52a18c4fa3bd1cde6b6479 | 305 | #!/bin/bash
#Any environment settings specific to Oracle.
INSTALL_DIR=/usr/local/nagios/kunjumon
ORACLE_CLIENT_LIB_PATH=/usr/lib/oracle/11.2/client64/lib
CONFIG_FILE=$1
MONITOR_NAME=$2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_CLIENT_LIB_PATH
$INSTALL_DIR/kunjumon.pl $CONFIG_FILE $MONITOR_NAME
|
2eb5bce68e7f81fbe47dd691fc0942773cd3869c | 119 | # FLUNK="oh my yes"
@test "truth should be true" {
true
}
@test "string should be empty" {
[ -z "$FLUNK" ]
}
|
dc0c3efdb3286e834dce6c68eaf75b22297ec1c0 | 68 | add_lunch_combo cm_warplte-userdebug
add_lunch_combo cm_warplte-eng
|
4d9e114560644ec871ee28fbc19ed1d242915e47 | 115 | #! /bin/bash
head -$(ruby -e "puts (rand * `wc -l < /usr/share/dict/words`).to_i") /usr/share/dict/words | tail -1
|
b1d92b8ee744bb8dfbffb9ef52867e2bba43af5d | 269 | #!/bin/sh
#/Users/apple/Library/Python/2.7/bin/pyinstaller --windowed --onefile --clean --noconfirm ff777wingflex.py
/Users/apple/Library/Python/2.7/bin/pyinstaller --onefile --clean --noconfirm ff777wingflex.spec
pushd dist
create-dmg ff777wingflexfixmac.app/
popd |
fe705aba8fbabdf51ab7b6ed115b2b739b364df2 | 1,909 | #!/bin/bash
list=$1
while read line
do
workdir=/scratch/mmalenta/ninjector_tests
export OMP_NUM_THREADS=16
filename=$(basename $line)
sourcename=$(echo $filename | sed 's/\([a-zA-Z0-9_\-]*\)_gsb.*/\1/')
mkdir ${sourcename}
cd ${sourcename}
#rsync -avz --progress -e 'ssh -i /home/mmale... |
39d7c9efdf95195336fa6e2bd93583e870c93029 | 155 | docker kill demo
docker rm demo
docker run -d --name demo \
-p 80:8080 \
zhaohuabing/liveproject-tracing:v1.1
sleep 5
curl http://127.0.0.1/checkout
|
e182fedb37b4d6843a26d92a5d7c11cdacf2e10b | 186 | #!/bin/bash
set -e
git config --global user.email "$GH_EMAIL"
git config --global user.name "$CIRCLE_USERNAME"
git add .
git commit -m "Deploy to GitHub pages"
git push origin master
|
4f26ee9e6a2bdf4e734b0d3e301d4d02174de094 | 271 | #!/bin/bash
if [[ $1 = "-h" ]]; then
echo "Wrap/obfuscated Oracle procedures and functions"
echo "Call in the source dir"
exit
fi
for i in $(ls *.{prc,fnc});
do
wrap iname=$i &> /dev/null
done
rm -rf wrapped_objects
mkdir wrapped_objects
mv *.plb wrapped_objects
|
62918cd3b11c201452ca1d952a17e788f6181803 | 3,876 | #!/bin/bash
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
# This is an example of a script that will delete all of the infrastructure components that were
# created using the create_infra.sh script.
#
# Depe... |
04ece76fc7c8569396d890ea48d996f2ec3e748c | 3,011 | #!/bin/bash
. ./utils.sh || exit 1
function _test_freedb_search_get_cgi_tracktype
{
get_type=$1
get_url=$2
get_port=$3
rm -f query.cddb
remove_output_dir
M_FILE="La_Verue__Today"
expected=" Processing file 'songs/La_Verue__Today.mp3' ...
Freedb search type: cddb_cgi , Site: tracktype.org/~cddb/cddb.... |
55565ccb8635f030f931a5e8f6fa82df8e6faafe | 1,939 | #!/usr/bin/env bash
#
# Install on a new mac.
# "Safe" bash
set -euf -o pipefail
# ANSI codes
readonly GREEN='\033[0;32m'
readonly NC='\033[0m' # no color
# Print a log message, in green.
log () {
declare -r message="$1"
printf "${GREEN}MACINSTALL: ${message}${NC}\n"
}
log 'dotfiles installation commencing.... |
ae3a5eb949cc55b1031587c0d9c19c8a308aa4bf | 124 | #!/bin/bash
foo=${bar}baz
foo=${bar/1/2}
foo=${bar//1/2}
foo=${bar^}
foo=${bar^^}
foo=${bar,}
foo=${bar,,}
foo=${#bar}
|
167588891649814b8bbcddde77a13f61def6c7ed | 9,572 | #!/bin/bash
print_info() {
echo -e "\033[32m\n $* \n\033[0m"
}
print_error() {
echo -e "\033[31m\n $* \n\033[0m"
}
sed_inplace() {
if [ "$(uname -s)" = "Darwin" ]; then
sed -i '' "$1" "$2"
else
sed -i "$1" "$2"
fi
}
sed_script_inplace() {
if [ "$(uname -s)" = "Darwin" ]; then... |
92a31f18ad900e13ca9552e15eee211d346df771 | 125 | #!/bin/bash
set -e
createuser sshobs --no-password --superuser
bundle exec rake db:drop && rake db:create && rake db:migrate |
23e802fc863ca66714a99836d65d880909b9c19a | 2,241 | #PREREQUISITES
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y epel-release
yum install -y git python-pip python34 jq nginx
curl https://bootstrap.pypa.io/get-pip.py | python3.4
pip3 install --upgrade pip jsonschema
# upgrade python to 3.6+ for latest universe
sudo yum -y ... |
b44c0f6366dbd91970bb3b0c55ad1d3597b5b590 | 1,499 | #!/bin/bash
# This file is part of Intrusion Detection System By - Raghav Bisht.
#
# Intrusion Detection System By - Raghav Bisht is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... |
403d8ac66528281022150a8a0258b0d8c06aff80 | 730 | #!/bin/bash
for i in "$@"
do
case $i in
-p=*|--peer=*)
PEER="${i#*=}"
shift
;;
-o=*|--orderer=*)
ORDERER="${i#*=}"
shift
;;
--default)
DEFAULT=YES
shift
;;
*)
;;
esac
done
echo "PEER = ${PEER}"
echo "ORDERER ... |
e30ae86e22244bb56b083511e3dcfdd4fd69a915 | 308 | PROJECT_ID=$(jq -r '.resources[0].instances[0].attributes.app_id' terraform/terraform.tfstate)
gcloud beta billing projects unlink $PROJECT_ID
gcloud projects delete $PROJECT_ID
rm -rf terraform/.terraform
rm terraform/.terraform.lock.hcl
rm terraform/terraform.tfstate
rm terraform/terraform.tfstate.backup
|
616d12cf58de853fd8a67253d0456afd895c8ed7 | 229 | project=$1
action=$2
version=$3
if [ $version ];then
modules/build.sh $sourceroot/$project/ $action $version
else
modules/build.sh $sourceroot/$project/ $action
fi
if [ $? -ne 0 ];then
echo "build $project failed"
exit 1
fi |
41de9ad4ba5f0afd18f1172cee7280cb91a85ea6 | 5,282 | #!/bin/bash
baseTFTP="/opt/g8-pxeboot/pxeboot/tftpboot/pxelinux.cfg"
baseIP="/opt/g8-pxeboot/pxeboot/conf"
#check if base files exist
function check {
[ -f "$baseIP/hosts" ] || { echo [-] "can't find $baseIP/hosts file" && exit 1; }
[ -f "$baseIP/dhcphosts" ] || { echo [-] "can't find $baseIP/dhcphosts file" && ex... |
67c3b22da2d163c9f64db943cd1bf90d9e9f5074 | 242 | #!/bin/bash
# Deploy to local
DEST_DIR="/var/www/domo-server"
echo "Deploy to localhost to $DEST_DIR"
sudo cp * $DEST_DIR/
sudo cp -r ./api $DEST_DIR/
sudo cp -r ./app $DEST_DIR/
sudo cp -r ./python $DEST_DIR/
sudo pm2 restart domo-server
|
57121dd84154f6ac229dffd02646dd7df702d9e6 | 102 | node -v
npm -v
if [ -e "./node_modules" ]
then
npm run build
else
npm i
npm run build
fi
|
cc9598aa32ee2a63a23e6c1648a39291f6d516ae | 540 | #!/usr/bin/env bash
# This is a script for bootstrapping macOS setup
set -e
if [[ ! -e "manage.sh" ]]; then
echo "Make sure you have the manage script nearby"
exit 1
fi
if ! which brew &> /dev/null; then
echo "You need to install homebrew"
exit 1
fi
echo "Installing dependencies from Brewfile..."
brew tap h... |
7228cbe7bf3d315bca9e58fda64140df53b2b683 | 2,108 | #!/usr/bin/env bash
NAME=""
DATA=()
LABELS=("kyma-project.io/installation=" "installer=overrides")
NAMESPACE="kyma-installer"
LABEL_REGEXP="^[a-zA-Z0-9./-]+=[a-zA-Z0-9./-]*$"
function checkScriptInput {
if [[ -z "${1}" ]] || [[ "${1:0:2}" == "--" ]]; then
echo "Missing parameter value"
exit 1
... |
95fedabdfe8d9327edb1210024b19edb2e46fc25 | 224 | #!/bin/bash
set -e
scripts_path=./$(dirname $0)
eval $($scripts_path/../get_paths.sh)
./$scripts_path/../experimental/generate-mysql-bosh-lite-manifest
bosh -t 192.168.50.4 -d $DIEGO_MANIFESTS_DIR/cf-mysql.yml -n deploy
|
30a02190ab6d2c93a8f4e87c516d0bfe43350222 | 29 | #!/bin/bash
vim $(which $1)
|
40d9e4c49e7f60c1827845647070720d0c62d5a4 | 55 | export WINDOWS_USERPROFILE="$(cygpath "$USERPROFILE")"
|
8d88d707ee01bb2c8be2eca2bdd49084b7e011d5 | 1,164 | #! /bin/bash
# ๅฐๆชๅฎๆ
# e.g. search /home/* and return 1st depth of folders in /home/
# : ./get_folders_in_folder.sh
search_dir="/home"
# for entry in `ls $search_dir`; do
# # echo "$entry"
# filepath="/$search_dir/$entry"
# echo "filepath=$filepath"
# if [[ -d $filepath ]]; then
# entry_basen... |
bd29905b20d7ff2b38767007ea7a0d4c2d12f2e2 | 78 | #!/bin/bash
#cURL headers
curl $1 -sX GET -H "X-HolbertonSchool-User-Id: 98"
|
74ef13d7e9f605f0f7a2fb98ade7776bc7eed971 | 186 | #!/usr/bin/env bash
g++ -c Layer0.cpp
g++ -c Layer1.cpp
g++ -c Layer2.cpp
echo Done Compiling Linking Left
g++ Layer1.o Layer0.o Layer2.o main_prog.cpp -o main_prog
echo Linking Complete |
96927d3e5b73cd3f44793cab4a3091ab607f0484 | 1,205 | #!/bin/bash
echo ========================================================
echo Tagging all non running servers as Type=Slave, Name=SlaveXX
echo ========================================================
if [[ -z "${1+x}" ]] ; then
COUNTER=0
else
COUNTER=$1
fi
function tag {
if [[ "$1" != "0" ]] ; then
... |
e1b484985e86fa4dd4e6d51eb08352bc6659bdc1 | 3,025 | #!/bin/bash
set -euo pipefail
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
test-pt2 () {
diff <(${ANGELIX_RUN:-angelix-eval} ./pt2 "$1") <(angelix-eval $SCRIPT_DIR/../golden/pt2 "$1")
}
case "$1" in
1)
test-pt2 "0G~%[a[czf"
;;
2)
test-pt2 "kH"
;;
3)
test-pt2 ... |
3e0fd81500af910a67e97f5f4ca0bd04054b2653 | 756 | alias ll='ls -alF'
alias la='ls -A'
alias l='ls -1 --group-directories-first'
alias j='jump'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;... |
c35791589032a08805d0b71111a8b4110c4b5a46 | 42 | #!/bin/bash
java -jar cgi-g24-rq5.jar GET
|
130e974ca69def82a70cfa982ced1fadc534f38d | 153 | #!/bin/sh
kubectl delete svc istio-ingress
echo "Waiting for the Istio Ingress service to clean up"
sleep 30
gcloud container clusters delete -q istio
|
6577e1b8dbbd742c6162ac74647555f321fa8a89 | 597 | #! /bin/bash
source /opt/ros/kinetic/setup.sh
source ~/UstarService/devel/setup.bash
move=0
rqt=0
gnome-terminal -x bash -c "roslaunch simulator stage.launch"
if [ $? -eq 0 ]; then
sleep 3
gnome-terminal --tab -e 'bash -c "roslaunch simulator move.launch"'
move=1
else
echo "stage start falied"
fi
if [ $move -eq 1 ... |
1cd1b01ec52701be16046884e36a28dc8c484499 | 2,637 | #!/usr/bin/env bash
############################################################
# Helper functions
# shellcheck disable=SC2155
download() {
local download_url="${1}"
local output_path="${2}"
if ! curl -v "${download_url}" > "${output_path}" ; then
echo "Downloading ${download_url} to ${output_path} failed... |
fa0d1124db056d673426b57bc528217b52c79131 | 133 | #!/bin/bash
cd ~/angular/Apps1
grunt mask:mathmo
grunt prod
rsync -av ~/angular/Apps1/dist/ gmp26@maths.org:/www/nrich/html/mathmoApp |
7f64bc8a8f0495af7bc6497d5fd7de73b9d21e98 | 281 | #!/bin/sh
echo "create database test1;
\c test1
CREATE TABLE indexing_table(created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW());
" | psql -U postgres
while true; do
psql -U postgres -d test1 -c "INSERT INTO indexing_table(created_at) VALUES (CURRENT_TIMESTAMP);"
sleep 1;
done
|
9b6ec040a0e8724acfefc3f023ed58763bae91f3 | 47 | #!/bin/bash
# testing if and logical operators
|
f8064a5f30012b66a1b861a2c0c58962f523839b | 734 | #!/usr/bin/env sh
set -o errexit
DIR="${HOME}/.config/awesome/config"
DEST="$DIR/env.lua"
[ -d "$DIR" ] || mkdir -p "$DIR"
cat >"$DEST" <<EOF
terminal = os.getenv("TERMINAL") or "xst"
terminal_cmd = terminal .. " -e "
editor = "{{ .editor }}"
editor_cmd = terminal_cmd .. editor
{{- if eq .sound "alsa" }}
{{- if e... |
292d704d400495679fc0c37c7e9f622e2aa2596d | 639 | function rails3_generator {
generator_name=$1
gem_name=gem_$generator_name
shift 1
script/generate generator $generator_name
cd lib/generators
# create jewel
jewel_build $gem_name
cd lib
# remove default rb file
# create directory structure for generator
rm *.rb
mkdir generators
# go to top dir
c... |
ced2facdecb1b401f9760b6a60a6d61595f2fc54 | 131 | export MAVEN_OPTS="-Xdebug -Xmx512m -Xrunjdwp:transport=dt_socket,address=8003,server=y,suspend=n"
mvn -Djetty.port=8083 jetty:run
|
ab7dce682d952f8d6819d24bdfbdc3a95a94bbb5 | 769 | #!/usr/bin/env bash
# Load common shell functions
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $MYDIR/common_shell_functions.sh
print_header "Starting to test STATSD module"
# Enable STATSD module
opsbro agent parameters add groups statsd-listener
# Start it
/etc/init.d/opsbro start
cat /var/log/o... |
ecea1e3a2db2c743e3a84bc0c56a10b1580f859f | 164 | databasetype = mysql
database = o8d1dhfhsgkwalig
server = e11wl4mksauxgu1w.cbetxkdyhwsb.us-east-1.rds.amazonaws.com
user = sde1nao62ko4du2r
pass = t54neh1as8jj1osz
|
93a79b74282d4b89365ca00ae27222f38ade9f6d | 1,215 | #perl ๊ด๋ จ์ต์
์ด ์ปดํ์ผ ์ค ์๋ฌ๊ฐ ๋์ ์ค์ ๋ก perl ๊ด๋ จ ์ปจํผ๊ทธ๋ ์ ๊ฑฐํ๊ณ ์ปดํ์ผํ์ต๋๋ค
# ์๋ ์ฌ์ดํธ๋ฅผ ์ฐธ๊ณ ํด์ ์๋น์ค ์คํฌ๋ฆฝํธ๊น์ง ์ค์นํ๋๋ก ํฉ๋๋ค
# https://github.com/utylee/nginx-sysvinit-script
./configure \
--sbin-path=/usr/local/sbin/nginx \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/error.log \
--http-log-path=/var/log/a... |
ed3654e33b6b501c6e39838cbb89c701e31cdbff | 227 | POSTGRES_USER=admin
POSTGRES_PASSWORD=admin
POSTGRES_DB=nestjs
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
PORT=3001
RABBITMQ_USER=admin
RABBITMQ_PASSWORD=admin
RABBITMQ_HOST=localhost:5672
RABBITMQ_QUEUE_NAME=email-subscribers
|
c58ab06405f7efd62a91e4c5dcab9e22b5fd2b0c | 168 | #! /bin/bash
cp .env.example .env
docker exec lnk-app composer install --no-cache
docker exec lnk-app php artisan key:generate
docker exec lnk-app php artisan migrate
|
ae0daf38ac37f1582491fdcb1deca50195c6cd76 | 95 | #!/bin/bash
#for popen.c read
#echo "Hello World"
#for popen.c write
read a
echo ุชูยณู$a
|
29e6897d09bdb3ff11c519b77a3d73103c8db3b4 | 307 | #!/bin/bash
cd $(dirname $(readlink -f $0))
if [ $# -lt 3 ]; then
echo Usage: ./create_service.sh SERVICENAME BOTFOLDER BOTUSERNAME
exit 1
fi
sed -e "s/\[botname\]/$1/g" -e "s/\[botfolder\]/$2/g" -e "s/\[botuser\]/$3/g" botservicectrl > $1
chmod 0755 $1
mv $1 /etc/init.d/$1
chkconfig --add $1 |
578a1504f0f95e13ed3ab56d0340145c77a73860 | 1,351 | #!/bin/sh
# XMP tags editor extension
# test Ubuntu distribution
DISTRO=$(lsb_release -is 2>/dev/null)
[ "${DISTRO}" != "Ubuntu" ] && { zenity --error --text="This automatic installation script is for Ubuntu only"; exit 1; }
# install tools
sudo apt-get -y install libimage-exiftool-perl imagemagick zenity
# install ... |
99409c9c604c56094496b32d3fcf8b4833e68220 | 76 | java -jar -Dloader.path=.,3rd-lib /var/www/html/ybg_plus-3.0.0-classes.jar
|
61548850f92922710663065c532f7995f958aaf8 | 1,241 | # run various training schedules for upper class model
#python train_class.py -traindir ../fdata_CropSQRS/train/upper/ -testdir ../fdata_CropSQRS/test/upper/ -modelfile model_upper_u16_lr0001_SGD.h5 -logfile log_u16_lr0001_SGD.csv -lr 0.0001 -unfreezelast 16 -nworkers 6
python train_class.py -traindir ../fdata_CropSQ... |
32c93398db88d0c19a76626d8717017e4e31b1f5 | 37 | #!/bin/bash
service rocketchat stop
|
a5c8f6f483b19d3520d6bfb329123993a389797f | 238 | #!/bin/sh
make -C conio clean $@
make -C sbbs3 clean $@
make -C sbbs3/scfg clean $@
make -C sbbs3/uedit clean $@
make -C sbbs3/umonitor clean $@
make -C smblib clean $@
make -C uifc clean $@
make -C xpdev clean $@
make -C encode clean $@
|
fa5308a8aab71db41d67d7e621e65f3f35e96ed1 | 87 | #!/bin/bash
dapr run --app-id products --app-port 9002 --log-level error realize start
|
ecbccfd0a64e1d91035a5dedab8e1df64dfe913c | 95 | #!/bin/sh
echo "== Stopping Docker Containers == "
docker-compose stop
echo "\n== Done! == "
|
4ef4d6e1864b6d01e7c1c3bc1a60aa504a509e3c | 225 | PORT = 4000
mongoURI = mongodb+srv://Francis:Ft@cluster0.twgdt.gcp.mongodb.net/test
GOOGLE_CLIENT_ID = 6506281202949-p02c4c7j5lo0v3egcfaund73dob02glb.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET = AH3zALfllJb8vVgxOvUhL_yI
|
7614c7e144f4eaf516ffdf78bb82c7911261919f | 117 | #!/bin/bash -x
./gradlew testClasses
echo '// change' >> project2/build.gradle
./gradlew testClasses
./gradlew check
|
8e30933f2c6c3e5942d6e5e40c2c6fb026358b2e | 156 | #!/usr/bin/env bash
echo
cat ~/data/24hoursaday.json| jq -r --arg date "$(date '+%m-%d')" '.contents[] | select( .date | contains($date) ) | .reading'
echo
|
9773b602197abcc1c51f227d3e026481fabc9d9b | 569 | ver 1.0.6
epoc 1
dist http://bzip.org/$PKG_VER/$PKG_NAME-${PKG_VER}.tar.gz
pre_configure() {
ed Makefile <<-EOF
,s/^\(CC\)=\(.*\)\$/\1\?=\2
,s/^\(AR\)=\(.*\)\$/\1\?=\2
,s/^\(RANLIB\)=\(.*\)\$/\1\?=\2
w
q
EOF
}
do_build() {
make -j $MK_NPROC bzip2
}
do_install() {
install -Dm755 bzip2 $MK_DESTDIR$MK_PREFIX/b... |
e87256d9db1b8a3255aca8edfa5177d4e6c29f42 | 395 | #!/bin/bash
read -p "Enter the worker1 username : " w1
read -p "Enter the worker2 username : " w2
kubectl get nodes | grep -v master | grep -v NAME | head -n 1 | awk '{print $1}' > node1
kubectl get nodes | grep -v master | tail -n 1 | awk '{print $1}' > node2
n1=$(cat node1)
n2=$(cat node2)
ssh $w1@$n... |
06f1cd00186dafd6774156ada9a545c51cc54b02 | 300 | #!/bin/bash
# We can assume that the PWD is the repo dir
# Copy everything to out/
cp -r `find . -maxdepth 1 -! \( -name "out" -o -name ".*" -o -name "deploy" \)` "out"
# Delete unused files
rm -f out/.gitignore
rm -rf out/deploy
rm -rf out/out
# Add bower dependencies
cd out
bower install
cd ..
|
bc55b8e7627bf8a2fbc8e0706b1f147a94cb16ea | 71 | pkill python
# cd /Development/FirstBlog/
# python manage.py runserver
|
dc4872b9917782aaa9382db1b210b8e9b97b515d | 428 | #!/bin/sh -e
tar xf edf489332a36c4e55e768aa58c23372c2b051dc5
cp disable-wxPaintEvent.patch Ishiiruka-edf489332a36c4e55e768aa58c23372c2b051dc5/.
cp fix-fd_set-error.patch Ishiiruka-edf489332a36c4e55e768aa58c23372c2b051dc5/.
cd Ishiiruka-edf489332a36c4e55e768aa58c23372c2b051dc5
for patch in *.patch; do
patch -p1 < ... |
e6cf61b195a462aca4fee0d829c19c12f345a979 | 450 | #!/bin/bash
# Files needed
pwd=`pwd`
. $pwd/unifi-api.sh
# Generation settings
uniemail=$1
uniusername=$2
unipassword=$3
#login to the controller
unifi_login >/dev/null
#create admin + grep accountID of just created read-only user
uniuser=`unifi_create_admin $uniemail $uniusername $unipassword | tr ':' '\n' | tail ... |
11b03273dbb18d4599143f984fb89d90cd5f9482 | 448 | REACT_APP_FIREBASE_APIKEY="AIzaSyCR-pJqO5quLmyJSswnL7ceSM-YV_Xn_k0"
REACT_APP_FIREBASE_DOMAIN="typescript-todo-2747b.firebaseapp.com"
REACT_APP_FIREBASE_DATABASE="http://typescript-todo-2747b.firebaseio.com"
REACT_APP_FIREBASE_PROJECT_ID="typescript-todo-2747b"
REACT_APP_FIREBASE_STORAGE_BUCKET="typescript-todo-2747b.a... |
ac2861796ba8ac32ae70584b2a1399d5941dfcc2 | 142 | #!/bin/bash
read -p "Enter IP subnet...> " IP
for i in {1..254}
do
ping -c 1 $IP.$i | grep ^64 | awk '{print $4}' | cut -d ":" -f 1 &
done
|
2f9b2fd693979b0b1ef17f7850489cd261f4f19d | 1,878 | #!/usr/bin/env zsh
###############################################################################
#2020/9/18 sundong
###############################################################################
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${DIR}/install_isolated/setup.zsh"
function pose() {
... |
6c072a1dbef483994bc66f73c72ddcde65258fa4 | 407 | #!/bin/bash
. `dirname $0`/env.sh
import 'out'
readonly URI='http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz'
readonly DEST='/opt/yasm'
cachegetfile "$URI" 'regdest'
readonly PYTHON2=/opt/python27/bin/python2
pushd "$regdest" >/dev/null||exit 1
./configure \
--prefix="$DEST" \
PYTHON="$PYTHON2" \
&... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.