blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
ea6060f3f9e9196f44026e11d2789ab17da70b32 | 1,649 | #!/usr/bin/env bash
# jenkins build helper script for openbsc. This is how we build on jenkins.osmocom.org
#
# environment variables:
# * WITH_MANUALS: build manual PDFs if set to "1"
# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
#
if ! [ -x "$(command -v osmo-build-dep... |
c731ac962950f098748e1aec22603b6a7a3bbc07 | 814 | mkdir -p data
if [[ ! -f data/dictionary.txt ]]; then
wget -O data/dictionary.txt https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt
fi
if [[ ! -f data/dictionary_small.txt ]]; then
wget -O data/dictionary_small.txt https://raw.githubusercontent.com/first20hours/google-10000-english/mas... |
a6273af0e17e77dff1918800d294aefb0e6610bf | 48 | #! /bin/bash/
ps -elf |awk '{print $2,$3,$6$7}'
|
94acd18069a5bab4cee5578be1a0dbb0c3b2be6d | 2,028 | systemctl stop sshd
#rm -rf /etc/skel
#mv ../config/skel /etc/
useradd alfonzo -m -p '$6$rounds=4096$P65PHjtBjJ6el$r/GIe1OktX/1MpvEXFBazHH0vrN0TpN9xndOkKKd5vRRq4bXNSIT/3BwqLU/16WuE8raX1hq2VlbF8UulLiz31'
useradd sam -m -p '$6$rounds=4096$0ut.Q36mgUsrL$dymsL91iTnadEetup04SFXfnLWiOPuhAhxvqueZvLQ2.cCVRy/4kTusY6Cs23u0S.DBl... |
b26b45c417ab5c1a836245dd78e8e9c062953c43 | 4,338 | # Debug
#zmodload zsh/zprof
##########################################################################################
###########
# ZSHRC #
###########
export ZSH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
export ZSH="$HOME/.oh-my-zsh"
export ZSH_CUSTOM="$ZSH_CONFIG/custom"
if [[ "$TERM" != 'linux' ]]; then
... |
49c48ebcc9092318cbc2ca02ad54c3c494b85c6b | 140 | #!/bin/bash
# $1: filename 1
# $2: filename 2
./FlameGraph/difffolded.pl $1.folded $2.folded | ./FlameGraph/flamegraph.pl > diff_$1_$2.svg |
a780098f4a1ee6efed3a7c69bfde18a09f12abd5 | 600 | #!/bin/sh
### Shared header
cd "$(dirname "$0")"/..
COMPILEDIR="target/nxj"
mkdir -p ${COMPILEDIR}
cd ${COMPILEDIR}
if [[ $OSTYPE == darwin* ]]; then
export JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/"
fi
#######
if [[ $1 == -* || -z $1 ]]; then
#First parameter is arg or... |
a12cd175e7bb7f5e5418c137e5f7947a84c8f161 | 2,934 | #!/bin/bash
set -e
zulip_organization_url=$1
zulip_bot_email=$2
zulip_bot_api_key=$3
github_personal_access_token=$4
delete_history=$5
archive_branch=$6
checked_out_repo_path="$(pwd)"
html_dir_path=$checked_out_repo_path
json_dir_path="${checked_out_repo_path}/zulip_json"
img_dir_path="${checked_out_repo_path}/assets... |
4738c59ab6a78a5db9eb968db7ef7ef8b297c447 | 84 | #!/bin/bash
./a.out > test1k.out
echo -e "TEST1\n"
diff -bw test1k.out test1.out
|
2143d15b79b5fcc304c52f1585a20ad96d625c34 | 13,285 | #!/system/bin/sh
### FeraDroid Engine v0.25 | By FeraVolt.2017###
B=/system/engine/bin/busybox;
TIME=$($B date | $B awk '{ print $4 }');
RAM=$($B free -m | $B awk '{ print $2 }' | $B sed -n 2p);
CPU=$($B cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq);
FM=$((RAM*(64 + 1)));
FK=$(((RAM*10) - 2699));
EF=$(((RA... |
afe8279bdf9ce7dcf48d3948b959b72fc62edf1d | 881 | cd ..
set -u
export BASE=$(pwd)
cd SPEC17/benchspec/CPU/
N=$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}')
M=$(grep MemTotal /proc/meminfo | awk '{print $2}')
G=$(expr $M / 8192000)
P=$((G<N ? G : N))
i=0
for bench in bwaves perlbench gcc mcf omnetpp xalancbmk deepsjeng leela exchange2 xz bwaves cactusBSS... |
861c0dd3d2809d56dfcf66c516e05f4a1c8009bb | 172 | #!/bin/bash
set -e
set -x
# . ~/.nvm/nvm.sh
# version=`node -p -e 'require("./package").engines.node'`
# nvm install $version
# nvm use $version
# npm install
npm test
|
d0cf7be83bff39234a7c42e62556a691f4d5b4f0 | 18 | echo "I am v5715"
|
26ca50ec5e6db74b8c1691f5d3cb48987f4935ee | 2,230 | #!/bin/zsh
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
#ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive comple... |
ee71b744369a56e35e83f911a48f5566e6cfcd6b | 304 | #!/bin/bash
NAME="teknomancer.com"
KVMID="113"
MEM="512"
DISK="/dev/drbd113"
DISKIF="ide"
CD="$ISO/debian-503-amd64-netinst.iso"
BOOT="c"
MONITOR="$MON/113.mon"
KVMMAC="DE:AD:BE:EF:50:20"
TAPMAC="DE:AD:BE:EF:15:27"
NICMODEL="e1000"
IFNAME="kvm113"
IP="208.64.38.113"
VNC=":13"
MIGPORT="4456"
OPTIONS=""
|
f973f3de755de411075678f5dc94d31ae5538c8c | 129 | #!/bin/bash
rsync --exclude '*.txt' -avxtz ../fbscrape www.malioglasi.rs:~/
rsync --exclude '*.txt' -avxtz ../fbscrape guyromm:~/ |
e362e7d205ed796692ab92f586d97352f750bfb3 | 2,890 | # durdn/cfg related commands {{{
function dur {
case $1 in
list|li)
curl --user $2:$3 https://api.bitbucket.org/1.0/user/repositories 2> /dev/null | grep "name" | sed -e 's/\"//g' | col 2 | sort | uniq | column
;;
clone|cl)
git clone git@bitbucket.org:durdn/$2.git
;;
install|i)
bash $HOME/.c... |
b5d2270a3dc03fe12569a4c9db77f9e530c27cdd | 429 | # 20MHz, SGI, Rx LDPC, Rx STBC Disabled, GF Disabled, Tx STBC Disabled,MU Beamformee, 1x2
./mlanutl mmlan0 deauth
./mlanutl mmlan0 antcfg 0x101 0x303
./mlanutl mmlan0 htstreamcfg 0x11
./mlanutl mmlan0 bandcfg 127
./mlanutl mmlan0 httxcfg 0x02D
./mlanutl mmlan0 htcapinfo 0x00C00000
./mlanutl mmlan0 httxbfcap 0x19E74608
... |
f8c59ae53492e9a49ffbdb9fcdb3f9004ebb632c | 43 | cp -rf * /User/gattaca/Sos
git commit -m $1 |
4330cc2c3a77a67ec783abfc3fd738d4ec9547b7 | 172 | git clone https://github.com/krishnareddy830/myweb.git
ls
cd myweb/
touch manoj
git status
git add .
git status
git commit -m 'manoj123'
git commit -m 'krishna123'
git log
|
1a0a7c4a27506136f89ffc27b3aab6e6b964257f | 265 | #!/bin/bash
CUR_DIR=${0}
if [ -e "$CUR_DIR/phpmd_results.html" ]
then
rm phpmd_results.html
fi
./vendor/bin/phpmd . html 'unusedcode,design' --exclude log/,phpMyAdmin/,vendor/,templates/,templates_c/,includes/smarty/,includes/smarty-master/ >> phpmd_results.html |
f4f547487ce3e8ece3f03a32b10d96dff7e10e42 | 181 | echo "Hello from the second script"
echo $MY_JOB_NAMESPACE
if $MY_JOB_NAMESPACE == default; then
curl broker:8080/rest/init
else
curl broker.$MY_JOB_NAMESPACE:8080/rest/init
fi
|
f5d22e7274c2d0c45f4182ecc901af10a8a1da7d | 1,481 | #!/bin/bash
#
# Extract the night's guider data (seeing, etc.) from the processed guider
# files and put the result in a .par file based on the MJD. Then check
# that file in to the speclog product.
#
# Must be run as observer@sos3, designed for crontab.
#
# Requires ~observer/bin/sjd.py and guidermonfile.pro from idl... |
d7a5cf595e0b952c5f5ccb7c003f8eb531fb7208 | 1,907 | #!/bin/bash
# Copyright 2019 DeepMind Technologies Limited. 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 ... |
4fb69568a76ab54d9e6371b18f95b96306152c9f | 238 | mysqlPvcName=mysql
mysqlStorageClass=mysql-gp2
mysqlStorageType=gp2
mysqlStorageSize=20Gi
awsRegion=ap-southeast-1
artifactRepositoryBucket=mlpipeline
artifactRepositoryKeyPrefix=artifacts
pipelinePath=pipelines
groupConcatMaxLen=4194304
|
2a740c62616a8f98853449b6ec5be7e740a1c9e5 | 195 | #!/usr/bin/env bash
mkdir -p "$3"
STAR --runThreadN "$4" --genomeDir ./aux/star_mm10 --readFilesIn "$1" "$2" --readFilesCommand zcat --outFileNamePrefix "$3" --outSAMtype BAM SortedByCoordinate
|
bfba4c45dfec800b1a61206bfe0565882bfa5ed7 | 127 | #!/bin/bash
module load anaconda3/personal
anaconda-setup
conda search numpy
conda install numpy
conda install matplotlib
|
39bc0c38a9d8833ae565d26f0602cec092ec9430 | 317 | #!/bin/bash
if [ $# -lt 2 ] ; then
echo "Usage: ./rest.sh URL MODEL_ID"
echo ""
exit 1
else
URL=$1
model=$2
echo ""
curl \
-d @card_data.json \
-X POST \
${URL}:8080/models/${model}/score \
-H "Content-Type: application/json"
echo ""
exit 0
fi
|
735dabe543fc88d24ad1fbbded00ac50746d48ac | 414 | mpiexec -np 32 parun --TwoPhaseFlow -f gaussian_2D.py --path "./../" -l5 -v -F -O ./../petsc.options.asm -C "final_time=30.0 dt_output=0.1 Lx=60.0 bA=0.5 mwl=0.75 A=0.05 sig2=2.0 he=0.005 structured=False"
#mpiexec -np 32 parun --TwoPhaseFlow -f gaussian_2D.py --path "./../" -l5 -v -F -O ./../petsc.options.asm -C "fina... |
ed574d59f66f170a0f9eaeb0ef7a7e37b74eb344 | 607 | objModl=$1
mdlConf=$objModl.cfg
if [ ! -f $mdlConf ];then
mdlConf="../bkup/$mdlConf"
if [ ! -f $mdlConf ];then
echo "Not found config file:$mdlConf"
exit 1
else
echo "Use bkup cfg:$mdlConf"
fi
fi
#vcp begin
while read VCP;do
i=0
for raw in $VCP;do
if [ $i -eq 0 ];then
TYPE=$raw... |
da9d683d2b226870507d48b812c563e6f816f43b | 397 | REACT_APP_ADMIN_API_URL=https://obscure-inlet-52224.herokuapp.com/api/v1/admin
REACT_APP_EMPLOYEE_API_URL=https://obscure-inlet-52224.herokuapp.com/api/v1
REACT_APP_PROFILE_API_URL=https://obscure-inlet-52224.herokuapp.com/api/v1/profile
REACT_APP_AUTH_API_URL=https://obscure-inlet-52224.herokuapp.com/api/v1/auth
R... |
2083f521f6491c6a2202fe14333ec286ac8457f1 | 142 | REACT_APP_API=http://localhost:5001
REACT_APP_PAYPAL_CLIENTID=AftEy9vAIAiUHHvwjkvjWZNNSglrx2ekHpC2-9WoLMyEW_wd0rlL-Xe-JnJNQXtIu9L6ENzKdScvZ-n_ |
f83c638ee3592e32de4c87eecf8aa95e28a8277f | 465 | # Julius起動スクリプト 自然言語版
julius -C juliusNL.jconf -module > /dev/null &
echo $!
sleep 4
# -moduleオプション= Juliusをモジュールモードで起動
# /dev/nullはlinuxの特殊ファイルで、何も出力したくない時に指定する。
# $! = シェルが最後に実行したバックグラウンドプロセスのID
# サーバーが立ち上がる前にアクセスしようとするとエラーになるので数秒待つ
|
8c5cf4df972fd4279eccefadf0ee31dde9e546b7 | 482 | #!/bin/bash
##########################################################
#### Author: Blaine McDonnell (blaine@armoin.com) ####
#### Usage: ./systemsystem_get_ssidList.sh ####
#### Description: Gets list of available SSIDs ####
#### Version: 0.1 (depricated) ####
#############... |
3ca773ca9a0b2e4c8a1ab0872e29de5b1b39e898 | 2,193 | #!/bin/sh
BOXES_VERSION=3.26
BOXES_PATCH=2
DOWNLOADDIR=/tmp/box-download
BOXESWORKDIR="${DOWNLOADDIR}"/boxessrc
BOXESBUILDDIR="${BOXESWORKDIR}"/gnome-boxes-"${BOXES_VERSION}"."${BOXES_PATCH}"
BOXES_GITSOURCE_URL=https://github.com/GNOME/gnome-boxes/archive/v${BOXES_VERSION}.tar.gz
BOXES_SOURCE_URL=https://download.gnom... |
c567862b2b579254eef18bad74213e7410c72ebb | 1,396 | #!/bin/bash
# Based on
# http://sleepycoders.blogspot.com.au/2013/03/sharing-travis-ci-generated-files.html
# and https://github.com/richfitz/wood
echo -e "Preparing to copy generated files to fatiando.github.io"
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo -e "Starting to... |
c2a398363ba347551a9607c98d0161173d811b6f | 77 | #!/bin/bash
# run java file
#javac Client.java
#sleep 5
java Client $@
|
94d2c458952a22da9d3c65de305067d50c05b2aa | 2,709 | #! /bin/sh
# This script install elasticsearch by using the dkpg installer
# so if for any reason you need to delete this elasticsearch
# so run just
# sudo dpkg -r elasticsearch
# if your keyboard is qwerty, you can change it by typing
# setxkbmap fr , Note that this is not related to what we
# are doing n... |
3d7d44e996b79c63226bb617a98a0bfbf5b805a3 | 163 | . ./env.sh
. ./keys.sh
confluent api-key use $SRC_CLI_API_KEY --resource $SOURCE_ID
confluent kafka topic consume dr-topic --group cli-consumer --from-beginning
|
f1096300730c77a582faa9a7dfcac8617f32f089 | 2,579 | #!/bin/bash
# Script framework for virtual machine provisioning.
# Author: Jefferson Hudson
#---------------------------#
# Function defs and imports #
#---------------------------#
SERVER=""
authorized_keys(){
wget "$SERVER"/scripts/config-authorized_keys.sh \
-O /tmp/config-authorized_keys.sh
source /tmp/confi... |
80fb9e8445f270bd0ed475e8dd77df4d60b329da | 280 | #!/bin/sh
# Changing the line below? Update https://cloud.docker.com/u/commonworkflowlanguage/repository/docker/commonworkflowlanguage/cwltool
exec docker run -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp -v "$PWD":"$PWD" -w="$PWD" commonworkflowlanguage/cwltool "$@"
|
e1ec76bde317ddec714fba54149353b43329b9cb | 108 | #!/bin/bash
echo "New file is created"
echo "Your user name is : " `${id -un}`
echo "Your UID is : " ${UID}
|
78a7535df0d1ef02653103c851b7ff0cf9760fb9 | 103 | iternum=$1
echo $iternum
for ((c = 1; c <= $iternum; c++))
do
python ../MapReduce/Appraiser.py &
done
|
6972cca5fe9eeac859d83979f28968345e615cab | 83 | gcc LU_Matrix_Par.c -fopenmp -o LU_Matrix_Par
gcc LU_Matrix_Seq.c -o LU_Matrix_Seq
|
842456655dce9f9f19cb137a44db3d2c02113e44 | 3,123 | #!/bin/bash
set -x
### ORTHOGRAFOS ###
python3 train_orthografo.py
python3 create_L.py
# create L fst
fstcompile --isymbols=L.syms --osymbols=L.syms L_fst.txt L.fst
fstdeterminize L.fst L_det.fst
fstminimize L_det.fst L_min.fst
# Create S1 fst
fstcompile --isymbols=L.syms --osymbols=L.syms I_fst.txt I.fst
fstcompile... |
df4a9301abbfc12e3898490acf172e6939b9f459 | 142 | #!/usr/bin/env sh
# gen .pot files
make gettext
# update .po files for existing langs / create new
sphinx-intl update -p _build/locale -l ru
|
5517984f62bd61bb8cfa2b57ddc549876848872d | 265 | #!/bin/bash
date=(`date +"%m/%d"`)
ndate=(`date +"%m%d"`)
time=(`date +"%H:%M"`)
temp=(`vcgencmd measure_temp`)
str=$date" "$time","${temp:5:-2}
echo $str >> "/var/www/html/temp/"$ndate"_temp_log.csv"
echo sudo chmod 777 "/var/www/html/temp/"$ndate"_temp_log.csv" |
30b8b61fd92752ec9bde121093080ea7b20627c6 | 350 | #!/bin/bash
CPID=`cat {{cassandra_home}}/current_cassandra/bin/cassandra.pid`
echo "Kill Cassandra process: $CPID" > /home/{{ansible_ssh_user}}/cpid
chown {{ansible_ssh_user}}:ged /home/{{ansible_ssh_user}}/cpid
echo "Kill Cassandra process: $CPID"
kill $CPID
echo "Wait for process to finish, timeout 60s"
timeout 60 ... |
d2941b9f7aba797bf12f692ce18cd8756afebc59 | 495 | #! /bin/bash
set -exo pipefail
OUTPUT=$(vault operator init -key-shares=1 -key-threshold=1)
echo "$OUTPUT"
echo "saving unseal key to unseal-key.txt"
echo "$OUTPUT" | grep "Unseal Key" > unseal-key.txt
echo "saving initial root token to root-token.txt"
echo "$OUTPUT" | grep " Initial Root Token" > root-token.txt
e... |
c1c2f48224b8ad10da9fbddc2779c2f97c02f768 | 833 | #!/usr/bin/env bash
# Do not use this script manually, Use makefile
set -eu -o pipefail
# Check param or use default
if [[ $# -eq 1 ]]; then
if [[ $1 == "windows" ]]; then
export GOOS=windows
export GOARCH=amd64
elif [[ $1 == "linux" ]]; then
export GOOS=linux
export GOARCH=amd64
elif [[ $1 == "... |
b1245a7deb061cc7e84f7dd1ea6dc72432fc8db1 | 2,517 | #!/bin/sh
# $FreeBSD: src/tools/regression/fstest/tests/chflags/09.t,v 1.1 2007/01/17 01:42:08 pjd Exp $
desc="chflags returns EPERM when one of SF_IMMUTABLE, SF_APPEND, or SF_NOUNLINK is set and securelevel is greater than 0"
dir=`dirname $0`
. ${dir}/../misc.sh
require chflags
echo "1..102"
n0=`namegen`
n1=`name... |
144a53d4374784bb82c62d5e3f65498ad37bc510 | 2,439 | [[ $- != *i* ]] && return
# Path Inserts
if [ -d "$HOME/.bin" ] ;
then PATH="$HOME/.bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ;
then PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/go/bin" ] ;
then PATH="$HOME/go/bin:$PATH"
fi
if [ -d "$HOME/scripts" ] ;
then PATH="$HOME/scripts:$PATH"
fi
# PS1
# g... |
70db81365e595838381874b6ed8e1ef45cc87a29 | 885 | #!/bin/bash
# if version not set, set to local default
if [[ "$REF" == "refs/heads/main" ]]; then
VERSION="latest"
elif [[ "$REF" =~ refs/tags/* ]]; then
VERSION=$(echo ${REF#refs/tags/})
else
VERSION=$(whoami)
REF='refs/heads/main'
fi
image_prefix="runiac/deploy:$VERSION-"
echo $image_prefix
docker buil... |
b065f051fb1c9509f79e919f504b079c6a453ead | 72 | THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python evaluate.py
|
89ea8a184f84449e6e75c8455c1abecaca67b8de | 21 | split -l 8000000 $1
|
f2ae9b414c7b078f4d5d6ce2fceda79d75424f17 | 644 | #!/bin/bash
# wh whois 节点名字查询
# 把这个脚本重命名为'wh', 然后放到/usr/local/bin目录下.
# 需要符号链接:
# ln -s /usr/local/bin/wh /usr/local/bin/wh-ripe
# ln -s /usr/local/bin/wh /usr/local/bin/wh-cw
# ln -s /usr/local/bin/wh /usr/local/bin/wh-radb
E_NOARGS=65
if [ -z "$1" ]
then
echo "Usage: `basename $0` [domain-name]"
exit $E_NOARGS
f... |
8296802f2fd3d651cc9871e767697fb7b1d22470 | 263 |
export BOWTIEDB="/ifs/data/c2b2/ngs_lab/ngs/resources/bowtie_DB/Thaps3/sequence/Thaps3"
export GENES="/ifs/data/c2b2/ngs_lab/ngs/resources/bowtie_DB/Thaps3/annotation/genes.gtf"
export BASEDIR="/ifs/home/c2b2/ngs_lab/ngs/code/NGS/RNA_seq/"
export GENO="Thaps3"
|
c6dc140c9dc706dcf66446c4deb9a055513b1cfb | 2,648 | #!/bin/bash
diff --brief --report-identical-files ../AMPds.1/Electricity_B1E.csv ~/Desktop/public/Electricity_B1E.csv
diff --brief --report-identical-files ../AMPds.1/Electricity_B2E.csv ~/Desktop/public/Electricity_B2E.csv
diff --brief --report-identical-files ../AMPds.1/Electricity_BME.csv ~/Desktop/public/Electrici... |
a1d68a4bc0284365b1c8bac217784d021e751bfb | 290 | #!/bin/sh
make -C /Users/jiahojian/Desktop/ThirdPartyRepos/build_xlua_with_libs/build/build_ios -f /Users/jiahojian/Desktop/ThirdPartyRepos/build_xlua_with_libs/build/build_ios/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.make$CONFIGURATION OBJDIR=$(basename "$OBJECT_FILE_DIR_normal") all
|
13ba2a05ee72b79ed0c748cda5b8265a09198384 | 34 | sudo dpkg -i thingsboard-1.2.3.deb |
158f6f0a3f153c5013c333a07704d253f3d4c65f | 371 | #!/bin/bash
# 1. Go to https://disc.gsfc.nasa.gov/datasets?keywords=imerg&page=1
# 2. Click Subset/Get data
# 3. Click get data after applying filters and download the subset...txt file
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies --content-disposi... |
ae833ab5414adba8f211241c32bb98299195f02a | 265 | DB_MONGO=mongodb://gabo:gabo@cluster0-shard-00-00.xwflq.mongodb.net:27017,cluster0-shard-00-01.xwflq.mongodb.net:27017,cluster0-shard-00-02.xwflq.mongodb.net:27017/graphql-backend?ssl=true&replicaSet=atlas-13xx82-shard-0&authSource=admin&retryWrites=true&w=majority |
1a4d29b4fb335f86a0ac925be0c0d0f032cbec6f | 1,551 | #!/bin/bash
set -x -e
source kernel
[ -n "${KERNEL}" ]
[ "$(uname -sr)" == "Linux ${KERNEL}" ]
[ -n "${SCAN}" ]
PRE="docker-compose --project-directory $PWD -f compose/unrestricted.yml"
RUN="docker-compose --project-directory $PWD -f compose/restricted.yml"
# Prepare
make -C workloads
${RUN} down --remove-orphans
${... |
0b9c3c76f67d6cc112214e8523332c74a085be6a | 183 | #! /usr/bin/env bash
set -x
echo "runner script... starting R Studio"
/init &
cd
mkdir /home/jovyan/rlib/
######################
# Run extra commands #
######################
$@ |
511176acd6682084f7510dd4d17ad8ef1fab8a89 | 109 | DB_HOST=localhost
DB_PORT=5432
DB_NAME=dbname
DB_USER=user
DB_PASSWORD=password
SESSION_SECRET=sessionSecret
|
3e6656703e0b80cb8b6cc3e6a68bd98d34c59b66 | 128 | #!/bin/bash
docker run -it -p 80:80 -v `pwd`/app:/var/www/django_app -v `pwd`/mysql:/var/lib/mysql --name django_app django_app
|
a0c024bab56bc2e417c61c57aa2d9c9269e75fc9 | 262 | if [ $1 = "1" ]; then
bin/DifferencePass resources/example1.ll c d
elif [ $1 = "2" ]; then
bin/DifferencePass resources/example2.ll x y
else
echo "Please enter the option 1 or 2 for the example file you would like to run difference analysis on."
fi
|
d326ec511238d37c4ee218ec467fb74d52af9821 | 299 | #!/bin/sh
export KERNEL_DIR=/home/ulrichyonga/Documents/Dissertation/Embedded_Linux/buildroot/linux-te-3.9
export PATH=/home/ulrichyonga/Documents/Dissertation/Embedded_Linux/buildroot/linux-te-3.9:$PATH
# make pl080 DMA testing module
make clean
make KERNELDIR=$KERNEL_DIR > makeresults.txt 2>&1
|
33d02ff771e817a8cdfdaf4e46d3b3a576535523 | 587 | #!/usr/bin/env bash
# Installs HAProxy 1.8 (stable LTS) on server and configures it
# Install 'add-apt-repository' functionality
sudo apt-get install software-properties-common
# Download, update, upgrade, and install HAProxy 1.8
sudo add-apt-repository -y ppa:vbernat/haproxy-1.8
sudo apt-get update
sudo apt-get -y ... |
ba1ab36f63bd0d17584e719f339f1d68a8b6b2b5 | 105 | MYSQL_USER=root
MYSQL_PASS=devroot
DB=YOURAPP
mysqldump -u${MYSQL_USER} -p${MYSQL_PASS} $DB > schema.sql
|
01b25097b3b843ff43a66771567649645601ca3c | 136 | #!/bin/sh
set -e
# Run pytest with coverage:
py.test -s --verbose --cov-report term-missing --cov-report xml --cov=eufy_security tests
|
8f5041dc72cf3df23437d2af2778f487522134b5 | 301 | #!/bin/bash
#change file name extensions
if [[ $# -ne 2 ]]; then # number of args
echo " you enter $1 args, need 2 args "
fi
for f in *"$1"; do # $1 first args
base=$(basename "$f" "$1") # delete extension=$1 von file $f
mv "$f" "${base}$2" # add extension args2:$2 to $f
done
|
1267dab9543c51961fe0c9d7de087711b137630e | 6,876 | export ORACLE_UNQNAME=DWH05
export ORACLE_BASE=/data01/app/oracle
export ORACLE_HOME=/data01/app/oracle/product/12.2.0/db_1
export ORACLE_SID=DWH05
PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
get_partition()... |
a964a2656a30301943fb5d454c47ce3137ee3d4a | 204 | source ~/.bashrc
if [[ "$OSTYPE" =~ ^darwin ]];then
plat='darwin'
else
plat='linux'
ttyname=`tty | cut -d'/' -f 4`
export HISTFILE="${HOME}/.history.d/history-$ttyname.`date +"%s"`"
fi
|
83d3860e0aa26689cd004d47edec9b3c3d5122f1 | 1,483 |
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Prompt #
PS1='\[\033[01;32m\]\u\[\033[01;00m\]@\[\033[01;36m\]\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '
# Bash #
# Set bash to append to command history instead of overwriting
# Multiple shells will otherwise overwrite eachothers h... |
7bc9fdec5fc222044d8a0b38a0d8afe15fd3a644 | 448 | path_remove () { export PATH=`echo -n $PATH | awk -v RS=: -v ORS=: '$0 != "'$1'"' | sed 's/:$//' | sed 's/$://'`; }
path_append () { path_remove $1; export PATH="$PATH:$1"; }
path_prepend () { path_remove $1; export PATH="$1:$PATH"; }
if [[ "$OSTYPE" == "darwin"* ]]; then
# Homebrew binaries first
path_prepend... |
494521c7df250958f48cdb0bb6bda4642bd94a60 | 634 | #!/bin/bash
# Call this once without any arguments to enable PWM in general.
# Call this again with an argument to enable a specific PWM pin.
# Arguments: 9_22, 9_22, 9_21, 9_14, 9_16, 8_19, 8_13, 9_42.
if (( $# != 1 )) # No arguments.
then
# This is the first step in enabling any PWM pin.
echo am33xx_pwm > /sys/... |
e6dc3e0dafe168b4704c1ed56c45aa5d549169ce | 360 | #!/bin/bash
cd "${0%/*}"
echo "Deploy Kubernetes policies"
read -p "Press enter to continue"
# deploy kubernetes policies
kubectl -n gatekeeper-system create configmap kubernetes-matches --from-file=../policy/kubernetes/matches.rego
kubectl -n gatekeeper-system create configmap kubernetes-policymatches --from-file=... |
1fe23f9a84e201914c55ef29ab10c73c47847c32 | 132 | #!/bin/bash
make
if [ -z $1 ] || [ -z $2 ]
then
echo "./client <text lenght> <PID>"
exit 1
fi
ARG=`./a.out $1`
./client $2 $ARG |
c4b4ac05092ab94fd02997f6419a795a490e5f59 | 95 | #! /usr/bin/env sh
# hadoop name node
/format-hdfs
hdfs --config "$HADOOP_CONF_DIR" namenode
|
5b89b72196023b9b60bf56cf9c7693dd4beb3539 | 294 | #!/bin/sh
set -e
NOFMT=$(gofmt -l $(find . -name '*.go' |grep -v /vendor))
if test "$NOFMT" != ""
then
echo "Found non-formatted files:"
echo "$NOFMT"
exit 1
fi
CHANGES=$(git status -s --porcelain)
if test "$CHANGES" != ""
then
echo "Found changes in git:"
echo "$CHANGES"
exit 1
fi
|
f5a1e8015626cffb8d5f395d25957b05fd80391a | 162 | #!/bin/sh
# sh musicbrainztagger.sh ~tom/projects/musicbrainztagger ~tom/fpcalc
java -jar target/musicbrainztagger.jar --inputdir=$1 --outputdir=$2 --fpcalc=$3
|
260b721e1f7fe533da29536e4f2894756310445c | 674 | #!/bin/bash
# Run the aws-configure script to try to detect AWS credentials from the environment
aws-configure || true
# Test if CIVIS_SERVICE_ID is defined. If so, we are likely in a deployed
# service, so start voila. If not, we are likely in a Civis Jupyter notebook
# context, so start that.
if [[ -z $CIVIS_SERVIC... |
50bb8c8dd5a9722f8b5ec311937352d9827c9620 | 3,136 | # Wait for Wattlog
microsleep 10000000
# Load App
{{{timing}}}
am start -n com.alpha.batterycal/com.alpha.batterycal.MainActivity
microsleep 10000000
{{{timing}}}
### Prefix to start the app
input keyevent ENTER
microsleep 2000000
input keyevent ENTER
microsleep 2000000
input keyevent 61
microsleep 2000000
input keyeve... |
812e754fa1a4ddfdb803016df3cf2a802a8769c5 | 1,364 | #!/bin/bash
set -exo pipefail
tmpdir=$(mktemp --directory)
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
source "${ROOT}/script/lib/ui.sh"
usage() {
cat <<USAGE >&2
usage: $0 <image|app> <dashboard|installer>
USAGE
}
main() {
local target pkg
case $2 in
dashboard)
target=$2
pkg="main"
;;
... |
e09308b13c77d685fead4a3d42dc5ed3e8b1c326 | 599 | #!/bin/bash
#
#Soovime väljastada aastaaegu
echo -e "Tervist! Sisestage kuu nr: \c"
read kuu
#Kuud 1,2,12 vastamisel on kuu Talv
if test $kuu -eq 1 -o $kuu -eq 2 -o $kuu -e1 12
then
echo "Vastus"
sleep 1
echo "Praegu on talv!"
#Kuud 3 ja 5 vastamisel on kevad
elif test $kuu -ge 3 -a $kuu -le 5
then
echo "vastus"
sleep ... |
b82b71a170b012df550e9e3014773e4965d69515 | 431 | #!/bin/bash
if [ $# -lt 2 ];
then
echo "Not enough parameters"
exit 1
fi;
dir_path=$1
search_string=$2
if [ ! -d "$dir_path" ];
then
echo "Directory not exist"
exit 2
fi;
for file in `find "$dir_path" -maxdepth 1 -type f`
do
line_num=0
while read line ;
do
line_num=$(( $line_num+1 ))
if [[ "$line" == *"$sea... |
52662f555128469762baf3d0b3688ef3c0aeb0d7 | 20,834 | #/bin/sh
set -e
TPCH_SOURCEFILE=$(mktemp)
$(which python) - "${0}" "${@}" "--source" "${TPCH_SOURCEFILE}" <<END
import argparse
import sys
import tempfile
sys.argv = sys.argv[1:]
common = argparse.ArgumentParser(add_help=False)
common.add_argument('--source', help=argparse.SUPPRESS)
common.add_argument('-v', '--ver... |
e550c619604c4701cf0ec29754d851e1973af415 | 224 | #!/bin/bash
usage() {
program=$(basename "$0")
echo "usage: $program <destination-email> <input-file>"
exit 2
}
if [ -z "$1" ]; then usage; fi
if [ -z "$2" ]; then usage; fi
gpg -a -e -r "$1" "$2"
|
a16f0c052f4b2da992f15f79deda9622c30d7f35 | 634 | #!/bin/bash
set -e
HERE="$(cd $(dirname "$0"); echo "$PWD")"
cd /tmp
dxf() {
PYTHONPATH="$HERE/.." python -m dxf "$@"
}
cleanup() {
trap - EXIT
"$HERE/remove_container.sh" dxf_registry
}
trap cleanup EXIT
docker run -d -p 5000:5000 --name dxf_registry registry:2
export DXF_HOST=localhost:5000
export DXF_IN... |
1bec07c2eb74d988efced1a091ee00cd827f3b50 | 210 | TODAY_0D_F=$(date +%Y-%m-%d)
time1=$(date +%s -d"${TODAY_0D_F} 05:00:00")
time_exc=$((time1+1*24*60*60))
time_now=$(date +%s)
time_sleep=$((time_exc-time_now))
echo ${time_sleep}s
echo $((time_sleep/3600))
|
762415ace301df1934f49585261ee97a2bf753a9 | 22 | docker build -t qmk .
|
f32532df275a363c51fa408cd77f5f20c5671739 | 242 | #!/bin/bash -x
read -p "Enter the value of x:" x
read -p "Enter the value of y:" y
if [ $x -gt $y ]
then
echo "x=$x is greater than y=$y"
elif [ $x -eq $y ]
then
echo "x=$x is equal than y=$y"
else
echo "x=$x is smaller than y=$y"
fi
|
272161741f6cdeaec3fa1363bdfbec2dc0cc6d7e | 331 | # -*- sh -*-
subdirs='
names-th
sql-words
persistable-record
relational-query
relational-schemas
HDBC-session
relational-query-HDBC
text-postgresql
persistable-types-HDBC-pg
'
check_dir() {
name="$1"
[ x$name != x ] || exit 1
if [ ! -d $name ]; then
echo "Directory not found: $name"
exit ... |
45c451ca9633ac66566dcae7d6c0d7ccdafb55e3 | 5,011 | #!/bin/bash
source ./perfcorder.sh
source ./config.sh
usage() {
echo "----------"
echo "Usage: <max_calls_number> <simultaneous_calls> <calls_per_sec>"
echo "----------"
}
if [ "$#" -ne 3 ]; then
usage
exit 1
fi
if [ "$TEST_ENGINE" = 'local' ]; then
echo "Use local env"
machine_ip=`ip addr show... |
a5c30aecb5a280ccede97f248532e17e15a742ab | 1,879 | cd ~/catkin_ws/results/braitenberg_1/dynamic/mem
chmod a+x plot_2.py heatmap.py
./plot_2.py dynamic '0.0_0.0' filename results_1_0.0_0.0_0.05_[0, 0] results_2_0.0_0.0_0.05_[0, 0] results_3_0.0_0.0_0.05_[0, 0] results_4_0.0_0.0_0.05_[0, 0] results_5_0.0_0.0_0.05_[0, 0]
./plot_2.py dynamic '0.5_0.0' filename results_1... |
80fc488ea137e8a06cb97f0600c538b9bd14f832 | 316 | #!/bin/sh
_usage() {
echo "Usage: $(basename "$0") file.flac [...file.flac]"
exit 1
}
while [ -n "$1" ]; do
filename=$(basename -s .flac "$1")
[ -f "$filename.flac" ] || _usage
shift
echo "Converting '$filename' to mp3"
ffmpeg -i "$filename.flac" -f wav - | lame -V 2 --noreplaygain - "$filename.mp3"
done
|
23036115646813cb471d852ac5ae491310d55bb4 | 12,107 | #!/bin/bash
#PBS -N all_hisat2
#PBS -q standby
#PBS -l nodes=1:ppn=20,naccesspolicy=singleuser
#PBS -l walltime=4:00:00
cd $PBS_O_WORKDIR
module purge
module load hisat2/2.1.0
## build index file for reference genome
hisat2-build -p 20 /scratch/snyder/h/harder/ssalar_genome_and_annotation_files/simple_names_chroms_... |
37d622a59ca0d1a4e01d95e0d2f40834924b7aa5 | 845 | #!/usr/bin/env bash
echo Downloading Required Packages
echo "${GPG_PRIVATE_KEY_BASE64}" | base64 -d > private.gpg
gpg --batch --import private.gpg
if [[ "$BUILD_TARGET" != "WebGL" ]]; then
packagesFile='requiredPackages-desktop.unitypackage.gpg'
else
packagesFile='requiredPackages-webgl.unitypackage.gpg'
fi
... |
8e3d289c065349e1b23e897334603dfd22f8c3f7 | 85 | #!/bin/bash
sudo docker run --rm -v "$PWD:/src" -p 4000:4000 grahamc/jekyll serve -w
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.