blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
7aed9551b19b14df2e39368fca842c0fe699321a | 111 | #!/bin/sh
update-ca-certificates
if test -x /usr/sbin/update-ca-certificates; then update-ca-certificates; fi
|
43699a4aa7f5eba657e2b3181442ff0b0abf1cf8 | 62 | QEMU_OPTS+=(
-bios $SCRIPT_DIR/../bios/seabios-1.12.0.bin
)
|
2ac0ed82046a8e950fa4653df56d44aecdecd32a | 3,907 | #!/usr/bin/env bash
set -e
ROOT_DIR=$(dirname $0)/..
action="$1"
function usage() {
cmd="$1"
echo ""
echo "Usage for more information read DEVELOPMENT.md"
echo "$cmd <command>"
echo ""
echo "command:"
echo " deploy-infra ... |
09bab88a07282ee862b365a15da9b2f2565ad8be | 15,209 | h62725
s 00001/00001/00017
d D 5.2 89/07/05 19:28:40 john 27 26
c Ensure that arguments are passed on correctly
e
s 00002/00001/00016
d D 5.1 89/06/20 16:48:52 john 26 25
c Update SCCS headers
e
s 00001/00001/00016
d D 4.2 88/09/26 10:54:33 john 25 24
c Convert back to Osiris
e
s 00000/00000/00017
d D 4.... |
4fb2948732cb3cbb1e8c72fcd37a260abe7def92 | 109 | #!/bin/bash
for ((i=0; i<10; i++))
do
rm -f tmp$1
./round$1.sh > tmp$1
diff -s tmp$1 round$1.out
done
|
e3589b8cffc4429546a9b495ea66c1e73a47918c | 215 |
#!/bin/bash
echo "date of loss"
read date
echo "time of loss"
read time
echo "am or pm"
read time_2
date2=$date*
#echo $date2
grep -e $date -e $time $date2 | grep -ie $time_2 | awk -F ' ' '{print $1,$2,$5,$6}'
|
c85f9ece8f08ba5b1960336dc57e9fca146d3ab2 | 86 | #!/bin/bash
# Bash script to send a DELETE request to URL passed
curl -sX DELETE "$1"
|
fff44a9831eeff679330bc7a4e00481fb8a014ff | 151 | num=1;find . | grep -i wav$ | while read q; do
ffmpeg -v 0 -nostdin -i "$q" -f s16le -ar 16000 -ac 2 -y $num.bin;
./strim $num.bin
let num=$num+1;done
|
dd4677cd38d1cd098d7dcd35e79b510bd16dc5cf | 3,854 | #!/bin/sh
set -e
echo " .----------------. .----------------. .----------------. .-----------------. .----------------. .-----------------. .----------------. "
echo "| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |"
echo "... |
f4e666d3fe9bf18a48c40708045a0a61325768d3 | 18 | echo "I am v6086"
|
3cd149507eb7b2f47140ab3147714cfd250b659c | 219 | #!/bin/bash -e
# Cloning the Linux kernel source code
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux-stable
git checkout v4.14.34
cd ..
# Call the rebuild script
./rebuild.sh
|
85be527c7eb8981c91b37623681d17a178507d48 | 1,321 | #!/bin/bash
## -----------------------------------------------------------------------------
## Linux Scripts.
## Simple tool for compressing files to an auto timestamped bz2 archive.
##
## @package ojullien\bash\bin
## @license MIT <https://github.com/ojullien/bash-tartime/blob/master/LICENSE>
## ---------------------... |
418e161eecc2838a102c2f8d4f71bbf83b12ea0e | 1,099 | #!/usr/bin/env bash
# Glace
# by eevee
# Generated with Charc0al's cowsay file converter http://charc0al.github.io/cowsay-files/converter
x="\e[49m "; #reset color
a="\e[48;5;123m ";
b="\e[48;5;81m ";
c="\e[48;5;74m ";
d="\e[48;5;30m ";
e="\e[48;5;39m ";
f="\e[48;5;23m ";
g="\e[48;5;32m ";
h="\e[48;5;... |
b2cea818427b8efc1cd2389b4ffeb975d29e14fa | 210 | #!/usr/bin/env bash
curl -H "Content-Type: application/json" -d '{"temp":22.4}' https://webhooks.mongodb-stitch.com/api/client/v2.0/app/stitchtest-adsgi/service/sensors/incoming_webhook/post_sensor?secret=test
|
78c1b63f292272a77553ebe8e71290e61f0f28c6 | 117 | #!/bin/bash
set -e
if [ -d "build" ]; then
rm -fr build
fi
mkdir build
cd build
cmake ..
make
./runtests
cd ..
|
84296fb42699f48681aec9d0b3b9d80ddf1aa2eb | 52 | #!/bin/bash
set -eo pipefail
echo "Build complete!"
|
7dcb7da2597d41e28d9f77e979806705067ee8e4 | 190 | # generated from dynamic_reconfigure/cmake/setup_custom_pythonpath.sh.in
PYTHONPATH=/root/catkin_ws/odroid-devel/.private/realsense_camera/lib/python2.7/dist-packages:$PYTHONPATH
exec "$@"
|
a07e9f5c59b9b22ba3c9f3e0f4ab390dd31fb1de | 145 | #!/bin/bash
##
## Variables
SCRIPTDIRA=$(dirname $0)
source "$SCRIPTDIRA"/foldervars.var
if
[[ -f $TEMPPARSEVARS ]]
then
rm $TEMPPARSEVARS
fi
|
ee830d420a02043fc79f16d94aad33807e8de1cf | 312 | #!/usr/bin/env bash
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
tzdata \
python3.7 \
python3-distutils \
libpython3.7 \
libxxf86vm1 \
curl \
git-core \
emacs \
xvfb \
&& rm -rf /var/lib/apt/lists/*
|
cc631d6056d70a8789a38c7b2f2db7cb02b1a62d | 3,711 | #!/bin/bash
CMD_PATH=.
DST_PATH=./conf_orig
CONF_DEPLOY_DIR=./conf_deploy
RUN_DATE=$1
MY_LOCALE=$($CMD_PATH/get-conf-data.sh ./locale.txt LOCALE)
if [ $MY_LOCALE = 'CN' ]; then
source ./locale_cn.txt
else
source ./locale_en.txt
fi
#Start ceph cluster installation
mkdir -p $CONF_DEPLOY_DIR
#Modify /etc/hosts ... |
c2b17b6666ed35c16373ae63a9e3edb111fd1ce6 | 137 | #!/bin/sh -l
bash java -jar /app/bllok.jar /src/template/ /src/docs/ "$1" "$2" "$3"
echo "::set-output name=bllok-status::bllok-status"
|
d91b44bf1c016c8a8ce52c6e90ad594a5e48a16c | 272 | CODENAME=meme
SETUP_MNODES_COUNT=${SETUP_MNODES_COUNT:-1}
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/memed}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-29377}
GIT_PROJECT=meme
GIT_URL=https://github.com/pepeteam/pepecoin.git
SCVERSION="tags/2.5.2.0"
NETWORK_BASE_TAG="2012"
|
5124ff1828c74fb260e15984ef30f878a612a725 | 239 | #!/bin/sh
# Init script for qmail-send
# Copied from LWQ
SERVICE=send
. /var/qmail/bin/qmail-config-system && \
exec env - PATH="${PATH}" \
QMAILREMOTE="${QMAILREMOTE}" \
qmail-start "$(grep -v '^#' /var/qmail/control/defaultdelivery)"
|
e1dd830de132736bd15e511833cd3a214377e795 | 33 | MONGO_URI=mongodb://mongo/hn-feed |
a05eaac84de9147229518279cfe371a0ded1fffa | 936 | #!/bin/bash
#for i in {1..4}; # low print
#do
# ./do_all $i 42;
#done
#for i in 5;
#do
# ./do_all $i 32;
#done
for i in {1..2};
do
list="${i}x32"
#for t in {0..5};
#do
for v in {0..7}; #1 2 5 7;
do
echo "command: do_all "$list" 66 $v" # $t"
./do_all "$li... |
3893761bf045d12ff7a9e9969799402236bb9849 | 2,273 | #!/bin/bash
set -e -x -o pipefail
# spark_standalone 0.0.1
# Create a spark standalone cluster with a number of worker nodes
# and run your spark application
#
# See https://wiki.dnanexus.com/Developer-Portal for tutorials on how
# to modify this file.
main() {
echo "Value of application: '$application'"
echo... |
f42a291f7e56c2b1105aa975a8881e90ef774bdb | 577 | #!/bin/sh
#
# ~/.xinitrc
#
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
## Source .xprofile - Vũ Nhân
[ -f /etc/xprofile ] && source /etc/xprofile
[ -f ~/.xprofile] && source ~/.xprofile
amixer -c 0 set Speaker 100%
[[ -f ~/.Xresourc... |
8496e7f004536bec4c218a3e576c673dc7016f04 | 178 | #!/bin/sh
PROJECTDIR="$( cd "$(dirname "$0")" ; cd ".." ; pwd -P )"
ARGS=$@
docker run -it --rm -v "$PROJECTDIR:/var/www/html" -w "/var/www/html" node:latest sh -c "npm $ARGS"
|
aa2ffeb38c93cb0531466127b67ffcbee905b39b | 1,184 | #!/usr/bin/env bash
ELECTRON_REPO=https://github.com/electron/electron
# cd the root path
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname "$(realpath "$0")")
cd ${ROOT}
# clone the depot_tools repository
rm -rf ${ROOT}/depot_tools
git clone https://chromium.googlesource.com/chromium/t... |
058c407d6c4f6d830684178be784c0de58d6df0f | 37 | python -m pip install pymongo bottle
|
d33608a926c087420da5e368731dfae7aec38c45 | 234 | #!/tmp-mksh/tmp-mksh
for i in `ls /sys/class/scsi_disk/`; do
cat /sys/class/scsi_disk/$i/write_protect 2>/dev/null | grep 1 >/dev/null
if [ $? -eq 0 ]; then
echo 'temporary none' > /sys/class/scsi_disk/$i/cache_type
fi
done
|
1fea6c81633cd7afb1aeeeabf134f133b82684f7 | 3,235 | # ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# Se... |
48853e1b775a3e046ad6c91999140946beae6738 | 4,057 | #!/bin/sh
#
# Copyright (c) 2015 EMC Corporation
# All Rights Reserved
#
#
# Quick verification script
#
# Usage: ./sghelper.sh <SID> <NAME_PATTERN> <NUMBER_OF_MASKING_VIEWS> <NUMBER_OF_LUNS_EXPECTED> <POLICY_NAME>
#
# set -x
# First parameter is the Symm ID
SID=$1
shift
# Subsequent parameters: MaskingView Name, Nu... |
5feae835d2ec31b9adcb8edf051a7927337a0dde | 1,732 | #!/usr/bin/env bash
#printf "\E[44;37m"
trap "tput cnorm; clear; ls -Alh; exit" INT
topline=0
count=$topline
tput civis
robot="`cat << "EOF"
|@|@|@|@| |@|@|@|@|
|@|@|@|@| _____ |@|@|@|@|
|@|@|@|@| /\_T_T_/\ |@|@|@|@|
|@|@|@|@||/\ T T /\||@|@|@|@|
~/T~~T~||~\/~T~\/~||~T... |
091483378adefbae9be21fc1b6279e0819ce227c | 120 | #!/bin/bash
name=`ls`
echo "name = $name"
for m in $name
do
echo $m
if [ -d $m ]; then
cd $m
fi
pwd
cd -
done
|
d206b190bf5f2ba348f870b7859433c87bda5204 | 64 | lutris -i "$DOTFILES_DIR/config/lutris/overwatch-standard.json"
|
67364cd2d4d3b0807dc565e872d50586d1e20d0d | 88 | #!/bin/bash
INDEX=1
while [ $INDEX -lt 5 ]
do
echo "INDEX: $INDEX"
((INDEX++))
done
|
03e5aa8494e15745674b9f9ccc690e35e29a7b97 | 1,766 | #!/bin/bash
# toolset
export HAM_TOOLSET=REPOS
export HAM_TOOLSET_NAME=repos
export HAM_TOOLSET_DIR="${HAM_HOME}/toolsets/repos"
# platform
case $HAM_OS in
NT*)
toolset_check_and_dl_ver repos nt-x86 v4 || return 1
export REPOS_DIR="${HAM_TOOLSET_DIR}/nt-x86"
export OPENSSL_CONF="${REPOS_DI... |
997ea0a77986990d7648e43160cd4cab1e8326cc | 205 | #!/bin/bash
mimic-deploy /host/usr/bin/gpg-agent
mimic-deploy /host/usr/lib/gnupg/gpg-check-pattern
mimic-deploy /host/usr/lib/gnupg/gpg-preset-passphrase
mimic-deploy /host/usr/lib/gnupg/gpg-protect-tool
|
1e43fae24522eb30c9f890020981c084780a3bde | 999 | #!/bin/bash
echo "Records are being converted to KBART format."
# Convert records using fixes specified in file marc2kbart.fix
# Save records as records.csv
catmandu convert MARC --type RAW to CSV --fix marc2kbart.fix --fields publication_title,\
print_identifier,online_identifier,date_first_issue_online,\
num_first_... |
0d6b403ca10b78ce15d89ed0ba3b3f117fb66845 | 1,408 | #!/bin/sh
SCRIPT_DIR=$(cd "$(dirname $0)"; pwd)
. $SCRIPT_DIR/../util.sh
. $SCRIPT_DIR/version.sh
set_prefix
. $PREFIX_TOOL/env.sh
LOG=$BUILD_DIR/dsqss-$DSQSS_VERSION-$DSQSS_MA_REVISION.log
PREFIX="$PREFIX_APPS/dsqss/dsqss-$DSQSS_VERSION-$DSQSS_MA_REVISION"
if [ -d $PREFIX ]; then
echo "Error: $PREFIX exists"
e... |
40ae0ba090c41f26bca4cd9b07e29c1aecf4fea6 | 180 | gcc -m32 -c -o main.o main.c
ld -m elf_i386 main.o -Ttext 0xc0001500 -e main -o kernel.bin
dd if=kernel.bin of=/usr/local/share/bochs/hd60M.img bs=512 count=200 seek=9 conv=notrunc |
74d82cfa1d7a8278a728360f59fd2e464ede820b | 1,224 | # Merged with official ABS kimap2 PKGBUILD by João, 2021/01/31 (all respective contributors apply herein)
# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Marco Scarpetta <marcoscarpetta02@gmail.com>
# Contributor: Jens Staal <staal197... |
8a00eda1f9078dd0f3982d6f2cdcfde6043744f4 | 109 | 1kb5_optmaven_ACI
yes
no
1kb5.pdb
A,B
2,3,27,113,114,115,118,119,120,2,3
2,3,27,113,114,115,118,119,120,2,3
|
69391f499dde15b74035eb82248e5a1640272fa8 | 478 | #!/bin/bash
# Install Python (python 3.x)
[[ -z $(which python) ]] && sudo apt-get install python
[[ -z $(which python3) ]] && sudo apt-get install python3
sudo apt-get update && sudo apt-get install python-pip && sudo pip install yeelight
# Copy latest version of yeecli python script
wget -P yeecli/ https://raw.git... |
eca25a36ab889f2acc7ef0da517e96b1d2127c91 | 103 | docker stop nginx-proxy
docker rm nginx-proxy
# docker volume rm logsvol
docker network rm service-tier |
5c33974d87ec90222b8c754294c7e76aef4eb8d3 | 167 | #!/bin/bash
if [ -z "$*" ]; then
echo "no arguments supplied"
exit 1
fi
OLD_NAME=$1
NEW_NAME=$2
find $3 -type f -exec sed -i "s/$OLD_NAME/$NEW_NAME/g" {} +
|
6bd64d902cec81b602850755874056ae8ac3e893 | 482 | #**********************************************************
#作用:循环建立多级目录
#用法:dir_build.sh n 。n为要建立目录的级数,如
#dir_build.sh 3,则会在当前目录下建立3级目录文件./F1/F2/F3
#**********************************************************
#! /bin/sh
dir_num=$1
i=1
while [ $i -le $dir_num ]
do
dir=`pwd`
mkdir "$dir/F$i"
cd "./F$i"
let i++
do... |
bbfa7bfe98184deb731fc8ab929e387eae2dde10 | 1,218 | # P@ssw0rd001
lxc exec centos-01 -- adduser vagrant -c "Vagrant user" -m -p '$6$AzpvezuLJ6TGSNUL$BPhlJgN0O2Yo4GHYTa18/t7UnP/.C1.yvytLV6LJp0UVkfi5IczN7yFTZE9caYorQPmEx2/tU73YQ/q/Ncl9h0' -s /bin/bash
lxc exec centos-01 -- mkdir -m=700 /home/vagrant/.ssh
lxc exec centos-01 -- sh -c "echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABA... |
c85e77cb9c747cc02b6013a9052342d4d2fc6133 | 299 | #!/bin/bash
configs=('tests/FFN_1Layer_100' 'tests/FFN_1Layer_150' 'tests/FFN_1Layer_200' 'tests/FFN_1Layer_250' 'tests/FFN_1Layer_300' 'tests/FFN_1Layer_350' 'tests/FFN_1Layer_400')
for configfile in "${configs[@]}"; do
echo "$configfile"
python train_model.py --config-file "$configfile"
done
|
f49b30e5f77e28c9054e422b1d37e534613d8061 | 78 | #!/bin/bash
/etc/init.d/nginx start
uwsgi --ini /etc/uwsgi/vassals/uwsgi.ini
|
ecb4b6466547ae5a40e77b6e55ae287729ad1f66 | 3,014 | GIT_FOLDER="$HOME/git/gitautomata/profile"
GIT_FUNCTIONS_FOLDER="$GIT_FOLDER/functions"
GIT_CFG_FOLDER="$GIT_FOLDER/config"
FUNCTIONS_FOLDER="$HOME/.local/bin"
# Get commandline options
# -f: Force, or "redo all", even if e.g. a file already exists. Used for updating mostly
# -u: Uninstall, remove gitautomata from the... |
5b7215de1c9ee710e55bb1731b961bf4b4f6ea41 | 2,778 | #! /bin/bash
echo '*** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***' >&2
echo '*** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***' >&2
echo '*** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***' >&2
echo '' >&2
echo 'Current versions of Tclkit contain a bug that allows arbitrary ... |
663896f69b1183dd2c76b9ee1519c311671f772b | 41 | java -Xms100M -Xmx4G -jar Core_Server.jar |
a5a94d3efe89333e5d44bd0629d5e213a3054538 | 334 | #!/usr/bin/env bash
# This script displays a power menu with wofi
pgrep -x wofi && exit 1
OPTIONS="Reboot\nPoweroff\nSleep"
choice="$(echo -e $OPTIONS | wofi -i -dmenu )"
[ -z "$choice" ] && exit 1
case "$choice" in
Reboot)
systemctl reboot
;;
Poweroff)
systemctl poweroff
;;
Sleep)
systemctl suspend
;;
*)
;;... |
f597b7b80c7a884ef73ea484ed2722cad0406dc8 | 83 | BOT_TOKEN=
BOT_USERNAME=
YOUTUBE_API_KEY=
REDIS_PORT=
REDIS_HOST=
REDIS_PASSWORD=
|
400965bea468e1ebfe6d977ac342a2ff8dbcdefa | 14,788 | #!/bin/bash
TESTNAME="CLOSE PERIOD test"
TESTSUMMARY="Close a Period and complete a TaskList"
RRDATERANGE="-j 2016-01-01 -k 2016-02-01"
CREATENEWDB=0
source ../share/base.sh
echo "BEGIN CLOSE PERIOD FUNCTIONAL TEST" >>${LOGFILE}
echo "STARTING RENTROLL SERVER"
RENTROLLSERVERAUTH="-noauth"
startRentRollServer
#-----... |
d4504427581d2cac0022c90d3010e51837db136e | 222 | #!/bin/bash
rm -rf /go/pkg/linux_amd64/
rm -rf /go/src/github.com/neverlock/
go get github.com/neverlock/kingshard/config
go get github.com/neverlock/kingshard/core/golog
go get github.com/neverlock/kingshard/proxy/server
|
99de1eddcedafeddcaf896446c078e6c3eeb424c | 668 | #!/bin/bash
#test -f target/logistic-regression-jar-with-dependencies.jar || mvn package
#mvn package
echo "Started at $(date)"
run () {
java \
-jar target/logistic-regression-jar-with-dependencies.jar \
-p1:localhost:8871 \
-p2:localhost:8872 \
--privacy-budget 0 \
--sens... |
800834070808df5c0fc983177d2d6b8a76c5fed4 | 83 | #/bin/sh
/home/yaoguai/soft/php54d/bin/php -S 127.0.0.1:80 -t /home/yaoguai/www &
|
84c428122edb8600473083db3f84e6783cb72067 | 1,010 | #!/bin/sh
[ ! -d /html ] && >&2 echo "error - no /html directory found... exiting" && exit 1
[ ! -d /repositories ] && >&2 echo "error - no /repositories directory found... exiting" && exit 1
cd html/
STAGIT="stagit"
STAGIT_INDEX="stagit-index"
NORMAL_PWD="$PWD""/../repositories/"
# stagit
for folder in $(find ../r... |
c8f3a4c40860c86e9a29b6796c369809f1afce06 | 35 | ../basis/006-devel/03c-clean_svn.sh |
717d5314e53c517ada976630369e8c57594b8c09 | 8,323 | #!/usr/bin/env zsh
# -*- eval: (progn (highlight-regexp "\\bheader[1-9]+\\b" 'hi-green-b) (highlight-regexp "\\bh1\\b.*" 'header1) (highlight-regexp "\\bh2\\b.*" 'header2) ) -*-
# capture packages:
# pacman -Qqen >| pkglist.txt && pacman -Qqem >| pkglist_aur.txt
cd $HOME
export PATH
backup=~/backup
shell=/bin/zsh
if [... |
4b4d8cc914735c7ded587e0fe4f20493d4741c99 | 736 | DATA_ROOT=/home/yhe3/Data/dataset/shuai/
#TEST_FILE=kitti_eval/test_files_eigen.txt
TEST_FILE=kitti_eval/shuai.txt
RESULTS_DIR=results/depth/shuai/
DISP_NET=/data/yhe3/pretrained_models/SC-SfMlearner/depth/cs+k_depth.tar
# predict depth and save results to "results_dir/predictions.npy"
python test_disp.py --dispnet... |
100d610ac97fc8851b5870e5c9d56563a1ce9220 | 99 | NEXT_PUBLIC_BACKEND_BASE_URL=http://localhost:8000
NEXT_PUBLIC_WEBSOCKET_URL=ws://localhost:8000/ws |
39602468ae358cee6b63df8bfa1a9a90ae2b44d8 | 59 | #!/bin/bash
for num in `seq 1 100`
do
touch yyh-$num
done
|
8d681b8ba24019dbfcfa0c1e59dade28607e1726 | 261 | #!/bin/bash
curl --verbose -X PUT "http://10.60.21.187/api/admin/datacenters/3/storage/devices/4" \
-H "Content-type:application/xml" \
-H "Accept:application/xml" \
-d @storage_device_creation.xml \
-u admin:xabiquo | xmlindent -f
|
d347ff36999a8e22d13ee76a16cc5f39f6fe31a6 | 1,575 | #!/bin/bash
########################################################################
##
## Copyright 2015 PMC-Sierra, 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.ap... |
12e27e970182ebaf402e9677ca105299eff813e3 | 121 | #!/bin/bash
docker run -u ${UID}:${GID} --rm -v /storage:/storage --name=${USER}_apsim79 apsim-classic:79 Apsim.exe "$@"
|
fcfa9bfb73032a5f8ce0babcdbaa184e4d817d9d | 185 | #!/bin/sh
while ! curl http://frontend.test:8081/health
do
echo "waiting"
sleep 1
done
while ! curl http://backend.test:9000/health
do
echo "waiting"
sleep 1
done
|
987d2a238cdf7ed87d977471c7f261380725d66d | 9,431 | #!/bin/bash -ex
# Deprecated by the top-level Makefile
# Scaling factor
scale=3
# General text encoding
encoding=SHIFT-JIS
# Character layer txt file encoding
layer_encoding=UTF-16LE
make_cpu_args="-j10 --no-builtin-rules"
make_gpu_args="-j3 --no-builtin-rules"
# https://github.com/lltcggie/waifu2x-caffe
waifu2x=/mn... |
e3da8fa83b94bf57a5fafb418c9dd0b9af0f2566 | 270 | #!/usr/bin/env bash
is_PNG_file()
{
fileName=$1;
if [ "PNG" == ${fileName##*.} ]; then
return 0;
else
return 1;
fi
}
for fileName in ./*;
do
if is_PNG_file $fileName;
then
echo $fileName;
mv $fileName ${fileName/.PNG/.png};
fi
done |
511b1ec8f51db904c95f7e34826c29393b9b0651 | 673 | #!/bin/bash
function terraformInit {
# Gather the output of `terraform init`.
echo "init: info: initializing Terraform configuration in ${tfWorkingDir}"
initOutput=$(terraform init -input=false ${*} 2>&1)
initExitCode=${?}
# Exit code of 0 indicates success. Print the output and exit.
if [ ${initExitCode}... |
347ce7d48858b6d4f133d1139b66df193896d6eb | 230 | #!/bin/bash
n=${2:-100}
mkdir -p unlabeled
echo "Number to download: $n"
for ((i=0;i<$n;i++))
do
echo "Downloading image: $i"
wget "https://www.katasterportal.sk/kapor/Captcha.jpg" -O unlabeled/cap_$i.jpg
done;
|
b54d0f3ed86a792c363e3934aeea68e9510c7a06 | 95 | #!/bin/bash
set -e -x
javac Game.java View.java Controller.java Model.java Tube.java Json.java
|
ac98d803e89e59d9c54b685c7b77a2c9f7107195 | 42 | alias c='clear'
alias dc='docker-compose'
|
66bef453b91ec5a0e6c66a837adc2051e2bc2616 | 192 | #! /bin/bash
NUM=4
NUMMAX=100000000
for i in `seq 1 `; do
./main $i $NUMMAX 0
done
for i in `seq 1 `; do
./main $i $NUMMAX 1
done
for i in `seq 1 `; do
./main $i $NUMMAX 2
done
|
35dcd1a00b6449d71cfb8501e164bc32dd9f7379 | 749 | #!/bin/bash
homedir=`rospack find rr_openrover_pro`
ret=$?
if [ $ret -ne 0 ] ; then
echo "rr_openrover_pro not in path, make sure it is in the ROS_PACKAGE_PATH"
exit -1
fi
cd $homedir/src
progname=RobotROSInterface
if [ ! -f $progname.java ] ; then
echo "No $progname.java file found, error in installation..... |
f7a5f8382556368197da544c7ea30409fe33c24d | 328 | #!/usr/bin/env bash
BASE_FOLDER="repos"
ORG_NAME="codacy"
meta init --force
mkdir -p "$BASE_FOLDER"
# Outputs the repositories to .repos.txt in format: [repo] [url]
node update_repo_list.js "$ORG_NAME" "$BASE_FOLDER"
# Imports every repository fetched from update_repo_list.js
cat .repos.txt | xargs -L1 meta project... |
04c30bbdbb9e3f2ca0a29939b658bba7ba017801 | 5,171 | #!/usr/bin/env bash
echo -e "\033[1;32m S T A R T O F P R O G R A M "
echo adjust_jan_spec_from_T63.sh
echo -e "\033[0m"
read -r -d '' usage <<'EOF'
This script regenerates a T63L47_jan_spec.nc input file from an existing T63 simulation in order to cope with adapted orography
Requirements:
$1 <EXPID>_echam6_ec... |
49ef96645972f30bf5ff699408082b93f3a7c6a3 | 103 | gcc -g -o fc fc3.c SFont.c -I/usr/share/gcc/wrt/usr/include/SDL -lSDL -lSDL_image -DZIPIT_Z2 -pthread
|
6843d46c0864273c3c5555b4ba5cf4e95a0c3d80 | 141 | #!/bin/bash
# redirecting file input
exec 0< testfile
count=1
while read line
do
echo "Line #$count: $line"
count=$[$count + 1]
done
|
0dffaa15ae495554666fc3278a40d9bf94725863 | 287 | #!/bin/sh
echo "enter first filename"
read first
echo "enter second filename"
read second
set x=" ls -1 $first "
fir=$1
set x=" ls -1 $second "
sec=$1
if [ $fir -eq $sec ]
then
echo "commom permission"
echo $fir $sec
else
echo "no common permission"
echo "$first:$fir\n $second:$sec"
fi |
0ee7e104fd176f20b9160b5c6627a58dc5b6cc5b | 1,358 | #!/bin/bash
# This script installs developer stuff on OS X.
xcode-select --install
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap dandavison/delta https://github.com/dandavison/delta
brew install \
asciinema \
bash \
bat \
coreutils... |
cc6b9ed4176f6d7a06be25028bd21f9e256d125d | 23,833 | #!/bin/bash
#SBATCH --ntasks=1
#SBATCH --job-name=DF_pooled-varscan_bedfile_0027
#SBATCH --time='7-00:00:00'
#SBATCH --mem=1000M
#SBATCH --output=DF_pooled-varscan_bedfile_0027_%j.out
# run VarScan (v.2.4.2)
module load java
module load samtools/1.9
samtools view -b -L /scratch/lindb/DF_2018_12_edit/bedfiles_DF_ref_ed... |
2d69f28b81df2dfe153d2d9d2288b137a79741e9 | 71 | #!/bin/bash
# script that sends a Get request to the url
curl -sL "$1"
|
0b295faeb89ff3bf396b9519265397c4eb7bb99e | 481 | #!/bin/sh
php bin/magento maintenance:enable
rm -rf pub/static/*
rm -rf var/cache/*
rm -rf var/view_preprocessed/*
rm -rf var/generation/*
rm -rf var/page_cache/*
rm -rf var/di/*
php bin/magento deploy:mode:set developer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
php... |
3a88501ff1710bb9ba4d297665a129b13f35989d | 424 | #!/bin/sh
LOGFILE=~/log/uscode.log
touch $LOGFILE
date >> $LOGFILE
cd ~/sources/uscode
git pull -q origin master
rm -rf code
python /home/shawn/sources/uscode/src/retrieve_code.py . >> $LOGFILE
git add code >> $LOGFILE
DIFFLOG=`git status --porcelain`
if [ ! -z "$DIFFLOG" ]; then
echo "$DIFFLOG" >> $LOGFILE
git... |
15b0b741599694ca35b9bc01bc5dc0231faf71a2 | 1,081 | #!/usr/bin/env bash
# add to [[runner]]
# pre_clone_script = "umask 0022"
# then cleanup runner caches & volumes
DRYRUN=${DRYRUN-}
VOLUMEPATTERN="${VOLUMEPATTERN:-gitlab.*runner}"
JQ="jq -M"
vv() {
echo "$@">&2
"$@"
}
drvv() {
echo "$@">&2
if [[ -z $DRYRUN ]];then
"$@"
fi
}
RUNNER_CACHE_CO... |
be9631bad7fc7acf0c75d74a0c169443b9e8b02a | 347 | #!/bin/bash
set -e
cp -r /input /build/source && chown -R build: /build/source
cd /tmp && mk-build-deps -i -r /build/source/debian/control
cd /build/source && sudo -E -u build debuild -us -uc -b
OWNER=$(stat -c %u:%g /output) && \
find /build -maxdepth 1 -type f \
-execdir cp -f -t /output '{}' \; \
-execdir chown... |
0c764e8980b87f3c37972c7a25ad2f46db51bcc9 | 4,264 | #!/bin/bash
# Stop at any error, show all commands
set -exuo pipefail
if [ "${MANYLINUX_BUILD_FRONTEND:-}" == "" ]; then
MANYLINUX_BUILD_FRONTEND="docker-buildx"
fi
# Export variable needed by 'docker build --build-arg'
export POLICY
export PLATFORM
# get docker default multiarch image prefix for PLATFORM
if [ "${... |
dc31e4e7a16161d666a45467cb9abd1be31ac2ee | 11,674 | #!/bin/bash
# Copyright (C) 2021 Nippon Telegraph and Telephone Corporation
# 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/licens... |
8ff9c28363d168ba7aef2edd8ef93db9a0e3a752 | 6,674 |
#!/bin/bash
set -e
echo ""
echo ""
echo " ██████████ "
echo " ░░███░░░░███ "
echo " █████████████ ████████ ░███ ░░███ ██████ █████ █████ █████ "
echo "░░███░░███░░███ ░░███░░███ ░███ ░███ ███... |
abe9f68c71ac3312ecb2ddb33dbcad348249196f | 965 | #!/bin/bash
#Ejercicio propuesto pratica 1 SO - Valentin Blanco Gomez y Antonio Calvo Morata
#Comprueba el # de parametros
if [ $# != 1 ] ; then
echo "Uso: ./quien.sh fichero_de_passwd" 1>&2
exit 1
fi
#Comprueba el fichero password
if [ ! -f "$1" ] ; then
echo "El fichero $1 no existe o no es regular." 1>&2
exit ... |
ab5297131e05c9e27eb22971096b64e38fcbeada | 319 | #!/bin/bash
conductor_help()
{
echo "Usage: builder conductor [sub-command]"
echo "You must use on of the following sub-commands:"
echo " help - to print this help message"
}
conductor()
{
case $1 in
help)
conductor_help
;;
*)
echo "Unknown or ansent command."
echo
conductor_help
;;
esac
} |
a0bf2ba7c9779fd88816a9014b716c4cfb8c7754 | 2,499 | sudo apt-get update -y
sudo apt-get install nodejs
nodejs
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs npm
sudo apt-get update -y
sudo apt-get install npm
sudo apt-get uninstall nodejs
sudo apt-get install nodejs
nodejs
vi server.js
ls
nodejs server.js
vi server.js
ls
vi index.htm... |
ebfd1f75bf254820d24fa7e4624aec49f544386b | 1,007 | #!/bin/bash
if [ ! -f .vscode/sftp.json ]; then
echo "# Visual Studio Code SFTP config not found (.vscode/sftp.json)";
exit
fi
parse() {
grep $1 .vscode/sftp.json | awk {'print $2'} | sed 's/"//g' | sed 's/,//g'
}
jotform() {
echo " _ _ ___ "
echo " _ | |___| |_| __|__ _ _ _ __ "
ec... |
dad16d81cfb290f146f91fc89aef05cf5ce7994b | 2,595 | # GIT heart FZF
# -------------
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
fzf-down() {
fzf --height 50% "$@" --border
}
function fzgc() {
is_in_git_repo || return
command git -c color.status=always status --short |
fzf-down -m --ansi --nth 2..,.. --preview-window right:70% \
--preview '(... |
72bba8c0a272e0f8332c94105ff875062821dec5 | 4,368 | #!/usr/bin/env bash
# Don't run as root, messes with permissions of installs
# first run (Uncomment):
#install xcode-cli-tools
#xcode-select --install
#echo -n "Installing homebrew..."
#/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#echo ' DONE!'
# install caskro... |
7b7eb653071b7ea3fe707e24ff328db03b583876 | 168 | #!/bin/bash -e
if [ -z "$APP_NAME" ]; then
echo "APP_NAME not set" >&2
exit 1
fi
if [ -z "$CCTRL_HOST" ]; then
echo "CCTRL_HOST not set" >&2
exit 1
fi
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.