blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
d47d17655c4ce9a9b17340c1ee40c1342da47885 | 203 | #!/bin/bash
SIZE=48
if [ $# -ne 0 ]; then
SIZE=$1
fi
{
sudo mkdir -p /mnt/ram
sudo mkfs.ext4 -F /dev/pmem1
sudo mount -t ext4 -o dax /dev/pmem1 /mnt/ram
sudo chmod -R 777 /mnt/ram
} 1>/dev/null 2>&1
|
897dc4252428b2f5c2406e9fa92d717f6b6b3518 | 2,470 | #!/bin/bash
set -eux
CLONEFROM={{ image_cache_dir }}/supplemental_base.qcow2
VMSSHKEY={{ working_dir }}/id_rsa_supplemental.pub
VMDISKADD=30G
WORKDIR=/tmp/virt-undercloud-$(date +%s)
VMIMGIPA={{ working_dir }}/ipa.qcow2
VMIMGIPACOPY={{ working_dir }}/ORIG-ipa.qcow2
# Copy qcow2 base image
cp -v $CLONEFROM $VMIMGIPA... |
88c1fef296bba2eff766e4a5d9258ed81f695811 | 534 | # Maintainer: James Bulmer <nekinie@gmail.com>
pkgname=pastedeploy
pkgver=1.5.2
pkgrel=1
pkgdesc='A pluggable command-line frontend, including commands to setup package file layouts'
arch=('i686' 'x86_64')
url='http://pypi.python.org/pypi/PasteDeploy'
license=('MIT')
depends=('python2' 'paste')
source=('https://pypi.p... |
99821455156dfed5c8d4e932b2bdfb7d2694808e | 40 | #!/bin/bash
set -e
nc -z 0.0.0.0 1433
|
dc184e61e24f6e8eadd03f114e5517eceb870e72 | 501 | #!/bin/sh
LD_LIBRARY_PATH="/Applications/mappstack-7.1.13-0/common/lib:$LD_LIBRARY_PATH"
DYLD_FALLBACK_LIBRARY_PATH="/Applications/mappstack-7.1.13-0/common/lib:$DYLD_FALLBACK_LIBRARY_PATH"
OPENSSL_CONF="/Applications/mappstack-7.1.13-0/common/openssl/openssl.cnf"
OPENSSL_ENGINES="/Applications/mappstack-7.1.13-0/commo... |
c27a1a0b88ec21a4fad2f24d1a4ff3ea60d774f8 | 3,545 | #!/bin/bash
set -eu
readonly DATA_DIR="/bootstrap/data"
readonly CONFIG_DIR="/bootstrap/config"
readonly LDAP_SSL_KEY="/etc/ldap/ssl/ldap.key"
readonly LDAP_SSL_CERT="/etc/ldap/ssl/ldap.crt"
LDAP_DOMAIN="${LDAP_DOMAIN:-zentek.com.mx}"
LDAP_ORGANIZATION="${LDAP_ORGANIZATION:-Zentek MX}"
LDAP_BINDDN="cn=admin$(echo ${L... |
1aa7bfa767a620cbbaca5e36a19790e29f8512f7 | 3,854 | #!/bin/bash
# script was inspired by
# https://community.hortonworks.com/articles/47170/automate-hdp-installation-using-ambari-blueprints.html
if [ -f /etc/yum.repos.d/ambari.repo ]; then
echo "$0 skipped, because files already exists"
exit 1
fi
if [ "$(id -u)" != "0" ]; then
echo "$0 has to be run as root, p... |
9272736ae17ee11085aeee3259aee3ed8873db67 | 1,398 | #!/bin/bash
if [ $# -eq 0 ]
then
script="params/param_train.py"
else
script=$1
fi
script="params/evals/param_eval_01.py"
args="$(python3.6 $script)"
CUDA_VISIBLE_DEVICES="0,1" python3.6 vent_main.py --parameters $script $args
script="params/evals/param_eval_02.py"
args="$(python3.6 $script)"
CUDA_VISIBLE_DE... |
240b4315acbacd3ce7edcef74d65cc90b753bbf9 | 140 | mysql -u root -p'' -e"drop database if exists fhe_test; create database fhe_test;";
mysql -u root -p'' fhe_test < ./user_data_database.sql;
|
5d7f8aed1f5e278c24cc24fa404ea9553ade3c09 | 900 | #!/bin/bash
# This test ensures telemetry is not being sent for (some) commands by
# checking that no network connections are being made when not
# expected. Relies on strace and IF_NET to detect network connections.
#
# A more robust version would be to use tcpdump to check for network
# connections on each command, ... |
16a9fd88f53e69f36d83543bdaaa251ef09e3020 | 278 | #!/bin/bash
#stop on error
set -e
#create the venv
python3 -m venv ./fprime-venv
#activate the venv
. ./fprime-venv/bin/activate
#build the venv
pip install --upgrade wheel setuptools pip
cd fprime/
pip install ./Fw/Python
pip install ./Gds
#deactivate the venv
deactivate
|
8e74809aa66397584fecff4fe640de89a304a6f9 | 89 | #!/bin/bash
ansible appserver -m command -a uptime
ansible dbserver -m command -a uptime
|
3cea56806875f38e6b91b2ec7d11a6bbf3a2745c | 1,702 | #!/usr/bin/env bash
set -x
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
cur_dir=$(cd $(dirname "$0") && pwd)
echo "脚本执行路径:"${cur_dir}
DATE=`date +%Y%m%d_%H%M%S`
echo "当前时间:"${DATE}
if [ $# -eq "0" ]; then
echo "没有参数"
fi
docker pull mirrorgooglecontainers/kube-apiserver-amd6... |
9e576f08bb2826a4ac7e1961e9e391d753c9e5da | 139 | function install_font_microsoft() {
brew tap hash4di/fonts-nonfree || return $?
brew cask install font-microsoft-office || return $?
}
|
cabb63f45074ab60e16d181f4a1a61474a76ce10 | 889 | #!/usr/bin/env bash
# Variables
hostname="$1"
nclteamname="$2"
nclsio="http://172.18.178.45:8080"
printusage() {
echo "Usage: sudo $0 <hostname> <ncl_team_name>"
}
echo "$0: Started..."
if [ "$#" -ne 2 ]; then
echo "Failed: Wrong number of arguments."
printusage
exit
fi
if [ "$EUID" -ne 0 ]; then
echo "... |
c359fc63a401053d489e4d7c124b874efdc9c42a | 84 | #!/bin/bash
#Name: AndreyS
#Purpose: Hello World
var="Hello World"
printf "$var\n"
|
76f84fb3e4101c48408531e4c117929e112ec3ab | 123 | #!/bin/bash
cd snappy_tutorial/
./clean.sh
./run.sh
cd ../inertial_0.2Mach_NACA0012_1e-3_6procs/
./cleanCase.sh
./run.sh
|
2564613c7f164ad6f066d98187fdf419a0ccd042 | 118 | echo %
echo %{url_effective}
blah_2="$(echo "$blah_2" | curl -Gso /dev/null -w %{url_effective} @- "" | cut -c 3- )"
|
65abf838564543d97525bd1c806acf867c246a5d | 102 | #!/usr/bin/env bash
~/catkin_ws/src/gitagent/result_scripts/init_culture_script_3.sh
./plot_script.sh
|
e11e51a540602a2c3060bb8c47f080ddcdf931ce | 288 | #!/bin/bash
BATCH_SIZE=$1
VIS_INT=$2
LOG_INT=$3
DATASET_DIR=$4
MODEL=$5
echo $MODEL" + RGB + STACKED"
python3 train.py \
--model $MODEL\
--batch_size $BATCH_SIZE \
--vis_int $VIS_INT \
--log_int $LOG_INT \
--use_rgb \
--use_stacked \
--use_balance \
--dataset_dir $DATASET_DIR\
|
9698fbe15baf93d65e42aa0b20183c642c5abe02 | 234 | # this is the work directory; it will be created on the host, in the directory where Vagrantfile resides
sudo mkdir -p /vagrant/notebook
/opt/anaconda/bin/ipython notebook --notebook-dir=/vagrant/notebook --no-browser --ip=0.0.0.0 &
|
cef906268747db76edf63f4f3928b691782669f0 | 106 | #!/bin/bash
gpio unexportall
gpio -g mode 08 out
gpio -g mode 07 out
gpio -g write 08 0
gpio -g write 07 1 |
e3baeb9256a2a5a40387ae32b29f4d4383a0ef98 | 1,224 | #!/bin/bash
# ***** BEGIN LICENSE BLOCK *****
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# ***** END LICENSE BLOCK *****
# Verifies a packaged app signature
# kang... |
cf764b485615439f8e7d1f1237823df56bcb2943 | 331 | #!/bin/bash
cat all_header.sh controller_all.sh controller_primary.sh all_footer.sh > config_controller_primary.sh
cat all_header.sh controller_all.sh all_footer.sh > config_controller_other.sh
cat all_header.sh compute_all.sh all_footer.sh > config_compute_all.sh
cat all_header.sh ceph_all.sh all_footer.sh > config_c... |
75acc7dfe7155f67f93569c8fd09b5eb2f4e7e9b | 1,254 | #!/bin/bash
# Possible workspaces
# declare -a WORKSPACES=(api)
# Validate user-supplied workspace.
# validate_workspace () {
# local e match="$1"
# shift
# for e; do [[ "$e" == "$match" ]] && return 0; done
# echo 1
# }
# if [[ $(validate_workspace "$1" "${WORKSPACES[@]}") == 1 ]]; then
# echo "... |
c79901bb76d21295f5ae6f9d3d0b8beaab90977c | 873 | #!/usr/bin/env bash
########################
# include the magic
########################
. lib/demo-magic.sh
########################
# Configure the options
########################
#
# speed at which to simulate typing. bigger num = faster
#
TYPE_SPEED=200
#
# custom prompt
#
# see http://www.tldp.org/HOWTO/Bas... |
e0fdddf193ca5b5e3fb365e32357c0f367b505ed | 201 | source $stdenv/setup
ensureDir $out/bin
cat >> $out/bin/jing <<EOF
#! $SHELL
export JAVA_HOME=$jre
export LANG="en_US"
exec $jre/bin/java -jar $jing/bin/jing.jar "\$@"
EOF
chmod a+x $out/bin/jing
|
f6862adb47e364df4046643382d9868a72f7655f | 41 | FLASK_APP=api.py
FLASK_ENV=development
|
dd4bc5c53670be99de7b5dd2395eff351eabf535 | 3,438 | #!/bin/sh
function cleanmeta() {
xattr -c * && exiftool -all= * && rm *_original
}
function cleanpip() {
pip freeze | xargs pip uninstall -y
}
function http2ssh() {
REPO_URL=`git remote -v | awk '{print $2; exit}'`;
GIT_USER=${REPO_URL#*com/}; GIT_USER=${GIT_USER%%/*}
GIT_REPO=${REPO_URL#*${GIT_USER}/}; GI... |
ec510d29038ed194c1a586bf534e5182dc800373 | 1,509 | # vim: set ts=4 sw=4 et:
mount_cgroup1()
{
mountpoint -q /sys/fs/cgroup || mount -o mode=0755 -t tmpfs cgroup /sys/fs/cgroup
awk '$4 == 1 { system("mountpoint -q /sys/fs/cgroup/" $1 " || { mkdir -p /sys/fs/cgroup/" $1 " && mount -t cgroup -o " $1 " cgroup /sys/fs/cgroup/" $1 " ;}" ) }' /proc/cgroups
}
mount_c... |
85055e7b4caf063775fabeaf3d5a9262d59f7f7f | 408 | #!/bin/bash
#Write a shell script that prompts the user for a name of a file or directory and does any operation
read -p "Enter file/dir name:" file
echo "File/Dir name: ${file}"
if [ -f $file ]
then
echo "Regular file"
elif [ -d $file ]
then
echo "Directory"
else
echo "Might not be a file/dir"
fi
list=$(ls $fil... |
c610c87c2779ec2fcdf5ec4354e29df619ec6c41 | 330 | export BASH_SILENCE_DEPRECATION_WARNING=1
alias ll='ls -lAG'
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1=" \[\033[34m\]\u@\h \[\033[33m\]\w\[\033[31m\]\[\033[00m\] \[\033[32m\]\$(parse_git_branch)\[\e... |
f0dcbc890238c704a594819526d47abe2a620e8e | 547 | #!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=16
#SBATCH --mem=60000
#SBATCH --time=6:00:00
#SBATCH --job-name=my_job
#SBATCH --account=prj-trn13
#SBATCH --reservation=dbg-workshop
#SBATCH --mail-user=rjg20@bath.ac.uk
#SBATCH --output=StdOut.o.%j
#SBATCH --error=StdErr.e.%j
module purge
module load s... |
af35868982d00d56b3742f521b4d4ca60e2c4e0f | 115,597 | #!/bin/bash
#SBATCH --partition=he2srvMediumP
#SBATCH --time=2000:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --job-name=p_6463
#SBATCH --error=/home/comparat/software/linux/firefly_explore/bin/bin_spectra/plot_result_file_run_dir/p_6463.err
#SBATCH --output=/home/comparat/softw... |
e7e41c357ca97d7f0aa288a2a836f074aad56afb | 96 | #! /bin/sh
nice /bin/signal-desktop >/dev/null 2>&1 &
sleep 3s; mullvad-ignore-signal-desktop
|
3d1f6af7ca4efa233387536de1e0dda3a82adb22 | 1,441 | #! /bin/bash
diskspace(){
clear
df -k
}
whoseon(){
clear
who
}
meminfo(){
clear
cat /proc/meminfo
}
menu(){
clear
echo
echo -e "\t Sys Admin Menu\n"
echo -e "\t1.Display disk space"
echo -e "\t2.Display logged on users"
echo -e "\t3.Display memory usage"
echo -e "\t0.Exit program"
echo -en "\tEnter ... |
a670a6374f1abb823cef1502899128b5bd68ae12 | 501 | #!/bin/sh
targets="sg2 sg3 sg4 sg5 sg6"
if [ "x$1" = "xconfig" ]; then
cat << __EOF__
graph_title Disk temperature
graph_info Displays temperature on the SCSI disk $targets
graph_category disk
graph_vlabel Celsisus
__EOF__
for target in $targets; do
sg_logs -t /dev/$target | awk "/Reference temp/ { print \"$targe... |
c477eab9d1dec84499aa4d8912ebc00df540a5a6 | 1,179 | # Based on:
# https://github.com/drduh/macOS-Security-and-Privacy-Guide
# https://benchmarks.cisecurity.org/tools2/osx/CIS_Apple_OSX_10.12_Benchmark_v1.0.0.pdf
# Enable firewall. Possible values:
# 0 = off
# 1 = on for specific sevices
# 2 = on for essential services
sudo /usr/libexec/ApplicationFirewall/socketf... |
5dfed6c712c9a6fd71d4903c09e22600114116e0 | 151 | #!/bin/bash
gcc keygen.c -o keygen
gcc otp_enc.c -o otp_enc
gcc otp_dec_d.c -o otp_dec_d
gcc otp_enc_d.c -o otp_enc_d
gcc otp_dec.c -o otp_dec
#done
|
2b440fb99986786f19a2f10af033c739653fffe8 | 912 | #!/usr/bin/env bats
load helpers
function setup() {
setup_test
sed "s|HOOKSCHECK|${HOOKSCHECK}|" "$INTEGRATION_ROOT"/hooks/checkhook.sh > ${HOOKSDIR}/checkhook.sh
chmod +x ${HOOKSDIR}/checkhook.sh
sed "s|HOOKSDIR|${HOOKSDIR}|" "$INTEGRATION_ROOT"/hooks/checkhook.json > ${HOOKSDIR}/checkhook.json
}
function tear... |
dceea297e69e4a68e836be77ff0676a0d72cee92 | 453 | #!/bin/bash
#Submit this script with: sbatch thefilename
#SBATCH --time=24:00:00 # walltime
#SBATCH --ntasks=1 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH --mem-per-cpu=16G # memory per CPU
#SBATCH --mail-user=bret_hess@byu.edu # email address
#sBATCH --mail-type=FAIL... |
c5d4fd8cc5711a9d90028c9b26ec7dbe1a24cde0 | 92 | #!/bin/bash
scp muzhi@192.168.1.100:/opt/sanguo/editor/fixtures/* sanguo/preset/fixtures/
|
09b6fbdc3202690e9e1264bb7c0ab92457c1aba7 | 780 | #!/bin/bash
set -eu
function print_usage {
echo "Usage: $(basename $0) [options]"
echo " Options:"
echo " --arch [arch]: x86_64(default)|i386|aarch64|arm"
echo " -h|--help: print this help message"
}
ARCH=x86_64
SHORTOPTS="h"
LONGOPTS="arch:,help"
ARGS==`getopt -n "$(basename $0)" --options $SHORTOPTS --longo... |
73aff2ad26ac28a3da7860f9026caa66d200cc2f | 954 | #!/bin/sh
if [ $UID -ne 0 ]; then
echo "$0: You need to be root." >&2
echo "Try: sudo $0" >&2
exit 1
fi
if [ -e /System/Library/Extensions/rf2500.kext ]; then
echo '/System/Library/Extension/rf2500.kext already exists.' >&2
echo 'You must uninstall it before installing a new version.' >&2
exit 1
fi
dir=`dirnam... |
30295f0e13fd81eaaeb57b411580872026199416 | 205 | #!/bin/bash
docker run -it -v $HOME/.vim/:/home/developer/.vim/ \
-v `pwd`/.vimrc:/home/developer/.vimrc \
-v $HOME/Workspace/:/workspace \
duykhoa/vim:0.1 sh
|
c021c0163c8a8e8e00531e61d27a92d09254d4e8 | 1,816 | #!/bin/sh
test_description='git p4 with server triggers'
. ./lib-git-p4.sh
test_expect_success 'start p4d' '
start_p4d
'
test_expect_success 'init depot' '
(
cd "$cli" &&
echo file1 >file1 &&
p4 add file1 &&
p4 submit -d "change 1" &&
echo file2 >file2 &&
p4 add file2 &&
p4 submit -d "change 2"
)
'... |
e4fa102d5b9b598409296309c98cc1880a21dc5a | 82 | #!/usr/bin/env bash
rm Log -rf
rm -f filestore.db
rm -rf leveldb
rm -f cpu.pprof
|
3b8cec98dcc5d325f0b1bc42f87da07532c13f4a | 39 | #!/bin/sh
ng build
../server/bin/main
|
44e75a1e4b31faae2fc7983013947a4188055014 | 5,384 | #!/bin/bash
NBANDS="14"
SP_ID="dsa_titan"
SOLAR_SPEC="sun"
PT_FILE="pt_titan"
PT_CONT="pt_cont_titan"
# For a 2 bar atmosphere, up to 5% CH4, 1% H2
COL_CH4="6e+2"
COL_N2_CH4="4e+3"
COL_N2_N2="2e+5"
COL_N2_H2="1e+2"
. ../set_paths_sw
################################################################################
# ... |
0e649923388920334d97d5e3c87358004bb597b8 | 1,575 | #!/bin/sh
cat ../viterbi/iid_nc000913_vecocyc_cv_1_f1.vit ../viterbi/iid_nc000913_vecocyc_cv_1_f2.vit ../viterbi/iid_nc000913_vecocyc_cv_1_f3.vit ../viterbi/iid_nc000913_vecocyc_cv_1_f4.vit ../viterbi/iid_nc000913_vecocyc_cv_1_f5.vit ../viterbi/iid_nc000913_vecocyc_cv_1_f6.vit > ../viterbi/iid_nc000913_vecocyc_cv_1.vi... |
95403ed4e355f3e5cbf6d729b314e3636cf12480 | 733 | #!/bin/bash -x
# FRIDA
newest_frida_version=$(frida --version)
phone_architecture=$(adb shell getprop ro.product.cpu.abi)
wget https://github.com/frida/frida/releases/download/"${newest_frida_version}"/frida-server-"${newest_frida_version}"-android-"${phone_architecture}".xz
unxz frida-server-"${newest_frida_version... |
4e6135875367dca45806aeb129fd02f94367dcd8 | 143 | #!/bin/sh
wmctrl -r nicholas -b toggle,maximized_vert,maximized_horz
tmux new-session -d 'vim'
tmux split-window -h
tmux -2 attach-session -d
|
f80d03d875b10c38bb1416b9c6b3d52ac17a68f5 | 865 | #!/bin/bash
sudo cat pacman.conf.add >> /etc/pacman.conf
sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.back
sudo cp mirrorlist /etc/pacman.d/mirrorlist
sudo mv /usr/share/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def /usr/share/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def.back
s... |
cf8c04a57a0b7ef84114dccbb34c63295a632a69 | 678 | #!/bin/sh
if [ -z "$1" ] ; then
STAGEDIR="/usr/local"
else
STAGEDIR="$1"
fi
# lpreserver install script
PROGDIR="${STAGEDIR}/share/lpreserver"
mkdir -p ${PROGDIR} >/dev/null 2>/dev/null
DIR=`dirname $0`
cd ${DIR}
cp lpreserver ${STAGEDIR}/bin/lpreserver
chmod 755 ${STAGEDIR}/bin/lpreserver
cp lpreserver-hos... |
1c7d122f9f1dfd71adebe32f59e2c80289a2b240 | 523 | #!/bin/sh
zip -j geoserver_build.zip docker-geoserver/Dockerfile docker-geoserver/Dockerrun.aws.json
zip geoserver_build.zip resources/
zip -j postgis_build.zip docker-postgis/Dockerfile
#zip -j postgis_build.zip docker-postgis/Dockerrun.aws.json
zip -j postgis_build.zip docker-postgis/postgres.conf
zip -j postgis_... |
008342514ebb482a7cb0f6b06276cb0f864ca7d4 | 168 | #!/bin/bash
export PATH="`pwd`/bin:$PATH"
mkdir tmp
export HOMEBREW_TEMP="`pwd`/tmp/"
brew install `cat ./installed | xargs`
brew install watch
brew link --force curl
|
818d33fadb8a666a755826c3884c9d0a6cabfc7d | 370 | #!/usr/bin/env bash
pyenv() {
if which pyenv > /dev/null; then
eval "$(command pyenv init -)"
eval "$(command pyenv init --path)"
fi
_openssl=$(brew --prefix openssl)
export CPPFLAGS="-I${_openssl}/include -I$(xcrun -show-sdk-path)/usr/include ${CPPFLAGS:-}"
export LDFLAGS="-L${_op... |
3930235c14132b03c0af0edcaa4524a2a21cbceb | 3,810 | #! /bin/sh
#
# /etc/buildmini miniroot (e.g. zd1b) distroot
#
# Used to build a distribution tape.
# Ties in with /etc/maketape.
#
if [ "$#" -eq 2 ] ;then
MINIROOT=$1
DISTROOT=$2
else
echo 'usage: buildmini miniroot (e.g. zd1b) distroot'
exit 1
fi
#
date
miniroot=/miniroot$$
/etc/umount /dev/${MINIROOT} 2>/dev/nul... |
bd6db7d4aa5dae5279b730a0313cac3b87d677e3 | 529 | #!/bin/sh
export VOLK_GENERIC=1
export GR_DONT_LOAD_PREFS=1
export srcdir=/home/zbd/Workspaces/workspace_gr_orig/gr-SYNC/python
export GR_CONF_CONTROLPORT_ON=False
export PATH=/home/zbd/Workspaces/workspace_gr_orig/gr-SYNC/build/python:$PATH
export LD_LIBRARY_PATH=/home/zbd/Workspaces/workspace_gr_orig/gr-SYNC/build/li... |
5d8a05ff7b5adfe5a3eef09cf6fed7e45fe19df2 | 95 | #!/bin/bash
echo "Hello Debian!"
/etc/init.d/ssh start
/etc/init.d/x2goserver start
sleep 6000
|
9304bdedb575c316129699805aff17a2bec8933c | 5,003 | #!/bin/bash
_defaults() {
PROFILE_FILE=/tmp/ftw.profile
MODULES=(uvcvideo videodev)
adp() {
CPUFREQ_GOVERNOR=ondemand
NMI_WATCHDOG=1
BUS_CONTROL=on
PCIE_ASPM_POLICY=default
LAPTOP_MODE=0
DIRTY_RATIO=30
DIRTY_BACKGROUND_RATIO=10
DIRTY_EXPIRE_CE... |
f1099334a9678c1fad6a835de4f02024ba5bc3de | 1,281 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PATH_SDKMAN="./Android/cmdline-tools/tools/bin"
PATH_ADB="./Android/platform-tools"
PATH_EMULATOR="./Android/emulator"
cd ~
# Download packages
sudo apt-get update
sudo apt-get install -y openjdk-8-jdk stress-ng python3-pip unzip r-b... |
4ce8e58510fc8640981d2426085aee50200d5224 | 326 | set -e
imageId=`docker commit $1`
imageId=${imageId:7:12}
extension=".tar"
directory="/tmp/"
docker save -o $directory$imageId$extension $imageId
out1=$(sh ./scripts/putftp.sh $imageId$extension $2)
out2=$(sh ./scripts/stopVM.sh $1)
out3=$(docker rmi $imageId)
rm $directory$imageId$extension
echo $imageId
echo "... |
069bc9de374f476e307b280b74a62ee0be8545a3 | 47 | #!/bin/sh
./bin/rshell < tests/multiple_Com
|
c343750c77ab54ffe27a385c97ef366ed1740318 | 1,324 | #!/bin/bash
# conda_auto_activate automatically activates a conda environment when
# enterring a folder that contains a `environment.yml` or `.venv` file.
# The `environment.yml` can exported from a existed conda env and we
# use it to create a new conda env. The first line in the `.venv` file
# is the name of the c... |
55abefd96b293f08ead0b2d495769ce4511bd3d6 | 1,142 | # Maintainer: Andrey Vihrov <andrey.vihrov at gmail.com>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: cute.tec@gmail.com
pkgname=xfwm4-git
epoch=1
pkgver=4.14pre3+6+ged87ef663
pkgrel=1
pkgdesc="Xfce window manager (git version)"
arch=('i686' 'x86_64... |
40f72dbbba4050e9d521d07323be0f9128315842 | 267 | #!/bin/bash
aws dynamodb create-table --table-name users --attribute-definitions AttributeName=email,AttributeType=S --key-schema AttributeName=email,KeyType=HASH --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 --endpoint-url http://localhost:8000
|
b0d44cc8405a6bce43db710125dba300709b57c0 | 414 | #!/bin/bash
set -ev
echo "publishing $1"
cd packages/$1
shift;
flutter packages pub publish $@
# if [ "${FLUTTER_CHANGED_PACKAGES}" = "" ] || [ $FLUTTER_CHANGED_GLOBAL -gt 0 ]; then
# echo "Running for all packages"
# pub global run flutter_plugin_tools "$@"
# else
# echo "Running only for $FLUTTER_CHANGED_PAC... |
6491f949d0db143692f09b4009b6167dbc3bf8e1 | 1,028 | # Maintainer: Jozef Riha <jose1711 at gmail dot com>
pkgname=retropong
pkgver=1.0
pkgrel=2
pkgdesc="a simple pong remake"
arch=('i686' 'x86_64')
license=('GPL2')
url="http://sourceforge.net/projects/retropong/"
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}.tar.gz" "retropong.desktop")
depends... |
f1fc615f5c081885b25459eec1ed6d181c629292 | 1,421 | # theme_config
# define the various colors used in lemonbar, dzen popups, and bspwm
#
##########################
## Colors ##
##########################
foreground="abb2bf"
background="282c34"
yellow="ebcb8b"
red="BF616A"
green="a3b38c"
blue="81a1c1"
grey1="636d83"
grey2="a0a0a0"
######################... |
81c370e5cb14bb5f38804a1c023b688717fe53c6 | 94 | #!/bin/bash
git add .
git commit -m "first commit."
git push origin master
|
e9ac89f2a5dd3f6565db969d524dd49e41fbe0fc | 4,135 | # ***************************************************************************
# run_ini
#
# @(#) $Name$ $Id$
# Copyright (c) 1993, 2001 E2 Systems Limited
# Initialise a scenario for running:
# - Create the directories
# - Create the master runout files
# - Assign the hosts
# Parameters:
# - The run identifier
#
# Sel... |
57469057f023695f2c0df723bd1f92fa6ca76dc6 | 663 | #!/bin/sh
echo "0% ---- project build cleanup"
make clean
sleep 1
echo "20% ---- cleanup cmake install files"
rm -rf */*/cmake_install.cmake */cmake_install.cmake cmake_install.cmake
rm -rf */*/install_manifest.txt */install_manifest.txt install_manifest.txt
sleep 1
echo "40% ---- cleanup cmake cache files"
rm -rf... |
21ec9e82295af62282f41ebb78228cd87d3e2794 | 41 | ../../Source/Common_Scripts/check_lsms.sh |
f86e509d08c18244c933425d884d5165d873b780 | 797 | #!/bin/bash -
#===============================================================================
#
# FILE: generatetmuxpowerline.sh
#
# USAGE: ./generatetmuxpowerline.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: YOUR NA... |
3110dd37ecbb3a0d4475025a663c1f5dcb20eedb | 106 | './shoot_forward' -d 3 -m ./data/shooting_momemta.vtk -o ./data/q1_gpu.vtk -s 2.0 -l 5000 -n 40 -i 240 0
|
5d5f71f9bbcc1495e2f076f4d11a9c28ec6010b4 | 988 | #!/bin/bash
clear
#echo "Stopping API Server ..."
#sudo systemctl stop MinnyCasinoAffiliateWebApi.service
#sudo systemctl status MinnyCasinoAffiliateWebApi.service
echo "Stopping Front-End Server ..."
sudo systemctl stop MinnyCasinoAffiliateWebPortal.service
#sudo systemctl status MinnyCasinoAffiliateWebPortal.service... |
b767ce2b88958ed41e5b8a246a172ea52adf91a2 | 78 | sh ./process_tests.sh
swipl -f songserver_tests.pl -g "run_tests." -t "halt."
|
c7edbcf36ba97b66b454ab3a922f7877d52ed94b | 1,373 | #! /usr/bin/env bash
#BSUB -J ChIP_coverage
#BSUB -o logs/chip_coverage_%J.out
#BSUB -e logs/chip_coverage_%J.err
#BSUB -R "select[mem>4] rusage[mem=4]"
#BSUB -n 1
set -u -e -x -o pipefail
# install programs if necessary (for macOSX)
# brew install meme bowtie2 samtools
# pip install macs2
# load modules if on Tes... |
9105ff5c62bb1779df191ea61633df559c7b8ecf | 316 | HOST=127.0.0.1
PORT=3333
NODE_ENV=development
APP_URL=http://${HOST}:${PORT}
CACHE_VIEWS=false
APP_KEY=hCol6tXmS6JodgDL1KSBpZYDc6TWqkPA
DB_CONNECTION=sqlite
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=
DB_DATABASE=mqtt
SESSION_DRIVER=cookie
HASH_DRIVER=bcrypt
MQTT_HOST=test.mosquitto.org
MQTT_PORT=1883 |
7bd4106147c4343821df2e740a8c82414cd955b4 | 174 | #!/bin/bash
NOW=$(date +"%Y-%m-%d")
FILENAME="sonarqube-${NOW}.sql"
docker container exec ci-sonarqube_db usr/bin/mysqldump --user=sonar --password=sonar sonar > $FILENAME
|
8bfd30fd11a12ffbb7489352f74cb6efe1d1bf2f | 906 | TERMUX_PKG_HOMEPAGE=https://lftp.tech/
TERMUX_PKG_DESCRIPTION="FTP/HTTP client and file transfer program"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.9.2
TERMUX_PKG_REVISION=6
TERMUX_PKG_SRCURL=http://lftp.yar.ru/ftp/lftp-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=a37589c61914073... |
eefc6762f7c4d3c549aa89c1bdba9f1bacfe3ba2 | 67 | #/bin/bash
screen -S timedcapture -d -m bash -c "python3 main.py"
|
b93ecd55898cd1bc38c9d43ba0d600bf98306670 | 73 | #!/bin/bash
git add -A
git commit -m "auto commit"
git push origin master |
315c76a59fd5eefb166e6a6e0d824f896045231e | 310 | #!/usr/bin/env bash
set -e -o pipefail
rm -rf dist/ngx-structurals
lerna version
ng build --prod ngx-structurals
cp README.md dist/ngx-structurals
cp LICENSE dist/ngx-structurals
cd dist/ngx-structurals && npm publish --access public --registry https://registry.npmjs.org/ ; cd -
git push
git push --tags
|
a8c44fb29771086ec43565cec31263dd3a826e83 | 327 | #!/bin/bash
# $1 must be a dir or symlink
if test $# -ne 1 || ! test -d $1; then
echo "error: argument missing or is not a dir. please view readme"
exit 1
fi
DATADIR="$1"
# pipe urls found in $DATADIR to peco where selected url will be opened in default browser
grep -ir http $DATADIR | peco | cut -d : -f 2- | xarg... |
c976ea2f53bea048017aa21827bafae7f7862ad7 | 5,360 | #!/bin/bash
# Functions in this file each print a marquee border to the buffer
#
# Calling these funcions and refreshing the screen in order will
# result in the animation
print_frame_stage1()
{
# top rule
tput cup ${top_padding_height} ${left_padding_width} >> ${buffer}
printf "* * * * * * * *... |
dc9861c9643d56807a3c70548f5f183dcbe23a39 | 452 | #!/bin/sh
#FreeDNS updater script
UPDATEURL="http://freedns.afraid.org/dynamic/update.php?VEBkTzhxMzFVMVVBQURPcFZWOEFBQUFROjc4NTE1NzA="
DOMAIN="vakxden.crabdance.com"
registered=$(nslookup $DOMAIN|tail -n2|grep A|sed s/[^0-9.]//g)
current=$(wget -q -O - http://checkip.dyndns.org|sed s/[^0-9.]//g)
[ "$current" != "$r... |
b31808019abbcd823de18cdc84dbb72a8f23db27 | 334 | #!/bin/sh
#
# Starts uds server that will take input and touch a file in the correct
# tombstone directory
#
exec \
{{ treadmill }}/bin/treadmill34 \
sproc --cgroup . \
exec -- \
{{ _alias.s6_ipcserver }} {{ dir }}/ctl/tombstone \
{{ _alias.s6_ipcserver_access }} -i ./data/access \
./data/write... |
1a6661f4499a9b044d0d15d1ba8d78c64026f086 | 4,669 | #!/bin/sh
set -e
stop() {
echo "$@" >&2
exit 1
}
### Sanity check the environment
if [ "${CIRRUS_CI}" != "true" ]; then
stop "Script is not running on Cirrus CI"
fi
# TODO: Remove this check and allow other OSes
if [ "$(uname -s)" != "FreeBSD" ]; then
stop "This script currently only supports FreeB... |
0b402d1aa3475e0e627928e2ab043483a3b2706f | 697 | RSEMHOME='/data1/utils/rsem-1.2.5'
cd ..
mkdir 7_Expression
cd 7_Expression
ln -s ../6_Assembly/Trinity.fasta.transdecoder.cds .
echo "preparing reference from predicted coding sequences..."
$RSEMHOME/rsem-prepare-reference Trinity.fasta.transdecoder.cds trinity-rsem
echo "done preparing reference"
echo "mapping re... |
c9839779d060c6bd68c37eb1410bad0f04eab249 | 188 | java -cp ".:../genclass.jar"\
-Djava.rmi.server.codebase="file:///home/valente/Desktop/test/AirLift/dir_clientSide/"\
-Djava.rmi.server.useCodebaseOnly=false\
clientSide.$1
|
060c6bd6487abe5ab22be87b9a61c721997693ac | 937 | #!/usr/bin/env bash
#
# Wraps pyenv install
# usage: . $0
#
if [[ ! $PYENV_ROOT ]]; then
echo 'You must set PYENV_ROOT in bashrc before calling' 1>&2
exit 1
fi
if [[ ! -d $PYENV_ROOT ]]; then
# works with pyenv 2+
bivio_path_insert "$PYENV_ROOT"/bin 1
bivio_path_insert "$PYENV_ROOT"/shims 1
curl... |
acfa1fa13e69113655713fc40f909589f0d4755f | 163 | #!/bin/bash
here=$PWD
root=../openocd/tcl
program=$1
cd $root
openocd -f interface/stlink-v2.cfg -f target/lpc11xx.cfg -c'gdb_port 3333;gdb_memory_map disable'
|
bce238b8b7618126fd0a252ceddb962d75db9bee | 796 | #!/bin/bash
set -o errexit
set -o nounset
main() {
if [[ -x "$(command -v opm)" ]]; then
opm version
exit 0
fi
readonly DEFAULT_RELEASE_VERSION=latest-4.12
readonly RELEASE_VERSION=${1:-$DEFAULT_RELEASE_VERSION}
readonly base_url="https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${R... |
5a818e42eb644e12a6193658d6666cca655023ec | 418 | #!/usr/bin/env nash
import klb/azure/public_ip
import klb/azure/login
resgroup = $ARGS[1]
name = $ARGS[2]
location = $ARGS[3]
allocation = "Static"
if len($ARGS) == "5" {
allocation = $ARGS[4]
}
azure_login()
azure_public_ip_create($name, $resgroup, $location, $allocation)
public_ip_address, err <= azur... |
5289e35e8446f2d2c30497c061d958fd7dad27f3 | 704 | #!/bin/sh
# ======== JVM settings =======
javaopts=" -Xms32m"
javaopts="$javaopts -Xmx64m"
javaopts="$javaopts -XX:SurvivorRatio=8"
javaopts="$javaopts -Xincgc"
javaopts="$javaopts -XX:+AggressiveOpts"
# не изменять
java_settings=" -Dfile.encoding=UTF-8"
java_settings="$java_settings -Djava.net.preferIPv4Stack=true"
... |
3b860856438da0d6218a315d25fc7501496ffa6d | 50 | #!/bin/sh -ex
## Nothing to build for hue
exit 0
|
ba123e8d9fe49a347676afc17ca6d7e9b9d7e1de | 94 | #!/bin/sh
python /vagrant/modules/benchmetrics/files/interactive/having_1_greater_0/query.py
|
3bd1404aa0bfa3bd415f497f90fcd51739b86d6f | 1,306 | #!/bin/bash
#这个脚本是用来删除多行的
#比如,清理从'<main id'到' <content> -->'所在的行
#现在这个脚本写死删除从'<main id'到' <content> -->'所在的行
#系统类型 0:mac 1:win 2linux
os=1
if [ "$(uname)" == "Darwin" ]
then
os=0
fi
filepath=$(cd "$(dirname "$0")"; pwd)
rootHtmlPath="${filepath}/Tutorial"
#TDOO文件名包含空格未处理 只处理了包看 "副本" 字眼的文件
SAVEIFS=$I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.