blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
338590e15889cf3ba46c70f4f3c246bd4f8ae5ac | 364 | #!/bin/bash
if [ $(whoami) != "root" ]
then
echo "I must be run as root!"
exit
fi
echo "Success! Setting up environment now"
#backup initial html folder
[ -d html ] || cp -r /var/www/html .
rm /var/www/html/*
mysql -u root -pcoursework < database.txt
cp index.html /var/www/html
cp test.php /var/www/html
cp style... |
f1fe28364dd074ca61feaf210dfde441e0a15dd1 | 68 | #!/usr/bin/env bash
export ENV=TEST
python -m unittest unit_tests
|
aada3b50597c45db2aced1cd751b8cbed6d03252 | 273 | #! /bin/sh
for ws in ws_1 ws_2 ws_3 ws_4 ws_5 ws_6 ws_7 ws_8 ws_9 ws_10 ws_17 ws_18 ws_19 ws_20
do
echo "measuring throughput of web service : $ws"
multimech-run ./$ws
echo "collecting throughput data of web service : $ws"
python qos_throughput.py $ws
done
|
7a62cfbd86907ba228f381053db15593f0b99773 | 2,397 | #! /bin/bash
config=$1
output=$config.json
prevSlot=0
primed=false
if [ -f $config ]
then
while read line
do
# spin until serial is found
while [ "$systemSerial" == "" -a "$line" != "" ]
do
systemSerial=`echo $line | grep "System Serial Number" | cut -d':' -f2 | cut -d'(' -f1`
... |
29f2aad7b0e3b290353072bcf7b00248e99d5859 | 1,202 | #!/usr/bin/env bash
set -euo pipefail
if [[ -n "$(git status --porcelain)" ]]; then
echo >&2 './push can only be run with a clean Git checkout'
exit 2
fi
for t in types/*; do
version="$(basename "$t")"
parent=''
commit=''
if git rev-parse --verify "$version" >/dev/null 2>&1; then
parent="$(git rev-p... |
8cacf9e9ebd1b70fc6c193ecb5fa39aad296f2b4 | 554 | #!/bin/bash
if [[ -z $1 ]]; then
echo "usage: $0 <directory with log files>"
exit 1
fi
tail -n 100 $1/*.log | egrep -B 2 '=>|cmsStage|rfcp|Red|Break|Disk quota exceeded' | egrep '=>|cmsStage|rfcp|[Rr]ed|Break|Disk quota exceeded' |
#COLOR RED
sed "s:Disk quota exceeded:\x1b\[01;31m&\x1b\[00m:g" |
s... |
318a29657e8a326d6edb35b2ab67ac15dece2e45 | 9,203 | #!/usr/bin/env bash
# =========================================================================== #
# #
# osx-setup.sh #
# ... |
2efa5d4c211f63f3d64c5dd2b65839b52bf511a6 | 1,247 | #Нужно проверить, есть ли репозиторий REPEL - репозиторий экстра пакетов от проекта Fedora
rpm -qa | grep epel
#Если репозитория нет, то устанавливаем
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
#Аналогично проверяем и ставим репозиторий REMI - специальный репозиторий разли... |
1175ee9a89e4c342cd5f29440f5fa6fd45a8ca10 | 1,327 | #!/bin/bash
# To be used with an instance of generic_monitor plugin in xfce4
# Simple script that verifies if some processes are running inside docker and to
# allow some actions by clicking on icons.
#
SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
function text {
if [[ $# -eq 0 ]]
... |
3d73afa61bbaf62be3bdb43654ad2dc88b7a789a | 156 | rm -r ./input
mkdir input
kaggle datasets download alexisbcook/data-for-datavis -p input
unzip -q input/data-for-datavis.zip -d input
chmod 644 input/*.csv
|
22bd0b3efb8380ecde56b86b9b3df936de68ed2c | 1,257 | # Maintainer: Samir Benmendil <ram-z[at]chakra-project[dot]org>
# Contributor: aur2ccr (http://ddg.gg/?q=!ccr+aur2ccr&t=chakra)
# Contributor: tailinchu <use_my_id at gmail dot com>
pkgname=connman-git
pkgver=1.24.89.gd60623c
pkgrel=1
pkgdesc="Wireless LAN network manager (git version)"
arch=('i686' 'x86_64')
url="htt... |
d550e0a8e846f28da46849ac39c3f63ee3d0cb6f | 211 | #!/bin/bash
HOST='yourwebsite.co.uk'
USER='your id'
PASSWD='yourpw'
ftp -p -n -v $HOST << EOT
ascii
user $USER $PASSWD
prompt
cd StarFishPrime/projects/EFM/plots
lcd /home/pi/EFM/Plots
ls -la
mput *.*
bye
EOT
|
c240760dae504ebb0ef5095ff72ce17a784a2051 | 673 |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
export PATH=$PATH:/Users/plateau/src/android-sdk-macosx/platform-tools:/Users/plateau/src/android-sdk-macosx/tools:/Users/... |
99dd2ea044db65134e47b1ac7270df3ccb7d1a04 | 7,582 | #!/bin/sh
usage()
{
cat <<EOM
Usage:
build [-a] [-j <N>]
build -m <module> [-j <N>]
build -p
build -c
build -h
-a
Build all components and output the ramdisk.img. (default)
-m <module>
Build the specified module and output to target dir
in <top>/buildroot/output/t... |
e231ca5a2beddc60ae77b8e40b020f3c32b2048d | 394 | containerName="jacob-assistant";imageName="jacob-assistant:latest"
oldContainer=`docker ps -aq -f name=${containerName}`
oldImage=`docker images -aq ${imageName}`
if [ -n ${oldContainer} ]; then docker rm -f ${containerName}; fi
if [ -n ${oldImage} ]; then docker rmi ${oldImage}; fi
docker build . -t ${imageName}
dock... |
11decc081cdf227ffe1120f4e01cbc6b305e5cd6 | 1,058 | #!/bin/bash
#####################################################################
# #
# Author: Samuel Eklund #
# Email: sam@llnl.gov #
# ... |
cbd76a97627fbb001b4b322bf5a0d10af64bc269 | 256 | #!/bin/sh
make clean
make distclean
./configure \
--prefix=${apps}/emacs/24.3 \
--without-xpm \
--without-jpeg \
--without-tiff \
--without-gif \
--without-png \
--without-rsvg \
--without-sound
make all -j4
make install
|
b21dbb73ef9005066a7efa72f808cc84e5feab21 | 490 | #!/bin/sh
# $poplocal/local/com/mksim
# Make image containing ved with lib objectclass poprulebase stuff
# Sim_agent, and rc_graphic
# A.Sloman 26th Nov 1994
$popsys/pop11 %nort mkimage $poplocalbin/sim.psv \
vedxterm vedncdxtermkeys vedsunxtermkeys \
objectclass poprulebase prb_forea... |
15d26d5ba65dec5df1b5ef4482a0c4e80369395b | 485 | #!/bin/sh
BUILD=""
if [ "$#" -eq 1 ] && [ $1 = "kernel" ]; then
BUILD="kernel"
fi
cp src/read.c sources/new_minix/fs/mfs/
cd sources
diff -rupN minix new_minix > ../mw371854.patch
cd ..
# Revert MINIX image to last clean one.
cp snapshots/minix.img minix.img
# Run MINIX.
./scripts/qemu.sh > /dev/null 2> /dev/nul... |
b19cadafda2f050f2b83067f5946cc8d0ac42dd5 | 3,312 | #!/bin/bash
# LiveConfig Webinhalt Migration
# (c) 2014 by Jonas Friedmann (iWelt AG)
##################################
# Konfiguration - ggf. anpassen
##################################
###
# Variablen
###
# Load settings file
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. ${DIR}/settings.conf
##########... |
8ebfdfdcc9c40056b26c15dfda7cf525553c7bd3 | 861 | base_name='Spits12hrly_UNet2dtransp_histlen1_predlen1_seed30475'
#trainorval='training'
#trainorval='validation'
trainorval='test'
model_name=${base_name}
dir=../../../Channel_nn_Outputs/${base_name}/TRAIN_EVOLUTION
#for level in {0..37}
for level in 2
do
for epochs in {10,50,100,150,200}
do
convert ${... |
90caddb09d8ce5d2fb2f2d3b536bbd9d68450534 | 40 | MONGODB_URI=mongodb://localhost/project4 |
ac8bc17717dcaef2877c98bd1bb65ce5f8c199f4 | 210 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export TRAVIS_BUILD_NUMBER="123"
. "$DIR/set-vars.sh"
. "$DIR/create-folders.sh"
. "$DIR/build-ui.sh"
. "$DIR/build-server.sh" |
a2e23150204909247bc569430fa12e6b290ff5bb | 601 | #!/bin/bash
echo "=======开始配置======="
inst='sudo pacman -S --noconfirm'
APPSOURCE='https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch'
# 安装源
echo "是否更新软件源?(如果先前更新过了,可以不做这一步)[y/n]"
read -r update
if [ "$update" == "y" ];then
sudo echo "Server = $APPSOURCE" > /etc/pacman.d/mirrorlist
sudo cat ./archlinuxc... |
40c0807aa0f2ce19104f6a1e9fcaac8ffda70071 | 91 | npm i -g
npm i -g corepack
npm i -g generator-code
npm i -g npm
npm i -g vsce
npm i -g yo
|
7d22ad88e3d27c0b2247bf5e1ea59c657e200075 | 126 | MQTT_VERSION=1.6.14
http_proxy="http://194.145.60.1:9400"
https_proxy="http://194.145.60.1:9400"
no_proxy=localhost,127.0.0.1
|
e1c89af235f705a5ec2cf6a5f08896d4c1a279db | 37 | #!/bin/bash
cd root/devops/cloud
pwd |
a8cca5935f237703d7f987bd91fd3ee64842f9a2 | 560 | #!/usr/bin/env bash
# Usage: ./bin/flash.sh ${PORT}
set -e
TARGET_PORT=$1
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [ -z "${TARGET_PORT}" ]; then
echo "ERROR: A port must be provided e.g. ./bin/flash.sh /dev/tty.usbmodem123"
echo
echo "Known ports:"
ls -1 /dev/tty... |
bad1767d70b7679400c8bcbdf0d6c5590e65706f | 195 | kubectl get pvc fedora -o yaml
kubectl get pod # Make note of the pod name assigned to the import process
kubectl logs -f importer-fedora-pnbqh # Substitute your importer-fedora pod name here.
|
513c3a11a88185ad4fe04db1e5af511b70325abd | 1,623 | #!/bin/bash
git clone git://git.yoctoproject.org/poky
git clone git://git.yoctoproject.org/meta-raspberrypi
git clone git://git.yoctoproject.org/meta-virtualization
git clone https://github.com/openembedded/meta-openembedded.git
git clone https://github.com/k0Iry/meta-rpilinux.git
initial=false
if [ -z "$(ls -A build... |
a5c0f3b70b6a5d5e82ceba971d6d7a55ccb3c89b | 1,187 | #!/usr/bin/env bash
set -xeuo pipefail
#export mpi=mpich
export CC=mpicc
export FC=mpif90
export F77=mpif77
export F90=mpif90
#Fix an error?
sed -i -e "s|\!bflux0,|bflux0,|g" src/Hydro/schism_step.F90
# build and install schism
mkdir build
cd build
CMAKE_PLATFORM_FLAGS+=(-DCMAKE_TOOLCHAIN_FILE="${RECIPE_DIR}/cross... |
189aa40ba9e2b98754b59be2e6a5af83d43037ab | 2,602 | #!/bin/bash
# Argumentos = -p proyecto -m micrositio -a accion [A]ctivar | [D]esactivar
# Para trabajar con micrositios usar hdl_micrositios -m nombrelmicrositio -a A (para activar) ó
# hdl_micrositios -m nombrelmicrositio -a D (para desactivar)
#
# Para trabajar con proyectos usar hdl_micrositios -m nombrel... |
bc8ef6b192a949c22318f5446bd7bf5120204a49 | 252 | #!/usr/bin/env bash
# displays the time for 12 hours and 59 minutes:
# display hours from 0 to 12
# display minutes from 1 to 59
i=0
j=1
while [ $i -le 12 ]; do
echo "Hour:" $i
(( i++ ))
while [ $j -le 59 ]; do
echo $j
(( j++ ))
done
j=1
done
|
28ac4c22de6fdfdd5553e459cca1d0cd7ceef652 | 65 | #!/bin/sh
cut -f 1 < ../hightemp.txt | sort | uniq -c | sort -r
|
b284bf2d3b3e2326e599253132d41472ce0b0211 | 138 |
mkdir /data/pg-data
chown postgres:postgres /data/pg-data
su -m postgres -c "/usr/lib/postgresql/9.3/bin/initdb --pgdata=/data/pg-data"
|
6a999e51d0796987d65d542cdb2a573b138dadd6 | 915 | #!/bin/bash
# Triggers deploy.sh to maybe update the website or move binaries.
# uploadserver needs to be defined in /etc/hosts
SSHUSER=$1
TRIGGERVERSION=$2
if [ -z "$SSHUSER" ] || [ -z "$TRIGGERVERSION" ]; then
echo "usage: $0 SSHUSER TRIGGERVERSION"
echo "e.g. $0 thomasv 3.0.0"
echo "e.g. $0 thomasv webs... |
11c9af01d4124222a41c72ff262e30e2e431d2f5 | 946 | #!/bin/bash
set -o errexit
set -o nounset
EXE_JAR="demo.jar"
#获取当前应用的进程 id
function get_running_pid {
pgrep -f "$EXE_JAR"
}
readonly SELF_DIR=$(cd $(dirname $0) && pwd)
function stop {
local -i timeout=20
local -i interval=1
local -r service_pid=$(get_running_pid) || true # ignore error
[[ -n $ser... |
2a60c3f0d28911fc45dd569dbff18a0b034ffb8a | 5,464 | #!/bin/bash
#
# The BSD 3-Clause License. http://www.opensource.org/licenses/BSD-3-Clause
#
# This file is part of MinGW-W64(mingw-builds: https://github.com/niXman/mingw-builds) project.
# Copyright (c) 2011-2023 by niXman (i dotty nixman doggy gmail dotty com)
# Copyright (c) 2012-2015 by Alexpux (alexpux doggy gmai... |
e12af84f798edf6440aa075d008a685e880c88af | 253 | #!/bin/bash
docker run --rm -t -i \
--privileged \
--security-opt=seccomp:unconfined \
--device /dev/ttyUSB0 \
--cap-add SYS_PTRACE \
-v /dev/bus:/dev/bus \
-v /dev/serial:/dev/serial \
-v $(pwd):/app \
--workdir /app \
link0/fpga \
bash \
;
|
e89cf81189e90bba88bc112f1b7d61c2c047e1b4 | 57 | export PATH=$PATH:$HOME/bin
. <(kubectl completion bash)
|
30ddf72a8603762d946236d88d30e8f22b78b383 | 781 | #!/bin/sh
set -e -x
echo "atxmon is dead"
exit 1
if [ -d /cygdrive/c/atxmonc ]; then
echo 'atxmonc already installed?'
exit 0
fi
/cygdrive/c/atxpkg/atxpkg install atxmonc --yes
cd /cygdrive/c/atxmonc
# the cat is there only to eat the possible error when grep finds nothing
mj=`ls /cygdrive/c/atx300 | grep mj |... |
0c9e74600a322a9727356a7f31bd3b2b29065d89 | 712 | #!/bin/sh -eux
make \
TO_BIN='lua5.1 luac5.1' \
TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$UB_VERSION" \
INSTALL_DATA='cp -d' \
INSTALL_TOP="$UB_INSTALLDIR"/usr \
INSTALL_INC="$UB_INSTALLDIR"/usr/include/lua5.1 \
INSTALL_MAN="$UB_INSTALLDIR"/usr/share/man/man1 \
install
mk... |
1d8a9b276962e500b9fa870f769a42b75440276b | 74 | #!/bin/sh
cd /home/vngame/GW-SFONE/cdr
/home/vngame/GW-SFONE/cdr/run.sh &
|
a2b85fb8d5ab19cc95f05003ff1b88d788e2a36d | 241 | #!/bin/bash
IP_FILE="$1"
IPS=()
while IFS='' read -r line || [[ -n "${line}" ]]; do
IPS+=(${line})
done < "${IP_FILE}"
for IP in "${IPS[@]}"
do
sshpass -p root ssh -o StrictHostKeyChecking=no -t root@${IP} ash -c "'reboot'"
done
|
275e8ed136d955d0b0736cb35d7cf8a18325f768 | 616 | #!/bin/sh
set -o errexit
chown vagrant:wheel \
/opt/gopath \
/opt/gopath/src \
/opt/gopath/src/github.com \
/opt/gopath/src/github.com/joyent
export ASSUME_ALWAYS_YES=yes
pkg update
pkg install -y \
databases/cockroach \
devel/git \
editors/vim-console \
lang/go \
security/ca_root_n... |
6ea0758c4681aee84a2f331f34878eeca7ecefe0 | 736 | #!/bin/sh
set -eu
configs=
# Only read /usr/etc/logrotate.conf if /etc/logrotate.conf does not exist
if ! [ -e /etc/logrotate.conf ]; then
configs="$configs /usr/etc/logrotate.conf"
else
configs="$configs /etc/logrotate.conf"
fi
# Then read in all of {/usr,}/etc/logrotate.d/*, with /etc/ overriding /usr/etc/.
dirs... |
b940ab13830aa5df4906bd22f78ff859b12e7990 | 110 | #!/usr/bin/env bash
cd code
matlab -nosplash -nodesktop -nodisplay -r "paths; MatlabDocMaker.create; exit;"
|
b385ee31ec261b407d48a7135490301d1e95d28f | 122 | #!/usr/bin/env sh
set -e
export TERM=${TERM:-dumb}
cd java-test-applications
./gradlew -Dorg.gradle.native=false build
|
d0b29e724e1e80adcbcbf08ca1c39d3ea1a80ba7 | 783 | #!/bin/bash
# for 2 GB
sudo mkdir /media/h4h/1
sudo bonnie++ -s 320:1024 -n 40 -x 1 -r 8 -z 1 -u root -d /media/h4h/1 &
sudo mkdir /media/h4h/2
sudo bonnie++ -s 320:1024 -n 40 -x 1 -r 8 -z 1 -u root -d /media/h4h/2 &
sudo mkdir /media/h4h/3
sudo bonnie++ -s 320:1024 -n 40 -x 1 -r 8 -z 1 -u root -d /media/h4h/3 &
# fo... |
c5948f5ff1d9bde6d32155e6b29804e8350cbc83 | 960 | #!/bin/bash
FILE_LOCATION="/homes/rylankasitz/cis520/Proj4/mpi"
OUTPUT_LOCATION=$FILE_LOCATION/"output_files"
RUNTIMES_FILE=$FILE_LOCATION/"runtimes.csv"
THREADS=( 20 18 16 14 12 10 8 6 4 2 1 )
ITERATIONS=$1
cd $FILE_LOCATION
make
mkdir -p $OUTPUT_LOCATION
rm $OUTPUT_LOCATION/*
rm $RUNTIMES_FILE
touch $RUNTIMES_FILE... |
db17eba533963a92f29dc0157072fd3ab3c50f06 | 36 | conda env config vars unset CDF_LIB
|
48312fa6803b4aaaf6b130bb507cca501eb8d04d | 162 | #!/bin/bash
set -eu
set -o pipefail
# route through the VPN
pp_devs=$(ifconfig | grep ppp | awk '{print $1}')
route add default dev $(echo "$pp_devs" | tail -1)
|
61c8412e6362492df5bd5a3b91796f6175c048f8 | 626 | #!/bin/bash
# A script to rearrange output from the Ant build of the CuratorHadoopInterface into the recommended directory structure specified in the README.
# You must run this script from its original location in the scripts directory!
echo -e "Copying Ant output into recommended directory structure..."
mkdir ../... |
2704d84d1d0c1ac3d44ea691239b9fca85d0421d | 925 | #!/bin/bash
. $(dirname "$0")/colors
lines=$(transmission-remote -l)
check=$(echo "$lines" | head -n 1 | awk '{ print $1 }')
if [ "$check" != "ID" ]; then
exit
fi
lines=$(echo "$lines" | tail -n +2 | head -n -1)
count=0
done=0
out=""
IFS='
'
for x in $lines; do
# ID,Done,Have,ETA,Up,Down,Ratio,Status,Name
pe... |
f0c1087d024780a2483c9ca57d60b8f0f101379b | 2,294 | # ====================================================
# = Author: Adrian-George Bostan <adrg@epistack.com> =
# = Version: 1.0 =
# ====================================================
# Enable color support for some commands
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolor... |
16ef340753e4031f92e8c008c24b4ed8e55a86ed | 75 | #!/bin/bash
iperf3 -c 10.0.0.3 -t 300 &
iperf3 -c 10.0.0.5 -b 60M -t 300 -u |
14267c01826622f739ef8cdfecceca89d188c623 | 569 | #!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
base=./..
echo 'Cleaning HDFS data...'
hdfs dfs -rm -r -skipTrash input/word-counter
hdfs dfs -rm -r -skipTrash output/word-counter
echo 'Cleaning local data...'
rm -R -f ${base}/output/*
echo 'Loading input data into HDFS...'
hdfs dfs -mkdir -p input
hdfs dfs -put ... |
e855cb48255cafd643bb9ba48718207e3de62bcf | 611 | list="
bucketname-1
bucketname-2
bucketname-3"
$REGION=ap-southeast-2
for BUCKETNAME in $(echo $list)
do
aws s3api create-bucket --bucket $BUCKETNAME --region $REGION --create-bucket-configuration LocationConstraint=$REGION
aws s3api put-bucket-encryption --bucket $BUCKETNAME --server-side-encryption-configurat... |
60003679e087ce13b1ce487cb453dd644b2bfecf | 852 | #!/bin/bash
check_image()
{
VERSION="wplib/composer:$REQVERS"
EXISTS="`docker images -q $VERSION 2>/dev/null`"
if [ "$EXISTS" == "" ]
then
wget -q -O /dev/null https://index.docker.io/v1/repositories/wplib/composer/tags/$REQVERS
if [ "$?" == "0" ]
then
echo "WPLib: Need to retrieve $VERSION from reposito... |
73aa0ba82636c8cf6a3dc6f030cff8d0e77ac1af | 7,749 | #!/bin/sh
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
mkdir -p $TMP
fi
. /usr/lib/setup/INCISO
if [ -f $TMP/Punattended ]; then
eval $(grep "^REMOTE_URL=" $TMP/Punattended)
eval $(grep "^REMOTE_ROOT=" $TMP/Punattended)
fi
REMOTE_SERVER=$REMOTE_URL
REMOTE_PATH=$REMOTE_ROOT
while [ 0 ]; do
rm -f $TMP/SeTDS $TMP... |
fc2598be4dcd75f6c0330a98ca8dde88f6ae5699 | 123 | sample_num=32
width=64
height=64
opencv_createsamples -info pos64.txt -vec pos64.vec -num $sample_num -w $width -h $height
|
b4a6b4f6ba2b436fa54d86a61b0152c28b633c32 | 1,319 | #!/bin/bash
set -ex
# How to pull and search for images on DockerHub
docker pull ubuntu
docker search ubuntu
# Attempt to authenticate against the private registry
docker login <registry public hostname>
# Configure Docker to ignore certificate verification when accessing the private registry - THIS IS A BAD THING
... |
e1cefa5a68ceabf41ecbd5c1671c48b527c64130 | 13,487 | #!/usr/bin/env bash
source lib
#!/usr/bin/env bash
export RESOURCE_TYPE_VQ=0
export RESOURCE_TYPE_VI=1
export ACT_PRI_CTRL_ALLOC=1
export ACT_SEC_CTRL_OFFLINE=7
export ACT_SEC_CTRL_ASSIGN=8
export ACT_SEC_CTRL_ONLINE=9
function virtual_mgmt() {
ctlid=$1
rt=$2
act=$3
nr=$4
cdw10=$(((ctlid << 16)|(rt << 8)|(... |
792948367ddcd19b6b0189718af7a3119a17bf18 | 46 | #!/bin/sh
cd /parsoid
exec node bin/server.js
|
7600ed93ab8df7a75085810a1238f19a9bb6dfe6 | 467 | #!/bin/bash
# Given:
# Jenkins and the Java service are running.
#
# When:
# A POST request is sent to the Java service.
#
# Then:
# A job is triggered on Jenkins.
#
# Assumes the working dir is the project root.
# This is the case when this script is executed by Gradle.
SERVICE_PORT=$(grep "port:" config/branch-pipel... |
bb5779888839678750378ba27d7dddc2f234c735 | 30 | #!/bin/bash
. ~/.bashrc
atom
|
2b4f5e37633b5c8f7aaf024f58d8c3d2dc7d2ad4 | 3,348 | #!/bin/bash -e
[ -n "$DEBUG" ] && set -x
# ----------------------------------------------------------------------------
if [[ "$OSTYPE" == 'linux'* ]]; then
TEMP=$(getopt -o f:hvV --long format:,help,version,verbose \
--name "$0" -- "$@")
[ $? != 0 ] && { echo "Terminating..." >&2; exit 1 ; }
eva... |
014211673b1c85e811b1a072514b953cd4fcebaf | 510 | # install dependencies
npm install
sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/ctlscript.sh start mongodb
# enable ip forwarding from 80 to 8080
sudo /bin/su -c "echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf"
sudo sysctl -p /etc/sysctl.conf
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j ... |
1cf162d1c2301c68b57d58caba404ef08e3fa900 | 113 | # alias settings
alias build="docker-compose build"
alias up="docker-compose up"
alias stop="docker-compose stop" |
ca86b2cdef43de3db2b5dbcf2eca40bd3f55b20a | 224 | #!/bin/sh
set -o errexit
GIT_ROOT=${GIT_ROOT:-$(git rev-parse --show-toplevel)}
. make/include/colors
printf "%b==> Testing %b\n" "${OK_COLOR}" "${NO_COLOR}"
go test -race -cover $(go list -f '{{ .ImportPath }}' ./...)
|
394ff348e2c69b6bba1c66c8ff2e950f5197ad6f | 69 | #!/usr/bin/env bash
ag -l "$1" | xargs -0 -n 1 sed -i -e "s/$1/$2/g"
|
91a0a39c9eb1ae2dab53567af50a96087f22d49e | 4,180 | #!/bin/bash
SRC_URI1="http://zy-res.oss-cn-hangzhou.aliyuncs.com/cacti/cacti-0.8.8b.tar.gz"
SRC_URI2="http://zy-res.oss-cn-hangzhou.aliyuncs.com/cacti/rrdtool-1.4.9.tar.tar"
PKG_NAME1=`basename $SRC_URI1`
PKG_NAME2=`basename $SRC_URI2`
DIR=`pwd`
DATE=`date +%Y%m%d%H%M%S`
CPU_NUM=$(cat /proc/cpuinfo | grep processor | ... |
4f6706cd4345d3e619f27df91d597387668bbd75 | 337 | #!/usr/bin/env bash
csv_file=/raid/data/kaggle/jigsaw/test.csv
output_path=../meta/
dataset=test
python preprocessing/extract_data.py meta-features --csv_file $csv_file \
--dataset $dataset \
--output_... |
98e26ad37d5bf683eb94a5e05561674c37af303a | 16,962 | #!/bin/bash
export KUBECONFIG=conf/kubeconfig/admin.kubeconfig
# configure core/system namespaces
#kubectl apply -f manifests/namespaces/global/default/namespace.yaml | tee -a logs/manifests.log
#kubectl apply -f manifests/namespaces/global/default/limits.yaml | tee -a logs/manifests.log
#kubectl apply -f manifests/n... |
b1170fa4c0dbe26cfe442be1f15fb44535f6a035 | 105 | #!/usr/local/bin/bash
#
# Reset Dock to factory defaults
#
defaults delete com.apple.dock
killall Dock
|
0a990f811a5c8ccc00dd37dc58326d7b5f4df9ba | 159 | #!/bin/bash
rm -rf test/test.log
rm -rf test/pythiaevent_test.root
root -b <<EOF >& test/test.log
.O2
.L runhfevent_C.so
runhfevent(888,1000,3128,1);
.q
EOF
|
dd95a11448d5b3cd2dfa1aef15be06b7232a2c23 | 12,453 | /usr/lib64/jvm/default/bin/java -Dspark.master=spark://myhost:7077 -Xms1024M -Xmx2500M -javaagent:/usr/share/intellijidea-ce/lib/idea_rt.jar=45999:/usr/share/intellijidea-ce/bin -Dfile.encoding=UTF-8 -classpath /usr/lib64/jvm/default/jre/lib/charsets.jar:/usr/lib64/jvm/default/jre/lib/ext/cldrdata.jar:/usr/lib64/jvm/de... |
ec46794107af0dd9693991a70aad4a55ab291871 | 987 | #!/bin/bash
if [ ${#@} == 0 ]; then
echo "Usage: $0 APIKey file"
echo "* APIKey: Your Mailgun API key"
echo "* file: The CSV file to read from. First column are From: email addresses. All other columns are the emails to forward to."
fi
while IFS='' read -r line || [[ -n "$line" ]]; do
emails=($line)
n... |
1c7bad32c2d4fbefefd502e23a396be80b3239c5 | 587 | export DISPLAY=:0
python3 setup.py build_ext --inplace
cython3 --embed checkers_game.pyx -o checkers_game_obj.cpp -3 --cplus -f
echo looking for python in /usr/include/python3.6m
g++ -I/usr/include/python3.6m \
-o gui-checkers.out ... |
4a78cb2c41f890b755ec1160128263131b43c01c | 4,497 | #!/bin/bash
##see: http://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash
# Use -gt 1 to consume two arguments per pass in the loop
# Use -gt 0 to consume one or more arguments per pass in the loop
DB_USER='unit_chris'
DB_PASS='unit_chris'
DB_NAME='unit_chris'
CREATE_DB=false
RUN_LIN... |
b63deac0440669d0d98c0640d2e4a5fa521a7043 | 102 | function narrange()
{
~/.dotfiles/bin/narrange $1 -c:/Users/ghuntley/.dotfiles/bin/narrange.xml
}
|
1775e90cac7dc1676e799cc3753990b0e9db850d | 343 | #!/bin/sh
#purpose: setup geodjango example from POSTGIS cookbook
cd ~/virtualenvs/
virtualenv --no-site-packages chp09-env
source chp09-env/bin/activate
pip install pillow django psycopg2
DJANGOPATH="/srv/ows.bfh.ch/geodjango"
#mkdir -p DJANGOPATH
#cd DJANGOPATH
#django-admin.py startproject rehprojekt
#django-admin.... |
ba2d1620ef5e12108eb78565ac893d64df38b905 | 785 | #!/bin/bash
# set -x
# set -euo pipefail
parse_general_flags "$@"
PROJECT_ZONE=${PROJECT_ZONE:-"europe-west2-b"}
PROJECT_REGION=${PROJECT_REGION:-"europe-west2"}
PROJECT_ID=${PROJECT_ID:-$(jq -r '.project_id' <"${GCLOUD_SECRETS}"/gcloud-key.json)}
gcloud auth activate-service-account --key-file="${GCLOUD_SECRETS}"/... |
3dc4cc4050cc380e21fb4eae6f97a7be3ad95051 | 337 | #!/bin/bash
export TMP=/tmp
export TMPDIR=$TMP
export PATH=/usr/sbin:/usr/local/bin:$PATH
export ORACLE_HOSTNAME=x4270a201227.osc.oracle.com
export ORACLE_UNQNAME=orcl
export ORACLE_SID=orcl
ORAENV_ASK=NO
. oraenv
ORAENV_ASK=YES
# Start Listener
lsnrctl start
# Start Database
sqlplus / as sysdba<< EOF
STA... |
3950b35f6df8fb11f20e1b6c646097f0dc6f3270 | 365 | ##########################################################################
# File Name: 6fd.sh
#Author: luqi
# Created Time: 2019年07月10日 星期三 22时58分11秒
#########################################################################
#!/bin/zsh
exec 3<&0 0<name.txt
read line1
read line2
exec 0<&3
echo $line1
echo $line2
... |
cded2fe359a932d55a81bb8e78a7f6d19ef611a2 | 633 | #!/bin/bash
TCPDIR=`pwd`
mkdir sacCer3
mkdir sacCer3/orig
mkdir sacCer3/rRNA_locus
mkdir sacCer3/rRNA_locus/STAR
mkdir sacCer3/tRNA
mkdir sacCer3/tRNA/BT2
mkdir sacCer3/tRNA/STAR
mkdir sacCer3/genbank
mkdir sacCer3/structRNAs
mkdir sacCer3/structRNAs/STAR
mkdir sacCer3/mRNAs_1000flank
mkdir sacCer3/mRNAs_1000flank/STAR... |
0321fb52d2f2163f5b57cad4dfab9497b8cd2174 | 18 | echo "I am v5796"
|
5c6d9f71a8b8492f4c4c1aee47d32e39ad2dadd9 | 3,087 | ./Syst2J1T dirName TreesEle dopdf 42 input WW METResolFileName /home/nadjieh/work/AnalysisClasses/ToyAnalysis/macro/METresolutions.root isData no stack yes
./Syst2J1T dirName TreesEle dopdf 42 input WZ METResolFileName /home/nadjieh/work/AnalysisClasses/ToyAnalysis/macro/METresolutions.root isData no stack yes
./Sy... |
59868ab346030e74d19aec8243eca869dc8787ec | 731 | kafka-topics --create --zookeeper zookeeper:2181/kafka --replication-factor 1 --partitions 1 --topic test1
kafka-console-producer --broker-list localhost:29092 --topic test1 <<EOF
Test message 1 on topic test1
Test message 2 on topic test1
EOF
kafka-topics --create --zookeeper zookeeper:2181/kafka --replication-factor ... |
2d383fbff164f5e51dc2169a244cab48c24e6c34 | 4,768 | #!/bin/bash
<<.deb
nesta parte encontram-se alguns programas que não haviam pacotes snaps
e então foram baixados pelos repositórios padrões do ubuntu
.deb
apt-get install gcc -y # compilador C
apt-get install virtualbox -y # maquina virtual
apt-get install gnome-tweak-tool -y # co... |
e4d9a579127224e20f642249e848bbebdf894795 | 1,085 | DB_MONGO=mango098
RSA_PRIVATE=MIICWwIBAAKBgGfLJLtt1SA9J095uSeoH2Wz6GNcN+3nX49EtjJzkF4EdFZ/mjeq
AcbMzypo06Y0Rm+csZTdYar44yMHuMDgUCCH0B50Di2O7Sr0uGbg4r24g+UXCMcS
+UwuZnGX4Blssa+20yW7uQNEokpDZy+nlH2m6iGN5ZR5wPZMfghgsFR1AgMBAAEC
gYAenYIZMv1xg/hLbgkaVHHmatm6LSJmLyA1vzvKx+GmicPTG9JeZuwdOp5E0STU
2oiINXz//wjnCIDe/VEWu1OG0w/IMF... |
9c48a92cb392a5264b7dd2724c1053a92f947022 | 496 | #!/bin/bash
cd "$(dirname "$0")/.."
bazel build ...
for n in `seq -f "%03g" 1 34`; do
for z in 1 2; do
./bazel-bin/solver/solver \
--source data/models/FR${n}_src.mdl \
--target data/models/FR${n}_tgt.mdl \
--output a.nbt \
--line_assembler_flip_xz \
--line_assembler_x_divs 1 \
... |
e369548195c620dae4cb5aa97805b5ddcf4e53b0 | 272 | #Unbind
unalias gr 2>/dev/null
unalias gc 2>/dev/null
#Bind
alias g="gradle"
alias gb="gradle build"
alias gc="gradle clean"
alias gt="gradle test"
gr() {
command="gradle run"
if [ $# -gt 0 ]; then
command+=" -Ptestfile=$1"
fi
eval $command
}
|
c2c1e6982e7d683148dd01dcb73171bc1583441f | 1,644 | #!/bin/bash
# Findlee (c) 2013
# thefindlee@gmail.com
app_zipalign () {
apk=`find app | grep -c ".apk"`
if [[ "$apk" != "0" ]]
then
cd app
apklist=`find *.apk`
setterm -bold
tput setaf 1
echo "Zipaligning in app folder"
tput sgr0
echo "-----------"
for zipaligning in ${apklist[@]}
do
../tools/zipalign 4 $zipalignin... |
fd946e11a7302531cfbf641237575838b92ae88e | 449 | #!/bin/bash
g++ -std=c++17 -O3 -march=native lll_search.cpp -o lll_search -lntl
g++ -std=c++17 -O3 -march=native lll_search.cpp -DMULT -o lll_msearch -lntl
g++ -std=c++17 -O3 -march=native lll_spect.cpp -o lll_spect -lntl
g++ -std=c++17 -O3 -march=native lll_spect.cpp -DMULT -o lll_mspect -lntl
g++ -std=c++17 -O3 -mar... |
09573e6c1602d7133f1c0aebf4fc7a3c87a0dc54 | 168 | #!/bin/bash
sudo killall java
rm -f /home/ec2-user/code-pipeline-demo.jar
rm -f /home/ec2-user/appspec.yml
rm -f /home/ec2-user/app.log
rm -f /home/ec2-user/*.sh
exit 0 |
fd5eec9c200005d2e57e180f414c675242b3a59b | 362 | #!/usr/bin/env bash
set -euf -o pipefail
NODEJS_VERSION=11
# Set up the latest Node.js repository and add official GPG key
curl -sL "https://deb.nodesource.com/setup_$NODEJS_VERSION.x" | bash -
# Install Node.js and Yarn
apt-get update -qq && apt-get install -y nodejs
# Upgrade to the latest of NPM
npm i -g npm
#... |
92773190cc82c0d0fc223b3ad127bddf9348b22f | 227 | #!/bin/sh
source .env
#stitch-cli login --api-key=$STITCH_API_KEY --private-api-key=$STITCH_PRIVATE_API_KEY
# change the value of --app-id=zerotolive-njchv
stitch-cli export \
--app-id=$STITCH_APP_ID \
--include-hosting
|
3bc9077ed44d0fb6f843170858e4184da4671b37 | 514 | #!/bin/bash
if [ $# -lt 4 ] ; then
echo "Usage <dbname> <use X?[1|0]> <person_chunk_start> <person_chunk_end>"
exit 1
fi
dbname=$1
useX=$2
chunk_start=$3
chunk_end=$4
if [ $useX -eq 1 ] ; then
chroms='1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 X'
elif [ $useX -eq 0 ] ; then
chroms='22'
#chrom... |
32ca3831560668a334499d08f44d593f36b70130 | 82 | #!/bin/bash
cd "$HOME/bin/claymore" || exit 1
./claymore_miner_eth_only.bash "$@"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.