blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
c02e13b22f9871fbc5e057663084e0b275f4872f | 187 | gcc -c -Wall -Werror -Wextra ft_putchar.c ft_putstr.c ft_strcmp.c ft_strlen.c ft_swap.c
ar rc libft.a ft_putchar.o ft_putstr.o ft_strcmp.o ft_strlen.o ft_swap.o
rm *.o
ranlib libft.a
|
7593c3a7716528fe149a829fdca52509fca11c4c | 3,810 | qsub -pe localslots 4 -e /dev/null -o /dev/null /net/per610a/export/das11f/plsang/codes/deeptest/overfeat_predict_med_sge.sh 0 975
qsub -pe localslots 4 -e /dev/null -o /dev/null /net/per610a/export/das11f/plsang/codes/deeptest/overfeat_predict_med_sge.sh 975 1950
qsub -pe localslots 4 -e /dev/null -o /dev/null /net/pe... |
c1391bae7ce48b1cc03f26b91c22cc13b0f66c0a | 97 | cd ..
python train.py --param_path param/train/ --param_name cvae_forest_param3.yaml
cd train_exp |
f26a7fa9d5c7f8acdcf507b6e22a36f5babbd627 | 1,912 | #!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
REPOSITORY=tstruczynski/php
VERSIONS=( 7.0 7.1 7.2 7.3 7.4 8.0 8.1)
LATEST=7.4
UPLOAD=0
last_command="";
cleanup() {
rv=$?
if [ "$rv" != "0" ]; then
echo -e "\n\n\"${last_command}\" command failed with exit ... |
9dfa2c9987a6d2851e8f7b511857a408a86a7432 | 277 | #!/bin/bash
# Run all examples in examples directory
set -eu -o pipefail
for file in examples/*.rs; do
name=$(basename ${file//.rs/})
if [[ "$name" == "rustbox" ]]; then
cargo run --features rustbox --example "$name"
else
cargo run --example "$name"
fi
done
|
90cd170d03240db7767c6c0cc5d7baf1169b7187 | 87 | #!/bin/bash
/global/home/users/clairedubin/programs/muscle -in $1 -out $2 -maxiters 2
|
3aeff30033721cd8fb88509051327a777a2eb5e6 | 412 | #!/bin/sh
export CUDA_VISIBLE_DEVICES=1
CHECKPOINT_DIR=../../checkpoints/mask_rcnn_resnet50_1200x1200_iNat_HeavyA_AG
CONFIG_PATH=../../configs/mask-rcnn-new/mask_rcnn_resnet50_1200x1200_iNat_HeavyA_AG.config
CHECKPOINT_STEPS=1950 #5 epochs
python ../../object_detection/model_main.py \
--model_dir "$CHECKPOINT_DI... |
03e687fc4529e350ce909f03b009a47651c73086 | 320 | #!/bin/bash -v
# NN with CCRE with 50r and SubSeq 10
bashl iclm_ncc_50r_200i_4u_subseq10_tulp.sh
bashl iclm_riu_50r_200i_4u_subseq10_tulp.sh
bashl iclm_spss_50r_200i_4u_subseq10_tulp.sh
bashl iclm_ssd_50r_200i_4u_subseq10_tulp.sh
bashl iclm_ssim_50r_200i_4u_subseq10_tulp.sh
bashl iclm_zncc_50r_200i_4u_subseq10_tulp.sh
|
b280be9ad099215d971cd4500c3b2791d638208f | 727 | #!/usr/bin/env bash
set -e
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd ${__dir}
if [ -f "logs/example.log" ]; then
ts=$(date "+%Y%m%d-%H%M%S")
mv -v logs/example.log logs/example-$ts.log
fi
if [ -d "deployments/" ]; then
find deployments/ ! -name 'ee7-ejb-cdi-scopemix-ear.ear' -type f -exec... |
da36a2e22fdb03b127610aa2adc769ca3b46b680 | 1,175 | #!/usr/bin/env bash
ecd () {
run_ecd () {
echo -ne $(pwd)
result="$(ls -al | sed 1d |
fzy -p 'Press esc, or select . to exit program > ' |
sed 's/\x1b\[[0-9;]*m//g' | # remove color control code
awk '{print $NF}')"
if [ "$result" = "." ]; then
... |
0b248956fcb14debd02cc1f68645055d1fab1f93 | 1,250 | #!/bin/bash
# Damon Polioudakis
# 2016-04-21
# Select fastqs for human only capture sites and merge lane 1 and 2 to prepare
# for variant calling
# Suggested script calls:
# qsub -cwd -o logs/Merge_FASTQs_Variant_Calling_QSUB_$(date +%Y%m%d).log -e logs/Merge_FASTQs_Variant_Calling_QSUB_$(date +%Y%m%d).error -S /bin... |
79b6f3be0249a740df56329d426cc3ba7331b259 | 1,232 |
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
## PS1 stuff
#-----------
#?
#PS1='\h:\W \u\$ '
#for git prompt
export GIT_PS1_SHOWDIRTYSTATE=1 # unstaged (*) and staged (+) changes will be shown next to the branch name
export GIT_PS1_SHOWSTASHSTATE=1 # If something is stashed, then a '$' will be shown next to ... |
4c89cd4c02b8ac266b7efd85553c040c0192761c | 126 | gedit ~/.bashrc
# trzeba dodać do pliku aliasy:
# alias ll='ls -alFh'
# alias la='ls -Ah'
# alias l='ls -CFh'
. ~/.bashrc
|
f67047899747973c17c8a6edaf1aa41a9fd59d2f | 278 | #!/usr/bin/env bash
sudo chmod -R 777 www/cache www/templates_c www/export www/xtLogs www/lic www/media www/plugin_cache www/conf/config.php www/xtWizard/logs www/cronjobs
echo "Fertig :-) Die Verzeichnisberechtigung wurden richtig gesetzt http://localhost/ ist jetzt online" |
c60fedd998f9575adeb817277d0377eb07a86a28 | 658 | #!/bin/bash
action=$1
option=$2
args1=$3
args2=$4
args3=$5
[[ -z $GIT_REPOS ]] && GIT_REPOS=${HOME}/.git_repos
case "$action" in
run)
${GIT_REPOS}/${option} $args1 $args2 $args3
;;
clone)
cd ${GIT_REPOS}
git clone $option || {
cd `basename $option`
git ... |
6aeaf73795b462a3142c5d6a916863d568fc0d0a | 792 | #!/bin/bash
test2 () {
filename="serv.txt"
while read -r line
do
serv=$line
echo "$serv"
done < "$filename"
}
serveur () {
PS3='Choix du serveur: '
options=("freppau-lpegf01" "freppau-lpegf02" "freppau-lpegf011" "Quit")
select opt in "${options[@]}"
do
case $opt in
"freppau-lpeg... |
0a2542bfcb92a150db3fcef8d2880f17bf721b7c | 87 | #!/bin/sh
find ./ -iname "*.als" -exec sh -c "gzip -cd {} > {}.xml ; echo "{}" ;" \;
|
5f2dd1ce3f254c62ca33447cc6b5b9b7d826ccf6 | 221 | #!/bin/sh
set -e # exit in case of any error
cd ~/.rcasif
cp ~/.vimrc ~/.vimrc_bk
cat ~/.rcasif/basicrc > ~/.vimrc
echo "My basic RC file is loaded in to ~./.vimrc file"
echo "Previous vimrc is save to ~/.vimrc_bk file"
|
28dd37bfd5eb18b445287758ee378071d57d01b8 | 385 | #!/bin/bash
# docker run -it --rm \
# --gpus 1 \
# -p 3389:3389 \
# -u $(id -u):$(id -g) \
# -e USER=ubuntu \
# -e PASSWD=ubuntu \
# learn-rl-rust
docker run -it --rm \
--gpus 1 \
-p 3389:3389 \
-u $(id -u):$(id -g) \
-e USER=ubuntu \
-e PASSWD=ubuntu \
-v /Users/taku-y/... |
81940bf73f25f7f34c7cbf878b3ac42cf939a434 | 162 | #!/bin/bash
python test.py --dataset_name='SHA' --mode='crop' --nThreads=1 --gpu_ids='0' --batch_size=1 --net_name='csrpersp_crop' --test_model_name='model_path'
|
bf0a723a7befe5c8ed0cc9ec937d150e669fe4b3 | 398 | #!/bin/sh
#reroute stderr to stdout
exec 2>&1
#set user to pi and
#s1000000: set file size to about 1MB and then rotate it
#n5: keep 5 rorated logs
#'!tai64nlocal' run command after archiving file, this will convert timestamps to human redable ones
#prepend '!gzip' to the directory will gzip archived files
exec se... |
df5dda8885f1697a242277cb9240386f92712e07 | 297 | #!/bin/bash
echo maven-project > /tmp/.auth
echo $BUILD_TAG >> /tmp/.auth
echo $PASS >> /tmp/.auth
scp -i ~/.ssh/id_rsa /tmp/.auth ubuntu@172.31.22.209:/tmp/.auth
scp -i ~/.ssh/id_rsa ./jenkins/deploy/publish.sh ubuntu@172.31.22.209:/tmp/publish.sh
ssh ubuntu@172.31.22.209 "/tmp/publish.sh"
|
fe643d1a8b3ecd30528dd68ef55a1f9814d1e2b2 | 75 | #!/bin/sh
find . -mindepth 1 -depth -type d -exec rmdir {} \; 2>/dev/null
|
b7ed8b377b58998644f413affac27677f6a5f344 | 457 | #!/bin/bash
####
#
####
# @author artodeto
# @since 2013-04-23
####
URL_FEED='https://raw.github.com/propelorm/Propel/master/CHANGELOG'
DIR_SELF=$(cd $(dirname "$0"); pwd);
FILE_TO_DIFF='.PROPEL_RELEASE_CHANGELOG_TO_DIFF'
$(wget -q $URL_FEED)
if [ -f "$FILE_TO_DIFF" ]; then
$(diff CHANGELOG $FILE_TO_DIFF)
$(... |
c36a5ebb225f54bc86a5398b3fef949bd8c71951 | 1,623 | APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_LOG=daily
APP_LOCALE_PHP=en_US
APP_NAME=
TIMEZONE=
API_PREFIX=api
//API_VERSION=v1
//API_NAME=
//API_DEBUG=true
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USER... |
68d44fce406b679f2410aedaafcde7022d72115e | 239 | # vim: ft=sh
curl https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install v11
nvm alias default v11
nvm use v11
|
69f6839e1042e1eb6b649797136a759bc71e3cd8 | 758 | #!/bin/sh
# Background a process with nohup, but return quickly with an exit code if it
# fails within the 0.1s timeout, which likely indicates a wrong command-line
# argument.
# Via https://superuser.com/a/814527
TIMEOUT=0.1
if [ $# -eq 0 ]; then
exec nohup
fi
if [ -t 1 ]; then
rm -f nohup.out
fi
nohup "$@"... |
ef914ec7be906065267237218658e1ee2fb3d1da | 228 | #!/bin/bash
. /etc/<%= @product %>/<%= @product %>.conf
set -x
if [ "x$JBOSS_HOME" = "x" ]; then
JBOSS_HOME="/usr/lib/<%= @product %>-<%= @version %>"
fi
$JBOSS_HOME/bin/$JBOSS_MODE.sh -c "${1}" | tee $JBOSS_CONSOLE_LOG
|
67fbc72017f5043ccc153701306cba331fe3d53b | 939 | #!/bin/bash
export CYGWIN="winsymlinks:nativestrict"
for GOES in 17 16;
do
date
echo "Link GOES-${GOES} source images"
mkdir /cygdrive/S/NASA/overlay-${GOES}
x=0; for i in `find S:/NASA/GOES-${GOES}_03_geocolor/overlay -name "*.png"`; do counter=$(printf %04d $x); ln -s "$i" /cygdrive/S/NASA/overlay-${GO... |
456c8c56aa9c587cdf345794a679b8bde61fbbc1 | 135 | python finetune_classifier.py --task_name RTE --batch_size 32 --gpu 0 --lr 2e-5 --seed 33 --warmup_ratio 0.1 --epochs 5 --no_best_model |
dc72858dc9f54cd6098b05ff749e775748641240 | 155 | #!/bin/bash
ls /
ls -l /opt
ls -l /data
sudo # should return Operation not permitted
echo "hey!"
for i in {0..9}; do
echo "work $i"
sleep 1
done
|
4a94caea85dac7f36d3627454b2f2ffee9888115 | 369 | #!/bin/sh
python3 plot.py csv ~/andes/src/zidxbenchmark/experiment/exp_remote1.csv results_remote
python3 plot.py csv ~/andes/src/zidxbenchmark/experiment/exp3.csv results_local
python3 plot.py zx data results
python3 gunzip_plot.py
for f in `ls -1 *.eps`; do epstopdf $f; pdfcrop ${f%.*}.pdf; pdftops -eps ${f%.*}-crop.... |
e755fa4c3fccb7e74af12704d51c4358764ae3b8 | 1,364 | #!/bin/bash
#download dataset
wget http://festvox.org/cmu_arctic/cmu_arctic/packed/cmu_us_bdl_arctic-0.95-release.zip -P /tmp
wget http://festvox.org/cmu_arctic/cmu_arctic/packed/cmu_us_clb_arctic-0.95-release.zip -P /tmp
# wget http://festvox.org/cmu_arctic/cmu_arctic/packed/cmu_us_rms_arctic-0.95-release.zip -P /tm... |
5c630a39f29e8189a453e7f0f1b9f5506593ee99 | 106 | rm visualiser.jar
cd bin
jar cvfe ../visualiser.jar visualiser.Visualiser .
cd ..
chmod +x visualiser.jar
|
7766256a915a5010ddea82ee62153f8999cc44f0 | 32 | #!/bin/bash
echo yum -y update
|
bf8edbbfac111fc008e04e95a2ab382d5b1b99ea | 115 |
ksmroot=${ksmroot:-"/adds/kbmenu"}
zonehelper=$ksmsroot/helpers/select_time_zone_region.msh
$zonehelper "Europe"
|
1dac18eb07ca479343d4a0e6de813044336781e9 | 515 | #!/usr/bin/env bash
echo "Replace $(SolutionDir) to .. in .csproj"
perl -pi -e 's/\$\(SolutionDir\)/../g' ./XFGoogleMapSample.Droid.csproj
perl -pi -e 's/\$\(SolutionDir\)/../g' ../XFGoogleMapSample/XFGoogleMapSample.csproj
echo "Copy Variables_sample.cs to Variables.cs"
cp ../XFGoogleMapSample/Variables_sample.cs ..... |
56be7fcafabc72b97b64fdad680cf588fa973e52 | 186 | #!/bin/sh
/opt/rumprun/rumprun/bin/rumprun kvm -M 192 -I if,vioif,'-net tap,ifname=tap0,script=/etc/qemu-ifup' -W if,inet,static,[IP_OF_RUMPRUN_INSTANCE]/24,[GATEWAY_IP] -- ~/udpping.bin |
9cd6a504d15cf10c1b853a6b890f818b889ee98f | 48 | protoc blogpb/blog.proto --go_out=plugins=grpc:. |
e5900babae44b3ed611fe57aedb793f5679c8fce | 220 | #!/bin/bash
# run the cd hit fileter tool with the provided arguments
# note: only works with non zip data
CD-HIT-Filter "${@:1:$(($#-1))}"
# move the output file to the provided output path
mv "${2%.*}"*min*.fasta $7
|
49b48f5ab5ea3db833982ad4eead8e4dd1c700e9 | 153 | #!/bin/bash
#$ -cwd
#$ -N split_seurat_by_category
#$ -V
#$ -l h_rt=47:59:59
#$ -l h_vmem=100G
Rscript split_seurat_by_category.R
echo "End on `date`" |
980ab7063325dd0f700134b6097c5202172e2ef0 | 38 | #!/bin/bash
echo
echo "bf.c: "
./bf
|
5323eca2989b624bbb1440cc4ed66fa5c1296ebe | 2,025 | #!/bin/bash
#unsetting proxy to hit api through curl
http_proxy=""
# Based on folderName of content for which file completely not downloaded , get metadata of that content from database
function sendReq {
local FOLDER_NAME=$1
echo "Processing:-----> ${FOLDER_NAME}"
curl -s -X POST http://dev.media.ji... |
736f6d8e1ea9dbd311513867e8bd210f9a0a4238 | 683 | #!/bin/bash
#DEBHELPER#
# preinst script for cryptsetup-modified-functions
#set -e
case "$1" in
install|upgrade) dpkg-divert --quiet \
--add \
--package crypt... |
51d09cd0750e9f652346ba39ae9e761c15889533 | 173 | sudo git remote add https://github.com/mzahmi/ventilator.git
sudo git fetch upstream
sudo git checkout master
sudo git merge upstream/master
sudo git push origin master
|
bdce72a34fe7f7be056e940205dcea766f1a4616 | 2,424 | #
# Build a code-signed ZXP file
#
export scriptDir=`dirname "$0"`
cd "$scriptDir"
export timestampServer="http://timestamp.globalsign.com/scripts/timstamp.dll"
export scriptDir=`pwd`
export projectHomeDir=`dirname "$scriptDir"`
export devtoolsDir="$projectHomeDir/devtools"
export buildDir="$projectHomeDir/build"
ex... |
692b60a0556042b2b6b46e23ddd921bf418f2feb | 289 | python test.py\
--scale 1\
--ps 2 --ps_scale 2\
--real 1\
--k 0\
--mode MC\
--color 1\
--output_map 0\
--zeroout 0 --keep_ind 0\
--num_of_layers 20\
--delog logs/logs_color_MC_AWGN_RVIN\
--cond 1 --refine 0 --refine_opt 1\
--test_data real_patch\
--out_dir results/real_patch
|
1655ac2674fd52040089bc8598d108efad3e0cac | 7,424 | test_or_train_option=$1 ############################ '-t' or '-T'
corpus_option=$2 ############################### 'PNS' or 'PS' or 'NS'
classifier_option=$3 ############################### '-bi' or '-tri'
data_path='data/'
script_path='scripts/'
SVM_path='scripts/svm_multiclass_linux/'
MALLET_PATH=$script_path'ma... |
8aa44cdfa3c92fb0d7e6733a56284fe331fbb662 | 674 | # Maintainer: Ali H. Caliskan <ahc (at) selflex.org>
pkgname=cheflex
pkgver=1.0.4
pkgrel=1
pkgdesc="A simple yet flexible package manager."
arch=('i686' 'x86_64')
url='http://www.selflex.org/cheflex'
license=('GPL-3')
depends=('aria2' 'bash' 'fakeroot')
install=cheflex.install
source=("https://github.com/selflex/${pkg... |
c7e55838e7e4398cbd5c8a18f752dc0430d95690 | 9,366 | #!/bin/bash
############### VARS ################
USER="vinicius";
CURRENT_LOCAL_USER="$(cd ~ && pwd)";
WORKDIR_NAME="freesUpDiskSpaceOnWorkersK8S";
WORKDIR_FULL_PATH="$(echo "$CURRENT_LOCAL_USER"/"$WORKDIR_NAME")";
SEND_EMAIL_SCRIPT_NAME="sendMailCurlFunction.sh";
SCRIPT_MAIN_NAME="script.sh";
SEND_EMAIL_SCRIPT_FULL_P... |
7a97cdefbae6a5fb230cc549b1dcff5bd4a2c619 | 1,611 | # Maintainer: not_anonymous <nmlibertarian@gmail.com>
# Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
# Original Submission: Bob Finch <w9ya@qrparci.net>
pkgname=unixcw
pkgver=3.5.1
pkgrel=2
pkgdesc="CW tutor & generator - program suite - Ham Radio"
arch=('i686' 'x86_64')
url="http://un... |
00f3ada2dde99969595dbbc23a10fbfcdc7d2750 | 310 | #!/bin/bash
set -ex
rm -rf dist
node_modules/.bin/webpack --mode production
rm -rf target
mkdir target
cp -R dist icons manifest.json .web-extension-id target
cd target
../node_modules/.bin/web-ext lint
../node_modules/.bin/web-ext build
web-ext sign --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET
|
d256fec94e0b4ee38601f6d0a88e405e2300b878 | 271 | #!/bin/sh
repo="${0%/*}/repo"
if [ ! -d "${repo}/.git" ]; then
git clone https://github.com/openwrt/openwrt "${repo}"
fi
brew tap homebrew/dupes
brew install \
git \
coreutils \
findutils \
gawk \
gnu-getopt \
gnu-tar \
grep \
wget \
quilt \
xz
|
60ec75f6c8ddcdea093708f3499f54b0590b6ce3 | 77 | #!/bin/sh
ghc -e "alll c" Build.hs
browse "dist/reader-monad/reader-monad"
|
34b18222caf80c78d256de5b1c7fb986d514248a | 66 | PORT=3004
MONGO_URI=mongodb://root:example@localhost:27017/rental
|
6b8c3f65fb62021b3f9e0b8be9beccdfbd6ea795 | 284 | #!/usr/bin/env bash
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
SQL_DIR=$SCRIPT_DIR/../sql
cat "$SQL_DIR/drop-everything.sql" \
$SQL_DIR/schema.sql \
| psql --dbname=mylittlepita --file=- --user=pita
# Load the dictionary words into the database
python scripts/dictionary.py load
|
a9e8888dd2e2c957f6bf1b521e520525f6fd9519 | 106 | function run {
echo $1
$1
}
run "lean --c=$1.c $1"
run "leanc -O3 -DNDEBUG -o lean-${1%.lean} $1.c"
|
c21ada1c5fb30d93da943f8be488a6da8de4b733 | 347 | #!/bin/bash
#Autora: Cristina Díaz García
#Grupo: Informática D
for i in $@
do
if [ ! -f "$i" ]
then
echo $i no existe
else
A=$(ls $i* | wc -w)
if [ $A -ge 9 ]
then
echo “Se ha superado el número máximo de versiones”
else
Num=`expr $A + 1`
Date=`date +%y%m%d`
Version=${Date}_$i
cp $i $Vers... |
6f71f652a0cf7506b414a33cace8d7f87bd86a83 | 4,666 | set -x
# Depending on our platform, shared libraries end with either .so or .dylib
if [[ $(uname) == 'Darwin' ]]; then
DYLIB_EXT=dylib
CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include -stdlib=libc++"
else
DYLIB_EXT=so
CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include"
# Don't specify these -- let conda-build do ... |
f4f053e8d8ad83d6f40e640222071d8417129b30 | 364 | #! /bin/sh
export MATS=8
export ITEMS=1
export SETS=16
# run each file in numerical order - ie
# 1.check_me
# check the materials
# 2.latin_me
# latin square them
# 3.random_me
# randomise the latin squares
# 4.output_me
# you now have an output directory containing booklets (well, almost)
#
# 5.tidy_me
# delete... |
01096ae3e71cbd57710b441f89bde0a79f5779f9 | 189 | # Readme
git add Readme.txt
# Git commands
git add git_cmd.sh
# C++ Source
git add compile
git add *.cpp
git add *.h
# Visualization
git add *.py
git commit
git push -u origin master
|
37cfb4b12c0fbf362c29aecd60ceb081549a92e9 | 185 | #!/bin/bash
docker kill producer
docker kill kafka
docker kill zookeeper
docker rm -f producer
docker rm -f kafka
docker rm -f zookeeper
rm -rf /tmp/zookeeper
rm -rf /tmp/kefka-logs
|
c135fed0eb97714cda99b736f1e2d55244f8c65a | 1,178 | #! /bin/bash
set -x
# config variables
java8_dl="http://download.java.net/jdk8/archive/b120/binaries/jdk-8-ea-bin-b120-linux-x64-12_dec_2013.tar.gz?q=download"
jdk8_path="/home/vagrant/jdk1.8.0/bin"
java_home="/home/vagrant/jdk1.8.0/"
ant_dl="http://ftp.yz.yamagata-u.ac.jp/pub/network/apache//ant/binaries/apache-an... |
b04852665e4b5c4288680993cac869f5c7b2da65 | 170 | Find any Unix / Linux command
Useful aliasing in bash
Random password generator
Breaking out of a terminal when `ssh` locks
Conditional command execution
(`&&` operator) |
f4d175ca494c06f064692e4c0f9638fbb8172125 | 1,178 | #!/bin/sh
# Test:
# Set up local repos, run the install and skip installing hooks into existing directories
if echo "$EXTRA_INSTALL_ARGS" | grep -q "use-core-hookspath"; then
echo "Using core.hooksPath"
exit 249
fi
mkdir -p ~/test100/p001 && mkdir -p ~/test100/p002 || exit 1
cd ~/test100/p001 && git init |... |
470753e0cce9ccf4f6b5d376bf6f1f4e255b0d1a | 705 | #!/usr/bin/env bash
profile=${1}
env=${2}
commit_msg=${3}
if [[ ! "${profile}" =~ ^(codeserver|default|garden)$ ]];
then
echo "Invalid profile"
exit 1
fi
if [[ ! "${env}" =~ ^(prod|test|dev)$ ]];
then
echo "Invalid environment"
exit 1
fi
if [[ "${env}" != "dev" && "${commit_msg}" == "" ]];
then
... |
4ab1f9d5eaf93780f461f1d6cde9033ab4e6c562 | 2,490 | #!/bin/bash
service hadoop-hdfs-namenode start
service hadoop-hdfs-datanode start
sudo -u hdfs hadoop fs -mkdir -p /tmp/hadoop-yarn/staging/history/done_intermediate
sudo -u hdfs hadoop fs -chown -R mapred:mapred /tmp/hadoop-yarn/staging
sudo -u hdfs hadoop fs -chmod -R 1777 /tmp
sudo -u hdfs hadoop fs -mkdir -p /var... |
17d1e02df9874f7d2cd7afa565ef7dd7853133da | 285 | #! /bin/sh
n=0
filter=""
iflags=""
for i in $@; do
iflags="${iflags} -i ${i}"
filter="${filter}${filter:+ }[${n}:0] [${n}:1]"
n=$(( ${n} + 1 ))
done
eval ffmpeg ${iflags} \
-filter_complex \'${filter} concat=n=${n}:v=1:a=1 [v] [a]\' \
-map '[v]' -map '[a]' combined.mov
|
aad98f69283dbc634caf62f92ddaf4ddba81f6f2 | 2,112 | #!/bin/bash
#
# Run multiple benchmark configurations
#
# BENCH.sh <arch_name> <taskset_cpu_mask> <spec_1> ... <spec_n>
#
# Where a spec is compiler_optlevel_{native|sse4.2}[_pgo]
#
# e.g.,
# BENCH.sh i7-4930k 0x20 gcc-6_O3_native gcc-6_O3_sse4.2 clang-8_Ofast_native_pgo
#
# flags to tell BUILD.sh to include all solve... |
f54e04423d218e728795c94f13377bf2c92e0956 | 44 | #!/bin/bash
variable='Foobar'
echo variable |
fc0efd9e61bfb2e901197beadc1be601b4d3dc6b | 78 | openssl rsautl -encrypt -inkey temppubkey -pubin -in tempintext -out file.bin |
765a9d30d62e4a9d83fd070a77aa3982d471f1aa | 44 | batchCompressImagesIncludeSubFiles5050.sh .
|
8ba6b73bccb4c77a5b8147c0259c9905b272a423 | 46 | docker rm -f data-one mysql-one wordpress-one
|
961a974cd1f83b471fcbdd87159ac8e4a35e86cc | 49 | /etc/init.d/redis-server start
/bin/hubot -a irc
|
da8004056023589af270b1d030d2019cb900092a | 396 | #!/bin/bash
[Unit]
Description=Nodejs
After=network.target
[Service]
User=backend
Restart=on-failure
Group=nogroup
Type=simple
WorkingDirectory=/home/backend/TeamAPoolProjectBackend
ExecStart=/usr/bin/node /home/backend/TeamAPoolProjectBackend/Index.js
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=pro... |
bc766710ccdcd7e0a4b83b3fe3bcfe19b5575c1b | 1,409 | #!/bin/bash
# https://github.com/nazoking/git-multi-ssh.sh/blob/master/git-multi-ssh.sh
# ssh deploy key manager for git command ( ex: for private submodules )
#
# `export GIT_SSH=git-multi-ssh.sh`
#
# and set environment valiable as `DEPLOY_KEY_[name]=[private-key]`
#
# - when repository ssh url is `git@github.com:naz... |
710eabdb3dd28d3d658ab781c003920e27c6b617 | 422 | #!/bin/bash
#随机生成网卡配置文件
for i in `seq 10`
do
num=$[RANDOM%127+128]
cat > /home/ens$i <<EOF
TYPE=Ethernet
PROXY_METHOD=none
ROWSER_ONLY=no
OOTPROTO=static
EFROUTE=yes
PV4_FAILURE_FATAL=no
PV6INIT=yes
PV6_AUTOCONF=yes
PV6_DEFROUTE=yes
PV6_FAILURE_FATAL=no
PV6_ADDR_GEN_MODE=stable-privacy
NAME=ens$i
EVICE=ens$i
NBOOT=... |
9415c81001ca165710d3b80b63b7018d2f17bd66 | 1,451 | read -p "Digite o domínio (ex: meudominio.com): " domain
read -p "Digite um e-mail (necessário para gerar os certificados): " email
read -p "Digite o nome de usuário do Github: " gh_username
read -p "Digite o token do Github: " gh_token
sed -i "s|scoreboardapp.tech|$domain|g" conf/reverse-proxy.conf
sed -i "s|scoreboa... |
312b8559dac70f008f84424a1c19773220f95e2f | 431 | alias dc='docker-compose'
alias dcrm='docker-compose rm'
alias dck='docker-compose kill'
alias dms='docker-machine start default'
alias dmr='docker-machine restart default'
alias dmip='docker-machine ip default'
alias dme='eval "$(docker-machine env default)"'
function dcu() {
if [ -f ./docker-compose.local.yml ]... |
f43db928f140e53490b4f4742ff5676ee510b36d | 205 | #!/bin/bash
if ./runcrud.sh; then
# firefox -new-window http://localhost:8081/crud/v1/task/getTasks
lynx -dump http://localhost:8081/crud/v1/task/getTasks
else
echo "There were some errors."
fi
|
7215611879ab478169f3f5948f2a2a99f60ccca8 | 133 | #!/bin/bash
rm lex.yy.c teste05.tab.* teste05
flex teste05.l
bison -d teste05.y
gcc -o teste05 lex.yy.c teste05.tab.c -Wall -ll
|
8280add7e96e2cd1dda2edba5c12a0f31f5aca5a | 130 | #!/bin/bash
download_mms(){
local DOWNLOADURL=$1
local MMSFOLDER=$2
curl --output $MMSFOLDER.tar.gz $DOWNLOAD_URL
} |
2a3839fa451b6ea81f9a0b60c1e03411adac12a3 | 3,044 | #!/bin/bash
# script to setup Summit_XL-Workspace
# Version vom 27.4.2021 incl Map directory kopieren
echo -e "\033[34m ---------- ERO SS21 - Workspace einrichten ------------ \033[0m "
echo "Shellskript zur Installation der SummitXL-Pakete"
sudo apt-get dist-upgrade
pwd
cd ~/catkin_ws/src/
# no noetic version av... |
c7fec951868a3bfdfbc296971bbc19bfbdd859b8 | 360 | #!/usr/bin/bash
mkdir "result_graphs"
domains=( blocks logistics depot rovers )
for domain in "${domains[@]}"
do
mkdir result_graphs/$domain
mkdir result_graphs/$domain/evaluations
mkdir result_graphs/$domain/expansions
mkdir result_graphs/$domain/goal_reach_time
mkdir result_graphs/$domain/messages_count
... |
b062346bc4f204ce44e55beda59f276d072627db | 527 | #!/bin/sh
version=""
clean="no"
config_h="./src/config.h"
# Check options
for opt do
case "$opt" in
--clean)
clean="yes"
;;
esac
done
# Output config.h
if test "$clean" = "yes" ; then
cat > "$config_h" << EOF
#undef DGMPGDEC_GIT_VERSION
EOF
else
if [ -d ".git" ] && [ -n "`git ta... |
92318b754da14a4b3bdd71fbb0bab71322fadca8 | 535 | #!/bin/zsh
# written primarily to help delete certain files from a glob pattern
# with confirmation to exclude certain ones
function usage() {
echo "Usage: actionFile <command/program> [pattern]glob\n"
}
function actionOnGlob() {
for i in ${~2};do
#i=$(readlink -f "$i")
$1 $i 2>/dev/null
zenity --question... |
f07a1e055fd2bc72f173de19d1322ff8db0c40d4 | 923 | #!/bin/sh
name="psi"
version="0.9.2"
build="1"
_pwbuilder 0.6.3
_doc -d libpsi/iconset/ICONSET-HOWTO
_source -m e29f90aea7d839f2a70e4a6e77e95a70 -s 1154392 -f
_patch -p 0 translations
_patch no_online_status
_patch no_default_status_text
_patch status_history
_patch status_indicator
_patch offline_status
_have_li... |
2e93d023c078e535bd69f6d4f3d8110e5ef837b9 | 185 | #!/bin/bash
if [ -c "/dev/dax0.0" ]; then
bash ./setup_eval.sh
fi
fs=`mount`
for i in 0 1 2 3
do
str=`echo $fs | grep pm$i`
if [[ -z $str ]]; then
bash ./setup_eval.sh
fi
done |
9df3c9e4fbcffd3c6961a6cfb237a37b6eb56e52 | 2,651 | #!/usr/bin/env bash
set -eu
platform=$(uname)
if [[ $platform == 'Darwin' ]]; then
# Homebrew
if ! command -v brew &> /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo "Updating homebrew"
brew install --cask xquartz iterm2 keepingyou... |
cf39b5d4419767712abe72ee3b38bb9db4f90d62 | 166 | #!/bin/bash
err=0
trap 'err=1' ERR
rm -rf oml
git clone https://github.com/ConorOBrien-Foxx/OML.git oml
cd oml
gcc -Wall -Wextra -O2 -o oml -lm OML.c
exit "$err"
|
036719c8bd31c926cafe3b7424cd56459b0ebfce | 4,996 | #!/bin/bash
##################
# Constants {{{1 #
##################
PROG_NAME=$(basename $0)
VERSION=1.0
YES=yes
#########################
# Global variables {{{1 #
#########################
DEBUG=0
CONTAINER_IMAGE=
#CMDS_FILE=test_cmds.txt
CMDS_FILE=
TESTDATA_DIR=
REPO="BioContainers/containers"
GITHUB_STATUS_TOK... |
235df33dffb74e85926f827c0cd12d16b710dbd7 | 2,144 | #!/bin/bash
# > opensim installation script
# version: 1.0.0
# last modified: 08/05/2020
# -------------------------------------------------------------------------------------------------------
# > sudo test
if [ "$EUID" -eq 0 ]
then echo "This script should NOT be run as root; run as current user and onl... |
07aa8f0f93da7424facaa84444456be5af1bbcd8 | 39 | #!/bin/bash
rm -rf a.out *.o time.log
|
3b4a0569afb211ce2358e62aa7a0811f65532b52 | 2,145 | #!/bin/bash
bold=`tput bold` # per formattare il testo in corsivo
normal=`tput sgr0` # resetta gli attributi del testo
# lista degli script bash componenti il progetto:
INIT_REPO=./init_repo.sh
COMMIT=./commit.sh
REMOVE=./remove.sh
REVERT=./revert.sh
STATUS=./status.sh
FILE_SEARCH=./file_search.sh
# lista di funzioni... |
3af5b4f10f068f844f2d7476df5c21aa0c00c886 | 200 | #!/bin/sh
### list-commands
##+ - List available commands
find "$HOME/git-shell-commands" -xdev -mindepth 1 -maxdepth 1 -type f -execdir grep -E '^##[+#] (.+)$' "{}" \; | sed -Ee 's/^##[+#] //;'
|
68ec8e65ccbbd6ece5cb7e9b73eac1ba6f18b018 | 406 | #!/bin/bash
# =============================================================================
# Sources all functions
# =============================================================================
echo "Sourcing all functions"
for func in **/*.sh; do
. "$func" || err=true
if [ "$err" == "true" ]; then
echo "S... |
8b0e7caf5896d0a55d00c29ef7958774022dad7f | 1,510 | #!/bin/sh
set -e
# wget https://gist.github.com/raw/4330598/adaf598a78d568dbfada596441bdfad3b4dd3f97/25_windows_uefi
# Probe for UEFI entries in EFI system partition
prefix="/usr"
exec_prefix="${prefix}"
datarootdir="${prefix}/share"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
. "${datarootdi... |
2f051b631217b18e88864b86732e5abba19db45d | 259 | ./expr_pathsol_rota_16_cbs.sh &
./expr_pathsol_rota_16_smt.sh &
./expr_pathsol_swap_16_cbs.sh &
./expr_pathsol_swap_16_smt.sh &
./expr_pathsol_perm_16_cbs.sh &
./expr_pathsol_perm_16_smt.sh &
#./expr_pathsol_mapf_16_cbs.sh &
#./expr_pathsol_mapf_16_smt.sh &
|
cb34fe0715aad629a5705833c2bd3cdd2a5dda7d | 929 | #!/bin/bash
. ./util.sh
# Setup Gluster
desc "Starting glusterd service in centos-master"
run "systemctl start glusterd.service"
desc "Check peer status"
run "gluster peer status"
desc "Starting glusterd service in centos-minion"
run "ssh centos-minion systemctl start glusterd.service"
desc "Add peer centos-master... |
b8a5682c8fb71f5dbc531954495727d463e8d2e7 | 3,738 | #!/bin/bash
# This script loops through the cluster configurations specified in
# clusters.json, bringing up the cluster as defined and then running
# all the YCSB benchmarks against it, and then pulls the results.
# ensure google cloud project is set
project_id=`gcloud config list project | sed -n 2p | cut -d " " -f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.