blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
dd999cf09352bebd8092aa8d953e4c9cd35d75b3 | 1,192 | #!/bin/bash
### before install£¬must modify the hostname and reboot the machine ###
############### attention£” #################
#######################################################################
### install ruby
groupadd puppet
useradd -g puppet -s /bin/false -M puppet
yum install -y ruby
### time ... |
64562ba82f44c18a94eae06d357f7c06bad53fd7 | 204 | #! /bin/bash
cd $(dirname $0)
common_opt="-hp_opt 0 -K 3 -alpha 0.1 -beta 0.1 -total_iteration 200 -burnin_iteration 0 -log_likelihood_interval 10"
../../lda-train $common_opt -sampler lda ../train lda
|
c6b6fc735501818193c9522e8f3e8db0959ce4ca | 758 | if [ -x "$(command -v exa)" ]; then
alias ls="exa"
alias lsa="exa --long --all --group --icons"
fi
if [ -x "$(command -v code)" ]; then
alias zshc="code ~/.zshrc"
fi
# Use this version of pip install to install from BlackRock hosted libraries
if [ -x "$(command -v pip)" ]; then
alias blkpip_install="p... |
e6fbc339fdae7e7057740cb55dae850e2893d843 | 97 | JWT_SECRET_KEY = 'benfitbackinternasdcxz'
ENV_FILE_LOCATION = '/root/documents/flask-basics/.env' |
88f7be6ec2274d6a1780a9aecebb30740a7d41a4 | 168 | How to unmodify a modified file
Using tags for version control
Using aliases for git commands
Make your log output pretty
Use `short` status to make output more compact |
6fc5f2a9cca001bf7411af3f2972fba5ea007719 | 191 | sudo ./kubeadm-init.raspi-slow.sh &
sudo kubeadm init --ignore-preflight-errors Swap --token-ttl=0 --pod-network-cidr 10.244.0.0/16 --apiserver-cert-extra-sans jjo-raspi.kube.jjo.com.ar "$@"
|
51b752223c72ef7b8f13f345cd4de8f06e5da8c6 | 66 | chombovis state_file=gm_7.state infile=chombo_plt_cnt_0001.hdf5 &
|
6b3fa6f4b98021f91fd80588f33e3bc003f2a90a | 2,186 | #!/bin/sh
# Optimized for running on Indiana University's RI Odin Cluster
# Written by Alexander Hayes | ProHealth && STARAI | Dr. Sriraam Natarajan
FINAL=ODINORDER.txt
LOG=DETERMINEORDER.txt
rm -f $FINAL
rm -f $LOG
function synchronize {
HOSTNUMBER=`hostname | grep -o -P '(?<=odin).*(?=.cs.indiana.edu)' | se... |
2ff28985d8ab8cd5e80275a7c63b40e9f6e2e6dc | 1,812 | #!/bin/bash
# 预授权完成
# 接收标准输入:
# {
# "id": "111111111110012017030100000013",
# "bank_list": "20170301145608",
# "bank_settle_time": "0301150700",
# "pre_author_code": "096207",
# ...
# }
input=$(cat -)
status=$(echo $input | jq '.status')
op=$(echo $input | jq '.op')
if [ "$status" == 1 -a "$op" ... |
4adb2a97711c6d35c6cbc5412da87fa2833d2164 | 179 | sudo apt-get update -y
sudo apt-get install python3 -y
sudo apt-get install python3-pip -y
pip3 install flask
pip3 install flask_restful
pip3 install pymongo
python3 webserver.py
|
7070fbdd8de3ccd68f611a437604a7cb6b7af50d | 879 | #!/bin/bash
input_dir=./input/
output_dir=./output/
ref_dir=./ref/
tests_nr=$(ls $input_dir | wc -w)
points_per_test=$((100/tests_nr))
make build
if [ $? -ne 0 ]; then
"Makefile failed."
else
total_points=0
for ((i=1; i<=$tests_nr; i++)); do
printf "Test $i: "
cp $input_dir/tes... |
67f19bd0f243cfc1e002c8c327eddc9c4a281568 | 90 | #!/usr/bin/env bash
git clone https://github.com/adafruit/zj-58
cd zj-58
make
./install
|
6af11bd5f222e70e722f8ffa617fdc7af51ebf18 | 1,338 | #!/usr/bin/env bash
#colors
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
reset=`tput sgr0`
echo "${green} _____ __ _____ _____"
echo "| | | | | | __|"
echo "| --| |__| | | | |"
echo "|_____|_____|_____|_____|${reset}"
echo "${yellow}Exporting path${reset}"
rversion=`ruby --vers... |
0c62092742ea164c5c351d5bb90193b5bc023909 | 45 | #!/bin/sh
cd /opt
python3 slcreader.py slcp
|
01ffdf82a52d08393ae6be80f90e4eb28c7d4e39 | 107 | python getRDF2.py <<EOF
adv_bio.pdb
n
y
EOF
cat query.rq |sparql-query "http://localhost:8000/sparql/" -p
|
0a1544fbf4cfa3fa36a721227fe17372d06f560b | 208 | Find out if the system's architecture is 32 or 64 bit
Change your `hostname` on systems using `systemd`
Commands to shutdown or restart the system
Cancel a system shutdown
Monitor System Memory using `vmstat` |
4b1cd5f0360f1b26cdd96f4c1f6fbb6eb0bc9554 | 2,348 | #!/bin/bash
# retrieve arguments
while [[ $# != 0 ]]; do
case $1 in
--)
shift
break
;;
--version)
ARG_VERSION="$2"
shift 2
;;
--download-dir)
ARG_DOWNLOAD_DIR="$2"
shift 2
;;
... |
b5518548bd90d1a571fd73e604e52bc19ff9cffb | 227 | #!/bin/bash
if [ ! -f "./Anaconda3-4.3.0-Linux-x86_64.sh" ]; then
wget https://repo.continuum.io/archive/Anaconda3-4.3.0-Linux-x86_64.sh
fi
# Let's start the sucker
./Anaconda3-4.3.0-Linux-x86_64.sh -b -p $HOME/anaconda3
|
96aa8cf0679f2f75a912f2c9525dae8b374ed791 | 556 | #!/bin/bash
curdir=`pwd` || exit 1
version=`./getversion` || exit 1
echo "version = $version"
./bootstrap || exit 1
./configure || exit 1
make -j4 distcheck ... |
dba7cca192bb22cffe0aa452d0a27a0e13a5227c | 3,855 | #! /bin/sh
show_version() {
wrL <<-.
$SCRIPT version 10.124
Copyright (c) 2008-2010 Guenther Brunthaler. All rights reserved.
Distribution is permitted under the terms of the GPLv3.
.
}
show_help() {
{
wr <<-.
$SCRIPT - create directories by cloning from a template directory
$SCRIPT takes a template direct... |
4d84bf7ee4b640c761f5aa271d1125f2e1b4308a | 245 | #!/bin/sh
set -e
# brew often partially installs stuff, so run it again and again until complete
until [ -e "/home/linuxbrew/.linuxbrew/bin/$1" ]
do
brew install "ensembl/cask/$1"
done
brew cleanup
rm -rf /home/linuxbrew/.cache/Homebrew
|
26cbc2c8279db8278417ec4e1e5dbd626cbdcdf8 | 350 | #!/usr/bin/env bash
# Configure a Nginx server so that /redirect_me is redirecting to another page.
sudo apt-get -y update
sudo apt-get -y install nginx
sudo service nginx start
sudo sed -i "30i \\\tlocation /redirect_me {\n\t\treturn 301 https://www.youtube.com/watch?v=oavMtUWDBTM;\n}" /etc/nginx/sites-available/defau... |
60f3462b66ce991720432b0744642df5100b562e | 258 | #!/bin/bash
INPFILE=$1
echo "File: $INPFILE"
echo "MD5: $(md5sum $INPFILE | cut -d" " -f1)"
echo "SHA1: $(sha1sum $INPFILE | cut -d" " -f1)"
echo "SHA256: $(sha256sum $INPFILE| cut -d" " -f1)"
echo "ssdeep: $(ssdeep -s hash.sh | tail -n1 | cut -d"," -f1)"
|
680e503bea037b3aa896e638a844284ecfe93ce6 | 224 | alias fuwu='lsof -Pni4 | grep LISTEN'
function unsetproxy() {
unset {http,https,ftp}_proxy
}
function de() {
cmd="$@"
docker-compose exec dev bash -lc "$cmd"
}
alias dr='docker run --rm -it -v `pwd`:`pwd` -w `pwd`'
|
cfcd02c9c68bdb2ec54613602b1261aa67672a0d | 274 | #!/bin/bash
cd /boot
wget http://www.frank-buss.de/raspberrypi/kernel-rpi-w1.tgz
tar -xzf kernel-rpi-w1.tgz
rm -f kernel-rpi-w1.tgz
cd /lib/modules
wget http://www.frank-buss.de/raspberrypi/modules-rpi-w1.tgz
tar -xzf modules-rpi-w1.tgz
rm -f modules-rpi-w1.tgz
sync
reboot
|
d928f92da4e4c5ce45314b366461f07dd9da1078 | 390 | # vim etc
export PATH="/usr/local/bin:$PATH"
# rbenv
eval "$(rbenv init -)"
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# Visual Studio Code (code)
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"
#.bashrcが存在すれば読み込む
if [ -f ~... |
b46daba397bdd963c7ae319c702b81daea167d1d | 43 | UID=1000
GID=1000
WP_PORT=80
PMA_PORT=8888
|
3f1165080a2b059f0ae7e5083dee4bf67e01a630 | 1,848 | #!/bin/bash
set -eu
sudo apt-get update
apt-get upgrade -y
sudo apt-get install -y --no-install-recommends \
zsh \
# for VSCode settings sync
gnome-keyring \
seahorse
# VSCode
sudo apt-get install -y wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg... |
89566f183378aa250b368d256345b7718f202d4a | 320 | #!/bin/bash
# Creates a user record for the current Cloud9 user
# Author: Matt Rudge
echo "Creating the ${C9_USER} user in MySQL"
sudo mysql -e "CREATE USER '${C9_USER}'@'%' IDENTIFIED BY '';"
echo "Granting privileges"
sudo mysql -e "GRANT ALL PRIVILEGES ON *.* TO '${C9_USER}'@'%' WITH GRANT OPTION;"
echo "Done" |
52ded3a9e54a700f8f396f5ab2d5042af846679f | 97 | export ROS_MASTER_URI=http://10.8.0.6:11311
export ROS_HOST_NAME=10.8.0.6
export ROS_IP=10.8.0.6
|
94de2510e5eadd0cddcc839ff76349788c8f89be | 1,893 | #!/usr/bin/env bash
MASON_NAME=minjur
MASON_VERSION=a2c9dc871369432c7978718834dac487c0591bd6
MASON_LIB_FILE=bin/minjur
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/mapbox/minjur/tarball/a2c9dc871369432c7978718834dac487c0591bd6 \
b24a45f64ae0b75e2fbcbb6b... |
390a949544a1c18ee7ddd2613315023a1516aca2 | 217 | #!/bin/sh
modprobe rt3070sta
ifconfig ra0 up
wpa_supplicant -B -Dwext -ira0 -c /etc/wpa_supplicant.conf -P /var/run/wpa_supplicant.pid
ifconfig ra0 192.168.0.110 netmask 255.255.255.0
route add default gw 192.168.0.1
|
30475185eb4fc124e0e6e70be6b5d0d192e37230 | 2,312 | # !/bin/sh
#parameters
binWidth=0.01
accRadius=200
voxelSize=5
trackStep=25
#output file
rs=results.tex
if [[ "$1" = "reset" ]]
then
rm -f *-def-faces.id
fi
#results
resultDir=results
if [[ ! -d "$resultDir" ]]
then
#mkdir "$resultDir"
echo "Nothing"
fi
#empty result latex file
echo -n > $rs
for log i... |
86e57e2202af15c15f31db3017263a366a6caa45 | 112 | #! /bin/bash
# FTP
./raw_service.sh vsftpd
# APACHE
./raw_service.sh apache2
# TELNET
./raw_service.sh telnetd
|
2c561a58cb249725961c4f947788078e996d3afc | 86 | #!sh
ffmpeg -framerate 1/24 -i '%03d.png' -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
|
ceee8dda0ec4b8fa4ad7c6715e5f423c2235f47b | 2,432 | #!/bin/bash
apt-get update
apt-get install --download-only -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kuberne... |
e19285a693106517bf0d122b86e7c89cc1f58a2d | 4,901 | ssh -i "Infracomp_Ubuntu.pem" ubuntu@ec2-52-15-203-191.us-east-2.compute.amazonaws.com
ssh -i "Infracomp_Cliente.pem" ubuntu@ec2-18-220-102-71.us-east-2.compute.amazonaws.com
grep -e " out " -e "Error" out_ServerSS.txt
grep -e " out " -e "Error" server_logs.txt
# ------------------------------------- Artifacts
# Up... |
4091dacb873e0172a8fd4377580404f339b48a6f | 1,120 | #!/bin/bash
#parse params
USAGE="Usage: ./inst.sh [-i] [-u]
-i install xpk and config environment
-u uninstall xpk and remove source file
[-i] option was set as default."
PACKAGENAME=wrt-common-webapp-tests
XPKNAME=${PACKAGENAME}.xpk
RESOURCE_DIR=/opt/usr/media
function installpkg(){
for xpkfile in $(ls *.xpk)
d... |
eaba2ee5fb013a85ac2f99c5a535bd78388e6794 | 1,051 | #/usr/bin/env sh
# Ruby Setup
# Mostly taken from the wonderful PuPHPet project, used under the MIT license
CACHE_FOLDER=/environment/cache
# CentOS release we're using
OS=centos
RELEASE=6
# Start of PuPHPet Ruby Setup <<<
rm -rf /usr/bin/ruby /usr/bin/gem /usr/bin/rvm /usr/local/rvm
echo 'Installing RVM and Ruby ... |
6cd2ffb3f865509b8b118d324784d868f46a02cf | 815 | # zeesh plugin controller
zeesh-plugin() {
if [ $2 ] && [[ -d ~/.zsh/plugins/$2 ]]; then
case $1 in
desc|description)
zeesh-plugin-desc $2
;;
enable)
echo ":: zeesh plugin $2 enabled"
source ~/.zsh/plugins/$2/plugin.zsh
;;
prefs)
... |
8e422393c86c689cb2c6f7e6d08f348255c08909 | 661 | #!/bin/bash -e
# Builds and tests SOCI backend Oracle at travis-ci.org
#
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
#
source ${TRAVIS_BUILD_DIR}/bin/ci/common.sh
if [ "${CXX}" == "g++" ]
then
ORACLE_USER="soci_tester"
else
ORACLE_USER="soci_tester1"
fi
cmake \
-DSOCI_TESTS=ON \
-DSOCI_ST... |
40e26140e3c43da277bae4ca2174fdf7b7c6bd56 | 1,228 | #! /usr/bin/sh
##
# Forismatic Conky
# https://github.com/numerals/forq.git
#
# Copyright (c) 2014 Sartaj Singh, Sumit Sahrawat
# Licensed under the MIT license.
##
NEW_REQUEST=
QUOTE=
AUTHOR=
help_forq()
{
echo "Usage: $0 <flag>"
echo "Valid flags:"
echo " -n : Request new quote from forismatic"
ec... |
b22b144f3e80e579f64910986e788f0887afadd5 | 2,414 | #!/bin/bash
# test deployment and service name we will use to test
appName="qnginx001"
continue_install=false;
namespace=""
unset preflight_status
print_help() {
echo "usage: ./preflight.sh [OPTIONS]
Options:
-h Prints help.
-n string namespace to use.
"
}
# accept value for namespace in c... |
93ebcee6337339f0e7a08a9d7080bd9619fb5088 | 293 | VUE_APP_APIKEY=AIzaSyBk9TVjG5eHYUbwm6e50fhQvpISSek-8Pg
VUE_APP_AUTHDOMAIN=henryfritz-30302.firebaseapp.com
VUE_APP_DATABASEURL=https://henryfritz-30302.firebaseio.com
VUE_APP_PROJECTID=henryfritz-30302
VUE_APP_STORAGEBUCKET=henryfritz-30302.appspot.com
VUE_APP_MESSAGINGSENDERID=341982203008
|
b7cb7bbaba792fd48c9cd053b415600798af3ec4 | 190 | #!/bin/sh
set -x
pandoc --toc --template=./ohnosequences.report.tex ../paper.md --smart -s --biblatex --bibliography ../refs.bib -o paper.tex
xelatex paper.tex
biber paper
xelatex paper.tex
|
b69aac9c8888b27b25f21f804066482bcd83b5b1 | 2,260 | #!/bin/bash
# It is probably redundant if you set settings mentioned in https://gist.github.com/zekefast/42273658939724ba7c7a .
# But anyway it will not hurt anybody (sure if you are not putting your production database to RAM :)).
#
# Look for more detailed description in follow articles:
# - http://blog.vergiss-blac... |
255ff2b629f844cdc5194ab79d1bd0a11a1faac2 | 1,193 | #!/bin/sh
#
# Sebastian Rockel, 2010-01-15
#
DefCSWait=6 # Seconds to wait default for c-space generation
TamsCSWait=10 # Seconds to wait for tams c-space generation
DefStageWait=2 # Seconds to wait for Stage world to come up
StagePort=6666
NavLocPort=6665
LogPort=6667
world=${1} # Get Stage world as parameter
# Chec... |
d11399c1941eaef7593a02a8bf71438f5b10a2e2 | 237 | NETEASE_PHONE= #网易云手机号
NETEASE_PASSWORD= #网易云密码
BASEURL=
APIURL=
TRACKING_ID=UA-134193110-1
ASSETPREFIX=
REDIS=1
GATEWAY_URL=
ALWAYS_HTTPS=1
NEXT_PUBLIC_SENTRY_DSN=
SENTRY_ORG=
SENTRY_PROJECT=
SENTRY_AUTH_TOKEN=
|
d658ed9e03c945b0bca5e332fdf2555823ad9245 | 238 | #!/bin/bash
arry=("a aa","b bb","c cc")
b=(db c d)
echo $b
function showArr() {
arr=$1
echo ${arr[*]}
}
echo ${arry[*]}
echo ${arry[@]}
showArr "${arry[*]}"
showArr "${arry[@]}"
showArr $*
showArr "$*"
showArr $@
showArr "$@"
|
ca219383275148572a8a4daf73e7c45512980419 | 518 | #
# zsh settings
#
# use emacs bindings
bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# history options
HISTSIZE=1000
SAVEHIST=1000
if [ ! -d $HOME/.history ]; then
mkdir $HOME/.history;
fi
HISTFILE=$HOME/.history/.zsh_history
setopt hist_ignore_space
setopt hist_ignore_all_dups
set... |
1a9294f12372831cc26d4248356922ed2ebf8600 | 600 | cd ../
cd ./WIDERFACE/eval_tools/
ROOT="/home/vijay/Documents/devmk4/eureca/eureca_face"
MATLAB=/usr/local/MATLAB/R2020b/bin/matlab
#NOISE_PARAM=( -1.000000 -0.750000 -0.500000 -0.250000 0.000000 0.250000 0.500000 0.750000 1.000000 )
NOISE_PARAM=( -1.000000 -0.750000 -0.500000 -0.250000 )
for noise in "${NOISE_PARAM[... |
f487d637bcee0b8c1bb7aef3b296be2f6ebfbce8 | 4,794 | # Maintainer: Robert Schwarz <mail@rschwarz.net>
# Contributor: Johannes Schlatow <johannes.schlatow@googlemail.com>
# Contributor: Stephan Friedrichs <deduktionstheorem@googlemail.com>
pkgname='scipoptsuite'
pkgver='3.0.0'
pkgrel=7
pkgdesc="Tools for generating and solving optimization problems. Consists of ZIMPL, So... |
de1684fd6eb23a9d63417b61392de2adaa264886 | 395 | #!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Install dependencies
sudo apt-get build-dep pygame
sudo apt-get install -y mercurial libavformat-dev libswscale-dev
mkdir -p $DIR/../tmp && cd $DIR/../tmp
# Grab source
hg clone --cwd $DIR/../tmp https://bitbucket.org/pygame/pygame
# Finally build ... |
0e73b455e8d5f73c6157b051a24daf2c9c2b40a0 | 604 | #!/usr/bin/env bash
# "unofficial" bash strict mode
# See: http://redsymbol.net/articles/unofficial-bash-strict-mode
set -o errexit # Exit when simple command fails 'set -e'
set -o errtrace # Exit on error inside any functions or subshells.
set -o nounset # Trigger error when expanding unset variables ... |
eda6b1c66c98fc40de23507d58e7b8720c3bcbe4 | 1,464 | #!/bin/bash
#First build and run project with script "runWithModulePath.sh"
echo "Required dependencies (this works with jdk 12 or latter due to mixing multi release and not multi relese jars)"
echo "Thus jdeps from java 11 is useless in this case."
#jdeps --list-deps --ignore-missing-deps --multi-release 11 --module... |
bfedfd3408b29dc56c9c88e821b89aef20ff9692 | 2,543 | #!/bin/bash
# Homebrew
if ! which brew > /dev/null; then
echo '📦 Installing Homebrew'
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi;
# zsh/ohmyzsh
echo '📦 Installing zsh'
brew install zsh
echo '📦 Installing Oh My Zsh!'
sh -c "$(curl -fsSL https://raw... |
121972039f2d9882264c050d61c2fdbe6b860e44 | 245 | ansible-playbook ansible/ec2.yml -i ansible/hosts --private-key /home/stefanini/work/workspace/kp-stefanini-cateno.pem --extra-vars '{"docker_image_name":"boot-front:0.0.1-SNAPSHOT","local_tar_name":"boot.tar","remote_tar_name":"/tmp/boot.tar"}' |
83e854aef7d693901ddf4fcb0414b117e21946d6 | 4,732 | exec > cp4s_install_logs.log
export ENTITLED_REGISTRY_PASSWORD=$1
export OCP_URL=$2
export LDAP_PASS=$3
export CLOUDCTL_TRACE=TRUE
cloudctl case save --case https://github.com/IBM/cloud-pak/raw/master/repo/case/ibm-cp-security-1.0.17.tgz --outputdir .
tar xvf ibm-cp-security-1.0.17.tgz
cat << EOF > ibm-cp-security/... |
9b08c16b3c9a0beef8edfa4a755589a809bcd7d0 | 13,261 | #!/usr/bin/env bash
#========= 18 ===========
docker run -d --net=host --name eureka --restart always --volume /home/clear/project/center/eureka/:/home/clear/program/ \
-e "EUREKA_NODE_1_HOST=10.150.18.18" -e "EUREKA_NODE_1_PORT=8761" -e "EUREKA_NODE_2_HOST=10.150.18.16" -e "EUREKA_NODE_2_PORT=8761" openjdk:v0.1 \
j... |
d0cd80d6af746e29936cd48a76b581db84891f34 | 87 | #!/bin/bash
docker push $DOCKER_REGISTRY/quickstart/java-simple-mainclass:2.0-SNAPSHOT
|
6a432b29d9437e9bfc9908e7d270ccfb75d4b9a0 | 1,619 | # Additional environment setting for debootstrap
# Add /usr/sbin and /sbin to PATH if chroot command can't be found
if ! command -v chroot >/dev/null; then
PATH="${PATH:-/usr/bin:/bin}:/usr/sbin:/sbin"
export PATH
fi
# Set a list of command substitutions needed by debootstrap
fakechroot_debootstrap_env_cmd_su... |
c088be38fda91578cacea5b13ecd0ad3c469eaa3 | 1,568 | #!/bin/bash -
#===============================================================================
#
# FILE: download-set.sh
#
# USAGE: ./download-set.sh SET-NAME
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Alexey Balchunas,... |
9f599200e7ea9611b2425f2db28773004be58bb5 | 269 | #!/bin/bash
set -e
set -u
: "${FAQ_BIN:=faq}"
export PRUNE_LABEL_KEY=${1:?}
export PRUNE_LABEL_VALUE=${2:?}
# shellcheck disable=SC2016
"$FAQ_BIN" \
-f yaml -o yaml -r -M \
'select(. != null) | .metadata.labels[$ENV.PRUNE_LABEL_KEY]=$ENV.PRUNE_LABEL_VALUE'
|
dbd7067b8fafd6254cf4ddcd12f2a408c44a06fc | 252 | #!/usr/bin/env bash
number_of_secondary_nodes=$(expr $1 - 3)
if [[ $number_of_secondary_nodes -gt 0 ]]; then
for node in $(seq 4 $(expr $1 - 1)); do
sed -i "/^#.*testbed-node-$node/s/^#//" /opt/configuration/inventory/10-custom
done
fi
|
30bcbb35e0badd13ce6900e6865d14e90ff8ce26 | 237 | #!/bin/sh
echo 'monitor-1331628357-qn2vp mailer-monitor-monitor {"labels": {"git_rev": "da161cc"}, "message": "context ended: NL/2017-09-28/digest", "origin": "EmailSentMonitor", "severity": "INFO", "timestamp": "2017-09-28T05:56:36Z"}'
|
e5ca63d51defa3500d98d714ccebe5a8530ef003 | 1,983 | #!/bin/sh
#
# Mon Nov 6 15:03:49 2017 GW Shell script run by 'oc exec' on OpenShift
# initiated by Jenkins job, which connects to the application server
# pod (gwells-nn-xxxxx which is STATUS = 'Running'):
# oc exec gwells-nnn-xxxx $VIRTUAL_ENV/src/openshift/scripts/gwells-deploy.sh
#
# This deploy is trigg... |
edde8d98d2794d517e88639ee2e14e36c377d57a | 50 | #!/bin/bash
python3 /home/pi/openoceancam/main.py
|
7f2333d26f3b4f45e0776441c1c4b8c1eaf01dc2 | 1,113 | #!/usr/bin/env bash
set -eu
# e.g. 'platform-dokku'
REPONAME=$(echo $TRAVIS_REPO_SLUG | cut -f2 -d '/')
# e.g. 'dokku'
SERVICENAME=$(echo $REPONAME | sed 's/^platform-//')
docker build -t experimentalplatform/$SERVICENAME:$TRAVIS_BRANCH .
if [ "${TRAVIS_BRANCH}" == "master" ]; then
echo -e "\n\nWe're not uploadin... |
8467c1fd24a033556957e6a1520c9d82be99def3 | 1,034 | #!/bin/bash
gen_gcov() {
gcc bugAlgo.c -fprofile-arcs -ftest-coverage -o bugAlgo
./bugAlgo $1 $2 $3 $4 $5 > bugAlgoFile.csv
bugVar=$(cat bugAlgoFile.csv)
gcc trueAlgo.c -o trueAlgo
./trueAlgo $1 $2 $3 $4 $5 > trueAlgoFile.csv
trueVar=$(cat trueAlgoFile.csv)
gcov bugAlgo.c
gcc gen_coverage.c ... |
a7983c6bfd2f3902bf453ddf59dfc17602aafb1d | 57 | #!/bin/bash
set -x
echo 1st echo
set +x
echo 2nd echo
|
46f4bd94ee95dbe8751b3e6da9bcc7e1593fcbf8 | 150 | #!/bin/sh
# My First Program
# Jajuan Burton 31 MAY 2017
#
# This Program prints hello world to standard output
PATH=/bin/echo
echo "Hello World"
|
77f558cbd01702240539275e1405200d4630c77e | 1,707 | #!/bin/bash
module load purge
module load PYTHON/3.6.3
DATA=/scratch/devel/avalenzu/Impute_Master_Project/ANALYSIS_jan2019_panel300/BEAGLE_4.0_analysis_chimp/SAMPLES_vcf/
MAP=/scratch/devel/avalenzu/Impute_Master_Project/ANALYSIS_jan2019_panel300/BEAGLE_4.1_analysis_chimp/MAP/
BIN=/scratch/devel/avalenzu/Impute_Maste... |
bf0a24a5d2cc990a40852305c189a8451d37d835 | 589 | project_name=openjpeg-libwebp
bug_id=signed-int-overflow
dir_name=$1/$project_name/$bug_id
pc=libwebp-0.3.0
pc_url=https://chromium.googlesource.com/webm/libwebp
pc_commit=v0.3.0
mkdir -p $dir_name
cd $dir_name
git clone $pc_url $pc
cd $pc
git checkout $pc_commit
#sed -i -e '206d' examples/jpegdec.c
#git add examp... |
2b53415b185dafe9eef2767d695e53ada25d9fce | 68 | . ./prep.sh
#./selfdrive/boardd/boardd.py
./selfdrive/boardd/boardd
|
40e1e948dda644722083cbb8a6d7098b8b60878f | 1,655 | #!/bin/bash
# exit on error
set -e
# this script will update the git repo and then sync a particular site to the latest version of the branch
# only applies to wp files
# get parameters
SITE=$1
BRANCH=$2
if [ "$SITE" == "" ] || [ "$BRANCH" == "" ]; then
echo "USAGE: ./site_update.sh site_name branch_name"
... |
eeb7c946686ed9fea92f96657b111852db54e917 | 6,333 | #!/bin/sh
# [SublimeLinter shellcheck-exclude:"SC2039" ]
#===============================================================================
#
# FILE: .shell.d/lib/exitcodes
#
# USAGE: (should be sourced by .shell.d/shellinit)
#
# DESCRIPTION: Standardize my exit codes.
#
# OPTIONS: ---
# REQUIREMENTS... |
c0c5a072c4e42c31621c372118859c2b7a3f31c0 | 128 | #!/usr/bin/env bash
docker build . -t sample-service
docker run -e MODE='' \
--rm -p 8080:8080 sample-service:latest |
28e6248e992e94caac321ee7e1174cf377200ac9 | 5,184 | package: autotools
version: "%(tag_basename)s"
tag: v1.6.3
source: https://github.com/alisw/autotools
prefer_system: "(?!slc5|slc6)"
prefer_system_check: |
export PATH=$PATH:$(brew --prefix gettext || true)/bin:$(brew --prefix texinfo || true)/bin;
which autoconf && which m4 && which automake && which makeinfo && w... |
05c465f7ab9b79a026b006b10ef11a450ede7e9e | 175 | curl -G "https://openapi.naver.com/v1/search/shop.json" --data-urlencode "query=닌텐도스위치" -H "X-Naver-Client-Id:CLIENT_ID" -H "X-Naver-Client-Secret:CLIENT_SECRET"
|
284066696a5e6cc3f370645685cd6107e8edec72 | 101 | #!/bin/bash
sudo service docker stop
sudo service docker-registry stop
sudo service postgresql stop
|
663ba4f19ffeb7161b11fff469c0d5ca1d01bfee | 709 | #!/bin/bash
# 指定した ID の hook の情報を見る
#
# 以下の環境変数が必要
# BOTHUB_GITHUB_TOKEN: GitHub の Token(要管理者権限).
# BOTHUB_HOOK_ID: WebHook の ID. list_webhook.sh で確認できる.
# BOTHUB_USER_NAME: https://github.com/UserName/RepoName の UserName の部分
# BOTHUB_REPO_NAME: https://github.com/UserName/RepoName の RepoName の部分
source pre_check.sh
... |
dcc58d8756fedf44d54ff54d20b377f2c41406d0 | 258 | #!/bin/bash
testUser=noSuchUser
if grep $testUser /etc/passwd
then
echo "first command"
echo "second command"
echo "I can put in other commands besides echo"
echo $testUser
ls -a /home/$testUser/.b*
else
echo "The user $testUser doesnot exit"
echo
fi
|
293d8a180b38e8fe8f577efcadd4501c0ffe8bad | 1,616 | #!/bin/bash
sudo mv /etc/pacman.conf /etc/pacman.conf.back
sudo cp arch_xfce/scripts/pacman.conf /etc/pacman.conf
sudo pacman -S haveged
sudo systemctl enable haveged
sudo systemctl start haveged
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman -Syy
sudo pacman -S lxdm xfce4-artwork xdg-utils gtk... |
bb731171e1069b8e044f00b7919eaeb31ed0b098 | 1,693 | # SUBMARINE --------------------------------------------------------------------
export user="submarine"
export home="/submarine"
export acme="$home/acme"
export etc="$home/etc"
export log="$home/log"
export run="$home/run"
export ssl="$home/ssl"
export www="$home/www"
# WP_DOMAIN ------------------------------------... |
e125ef129b8ec1344d965db996e55bbe174617f6 | 705 | #!/bin/sh
P2P_PATH=${PWD}
cp $P2P_PATH/bin/IOTDaemon $P2P_PATH/../../bin/resource/3518e200_P3_common/new_p2p_tmp -apv
chmod 777 $P2P_PATH/../../bin/resource/3518e200_P3_common/new_p2p_tmp/IOTDaemon
cp $P2P_PATH/lib/*.so $P2P_PATH/../../bin/resource/3518e200_P3_common/new_p2p_tmp/lib -apv
cp $P2P_PATH/include/p2psdk.h ... |
d96d62dac1d03dfe95c8beb083e6b7e74874108f | 4,093 | #!/bin/bash
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use ... |
57fb07f398b3351c38a143f509c6ff0e9fb775d3 | 98 |
echo "Done! Check your vimrc.local"
echo "انتهت العملية"
echo " والحمدلله"
|
6ef5d8c15186982b740789bfa6971d3a0b5dbe45 | 42 | #!/bin/sh
exec /usr/bin/redfish-events.py
|
04e6d87cb75d9778b8d329c2b7bdf02301201f16 | 395 | # !/bin/bash
#
# Script kills the running HTTP servers via python launched with http.server &
# SimpleHTTPServer using pkill
#
# Examples:
# To launch HTTP service on port 1433 in the folder /tmp:
# ./invoke_http_server.sh 1433 /tmp
echo "[*] Removing all running HTTP/HTTPS Servers running in the backgrou... |
7afa4df31199f4f9482fe337bc25a1a728be7889 | 4,459 | #! /bin/sh
LOSEFACE=../loseface
FACES=orl_patterns
SUBJECTS=40
echo "IMPORTANT! The following steps will take a lot of time (days, maybe weeks)"
echo "Patterns=\"$FACES\", Subjects=$SUBJECTS"
echo "Creating patterns..."
$LOSEFACE $FACES.lua >/dev/null
echo "Done"
echo "MLP global (25 inputs)..."
$LOSEFACE mlp_globa... |
fe8d5a44fce6b8a5880f117a8c0f0acd2cde1970 | 68 | #!/bin/bash
cd /home/user/Firmware
make posix_sitl_default gazebo
|
651684948351aa2772a7ddafcf95fc913c109557 | 1,776 | #rsync -av --exclude '.git' --exclude '.Rproj.user/' ~/default/workspace/nci60imsb augustin@helix.nih.gov:/data/augustin/rPackages/
#rsync -av --exclude '.git' --exclude '.Rproj.user/' ~/default/workspace/rcellminerElasticNet augustin@helix.nih.gov:/data/augustin/rPackages/
# BASIC SETUP
cd /Users/rajapaksevn/REPOS/
... |
6a64178bb2c0319a0bd862be01086a6ad5bcbca3 | 30 | #!/bin/bash
./minimum
echo $?
|
366ad02d7a5173c42a10c8627cdbd902dfb00e7b | 4,473 | #! /bin/sh
######################################################################
#
# GET_SNUM_HTMLPART.AJAX.CGI
# 駅ナンバー一覧部分HTML生成
# Written by Rich Mikan(richmikan@richlab.org) at 2014/09/17
#
# [入力]
# HTTP POSTで次のCGI変数を与える
# [rwletter] : 「知りたい駅」の路線文字
# DATA/SNUM2RWSN_MST.TXT …… 駅ナンバーマスターファイル
# TEMPLATE... |
ada5dcfa0722f2ea4a2a29c34b4f0c5631060fae | 54 | #!/bin bash
date=`date +%Y%m%d`
ruby getnode.rb $date
|
0296342f7e1a182a5487badea2f9e6f156dac3c3 | 132 | jmeter -n -t test-taurus.jmx -l test-taurus.jtl -Jjmeter.save.saveservice.output_format=xml -Jjmeterengine.stopfail.system.exit=true |
9a1c1140f7c1f6d9fa6d276cf7f8d956692d42ed | 3,592 | #!/bin/bash
###################################################
# #
# START CA AUTOMATIC REGISTRATION PROCESS #
# #
###################################################
set -e
if [[ "xx" == "xx$2" ]]
then
edge_co... |
d7690c60f95fbf9baa908fa3afb056d6d20becac | 233 | #!/usr/bin/env zsh
# Trim starting and trailing whitespace from a string
# Read from arg or from pipe
local input=$1
[[ -p /dev/stdin ]] && input="$(cat -)"
# Pass through awk to remove whitespace
echo $input | awk '{$1=$1;print}'
|
d8cc9a04dfb76b62fa0a969d40c2f7a7cfb9fa45 | 674 | #!/usr/bin/env bash
echo This will take a few seconds
java -jar ../namingserver/target/namingserver-0.0.1-SNAPSHOT.jar >& ../logs/namingserver.log &
sleep 2 ; echo -n .
java -jar ../configserver/target/config_server-0.0.1-SNAPSHOT.jar >& ../logs/configserver.log &
sleep 2 ; echo -n .
java -jar ../ApiGateway/target/api-... |
e13e6b344f7f960532b1498bcaf4f13444123edd | 237 | #!/bin/bash
name=trt_gen_tool
image=dev/tensorrt
docker rm -f ${name}
params=$@
nvidia-docker run -ti \
--name ${name} \
-v `pwd`/../../:/work \
${image} \
/bin/bash -c "cd /work/app/trt_gen_tool && ./run_locally.sh ${params}"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.