blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
3e93530cc15d89b25ac4c69d761315b93835ee39 | 1,319 | #!/bin/bash
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -ex
main() {
if [ -z "${KOKORO_ARTIFACTS_DIR}" ]; then
echo "This script must be run in kokoro"
exit 1
fi
lo... |
d6c265ef04c90ab847d2e178cf86b5c89ce996cf | 83,442 | #!/bin/bash
# https://github.com/leitbogioro/Tools/edit/master/Linux_reinstall/InstallNET.sh
##
## License: GPL
## It can reinstall Debian, Ubuntu, CentOS, AlmaLinux, RockyLinux, Fedora linux system with network.
## Default root password: LeitboGi0ro
## Written By MoeClub.org
## Blog: https://moeclub.org
## Modified By... |
ef7b2c5b21216694c128b8ddc8b3a9f812e437b7 | 275 | #!/bin/bash
set -e
tag=$1
cd "${TRAVIS_BUILD_DIR}"
export TRAVIS_BUILD_RELEASE_TAG="${tag}"
release-manager \
--config "./.travis/release.yml" \
--check-version \
--make-version \
--make-artifact \
--upload-artifact
echo "DEPLOY: igluctl deployed..."
|
1818dc983a56f63d6842d0c01114cdd7bb551f63 | 42 | #!/bin/bash
clear
echo " Hello world !"
|
01b4f2a62bcabc7b26eb03dd514a30d78234daa9 | 1,837 | #!/bin/bash
set -x
set -e
SCRIPT_DIR=${PWD}
REPO=${TMPDIR:? set TMPDIR}/test-hg-repo-status
rm -rf ${TMPDIR:? set TMPDIR}/test-hg-repo-status
mkdir ${REPO}
hg init ${REPO}
cd ${REPO}
hg status
mkdir Folder1
mkdir Folder1/Folder1.1
mkdir Folder2
cat <<EOF >.hgignore
syntax: glob
*.pyc
*~
.bash_history
.director... |
9763abebf6bc065b89454f93387cec3e3afac68d | 3,011 | #!/usr/bin/env bash
# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
11b3231935e0fded00808b4cfa145e6b2baba83c | 31 | #!/bin/bash
exec L assist "$@"
|
78d35157466a9d11fb214195426409982a45c313 | 52 | module load R
R --vanilla < ICC94.r > out_ICC94.txt
|
f3a4250dd0dbecfda995538d3c21945298822c97 | 6,072 | e========================================
"pxy" ./dev/config/environments/env_qa.sh
ZAMA_GPXY_PHYS_HOSTS=("10.65.48.31" "10.65.48.32" "10.65.48.115")
ZAMA_GPXY_VIRT_HOSTS=(${ZAMA_GPXY_PHYS_HOSTS[@]})
ZAMA_APXY_PHYS_HOSTS=(${ZAMA_GPXY_PHYS_HOSTS[@]})
ZAMA_APXY_VIRT_HOSTS=("10.65.48.143" "10.65.48.148" "10.65.48... |
dd9ba528a6be7bea33759b725225dfe460ab4bf1 | 58 | NODE_ENV=development
MONGODB_URI=
TELEGRAM_ACCESS_TOKEN=
|
cca393b0d5fdd14d4e30f2c424cf2c38941ff9d0 | 327 | APP_URL = http://localhost:3333
NODE_ENV= development
#Auth
APP_SECRET=bootcampgobarbernode
# DataBase
DB_HOST=
DB_USER=
DB_PASS=
DB_NAME=
# Mongo
MONGO_URL=
# REDIS
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
# Mail
MAIL_HOST=
MAIL_PORT=
MAIL_SECURE=
MAIL_AUTH_USER=
MAIL_AUTH_PASS=
# Sen... |
b6b2f95fbbc1bae183172a370df8a3913754d26b | 84 | MYSQL_HOST=localhost
MYSQL_USER=root
MYSQL_PASSWORD=root1234
MYSQL_DATABASE=chulodb
|
c4b1f35be434bec9b3af7d051084f060628d3684 | 4,304 | #!/bin/bash
#
# By default snapshots are stored under the path this script is being run from.
# If you'd rather use an asbolute path, uncomment and edit the variable below.
#
#CASSANDRA_IO_HOME="$HOME/.cassandra-io"
CASSANDRA_CONF="$1"
check_exit_status() {
if [ "$1" != "0" ] ; then
echo "Process exited ... |
2a1bff2845229b495fbdce82966913b53538fc39 | 318 | #!/bin/bash
#Install For Zeppelin Dependencies
sudo apt-get -y install git openjdk-7-jdk npm libfontconfig
sudo ln -s /usr/bin/nodejs /usr/bin/node
#Download Zeppelin
wget http://apache.cs.utah.edu/zeppelin/zeppelin-0.6.0/zeppelin-0.6.0-bin-all.tgz
tar -xvzf zeppelin-0.6.0-bin-all.tgz
rm zeppelin-0.6.0-bin-all.tgz
|
0369625ab9fc24396e268e435e5b29794edd1cd2 | 119 | #!/bin/sh
cd /usr/local/Influent/influent-dashboard-backend
zip -q -r deploy/dashboard-backend.zip index.js parse.js
|
65c57537e26edc1746e6806f36c0fab36208856d | 236 | #Chapter 5 Command
#i want to change the directory to the boot
cd /boot
#show what is in the directory
ls
#change the directory to grub
cd grub
#show all in the grub
ls
#i want to show the contain of the grub in less
less grub.cfg
|
0a28307bea8d645fe279b4fbea19c65b9c317197 | 1,195 | #!/bin/bash
#
# git-sync-origin
#
# local $alexei_znamensky, '<', 'russoz [AT] CPAN DOT ORG'
#
# This script will automate some steps for a developer working on a forked
# git repository:
#
# 1. Pull (and merge) changes from origin into master
# 2. Push the master branch (with the changes) into origin
#
# There... |
011be48318f55795a58629eb40c22051f2c11020 | 328 | #!/bin/sh
#Build
mvn clean package
# create the plugins folder
rm -rf plugins
mkdir plugins
# copy artifacts to plugins folder
cp pf4j-web-demo-csv-plugin/target/*.zip plugins/
cp pf4j-web-demo-json-plugin/target/*.zip plugins/
cp pf4j-web-demo-xml-plugin/target/*.zip plugins/
cd pf4j-web-demo-app
mvn clean jetty:ru... |
63658cd058c8d7be2b21ef578465053191f6dc01 | 94 | #!/usr/bin/env bash
feh --recursive --randomize --bg-fill ~/Picture/Image/PC-16X9/Acceptable
|
92726f1705b245a3cccd79a8d99d7b2bff4eedd7 | 248 | #!/bin/bash
epochs=5000
python cv_boundaries.py iter_0_unbiased/mb_traj.dat \
iter_0_unbiased/iter_0_convnet_${epochs}.pkl \
--imgprefix iter_0_unbiased/iter_0_${epochs} --dataprefix iter_0_unbiased/iter_0_${epochs}
python generate_next_iter.py
|
e56adc01f5f47ec9931d7028e70d122ba6b89b1f | 2,313 | #!/usr/bin/env bash
# cfn-test-create-inputs.sh
#
# This tool generates json files in the inputs/ for `cfn test`.
#
set -o errexit
set -o nounset
set -o pipefail
set -x
function usage {
echo "usage:$0 <project_name>"
echo "Creates a new project and an Cluster for testing"
}
if [ "$#" -ne 2 ]; then usage; fi
if [[ ... |
cec0987ff9b6e6343226972d66ab9499b82f37f1 | 677 | #!/bin/sh
# PROVIDE: rbldnsd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable rbldnsd:
#
# rbldnsd_enable="YES"
#
# See rbldnsd(8) for flags.
#
. /etc/rc.subr
name=rbldnsd
rcvar=rbldnsd_enable
load_rc_config $name
rbldnsd_enable=${rbldnsd_enable:-"NO"}
rb... |
c65196e1c4f9d9dea54b3f2d1f00532ba4e93691 | 154 | if [ $# -eq 0 ]
then
echo "command line arguments are missing"
exit 1
fi
n=$1
i=0
while [ $i -lt ${#n} ]; do echo ${n:$i:1}; i=$((i+1));done
|
ff49b413535bdb9070d52a8eeeda7449950bca1e | 125 | #!/bin/sh
dirname=`dirname $0`
cd $dirname
./daily_run.sh 2014-02-07
./daily_run.sh 2014-02-08
./daily_run.sh 2014-02-09
|
1524d75beedd82cd6274ec68e39aa9bd9eeb3185 | 153 | #!/bin/sh
set -e
wget https://github.com/shirou/mqttcli/releases/download/0.0.3/mqttcli_linux_amd64 -O "$HOME/bin/mqttcli"
chmod +x "$HOME/bin/mqttcli"
|
8a2e4d712108d7794d849de183f8f309a7094ad1 | 319 | # Run this script to remove folders and files produced from PyPI build and pytest.
# Returns the project folder to a pre-build state.
echo "Remove PyPI build folders and files..."
rm -rf build/
rm -rf dist/
rm -rf mytestpackage.egg-info/
echo "Remove pytest cache folder..."
rm -rf .cache/
echo "Cleanup complete."
|
89ae7637eb0122aedbc31a2d1b6dfc4fee363198 | 17 | echo "I am v653"
|
805f38862e078aca6d51bc96db1c095706f85b27 | 81 | #!/bin/bash
CITY=${1:-seattle}
curl -s "http://gametonight.in/$CITY/json" | jq
|
5aa7ee8fc21b85428677bb252b55eaab11d616ff | 219 | URL=http://people.eecs.berkeley.edu/~tinghuiz/projects/SfMLearner/models/kitti_model_5frame.tar
OUTPUT_FILE=./models/kitti_model_5frame.tar
wget -N $URL -O $OUTPUT_FILE
tar -xvf $OUTPUT_FILE -C ./models/
rm $OUTPUT_FILE |
d6c68f9bb2448b7068d59be14df96c0d14c8c140 | 1,558 | #!/bin/bash
plistPath="${BUILD_REPOSITORY_LOCALPATH}/src/MuGet.Forms.iOS/Info.plist"
appCsPath="${BUILD_REPOSITORY_LOCALPATH}/src/MuGet.Forms.UI/App.xaml.cs"
buildNumber=$APPCENTER_BUILD_ID
buildOffset=$BUILD_ID_OFFSET
buildShortVersion="$VERSION_NAME"
# exit if a command fails
set -e
if [ ! -f $plistPath ] ; then
... |
65623b5fd2cd29c840a94d85ed99da5768bcb3a8 | 4,803 | #!/bin/bash
########################################################################################################
# Pipeline1: 蛋白分析流程头部,包括质谱原始数据读取、筛选、分析和绘图,简称P1
# Version: v2.6
# Date: 2019/12/30
# New:
# Usage: RUNP1
##################################################################################################... |
944f51f84a77fbf7bf2d59b123fb20e63840f13f | 171 | #!/bin/bash
path="$(dirname "$0")"
cd $path/aurum-datadiscovery
echo $'\n'Create model in pickle format $'\n'
python networkbuildercoordinator.py --opath test/testmodel/ |
e917e52af5c7c5c50048b6b800414e576a65c6a1 | 340 | #!/usr/bin/env bash
. ./java-path.sh
./stop-twitter-espana-input-endpoint.sh
nohup java -cp bin/fsn-input-endpoints-1.0-SNAPSHOT-jar-with-dependencies.jar com.fs.fsnews.input.endpoints.FsnInputTwitterEndpointMain -configDir=espana &> log/fsn-twitter-espana-input-endpoint.nohup.out&
tail -f log/fsn-twitter-espana-input-... |
640bdb15c9ab8cd9bb1e042a763e71b637d86b8a | 614 |
CC_SRC=github.com/chaincode
CHANNEL_NAME=mychannel
CHANNEL_TX_LOCATION=/var/hyperledger/config/mychannel.tx
CC_NAME="fabcar"
CC_SRC="github.com/chaincode"
CC_VERSION="1.0"
ORG1_ANCHOR_TX=/var/hyperledger/config/ORG1MSPanchors_${CHANNEL_NAME}.tx
ORG2_ANCHOR_TX=/var/hyperledger/config/ORG2MSPanchors_${CHANNEL_NAME}.tx... |
e7b0208a80831bec13fedf34a79f6b8fba379749 | 33 | #!/usr/local/bin/bash
`rm *pyc`
|
2c5a19141cc0c657d8cfb605c6e10ece7130d83c | 323 | #!/bin/bash -l
#SBATCH
#SBATCH --partition=shared
#SBATCH --nodes=1
#SBATCH --mem=40G
#SBATCH --time=44:00:00
#SBATCH --ntasks-per-node=8
d=/scratch/users/blangme2@jhu.edu/git/recount-pump
python ${d}/src/cluster.py run \
--ini-base ${d}/projects/srav1/creds \
--cluster-ini ~/.recount/cluster-shared.ini \
... |
71de1c20be7450627066d0dfc8a5db6bd6b94789 | 69 | #!/bin/bash
cd /usr/share/crosswordpuzzle
python crosswordpuzzle.py
|
2ad1d46c87b3b12afc70f8a4b50dc7783a9be582 | 1,051 | #!/bin/bash
export PYTHONPATH=${BUILDER_TOP_DIR}/Editor/PyQtBEmacs:${BUILDER_TOP_DIR}/Editor/exe-pybemacs
case "${BUILDER_CFG_PLATFORM}" in
Linux-Fedora)
export BEMACS_EMACS_LIBRARY=${BUILDER_TOP_DIR}/Kits/Linux/RPM/ROOT/usr/local/bemacs8/lib/bemacs
;;
Linux-Debian)
export BEMACS_EMACS_LIBRARY=${BUILDER_TO... |
08ed809f69a57ba187134f299a6aacdfd820f3bd | 2,996 | ###
### Gnome configuration
###
gnome_how_to="
List installed schemas:
> gsettings list-schemas
Explore gsettings paths:
> dconf list /org/gnome/terminal/legacy/
"
# https://unix.stackexchange.com/a/297660
# We need to define both a schema and a path:
# ```
# GSETTINGS_SCHEMA=org.gnome.Terminal.Legacy.Keybindings
# ... |
fde50d5b4be7c9fec41de570588025acb4289ea3 | 935 | #!/bin/bash
# Download torrent file and check if it already exists
filterName=$1
Category=$2
TrackerShort=$3
TorrentName=$4
TorrentUrl=$5
echo "$filterName $Category $TrackerShort $TorrentName $TorrentUrl" \
>> "/home/user/download.log"
file="/autotorrent/$Category/$TorrentName-$TrackerShort.torrent"
wget $Torre... |
7309cf3a084455e08e3ae0ce0c4c02bb4ba5acbe | 102 | #!/usr/bin/env bashio
CONFIG_FILE="$(bashio::config 'config_file')"
broadlink-bridge "${CONFIG_FILE}"
|
386a4bef3bdd02d37537d72b1ee85999bbd63aeb | 168 | #!/bin/bash
# Alec Greenaway
# Script to download offline html version of supplied url
if [[ $# -eq 0 ]]
then
echo "Need to supply a URL"
exit 1
fi
wget -p -k $1
|
471f5e333a058fbce55f0cb4cc87867da6d2992d | 242 | #!/usr/bin/env bash
cd backend && \
./vendor/bin/sail build && \
./vendor/bin/sail up -d && \
./vendor/bin/sail composer install --no-interaction --prefer-dist --optimize-autoloader
cd ../frontend && docker-compose up -d
echo "\nDone\n" |
d6d801bdf65fa806f52223aab103a658034edaf3 | 61 | #!/usr/bin/env bash
./vendor/bin/phpunit --verbose --tap $@
|
dd67676a4ae2debc074093406a255ce6aa82af4b | 529 | #!/bin/bash
[ $# -lt 1 ] && exit 1
map_putters=()
while IFS='' read -r line || [[ -n "$line" ]]; do
stat_name="$line"
class_name=$(echo $line | sed 's/ /_/g' | sed 's/\.//g')
map_putter=$(echo "numericalClassesMap.put(\"$stat_name\",${class_name}.class);")
map_putters=(${map_putters[@]} $map_putter)
# e... |
160df9dd69a54a7e0df99e05769d8974070f53e5 | 303 | #! /usr/bin/env dash
# watch for events and ACT
fifo=$TMP/bait.fifo;
# wm bait -f => get fifo and quit
[ "$1" = "-f" ] && {
printf '%s\n' $fifo;
exit $SUCCESS;
}
[ -p $fifo ] && rm $fifo;
mkfifo $fifo;
wew -s > $fifo &
printf '%s\n' $!
while IFS=: read ev wid; do
$HKS/$ev $wid;
done < $fifo;
|
9307261bb357f9364747ae949050e923e489dc9e | 264 | #!/bin/bash
# sudo ./mount-folders.sh (run in ansible host)
# should be configure in vmware shared folders with the same name in command: .host:/{name}
vmhgfs-fuse .host:/deploy $HOME/deploy/ -o allow_other
vmhgfs-fuse .host:/ansible $HOME/ansible/ -o allow_other
|
2bf979d8f116182c6780f82fe73353840b1c3344 | 257 | #!/bin/bash
log_path=$1
tty_path=`ls /dev/serial/by-id/usb-FTDI_FT231X_USB_UART_*`
nohup ~/scripts/cc2538dk/contiki-serialdump -b115200 $tty_path | ~/scripts/cc2538dk/contiki-timestamp > $log_path & > /dev/null 2> /dev/null
sleep 1
ps | grep "$! "
exit $?
|
0890f7e3bfab0b317477b3c69d7c9e2c05f56ef3 | 234 |
echo
echo "export QPIPELINE_HOME=`pwd`"
echo "export PATH=\$PATH:\${QPIPELINE_HOME}:\${QPIPELINE_HOME}/scripts:\${QPIPELINE_HOME}/external_tools/samtools/samtools-0.1.18:\${QPIPELINE_HOME}/external_tools/tabix/tabix-0.2.5"
echo
|
15e880ad6ad1453772cdd8d31612be2300c6d9ef | 1,554 | #!/bin/bash
#
#SBATCH --job-name=notebook
#SBATCH --output=/PATH/TO/NOTEBOOK/logs/slurm-notebook-%j.o.out
#SBATCH --error=/PATH/TO/NOTEBOOK/logs/slurm-notebook-%j.e.out
#
#SBATCH --ntasks=1
#
#SBATCH --nodes=1
#SBATCH --cpus-per-task=4
#### SBATCH --exclude=nodo[01-12]
##### #$ -S /bin/bash
##### #$ -N notebook
####... |
8730ba7f81f94f7df42d9db5ee4bfc1c56f6381f | 80 | #!/bin/bash
mkdir elasticsearch
chmod 777 -R elasticsearch
docker-compose up -d
|
65ebbdb6126da686c966046e3527cc31d6f37cf4 | 24 | #!/bin/bash
java Main 3
|
55b0b4ae775834c780a444ebf32dc5c44ee3f4b8 | 62 | POSTGRES_USER=postgres
POSTGRES_PASSWORD=local
POSTGRES_DB=cfs |
1848ba746abd7bf4fbca606d4e4070038596eaf5 | 2,416 | # Updates editor information when the keymap changes.
function zle-keymap-select() {
# update keymap variable for the prompt
VI_KEYMAP=$KEYMAP
zle reset-prompt
zle -R
}
zle -N zle-keymap-select
function vi-accept-line() {
VI_KEYMAP=main
zle accept-line
}
zle -N vi-accept-line
bindkey -v
# use custom ... |
6972353dc244c5d54d972dd5ec0b347604596897 | 2,130 | #!/bin/bash
#
#
USAGE="\
usage: $0 ENI_ID EIP_NAME_TAG
ENI_ID ENI ID to create the new private IP for and attach an EIP to
EIP_NAME_TAG Name tag to give the EIP"
eniid=$1
eipname=$2
[ -z "$eniid" -o -z "$eipname" ] && { echo "$USAGE"; exit 1; }
if [ -n "$eniid" -a -n "$eipname" ]; then
echo "adding ... |
3446aac1cda24c5c1c2c176710b65eaf2d120e8a | 3,589 | #!/bin/sh
tcp_service_ports="22 80 443"
udp_service_ports=""
out_tcp_ports="22 25 53 80 443 465 587 993 9418"
out_udp_ports="53 123"
allow_ftp=false
# define nat IP address
nat_ip=
ipfw -f flush
ipfw -f table all flush
table=0
if [ -r /etc/ipfw.own_networks ]; then
for ip in $(cat /etc/ipfw.own_networks); do
i... |
d0c0a4b649ef13e499b911da5c056309760f691a | 80 | sudo microk8s.kubectl apply -f k8s-nginx-dep-svc.yml
curl http://10.1.162.130:80 |
325b2e25a901762841ddf5827960095a485edaca | 214 | # original unit 10 minutes
declare -i day_of_year
day_of_year=1+6*24*12*30
awk '!/#/ {$1= $1/(6 * 24 * 30);} 1' $1.dat > $1.month.dat
head -n $day_of_year $1.dat | awk '!/#/ {$1= $1/(6 * 24);} 1' > $1.day.dat
|
3311774a210ba5b89a573ac19570899dc7650dac | 100 | #!/bin/sh
erl $@ -pa $PWD/ebin $PWD/deps/*/ebin $PWD/test \
-eval "application:start(eovsdb)."
|
b80b7b93ea3a3a1259bf17de7ad3df69079978f9 | 1,589 | #!/bin/bash
set -e
function usage() {
echo "Required environment variables:"
echo " AWS_ACCESS_KEY_ID"
echo " AWS_SECRET_ACCESS_KEY"
echo " AWS_ENDPOINT_URL"
echo " AWS_BUCKET"
echo " AWS_PREFIX"
echo "Optional environment variables:"
echo " MONGODB_HOST default mongodb"
echo " MONGODB_U... |
e626fc6927b3e7eff472cc1471c79da3b99df2d7 | 183 | ps aux | grep '[t]inycache.test' | awk '{print $2}' | xargs kill
rm nohup.out
nohup go test -run ^TestServer0$ &
nohup go test -run ^TestServer1$ &
nohup go test -run ^TestServer2$ & |
d159162d5bf33f51f37cd9dcf1c691906fbde611 | 1,373 | #!/bin/sh
scripts=/data/liushun/starbase3/scripts
baseDir=/data/liushun/starbase3/miRpredict/
bedDir=/data/liushun/starbase3/degradome/chow/integration/bed
logDir=$scripts/bash/miRother/log
#circRNA,lncRNA,pseudogene,sncRNA
$scripts/miRmRNAwithDegradome.py -cpu 30 -input $baseDir/lncRNA/align/mm10_cons_strict_site_sb... |
0e3af460560394a0774a4eb79adb262a0d852d4f | 241 | #! /bin/bash
yacc pascal.y
#yacc -d pascal.y
flex pascal.l
gcc -c lex.yy.c
gcc -c y.tab.c
gcc -c utils.c
gcc -c symtab.c
gcc -c assembler.c
gcc -c main.c
gcc -o compiler main.o lex.yy.o y.tab.o utils.o symtab.o assembler.o -lfl
./clean.sh
|
2095146917dace69518530dca71a2b5910b5ae04 | 1,504 | #!/bin/bash
# Log commands to stdout
set -o xtrace
# Exit on error
set -o errexit
# Exit on use of unset variables
set -o nounset
# Exit and report on pipe failure
set -o pipefail
export PWD=$(pwd)
rm -rf ${PWD}/data/db
mkdir -p ${PWD}/data/db/dump
cp -R ${PWD}/data/dump/ ${PWD}/data/db/dump
step=0
# Get major versi... |
7dc62063e24f5fccd5d021fe02df3cae558247f7 | 430 | #!/bin/bash
# Copyright (C) 2015 Verizon. All rights reserved.
# Run the checkpatch.pl script against all the (A)dded and (M)odified
# .c and .h files in the current repo.
gittop=$(git rev-parse --show-toplevel)
checkparse=$gittop/tools/scripts/checkpatch.pl
git status -s -uno | sed 's/^.. //' | egrep '\.c$|\.h$|... |
0d0e4d3c1f3352b16cfd516b21d6e48139382a84 | 82 | #!/bin/sh
ip addr | grep 'inet ' | awk '{print $2}' | grep -v 127.0.0.1 | grep .
|
98415901df28e044750add1472da8e80d17b2ac4 | 86 | #!/bin/sh
# Usage: script/console
set -e
bundle exec pry -r ./streaming_stats.rb $@
|
f94f03803f482f93a91a26f1e427adc011956bb5 | 38 | #!/bin/bash
awk -f ./brackets.awk $1
|
4bc241c4edb138ebcad89a413b690737d82fea79 | 40 | export PATH=$PWD/trash/jvectorbin:$PATH
|
766afa06ff9980dc9df46ad22c8c4ae7712d9b0f | 9,275 | #!/bin/bash
. bash_helper_functions
report_failure ()
{
echo " **** failed to complete **** "
exit 1
}
htmlify_python_file ()
{
pygmentize -f html -O full,style=vs $1 > $1.html
}
add_links_between_example_programs()
{
EXT=$3
# Get the list of example program filenames
pushd $1 > /dev/null
... |
baa731a996b1e55ac7f293ff214734d1b4780299 | 423 | #!/bin/bash
# this script should setup correctly the 4 nodes for experiments
echo "set AP"
ssh -F ssh_config w37 "/home/wireless/nodes/ap/init_ap.sh"
echo "set sta1"
ssh -F ssh_config w39 "/home/wireless/nodes/station/init_station.sh"
echo "set sta2"
ssh -F ssh_config w34 "/home/wireless/nodes/station/init_stat... |
0442183abd0d888672d84bb1171bb6a788271780 | 275 | #!/bin/bash
rm -f geoserver/lib/jetty-6.1.8.jar
rm -f geoserver/lib/jetty-util-6.1.8.jar
rm -f geoserver/lib/servlet-api-2.5.jar
rm -f geoserver/lib/servlet-api-2.5-6.1.8.jar
rm -f geoserver/webapps/geoserver/WEB-INF/gwc-*
rm -f geoserver/webapps/geoserver/WEB-INF/web-gwc-*
|
5355d9d5689ea02ef0b12c5af02657155ef1cf1b | 999 | #!/bin/bash
# Author: ChrisB
# Purpose: Installs application files to '.local' folders.
# Note: Probably won't work on systems that don't use .local for storing application data
#
APP_NAME="openprocon"
LOCAL_BIN=".local/bin"
LOCAL_SHARE=".local/share"
EXEC_NAME="openprocon"
EXEC_PARENT_DIR="build"
EXEC_ORIG_PATH=$E... |
0cc47c8238c31d793932dc8f4c2da04e2e8e31d6 | 36 | /Users/ketch/.zprezto/runcoms/zlogin |
507f317db8a0cc2a123976a9e8af19cbcc43051f | 7,422 | # Path to your oh-my-zsh configuration.
#ZSH=/Users/whlin/Documents/rc/zshrc/oh-my-zsh
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="yen3"
ZSH_THEME="whlin"
# ... |
133bdb8a2cb69cd9c7c12baa30dab1fdee26ae5f | 1,967 | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ... |
9c4ffbc4530fca34182165fb1e85d728a1434ab3 | 96 | #!/system/bin/sh
#
# Reboot to BootMenu
echo "1" > "/data/.bootmenu"
sync
/system/bin/reboot
|
c3fc856f6a6b790ca4d889ad1b2e3ac260816152 | 643 | # export PS1="v@incx\W@\t $ "
export NVM_DIR=~/.nvm
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
source $(brew --prefix nvm)/nvm.sh
export GOPATH=~/workspace
export PATH=~/tools/apache-maven-3.5.4/bin:$JAVA_HOME/bin:~/tools/kafka_2.11-2.0.0/bin:~/tools/apache-jmeter-5.0/bin:$GOPATH/... |
2240db880994cecf864bf44472e75bca8215e47b | 273 | #!/bin/bash
option=$1 $2
if [ "$option" == "" ]; then
option=-obst
fi
#dem2fds=dem2fds
dem2fds=../intel_linux_64/dem2fds_linux_64
terraindir=~/terrain
$dem2fds $option -geom -dir $terraindir/gatlinburg test1.in
$dem2fds $option -dir $terraindir/gatlinburg test2.in
|
f984b799f714748079018b61224bf57308576855 | 156 | # Check for an interactive session
[ -z "$PS1" ] && return
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="qiao"
plugins=(archlinux git python)
source $ZSH/oh-my-zsh.sh
|
88388ce0ea9c9c56d7e1982d04d0a7e201bf7cd2 | 495 | #!/usr/bin/env bash
sudo apt update
sudo apt install --no-install-recommends -y \
iw \
bluez \
bluez-tools \
bluetooth \
rfkill
# iw - cli tool for configuration and information about wireless devices (should be installed by default)
# bluez - bluetooth tools and daemons
# bluez-tools - cli tools to manage... |
e33e7de14ff61a4b7269381798b304b6ff59382f | 454 | #!/bin/bash
cd /app
get_command() {
sed -n -e "s/^$1://p" Procfile
}
MODE=${1:aio}
if [ "$MERGIFYENGINE_INTEGRATION_ID" ]; then
case ${MODE} in
web|worker) exec $(get_command $1);;
aio) exec honcho start;;
*) echo "usage: $0 (web|worker|aio)";;
esac
elif [ "$MERGIFYENGINE_INSTALLER" ]; then... |
9df3870637a6035c129b65d2842d3ed92fc236a8 | 853 | #!/bin/bash
echo "Please enter ETH name: e.g. eth0"
read ETH
echo "Please enter DST_IP address: e.g. 192.168.188.133"
read DSTIP
echo "Please enter SRC_IP address: e.g. 192.168.188.136"
read SRCIP
echo "Please enter SRC_MAC address: e.g. 0x00,0x0C,0x29,0x7E,0xB1,0x35"
read SMAC
echo "Please enter DST_MAC address: e... |
bad6f2fd30485c400af70764d1f17e59258753fd | 509 | #!/bin/sh
#Set the path of the PiZeroCombined file
modulesource="/home/pi/recovery/pi-kitchen/020-usb-device-module/module/PiZeroCombined.tar.gz"
modulefolder=PiZeroCombined
#Extract the module to tmp directory
tar xvzfC $modulesource /tmp/
#Copy the boot partition files to /boot
sudo cp -R /tmp/PiZeroCombined/fat32/... |
2c3de6403b2f36cd120e2c7fd85c20f6f3bb3cce | 474 | #! /bin/bash
rm -r dist-server > /dev/null
mkdir dist-server
rm -r temp > /dev/null
cp -r src/ temp
# code generators
node --experimental-modules \
./temp/common/generators/gen__MessageTypes_mjs.mjs
node --experimental-modules \
./temp/common/generators/gen__messageTypeToStringType_mjs.mjs
node --experimental-m... |
338bf0d4c2889623385d7671749ea648ce78f4a8 | 2,110 | #!/bin/sh
# Social Tables docker DNS configurator for OSX - updates dnsmask's configuration
# to point the specified hostname at the specified docker machine's IP address
# help blob
show_help() {
echo "Usage: update-docker-machine-dns [ -h hostname ] [ -m machine name ] [ -d (daemon mode) ]"
}
# optparse dump to g... |
fd4e38adca0f8386c6ae48f7f0efe7f91a40ce52 | 161 | #!/bin/bash
if which git > /dev/null; then
echo "Found git installation"
else
echo "git installation"
apt-get install -y -qq git git-doc git-man gitk
fi
|
0e55bf1381158f2a5c2d1da5a2fc5891e296d83c | 3,714 | #!/bin/bash
#THIS script is used for collect the memory usage for sep_bitmap, rle_bitmap, and exp_bitmap programs
source /home/xzou2/alac_fastbit_comp/alac_multi_engine/script/env_setting.sh
LOG_BASE=/home/xzou2/alac_fastbit_comp/alac_multi_engine/script/exp_results/mem_trace/wah_s3d/
SEL=1 #5 selectivities
COMMAND=... |
15fcf78d72bf7f1c87f4fa6369b7a33bb06a3366 | 2,168 | #!/bin/bash
if [[ $EUID -ne 0 ]];
then
exec sudo /bin/bash "$0" "$@"
fi
vercomp () {
if [[ $1 == $2 ]]
then
return 0
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty fields in ver1 with zeros
for ((i=${#ver1[@]}; i<${#ver2[@]}; i++))
do
ver1[i]=0
done
... |
af9e5fd3d85f6ca6af437a6cf81b7d39b9d9801f | 4,101 | cd /opt/
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz"
tar xzf jdk-8u181-linux-x64.tar.gz
tar xzf jdk-8u201-... |
11265fd8a6495269fc98a741cc81de87b54ddc44 | 454 | #!/bin/bash
nombrefichero=fichero.html
#command -v wget >/dev/null 2>&1 || { echo >&2 "wget requerido y no instalado."; exit 1; }
if ! command -v wget &> /dev/null
then
echo "wget requerido y no instalado."
exit
fi
wget --output-document=$nombrefichero -q https://lemoncode.net/
palabra='Lemoncode'
if [ "$#" ... |
a2278c62088aa08275ff26e5f51a1f0afa6aaa0a | 135 | BLACKFIRE_CLIENT_ID=
BLACKFIRE_CLIENT_TOKEN=
BLACKFIRE_SERVER_ID=
BLACKFIRE_SERVER_TOKEN=
CONTAINER_REGISTRY_BASE=quay.io/api-platform
|
d5c4df9696404c4b5417a03c3c158082a004fa9e | 2,795 | #! /bin/bash
#### Apple OS X setup script
#
# Create the gtk2 libraries and applications for building xictools
# with gtk2 support.
#
# See README at the top of the xictools source tree for info.
# Procedure:
# Go to macports.org and download the installer source file. This will
# have a name like "Macports-2.7.1.t... |
b1c217bdf28b0c81a9ce3755a25e22328a7ab7f6 | 1,376 | #!/bin/bash
set -e
rm -rfv "${BASH_HOME}/.conan/data/exqudens-cpp-test-lib/"
rm -rfv "./build/"
PROCESSOR_ARCHITECTURE="x86" \
INCLUDE="${MSVC_INCLUDE}" \
LIBPATH="${MSVC_X86_LIBPATH}" \
LIB="${MSVC_X86_LIB}" \
PATH="${MSVC_X86_BASH_CLPATH}:${MSVC_X86_BASH_RCPATH}:${PATH}" \
"./cmake-export.sh" "cmd-windows-ninja-ms... |
e0eae48da2dd19eaa72aa999b3329e83f976c7b8 | 642 | ####################################
# for development only
# run mysql server on port 3306
# username: root
# password 3306
#
# run phpmyadmin at http://localhost:7000/
####################################
#!/bin/bash
# Create network
docker network create bookmark-network
# Create mysql container
docker run -d --... |
701a10435006c69886d8d4b885feafbc50dc80f1 | 501 | maintainer="nox"
pkgname="perl-IO-CaptureOutput"
version=1.1105
revision=2
short_desc="Capture STOUT/ERR from perl code"
depends="perl"
makedepends="perl"
hostmakedepends="perl"
homepage="https://metacpan.org/release/IO-CaptureOutput"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
distfiles="$CPAN_SITE/IO/${pkgname#*-}-... |
5e195001e0355711f5127e385b5fe0a278acdad7 | 1,078 | pkgname=prebuild-svn
pkgver=324
pkgrel=1
pkgdesc="A cross-platform XML-driven pre-build tool which allows developers to easily generate project files for major IDE's and .NET development tools (svn)"
arch=(any)
url="http://mono-project.com/Prebuild"
license=("BSD")
depends=(mono)
makedepends=(mono subversion)
conflicts... |
5da35491c31711e93ee24fb5d1911f0f68e7be05 | 77 | #!/bin/sh
# Build the code and output to dist
coffee -o dist -c src/*.coffee |
088aa308bbce112be00a2dbc40816bd059793a72 | 62 | #!/bin/bash
set -x
find . -type f -exec sed -i "s/$1/g" {} \;
|
8a5cd7fc486579f78236040134eb9cd9e3c73d2c | 2,024 | #!/usr/bin/env bash
# shellcheck disable=SC1090
# shellcheck disable=SC1091
TOOLBOX_DEPS_DIR=${TOOLBOX_DEPS_DIR:-toolbox/deps}
# Includes
. "${TOOLBOX_DEPS_DIR}/toolbox-utils/includes/init.sh"
. "${TOOLBOX_DEPS_DIR}/toolbox-utils/includes/util.sh"
. "${TOOLBOX_DEPS_DIR}/toolbox-utils/includes/log.sh"
. "${TOOLBOX_DE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.