blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
362eaad0b5e4584b594faae549e4c837d65d6fb5 | 248 | #!/bin/bash
set -ex
cd `dirname $0`
docker build -t ocrnyc/intotheokavango .
docker push ocrnyc/intotheokavango
rm -rf nginx/static
cp -r static nginx/
docker build -t ocrnyc/intotheokavango-nginx ./nginx
docker push ocrnyc/intotheokavango-nginx
|
340d2458b6409a911d857d3160b531ea872d07c8 | 930 | #!/usr/bin/env bash
# Set working directory to PBS directory
cd "${HOME}"
#
# Launch Xfce Window Manager and Panel
#
(
unset XDG_RUNTIME_DIR
export SEND_256_COLORS_TO_REMOTE=1
export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
... |
58821c20fac6a2b2b3a6871c534ae4b3e1ba02ce | 366 | #!/bin/bash
curl https://ftp-master.debian.org/keys/archive-key-8.asc | gpg --dearmor > /tmp/debian-archive-key-8.gpg
sudo install -o root -g root -m 644 /tmp/debian-archive-key-8.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb http://ftp.be.debian.org/debian/ buster main contrib non-free" > /etc/apt/sources.list.d/... |
e757f55068c44f3937cbc2240207989a915e4b45 | 2,429 | #!/bin/sh
settings_gplusplus() {
CXX="g++"
CXXOUT="-o "
CXXFLAGS="-g "
LDD="g++"
LDOUT="-o "
LDFLAGS=
LIBS=
LDSUF=
}
debug_settings_gplusplus() {
CXXFLAGS="-g"
LDFLAGS="-g"
}
settings_msvc() {
CXX="cl"
CXXOUT="/Fo"
CXXFLAGS="/nologo /EHsc"
LDD="link"
LDOUT=... |
15aa212ea8b6c9491fd1e1ad8ce90b91c02b6e14 | 511 | #!/bin/bash
#
g++ -c -g -I/$HOME/include calpak_prb.cpp >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling calpak_prb.cpp"
exit
fi
rm compiler.txt
#
g++ calpak_prb.o /$HOME/libcpp/$ARCH/calpak.o -lm
if [ $? -ne 0 ]; then
echo "Errors linking and loading calpak_prb.o."
exit
fi
#
rm calpak_prb.o
#
mv a.... |
35c3f9db6e178ce950f234215530bc4487c7c68f | 433 | #!/bin/bash
#PBS -l nodes=1:ppn=1,pmem=8gb,pvmem=8gb
#PBS -l walltime=03:00:00
#PBS -N lst_mask
#PBS -o /users/c/f/cfusting/job_logs
#PBS -e /users/c/f/cfusting/job_logs
#PBS -q shortq
export PYTHONPATH=$HOME/gp_mecl:$HOME/arctic-browning
cd ~/modis_data/lst_8day_1km
find `pwd` -name "*hdf" > hdfs.list
python ~/arctic-... |
0278f0d4ae9c3c313e8339f6e2d08ff2b6301e46 | 311 | filename=$1
clusters=$2
iterations=$3
outputfile=$4
$SPARK_HOME/bin/spark-submit --class edu.indiana.ise.spidal.kmeans.ExpKMeans --master local[1] target/scala-2.11/sparkmlibbenchmark_2.11-1.0.jar /home/vibhatha/ds/data/kmeans/${filename} ${clusters} ${iterations} /home/vibhatha/ds/kmeans/output/${outputfile}
|
4c59e60fc3c5c460c417b268d51873f42364d79a | 121 | How to unmodify a modified file
You can use git offline!
The three states in git
Limiting log output by time
Dates in git |
34cc79ce630cf7ab2145f1f1108d0c2b67f51ed7 | 205 | #!/bin/bash
KERNEL_DIR="$HOME/workspace/linux/torvalds-linux"
trap '[ "$temp" ] && rm -f "$temp"' 0
temp=$(mktemp)
cat > "$temp"
"$KERNEL_DIR/scripts/checkpatch.pl" --color=always "$@" "$temp" | less -R
|
7bb72e71c2d10a050ad355b83942287819b0492f | 134 | NODE_ENV=production
JWT_SECRET=eb28135ebcfc17578f96d4d65b6c7871f2c803be4180c165061d5c2db621c51b
DB=mongodb://localhost:27017/moviesdb
|
12453259dcfa2cc65cc58a70311e0fdfb126bd45 | 59 | DATABASE_TEST="postgresql://student/bookmark_manager_test"
|
430890ed46d2f2cad0cfb3daf50b739cb610c22d | 100 | BASE_URL=http://localhost
PORT=8000
DB_HOST=localhost
DB_USERNAME=root
DB_PASSWORD=
DB_NAME=antrih
|
2aa0a8ebced9a137b96d7cc5338c3187c3753e6f | 267 | #!/bin/bash
os=$1
if [ ! -f ../../bin/${os}/listlus ];then
../../app/listlus/build.sh $os
fi
cd ../../bin/${os}
args=("/" "/bin" "/usr")
for arg in "${args[@]}";do
echo "testing with '${arg}'"
ls -l $arg
./listlus -plugin plugins/michael.so -arg $arg
done |
c4f95091187953a5b5fe4f416efe12d4ca995c21 | 10,532 | #!/bin/sh
# Copyright (C) 2011 The CyanogenMod Project
#
# 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 applicable l... |
5785f0acb929511ee1b63ddfb4040241064d1a34 | 60 | #!/bin/sh
./kareludp-server 1000 - foto.png firmware.bin
|
69b406f1f25e49ce23c1be86315b58fb477f8aa3 | 167 | Adding a remote repository
Using tags for version control
What is stored in a commit?
Check the status of your files
Remote repositories: viewing, editing and deleting |
6ec6b63249ee5375f37d68def45a8d4bf7887c60 | 553 | #!/bin/bash
if [ ! -d "env" ]; then
read -p "Virtual Environment not created, do you want to create it (y/n)?: " follow
if [ "$follow" == "y" ]
then
pip3 install virtualenv
virtualenv -p python3 env
source env/bin/activate
echo "Installing python libraries..."
pip3 ins... |
9e8d2c0047b32b0645bb00e0ad2db251c7d05cc8 | 122 | for i in {1..9}
do
cat tests.tp1.ej3/00$i.in | ./main
done
for i in {10..39}
do
cat tests.tp1.ej3/0$i.in | ./main
done
|
63f95c31e9573855ec3637c5f711ce78d0c6b8e4 | 963 | #!/bin/sh
if [ $# -lt 1 -o "$1" = '-h' ]; then
echo 'Usage: createFileCatalogFromCollection.sh \'
echo ' <collection name> \'
echo ' [collection type (DEFAULT: "ExplicitROOT")] \'
echo ' [collection database connection (DEFAULT: "")] \'
echo ' [catalog name (DEFAULT: "xmlcat... |
7a02b4ab4cfe727fc267bbafb8fb89a1e97d154a | 99 | #!/bin/bash
# run the app locally, it should be available at: http://localhost:5000
foreman start
|
50a16a1edc39ce2ac251a458e07decc994cfb402 | 1,398 | #!/usr/bin/env bash
# This script serves as the wkhtmltopdf install step
# based on geodjango buildpack
# [**GeoDjango Buildpack**](https://github.com/dulaccc/heroku-buildpack-geodjango)
# compiler.
#
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Hero... |
fe19d9fdf7d77b195062509194603d708eed0125 | 738 | #!/usr/bin/env bash
# This script should be run after a new round of translations
# Directory where this script lives
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Find all non-default strings files
function find_files {
find . -path "*/src/main/res/values-*" -type f -name "string*.xml"
}
# Move loca... |
705148868045a7dd29c7905135adbf020f27f9f4 | 556 | #!/bin/bash
set -e
if [[ "$TRAVIS_PYTHON_VERSION" == 2* ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
bash miniconda.sh -b -p $HOME/miniconda
chown -R $USER... |
3c3c465ffc79731b51a62915ef1a2822ee6a67ea | 118 | docker stop football
docker rm football
docker run -d \
--name football \
-p 8082:8080 \
robertbrem/football:0.0.1 |
cc31599da2d5bf492cb43b39692c3e21e715c06e | 40 | #!/bin/sh
celery worker -I indexdns -E
|
4ef6600491a9d0d05063b122a231770a6a6dae57 | 9,289 | termux_create_pacman_subpackages() {
# Sub packages:
if [ "$TERMUX_PKG_NO_STATICSPLIT" = "false" ] && [[ -n $(shopt -s globstar; shopt -s nullglob; echo lib/**/*.a) ]]; then
# Add virtual -static sub package if there are include files:
local _STATIC_SUBPACKAGE_FILE=$TERMUX_PKG_TMPDIR/${TERMUX_PKG_NAME}-static.sub... |
6ab3e4e3547146bd11eb17f9197bf7c863f87a4e | 1,596 | #!/bin/sh
if [ "$#" -ne 8 ]; then
echo "Usage: $0 <DST_DB_HOST> <DST_DB_USER> <DST_DB_NAME> <DST_DB_PWD> <SRC_DB_HOST> <SRC_DB_USER> <SRC_DB_NAME> <SRC_DB_PWD>" >&2
exit 1
fi
RND=$(dd if=/dev/urandom bs=100 count=1 2> /dev/null | (md5sum 2> /dev/null) | cut -f1 -d" ")
FIFO="/tmp/dbprogress-$RND"
DST_DB_HOST=$1
D... |
4b88e07c710981d41bf1cbfa83717c8bc2ffd68b | 120 | #!/bin/sh
for i in {1..7}; do
echo "============= REBOOTING NODE turingpi0$i ============="
ssh tp$i sudo reboot
done |
33269353b813177010e6fa56266aba3e5de4f5f7 | 1,678 | #!/usr/bin/bash
outpath=/home/cgd24/work/dbn_shapes/training_beds
## TSS.
cat /usr/projects/GROseq.parser/tss_detecter/andre_hmm/hg19.k562.new_hmm2b.post2.bed | sort-bed - | bedops --merge - > $outpath/grocaptss.bed
## Gaps.
## ChIP-seq for poly-A cleavage enzymes, etc.!?
## Intersect
## Poly-adenylation sites -... |
3d0455e29b3365626d0a61d7e5eb7f1f88c36dd6 | 377 | RMQ_URL=amqp://guest:guest@localhost:5672/ecommerce
ES_URL=http://localhost:9200
TYPEORM_CONNECTION=mysql
TYPEORM_HOST=localhost
TYPEORM_USERNAME=root
TYPEORM_PASSWORD=docker
TYPEORM_DATABASE=ecommerce_products
TYPEORM_PORT=3306
TYPEORM_ENTITIES=dist/**/*.entity.js
TYPEORM_MIGRATIONS=dist/shared/database/migrations/*... |
6a7d656f4b6a7db5d727da8fba3c94bcd8cac585 | 1,852 | #! /bin/sh
//usr/bin/env rustc --test $0 -o ${0}x && ./${0}x --nocapture; rm -f ${0}x ; exit
use std::collections::HashMap;
#[test]
fn test_ex1() {
assert_eq!(
farey(5),
vec![
[0, 1],
[1, 5],
[1, 4],
[1, 3],
[2, 5],
[1, 2],
... |
b276d19dc9067aa141700d5045778d9fb3cffb62 | 626 | #!/usr/bin/env bash
set -e
INTERFACE="en0"
function mac_add_delta() {
local mac="0x${1//\:/}"
local delta="$2"
local new_mac="$(printf "%x" $((mac + delta)))" # no 0x
echo "${new_mac:0:2}:${new_mac:2:2}:${new_mac:4:2}:${new_mac:6:2}:${new_mac:8:2}:${new_mac:10:2}"
}
if [[ $1 == "-d" ]]; then
... |
eba57e6dbe9ff470baa382a9d3ec2b5152593e42 | 197 | #!/bin/sh
set -e
# apt-get variables
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
export DEBIAN_FRONTEND=noninteractive
# refresh packages
apt-get -y update
# install ruby
apt-get -y install ruby
|
9d0f93d7684f307d1ebd5e3e5b1901f969fd024f | 415 | #!/bin/sh
# PUSH(window_id = current, tag)
# push a window into an invisible stack
set -e
cache_dir=/tmp/xdostack
[ ! -d $cache_dir ] && mkdir $cache_dir
wid=`[ -z $1 ] && bspc query -N -n || echo $1`
tag=${2:-misc}
stack_file=$cache_dir/$tag/stack
newpath=$([ -d $cache_dir/$tag ] &&
head -c -1 -q $stack_file ||... |
ad6cf021494100225d0e7ba3b3cb68a0427f8f90 | 178 | #!/bin/bash
# Ask for the administrator password upfront
sudo -v
# Set system preferences
source defaults/system_prefs.sh
# Set dock Applications
source defaults/dock_apps.sh
|
30c270cf20f700a1cb7d05f9f63db565864f34b8 | 3,789 | #!/bin/bash
# Copyright 2023 The FastEstimator Authors. All Rights Reserved.
#
# 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 req... |
36d017720a44130fd2196bc5ada7900526bff893 | 585 | #!/usr/bin/env bash
echo "kicking USB..."
export USBPATH=$(lsusb | grep -i 'Future Technology Devices' | cut -d' ' -f 2,4 | cut -d':' -f 1 | sed 's/ /\//')
echo "/opt/kegiot/bin/usbreset /dev/bus/usb/$USBPATH"
/opt/kegiot/bin/usbreset /dev/bus/usb/$USBPATH
code=$?
if [ $code == 0 ]; then
echo "success: restarting se... |
aa26ccb32129c60535344f34b072fd885f98665f | 847 | #!/bin/bash
BIGTOP_DEFAULTS_DIR=${BIGTOP_DEFAULTS_DIR-/etc/default}
[ -n "${BIGTOP_DEFAULTS_DIR}" -a -r ${BIGTOP_DEFAULTS_DIR}/hbase ] && . ${BIGTOP_DEFAULTS_DIR}/hbase
# Autodetect JAVA_HOME if not defined
if [ -e /usr/libexec/bigtop-detect-javahome ]; then
. /usr/libexec/bigtop-detect-javahome
elif [ -e /usr/lib/... |
fdf785b2bd7ce01ca257dbd46374f00ecee9fdf0 | 1,063 | #!/bin/bash
AUTHOR_NAME="$(git log -1 $TRAVIS_COMMIT --pretty="%aN")"
FILENAME=Margarita-debug-$(date +"%Y%m%d-%H:%M").apk
COMMIT=$(git log -1 $TRAVIS_COMMIT --pretty="%h")
MSG="Build [#${TRAVIS_BUILD_NUMBER}](https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}) ([${COMMIT}](https://github.com/${TRAVIS_... |
faf2930654f60e3bc75fd7337c6e6e0c261f7d92 | 266 | #!/bin/bash
RESULT_FILENAME=$2
touch ${RESULT_FILENAME}.csv
docker run --env-file migration-scripts/azure_test2.env --env RESULT_FILENAME=${RESULT_FILENAME} -v ${PWD}/${RESULT_FILENAME}.csv:/tmp/${RESULT_FILENAME}.csv -e TENANT_ID=$1 -e CREATE_TENANT=$3 move_tenant
|
2d3c20d9a1af252c8eaa58c9710f38b9f7e37cbf | 133 | #!/bin/bash
title=`exec playerctl metadata xesam:title`
artist=`exec playerctl metadata xesam:artist`
( echo "$title - $artist" ) &
|
cc82856d9de236dcffde510eef0db8880d7eb92d | 432 | path_to_hyrise=../hyrise
number_of_cores=4;
number_of_instances=4;
hyrise_port=5000;
path_to_dispatcher=$(pwd)
cd $path_to_hyrise
for ((id=0;id<$number_of_instances;id++))
do
$path_to_hyrise/build/hyrise-server_debug -l $path_to_hyrise/build/log.properties -p $(($hyrise_port + $id)) --corecount $number_of_cores -... |
8990226e8fbc17662f3b9e5dcb0e1e1a23df35d0 | 1,647 | #!/bin/sh
python train.py --kfold 0 --model rf
python train.py --kfold 1 --model rf
python train.py --kfold 2 --model rf
python train.py --kfold 3 --model rf
python train.py --kfold 4 --model rf
python train.py --kfold 0 --model decision_tree_gini
python train.py --kfold 1 --model decision_tree_gini
python train.py ... |
28c98ae99fb1bb960ac744a4d0e74379ff1f0e8f | 292 | #
# Configuration file for using the XML library in GNOME applications
#
XML2_LIBDIR="-L/home/yanzi/.android_lib/lib"
XML2_LIBS="-lxml2 -lz -L/home/yanzi/.android_lib/lib -llzma -liconv -lm -lc"
XML2_INCLUDEDIR="-I/home/yanzi/.android_lib/include/libxml2"
MODULE_VERSION="xml2-2.9.8"
|
4d60e48b3ec34beb69148f9dedfe8e1a613b07bc | 128 | version https://git-lfs.github.com/spec/v1
oid sha256:bede6120a646eb1d3cd6faecf105d734846e13e74a2ff294cc46004650cc391a
size 906
|
60c2a03929c0b0374b7086612278f655b6542d34 | 423 | #!/bin/bash
# Create blazegraph user
addgroup -S -g $BLAZEGRAPH_GID blazegraph
adduser -S -s /bin/false -G blazegraph -u $BLAZEGRAPH_UID blazegraph
# Make sure permissions are good
chown -R blazegraph:blazegraph "$JETTY_BASE"
chown -R blazegraph:blazegraph "$TMPDIR"
su-exec blazegraph:blazegraph java $JAVA_OPTS -Dco... |
d63a9f6f242bc5bbfac753ee87ced979becefb8e | 1,588 | #!/bin/bash
docker-compose up -d
#init conf for flink
cp ./flink/flink-conf.yaml "$FLINK_HOME/../conf/flink-conf.yaml"
sleep 3
#start flink and kafka cluster
sh $FLINK_HOME/start-cluster.sh
#create topics
sudo docker exec -it kafka ./kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor... |
a3c7bcd0d3fc354adcded50d8004acde0ea4940f | 345 | #! /usr/bin/env bash
kubectl apply -f postgresql.yml
kubectl apply -f nginx.yml
kubectl annotate --overwrite deployment postgresql-deployment user=3
kubectl annotate --overwrite deployment nginx-deployment user=1
pushd .. > /dev/null
python3 setup.py install -f
popd > /dev/null
psql postgres < foreign_ddl.sql
psql ... |
36159362e0904bc3725da73004b7e5e5ee50ea7b | 139 | <environment>
<ambient value="0 0 0 0" />
<lights>
<light color="25 10 10 0" dir="1 -2" shadow-length="40" />
</lights>
</environment> |
7c48e20bd13ff26f8130dcd08f25d2ea45ea20d7 | 1,358 | #!/bin/sh
#
# Script para rodar observium em ambiente simples, de maneira rapida
#
_abort(){ echo; echo $@; echo; exit 1; }
# Variaveis
IMAGE=nuva-smokeping
NAME=$IMAGE
LOOPBACK=100.127.255.81
UUID=$(uuid -1)
# Apagar container atual
[ "$1" = "restart" ] && {
echo "Limpando..."
docker stop $NAME 2>/dev/null... |
aa86b44afc00f8ce0ae3f0568b22b2e26c5769de | 2,585 | #!/bin/zsh
export ZSH=$HOME/.oh-my-zsh
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export EDITOR=/usr/local/bin/emacsclient
export ALTERNATE_EDITOR=vim
export PYTHONSTARTUP=~/.pythonstartup
export FIGNORE=".egg-info:.pyc:.pyo:.mo"
export GEVER_CACHE_TEST_DB=true
export PIPENV_VENV_IN_PROJECT=1
export PYENV_ROO... |
696dd60ea5eb875525e85debf8921ecbf753cded | 112 | #!/bin/bash
set -e
apt-get update
apt-get install --no-install-recommends --no-install-suggests -y \
g++-4.8
|
1b0959e068c3f27bc8ecd866af020a0d442081b9 | 410 | #!/bin/bash
echo GetName
curl -XGET localhost:4567/person/name
echo SetName To CNLHC
curl -XPOST localhost:4567/person/name\?name=CNLHC
echo GetName
curl -XGET localhost:4567/person/name
echo GetAge
curl -XGET localhost:4567/person/age
echo SetAge to 37
curl -XPOST localhost:4567/person/age\?age=37
echo GetAge
curl ... |
9cb331fc48d2eca9ca2eab69e6019605caecfcf7 | 1,008 | #!/bin/bash
#$ -cwd -V
#$ -pe smp 20
#$ -l h_vmem=120G
#$ -e ~/log/
#$ -o ~/log
source ~/.bash_profile
cuffdiff -v -p 20 -o ./Cuffdiff --max-bundle-frags 10000000 -L NOF,OA,HCH,MSCBM,HOB ../merged.gtf \
Flowcell_A_2_NOF_filtered_noXY.cxb,Flowcell_A_5_NOF_filtered_noXY.cxb,Flowcell_A_7_NOF_filtered_noXY.cxb,\
... |
0fd5f21adec4114f9732337abb1391a2a2f36b7f | 171 | #!/bin/sh
scriptDir="/git-backup/scripts"
outDir="/git-backup/data"
cd $scriptDir
./Export-repo.sh $scriptDir/repo-branch-config.txt $outDir > /tmp/Export-repo.log 2>&1
|
fb6836f3b507f5743a73be559a9d4b9d6e830257 | 1,332 | # **************************************************************************** #
# #
# ::: :::::::: #
# start.sh :+: :+: :+: ... |
793c997f967d2152ac94eeeac7bbc2690147a6d8 | 65 | #!/bin/bash
gcc back_17_10.c -lm
./a.out < case_step17_10_1.txt
|
37177a194d60bea1f28f49ca6e0534fc680aee1c | 3,689 | #!/bin/bash
#bash script to reconfigure some stuff for cloned ubuntu vm's
#tested and known to work on Ubuntu-server 20.04
#======================================================
#Created by ThePCGeek https://github.com/ChrisThePCGeek
#======================================================
#these are constants for th... |
5d3435dff830a4f3268709e4df48c7f9f7fa5297 | 43 | ssh halonen3@lyta.aalto.fi -t screen -d -r
|
39e2032d6d9c1941607587f1e5040b7fd9923e6b | 167 | #!/bin/bash
echo "export PATH=/home/$USER/.usr-settings/bin:$PATH;" >> /home/$USER/.bashrc;
echo "
====== \$PATH ~/home/$USER/.usr-settings/bin/ added =======
";
|
3b547ce1bb5a7fe9e660d97f092515f1b3389fcd | 2,505 | TERMUX_PKG_HOMEPAGE=https://github.com/kcleal/gw
TERMUX_PKG_DESCRIPTION="A browser for genomic sequencing data (.bam/.cram format)"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="clealk@cardiff.ac.uk"
TERMUX_PKG_VERSION=0.8.2
TERMUX_PKG_SRCURL=https://github.com/kcleal/gw/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_P... |
5c7556f74541465b0d25f213d7ec0006df41fc44 | 908 | #!/bin/bash
cmd_e () {
command -v $1 >/dev/null 2>&1 || exit 1;
}
install () {
if cmd_e $1 ; then
echo "[sudo install] $1 already installed"
else
brew install -y $1
fi
}
DOCFILES_ROOT="../dotfiles"
#https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/
install ... |
1aa0ee615bf22f4a6cee3b100faab66ce97d2b10 | 1,075 | #!/bin/bash
#source clean.sh
MCSAMPLE="$HOME/MLproductions/MLDmesonsproductionsEventBased/LHC18a4a2_fast_run282343/AnalysisResultsDmesonsMC.root"
MCSAMPLEOUT="$HOME/MLproductions/MLDmesonsproductionsEventBased/LHC18a4a2_fast_run282343/AnalysisResultsDmesonsMC_skimmed.root"
DATASAMPLE="$HOME/MLproductions/MLDmesonsprod... |
b29279fa30caf87720de3b42527a6b1881be7343 | 715 | #!/bin/bash
# generate all required ssltraces for evaluation
coder_test_dirs="test/coder test/examples"
semantic_test_dirs="$coder_test_dirs test/semantic"
parser_test_dirs="$semantic_test_dirs test/parser"
scanner_test_dirs="$parser_test_dirs test/scanner"
for test_case in $(./test/find_test_cases.sh $scanner_test_d... |
96a818d5c4e27318b51930f815a9a02e96c959f1 | 328 | date
python3 ummap_mri_dicom_unzip.py \
--mri_path /nfs/psych-bhampstelab/RAW_nopreprocess \
--subfolder_regex "^(hlp|bmh)17umm\d{5}_\d{5}$" \
--verbose \
1>log/$(date +"%Y-%m-%d_%H-%M-%S").log \
2>err/$(date +"%Y-%m-%d_%H-%H-%S").er... |
b8585dfbab5a9a7fd0d92f9e985af5947f309b52 | 1,123 | #!/bin/bash -x
v1=$(((RANDOM%899)+100))
v2=$(((RANDOM%899)+100))
v3=$(((RANDOM%899)+100))
v4=$(((RANDOM%899)+100))
v5=$(((RANDOM%899)+100))
if [ $v1 -gt $v2 ] && [ $v1 -gt $v3 ] && [ $v1 -gt $v4 ] && [ $v1 -gt $v5 ]
then
echo $v1 is maximun value
elif [ $v2 -gt $v1 ] && [ $v2 -gt $v3 ] && [ $v2 -gt $v4 ] && [ $v2 -g... |
56985f84bb5ca8258318387ed1c1e0270b1f1378 | 1,606 | #!/bin/bash
apt update
apt install net-tools
# haproxy
apt install libssl-dev
# make TARGET=generic USE_OPENSSL=1
# use uname to determine right package
aptitude install -y linux-headers-$(uname -r)
aptitude install -y expect
# System applications
aptitude install -y i3 i3lock i3status xclip
aptitude install -y vim... |
86b20ac30d9cef44c838a238f3a901f650edbfb8 | 542 | #!/bin/bash -e
[ -n "$DOCKER_COMMON" ] && return || readonly DOCKER_COMMON=1
SCRIPTPATH=$(dirname ${BASH_SOURCE[0]})
pushd $SCRIPTPATH > /dev/null
. common
require_command "docker"
function docker_build {
local target=$1
info "building docker image: '$target'"
docker build -t=$target . && success "built docker ... |
d84ed66356e5beae0c9bf4c7fd45a1022b3da638 | 626 | #!/bin/bash
set -e
sed -i.bak -e "s|usetheme\[.*\]|usetheme\[bannertitle,blue\]|g" main.tex
latexmk -C
latexmk -xelatex
cp main.pdf build/main-bannertitle-blue.pdf
sed -i.bak -e "s|usetheme\[.*\]|usetheme\[bannertitle,red\]|g" main.tex
latexmk -C
latexmk -xelatex
cp main.pdf build/main-bannertitle-red.pdf
sed -i.ba... |
1b6581d3ded346273e6f591c78f5244844307c82 | 784 | #!/bin/bash
if [ "$1" == "--help" ]; then
echo -e "USAGE:\n$0 [env_name]\n"
else
if [ -f "/usr/local/bin/virtualenvwrapper.sh" ]; then
source /usr/local/bin/virtualenvwrapper.sh
else
source ~/.local/bin/virtualenvwrapper.sh
fi
folder_name=${PWD##*/}
if [ ! -z $1 ]; then
env_name=$1
else
echo "Using def... |
e3218fcb735a0953107576ca06190e90eb5aa16a | 103 | DATABASE_NAME=
DATABASE_PASSWORD=
DATABASE_PORT=
DATABASE_URL=
DATABASE_USERNAME=
JWT_SECRET=
NODE_ENV= |
99cfa8d266089c553e66af9c02592eb0c6d7cb89 | 2,645 | #!/bin/bash
echo -e "\n script per creare contenuti cifrati DASH-enabled usando shaka-packager. Prende in ingresso la durata di ogni segmento ed il nome del file mp4 da segmentare e cifrare."
# NOME_VIDEO_EXTENDED=$1
SEGMENT_DURATION=$1
for i in $( ls /shaka_packager/media/mp4); do
#rimuovo l'estensione dal file..
N... |
5146ac20a0231367515ab50ef60a6703eb15a3e8 | 704 | #! /bin/bash
i=1
while [[ "$i" -lt 10 ]]
do
let "square=i*i"
echo "$square"
let "i++"
done
for ((i=1;i<=9;i++))
do
for ((j=1;j<=i;j++))
do
let "product=i*j"
printf "$i*$j=$product"
if [[ "$product" -gt 9 ]]
then
printf " "
else
printf " "
fi
if [[ "$j" -eq 5 ]]
... |
3c3410c3f59ed2b333efc9b4e25755c5193df211 | 818 | #! /system/bin/sh
echo "=======[ PowerCat ]======"
name=$1
activity=$2
ipAddr="192.168.2.67"
port=8010
pid=
buffer_size=1048576
echo "Start the ${name} Benchmark"
if [ -n "$activity" ]; then
echo "Android program is starting"
am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n ${name}/.$... |
e0c05a85dbf7074d7327153400afde3d623da483 | 2,046 | #!/bin/bash
##Licensed to the Apache Software Foundation (ASF) under one
##or more contributor license agreements. See the NOTICE file
##distributed with this work for additional information
##regarding copyright ownership. The ASF licenses this file
##to you under the Apache License, Version 2.0 (the
##"License"); ... |
0fe3d4a40d4efb71badc3abb13a7c1a4020f8caf | 138 | RET=$(ifconfig | grep '\<inet\>' | cut -d ' ' -f2 | grep -v 127)
a=${?}
if [ ${a} -ne 0 ]; then echo "Je suis perdu!"; else echo $RET; fi
|
04fb9df585153265af98022323915a886e685508 | 604 | #!/bin/bash
#
# requires:
# bash
#
set -e
set -o pipefail
declare chroot_dir=$1
chroot $1 $SHELL -ex <<'EOS'
curl -fSkL http://pkg.jenkins-ci.org/redhat/jenkins.repo -o /etc/yum.repos.d/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install --disablerepo=updates -y jenkins
... |
6eb5657a3afea2704402eff5657352b413d1e064 | 1,136 | #!/usr/bin/env bash
#Copyright 2021 The hostpath provisioner 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 app... |
d30d157316eef7380baa268d3750a5940f8e58e7 | 22 | # Your code goes here. |
20f643a0ee39d688b3c181f0faa7f946c3965ec8 | 208 | #!/bin/bash
my_ip=$(nslookup comp0 | grep ^Address: | tail -n1 | cut -f2 -d' ')
sockperf sr --tcp -i $my_ip -p 12345 &
ssh comp1 sockperf ping-pong -i $my_ip --tcp -m 350 -t 101 -p 12345 --full-rtt
kill %1
|
02f06fd173132c5555c44e198b0849a3cc32fb63 | 2,885 | #!/usr/bin/env bash
# shellcheck source=lib/utils.bash
. "$(dirname "$(dirname "$0")")/lib/utils.bash"
find_cmd() {
local cmd_dir="$1"
shift
local cmd_name
local args_offset="$#"
cmd_name="command-$(tr ' ' '-' <<<"${@:1:${args_offset}}").bash"
while [ ! -f "$cmd_dir/$cmd_name" ] && [ "$args_offset" -gt 0... |
bfc061e3defa70a9d2b612160f2770e6c11928be | 1,233 | #!/bin/bash
# This script print a range of numbers
usage () {
cat <<END
count [-r] [-b n] [-s n] stop
Print each number up to stop, beging at 0
#-b gives a number to begin with (default: 0)
#-r reverse count
#-s sets step size (default: 1)
# counting will stop at stop
END
}
#function to handle error
#First argument... |
ed9df830984e52d26dde7cab118aa72cf145ab9d | 220 | # platform = Red Hat Enterprise Linux 7
#
# Disable messagebus.service for all systemd targets
#
systemctl disable messagebus.service
#
# Stop messagebus.service if currently running
#
systemctl stop messagebus.service
|
039a7e85cc571e3b9f6d18f8ebfd09f316ee2ac2 | 158 | g++ EuclidSearch.cpp -o EuclidSearch
mkdir Results
./EuclidSearch 1
./EuclidSearch 5
./EuclidSearch 10
./EuclidSearch 30
./EuclidSearch 50
./EuclidSearch 100
|
6a2ec0e7def60190f094aa01d1bfdbcbcc865e12 | 215 | #!/bin/sh
[ -d ~/.trash ] || mkdir ~/.trash
count=$(ls -l ~/.trash | wc -l)
rm_count=$((count / 4))
if [ $rm_count -eq $count ]
then
rm $(ls -tr | head -$rm_count)
fi
for file
do
mv "$file" ~/.trash
done
|
2cc6914235aef22ca6ef83d4914e4ed307a05b62 | 606 | #!/bin/bash
set -euo pipefail
source ${BASH_SOURCE%/*}/.helpers.sh
# Create some demo accounts. Normally the blockchain doesn't have access to
# anyones private keys. These are only included for the demo.
names="Alice Bob Charlie Dave Erin Frank"
mkdir -p "${_private_keys}"
mkdir -p "${public_keys}"
for name in $na... |
18fddacdc9b10ae6dbc97ead8a89f31fbcfb72c5 | 16,532 | test -n "$_pkg_trim_" && return 0
readonly _pkg_trim_=1
. ${bsda_dir:-.}/bsda_dialog.sh
. ${bsda_dir:-.}/pkg_query.sh
. ${bsda_dir:-.}/bsda_opts.sh
#
# A dialog(1) driven script to get rid of unwanted leaf packages.
#
#
# Provides states for package selection to facilitate undo and redo.
#
# This is a two-way linked... |
99ef05c6c8d7de6e1f1f7b20f1d385dfe3de9a8a | 734 | #!/bin/bash
PROJECTNAME="$1"
DOMAIN="$2"
if [ -z "$PROJECTNAME" ]; then
exit
fi
if [ -z "$DOMAIN" ]; then
DOMAIN=$PROJECTNAME
fi
echo "create www project vhost: $PROJECTNAME"
if [ ! -f "/etc/apache2/sites-available/$PROJECTNAME" ]; then
echo "Use 8waysOnlyProjectVhost \"$PROJECTNAME\" \"$DOMAIN\" \" \"" >... |
a714ab0f54c2b74adb6401433427a0b40e9b1e85 | 74 | PORT = 5000
HOST = 127.0.0.1
USER_NAME = root
DATABASE_NAME =
PASSWORD = |
69f724faf00c75e4cc1bdc8686d6ee09130b47ce | 1,982 | #!/bin/sh
########################################################################
# Begin /etc/init.d/mysql
#
# Description : Start MysSQL Server
#
# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN I... |
083d83eba9fdb643a176a02443756af66a6e005e | 494 | #!/bin/sh
#SOURCE: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-4.19.0.tar.xz
#FILE: xfsprogs-4.19.0.tar.xz
#HASH: e6aa93d892df76a1675755b88e9ac6b2793eb619
set -e
set -x
build()
{
tar --strip-components=1 -xJf $1
./configure --prefix=/
make
}
install()
{
cp -f $3/fsck/xfs_fsck.sh $1/sbin/f... |
3a8fd1eb057ff70f34de69b65646a63a20ff89cf | 42 | #!/bin/bash
./symfony snow:update-test-sql |
92c8b77561ff676c5d299f467d092e97497c0144 | 187 | #!/bin/bash
echo "Waiting Postgres to launch on 5432..."
while ! nc -z db_prod 5432; do
sleep 0.1 # wait for 1/10 of the second before check again
done
echo "Postgres launched" |
1d879b8500d63757c63769d04505b05769c545bc | 96 | #!/usr/bin/env bash
ps aux|grep java|grep buaa-chain|grep -v grep|awk '{print $2}'|xargs kill -9 |
cda7cddaf37141cc0b7953f2fe7cb1f4d407ffeb | 91 | #!/bin/bash
protoc primedecompositionpb/prime_decomposition.proto --go_out=plugins=grpc:.
|
1ce17568e1e115bf3f13fa61b8070eb0fab31498 | 542 | test "x$ROOTCOREDIR" = "x" && echo "ROOTCOREDIR not set, please source setup.[c]sh" && exit 1
test "x$ROOTCOREBIN" = "x" && echo "ROOTCOREBIN not set, please source setup.[c]sh" && exit 1
pkgfile=$ROOTCOREBIN/packages
script=`basename $1`
if test \! -f "$pkgfile"
then
if test "$script" != "find_packages.sh" -a "$... |
6834c54b2e2ae2bb0c55cf9fa52d060d626a4e08 | 713 | #!/bin/bash
cd /
sudo rm backup.tar.gz
sudo tar -cvpzf backup.tar.gz --exclude={/backup.tar.gz,/home/vahid,/sys,/proc,/mnt,/dev,/run,/media} /
sudo rsync --delete --delete-before --progress -rvt /backup.tar.gz /media/vahid/HDD-160GB/Linux/Backup/manual/backup.tar.gz
sudo rsync --exclude={/home/vahid/.cache,/home/vahid/... |
ded9ee2c4c1faccbf08c0be56e46f31ff4236f21 | 159 | rm -r /var/www/html/*
git clone https://github.com/rhjensen79/simple-website.git
cp /tmp/simple-website/www/* /var/www/html/
/usr/sbin/apache2ctl -D FOREGROUND |
443151dac48fef3662c0eb0fce618bdbfd2a0f73 | 3,094 | #!/bin/bash
set -e
RETHINK__HOST=${RETHINK__HOST:-"localhost:28015"}
DUMP__NAME=${DUMP__NAME:-"dump"}
DUMP__LOCATION=${DUMP__LOCATION:-"/tmp/backup"}
DUMP__LIMIT=${DUMP__LIMIT:-"10"}
RUN_ON_STARTUP=${RUN_ON_STARTUP:-"false"}
_main() {
if [[ ! -z $(ps aux|grep [c]ron) ]]; then
echo "service already started"
... |
4c14f182bca5416355dd2417dc1a77b3c94b2729 | 153 | #! /bin/ash
echo -e "$PASS\n$PASS" | adduser -h $FOLDER -s /sbin/nologin $NAME
mkdir -p $FOLDER
chown $NAME:$NAME $FOLDER
vsftpd /etc/vsftpd/vsftpd.conf
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.