blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
960e406ca8a9bae8bc69bd9426f99cbb22a1f576 | 1,042 | #!/usr/bin/env sh
# generated from catkin/python/catkin/environment_cache.py
# based on a snapshot of the environment before and after calling the setup script
# it emulates the modifications of the setup script without recurring computations
# new environment variables
# modified environment variables
export CMAKE_... |
f5255e25aae35bb1f4a1b4c5276b7d4f26f9831c | 845 | #!/bin/bash
#
cp ~/public.md/datasets/sparse_grid_mixed/sparse_grid_mixed_d3_l2_ccxf2xgh_a.txt .
cp ~/public.md/datasets/sparse_grid_mixed/sparse_grid_mixed_d3_l2_ccxf2xgh_b.txt .
cp ~/public.md/datasets/sparse_grid_mixed/sparse_grid_mixed_d3_l2_ccxf2xgh_r.txt .
cp ~/public.md/datasets/sparse_grid_mixed/sparse_grid_mix... |
1f3a47e680419f0ca2f8de1d1fe2ee894aadffd8 | 1,492 | #!/bin/bash
#
# Function to place text at left side of box and and put some '#'s around it
left(){
SP=$(( 62 - ${#1} ))
# put message together (formatted left-side message)
FLM=" # $1"$(printf %"$SP"s)"#"
}
#
# get system information
## system load
load=$(awk '{print $1}' /proc/loadavg)
#
## memory use
memUse=$(awk '/^... |
c1e6bee0186b1b0dfe9836f491d8c59b038dba39 | 464 | APP_NAME=Mwalima_test_environment
APP_ENV=local
APP_KEY=base64:AXg/+ePkXrRzUTmaskdB8f8PcHCjY5y2AJoOyj7w5/M=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=OOP
DB_USERNAME=root
DB_PASSWORD=qwerty
CACHE_DRIVER=redis
REDIS_HOST=127.0.0.1
REDIS_PORT=... |
6ba9f03ed021fff698ff3b2c65cf5f8fd94cee94 | 1,030 | #!/usr/bin/env bash
if [ $# -ne 1 ]; then
echo "Usage: kshell_kts.sh <kscript.kts>"
exit 0
fi
tmpfile=$(mktemp).kts
#echo '@file:Include("https://git.io/fAJ5h")' >> $tmpfile
echo '
@file:DependsOn("org.apache.hadoop:hadoop-common:2.7.0")
// should be now on maven central
@file:DependsOn("com.github.khud:ks... |
8b7977566d44737263f241b7a4d76ffc76b24dbf | 816 | #!/bin/bash
# Copyright Matus Chochlik.
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt
kind=${1}
shift
library=${1}
shift
test_src_dir="$(<SOURCE_DIR)/test/${kind}/${library}"
test_bin_dir="$(dirname ${0})/test/${k... |
364f064094da7b2977e544dc10ea441e42449d16 | 72 | #!/bin/bash
for f in *.zip; do
mv $f ../malware-source-${f%%.*}/
done
|
4a078051039898d29ac88448568f74dc67a7ee3d | 577 | #!/bin/bash
# This is a simple build script and will be executed on your CI system if
# available. Otherwise it will execute while your application is stopped
# before the deploy step. This script gets executed directly, so it
# could be python, php, ruby, etc.
set -x
source $OPENSHIFT_REPO_DIR/.openshift/action_hooks/... |
0f45f5753f0b1a4e99dbf55207608387ce9c5e8d | 461 | function eip () {
URL="https://github.com/ethereum/EIPs/blob/master/EIPS/eip"
eip_number=$(
fzf --no-sort \
--prompt 'Ethereum Improvement Proposal (EIP) >' \
--preview='echo {}' --preview-window=down:1:wrap \
--height=80% <"$FZF_EIP_HOME/.cache/eip-index" \
| awk '{ print $1 }'
)
#... |
f8ca411057ca6d3ecba01dcaf6563e389c4d08bd | 113 | #!/bin/bash
make
./daemon start
sleep 10
./daemon stop
sleep 60
rngtest < ~/random/buf
tail /var/log/syslog
|
e0e1ca12b316921187f534c84273b798a4d29cfb | 10,369 | python ../scimaf_dir.py --db agnddf_v1.5_10yrs.db
python ../scimaf_dir.py --db alt_dust_v1.5_10yrs.db
python ../scimaf_dir.py --db alt_roll_mod2_dust_sdf_0.20_v1.5_10yrs.db
python ../scimaf_dir.py --db baseline_2snaps_v1.5_10yrs.db
python ../scimaf_dir.py --db baseline_v1.5_10yrs.db
python ../scimaf_dir.py --db bulges_... |
aa68bf14efd0143c87070ae2907336e3bd877cfe | 447 | #!/bin/bash
jack_connect pyo:output_1 system:playback_6
jack_connect pyo:output_2 system:playback_6
jack_connect pyo:output_3 system:playback_6
jack_connect pyo:output_4 system:playback_6
jack_connect pyo:output_5 system:playback_6
jack_connect system:capture_9 pyo:input_1
jack_connect system:capture_10 pyo:input_2
ja... |
463c8711a3c9c9ef73f72de6a28253fdda120f94 | 117 | #!/bin/bash
curl -i -d '{"username": "user", "password": "password1"}' -X POST http://localhost:12345/signin | json
|
20c6ce3313b360072852a056021ae1d857d5da06 | 614 | #!/bin/bash
. config/import_all.sh
# Author: Ade Goodyer
# Created: 14/07/2020
# Description: Installation script to setup Odroid system as a media center for the living room.
# OS Version: Ubuntu 18.04.3-4.14-mate
# System prep
system_update
system_upgrade
# System basics
install_media... |
910b1cc590b653ff8de669e4ac230c31d13199c5 | 67 | docker run -p 90:80 -it -v "$PWD"/src:/var/www/html php:5.6-apache
|
a43e6e000dbf811f48927ccbac60f53e7dea32bc | 294 | #!/bin/sh
for days_ago in {0..5}
do
export month=`date -d $days_ago' days ago' +%m`
export year=`date -d $days_ago' days ago' +%Y`
export day=`date -d $days_ago' days ago' +%d`
$GWS_PATH/software/slstr_calibration_ftp_retriever/download_viscal_ompc.sh S3A $year $month $day
done
|
eec554b404d255c27105bf3726c7542751a5f576 | 875 | #!/bin/bash
# shutdown i3 or arch linux
i3exit="Exit i3"
shutdownc="Shutdown computer"
rebootc="Reboot computer"
case $(echo -e "${i3exit}\n${shutdownc}\n${rebootc}" | rofi -dmenu -markup-rows -i -p "What to do?") in
${i3exit})
if [[ $(echo -e "No\nYes" | rofi -dmenu -markup-rows -i -p "Really ${i3exit}?"... |
6dac09ef7c29cf4bfa6a0a75ba23f0196343b129 | 2,813 | #!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initia... |
c8999ec0ec0b2b3c84b799c614dc775cb081a43c | 199 | if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# vim: filetype=sh foldmethod=marker textwidth=0
|
bdff290d1b30ed87289a71be1d2ddec606e171bd | 71 | #!/bin/sh
. ./simple_t0.lib
echo Echo 1
in_t0 echo Echo 2
echo Echo 3
|
bd49865f2b1f33d881606c4780b470c04ca0340f | 1,052 | # packages for building kernel
# pwclient
curl -L https://patchwork.kernel.org/pwclient/
# for new machine and kernel
# timezone setup
timedatectl set-timezone America/Los_Angeles
timedatectl
apt-get update
apt-get install -y --no-install-recommends \
bc \
build-essential ... |
427b6443cc5cd03cfc1a7ecdf2a05e2adaa60fda | 649 | #!/bin/bash
set -e
if [ $# -lt 2 ]; then
echo "Usage: $0 <yum.conf> <url>"
exit 1
fi
yumorig=$1
url=$2
shift; shift
TEMPDIR=$(mktemp -d)
trap "rm -rf $TEMPDIR" EXIT
# repo names must be unique, or yum will get confused between different OSes and URLs
reponame=undertest-$(basename $yumorig .conf)-$(echo $url | ... |
2962fa678e78abbe43afb1f6dea39c36680b55c1 | 213 | #!/bin/bash
CONF_DIR=$(cd $(dirname ${BASH_SOURCE[0]} )/.. && pwd)
sudo dnf -y install emacs
if [ -h ~/.emacs ]
then echo ".emacs is already in place"
exit 1
fi
rm -fr ~/.emacs
ln -s ${CONF_DIR} ~/.emacs
|
d2ed7b72bd132ef8bc5eccf1b32a5674e839825f | 582 | #!/bin/bash
# RMSE timeseries
for i in sync_improves_metric_lbc_expo sync_improves_metric_lbc_wave sync_improves_metric_separate_expo sync_improves_metric_separate_wave; do
echo "../plot/json2txt.py -f ${i}_32_{00,01,02,04,08,16}_0.metrics -r > R_rmse_${i}_32_0.metrics"
../plot/json2txt.py -f ${i}_32_{00,01,02,04,08... |
4914c07578d01e9948200714a120ea26b6b85d4e | 36 | echo test >> $HOME/test-inotify.log
|
5906e8607d4f4b4cb377785fd35487a608ce8b8b | 113 | #!/bin/bash
echo -n $(select-output-line -i "$1" -- adb shell pm list instrumentation|pn 1|perl -npe 's/.*://')
|
6284ae27cbc30d2c2a15ab1b154f41dea49d7877 | 3,403 | #!/bin/bash
VERSION=18.09.4
BIN_DIR=/usr/local/docker/bin
[ $# -ne 1 ] && echo "Usage $0 {install|uninstall}"
repeat() {
while true; do
$@ && return
done
}
install(){
# 安装 wget
which wget > /dev/null 2>&1 || { rm -f /etc/yum.repos.d/*.repo; \
curl -so /etc/yum.repos.d/epel-7.repo http://... |
c9290cdad9a08b8d140b86aca3afb8191be9db56 | 18 | #Comment
a=1
b=2
|
b2321fe35db1c10e9fdf4998dd67db5f54ee4764 | 95 | #!/bin/sh
sudo raspivid -c -o /home/pi/hacktionreplay.h264 -s -t 30000 -b 10000000 --nopreview
|
9a239d2000b0214bae68b8218908bc246ccd009f | 1,369 | #!/usr/bin/env sh
set -eu
BASEDIR=$(dirname $0)/..
find_file() {
find testing/data -name $1
}
does_file_exist() {
FNAME=$(find_file $1)
if [ -z ${FNAME} ]; then
return 1
else
return 0
fi
}
run_test() {
readonly outputname=$1
readonly tamname=$2
readonly test_fname=... |
d3b373aacca6aeb8d7605de13b65e10225cf9ef9 | 267 | #!/usr/bin/env bash
#prints "Holberton School"
#4th loop prints "bad luck"
#8th loop prints "good luck"
i=1
while [ $i -lt 11 ]
do
if [ $i -eq 4 ]
then
echo "bad luck"
elif [ $i -eq 8 ]
then
echo "good luck"
else
echo "Holberton School"
fi
((i++))
done
|
42d1d0be9a8c57f7f2973d826185e9af3cffb991 | 1,050 | #!/bin/bash
# Ask the user for their name
echo Hello, which type of query do you want?
read varname
echo I got $varname
echo dataset?
read data
echo I got $data
module load python/gnu/3.4.4
/usr/bin/hadoop fs -rm -r -f "task_fftmp.out"
if [ "$varname" == find_format ]
then
/usr/bin/hadoop fs -rm -r -f "task_fftmp.o... |
e830fe3a1209a9693702872cf9937fb359dde7bf | 383 | # Centos 7 libav Kurulum
## https://wiki.libav.org/Platform/Linux#Pre_Built_Static_Binaries
yum -y install autoconf automake gcc gcc-c++ git libtool make yasm pkgconfig zlib-devel
# Download lib av from https://www.libav.org/download/
cd /tmp
wget -nc https://www.libav.org/releases/libav-11.12.tar.gz
tar -xvf libav-1... |
81da7cb548da9d9cf91961694ba4212df289cf70 | 135 | #!/bin/sh
make WIDTH="1920" HEIGHT="1080"
make WIDTH="1280" HEIGHT="1024"
make WIDTH="1024" HEIGHT="768"
make WIDTH="800" HEIGHT="600"
|
6a75b7133730096d458de44f6292315a108378da | 615 | #!/usr/bin/env bash
TOOLS=()
wget -nv -O /tmp/nomad.zip https://releases.hashicorp.com/nomad/0.8.7/nomad_0.8.7_linux_amd64.zip; TOOLS+=(nomad)
wget -nv -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.4.2/consul_1.4.2_linux_amd64.zip; TOOLS+=(consul)
wget -nv -O /tmp/terraform.zip https://releases.hashicorp... |
4a9e2a2cb02937a78d7a51a78d9ed2484c234b7a | 140 |
export UTA_VERSION=uta_20210129
docker build -t gcr.io/clingen-dev/uta:${UTA_VERSION} .
docker push gcr.io/clingen-dev/uta:${UTA_VERSION}
|
30cf9b0082b26ca3ae3a43223a67b686fc27bf0b | 392 | #! /bin/bash
##########################################
# The MIT License (MIT) #
# Copyright (c) 2016 #
# Jeremy Cope #
##########################################
# The complete terms can be found in the #
# license file located in directory root.#
######... |
3b5dc253e402c21e1aacb9ed6a7f007958b5f111 | 59 | REACT_APP_AUTH_REDIRECT_URI=http://localhost:3000/callback
|
baf86ead33f4ee623d32d2a002962c92ff7978d1 | 354 | if [ -d "gmain/" ] ; then
rm -rf gmain/;
fi;
mkdir gmain;
if [ -d "output/" ]; then
rm -rf output;
fi;
mkdir output;
cd gmain;
g++ ../algorithm/algorithm.cpp ../algorithm/main.cpp ../algorithm/private.cpp -o gmain.exe;
./gmain.exe > ../output/output.tcl;
cd ..;
touch rmfile.bash ;
echo "rm -rf gmain; rm -rf output; r... |
dc5c7342d418c47b64777848974491cbc7b393fe | 349 | curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" \
localhost:8080/v2/apps -d '{
"container": {
"type": "DOCKER",
"docker": {
"image": "libmesos/ubuntu"
}
},
"id": "ubuntu",
"instances": "1",
"cpus": "0.5",
"mem": "512",
"uris": [],
"cmd": "while sleep ... |
64161d15a74861b3a767a8b2826379e9df5dc5e1 | 66 | PORT=4000
NODE_PATH=./src
REACT_APP_API_URL=http://localhost:3000
|
988add0f8e78f559a32f930f414315a896729159 | 103 | #!/bin/sh
if which openssl >/dev/null ; then
echo "<<<openssl_version>>>"
openssl version
fi
|
492c7030466c388c293869b3d83f183340e6e6e9 | 2,272 | #!/bin/sh
trap "echo 'install-result-failed: trap error';exit 1" ERR
echo "begin install brushClient>>>>>>"
#安装文件的路径,即install.sh等文件的路径
installFiles_path=`pwd`
echo "install files path :"$installFiles_path
#根路径
brushClientPath="/home/apps/brushClient"
#判断安装文件路径是否在/home/apps/brushClient路径下
if [ `echo $installFiles_path... |
719536ca0fd101eca6aff80aaeaabe207d9f6c16 | 2,406 | #!/bin/bash
#PBS -N DICELAB_one_node_iot_run
#PBS -l select=1:ncpus=16:chip_type=e5-2665:interconnect=fdr:mem=60gb,walltime=00:30:00,place=pack
#PBS -j oe
#PBS -q workq
######################################################
#$TMPDIR is used to access local_scratch -> /local_scratch/pbs.$PBS_JOBID/
#if [ ! -z "... |
4bb2a1f5665022ee8e0c4415acee5ed07b4de327 | 22 | ./Mensaje.py "$1" "$2" |
6ebdbb723b9f0fdceefee4986ae84a5ea8c89707 | 590 | #!/bin/bash
DBNAME="flame_mgr_db"
PASSWORD="123456"
USER_NAME="flame"
if_not_exist_create_database="create database if not exists ${DBNAME}"
if_not_exist_create_user="create user if not exists '${USER_NAME}'@'localhost' identified by '123456'"
grant_privileges="grant all privileges on ${DBNAME}.* to '${USER_NAME}'@'lo... |
dd28c1f9e274eb1d7dc8cb5e75d2f172fe96922e | 1,006 | #!/bin/bash
log_file=$HOME/install_progress_log.txt
echo -ne "Initiating...\n"
sudo apt-get -y update
echo -ne "Installing utils...\n"
sudo apt-get -y install git tig
sudo apt-get -y install make locate
sudo apt-get -y install whois
sudo apt-get -y install curl wget
sudo apt-get -y install silversearcher-ag
sudo apt... |
61b20d4d96a144deac3d1752159d3be849d0a06c | 1,067 | # File for misc config
# sane globbing failure
setopt cshnullglob
# If this is on, any parameter passed to `cd` that happens to be variable is
# expanded as such. I hate this.
unsetopt cdablevars
bindkey -v
bindkey -M viins "^[[A" up-line-or-history
bindkey -M viins "^[[B" down-line-or-history
bindkey -M viins "^P" ... |
b12ea9d4f241327a21e0ff73241cd84aa0fdc368 | 768 | #!/bin/bash
# Set Python version to be installed
export python_version=3.8.7
# Install dependency package
sudo apt install libffi-dev
# Download Python tarball
wget -P/tmp https://www.python.org/ftp/python/${python_version}/Python-${python_version}.tgz
# Build and install Python
cd /tmp
tar xvf Python-${python_vers... |
17a71b9a65b891d130e4c3b31212675a0b8d59d7 | 1,475 | #/bin/sh
if [ $1 = "start" ]; then
~/bin/villa-start.sh
elif [ $1 = "stop" ]; then
~/bin/villa-stop.sh
elif [ $1 = "restart" ]; then
~/bin/villa-stop.sh
sleep 2
~/bin/villa-start.sh
elif [ $1 = "status" ]; then
systemctl --user status ut_motion
systemctl --user status ut_vision
elif [ $1 = "... |
612daa5942477851e537d4b1c1e9fd6fd450a656 | 61 | #!/bin/bash
export PYTHONPATH=./:$PATH
python3.5 web/main.py
|
6099b3a6708dd7191addb3805633d3618cc5d5c0 | 407 | #!/bin/bash
echo "initializing deamon to monitor and upload files to ipfs created in filesdump dir."
inotifywait -m ~/Documents/InsightDC/filesdump -e create -e moved_to |
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
ipfs add ~/Documents/Insight... |
4e11f28a9a3ffbf2386240cb379022030d5b088f | 55 | rm -rf build out rebel.xml
rm -rf *.iml .idea .gradle
|
d3f2fb85c3081dd7e50f0b1b63fad53ed3c5f313 | 1,004 | #!/bin/bash
#
# 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 law or agreed to in writing, software
# distr... |
cc7c4f8bd793942e9e128c640db344a1c4f0b981 | 3,424 | #!/bin/bash
#SBATCH -J gro
#SBATCH --job-name aa_calc_residen
#SBATCH --partition=gpus
#SBATCH --get-user-env
#SBATCH --nodes=1
#SBATCH --tasks-per-node=12
#SBATCH --time=1500:00:00
source /etc/profile.d/modules.sh
module load cuda55/toolkit
source /home/wenjuan/work/scr/mdstress/bin/GMXRC
# please edit these to mat... |
745b7037d78b57130799500abfcb4563dfa5f49d | 4,610 | #!/bin/sh
# Qmail - mailquotacheck
#
# Author: Paul Gregg <pgregg@tibus.net>
# Url: http://www.tibus.net/pgregg/projects/qmail/
# Run this program ala: |mailquotacheck before your ./Maildir/ or ./Mailbox
# entry in the .qmail file. e.g:
# |/usr/local/bin/mailquotacheck
# ./Maildir/
# Default quota is set to 3000Kb ... |
c9091cc8b8dba39613baf028753d3a376b731adf | 927 | #!/bin/bash
if [[ "$1" == "profile" ]] ; then
echo "profiling code"
perl -d:NYTProf ./tests/runtests.pl
rm -rf nytprof.old || echo "no old to remove"
mv nytprof nytprof.old
nytprofhtml --open
elif [[ "$1" == "full" || "$1" == "all" ]] ;then
echo "full test, coverage and profiling"
rm -r... |
c6c9193e5ee2b7eda53cd99d72b077d93b9488d7 | 239 | #!/bin/bash
cd ~/differential-projects/crossroads/crossroads-anywhere/api
npm start &
API=$!
cd ../react-native
npm start &
PACKAGER=$!
open /Applications/React\ Native\ Debugger.app
echo -ne "1\n1\n" | npm run build
wait $API $PACKAGER
|
3707c115cfbb2b26f12b7f6e79ea3fdbb91b8c91 | 29 | pg_dump textme > textme.dump
|
3f9e7e1a4a82e7b8a1f5d2bc47f73b7b46bd02fe | 2,059 | #!/bin/bash
# check_apc
# Written by Brad Clark
#
# Checks APC UPS
#
progname=check_apc
version=0.3
author="Brad Clark"
if [ $# -lt 1 ]; then
echo "Usage: $0 -H host -C community [-w warning] [-c critical]"
exit
fi
snmpget="/usr/bin/snmpget"
community="public"
snmpversion=1
warn=85
crit=95
# nagios return values... |
1a9d262958bc08e499b289b5e59ed8781f792e6e | 199 | #!/bin/bash
source ../config
mkdir -p $CA_DIR
openssl genrsa -out $CA_DIR/ca.key 2048
openssl req -x509 -new -nodes -key $CA_DIR/ca.key -subj "/CN=kube-system" -days 10000 -out $CA_DIR/ca.crt
|
d3a865271ab8b439a6d9cb5e094e4440b97fc95e | 629 | #!/usr/bin/env bash
case "$PLAYER_EVENT" in
start|change) ;;
*) exit 0;;
esac
caption="♬ Spotify"
metadata=""
tries=0
while [ -z "$metadata" ]; do
metadata="$(playerctl -p spotifyd metadata)"
((tries+=1))
echo "Tries: $tries"
sleep 1
if [ $tries -ge 10 ]; then
notify-send "$caption" "Unable to get ... |
db9bdb567911e33c1824cae7a05a08bf0e804e75 | 641 | BIND_REST_API=9010
BIND_PROVIDER_API=9011
BIND_GATEWAY_API=9012
BIND_ADMIN_API=9013
LOG_SERVICE_NAME=gateway
LOG_LEVEL=debug
LOG_TIME_FORMAT=RFC3339
LOG_TARGET=STDOUT
LOG_DIR=/var/log/fc-retrieval/fc-retrieval/gateway
LOG_FILE=gateway.log
LOG_MAX_BACKUPS=3
LOG_MAX_AGE=28
LOG_MAX_SIZE=500
LOG_COMPRESS=true
GATEWAY_ID=10... |
04adf6e63d006acebac047a42b376ee0f32f0869 | 242 | #!/usr/bin/env bash
touchpadEnabled=$(xinput list-props 11 | grep "Device Enabled" | awk -F ":" '{print $2}')
if [ $touchpadEnabled -eq 1 ]
then
xinput --set-prop 11 "Device Enabled" 0
else
xinput --set-prop 11 "Device Enabled" 1
fi
|
10d3d060825f982ba6402f917d06521ed5db76fc | 870 | #!/bin/bash
NAME=${openssl[0]}
PROGRAM=${openssl[3]}
FILE=${openssl[2]}
EXT=${openssl[4]}
DLINK=${openssl[1]}
MD5=${openssl[5]}
if [ $REBUILD_ALL ]; then
echo Building $PREFIX32/$NAME because REBUILD_ALL=$REBUILD_ALL
elif [ -e $PREFIX32/$NAME ]; then
echo Skipping $PREFIX32/$NAME because we already have it
... |
5ee563800654b0a7578be57c6f09a090f3221d9c | 390 | #!/bin/bash
#Author: jeonghoonkang http://github.com/jeonghoonkang
if [ $1 = 'up' ]; then
echo "... updating"
#git add sect_serial_ttyUSB0.py
git add ./
git commit -m "by wonsik"
git push -u origin master
elif [ $1 = 'co' ]; then
echo "... installing"
git pull -u origin mast... |
fe9e03ad1736f7d08003de79855f52a5832356f3 | 147 | #!/usr/bin/env bash
git fetch -p
git branch -D $(git for-each-ref --format="%(refname:short)" refs/heads --merged="$(git base)")
git gc
git prune
|
c3f30564a298b99a8ab4914a9dfda5615dd8a0a6 | 151 | source "${BATS_TEST_DIRNAME}/../plan.sh"
@test "Version matches" {
result="$(ant -version | awk '{print $4}')"
[ "$result" = "${pkg_version}" ]
}
|
0ba9f6eb79882e2ded8d267b8c04be3610deb42a | 413 | #!/bin/sh
# /etc/kernel/postinst.d/unattended-upgrades
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in
linux-image-extra*::postrm)
exit 0;;
esac
if [ -d /var/run ]; then
touch /var/run/reboot-required
if ! grep -q "^$DPKG_MAINTSCRIPT_PACKAGE$" /var/run/reboot-required.pkgs 2> /dev/nul... |
74d46484b43e11d0dad3d97c3f4ec9f5d3415286 | 587 | #!/bin/bash
run_benchmarks() {
echo ====================================================
echo GOMAXPROCS=$GOMAXPROCS
echo GOROUTINES=$GOROUTINES
for file in $(ls **/*.go); do
base=$(echo $file | cut -f1 -d.)
echo running $base
time ./$base
echo
done
}
main() {
e... |
46609895cf13fcaee62bb4a72fccd74ab22e4ef2 | 830 | # Maintainer : Daniel Bermond < yahoo-com: danielbermond >
pkgname=python2-lmdb
pkgver=0.92
pkgrel=1
pkgdesc="Universal Python2 binding for the LMDB Lightning Database"
arch=('any')
url="https://github.com/dw/py-lmdb/"
license=('custom')
depends=('python2' 'lmdb')
makedepends=('python2-setuptools')
source=("https://gi... |
5b2229ef8411297a14174d555e52e53749d06318 | 734 | #!/bin/bash
if [ -z $1 ];then
echo 'USAGE:CONTENTTITLEAND FILENAME'
exit 0
fi
filename=result
echo "">$filename
URL=(`sed -n 's/.*>\(.*\)<\/url>/\1/p' $1`)
DOCNO=(`sed -n 's/.*>\(.*\)<\/docno>/\1/p' $1`)
CONTENTTITLE=(`sed -n 's/.*>\(.*\)<\/contenttitle>/\1/p' $1`)
CONTENT=(`sed -n 's/.*>\(.*\)<\/content>/\1/p' $... |
0bf18b779be630b094983fd2f26413f8a6db19bc | 170 | folder=$(realpath $(cat ../datafolder))
cool=$folder/coolers/Bonev_ES.mm9.mapq_30.1000.mcool
for bed in $folder/beds/CGI*.bed; do
qsub make_pileups.sh $cool $bed;
done
|
1ad507fc586680606a343fa87601f5a1c5008eb9 | 206 | #!/bin/bash
TODAYSBACKUP=`date +%Y-%m-%d`
PASSWORD=$1
for i in ${@:2}; do export=$TODAYSBACKUP\_sql_$i.sql; /usr/local/bin/mysqldump -u db_export -p$1 "$i" > ~/Documents/Database\ Exports/"$export"; done
|
11c3c4e917722cd5dcea5397b5db09b95a97a7ae | 171 | echo "echo" > _ex3.txt
chmod 666 _ex3.txt
ls -l _ex3.txt > ex3.txt
chmod 707 _ex3.txt
ls -l _ex3.txt >> ex3.txt
chmod 660 _ex3.txt
ls -l _ex3.txt >> ex3.txt
rm _ex3.txt
|
4d3ab0624ff1acf1979912771b7f571169f0589d | 666 | #!/bin/bash
### EggNOG
# http://eggnogdb.embl.de/#/app/downloads
wget -N https://raw.githubusercontent.com/MaastrichtU-IDS/d2s-transform-template/master/datasets/eggnog/download/NOG.annotations.tsv.gz
wget -N https://raw.githubusercontent.com/MaastrichtU-IDS/d2s-transform-template/master/datasets/eggnog/download/NO... |
9299b410757f75270aa678feee58c3c67e6e9c30 | 527 | #!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
export COMPOSE_FILE=local.yml
stop_stack()
{
echo "Stopping compose environment..."
docker compose down
}
if [ ! -f .env ]; then
echo "Creating .env file from example..."
cp .env.example .env
fi
echo "Building compose environment..."
docker ... |
8aa5ff22237ea68e6941a1b5a783c0c3efb4b437 | 132 | #!/bin/bash
source ~/last_task_number.txt
((TaskNumber++))
echo $TaskNumber
echo "TaskNumber=$TaskNumber" > ~/last_task_number.txt
|
7969bd792f292874e1d86dd5f2928c85e7fab168 | 48 | HOST=
PORT=
USER_DB=
PWD_DB=
PORT_DB=
NAME_DB = |
9f9d184bedb4fa4c0b3d7f237650861af904dd10 | 410 | #!/bin/sh
export LD_LIBRARY_PATH="/usr/lib32/mjpg-streamer/"
mjpg_streamer \
-i "input_uvc.so -r 1280x720 -d /dev/video0 -f 30" \
-o "output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www"
# mjpg_streamer -i "input_uvc.so -r 1280x7... |
52ab57f5372323e4d0ae652a9db919ba3e6acc2c | 686 | #!/bin/bash
set -e
source $SERVER_CONFIG/data.cfg
if [ ! -z "$1" ]; then
echo "Connecting $1 cluster"
else
echo "A cluster name is needed"
exit 1
fi
#-------------------------------------------------------------------------------#
# Iterage over each nodes and #
#-------------------------------------------... |
6ad93294380cd018eb9a65206521a5774b37a098 | 572 | #!/bin/bash
mv r102.png 102.png
mv r103.png 103.png
mv r104.png 104.png
mv r105.png 105.png
mv r106.png 106.png
mv r107.png 107.png
mv r108.png 108.png
mv r109.png 109.png
mv r110.png 110.png
mv r111.png 111.png
mv r112.png 112.png
mv r113.png 113.png
mv r114.png 114.png
mv r115.png 115.png
mv r116.png 116.png
mv r117.... |
66db5ea9ad1c401ac120772f27af61015fb19cc8 | 101 | #!/bin/bash
echo -n "Enter a name to search for: "
read name
grep -i $name ~unx510/2017b/phonebook
|
d61f003f58430927ee50bd4feb6145e1885b0b4f | 1,517 |
## ------ Pre-processing custom data --------
# Settings
ROOT_DATA_PATH=../raw_data
DATA_PATH=ami_dialsum_corpus_stories
ROOT_RESULT="../logs/${DATA_PATH}_bertsumextabs"
mkdir $ROOT_RESULT
RESULT_PATH="${ROOT_RESULT}/eval" # Root name for all generated files
LOG_FILE="${ROOT_RESULT}/eval.log"
BERT_DATA_FULL="${BERT_... |
acd57b8d255c553bc937459f2f3e6735fc2133f2 | 8,412 | #!/bin/bash
BRANCH="${1}"
SIGNATURE="${2}"
generate_post_data()
{
cat <<EOF
{
"body": "{\"ref\":\"refs/heads/master\",\"before\":\"6c61e633aed661a686706c606ee574c9ecb2dfb4\",\"after\":\"34449752e44b1df6fb8a56b01413297ccc3df6b9\",\"created\":false,\"deleted\":false,\"forced\":false,\"base_ref\":null,\"compare\":\"... |
7f7615940a73c1dbe06029775d08d7e3689ba931 | 103 | #!/bin/sh
echo Sleeping for "$WAIT" before running \"goldapps "$*"\"
sleep "$WAIT" && /app/goldapps $*
|
c94d3a42e80048f62d7792adbb9b43f01e3bf148 | 3,694 | #!/bin/bash
# rotate.sh V0.7 191023 qrt@qland.de
# linux bash script for rotation control (display + touchscreen + optional pen)
# make script executable
# chmod a+x rotate.sh
# open a console and enter
# $ xinput -list
# note the input device(s) you want to rotate
#if unused -> DEVICE1=
DEVICE0="pointer:ELAN22A6:0... |
ae86c03c0449fd4870e5160100abcb2328fd40f0 | 191 | export NODE_PATH=/usr/local/lib/node_modules
export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/r21.0.1
if [ -f ~/perl5/perlbrew/etc/bashrc ]; then
source ~/perl5/perlbrew/etc/bashrc
fi
|
ea879831479a014143becca47424228fc9a06061 | 41 | #!/bin/bash
docker push nohaapav/alpine
|
2f49cd2f299223f5883b2e9835954a085fc7e46a | 9,902 |
cd /home/pthorpe/scratch/kenya_metab/pool1
cat db.fa Nempool1_S1_L001_PEAR/Nempool1_S1_L001.assembled.fastq.bio.chopped.fasta > assembled_fa_and_OTU_db.fasta
vsearch --derep_fulllength _L001.assembled.fastq.bio.chopped.fasta --output Nempool1_S1_L001_PEAR/Nempool1_S1_L001.assembled.fastqdrep.vsearch.fasta --sizeout
v... |
5dd49f08bfa02656d118978047bf01616f0c2205 | 320 | #!/usr/bin/env bash
set -e
node --version
npm --version
which node
cd tools/nodejs
make clean
./configure
npm install --build-from-source
npm test
npx node-pre-gyp package testpackage testbinary
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then
npx node-pre-gyp publish
npx node-pre-gyp info
fi |
2b79f53d2933c8aa9dd1d77d4af5c72812cd6c75 | 316 | #!/bin/bash
cd `dirname $0`
if [ -d "/opt/" ];then
\cp -rf ../file_life_cycle /opt/
fi
# file_life_cycle.service配置
if [ ! -e "/etc/systemd/system/file_life_cycle.service" ];then
\cp -f ./script/file_life_cycle.service /etc/systemd/system/
fi
# locate配置
\cp -f ./src/config/updatedb.conf /etc/updatedb.conf
|
4a5bf4d7ff9018047168da1f5b24af6ec7bedade | 76 | #!/bin/zsh
mkdir -p $HOME/.config
ln -f -s $DOTFILES/vim $HOME/.config/nvim
|
c4c2ddd48e0ff3e197b9e7a60129a12a25306b90 | 916 | #!/usr/bin/env bash
CHECK_RATE_FILE=plot_check_rate.txt
RESPONSE_TIME_FILE=plot_response_time.txt
rm $CHECK_RATE_FILE
echo "Command Check Rates" >> $CHECK_RATE_FILE
echo "Tasks in One Pod" >> $CHECK_RATE_FILE
echo "Average Check Rate (per sec.)" >> $CHECK_RATE_FILE
rm $RESPONSE_TIME_FILE
echo "Command Check Responsi... |
ef7fd3050e4a98a8f2cc7a78ded50f324b705baf | 111 | #!/bin/bash
echo "alpha " $1
echo "gamma 0.99"
echo "k 3"
echo "epsilon 0.1"
echo "episodes 1000"
|
81d00f5e7092613e51dd876c85aa834dd751dc31 | 207 | #!/bin/sh
cd /home/pi/Projects/noobdanbot/DanBot2/
git pull
x-terminal-emulator -e /usr/bin/python3 tg_adapter.py
cd /home/pi/Projects/noobdanbot/DanBot2/danddanbot/
/usr/bin/python3 danddanbot.py
$SHELL
|
3743d89d7f1b1047d5069e03db7b8313b40d04dd | 199 | #!/bin/sh
mkdir -p gui/resources
stack install
# upx gui/resources/calculus-toolbox
cd gui
resources/calculus-toolbox generateservantapi 'src/ServantApi.js'
# npm install
npm run build
npm run dist
|
4f32b735485ef457ca627bec3514c3c0e652cd5b | 824 | #!/bin/bash
# we type these by hand instead of using the values
# provided by conda-build:
# 1. to avoid special 'helpful' debug flags
# that breaks the mpicc/mpif90 wrappers.
# 2. also avoids many -f flags that causes a weird
# cmake `;list` conversion bug (either in cmake or the scripts)
# https://github.com/pyto... |
512bece1fddd85e07161fb94957355d77960210d | 1,285 | APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:yV7beQ5zyzAA/bcbKb3fnLnhwfUU5wG1hkg2Y/DdigI=
APP_DEBUG=true
APP_URL=http://RestaurantsProject.test
LOG_CHANNEL=stack
LOG_LEVEL=debug
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=my_application_db
DB_USERNAME=postgres
DB_PASSWORD=root
BROADCAST_DRIVER=lo... |
2f04d81194312d78e6d404dfa313ef98a5df396d | 69 | #!/usr/bin/env bash
echo sending information "$@"
echo "$@" > /input |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.