blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
98c56a82ae79e2f5e8412f9cf74eb3541a473c2f | 161 | #!/bin/bash
docker run -d --name local-httpd \
-v /vagrant/docker-hadoop-multi-node/binaries:/usr/local/apache2/htdocs/ \
-h $(hostname -f) \
-p 8033:80 \
httpd
|
64a4aa6d381a4e262e8df771126cda8a995d489a | 84 | #!/bin/sh
find . | cpio -H newc -o > ../initrd
cat ../initrd | gzip > ../initrd.img
|
225e6c72fe910db987f4831d1e998b00581500e4 | 338 | #!/bin/bash
sum=0
count=0
num=0
for i in $(ls $@)
do
# printf "$i\n"
./sat "$i"
# echo "$?"
num="$?"
sum=`expr $sum + $num`
count=`expr $count + 1`
if [ "$num" == 0 ]
then
rm "$i"
fi
done
#avg=`expr $sum/$count`
#printf "Avg= $avg \n"
RESULT=$(awk "BEGIN {printf \"%.2f\",${sum}/${count}}")
printf "... |
1795a869351475d861a932639f0e6f17133153c4 | 1,166 | #!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE_COMMON=g4-common
VENDOR=lge
# Load extractutils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
ANDR... |
a4d313077ace679e8c14cb78f0d05067aad387ff | 1,681 | #!/bin/bash
~/software/kallisto_linux-v0.43.1/kallisto quant -i ./ref/transcripts.idx -o CRI1 --threads=2 -b 100 ./raw_reads/raw_reads/2528-01-2-1_S24_R1_001.fastq.gz ./raw_reads/raw_reads/2528-01-2-1_S24_R2_001.fastq.gz
~/software/kallisto_linux-v0.43.1/kallisto quant -i ./ref/transcripts.idx -o CRI2 --threads=2 -b 1... |
83354feea583b72e00de0992cc4bd01feab00728 | 2,183 | # Maintainer: Lily Wilson <hotaru@thinkindifferent.net>
# Contributor: Thomas Bächler <thomas@archlinux.org>
pkgname=ipxe-netboot
pkgver=r5925.3fe683eb
pkgrel=1
pkgdesc="iPXE build for Arch Linux netboot"
arch=('i686' 'x86_64')
url="http://ipxe.org"
license=('GPL')
makedepends=('git'
'gcc'
'bi... |
b13b085ba00e89e249889ba3a98f9017f9acaeac | 136 | #!/bin/bash
cp my_configs.vim ~/.vim_runtime/
git clone https://github.com/majutsushi/tagbar ~/.vim_runtime/sources_non_forked/tagbar
|
c4322a5ec133ddf486cf90df6322891b8d888fa1 | 24 | #!/bin/sh
cask install
|
bdb67c6969e5bc2e4abf2756ab254fca05a65e49 | 355 | #! /bin/bash
#
# Sub
#
function subsample () {
input=$1
seed=12345
num_reads=(100000)
for n in ${num_reads[@]}
do
output_file=${input%%.*}.${n}.fastq.gz
cmd="seqkit sample -n ${n} -s ${seed} -o ${output_file} ${input}"
echo $cmd
eval $cmd
done
}
#
# Main
#
inputs=($@)
for input in ${inp... |
9b1086ac206bf7d5e30094b6522633fa86d91554 | 178 | #!/bin/bash
export DATA_FILE="data/villagepeople/June 2020/Report-20200611105406.csv"
export OUT_FILE="data/villagepeople/June 2020/Transform-Report-20200611105406.csv"
./run.sh
|
e0290c72076cdce66f140b920a58d8852c90b4fc | 770 | #!/bin/sh
case "$1" in
-a)
for pak in `ls /var/log/packages/ 2> /dev/null`
do
PAK_NAME=`cat /var/log/packages/${pak} | grep "NAME:" | cut -d ":" -f2`
PAK_VERS=`cat /var/log/packages/${pak} | grep "VERSION:" | cut -d ":" -f2`
echo "${PAK_NAME} : ${PAK_VERS}"
done
;;
-l)
ls /var/log/packages/
;;
... |
b83b3f22c0a0989b6b2a382da3a30894b96e4af3 | 668 | #!/bin/bash
# Grab the source code
go get -d github.com/$REPONAME/...
# Grab Go package name
pkgName=github.com/$REPONAME
# Grab just first path listed in GOPATH
goPath="${GOPATH%%:*}"
# Construct Go package path
pkgPath="$goPath/src/$pkgName"
if [ -e "$pkgPath/Godeps/_workspace" ];
then
# Add local godeps dir t... |
5c97226b6d7a21464efcbf8412af10f6d81285d8 | 141 | #!/bin/sh
here=`pwd`
cd ~/Library/Application\ Support/Firefox/Profiles/*/HTTPSEverywhereUserRules/
there=`pwd`
cd $here
cp *.xml "$there"
|
15d05094a4db71d4466773c1b67cb98c5e8b8a3d | 173 | # DB Configurations
HOST=localhost
DB_USER=root
DB_PASS=root
DB_DATABASE=users_api
DB_DIALECT=mariadb
# local runtime configs
PORT=4000
SECRET_JWT=supersecret
NODE_ENV=test |
bc7a225b13626f6c7e1e1a3ce1edf15a921266a7 | 107 | curl -X DELETE '{backend_url}/admin/shipping-options/{option_id}' \
-H 'Authorization: Bearer {api_token}'
|
972ad38e780be760fc86816030bfb3e8d936e558 | 870 | #! /bin/sh
# Startup script from the Debian tspc package
# Written by Martin Waitz <tali@debian.org>
PATH=/sbin:/bin:/usr/sbin:/usr/bin
TSPC=/usr/sbin/tspc
test -f $TSPC || exit 0
# read tsp client config, to get the interface used
. /etc/tsp/tspc.conf
start() {
$TSPC || exit 1
}
stop() {
killall $TSPC || exit ... |
9d6e0a7a1bbff9bdddbd629cadda8053d54af3aa | 1,572 | #!/bin/bash
flag=$1
commitName=
lgln -g "Staging all changes..."
git add -A
currentBranch="$(git current-branch)"
if [[ "$(git prev-commit)" == WIP* ]]; then
if defined -s "$flag"; then
if [ "$flag" = "-c" ] || [ "$flag" = "--continue" ]; then
git continue-commit
exit "$?"
elif [ "$flag" = "-f... |
6e50c33b2e12ab9958f46623d97ca08be5be6d69 | 708 | #!/bin/bash
echo "username:"
read username
echo "loged in"
fielpos="$username"
declare -i lineno=0
while read -r line; do
echo $line
let ++lineno
sed -i "1 d" "$fielpos"
done < "$fielpos"
while true;
do
read line
if [ "$line" = "exit" ]; then
echo "khoshal shodim (0_0)"
break
elif [[ "$line... |
1055ac01e6de3001de810db09c327b75e1fa170f | 307 | rm -rf generated_fused_sparse_resnet_block_32_64_stride2.o.h generated_fused_sparse_resnet_block_32_64_stride2.o mkl_result.txt tiramisu_result.txt fused_sparse_resnet_block_wrapper_32_64_stride2 fused_sparse_resnet_block_generator_32_64_stride2 fused_resnet_block_mkldnn_result resnet_inference_mkl_sparse
|
741bfd7a2ec392aad32dd8f45ffc4187fd887cc6 | 1,372 | #!/bin/bash
set -e
# Find out from CodeDeploy what environment we are in by parsing the APPLICATION_NAME
ENVIRONMENT=`echo "$APPLICATION_NAME" | cut -d '-' -f 1 | tr A-Z a-z`
# Put the environment in the log
echo "Customizing environment: $ENVIRONMENT"
# Setup variables depending on what environment
case $ENVIRONMENT... |
529d359f82ea414789aae7b0af8ece279e6bad53 | 248 | #!/bin/bash
# source function library
. ${0%/*}/wsl-functions
case "$1" in
-h|--help|help)
$WSCOLORERR
echo -e "\n`basename $0` - Utility to create and edit ${MYCONFIG} file\n"
$WSCOLORNORM
exit 1
;;
esac
vi ~/${MYCONFIG}
|
397087d00a0ee7eca208ad923ef1fd021b152c3e | 474 | #!/bin/bash
echo "Why hello there.
Would you like some tea (y/n)?"
read answer
[[ $answer =~ ^([yY][eE][sS]|[yY])$ ]] && echo "OK then, here you go: http://www.rivertea.com/blog/wp-content/uploads/2013/12/Green-Tea.jpg" || echo "OK then."
until [ "$SUCCESS" = "y" ] ;do
echo "Do you like Music? mykeyboardstartshere Ya... |
a6cbde07b08151bbf904f2a49f81a6db71a34072 | 302 | #!/bin/bash -ex
tag=gamblecoin-dnsseeder
name=dnsseed
docker build -t $tag .
set +e
docker rm -f $name
set -e
docker run -d \
-p 53:53/udp \
--restart=always \
--name $name $tag \
-h dnsseed.test.tld \
-n node.test.tld \
-m support.test.tld \
-t 96 -d 2 \
--testnet
|
7708244935485cf8a1c37b90f50d78ea7412d3c7 | 239 | #!/bin/sh
list() {
if [ $# -eq 0 ]; then
cat
else
echo "$@"
fi | tr -s ' ' | tr ' ' '\n' | sort -V | tr '\n' '|' |
sed -e 's,|$,,' -e 's,|, \\\n\t,g'
}
listall() {
find "$@" ! -type d | grep -v '\(~\|\.swp\|\.orig\)$' | list
}
|
fd91e9ac368d9adf8919a8b02e4ef28049e4a679 | 232 | #!/bin/bash
docker build -t vitortoledo .
docker stop vitortoledo
docker run -d --rm -p 8000:8000 \
--env-file $HOME/vitortoledo.env \
--name vitortoledo \
-v $(pwd)/dkdata:/dkdata \
vitortoledo start.sh |
875300c223b590da8729c1d008ece36b2f4a103c | 102 | #!/bin/sh
z80asm -Ooutput -ooutput/foobar.bin -b -l -g -m -reloc-info input/file1.asm input/file2.asm
|
bc49bc2478cba8e51e11cfe84bd3356cb91d7908 | 384 | #!/usr/bin/env bash
source /opt/ros/melodic/setup.bash
source /home/obstec/ros_ws/devel/setup.bash
export ROS_MASTER_URI=http://192.168.2.1:11311
export ROS_IP=192.168.2.1
#export ROS_MASTER_URI=http://blue2shore.clients.wireless.dtu.dk:11311
#export ROS_IP=10.16.151.117
#export ROS_IP=192.168.2.3
#export ROS_HOSTNAME... |
d8cd8f4a8fbe74548ef9c9f080ab6ab20d55e965 | 63 | #!/bin/bash -ex
consul lock -n=1 -verbose webserver /claim.sh
|
0dc7a72712954324a6411bc2cb143e46ac2b184b | 116 | LANG=C
grep "^=" HOME/users/assign | awk -F: '{print $1"@localhost"}' | cut -c2- | sort -u >> HOME/users/recipients
|
ac66522d048ac758f59ae080bab830a25bb1f698 | 138 | printf "Enter search pattern: "
read pattern
awk -v pat="$pattern" '{ nmatches++ }
END { print nmatches, "found" }' $1
|
0e2e41f4f41df6b9a913f13eada21344dce6f361 | 503 | #!/bin/bash
date=$(date '+%Y-%m-%d')
my_dir=$(readlink -f $(dirname $0))/backups
# output_file=$my_dir/pg-dumpall-$date.sql.bz2
output_file=$my_dir/pg-dumpall-$date.sql.gz
clean_output_file=$my_dir/pg-dumpall-danger-will-drop-then-restore-$date.sql.gz
if [ X$1 = X--clean ]; then
echo "Dumping all Postgres databases... |
6a255336fde5ce31fa8383580f9aafd9846c3194 | 1,286 | #!/bin/bash
# Unload VFIO-PCI Kernel Driver
modprobe -r vfio-pci
modprobe -r vfio_iommu_type1
modprobe -r vfio
# remove dev from windows
#echo 1 > /sys/bus/pci/devices/0000\:00\:03.0/remove
# Ubind GPU VRAM
echo 1 > /sys/bus/pci/devices/0000\:00\:03.0/0000\:04\:00.0/remove
echo 1 > /sys/bus/pci/devices/0000\:00\:03... |
9be21042912f9b2286b82ab187b314aab017156c | 330 | #!/bin/sh
if [[ "${DOCKER_DEBUG}" == "1" ]]; then
set -x
fi
cd /mockapi
cat << EOF > config.json
{
"redis": {
"host": "${REDIS_HOST:-127.0.0.1}",
"port": ${REDIS_PORT:-6379},
"password": "${REDIS_PASSWD:-null}",
"db": ${REDIS_DB:-0}
},
"port": ${PORT:-4000}
}
EOF
node ... |
674ee7c2ae4122133e4b0e1fda12d76311443ca1 | 15,388 | #!/bin/bash
# Copyright (c) 2018 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
VERSION="1.5"
# War... |
61a6d7ea5973f359af07f7e9cb8dc82d5f69c85f | 1,246 | #!/bin/bash
#Rodrigo Perea
#rperea@kumc.edu (alternative email grandrigo@gmail.com)
#PLEASE ADD DESCRIPTION HERE:!!!!!!
#
#
#THIS SCRIPT WAS CREATED UNDER bash version 3.2 unders OSX 10.7. To check your bash version,
#enter bash --version
#Any questions please feel free to contact me at the email provided above.
SOU... |
1d9b3998883dbbd1543b9f5e0cfc29284ec6963d | 501 |
TENSORFLOW=//home/derek/.conda/pkgs/tensorflow-base-1.11.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow
#bazel build -c opt $TENSORFLOW/tools/benchmark
#&&
bazel-bin/tensorflow/tools/benchmark/benchmark_model \
--graph=/tmp/tensorflow_inception_graph.pb \
--input_layer="Mul" --input_layer_shape="1,299,2... |
a8e6459b0eb8a4a290b4520e4d087fbbbd3c8ebf | 397 | #!/bin/bash
source $OPENSHIFT_CARTRIDGE_SDK_BASH
cd "$OPENSHIFT_REPO_DIR"
echo "Downloading JQ..."
wget "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64" -O jq
chmod +x jq
URL="$(curl -s 'https://api.github.com/repos/TachiWeb/TachiWeb-Server/releases' | ./jq --raw-output '.[0] | .assets[0] | .bro... |
993d8cdfda942afdec7ee45a76c3dd7b998c73a1 | 70 | #!/bin/sh
feh --no-fehbg --bg-scale '/home/nikola/Pictures/wall.jpg'
|
1137051f09cf99182c2c5f073043230a239fec6b | 673 | hadoop fs -rm -r yihuei/final/out
hadoop fs -rm -r yihuei/final/patterns
yarn jar $HADOOP_STREAMING -files mapper.py,reducer.py -mapper 'python3 mapper.py' -reducer 'python3 reducer.py' -input yihuei/final/UM-Corpus.en.200k.tagged.txt -output yihuei/final/out -numReduceTasks 32 && hadoop fs -getmerge yihuei/final/out p... |
89095f6dd71342ce0bee541a2978c45ca65b9221 | 20,230 | # for emacs: -*- mode: sh; -*-
# Regulation tracks for hg38 / GRCh38
#############################################################################
# Building UW DNAse I ENCODE2 tracks (In progress 2014-09-03 Jim Kent)
#These tracks contain the results of DNAse I hypersensitivity experiments from the
#John Stamatoya... |
04e3681fa3c1df16a71741fada897cf4676f6277 | 1,328 | #!/bin/bash
# --- Running client
# Done starting 8 threads...
# Aggregate throughput: 28924 RPCs/s
# Average latency: 0.27 ms
# --- Analyzing linearizability
# Number of get operations returning junk: 0
# Number of other linearizability violations: 0
# Aggregate throughput: 31592 RPCs/s
# Average latency: 0.25 ms
... |
843d4a1f123ab68cf482d562702b7a4893eb796e | 768 | #!/bin/bash
source $(dirname "$0")/demoscript
comment --nolf Use the spacebar to step through things...
comment --nolf Use 'f' to speed up the typing
comment Use 'r' to stop pausing
comment --pause Just show some simple commands
doit ls -l
doit "ls -lR > output"
scroll output
rm output
comment Run a command and use... |
2c9f787edef167265ea4d21f75bbf63121e6b6d0 | 331 | #!/bin/sh
rdiff.sh $1
printf "command:\n"
printf "rev ci new \`cat $1.list\`\n"
printf "Should I Commit? [y/N] "
read cont
if [ $cont == "y" ]; then
printf "\n=============\n\n"
printf "Copy this:\n"
printf "$2\n\n"
review ci new `cat $1.list`
printf "\n=============\n"
else
printf "not patching...\n"
ex... |
9aeb26e98174b71173082338d541a66b235718ac | 35 | COMPOSE_PROJECT_NAME=php-kafka-lib
|
b254c6d9ce8b25e1a0559add15e090e3ea82d673 | 2,425 | #!/bin/bash
set -e
. confrc
function _install() {
for pkg in "$@"; do
dpkg -s "$pkg" || sudo apt install -y "$pkg"
done
}
function setup_dev_tools() {
# 汎用ツール類のインストール
sudo apt update -y
_install curl git zsh build-essential ncurses-dev snapd
# pythonとその関連パッケージのインストール
_install python3 python3-venv python3-d... |
5c0646e5c67def7234f0136d059859ca262e82b3 | 1,260 | #!/system/bin/sh
cat << CTAG
{
name:Logs,
elements:[
{ SDescription:{
description:"To report any issue with the kernel, you should share the zip file of logs created by using below button. This will put logcat, dmesg, last_kmsg & other relevant information into one zip file which will be used only for debug... |
3de2268473124c69be9c1f146d00ba4da030924a | 756 | #!/bin/sh
# allow connections to port 22 in the 'default' instance group
auth_return=`$EC2_HOME/bin/ec2-authorize default -p 22 2>&1`
echo $auth_return | grep -v 'has already been authorized' > /dev/null
if test "x$?" != "x1"; then
if test "x$auth_return" != "x"; then
echo "could not enable ssh"
return 1
f... |
a3210a781ef3777e0f04a1fd8ec954db60d260ea | 1,015 | #!/bin/bash
echo "Instalando o Trac..."
ETC=`dirname $0`/etc
#Instalando o trac.
apt-get -y install trac
#Criando diretório dos projetos e atribuindo permissão.
mkdir /var/lib/trac
chown www-data: /var/lib/trac
#Copiando arquivo do serviço init.
cp $ETC/init.d/trac /etc/init.d
chmod 755 /etc/init.d/trac
#Incluíndo... |
1b598b5a478753b7de5a68c6133a025100e0dbac | 128 | g++ -g -c testHeap.cpp
g++ -g -c cacheHeapMap.cpp
g++ -o testHeap testHeap.o cacheHeapMap.o
echo "########### Done #########"
|
4ee01c481ef1a36af1c2b3f66ab824323c210356 | 82 | #!/bin/sh
test -d $DESTINATION_DIR/check_isolation && echo "true"|| echo "false"
|
fbf2d8bf3865ce640421cd9a566b28f7f9f48afd | 46 | HOST=dudev.fangshi.bjh.otp.baidu.com
PORT=4000 |
a65e0da1948a4da2bbbc6e5dec07fd583c5bcc6f | 22,360 | #!/bin/sh
#
# Copyright (C) 2017 openwrt-ssr
# Copyright (C) 2017 yushi studio <ywb94@qq.com>
# Copyright (C) 2018 lean <coolsnowwolf@gmail.com>
# Copyright (C) 2019 chongshengB <bkye@vip.qq.com>
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#... |
9b168a372066e30f62d94fcdf974baa4f36a9688 | 304 | #!/usr/bin/env bash
set -eu
# Find the executable first (vs using stack-exec later), so the warning about
# our new GHC is not printed on each execution, and we don't have to silence
# stderr at every call.
pdup=$(stack exec which pdup 2>/dev/null)
"$pdup" --days 7
"$pdup" --days 30
"$pdup" --days 90
|
7167f36bf483666bbcbb593af297ea956b9cfc22 | 838 | #!/bin/bash
# Identify namenodes --overwrite hosts
kubectl label nodes --overwrite k8s-node06 my-hdfs-namenode-selector=hdfs-namenode
kubectl label nodes --overwrite k8s-node07 my-hdfs-namenode-selector=hdfs-namenode
# Identify non datanodes --overwrite hosts
kubectl label nodes --overwrite k8s-master1 my-hdfs-datano... |
da0582f3c5cd3232eeb73292d02b79e13747f73f | 101 | #!/bin/bash
screen -ls | grep asterix | cut -d. -f1 | awk '{print $1}' | xargs kill -9
screen -wipe
|
9a0f7084f97a34c7e7521482d9e82567ef6b60c1 | 476 | #!/usr/bin/env zsh
if (( $+commands[lynx] )); then
WWWDUMP='lynx -dump -nolist -width=300 -accept_all_cookies -display_charset=UTF-8'
alias myip="curl -s -m 8 https://ipinfo.io/ip || curl -s -m 8 eth0.me || curl -s -m 5 ifconfig.me || curl -s -m 5 icanhazip.com || $WWWDUMP http://www.getip.com | sed -n 's/^Curr... |
f7483bb0e10529beea21d7b2505c467937d38d11 | 501 | # Ticket: Connection
# Rename this file to .env after filling in your MFLIX_DB_URI and your SECRET_KEY
# Do not surround the URI with quotes
SECRET_KEY=m220password
MFLIX_DB_URI=mongodb+srv://m220student:m220password@mflix-nnbbt.gcp.mongodb.net/test
MFLIX_NS=sample_mflix
PORT=5000
#mongodb+srv://m220student:<password>@... |
0dabe0c2e1bd4c54037453e44866645f04572787 | 1,417 | #!/bin/bash
# Stop OVS agent, wait 80 seconds (Longer than agent_down_time), create resources. Ports will fail to bind.
. ~/overcloudrc
ssh heat-admin@overcloud-controller-0 'sudo pcs resource unmanage neutron-l3-agent-clone'
ssh heat-admin@overcloud-controller-0 'sudo pcs resource unmanage neutron-dhcp-agent-clone'... |
6dcb64fdd5285e8843f0bd860b7f1b03e29eab77 | 306 | #! /bin/sh
if [ -n "$1" ]; then
mkdir tmp
curl -L https://github.com/twbs/bootstrap/releases/download/v$1/bootstrap-$1-dist.zip -o tmp/bootstrap.zip
rm -fr app/lib/bootstrap
unzip tmp/bootstrap.zip -d app/lib
mv app/lib/dist app/lib/bootstrap
else
echo "Usage: update-bootstrap <version>"
fi
|
3380c7d9c0f15ffeefb257390fcaedbc37ae9cff | 354 | #!/bin/bash
source bin/lib
if [ -z "${1}" ]; then
echo "You must specify a cluster name."
exit -1
fi
if [ -z "${2}" ]; then
echo -n "You must specify a list of options and value pairs."
echo -n "For example: MaxSize=10 or "
echo "MeasureName=CPUUtilization,LowerThreshold=30"
exit -1
fi
clust... |
e7eeb9057c9ac91f29f6af8a54db53f2d27bbde0 | 1,077 | samtools view -F4 WAI321.realign.bam > WAI321.realign.mapped.sam
samtools view -f4 WAI321.realign.bam > WAI321.realign.UNmapped.sam
samtools view -F4 WAI322.realign.bam > WAI322.realign.mapped.sam;
samtools view -f4 WAI322.realign.bam > WAI322.realign.UNmapped.sam;
samtools view -F4 WAI323.realign.bam > WAI323.reali... |
226c9735fba516e7418bcc56b3435098c1fee760 | 69 | #!/usr/bin/env bash
# Lists all the process in the system
ps -auxf
|
09ef634a4a3d37093a4961c015296675bb105a35 | 315 | #!/bin/bash
if [ -n "$PYENV_ROOT" ]; then
PYTHON="$PYENV_ROOT/shims/python"
else
PYTHON=python
fi
cd $(dirname "$0")
CMD="cmd_$1.py"
if [ ! -f "$CMD" ]; then
echo usage: $0 command '[args...]'
echo commands: $(ls cmd_*.py | sed -e 's/^cmd_\(.*\)\.py$/\1/')
exit 1
fi
shift
$PYTHON $CMD "$@"
|
18c7ad1fc32b27e37807d1e5c85ecad084e06d93 | 1,170 | #!/bin/sh
# install-gcc.sh: install gcc${VERSION} on Debian Linux 9 (stretch)
#
# Change VERSION below to what is needed.
#
# If g++-6-multilib package is not already installed,
# --disable-multilib should be added to configure.
#
# Stanislaw Galus
# Sun Apr 21 19:57:41 CEST 2019
VERSION=-8.3.0
wget ftp://ftp.gnu.org... |
45a40bc7b1e8790030b2b1577176e4fde207bbf6 | 970 | #!/bin/sh
#Script to set the coherent peak to para (1) or perp (2)
#
#source the epics env to get the pathe to caget etc.
. /opt/epics/thisEPICS.sh
if [ $# -ne "3" ]; then
echo
echo "Usage: $0 <P> <G> <plane>"
echo " P and G are the EPICS macros for goni and cbrem. Eg. HD:CBREM: HD:GONI:";
ech... |
4a554061b6c80a272145c6c61758c5799490e74e | 111 | #!/bin/sh
$comm -f ./tests/example.train -W /tmp/test.wgths -t @./tests/indirect.test
cat < /tmp/indirect.out
|
3858ac17369edf4a29fb8a936e3fcfe94bc96256 | 846 | # HUD
inOut=(
# HudSyncSoundsSwf
"$PRAIA_IN_PATH/hud/view/src/com/assukar/praia/hud/assets/imports/HudSyncSoundsSwf.as"
"$PRAIA_OUT_PATH/HudSyncSoundsSwf.swf"
# # HudAsyncSoundsSwf
"$PRAIA_IN_PATH/hud/view/src/com/assukar/praia/hud/assets/imports/HudAsyncSoundsSwf.as"
"$PRAIA_OUT_PATH/HudAsyncSoundsSwf.swf"
# ... |
dd37d87868ad141bc5937cc93cf4a53973c5e2b1 | 1,113 | #!/bin/sh
########################################################################################
##
## WAMP-TLS(-client-authentication) static
##
crossbar start --cbdir=./tls/static/.crossbar &
sleep 10
python ./tls/static/client_tx.py --url wss://localhost:8080/ws --key client0.key --cert client0.crt --channel_bin... |
0fcf138ae9c299bf20e286a226e10f20cb7556eb | 559 | #!/usr/bin/env bash
# File: guessinggame.sh
function hint {
if [[ $1 -gt $2 ]]
then
echo "Your guess is too high, please try again"
else
echo "Your guess is too low, please try again"
fi
}
terminate=0
answer=$(ls | wc -l)
while [[ $terminate -eq 0 ]]
do
echo "How many files are in the current direc... |
1a21e19cf45c649f12261678092d4f27b04e2df9 | 32 | #!/bin/bash
python exploit03.py
|
9525124e53b1ced9f692d4d3debefab55cf77a66 | 223 | token="$(cat api_examples/token.txt)"
email="$(cat api_examples/email.txt)"
curl -X POST \
-d "{\"token\": \"${token}\", \"emailId\": \"${email}\"}" \
-H "Content-Type: application/json" \
http://localhost:4000/content/read |
fa9456dc2239d8349ff9ea49fb82ff408d256a4d | 1,188 | # shellcheck disable=SC2034,SC2154,SC2164
pkgname=('prometheus-exporter-node')
_srcname='node_exporter'
pkgdesc='Prometheus exporter for machine metrics'
pkgver='0.18.1'
_commit='3db77732e925c08f675d7404a8c46466b2ece83e'
pkgrel='1'
arch=('i686' 'x86_64')
url="https://github.com/prometheus/${_srcname}"
license=('Apache'... |
ea68e93547b4b51eca032556385a791388ea2025 | 225 | #!/usr/bin/env bash
#
# Run composer inside of container
#
# Example usage `scripts/composer.sh update`
cd $(git rev-parse --show-toplevel)
COMMAND="cd /app; composer $@"
docker-compose run --rm web bash -c "$COMMAND"
cd - |
7ba628c613cf7bc4ff69fc471e31b5b88a01b0b2 | 3,114 | #!/usr/bin/env bash
SIMPLE="./simple $@"
indent() {
c='s/^/ /'
case $(uname) in
Darwin) sed -l "$c";;
*) sed -u "$c";;
esac
}
report_incorrect() {
incorrect=$((incorrect + 1))
tput setaf 1; tput bold
echo -n '✘ '
tput sgr0; tput setaf 1
echo $test
tput sgr0
[ "$error" ] && echo "$er... |
c81ba6aa0deb8da0d61c89709b801b1d7390c950 | 204 | #!/bin/bash
size=$1
bits=$2
nohup ./run_txt_to_mat.sh /usr/local/matlab-r2014a/ features/size${size}_binary_${bits}b.fea features/size${size}_binary_${bits}b.mat &> size${size}_binary_${bits}b_mat.out &
|
5048d72342b5a8a417daa1986c6cfbbc05aa293d | 71,335 | diff --git a/Api/GuestCheckoutManagementInterface.php b/Api/GuestCheckoutManagementInterface.php
index 00a3cc7..1119992 100644
--- a/Api/GuestCheckoutManagementInterface.php
+++ b/Api/GuestCheckoutManagementInterface.php
@@ -75,15 +75,4 @@ interface GuestCheckoutManagementInterface
* @return bool
*/
pu... |
3536f2d162a3464e0eb15665c803276b41230613 | 315 | #!/bin/bash
vars_directory=$2
team_number=5499
if [ "${1}" == "push" ]; then
scp ${vars_directory} admin@roborio-${team_number}-frc.local:/home/lvuser/vars.json
ssh admin@roborio-${team_number}-frc.local "sync"
else
scp admin@roborio-${team_number}-frc.local:/home/lvuser/vars.json ${vars_directory}
fi |
64842dfff1dd1e7cdce4c4ff8b704c9aaac406f6 | 123 | #!/bin/bash
pdflatex resume-long.tex
scp resume-long.pdf scg@yogi.unibe.ch:/home/scg/download/mlcv/MirceaLungu-Resume.pdf
|
e95913b5d173b70f08e23f60dfc1c693721c90a5 | 7,883 | THEANO_FLAGS='base_compiledir=/scratch/03754/jaw5629/theano1' python sc.py 1
THEANO_FLAGS='base_compiledir=/scratch/03754/jaw5629/theano2' python sc.py 2
THEANO_FLAGS='base_compiledir=/scratch/03754/jaw5629/theano3' python sc.py 3
THEANO_FLAGS='base_compiledir=/scratch/03754/jaw5629/theano4' python sc.py 4
THEANO_FLAGS... |
56a509f8915d931e59adc2676a68092ef2a3faba | 8,067 | # Requires https://github.com/rylnd/shpec
library=./lcd
source "${BASH_SOURCE%/*}/$library" 2>/dev/null || source "$library"
unset -v library
describe defa
it "creates an array from a heredoc"
defa samples <<'EOS'
one
two
EOS
expected='declare -a samples='\''([0]="one" [1]="two")'\'
assert equal "$expec... |
0538870efb1dd30218e214e53d34a3d66312f0ab | 396 | #!/bin/sh
set -e
DUSER="citibank-facebook-bot"
PKGNAME="citibank-facebook-bot"
case "$1" in
install|upgrade)
if ! id ${DUSER} > /dev/null 2>&1; then
useradd --system -d /usr/share/${PKGNAME} \
--no-user-group --no-log-init -g nogroup \
--shell /bin/bash ${DUSER}
fi
;;
abort-upgrade)
;;
*)
echo... |
be9fc4174d74f759762c3bd7cd5afc324dd77b4f | 144 | #!/usr/bin/env bash
apt-get update &&
apt-get dist-upgrade -y --show-progress &&
apt-get autoremove -y &&
apt-get check &&
apt-get autoclean -y |
fc3d7d2e23fefcf29b9d6904faace215b6f3947f | 216 | #!/usr/bin/env bash
###############
echo ""
echo "Welcome to Adjust_Task1"
echo 'This is a script that writes the numbers from 1 - 10 in random order.'
echo ""
shuf -i 1-10
echo ""
echo "Enjoy your day!"
echo "" |
d2e01db342a8e04b65b94f391bcd3947def3b4d3 | 196 | #!/bin/bash
while read row; do
v1=`echo ${row} | cut -d , -f 1`
v2=`echo ${row} | cut -d , -f 2`
ex=`echo ${row} | cut -d , -f 3`
./run.sh ${v1} ${v2} ${ex}
done < testcase.csv
|
cff306d5946bbb63f93a59d2ae7ba1abcfc4fb02 | 1,029 | #!/bin/bash
SELF="./script/ec2_runner/iptables_tunnel.sh"
source "$(dirname $SELF)/functions.sh"
source "$(dirname $SELF)/shared.sh"
get_port() {
case $2 in
backup) echo $[$1 + 5000] ;;
*) echo $[$1 + 5500] ;;
esac
}
add_server() {
local ip=${1:?please supply a server} port=${2:?please supply a port}
ebegin ... |
5ca92c788bbc2fdbcb8f942e421018de1d21db46 | 219 | SECRET_KEY='kw&e@=htqan&ycf2c*!v7i3q22)f%6c)qt+n7x)@(jx-tvbma3'
DEBUG=True
DB_NAME='rate'
DB_USER='tyra'
DB_PASSWORD='password'
DB_HOST='127.0.0.1'
MODE='dev'
ALLOWED_HOSTS='rat3me.herokuapp.com'
DISABLE_COLLECTSTATIC=1 |
8ad7a9214a96ac406c81241b12661ac77091a9a7 | 258 | #!/bin/bash
integrated=$(echo DIS | sudo tee /sys/kernel/debug/vgaswitcheroo/switch)
notify-send -t 5000 \
-i "/home/xero/.config/awesome/themes/ghost/gfx.png" \
' gfx status
░░▒▒▓▓▓████▓▓▓▒▒░░' \
"radeon powered on" |
bef446289dd77432e6f56c4adcca9e6ae1f48364 | 345 | #bin
bin=`dirname "${BASH_SOURCE-$0}"`
bin=`cd "$bin">/dev/null; pwd`
. "$bin"/detect-env.sh
function call_rtail_all() {
echo
echo
echo "-------------------------------------------------------------------"
echo "$1 : "
rsh $1 $bin/tail-all-logs.sh
}
call_rtail_all master
for SLAVE in $SLAVES; do
call_... |
339b8cb140e91b46daefa32ad071e0f075131675 | 6,837 | #!/bin/bash
arch=`uname -i`
setup_version=2.7.2-1.cmsos12
slc_version=`expr $(uname -r) : '.*el\([0-9]\)'`
### copied from HCAL setup scripts
install_xdaq() {
# option 'x'
echo Installing XDAQ...
# generic XDAQ
yum -y groupinstall extern_coretools coretools extern_powerpack powerpack
# add-on pack... |
b8cb92d2d0331c1692ddaf26975c6c0ade0e8e70 | 679 | sudo apt-get update
sudo apt-get -y install unzip
sudo apt-get -y install vim
sudo apt-get -y install openjdk-7-jdk curl
cd /home/vagrant
mkdir bin
cd bin
wget http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.1/sbt-launch.jar
cd ..
echo "PATH=\"$PATH:/home/vagrant/bin\"" >> /home/vagrant... |
60591a77704ce5999b749e6666c8a068e417f2b7 | 901 | #!/bin/bash
#
# Copyright (c) 2017 nexB Inc. http://www.nexb.com/ - All rights reserved.
# NOTE : linux 64 build ONLY for now
set -e
lib_name=file-5.23
lib_archive=$lib_name.tar.gz
download_url=ftp://ftp.astron.com/pub/file/$lib_archive
function build_lib {
# build proper
# wget $download_url
tar -xf $... |
ac0dbdbf218fabdc22b004cdb24994852eb89a8a | 397 | #!/bin/bash
# This script adds bash to the list of programs which can control the system
# through applescript.
# It's run as part of the template VM creation process.
osascript -e 'tell application "System Preferences" to activate'
osascript -e 'tell application "System Events" to tell process "System Preferences" to... |
98bde22d1f2e3781e4c04218d73d00627b07281a | 323 | #! /bin/bash -x
read -p " enter the Day: " date
read -p " enter the month: " month
if [ $month -gt 3 ]&&[ $month -lt 6 ]&&[ $date -lt 31 ]
then
echo "true"
elif [ $month -eq 3 ]&&[ $date -ge 20 ]&&[ $date -lt 31 ]
then
echo "true"
elif [ $month -eq 6 ]&&[ $date -le 20 ]
then
echo "true"
else
echo "false";
... |
f06244cbeeed69f1ececc8c7f03a8f94cac1d870 | 67 | attribute vec4 vPosition;
void main() {
gl_Position = vPosition;
} |
ef32eda3335b2a530185a74e4e6b2250c065cc53 | 1,941 | #!/bin/bash
set -e
clear_page_cache() {
echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null
}
execbm() {
local id=$(docker $*)
echo -e "GET /\r\n\r" | ./connect-bm $(docker inspect --format='{{ .NetworkSettings.IPAddress }}' $id):8080
docker stop $id >/dev/null
docker rm $id >/dev/null
}
echo "... |
53736669b7b4fe51cdfe8a5b8df4e7a69cd6e41b | 129 | echo 6 > /sys/class/gpio/export
echo 7 > /sys/class/gpio/export
echo 8 > /sys/class/gpio/export
echo 9 > /sys/class/gpio/export
|
43dc0a07fe96d8772f4e08dbe92feeef98c93140 | 476 | #!/usr/bin/env bash
# install jruby & create 'hailstorm' gemset
sudo -i
jruby_version='9.1.7.0'
source /usr/local/rvm/scripts/rvm
rvm list | grep "$jruby_version"
if [ $? -ne 0 ]; then
rvm install jruby-$jruby_version
rvm use jruby-$jruby_version
rvm gemset create hailstorm
# chamge the rvm aliases
for al in de... |
b97f3c784f80684241e6b4f8aa3e23be614dc1a8 | 238 | #echo "checking $1"
#find $1 -name "*_d" -type d -exec find {} -type f -exec /home/fxp/extracturl.sh \;
#find $1 -name "*_d" -type f -exec find {} -type f \;
find $1/decoded/apktool/ -type f -exec ./_extract_url.sh {} \; |sort|uniq >$2
|
78975a058203df7dbbd107f902d097d32e0c03e0 | 167 | for ((i=1;i<=4;i++)) ; do
f=./Gencode/KO/test$i.c
echo -e "\n"
message='Fichier testé :'
echo $message $f
../minicc $f
java -jar Mars_4_2.jar out.s
done
|
6943156b486ab1b650cab75ea8b85ccb45aa4a22 | 1,895 | #!/usr/bin/env bash
pkill Xvfb
Xvfb :30 -auth /dev/null &
ps -a|grep Xvfb
export DISPLAY=:30
python /home/aj/repos/pyBlastNeuron/blastneuron/blastNeuron.py /home/aj/DataAndResults/morphology/ParFiles/BlastNeuron/chiangLLC.json
python /home/aj/repos/pyBlastNeuron/blastneuron/blastNeuron.py /home/aj/DataAndResults/morpho... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.