blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
8aafd8270574b451cbdd3d93e14ef1618a64b6e9 | 539 | #!/bin/bash
RUNS=3
ARG=12
echo "java" 1>&2
javac fannkuchredux.java
for i in $(seq 1 $RUNS); do time java fannkuchredux $ARG; done
echo
echo "dora" 1>&2
pushd ../..
cargo build --release
for i in $(seq 1 $RUNS); do time target/release/dora bench/fannkuchredux/fannkuchredux.dora $ARG; done
popd
echo "cacao" 1>&2
java... |
86f74b27326dc42e29c6bd575000b1ecf8a0a82f | 583 | #!/bin/bash
LOCK_CHECK_DELAY=0.5
SCREENSAVER_COMMAND=mate-screensaver-command
function wait_for_unlock {
haslock=
while true; do
sleep ${LOCK_CHECK_DELAY}
locked=$( $SCREENSAVER_COMMAND -q | grep " active" )
if [ -n "${haslock}" ]; then
# lock has happened before. Check unl... |
4804a119ed9ee86cb7d9a7980320a98fce8751e6 | 464 | #!/bin/sh
ALLOWED_SECURITY_ERRORS=${ALLOWED_SECURITY_ERRORS:-""}
run () {
hotfix_security_checker_for_php5
run_phpqa
}
hotfix_security_checker_for_php5 () {
if [ -n "$ALLOWED_SECURITY_ERRORS" ]; then
echo "Updating security-checker errors to $ALLOWED_SECURITY_ERRORS..."
sed -i -e "s/secur... |
1d7ddacb76915d1d010cfd1da08ecdefc8e9da12 | 213 | #!/bin/bash
#This script upload a copy of the supervisor scripts to all the nodes
scp -F ssh_config -r nodes w37:
scp -F ssh_config -r nodes w34:
scp -F ssh_config -r nodes w39:
scp -F ssh_config -r nodes w100:
|
d998925f89c465b9f4e66330dba18ff31904b97f | 1,191 | #!/usr/bin/env cat
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
#
# This sample script is meant to be evaluated by zsh or bash (or the script
# sourced) if in interactive mode.
# In this example, HOSTTEXT is an additional information about the HOST,
# and HOSTTEXTSAVE provides the p... |
69065e949c82c9da782206d43fae340352902c80 | 895 | #!/bin/bash -x
export HOME=/root # node-gyp requires that the user's home directory is specified in either of the environmental variables HOME or USERPROFILE
mkdir -p /var/www-deploy/ &&
rm -rvf /var/www-deploy/jamesmcguigan.com
tar -xzf /root/build/jamesmcguigan.com.tgz -C /var/www-deploy/ &&
cd /var/www-deploy/ja... |
bb094910bc82433759e72bc1bca2ad5a59e51917 | 208 | . ./env.sh
WMQ_LIB=$WMQ_HOME/java/lib
$JAVA_HOME/java -classpath $WMQ_LIB/jms.jar:$WMQ_LIB/com.ibm.mq.jar:$WMQ_LIB/com.ibm.mqjms.jar:target net.kevinboone.apacheintegration.simplewmqclient.SimpleWMQClient
|
5059c3ff415d75b34a7d2d2ee22b267983491760 | 426 | #! /bin/bash
export WM_RUNNING="emacs"
#$HOME/.config/i3/monitor/saver.sh &
display_manager.sh -o "HDMI-A-0 DisplayPort-0"
display_manager.sh -p "HDMI-A-0"
display_manager.sh -r "HDMI-A-0" "left"
#start_picom.sh "emacs"
#exec dbus-launch --exit-with-session emacs -bg "#000000" -fg "#ffffff" -mm --debug-init -l $HOME... |
b7aaaa82a6f0466ae1e76c9f98fe4fed8854ba8e | 1,968 | #!/usr/bin/env bash
# Loops through a directory looking for pcaps and outputs and alert.log file for each pcap with a date and timestamp
dir="$1"
output_dir="$2"
logoutput=snort-alerts.txt
priority1alert=priority1-alerts.txt
priority2alert=priority2-alerts.txt
priority3alert=priority3-alerts.txt
if [[ ! -d "$dir" ]]... |
f0cf9afd781b8afd30fd3b7397cc4fd2f35db156 | 3,803 | #!/bin/bash
# -----------------------------------------------------------------------
# AUFGABE:
# aus der Datei "2020-05-23-Article_list_dirty.tsv" eine neue
# Datei "2020-05-23-Dates_and_ISSNs.tsv" erstellen.
# Die neue Datei soll:
# 1. nur die Spalten der ISSN und Veröffentlichungsjahre enthalten
# 2. keine redu... |
dd985e64084fed266e1bc7f7d6f5ac6c52fa23b5 | 571 | #!/bin/bash
probarPHP() {
# 1. Crear el fichero “test.php” en /var/www/ con el siguiente código:
# ( <?php phpinfo(); ?>)
# 2. Abrir test.php con un navegador web. ¿Qué permisos son necesarios
# para que podamos verlo todo el mundo?
# Variables
CARPETA='/var/www/'
FICHERO_PHP='test.php'
... |
4d9b8ed7cb49dc1a4ba2e3a7e2b7e5d782ed5b12 | 229 | #!/bin/bash
source installer_fcns.sh
echo "Beginning installation script: $0..."
installPackages
installKernel
# TODO need a switch here to control Docker and DPDK installation
collectSysInfo
printHeader
echo " $0 complete. "
|
56fed8195b5ce098926ca7161ada0521dcf890ba | 844 | #! /bin/bash
# 自动保存
while getopts "a" arg #选项后面的冒号表示该选项需要参数
do
case $arg in
a)
echo auto save
git add -A;git commit -m "自动保存"
;;
?) #当有不认识的选项的时候arg为?
echo "unkonw argument"
exit 1
;;
esac
done
#todo ... |
115547dc05919be520f0b867bd26f4cf53bd299e | 356 | #!/usr/bin/env bash
#
# Generate rh-manifest.txt file.
# Run from repository root.
set -e
set -u
WORKING_FILE="$(mktemp /tmp/rh-manifest.XXXXXXXX)"
find . -name package.json -execdir yarn list --silent --json \; | \
jq -r '.. | objects | .name? | select(. != null)' \
2>/dev/null >>"${WORKING_FILE}"
sort "${WORK... |
c438e365300bbd5d8ed64a06ad89cafad860f43d | 241 | #!/bin/bash
sudo apt-get update -y
sudo apt-get install nginx -y
sudo apt-get upgrade -y
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install -g pm2
cd /app/
npm install
pm2 start app.js
|
e503ca7d8fff6be6008b26f4cc2a11fe6541842d | 539 | #!/bin/bash
if [ -z "$1" -o -z "$2" -o -z "$3" ]
then
echo "repn: Format isn't correct!"
echo "repn: Use repn N1 N2 file"
echo "repn: where N1 - the first number in file"
echo "repn: N2 - the final number"
exit
fi
if [ -f $3 ]
then :
else
echo "File $3 doesn't exist"
exit
fi
PAR=$1
... |
eb348a72318dbef191c35c86d9e627bf8e6cbecf | 266 | #!/bin/sh
./run_ggp_fastmastslave 8000 &
./run_ggp_fastmastslave 8001 &
#./run_ggp_fastmastslave 8002 &
#./run_ggp_fastmastslave 8003 &
#./run_ggp_fastmastslave 8004 &
#./run_ggp_fastmastslave 8005 &
#./run_ggp_fastmastslave 8006 &
#./run_ggp_fastmastslave 8007 &
|
5868f9ab0814fd6dcf03c483a5a00f85284f0814 | 1,052 | # $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: jeneshicc <jeneshicc@gmail.com>
pkgname=skk-jisyo
pkgver=20120902
pkgrel=2
pkgdesc="Dictionaries for the SKK Japanese input method"
arch=('any')
url="http://openlab.ring.gr.jp/skk/"
optdepends=('skktools: Dictionary maintenabce tools')
license=('GPL... |
02e3dfcbe3ab80106847873faa1fba1400cc944a | 2,436 | #!/bin/bash
echo "########### CONFIGURING SWAP FILE ###########"
sed -i 's/ResourceDisk.Format=n/ResourceDisk.Format=y/' /etc/waagent.conf
sed -i 's/ResourceDisk.EnableSwap=n/ResourceDisk.EnableSwap=y/' /etc/waagent.conf
sed -i 's/ResourceDisk.SwapSizeMB=0/ResourceDisk.SwapSizeMB=8192/' /etc/waagent.conf
umount /mnt
... |
49490d493127e547b91ef02630a9c12a67022e2b | 1,156 | # vim: ft=sh
#
# SPDX-FileCopyrightText: 2020 Dmytro Kolomoiets <amerlyq+tenjo@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
#
#%SUMMARY: define optional aliases (if not present) and cleanup after yourself
#%BUG: loaded only on "login" and never inherited by newly opened X terminals
# https://bbs.archlinux.org/v... |
0cab23021876e9c0840313ea56b5704792963b7f | 1,411 | #!/usr/bin/env bash
check_if_is_installed() {
local -r package="$1"
local -r fn="$(package::fn "$package" is_installed)"
if platform::command_exists $fn; then
$fn
else
platform::command_exists "$package"
fi
}
install_if_not_installed() {
local -r package="$1"
local -r pkg_managers=... |
8ec9a603cadc67dd824263a5835c72e6ef50f31f | 244 | source fidian.ansi.bash
source mrowa44.emojify.bash
shlib.console.error() {
local -r msg=$1
local icon
icon=$(emojify.token ":heavy_multiplication_x:")
icon=${icon:0:1}
echo "$(ansi::red)${icon}ERROR:$(ansi::resetForeground) $msg" >&2
}
|
32d55bdc3359ba2ff534658a8e895a47d144af6d | 77 | #!/bin/bash
Resultado=$(python3 /usr/local/bin/rmkip.py)
echo "$Resultado"
|
6e50edf53ce0915e1bfa4881944934a73f4b8e1c | 166 | #!/bin/bash
export PYTHONPATH="$(pwd)"
for i in tests/*.py; do
if [[ $i == 'tests/test_dialog.py' ]]; then
continue
fi
echo "$i"
python3 "$i";
done
|
7c4a31f94c77dadbd6a8247e087af7d99b37b43a | 223 | #!/bin/bash
remote=origin ; for brname in `git branch -r | grep $remote | grep -v master | grep -v HEAD | awk '{gsub(/^[^\/]+\//,"",$1); print $1}'`; do git branch --track $brname $remote/$brname || true; done 2>/dev/null
|
6f898f2d58a38dd25524ac649bd6c29af516931a | 168 | #!/bin/bash
export PORT=8080
echo starting server on port $PORT
cd /usr/share/webapp/
java -jar /usr/share/webapp/target/webapi-1.0-SNAPSHOT-jar-with-dependencies.jar
|
117433228966b77a65b3f24bc5bf2bc0fcfc4879 | 66 | chmod +x remote_control/server.py
nohup remote_control/server.py & |
48c44bfce4ab3a81cfc2579428c6a980bd5e2278 | 24 | #!/bin/sh
"screen -xR"
|
6a1f2d661bf3ed96750efbe4e2aa5a24a20fd9c0 | 756 | #! /bin/sh
lein localrepo install /home/ubuntu/R/x86_64-pc-linux-gnu-library/3.0/jvmr/java/bsh.jar jvmr/bsh "."
lein localrepo install /home/ubuntu/R/x86_64-pc-linux-gnu-library/3.0/jvmr/java/jline-2.12.jar jvmr/jline "2.12"
lein localrepo install /home/ubuntu/R/x86_64-pc-linux-gnu-library/3.0/jvmr/java/jvmr_2.11-2.11... |
fe81cd0626e77d17d1bf0475e2e9457f9fc0d94a | 1,343 | #! /bin/bash
######################################
# Manuel_Export.sh
# Utilité:
# Auteur: RootKitDev <RootKit.Dev@gmail.com>
# Mise à jour le:
######################################
# Define PATH
SUB_LOG=""
HOME_PATH="/home/athena/Core"
LIB_PATH="$HOME_PATH/Libs.d"
COMMON_LIB="$LIB_PATH/Common"
DATA_LIB="$LIB_P... |
20719da75ec0384a7e02606158bca4209a3d5fb9 | 653 | #! /bin/bash
echo $(date)
cat /proc/cpuinfo | grep MHz | egrep -o "[0-9]+\.[0-9]+"
for p in 0 1 2 3; do
(( f=$(cat /sys/devices/system/cpu/cpu$p/cpufreq/scaling_cur_freq) / 1000 ))
echo $f
done
for h in 0 1 2 3 4 5 6; do
(( temp=$(cat /sys/class/thermal/thermal_zone$h/temp) / 1000 ))
... |
fb35ac9f03a4d70d86b3091dd0e35ce3182f46f9 | 682 | wget --version||yum install wget -y||apt-get install wget -y
/usr/bin/neko-status -v||(wget https://github.com/nkeonkeo/nekonekostatus/releases/download/v0.1/neko-status_linux_386 -O /usr/bin/neko-status && chmod +x /usr/bin/neko-status)
mkdir /etc/neko-status/
echo "key: 49b6c954-e5d5-4f72-a450-6af23f3fffd6
port: 900... |
ff541106541e369eb15cc8d530af57d2d66800e2 | 98 | mvn exec:java -Dexec.mainClass="org.etri.ado.appls.Predator2AgentMain" -Dexec.args="-c predator2"
|
e81f65740d76e5d6221c029f621123dee1636486 | 173 | #!/bin/bash
kubectl get pods | grep nri-prometheus
if [ $? -ne 0 ]; then
fail-message "Could not find the New Relic Prometheus integration. Please follow the steps."
fi |
08e7e9acb4222cc9cdac263e3e98f0d53958e91f | 213 | #DATABASE
DB_NAME=db_videos
DB_USER=postgres
DB_PASSWORD=
DB_HOST=localhost
DB_DIALECT=postgres
#APP
APP_PORT=3000
#SERVICES
TOKEN_SECRET=my_secret_token_example
TOKEN_TIME_EXPIRATION=20
TYPE_EXPIRATION=minutes
|
4468e66c46535e4176a54fdd2a0d15dba915e65f | 294 | #sdiff -w 180 ../../yavdb/yavdb /home/daren/vim/yavdb/yavdb
diff /home/daren/vim/yavdb/yavdb ../../yavdb/yavdb >./yavdb.patch
diff /home/daren/vim/yavdb/yavdb.vim ../../yavdb/plugin/yavdb.vim >./yavdb.vim.patch
diff /home/daren/vim/yavdb/yavdb.txt ../../yavdb/doc/yavdb.txt >./yavdb.txt.patch
|
6d61cea6e93e9856e4208c78912609f7a5d54b85 | 1,089 | #!/bin/bash -l
#PBS -N forcing-gen
#PBS -A UNSB0017
#PBS -l select=1:ncpus=8:mpiprocs=8:mem=60GB
#PBS -l walltime=24:00:00
#PBS -q casper
ORIGPATH=/glade/u/home/zarzycki/scratch/ERA5-DATM/DATM-perturb3/
PERTURBPATH=/glade/u/home/zarzycki/scratch/ERA5-DATM/DATM-perturb4/
DIRTOSCRIPTS=./
NUMCORES=4
TIMESTAMP=`date +%... |
0a00df30b04e5032860852940d425308e9b71d05 | 519 | #!/bin/sh
if [ -e @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment ] ; then
. @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment
fi
if [ -e @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf ] ; then
. @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf
fi
if [ -e @sysconfdir_res... |
0374db69720539cf0552f51360c559977c70ca10 | 662 | DB_NAME=database_name
DB_USER=database_user
DB_PASSWORD=database_password
DB_HOST=database_host
WP_ENV=development
WP_HOME=http://example.com
WP_SITEURL=${WP_HOME}/wp
# BRAINTREE_ENV may be "production" or "sandbox"
BRAINTREE_ENV=
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=
# Can be single em... |
f15210b28fc6d0d0cfc0c37b15dff8b638f63586 | 1,014 | #!bin/bash
map_function_conditions(){
# map swaps - always have to come before stops
# enter leftmost house
if [ "$newy" -eq 9 ]; then
if [ "$newx" -eq 7 -o "$newx" -eq 8 ]; then
change_conf_value "character_files/character.cfg" "current_map_char_is_on" 2
get_new_map_info_set_starting_po... |
b770057e9072f8bb264874f2b7dc6ec63055f032 | 147 | #!/bin/bash
source ./functions
/usr/bin/time -f "Time elapsed: %E" run-parts --exit-on-error -- config
if [ "$?" != "0" ]; then
exitting
fi |
38af0e8f2b54bdf37826b5c4266a7ae827105690 | 106 | #!/bin/bash
export DISPLAY=:0
pipenv run python ./miyadai_login.py >>./cron_log.txt 2>>./error-log.txt
|
853abbf0835efd7b4d0a1b518e1f779225b06bd0 | 380 | #!/bin/bash
apt-get install -y software-properties-common python-software-properties
add-apt-repository -y cloud-archive:ocata
if [ -f /root/shared/sources.list ]
then
cp /root/scripts/sources.list /etc/apt/sources.list
fi
apt-get update -y
apt-get install -y crudini python-openstackclient
if [ "$CONFIGURATION" !=... |
4dcb2ad17816c89d38070d71a8550bfa060cfc78 | 756 | HISTFILE="$HOME/.ksh_history"
HISTSIZE=1000
#set -o emacs
#set -o emacs
alias __A=$(print '\0020') # ^P = up = previous command
alias __B=$(print '\0016') # ^N = down = next command
alias __C=$(print '\0006') # ^F = right = forward a character
alias __D=$(print '\0002') # ^B = left = back a character
alias __H=$(print... |
553adb54cccf98418f71fe9a4282be79f9e16215 | 226 | setxkbmap -layout us -variant alt-intl
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us+altgr-intl')]"
gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:ralt_switch,terminate:ctrl_alt_bksp']"
|
d4571d70438f20a5d87c20b542f9e7b30887d22d | 150 | #!/bin/bash
. ./agentenv.sh
if [ e$1 != "e" ] ; then
$ANT_HOME/bin/ant -buildfile $1 cmd
exit;
fi
$ANT_HOME/bin/ant -buildfile cmd.xml cmd
|
d828e751c9c066d3e7d143fd409ba448e4a56141 | 1,211 | #!/bin/bash
read -p "Title: " title
read -p "Date [$(date +%Y-%m-%d)]: " date
read -p "Categories (space-separated): " categories
read -p "Description: " description
read -p "Post Image URL (full size): " img
read -p "Post Image URL (smaller): " img_sm
read -p "Author Name: " author_name
read -p "Author Image URL: " a... |
149fcdc7b9ee85e951eb0c1cec3766971c1ed55d | 1,694 |
#!/bin/bash
#
# see http://linuxcommand.org/lc3_adv_dialog.php
# xfce4-terminal -e "bash -c 'player.sh'"
PLAYER_CMD=(vlc)
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
# lire (player) ou marquer comme lu (mv)
showAction () {
FILENAME=$1
actionCmd=(dialog --clear --cancel-label "Annuler" --output-fd 1 --title "Action... |
760340a4eaeb1e2abed750050681a6b9a323adb1 | 530 | #!/bin/bash
# Update the GitHub Pages website.
set -o nounset
set -o errexit
set -o pipefail
if [ ! -d "dist" ]; then
echo "Distribution not found in dist/"
echo "Did you build the distribution (npm run dist)?"
exit 1
fi
GH_PAGES="$(mktemp -d)"
git clone git@github.com:lumc-nested/lumc-nested.github.io.... |
102e6df934d308109b7a18553fd02d12ce690a6d | 273 | #!/bin/bash
sudo sh -c "curl -sSL https://get.docker.com | sh"
sudo usermod -aG docker $USER
sudo apt-get install python-pip -y
sudo pip install docker-compose
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh
sdk install sbt
sdk install scala
|
b60fc947d63e686e803b1b518b7c82aa68208db3 | 498 |
rsync() {
FILE_NAME=$3 #iterator_test.go
SRC_DIR_NAME=$1 #vbtkey dir
DEST_DIR_NAME=$2 # vbtdupkey dir
cp ./$SRC_DIR_NAME/$FILE_NAME ./$DEST_DIR_NAME/$FILE_NAME
sed -i "s/package $SRC_DIR_NAME/package ${DEST_DIR_NAME}/" ./$DEST_DIR_NAME/$FILE_NAME
}
# 同步iterator_test
for dst in "vbtkeydup" "avlke... |
5214cc118c83bba64b148f23578a86eb341ad45c | 53 | #!/bin/bash
YTT_CONFIG="$(pwd)/ytt"
export YTT_CONFIG |
afa753c61ed54c34c3a5e9469d8fd24c2ce89e6b | 2,431 | #!/usr/bin/env sh
#
# CIS-LBK Recommendation Function
# ~/CIS-LBK/functions/recommendations/nix_ensure_rsyslog_default_file_permissions_configured.sh
#
# Name Date Description
# ------------------------------------------------------------------------------------------------
# Eric Pinnell 09... |
6cf0f037992d5cdfb25d3db785dbec27f80f6606 | 31 | API_BASE=http://localhost:8085/ |
1c2144394687d0e280885290d21d07c46d1c8cc6 | 124 | #/bin/sh
sudo docker images jayadut/rediswithmysql
sudo docker run -itd -p 8080:8080 -p 6379:6379 jayadut/rediswithmysql
|
285761199cd6314d71e1f2741fc86c31b03b5c25 | 556 | #!/bin/bash
# demo of the for loop construct
# IFS='-'
for i in 1 2 3 4 5
do
echo $i
done
# What is going on here? Uncomment each and see
#for file in "$@" # and if you use "$*" instead ??
#do
# mv $file ${file}.txt
#done
# We can specify ranges... |
45b850c80c879f59aaf95b70f88e53772f21d355 | 1,457 | #!/bin/bash
set -euo pipefail
# defaults
BACKUP_FILENAME=""
if [[ -z $graphname ]]; then
echo "<graphname> must be specified in environment variables or as a parameter" >&2
exit 2
fi
if [[ -z $backuppath ]]; then
echo "<backuppath> must be specified in environment variables or as a parameter" >&2
exit 2
fi
# ... |
8744ab53388865c8a0a04f9e370ed58bec676a83 | 3,462 | #!/usr/bin/env bash
@milpa.load_util user-input
base="$DOTFILES_PATH/brewfiles/"
brewfile="$HOME/.Brewfile"
case "$(uname -s)" in
Darwin)
os="macos"
if ! xcode-select --version >/dev/null; then
@milpa.log "Installing Command Line Tools (CLT) for Xcode, click on the thing!"
xcode-select --instal... |
307a183fdbe5b0e6182de9476f43d320f8adcd1c | 33,607 | # -*- Mode: shell-script -*-
#############################################################################
##
#A agcomple.g GAP library Frank Celler
##
##
#Y Copyright (C) 2018-2021, Carnegie Mellon University
#Y All rights reserved. See LICENSE for details.
#Y
#Y This wor... |
03e1d9ba0ebd39f9349b0f59c09f287e9566956e | 75 | #!/bin/bash
touch devices.txt
sudo /usr/bin/python btscan.py > devices.txt
|
56ee321c9347bec235dfbdc1cd30719ef24d12f5 | 963 | #!/bin/bash
OPT_BASE_REF='HEAD^'
while getopts fr: ch; do
case "$ch" in
(r) OPT_BASE_REF=$OPTARG
;;
(f) OPT_FORCE=1
;;
(\?) echo "ERROR: unknown optoin: $1" >&2
exit 2
;;
esac
done
shift $(( OPTIND - 1 ))
if [[ -z "$... |
cdaf2b2f9f5eb9325fd4f103209b21e8d028f256 | 366 | #!/bin/sh
# Read temperatures
# User need to be operator group
PATH=$PATH:/usr/local/sbin:/sbin
# Collect temperature for each cpu
for c in 0 1 2 3 ; do
echo -n "cpu$c:"
sysctl -n dev.cpu.$c.temperature
done
# Collect temporature for each harddisk
for d in 6 8 12 14 ; do
T=`smartctl -A /dev/ad$d | egrep "^194... |
fe6ac32fdcfd51ddaa539ebc7acf3c0a40652c9f | 100 | #!/bin/bash
source djangoproject/myvenv/bin/activate
/djangoproject/manage.py runserver 0.0.0.0:80
|
2a463a5b8eafd9eb25edd49b7e8d74c9b175640a | 146 | #!/bin/bash
add-apt-repository --yes ppa:ondrej/mysql-5.6 &&
apt-get --quiet --quiet update &&
apt-get --quiet --quiet --yes install mysql-client; |
317f3406aae46d80174fe4a8e217c6f4196cd674 | 104 | #!/bin/bash
# service mysqld stop
tar -zcvf/tmp/mysql.tgz /store/var/lib/mysql
# service mysqld start
|
2e6f98d9a084b3435e49ee6577231e13b2e29cc5 | 216 | #!/bin/bash
#
# B.H.
#
script=`readlink -f $0`
dir=`dirname $script`
project=`basename $dir`
cd $dir
docker stop $project
docker rm $project
docker run -d --restart always \
-p 8091:8091 --name $project $project |
3771b9f2ba948b3bd11dbc218640cb6b89bca5cc | 1,015 | #!/usr/bin/env bash
#!/bin/sh
# name:start_web
# start web
base_path=/home/zkhc_wsf/zkhc_webhook/
soft_path=${base_path}
web_path=${base_path}
log_path=${base_path}/logs
web_soft_name=manage
log_name=zkhc_webhook_log
web_port=1571
for port in ${web_port}
do
lsof -i:$port | awk '{print $2}' | tail -n +2| while re... |
bb85dbd99eee7d9c54aba4e78eafaa4b1ece40ac | 138 | #!/bin/bash
trap 'echo "zostal uzyty trap"' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
while true
do
echo -n "#"
date
sleep 1
done
|
985f478728d3b5ac4c21e40a31bc403ffa9263d9 | 2,290 | #!/usr/bin/env bash
# =======================================
# Encrypt and decrypt files based on gpg
# =======================================
#
# Howto:
# Create a file, for example test, inside the main directory.
# Now encrypt it using gpg (like 'gpg -o test.enc.gpg -r <IDENTITY> -e test')
# And run this script.... |
f312e07312a9bb1cea674cf231c042e0d844edf2 | 1,089 | # Maintainer: Viacheslav Chimishuk <voice@root.ua>
_pkgname=haproxy
pkgname=$_pkgname-devel
pkgver=1.5
pkgverdev=dev9
pkgrel=1
pkgdesc="The Reliable, High Performance TCP/HTTP Load Balancer (development branch)"
arch=('i686' 'x86_64')
url="http://haproxy.1wt.eu"
license=('GPL')
depends=('pcre')
makedepends=('gcc>=4.2.0... |
7716b546c643117ea19adbe10f2cdb2446aa16b3 | 51 | mkdir backup
source deploy/certificates/backup.sh
|
4b6d0b37840d8223728ad00470b62f2ac9230ba0 | 466 | #!/usr/bin/env bash
die()
{
echo "Running the trap..."
RESULT=$(bash /run_trap_code.sh)
if [ -n "${SLACK_CHANNEL}" ] && [ -n "${SLACK_URL}" ] && [ -n "${SLACK_USERNAME}" ]; then
curl -X POST --data-urlencode "payload={\"channel\": \"#${SLACK_CHANNEL}\", \"username\": \"${SLACK_USERNAME}\", \"text\"... |
9a5d5966fce627822f8fcf07c833289e1f020047 | 368 | #!/bin/bash
export PATH="$HOME/crossbridge/sdk/usr/bin:$PATH"
export CFLAGS=-O4
dir=`pwd`
# set up the build directory
mkdir build
cd build
mkdir flash
cd flash
mkdir root
mkdir libogg
cd libogg
# finally, run configuration script
../../../libogg/configure --prefix="$dir/build/flash/root" --disable-shared
# comp... |
4b3424cb0fab0e910ad26861624da5b238d3e5dc | 265 | #!/usr/bin/env bash
log_logger='log.logger.NULL'
log.logger.NULL() {
return
}
log.logger.STDOUT() {
read input
echo "${input}"
}
log.logger.FILES() {
read input
output=$(echo "${input}" | tee -a "${@}")
}
log.info() {
echo "${@}" | ${log_logger}
}
|
3b44f6440eef5babdc4a7fba460aae599451fe2d | 209 | #!/bin/sh
set -e
cd dist
# uglify
export JS_FILE=$(find -name *.js)
uglifyjs -mc -o $JS_FILE -- $JS_FILE
# post css
export CSS_FILE=$(find -name *.css)
uglifycss --ugly-comments $CSS_FILE --output $CSS_FILE
|
b4c48ae3883fe23396e55675870a816bb4b6b7e6 | 295 | #!/bin/bash
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=2
#SBATCH --time=12:00:00
#SBATCH --job-name=mag
#SBATCH --exclusive
#SBATCH --mem=4G
#SBATCH --partition=short
# a job to run conda on a server that implements slurm
snakemake --unlock
snakemake -j 4 --rerun-incomplete --latency-wait 30
|
024612ac916c643f63ab3e62672ef31ed52fd2ce | 116 | #!/bin/bash
watch -n 5;source ~/DataBooth_venv/bin/activate;python manage.py shell --command="import collector_dg"
|
eb1886fea7631b8dba7ee8bd2eb6892865001ff4 | 614 | ERA=$1
CHANNEL=$2
eval `scramv1 runtime -sh`
cd ${CMSSW_BASE}/src/CombineHarvester/HTTSM2017
combineTool.py -M T2W -o ${ERA}_workspace.root -i output/${ERA}_smhtt/${CHANNEL}/125 --parallel 8 -P HiggsAnalysis.CombinedLimit.PhysicsModel:multiSignalModel --PO '"map=^.*/ggH.?$:r_ggH[1,-5,5]"' --PO '"map=^.*/qqH.?$:r_qqH[... |
acf1b5211b723496430f9ac51025229f1d7aec9f | 1,269 | #!/bin/bash
# Huaicheng <huaicheng@cs.uchicago.edu>
# Process raw experimental data and plot the graph in one shot
usage() {
echo ""
echo " Usage: $0 <workload>"
echo " e.g. $0 tpcc"
echo ""
exit
}
if [[ $# != 1 ]]; then
usage
fi
# resolve the correct absolute path
SOURCE="${BASH_SOURCE... |
c65413756f768766a334b444e6144b29782de0ba | 97 | #!/bin/sh
g++ server_thread.cpp -o server -lpthread
gcc client.c -o client -lpthread --std=gnu99
|
f0a4074d07715574ff17b7ffc91755cd003d01ea | 35 | #!/usr/bin/env bash
./test_bst.py
|
3c902265354f12b0ef2813e7a69d30ac819a67d4 | 530 | #!/bin/bash
echo "Running Rodinia HT Benchmark"
ht=$(pwd)
cd ../../..
repo=$(pwd)
test_dir=$repo/benchmarks/test
echo repo directory: $repo
echo ht directory: $ht
echo "test" directory: $test_dir
cd $ht
cp heartwall-rodinia-3.1 $test_dir
cp -r ht_data/ $test_dir/ht_data
cd $test_dir
echo -n "Start Time: "
date "+%H... |
51d2b3fc4fd0f42504376fd49277951b799659cb | 110 | #!/usr/bin/env sh
. $( dirname "$0" )/config.cfg
ln -s $root/vim/vimrc ~/.vimrc
ln -s $root/vim/vim ~/.vim
|
9a8584d77fa4cbe36df3fb2d161e55e5e0a8650f | 478 | PACKAGE_VERSION="git$(date +%d%m%Y)"
PACKAGE_SOURCES="https://github.com/dimkr/lok/archive/master.zip,lok-$PACKAGE_VERSION.zip"
PACKAGE_DESC="A text processing tool"
build() {
[ -d lok-master ] && rm -rf lok-master
unzip lok-$PACKAGE_VERSION.zip
cd lok-master
$MAKE
}
package() {
$MAKE DESTDIR="$1" PREFIX="" MAN... |
b55a808043ce4f042833db7bb4702e69860faee1 | 1,684 | #!/bin/bash
# info: changing userdb password
#----------------------------------------------------------#
# Variable&Function #
#----------------------------------------------------------#
# Argument defenition
user=$1
database=$2
db_password=$3
# Importing variables
source $VE... |
102fde1304011b9616d5067addf279ee7b88beb3 | 118 |
echo "
[module/backlight]
type = internal/backlight
card = intel_backlight
format = <label>
label = %percentage%%
"
|
944fa240ce0c450d3c3737fee24c2adf6ed114df | 64 | cd ~/Documents/Graphic\ Design/wnicole.github.com
node build.js
|
46431f96860ab336faf7497306d74b8fb7d7eaff | 108 | #!/bin/sh
# Show the local commits on the current branch.
git show $(repo-base)..HEAD --pretty=oneline -s
|
77521370f177fef4b269733e678cb8d25a433e2a | 152 |
echo "Welcome to the world of shell scripting"
echo 'Default script is bash'
echo 'Thank you'
echo "Enter your name"
read x
echo "my name is" $x "Das"
|
d35e2139d12bfec1e7fa46a02205065da281b773 | 63 | #!/usr/bin/env bash
cd /root/yao-scheduler/src && go run .
|
37ae2ddf05952070c27b1ef26f9561b58a2811cc | 464 | #!/bin/bash
# usage: bash align.sh | parallel -j 12
samples=`ls fastq/*.fastq.gz | cut -d / -f 2 | cut -d . -f 1-5 | cut -d _ -f 1,2 | uniq`
genome="reference_data/Ensembl/Homo_sapiens/GRCh37/Sequence/BWAIndex/genome.fa"
ncores="8"
for s in $samples; do
if [ -f bam/${s}.bam ]; then
continue
fi
echo "bwa mem -... |
5d0dc13a86ac96a2a032bfc85501ef1604988043 | 502 | #!/bin/bash
declare -i k
for alg in es bmb ils-ls ils-es; do
for seed in 11264 16438 75645 79856 96867; do
for dataset in iris rand newthyroid ecoli; do
for r in 10 20; do
if [ "$dataset" == "ecoli" ]
then
k=8
else
... |
cce87cbbd3b902b864b013408eb2d3f8b82b3224 | 894 | #! /usr/bin/env bash
set -o errexit -o nounset -o xtrace -o pipefail;
# https://opendata.mkrf.ru/opendata/7705851331-register_movies
if wget --no-verbose 'https://opendata.mkrf.ru/opendata/7705851331-register_movies/data-6-structure-3.json.zip'; then
MIGRATION_DATA='data-6-structure-3.json.zip';
else
echo 'Failed ... |
eea78fb6929845a4a19374d05bf0c29082533dae | 782 | #!/bin/bash
readonly input_bams=$( find ingest-bams -name "*.bam" )
readonly FASTQDIR=fastqs
readonly REMAPPEDDIR=remappedbams
readonly INDELREALIGNEDDIR=germ-indel-realigned
for input_bam in ${input_bams}
do
bamname=$( basename $input_bam )
base=${bamname//.bam/}
if [ ! -d ${FASTQDIR}/${base} ]
the... |
10b3ab70ae4788e1e671ed8a988ac476a9298d90 | 365 | #!/bin/bash
TAG=$1-$2
docker build -t docker-php ./hyperf/$1
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD shiyuehehu-registry.cn-beijing.cr.aliyuncs.com
echo php-hyperf:$TAG
docker tag docker-php:latest shiyuehehu-registry.cn-beijing.cr.aliyuncs.com/common/php-hyperf:$TAG
docker push shiyuehehu-registry.cn-be... |
42e7608a5f12beef8ace13b3769cfc84f26dfc29 | 180 | #!/bin/bash
echo ------------------------------
echo Starting hadoop
echo ------------------------------
echo Calling start-dfs.sh
start-dfs.sh
echo start-yarn.sh
start-yarn.sh |
42a25296f1afb808ffe64d00ed95ac676567a760 | 2,284 | #!/bin/zsh
# Makes a GMT figure of the total integrated change over
# greenland
# Set I/O
# output:
output1=../figures/maps/total_greenland.ps
# input:
intermediaryoutput=../figures/maps/figdata/total_greenland.grd
input1a=../figures/maps/figdata/border_1.0_iceland.dat
input2a=../figures/maps/figdata/border_0.5_greenl... |
1f539897265d7b9dd1455d75e5d48d8456608efa | 15,517 | #!/bin/bash
########################################################
onoff () {
statefecha="$(ps x | grep .fechaexp.sh | grep -v grep)"
if [ "$statefecha" = "" ]; then
stateexp="[off]"
else
stateexp="[on]"
fi
}
fun_bar () {
comando[0]="$1"
comando[1]="$2"
(
[[ -e $HOME/fim ]] && rm $HO... |
43d13266cc312c73592a887d0554122d989a929e | 39 | TFILE=$PWD/tfile
export DATEMSK=$TFILE
|
161e82252ed3fc0600aad703f612f2c5eb9292a8 | 292 | #!/usr/bin/env bash
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
(sudo cat /etc/apt/sources.list; echo "deb http://pkg.jenkins-ci.org/debian binary/") > ./out.file | sudo mv ./out.file /etc/apt/sources.list
apt-get update
apt-get install -y jenkins
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.