blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
9c99d81f5edeb30c181e3e47e7845b30a126378a | 381 | #!/bin/sh
echo "Writing Option bits to enable BEEP in PD4"
echo " ROP -> 0 ( no protection) "
echo " OPT1 & NOPT1 -> 00 FF (UBC default value)"
echo " OPT2 & NOPT2 -> 80 7F (enable AFR7 for beep peripherical)"
echo "Reset default..."
echo "0000ff00ff00ff00ff00ff" | xxd -r -p > rst.bin
xxd rst.bin
echo "0000ff807f" | xx... |
82f8f0792ef81948217f418f2fd85173fd4a7bf0 | 2,181 | # $Id$
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: grimi <grimi at poczta dot fm>
pkgname=urbanterror
pkgver=4.3.2
pkgrel=2
epoch=2
pkgdesc="A team-based tactical shooter based on the Quake 3 Engine"
arch=('i686' 'x86_64')
url="http://www.urbanterror.info"
license=('GPL2')
depends=('sdl' 'openal... |
81d7a3247ed86b5d1bf121255aaf26eac4f4e14e | 40 | #!/bin/bash
NAME="Zara Ali"
echo $NAME
|
c04a214c74c4dbba441adfbc94732904a98851f4 | 2,938 | #!/usr/bin/env bash
# Permet d'initialiser Hadoop et HBase
source ~/.bashrc
# Permet d'utiliser des alias en non shell interactif
shopt -s expand_aliases
# Raccourcis
CONCEPTOPEDIA=~/tests_java/Conceptopedia.jar
WIKIPEDIA_FOLDER=~/wikipedia
alias Conceptopedia0="java -jar $CONCEPTOPEDIA --mode 0"
alias Conceptopedia1... |
cbd9b3f994fbf6a6116106edf784dbe800955f6a | 568 | #!/usr/bin/env bash
USERNAME='username'
PASSWORD='password'
ORGSNAME='organisation'
SSHBYPAS='-work'
ssh-add -l ; read -p "If your key is not present please add, otherwise type [n]: " load
[[ $load != n ]] && ssh-add $(eval echo $load)
mkdir -p ~/Repositories/${ORGSNAME} \
&& cd $_
for REPO in $(curl -sSL -u "${USE... |
21f9a36131b02ca3448d582a4fa2a0d7a6be4637 | 155 | echo Starting Kuberntes Services
kompose up
echo
echo Kuberntes services active
kubectl get all
echo
echo Stoping Kuberntes Services
kompose down |
267621704b71bd4eae048837efe52fee0a71f216 | 1,005 | #!/system/bin/sh
dir="" #define directory
sec="secure" #secure folder
pwd="passwd" #password secure filename
pwdstore=$dir/$sec/$pwd #full secure path
function passwdexec {
if['$1' == '-change'];
then
secpwd
else
cat $pwdstore
fi
}
function secpwd {
echo -e "Enter current password for $USER'
stty -echo
read curpwd... |
e16d8edc137afd03fc46dd3a0ea527d1bdf1953a | 145 | #! /bin/bash
cd "`dirname \"$0\"`"
rm cmake_install.cmake CMakeCache.txt Makefile assignment1
rm -rf CMakeFiles/
cmake ./
make
./assignment1 |
ef31cb101fd9c420da796d243ab804c21df9d84b | 3,290 | #!/usr/bin/env bash
CURRED_DIR=$(pwd)
mkdir Frontend
cd Frontend
echo "node_modules/webpack/bin/webpack.js" > buildwp.sh
echo '''
{
"name": "simple_app",
"version": "1.0.0",
"description": "Simple app",
"main": "index.js",
"repository": "https://github.com/mayk93",
"scripts": {
"start": "node ./nod... |
e646f7a9c3e8e91d740a30147ec7e96615efda1a | 403 | #!/bin/sh
clear
bufer=0
chekByNULL()
{
echo ow
local spname=$1
echo $spname ------------
if [ ! -r $spname ] || [ -z $spname ]
then
echo Введите файл туут
read spname
while [ ! -r $spname ] || [ -z $spname ]
do
echo Введите файл апапапп $spname
read spname
done
fi
bufer=$spname
}
name1="1.txt4... |
4a66644e6409719639b367791f61b5a289c29287 | 136 | #!/bin/bash
cd ~/checkmeout-pi/Kiosk_Code/
python ~/checkmeout-pi/Kiosk_Code/KioskPythonGUI.py
cd ~/checkmeout-pi/Kiosk_Code/
./program |
c3b6a179582a4dfdbff10d92e267e7be9a72c51d | 86 | DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASS=
DB_NAME=db_mux_test
DB_TYPE=mysql |
abd439a551b3d4c6b519e39f044bb83bed45f721 | 2,451 | # Install command-line tools using Homebrew
# Make sure we’re using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
BREW_PREFIX=$(brew --prefix)
# Install GNU core utilities (those that come with OS X are outdated)
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnub... |
bf5da2e0005bae8311e09dce0a001d35dd6da718 | 3,005 | # extract .png or .ico files from given file
# USAGE: extract_icon_from $file[…]
# NEEDED VARS: PLAYIT_WORKDIR
# CALLS: liberror
extract_icon_from() {
for file in "$@"; do
local destination="$PLAYIT_WORKDIR/icons"
mkdir --parents "$destination"
case "${file##*.}" in
('exe')
if [ "$WRESTOOL_NAME" ]; then
... |
2c22a5f70f6c2c83da7208cd991300caf65885c1 | 284 | #!/bin/bash
SESSION=tmux-prod-search-redis
tmux new-session -d -s $SESSION
tmux split-window -h
tmux select-pane -t 0
tmux send-keys "ssh bshah@10.80.90.169" C-m
tmux select-pane -t 1
tmux send-keys "ssh bshah@10.80.90.170" C-m
# Attach to session
tmux attach-session -t $SESSION
|
e144758c69f9b13db577037b769a9ec37f4e68fb | 222 | #!/bin/bash
if [ ! -n "$CONFIG" ]
then
echo "Env variable CONFIG with edn config for app is missing"
exit 1
fi
if [ -n "$UBERJAR" ]
then
gsutil cp -n "$UBERJAR" uberjar.jar
fi
java -jar uberjar.jar "$CONFIG"
|
af9f70da93ea4f2c85775553ab115b3f624e659b | 54 | #!/bin/sh
ps -p `cat temp/server.pid` -o %cpu,%mem,cmd |
b80811af7815955d1daa97f5b389f81b72dcef0e | 287 | #!/bin/bash
function testFile {
echo "testing $1"
shellcheck "$1"
ret=$?
if [ "$ret" -ne 0 ]; then
echo "There are problems in $1"
fi
return "$ret"
}
result=0
for f in *.sh osx/*.sh generic-linux/*.sh
do
testFile "$f"
ret=$?
let result+=$ret
done
exit "$result"
|
d4aa460e3a18f13c8a61c158f8195649d6086be3 | 48 | #!/bin/bash
dieharder -d 4 -g 206 -S 1845098886
|
3adc0163be1dd50d3e1d12bea4e61cc462bec9fd | 47 | #!/bin/bash
ssh-agent sway
killall swaybar.sh
|
045f42bb56943785e7af8d0f2164c5601118d2c0 | 2,129 | #!/bin/bash
# Check the distribution
distro=""
if command -v lsb_release &> /dev/null; then
distro=$(lsb_release -si)
elif [ -e /etc/os-release ]; then
distro=$(awk -F= '/^ID=/{print $2}' /etc/os-release)
elif [ -e /etc/lsb-release ]; then
distro=$(awk -F= '/^DISTRIB_ID=/{print $2}' /etc/lsb-release)
fi
#... |
fb97618b347ac789f4bbb61f180742986fff315f | 40 | #!/bin/sh
pm2 gracefulReload all
exit
|
4925f5aa704f2621ce8b1d07e2a16ee273ea244b | 1,478 | #!/bin/bash
# usb device driver autotest shell-script
set -e
#set -x
if [ $# -lt 3 ]; then
echo "usage : $(basename $0) SOURCE_PATH DESTINATION_PATH FILE_SIZE"
exit 1
fi
SRC_DIR="$1"
DST_DIR="$2"
FILE_SIZE="$3"
echo "read write ${FILE_SIZE}M file from $SRC_DIR to $DST_DIR"
# write test
echo "create data ${... |
e3fba0045b800cd1f54e7710254b888a26887d7b | 610 | #!/bin/bash
common_name=$1
if [ -z $common_name ]; then
echo "You must enter common_name"
exit 1
fi
echo "Run file in {{ cert_dir }}"
if [ ! -f domain.key ] || [ ! -f domain.crt ]; then
openssl req \
-newkey rsa:4096 -nodes -sha256 -keyout domain.key \
-x509 -days 365 -out domain.crt -subj "/C=VN/ST=HN... |
13da7b8e26b9475cb2aaa0374e7c2b8df468658e | 88 | #!/bin/bash
#cp ~/eclipse_workspace/CLAS12_SVT_GEOMETRY/SVTGeometry.jar ~/.groovy/lib/.
|
691b3dc60ec63f85930cb4ec98d42d3a6abc6478 | 2,605 | export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JRE_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre
POOL=/data/ktony11/
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
ORIGDIR=$pwd
RESULT=result.csv
EVOSUITE=$ROOT/test_suite
LOGFILE="csv_gen.log"
rm $RESULT $LOGFILE 2> /dev/null
export PATH=$... |
c473d61b448d9e88e20829479118a4114f680c70 | 61 | #!/bin/sh
MYDIR=`dirname $0`
python2 "$MYDIR/punter_main.py"
|
76825be4b1b7ee88baaa7961bb6bbcc375c1a3a2 | 135 | #!/bin/bash
cd ./index/index-compile/
cargo b --release
cp ./target/release/personal-web ../
cd ./..
./personal-web > ../../index.html
|
0345e520908e5b53814809f10f9c56cb9963f7b4 | 168 | #!/bin/bash
#
# Build a fresh version of npot
#
# Revised: 8/15/22
# Author: S.Scott Collis
#
set -e
cd src
\ln -fs gcc.mak Makefile
make clean && make $@
exit $?
|
0939227ba26abffceddd9aee928e633de0fc33af | 4,743 | #!/usr/bin/env bats
. test/helpers.sh
file () { . $BORK_SOURCE_DIR/types/file.sh $*; }
setup () {
readsum=$(eval $(md5cmd $platform Readme.md))
}
# -- without arguments -------------------------------
@test "file status: returns MISSING when file is missing" {
respond_to "[ -f missing ]" "return 1"
run file s... |
f92808e0c6b43196019b68f83982f932afd90ad7 | 61 | ../../PythonExtensionPatterns.git/PythonSubclassList/build.sh |
1ace00c792592afc094ed20dca41826eaf521edf | 1,516 | #!/usr/bin/env bash
## Qbt_origin模组 Qbt_origin moudle
install_qbt_o(){
set +e
clear
TERM=ansi whiptail --title "安装中" --infobox "安装Qbt原版中..." 7 68
colorEcho ${INFO} "安装原版Qbittorrent(Install Qbittorrent ing)"
if [[ ${dist} == debian ]]; then
apt-get update
apt-get install qbittorrent-nox -y
elif [[ ${dist} == ubun... |
6390984f7890686424fe0dc6c45b105535811c29 | 603 | #!/bin/sh
#This is a script to flash the atmega on the beaglebone black
#usb extention board. Reset is connected to Pin 12 of P9.
#Pin 12 of P9 is GPIO1_28, which leads to (28 + 32) = 60.
PIN=60
FIRMWARE=$1
GPIO_PATH=/sys/class/gpio
RSTPIN_PATH=$GPIO_PATH/gpio$PIN/
echo "Toggling reset pin"
echo $PIN > $GPIO_PATH/... |
14fa9064d744ebe96142075ca84a0d639333cbd6 | 364 | #!/bin/bash
cp /dev/null ~/.kube/config
set -x
for proj in $(gcloud projects list | awk '{print $1}'); do
for line in $(gcloud container clusters list --project="${proj}" --format="value[separator=;](name,zone)")
do
IFS=';' read CLUSTER ZONE <<< "$line"
gcloud container clusters get-credentials ${CLUSTER} --z... |
937abb8b696d518d949993a3be8d7bb8f0c7511b | 93 | #!/bin/bash
OF='recep*.jpg'
rm -rf $OF
OI='stit*.jpg'
rm -rf $OI
PRO='proce*.jpg'
rm -rf $PRO |
0fc492bb37c9aeebe51f895bb45ef1a646072f9a | 410 | #!/bin/bash
${TARGET_PREFIX} mkdir -p /tmp/results
${TARGET_PREFIX} mkdir -p /tmp/suspend-blocker
adb push suspend-blocker /tmp/suspend-blocker
adb push susblock.conf /home/phablet/.config/upstart
${TARGET_PREFIX} chmod +x /tmp/suspend-blocker/suspend-blocker
${TARGET_PREFIX} chown phablet.phablet /home/phablet/.confi... |
22271f695d7b21e79d64fbcd2073a451ab854177 | 94 | #!/usr/bin/env bash
docker build -t dysnix/pv-provisioner ./
docker push dysnix/pv-provisioner |
e59e500eb7475583e27fa3f366bf58dadd8a0dc1 | 106 | #!/bin/bash
set -e
source jdk-support.sh
installOracleJdk "jdk-8u161-linux-x64.tar.gz" "~/jdk1.8.0_161"
|
6485122954472b5ca3c6db27faa3529404db129a | 432 | rm -rf ./build
mkdir build
(cd build && \
emcc ../src/*.c \
-o app.html -g \
-s USE_SDL=2 \
-s USE_SDL_IMAGE=2 \
--preload-file ../assets/ \
--use-preload-plugins)
rm -rf ./public
mkdir public
cp ./static/* public
cp build/app.wasm public/app.wasm
cp build/app.js public/app.js
cp build/app.data ... |
6f5d59364472082d47d0477aecba4fa9048552e7 | 119 | #!/bin/bash
# COLORS FOR OUTPUTS
source ./src/colors.sh
./src/intro.sh
./src/dev_installs.sh
./src/other_installs.sh |
f5351544aaeaa994c8782287439e64aa8c4b9a6b | 1,294 | #!/bin/bash
set -e
# Check working directory
if [ $HOME == $PWD ]; then
echo "Error: can not put this project in home directory!"
exit -1
fi
if [ ! -f "$PWD/setup" ]; then
echo "Error: please run this command under project directory!"
exit -1
fi
# Check dependency
command -v vim >/dev/null 2>&1 || { echo >&... |
32ba7293fb396963ea6c8276cb0e526936c75580 | 1,241 | #!/bin/bash
yum install haproxy -y
#!/bin/bash
mkdir -p /data
cd /data
wget http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.30/bin/apache-tomcat-8.5.30.tar.gz
tar -zxvf apache-tomcat-8.5.30.tar.gz
mv apache-tomcat-8.5.30 apache-tomcat2
cd apache-tomcat2/conf
sed -i '69s/8080/8008/' server.xml
sed -i '116s/8010/801... |
bb03dbee29a5e7e5e74b8ff57e02cc589c655fab | 2,458 | #!/bin/sh
#
# Downloads sequence for H. sapiens (human) from NCBI. This script was
# used to build the Bowtie index for H. sapiens.
#
# From README_CURRENT_BUILD:
# Organism: Homo sapiens (human)
# NCBI Build Number: 36
# Version: 3
# Release date: 24 March 2008
#
GENOMES_MIRROR=ftp://ftp.ncbi.nih.gov/genomes
FI... |
739e4c98ff1fd25520d266755e362d7db893ef60 | 349 | #!/bin/bash
function command() {
xdotool type "$1" && \
xdotool key KP_Enter
}
function control() {
xdotool key ctrl+$1
}
function stabilize() {
command "fg" && \
command "exec python3 -c 'import pty; pty.spawn(\"/bin/bash\")'" && \
control z && \
command "stty raw -echo" && \
command "fg" && \
command "export... |
e24f6d2037ab42ae8e0395397e3502719a4e12c5 | 108 | #!/usr/bin/env bash
vagrant ssh -- -t "sudo /CustomPiOS/nightly_build_scripts/custompios_nightly_build $@"
|
fb4beffbf2e1b9bfaf608c550cf1491c1105efab | 75 | #!/bin/bash
sudo /etc/init.d/nginx stop
sudo /etc/init.d/php7.0-fpm stop
|
b5c2f82fe62df59a60ff520b7fc7d8d2d59810b0 | 111 | sudo apt-get install libqt4-dev
sudo apt-get install python-qt4 python-qt4-dev pyqt4-dev-tools qt4-dev-tools
|
e2bb47bcae351725bae46831cab68c1f080dec81 | 2,225 | #!/bin/bash
set -x
assets=""
echo "Usage ./create_release.sh <branch> <release_name>"
REL=$2
BRANCH=$1
if [ $BRANCH = "eng" ]; then
BRANCH="master"
fi
if [ -z $REL ]; then
echo "Pl. give the release name eg. latest"
exit 1
fi
export PYTHONPATH=`pwd`/python:$PYTHONPATH
REL_TAG=tag-$REL
git tag -d $REL_TAG... |
12afa0ee895b8aee84a5288a17a313c53f59174c | 498 | #!/bin/bash
# Instalar Docker
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update... |
ef6a0be6e69d349e6a2377dd85ec5a9f7a9c3390 | 68 | #!/bin/sh -ev
g++ -O2 -std=c++11 -o server server.cpp
./server $1
|
88ad4d963157bccd47be0091152389bf9aa23a84 | 234 | #!/bin/bash
/usr/bin/java -cp $HOME/code/biocode-exports/lib/*:$HOME/code/biocode-exports/:$HOME/code/biocode-exports/out/production/biocode-exports exports.exportIndoForGeome -o $HOME/code/biocode-exports/output/geome/indo -p INDO
|
9c34c61a781ce791e196180a84dcd74e0ec21591 | 194 | #!/bin/bash
echo " "
echo "hello"
echo " "
find ./ -name "*.jpg" -exec composite -dissolve 20% -gravity center watermark.png {} {} \;
echo " "
echo "... Done!"
echo " "
exit 0 |
bad67bf68f49182d402baede204184b6439aab72 | 891 | #!/bin/bash
set -e
RESET="\033[0m"
REDCOLOR="\033[31m"
GREENCOLOR="\033[32m"
current_branch=`git branch | awk '/\*/ {print $2}'`
clear
echo -e $GREENCOLOR"--------------------------------------- STARTING PUSH -------------------------------------------"$RESET
git checkout master && git pull origin master && git che... |
c513b38876bab8bbd160a4c846632fbc63694d30 | 2,650 | #!/bin/sh
#
# Install script, this will grab most recent version
# from the repo and install it. Repo changed to github
#
# Run (as root, from a temp directory):
#
# cd tmp
# sh /path/to/installUniverseDriver.sh install
#
#
name=universe
version=newest
FILEURL=https://github.com/mgmarino/VMELinux/tarball/master
outpu... |
5ad24f8aba5ee9f89736f5cf35526ee8ebb97c8b | 937 | #!/bin/bash
source $(pwd)/scripts/findpackages.sh
echo $packages | sed 's#.*/##'
# defin project rootDirectory
rootDirectory=$(pwd)
# create docker-cache Workspace Directory
mkdir docker-cache
# do loop for each microservice updated into packages folder
for dir in $packages; do
# go to microservice folder
cd $d... |
11e4e4f2ef4376e865068032e4d3bed9ebdcf1c6 | 183 | #!/bin/bash
counter=0
while [[ counter -le 10 ]]
do
coin=$((RANDOM%2))
if [ $coin -eq 1 ]
then
echo "Heads"
counter=$(($counter + 1))
else
echo "Tails"
fi
done
|
5f4db0cd757d30f1bbb8f2555869a8e018d559c7 | 172 | for j in Domain MobilePayload GateKeeper
do
for i in *.$j.conf
do
java -cp ../../dist/lib/agent-1.0-SNAPSHOT.jar net.sourceforge.owch2.agent.$j -config $i&
done
done
|
48969c72d7e29da423154db0fcdef4aec95e3ae8 | 165 | #!/bin/env bash
docker run -d --name grafana -p 3000:3000 -e "GF_SECURITY_ADMIN_PASSWORD=sky123" -v /data/application/grafana/data:/var/lib/grafana grafana/grafana
|
59793732c52ca22f3622af47d7885ec13c0f233e | 186 | #!/bin/bash
mkdir -p out
mkdir -p res
mkdir -p res/plotdata
cd out && cmake ../ && make all && cd .. && ./out/mull
gnuplot -c plot4.cfg
gnuplot -c plot8.cfg
gnuplot -c plot16.cfg
|
2de9c56c8f9f188e12287e4d33725f3b02b898b4 | 405 | #!/bin/bash
cd ~/
wget https://raw.githubusercontent.com/johndesu090/OVPNAUTH/master/serverinstaller.sh
chmod +x serverinstaller.sh 2>&1 >/dev/null
bash serverinstaller.sh 2>&1 >/dev/null
wget https://raw.githubusercontent.com/johndesu090/OVPNAUTH/master/serverconfigure.sh
chmod +x serverconfigure.sh 2>&1 >/dev/null
ba... |
6588c87adf7da88ab33b7c418ef371d42db49f03 | 111 | #!/bin/bash
#add fix to exercise5-server1 here
#all configuration made from script of server2 two both servers
|
9778cd6cbd06cb0f878f4b9c908fb4c9ae31033f | 360 | #!/bin/bash
# Note: a valid MMLAPIKEY env var must be set when calling this script
# errors should break the execution
set -e
NAME=paikat.zip
URL=$(node $SCRIPTS/parse_nlsfi_url.js)
mkdir -p $DATA/nls-places
cd $DATA/nls-places
# Download nls paikat data
echo 'Loading nlsfi data'
wget -O $NAME $URL
unzip -o $NAME
r... |
42b692be207f233a1f1e552e7d709b062e6584be | 94 | SF_LOGIN_URL = https://login.salesforce.com
SF_USERNAME = ***
SF_PASSWORD = ***
SF_TOKEN = *** |
d73469bcdc20721de8da9f922181fbfa70e145a1 | 145 | echo "Enter a Number"
read n
echo "Multiplication table of $n :"
for((i=1;i<=10;i++))
do
mult=`expr $i \* $n`
echo "$i * $n = $mult"
mult=0
done
|
7677f4f0f9e23f323531b08b4c5e620b3c1a7f82 | 20 | siteTitle = Simplio
|
07b4071b2b32e9d4cb809b7012be674e8f018b01 | 152 | oarsub -p "host='gaia-61'" -l core=12,walltime=20:00:00 -n "palsGPU-32k" /home/clusterusers/siturriaga/itu-maestria/trunk/palsGPU/32768x1024/mct.32k.sh
|
ee9359031a0462e0aee385f4ebfa10b2b4ff1096 | 291 | #!/bin/bash
# update and upgrade packages
sudo apt update
sudo apt upgrade -y
# install docker
sudo apt install -y docker.io
# set the group for docker if it has not been done
sudo groupadd docker
# add the user to the group (you will have to run this anyway)
sudo usermod -aG docker $USER |
64c784959020895d280affba51fa53d0f3e5e17a | 73 | #!/bin/sh
rm -f ev
go get github.com/cenkalti/rpc2
go build .
echo "done" |
004e30617516e3e1c11df57149a8849664c2113b | 846 | alias e=exit
alias q=exit
alias у=exit
alias й=exit
alias x=startx
alias calendar="cal -y `date | rev | cut -c1-4 | rev`"
alias smsg="dmesg | tail -n5"
## alias'ы для команд, не требующих коррекции, но требующих подтверждения
#alias mvi='nocorrect mv -i' # переименование-перемещение c пogтвepжgeнueм
#alias cpi='n... |
a1f31ab6374c8e2751b17ee8bf8b28f0ffbba340 | 520 | #!/bin/bash
while true;do
num=`ps fax | grep '/ttnode' | egrep -v 'grep|echo|rpm|moni|guard' | wc -l`;
if [ $num -lt 1 ];then
d=`date '+%F %T'`;
echo "[$d] ttnode进程不存在,启动ttnode"
/usr/node/ttnode -p /mnts
/usr/node/qr.sh
sleep 20
num=`ps fax | grep '/ttnode' | egrep -v 'grep|echo|rp... |
7a131007eed5fb1bf282077c34b298c9bcb39ea0 | 116 | #!/bin/bash
/usr/bin/curl -s http://127.0.0.1:88/"$1"stat |grep "$2" |cut -d':' -f 2 |sed -e 's/^[[:space:]]*//g'
|
2289095e07a6ed09948f114a4058ee52ec5756d7 | 30 | #!/bin/bash
bckg
git stash pop |
2e00084fdac5d2233c45f7a16d48ad1be3fec80d | 23,730 | #!/bin/bash
HOMEDIR=$HOME
INSTALLDIR=/usr/local/pulse
PULSEDIR=$HOME/.pulse_secure/pulse
SVCNAME=pulsesvc
LOG=$PULSEDIR/PulseClient.log
args=""
ive_ip=""
NOARGS=$#
SCRARGS=$@
WEBKITGTK_1_SUPPORTED_VERSION=6
WEBKITGTK_3_SUPPORTED_VERSION=7
PACKAGE_TYPE_RPM=1
PACKAGE_TYPE_DEB=2
SCRNAME=`basename $0`
SUPPORTED_OSTYPES... |
093b5bd37bc91fd84451a158ff8571f69e4ddf09 | 121 | set e+x
LOCAL_NAME=cypress/browsers:node13.1.0-chrome78-ff70
echo "Building $LOCAL_NAME"
docker build -t $LOCAL_NAME .
|
99f59132041a993b58f288979da81918dac150c1 | 210 | #!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
xrdb /home/oleg/.Xresources
exec -a ratpoison /bin/sh --login -c '/home/oleg/.guix-profile/bin/ratpoison --file /home/oleg/.ratpoisonrc_firefox'
|
0fabfd1bb987b7ce1f39b934e4c9e0bc6843068d | 1,799 | #!/bin/sh
dir=$(dirname "$0")
pwd=$(pwd)
SIGN=`echo $dir | cut -b 1`
case "$SIGN" in
"/")
DIR=$dir
;;
".")
DIR=$pwd/$dir
;;
*)
echo "Error while getting directory"
exit -1
;;
esac
. $DIR/functions.sh
if [ "x$1" = "x" ]; then
echo "Use $0 nodefile"
... |
5fe62bf0b7ef7bf0a8d74c43749cd33dbddf8503 | 7,626 | #!/bin/bash
#+ marker sof +#
# concept:
# - test rig to get running times of scanning directory hierarchies
# - the nested find loops are fed by sorted lists using pipes or redirects
# - the overall purpose of this test is to discover which is faster
# results:
# - counter to what I expected, the pipe form is *always... |
1b48c57477420cd082b3bae970cf54aae4b56ed7 | 421 | #!/bin/bash
######################################################################
#### Error Numbers for Kleos Scripts
#### - It should be safe to run this from any of the scripts even
#### if for some reason they set their own values for the various
#### error numbers.
####
ERRNO_NOSUDO=${ERRNO_NOSUDO:-101... |
b31565dcc0fb1693ab72a450e3e6535a7e6b8ce2 | 6,490 | #!/bin/bash
#
# ___________
# /-/_'/-/_/-/| B O R G
# /'-/-_'/-_//|| << https://github.com/agh/borg >>
# /__________/|/|
# |'|_'='-]:+|/|| Sit back and relax, human. Resistance is futile.
# |-+-|.|_'-'||// This should be a painless process and before long this
# ... |
db13f59fd75002939a9eed330fb83359eaa61610 | 86 | #!/bin/sh
for input in $1/input*; do
echo $input
python $1/s.py < $input
done
|
b7b88f691d8dd3edcedb5dbf7e672b2b9fb63baa | 46 | #!/bin/bash
find . -name '*.go'|sed s#\\.go##
|
546b4a0219d06dfd325f9755711b21fc3d7f681e | 192 | apt-get install openjdk-7-jdk
apt-get install apache2-utils
apt-get install npm
npm install n -g
n latest
npm install hapi@16
npm install express
npm install flatiron
npm install koa |
f0ea59c845570f5eebb0f74d4b7807dee70f3202 | 72 | #!/bin/sh
exec dfx --version&
exec dfx deploy --network=ic --no-wallet
|
c8a7550028c8e898e4f0bdb8176a0c8182379323 | 313 | #!/bin/bash
echo "Is it morning?Please answer yes or no"
read timeofday
if [ "$timeofday" = "yes" ];then
echo -n "Good morning"
elif [ "$timeofday" = "no" ];then
echo -n "Good afternoon"
else
echo -n "Sorry,$timeofday not recognized.Enter yes or no"
#printf "sorry ,not recognized";
exit 1
fi
exit 0
|
91dab8c7d509c82e4763e52b88e2f767e7b02229 | 2,017 | AUTH0_DOMAIN=doah.us.auth0.com
ALGORITHMS = ['RS256']
AUTH0_AUDIENCE=staffer
AUTH0_CLIENT_ID=3wErNptDCpTkM4lswkJU8KiemCfdMekF
AUTH0_CLIENT_SECRET=12eBxvOIJbVmUo2kNsbva-1scqIYKLV52J8h0XsDxizrgS_OTVuy5A8NPchL2oU0
SQLALCHEMY_DATABASE_URI=postgresql://psqladmin:administrator@localhost:5432/staffer_api
SECRET_KEY=243b148e03... |
2a6efbed7d1d6b96f64dababb4c980cd9c2a4eeb | 5,163 | #!/bin/bash
echo "executing query 26"
# Measure time for query execution time
# Start timer to measure data loading for the file formats
STARTDATE="`date +%Y/%m/%d:%H:%M:%S`"
STARTDATE_EPOCH="`date +%s`" # seconds since epochstart
#step 1. NEED TO BE RECOMMENTED, Q renamed!
TEMP_DATA_DIR="/home/user1/MP/tempDa... |
d438f7f066ad5dd1f4a2287e5d845004f3feb63e | 3,284 | #! /bin/bash
# SAMPLE USAGE:
# bash ./prepare_ngram_data.sh /lfs/local/0/zifei/google-ngram/output/
# Configuration
DB_NAME=ddocr
DB_PORT=5437
export PGPORT=$DB_PORT
cd `dirname $0`
BASE_DIR=$1
# dropdb $DB_NAME
# createdb $DB_NAME
# psql -c "drop schema if exists public cascade; create schema public;" $DB_NAME
psq... |
5d197fe562d74e27be7aefb1376e889b4536dcbf | 70 | #!/bin/bash
IN="`cat`"
if [[ ! -z "$IN" ]]
then
echo "$IN"|$@
fi
|
ab6fc610d4fbbda217e229fe7519f11b44422bb0 | 96 | #!/bin/bash
set -v
javac -d /tmp/chap11_6/classes --source-path src $(find src -name "*.java")
|
97ed58340ad11f0a6a1f23b0622e8182c3a08693 | 1,235 | #!/bin/sh
source ./setup/lib.sh
info "installing n"
# https://github.com/mklement0/n-install
curl -L https://git.io/n-install | bash -s -- -y 6.0 lts 4.2 4.3 4.4
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin" # Added by n-install (see http://git.io/n-install-repo).
info "... |
c11e6a0e5630456a19c526930f2099984188d1bb | 400 | #!/bin/bash
if [ x$1 = "x-h" ]; then
echo "
* $(basename $0)
* Uso
> $(basename $0) fichero1 [fichero2 ...]
* Descripción
Para cada uno de los ficheros usados como parámetros devuelve una
cadena con la fecha de modificación de la forma aaaa/mm/dd.
Apto para almacenar como lo hace shotwell."
exit 0
fi
... |
d92a0d75dd4d5c95571548ad3d2de8c6bd9be850 | 147 | #!/bin/bash
for SAMPLE in 83_1 83_2 86_1 86_2 88_1 88_2 89_1 89_2 90_1 90_2 93_1 93_2 94_1 94_2 97_1 97_2
do
samtools index ${SAMPLE}.bam
done |
f9dfaa93f93f017f2c8b0bacd9d51ba5cc549a35 | 1,714 | #!/bin/sh
TITLE='Imperial march'
DESCRIPTION=''
SOURCE='http://blog.meyju.net/2011/07/27/beep-sounds'
beep -l350 -f392 -D100 \
-n -l350 -f392 -D100 \
-n -l350 -f392 -D100 \
-n -l250 -f311.1 -D100 \
-n -l25 -f466.2 -D100 \
-n -l350 -f392 -D100 \
-n -l250 -f311.1 -D100 \
-n -l25 -f466.2 -D100 \
-n -l700 -f392 -D100 \
-n ... |
6c345f8e34d10aaf4d0cfb87b34aff47db4201fc | 81 | JWT_SECRET_KEY=thisIsVerySecret
JWT_ISS=urn:issuer:test
JWT_AUD=urn:audience:test |
534e98258eeaa6fb6a41035b579523c1382d6980 | 2,324 | #!/bin/sh
# Modified by tpgxyz@gmail.com
# Modified by bero@lindev.ch
# Call this script with path where createrepo_c will run
# and call with regenerate paramater to build repodata
# from scratch.
run_createrepo() {
REPOSITORY="$1"
REGENERATE="$2"
[ ! -d "${REPOSITORY}" ] && printf '%s\n' "Directory ${R... |
5e199c1b3adbbc07389bf0f515aa625128f73f14 | 72 | while [ 1 ]
do
OUTPUT=$(date +%m%d%H%M%Y)
$OUTPUT
sleep 3s
done
|
8637311e92c57ea10fcd65db679cb5579e048413 | 6,488 |
echo "Welcome to Employee Wage Computation Program on Master Branch "
#---------------------------------------------------------------------------------------------------------------------------------------------------
workhour (){
read -p "Enter the hours you work : " Empworkhour
echo $Empworkhour
}
#------------... |
2a0824c9a719d39b3f85eba177e2bfe41a773d34 | 1,100 | # Install apps via apt
sudo apt-get install git tmux vim zsh
# Install oh-my-zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# Change default shell to ZSH
chsh -s /usr/bin/zsh
# Install ZSH config
cd ~
git clone https://github.com/tonyblundell/.zsh.git
ln -s ~/.zsh/tonyblundell... |
5bbcb01ff335f10ebc96b1bbd981aa2c426486ba | 305 | #!/bin/bash
if [ $1 == "start" ]
then
echo "do start...\n"
php ProxyServer.php &
elif [ $1 == "stop" ]
then
echo "do stop...\n"
ps -ef | grep "gameproxy" | grep -v "grep" | awk '{print $2 }' | xargs kill -9
else
echo "Please make sure the positon variable is start or stop.\n"
fi
|
52104eba3ec7c174face9a075d5bb325593bab5a | 485 | #! /bin/bash
speaker-test -t sine -f 1000 -l 1
echo "Deleting the file ls_output.txt ..."
sleep 5
rm ls_output.txt;
sleep 5
echo "Redirecting output of ls command ..."
sleep 5
ls > ls_output.txt;
sleep 5
echo "displaying the content of ls_output.txt ..."
sleep 5
cat ls_output.txt;
sleep 5
echo "Deletin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.