blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
876dcc0d51e15ca9ef59e21f3c5917123ad4af86 | 654 |
. CONFIG
# Use this to change which GPU you use.
ID=1
# Batch size
BS=16
# Generator size
NGF=128
# Discriminator size
NDF=128
# Number of captions to use per image
NC=4
KD=16
ZKP=0
num_holdout=1 \
display_id=724${ID} \
port=8000 \
display=1 \
gpu=${ID} \
dataset='cub_keypoint_and_image' \
keypoint_dim=${KD} \
name... |
889b581ff72d6bf6ff5a8161b3f33007c3b9e470 | 98 | #! /bin/bash
msg(){
echo "yes!"
}
echo "ver mensagem"
read p
if [ "$p" = "1" ];then
msg
fi
|
2147327ffeee031ee9d85bc867948acff98d7bd3 | 123 | sed -i -e '8d' setup.py
export PROTEUS_PREFIX=$PREFIX
python setup.py build
pip --disable-pip-version-check install -v .
|
8beb1481d67cb94137f87481a369b30e41f890b0 | 1,479 | echo 'starting module'
# sleep time provided in environment variables. If not provided, pick reasonable defaults
SleepTime="${SleepTime:=24}"
SleepUnit="${SleepUnit:=h}"
# ensure sleep unit is a valid value, otherwise default to hours
case $SleepUnit in
s|h|m|d)
;;
*)
echo '********** Invalid or Missing S... |
95f1b2f37cf9fe1120ff5addbf5795598307f508 | 646 | #!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: gld.sh,v 1.5 2005/01/19 15:48:41 xtraeme Exp $
#
# PROVIDE: gld
# BEFORE: mail
# REQUIRE: DAEMON LOGIN mysqld
. /etc/rc.subr
name="gld"
rcvar=$name
command="@PREFIX@/bin/${name}"
required_files="@PKG_SYSCONFDIR@/$name.conf"
pidfile="@VARBASE@/run/${name}.pid"
extra_commands="gld_wa... |
9b21b05e530d2948de0547e160ce5908f14ee9f3 | 1,597 | # Checks that important files exist and are not size 0
EXIT=0
# list of files
files=( \
"merged.transcriptome.cram" \
"feature_counts.txt" \
"genes.fpkm_tracking" \
"isoforms.fpkm_tracking" \
"kallisto.log" \
"kallisto_adv.log" \
"picard.MarkDuplicates.txt" \
"picard.RnaSeqMetrics.txt"... |
bc2b8634fa533ac37a29f161375e9a88360b46ea | 52 | #!/bin/bash
git status -s|awk '{print $2}'|xargs rm
|
dc1f55a1ad302e80ab1aeec35708c3c769d52837 | 269 | #!/bin/sh
#
# $NetBSD: poffd,v 1.2 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: poffd
# REQUIRE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="poffd"
rcvar=$name
command="/usr/sbin/${name}"
start_precmd="test -c /dev/pow0"
load_rc_config $name
run_rc_command "$1"
|
99177bcf760530898be6857c2bf557eba6f43610 | 104 | #!/usr/bin/env bash
node_modules/.bin/http-server & node_modules/.bin/watch "sh scripts/build-dev.sh" js |
ad8d0e7902bb5dc868a76ea979c1b6b56de24764 | 966 | #!/usr/bin/env bash
set -e
if [ -z "$SEISSOL_SRC_DIR" ]; then
echo "Expecting SEISSOL_SRC_DIR variable"
exit 1
fi
if [ -z "$OMP_NUM_THREADS" ]; then
echo "No OMP_NUM_THREADS variable defined"
exit 1
fi
if [ -z "$MPI_NUM_PROCESSES" ]; then
echo "No MPI_NUM_ROCESSES variable defined"
exit
fi
if [ -z "$SEISSO... |
a2f6f6934a3cb4c189a09f3816be54a216a276d9 | 152 | #!/bin/bash
echo "Stopping test mongo"
pidfile="test/resources/database.pid"
if [ -f $pidfile ]
then
PID=`cat ${pidfile}`
rm $pidfile
kill $PID
fi
|
a6105c3fffa3df6744bf8da8a3dbab645bee8d3f | 169 | DBNAME=u9415859_lapan
DBPASSWORD=imam632507
DBUSER=u9415859_lapan
API_GATEWAY_URL= https://api-gateway-lapan.herokuapp.com
JWTKU=mysikritkey
PORT=3002
HOST=46.17.173.176 |
89a95958978d14a3a57a9ccf7a8bf6f4d623ab5c | 2,016 | #!/usr/bin/env bash
# Copyright 2019 The KubeEdge Authors.
#
# 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 ... |
3d861d6d1663526df77c495a0d421fcf18ceb6c9 | 8,487 | #!/bin/ksh
HOST_TYPE=`uname -s | tr "-" "_"`
if [ $HOST_TYPE = "Linux" ]
then
alias echo="echo -e"
fi
#
# volley Parallel Process
#
# Default Value
#---------------------
Ver=2.1 # Version
Tty=`tty | awk -F \/ '{print $3"/"$4}'` # Terminal
cpuUse=2 # Max CPU Cost
cpuFree=20 # Min CPU Free
... |
2412d36e935bf71d5a4f61c2c6e3a133b2b6f987 | 1,932 | #srcfile="perf_1000000_uni.rslt"
skiplists="BlockedSpinSkipList BlockedCVSkipList ConcurrentSkipList JellyFishSkipList"
#skiplists="ConcurrentSkipList JellyFishSkipList"
threads="1 2 4 8 16"
ops="put get range_query"
ops="put get"
ops="get"
num="1000000"
workloads="uni zipf_1.2"
for op in $ops; do
for wk in $worklo... |
1a78017e3f1f90dd1f6b6554486ae91d211cb847 | 94 | cd web2py
python web2py.py -S Bionimbus -M -R applications/Bionimbus/scripts/spreadsheet.py
|
b9ba124093c0faee697256fe3fe1b5e04bad6023 | 1,894 | export OS_CLOUD=standalone
# nova flavor
openstack flavor create --ram 512 --disk 1 --vcpu 1 --public tiny
# basic cirros image
curl -O https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
openstack image create cirros --container-format bare --disk-format qcow2 --public --file cirros-0.4.0-x86_64-disk... |
c32693292e1acc98f6f229b5a5493d5319f8b168 | 2,110 | #!/bin/sh
PKGNAME="flashplayer-plugin-11"
INSTALLED_VER="$(find /var/log/packages/ -type f -name "${PKGNAME}-*" | \
cut -f 5 -d / | rev | cut -f 3 -d - | rev)"
echo "Installed version: ${INSTALLED_VER}"
URL="https://helpx.adobe.com/ru/flash-player/kb/"
URL="${URL}archived-flash-player-versions.html"
VERSION=$(wge... |
fe8de1a855b5a8046cc035d3ca2c2912225eb14d | 10,518 | #!/bin/sh -e
# Copyright (C) 2010 John Pilkington
# Largely based on scripts posted by Tino Keitel and Kees Cook in the Mythtv lists.
# Usage: ./mythcutprojectx <recording>
# <recording> is an mpeg2 file recorded by MythTV with a valid DB entry.
# This script is essentially a terminal-based replacement for the 'los... |
9cc01c11d8fb6507118318624ea540f051a11bf8 | 2,306 | #!/bin/bash
#
# Plots a directory with results from instrumentation.
#
DIR="${1}"
PROG="${2}"
CPU="${3}"
HTML="$DIR/index.html"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -z "${DIR}" ]; then
echo "Usage: plot_dir.sh <directory with files>"
exit 1
fi
plot_part ()
{
FILE="${1}"
SCRIPT="${... |
6371d5332f79690e7785144afe973967c0d60430 | 247 | #!/bin/bash
state=$(systemctl is-active keepalived)
printf '%-12s : %-10s\n' router $state
state=$(systemctl is-active httpd)
printf '%-12s : %-10s\n' api-server $state
state=$(systemctl is-active mysql)
printf '%-12s : %-10s\n' database $state |
6f2900aabab3bc14e7cc079de8e45b15e19e41b3 | 445 | ##
## Zplug configuration
##
# source ~/.zsh/plugin/init.zsh
#
# zplug 'zsh-users/zsh-autosuggestions'
# zplug 'zsh-users/zsh-syntax-highlighting'
# zplug 'zsh-users/zsh-completions'
# zplug 'junegunn/fzf'
# zplug 'zsh-users/zaw'
# zplug 'ascii-soup/zsh-url-highlighter'
# if ! zplug check --verbose; then
# print... |
b7c3b2dc896248040a533d246e7e7d9bb12208af | 245 | #!/bin/bash
LINEAGEOS_REPO=https://github.com/LineageOS/android.git
LINEAGEOS_BRANCH=lineage-15.1
DEVICE_CODENAME=us998
PROPRIETARY_BLOBS_REPO=https://github.com/SGCMarkus/proprietary_vendor_lge.git
PROPRIETARY_BLOBS_DIR=$BASE_DIR/vendor/lge
|
4db927c7ced394234735612ce4c1460550482261 | 570 | #!/bin/bash -e
package_name="rcn-ee-archive-keyring"
debian_pkg_name="${package_name}"
package_version="2015.03.12"
package_source="${package_name}_${package_version}.orig.tar.xz"
src_dir="${package_name}_${package_version}"
git_repo=""
git_sha=""
reprepro_dir="r/${package_name}"
dl_path="pool/main/${reprepro_dir}/"
... |
c443f2bb13917f831dc46e1e9831659972090729 | 45 | PORT=5000
CORS_ORIGIN = http://localhost:3000 |
ccbfb5a4740b95a5fae6386e996f5862bc9dd2c6 | 48 | !/bin/bash
echo y | sudo docker image prune -a
|
4282ba1d426c68b5412f03297f7ba29a5105ca8a | 369 | #!/usr/bin/env bash
if [[ $# -ne 2 ]]; then
echo "Usage: $0 user@host:optional/path (no trailing slash) file-extension-expression"
else
upload_path=$1
file_extension_expression=\.${2}$
inotifywait --format "%f" -me close_write -q . | while read file
do
if [[ ! "$file" =~ $file_extension_expression ]]; then con... |
84d731f83282b21ffd3bbaa2948dd74281fe5c02 | 80 | S3PATH="s3://turing-redcap-dashboard/dataset/"
DATABASE="turing"
TABLE="redcap"
|
ae40d867edcaf078d322d711328bfeceb92515e3 | 532 | shopt -s autocd
shopt -s cdspell
# my new alias
alias open='xdg-open'
alias bashrc='vim ~/.bashrc'
alias ll='ls -alh'
alias la='ls -A'
alias l='ls -CFlh'
alias lsd="ls -alF | grep /$"
alias srcbash='source ~/.bashrc'
alias als='cat ~/.bash_aliases'
# git aliases
alias adda="git add -A"
alias pull="git pull origin mas... |
f5b4d750bbcb42950006e8f374fe248d355338c9 | 172 | #!/bin/sh
echo "[*] Deleting old rfi.txt..."
rm rfi.txt
echo "[*] Downloading latest rfi.txt..."
wget "https://fuzzdb.googlecode.com/svn/trunk/attack-payloads/rfi/rfi.txt"
|
f4cbe96eb87f4c1fb5cc2e3344c002f122b60222 | 309 |
REACT_APP_APU_KEY=AIzaSyDKhRQap5M989MOKSDDP-10uLQyxM9OL20
REACT_APP_AUTH_DOMAIN=remind-me-1900a.firebaseapp.com
REACT_APP_PROJECT_ID=remind-me-1900a
REACT_APP_STORAGE_BUCKET=remind-me-1900a.appspot.com
REACT_APP_APP_ID=703955854602
REACT_APP_MESSAGING_ID=1:703955854602:web:aad6f8d97676e669b006f3 |
87c6b74402a576e42655956e60d861e4d9e93ae0 | 145 | #!/bin/sh -eux
bin/ci.branches
if [ "${TRAVIS_BRANCH}" = "master" -a "${GHCVER}" = "8.4.4" -a "${CABALVER}" = "2.0" ]
then
bin/ci.publish
fi
|
8034690727b78d7e666690ce969cd58eeb6443db | 928 | #!/bin/sh
ask() { dmenu -i -l 6 -fn Go-Mono -p "$1" -it "$2"; }
export IFS=$'\n'
cachedir=~/.cache/dict/
mkdir -p $cachedir
for d in $STARDICT_DATA_DIR/dic/*.idx; do
c=$cachedir/$(basename "$d" .idx)
[ -f "$c" ] || generdictcache "$d" >$c
done
word="$(cat $cachedir/* | ask 'Translate:' $(xclip -out -selectio... |
dbb004c021ce51456dd57fe49eaa1dd4a0b57259 | 54 | REACT_APP_API_HOST = https://api-licenta.herokuapp.com |
caa9270a7f111cfee9b0926dfe579f7774c6b536 | 84 | #!/bin/bash
rm dist/ds1307service.deb
dpkg-deb --build ds1307 dist/ds1307service.deb |
1bf1f9424e52a8054fd2eb04a1d34f3332c2643c | 895 | # ##############################################################################
# SERVER
# ##############################################################################
SERVER_PORT=10130
JDWP_SERVER_PORT=10135
# ##############################################################################
# ENVIRONMENT
# ##... |
d75ce64b85421401dd7dfa8ef7dadf7a17c03851 | 1,077 | # Maintainer: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
_pkgname=afx2usb-linux
pkgname=$_pkgname-git
pkgver=0.r4.9f2ef7d
pkgrel=1
pkgdesc="Install or uninstall USB bootloader firmware for Fractal Audio Systems Axe-FX II audio processor."
arch=('any')
url="https://github.com/TieDyedDevil/afx2usb-linux"
l... |
0f52ac9a549f9a36a586b2cb78288fa6cc35b8ff | 381 | #!/bin/bash
#Author: VASANTH
#Date: May 2 2021
echo "THIS SCRIPT WILL CREATE A CONTAINER NGINX:1.19.10"
echo "--------------------"
sleep 1
echo "IT WILL LISTENS TO THE PORT http://localhost:8080"
echo "--------------------"
docker-compose -f ex3-compose.yml up
sleep 1
echo
echo "-------------------"
echo "CONTAINER... |
e5f024ef31b4fbc5ccebc3795d82f3caca5cec99 | 223 | #!/bin/bash
kubectl create namespace dc1 || echo could not create namespace dc1.
kubectl create namespace dc2 || echo could not create namespace dc2.
kubectl create namespace dc3 || echo could not create namespace dc3.
|
36775edd80f5e3a2e77e70500a1f749f47d6c578 | 253 | #
# __helpers.sh
# alloy
#
# Author: Wess Cope (you@you.you)
# Created: 11/20/2020
#
# Copywrite (c) 2020 Wess.io
#
#!/usr/bin/env bash
pause() {
read -p "$*"
}
quit() {
echo >&2 "$@"
exit 1
}
define(){ IFS='\n' read -r -d '' ${1} || true; } |
7ff808754e082e172613b157ac34a584aba1900a | 33 | #!/bin/bash
docker rm -f liberty
|
b0077e87f8141bf1d4b616f40b93dd5cc2f3d4b2 | 49 | #!/usr/bin/env sh
mkdir assessment
cp index.rb
|
396cb2455b396102d562640b1548feeeb616bc40 | 172 | #!/bin/bash
source common.sh
s='test_domain'
id="$( cut -d '_' -f 1 <<< "$s" )"
echo "$id"
#mysql=$(cat addproject/new_user.sql | sed "s|demo|$database|g")
#echo $mysql
|
9bb7805569192a75ceef437cf707c2b46696e3f2 | 172 | #!/bin/bash
# List the top-level references to "usernames" that are most referenced.
npx --yes tsx scripts/legacy-refs/detect-refs.ts app/models/mongodb.js usernames top
|
7ec30ffea3faa960af0bc6d3ea625f3c0f6fd19d | 896 | /usr/local/bin/blat -minScore=10 -tileSize=7 /rhome/cjinfeng/BigData/00.RD/RILs/Transpostion/input/TE/mping.fa /bigdata/cjinfeng/00.RD/RILs/Transpostion/bin/RelocaTEi_GN266/repeat/fastq/GN266_1.fa /bigdata/cjinfeng/00.RD/RILs/Transpostion/bin/RelocaTEi_GN266/repeat/blat_output/GN266_1.te_repeat.blatout 1>>/bigdata/cjin... |
87a96d1bf63c516c61462b79885b4e74d83085f5 | 1,941 | #!/bin/bash
# VOMS commands
VOMS_HOST=voms-biomed.in2p3.fr
VOMS_PORT=8443
VO=biomed
voms-admin --vo=$VO --host $VOMS_HOST --port $VOMS_PORT list-users
voms-admin --vo=$VO --host $VOMS_HOST --port $VOMS_PORT list-cas
voms-admin --vo=$VO --host $VOMS_HOST --port $VOMS_PORT --nousercert get-certificates '/O=GRID-FR/C=FR... |
a5ac7ae07fde208cacbab706750bb003784f86eb | 681 | #This script can be used to install and configure Docker CE on a RHEL/CentOS Linux distribution
#Update the RHEL/CentOS system packages
sudo yum -y update
#Install the Required Dependencies
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
#Add the Docker Stable Repository
sudo yum-config-manager --add... |
b21e774dbb51b37865102cf5063abf02766e692e | 443 | #!/bin/sh
#
# Example file for configuration options for publishing minutes
export EDITOR="/usr/bin/gedit"
export WAV_EDITOR="/usr/bin/audacity"
export SCRAWL_EMAIL_USERNAME=
export SCRAWL_EMAIL_PASSWORD=
export SCRAWL_EMAIL_SERVER=
export SCRAWL_TWITTER_CONSUMER_KEY=
export SCRAWL_TWITTER_SECRET=
export SCRAWL_TWITT... |
7cf5a194d96fc999f57959ae0fb34b3d2db10212 | 145 | #!/bin/sh
if test $# -eq 1; then
~/ccl/fx86cl -Q -K utf-8 -e "(progn $1 (ccl:quit))"
exit 0
fi
#~/ccl/fx86cl -Q -K utf-8
~/ccl/fx86cl -K utf-8
|
7e30adaa2a2974f4745b3d87a4895a73d20fb159 | 58 | #!/usr/bin/env bash
git rebase ${git get-main-branch} -i
|
87953347aed103acd3404c8599e0e0c6a74ecc89 | 535 | #!/bin/sh
diretorio=`pwd`
/usr/bin/unzip $diretorio/comm3.0_u1_linux.zip -d /tmp/
cp /tmp/commapi/jar/*.jar /usr/lib/jvm/java-1.5.0-sun/jre/lib/
cp /tmp/commapi/jar/tools/*.jar /usr/lib/jvm/java-1.5.0-sun/jre/lib
cp /tmp/commapi/lib/*.so /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386
cp /tmp/commapi/docs/javax.comm.propertie... |
556dc64d4ea5da40ac1138a1052d6b6a016dbb8f | 44 | clear;cd ~;rm .bashrc;figlet done !|lolcat
|
a4a22b3d482a69ad9c4cc21aa32d5ec88f4b885d | 443 | #!/bin/bash
# Script with lots of commands
sleep 1 && echo -e "Hello there!\n(greeting will be improved eventually)" && sleep 3 && termux-setup-storage && sleep 1.2 && cd ~/storage/shared/ && pkg update -y && pkg install -y wget x11-repo root-repo unstable-repo busybox termux-services git && echo -e "\n\n" && sleep 1 ... |
8ba704af6eb680070a8844089b4f155c598d3d25 | 890 | #!/usr/bin/env bash
# TODO needs revision, see:
# https://github.com/skycoin/skywire/issues/161
# local vars
SKYWIRE_UNIX_SCRIPTS=/usr/local/skywire/go/src/github.com/skycoin/skywire/static/script
# check for the env vars
if [ ! -f /etc/default/skywire ] ; then
# does not exist, link it
ln -s ${SKYWIRE_UNIX_SCR... |
5711385f3266a1edd1c1c67a80d2579319dccbff | 779 | #/bin/bash
EC2_INSTANCE_ID=$1
EC2_ACCOUNT_USER=$2
EC2_KEY_LOCATION=$3
# Retrieve information about the instance volumes
EC2_INSTANCE_INFO=$(aws ec2 describe-instances --instance-id $EC2_INSTANCE_ID)
EC2_VOLUME_ID=$(echo $EC2_INSTANCE_INFO | jq '.Reservations[0].Instances[0].BlockDeviceMappings[0].Ebs.VolumeId' | tr -... |
25d1946ac5a17c9ec0776691b97a2397d5c1ef06 | 242 | #!/bin/sh
# we'll expect a file that lists the private buildpacks to apply
# this pack is valid for apps with a hello.txt in the root
if [ -f $1/.heroku-private-build.lst ]; then
echo "Private buildpack detected."
exit 0
else
exit 1
fi |
e783d4a602fb467ec3d535efd28788e8d8dc1c81 | 786 | #!/bin/sh
[ -f /tmp/debug_apkg ] && echo "APKG_DEBUG: $0 $@" >> /tmp/debug_apkg
path_src=$1
path_des=$2
APKG_MODULE="Transmission"
APKG_PATH=${path_des}/${APKG_MODULE}
APKG_BACKUP_PATH=${APKG_PATH}/../${APKG_MODULE}_backup
mkdir -p ${APKG_BACKUP_PATH}
cp -arf ${APKG_PATH}/config ${APKG_BACKUP_PATH}
cp -rf $path_sr... |
9c0b378292d8d42d59203a3beb7d1770809ff2a9 | 222 | #/bin/bash
if [ ! -d $HOME/.pip ]; then
echo "make $HOME/.pip"
mkdir $HOME/.pip
fi
if [ ! -f $HOME/.pip/pip.conf ]; then
echo "pip.conf not exists. link it."
ln -s $(pwd)/pip.conf $HOME/.pip/pip.conf
fi
|
02a1497901983baf124e421f1d2869711ca00f3b | 99 | MYSQL_DATABASE=ts3_ranksystem
MYSQL_USER=tsnbot
MYSQL_PASSWORD=
MYSQL_ROOT_PASSWORD=
VOLUME_BASE=.
|
76a4fac3a0c1bcb175e2ed68487a2a3017a69c3e | 634 | #Provision haproxy
# NOT WORKING YET
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.5" >> /etc/apt/sources.list.d/pgdg.list
sudo add-apt-repository ppa:vbernat/haproxy-1.6 && \
sudo apt-get update &&... |
e9b2616cc694bdbc32f9cf188b63ad2d5b175728 | 496 | #!/bin/sh
WFM_MOUNT=/mnt/wfm
if mount | grep -q $WFM_MOUNT ; then
echo "waveform filesystem already mounted"
exit 0
fi
echo "mounting waveform filesystem"
# Set up loop as offset 0x1C41000 from flash root
losetup -o $(( 4096 * 7233 )) /dev/loop/1 /dev/mmcblk0
mount /dev/loop/1 $WFM_MOUNT
if [ $? -ne 0 ]; th... |
c2ee5cd219da73b0bb1b6429fe88044dad88421e | 124 | BROWSER_TYPE=CHROME
MOBILE=TRUE
BROWSER_WIDTH=375
BROWSER_HEIGHT=667
BROWSER_LOCATION=chrome_driver/windows/chromedriver.exe |
a202863370022233e6f5530f56132b602e316307 | 809 | #!/bin/bash
#Used to see if load is above maximum threshold
emailFile="/path/to/file/email.txt"
echo "Please open this script in notepad and replace the /path/to/file to a file"
echo "which contains an email for each line. Then you can remove these echo"
echo "statements and the following exit statement."
exit 0
MAX... |
7fa8b9be6cbb076ff29abe955c9923fffa001d94 | 395 | #!/bin/bash
set -e
echo "Setup project"
export CC=/vpublic01/frog/wyh/gcc-6.1.0/bin/gcc
export CXX=/vpublic01/frog/wyh/gcc-6.1.0/bin/g++
export NVCC=/usr/local/cuda-9.1/bin/nvcc
rm -rf build
mkdir build
cd build/
cmake ..
make clean
make -j100 VERBOSE=1
echo "Done with setup, ready to run, call:"
echo "./mainaimGraph ... |
15eb42e58237a8a40fe56cd2f4f71f7261b298cb | 75 | sudo apt-get update
# Symlink for bash aliases
ln -s ./aliases ~/.aliases
|
7752cdc80a8e1bfaca6fc78c50fc86b50caf68fd | 2,732 | #!/bin/bash
printf "Sending transaction for depositing assets into Alice's Iroha0 account...\n"
../helpers/iroha-add-asset-quantity.py "localhost:50051" "alice@test" "../../iroha0-data/alice@test.priv" "coin0#test" "1000"
printf "Sending transaction for depositing assets into Bob's Iroha1 account...\n"
../helpers/iro... |
e286ff784b238a31a011b827dcd82668fdcd1ee0 | 41 | #!/bin/bash
docker build -t data-store .
|
f29171b17ad26619d7a5460e7148c06dccf0be92 | 60 | #!/bin/sh
java -jar /pentest/reversing/cfr/cfr_0_119.jar $@
|
1cd41ff8d7b414cc64d31caafbf18ae1f6c35831 | 467 | #!/bin/bash
# fix the hostname for kubernetes...
ipaddr=`hostname -i`
converted=`echo $ipaddr | sed 's/\./-/g'`
namespace=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
realhost=$converted.$namespace.pod
hostname $realhost
datadir=`echo $HDFS_CONF_dfs_datanode_data_dir | perl -pe 's#file://##'`
if [ !... |
c8f3946a8a4233a8d9aee69ecb4c9cec0fa259ce | 338 |
#!/bin/sh
ep=$(kubectl get svc istio-ingressgateway -n istio-system -o jsonpath="{.status.loadBalancer.ingress[0].hostname}")
cookie=$(curl -sL -XPOST http://${ep}/login?username=jason -D - | grep set-cookie | cut -d ';' -f 1 | cut -d ':' -f 2)
watch -n 1 curl -o /dev/null -s -w %{http_code} -b ${cookie} http://... |
2a70fe6e8cf726081bfaa92cae9849d63790eb87 | 5,873 | #!/bin/bash
sudo mkdir -p /usr/local/lib
sudo mkdir -p /usr/local/lib/ceph/compressor
sudo mkdir -p /usr/local/lib/ceph/crypto
sudo mkdir -p /usr/local/lib/ceph/erasure-code
sudo mkdir -p /usr/local/lib/rados-classes
sudo mkdir -p /usr/local/share/ceph
sudo ln -sf /home/grakra/workspace/ceph/src/pybind/mgr /usr/local... |
7e5ead5d7d705b1eb34640d8a11b31c5d1b762fc | 7,516 | #!/bin/bash
debug=false; sday=false; repeat=true; disp=false
function calc {
read -p "Hour:" hour
read -p "minutes:" minute
awk "BEGIN {print $hour*60+$minute}"
exit
}
function graph {
g1="_"; g2="_"; g3="_"; g4="_"; g5="_"; g6="_"; g7="_"; g8="_"; g9="_"; g10="_"; g11="_"; g12="_"; g13="_"; g14="_"; g15="_"; g16... |
f9159f26c677cf824799f570ef134a025fb2b3a5 | 739 | set -e
apt-get remove docker docker-engine docker.io containerd runc && \
apt-get update -y && \
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \
apt-key fi... |
1ef9f800d2c83312dac8986772d5771be2fd044e | 1,876 | # Working directory
cd /srv/scratch/z5039045/PacBio/Falcon/BS107_2.10
# Copy 210WT.samphased.fasta and 210WT.samphased.sam to working directory
cp /srv/scratch/z3452659/ThomasPacBio-Nov15/analysis/2017-07-09.SAMPhasedBLASR/210WT.samphased.fasta .
cp /srv/scratch/z3452659/ThomasPacBio-Nov15/analysis/2017-07-09.SAMPhas... |
e75fb6d003ced5414461bf24273539e2a7c49780 | 330 | echo Sending POST data to http://172.17.0.4:8081/micro/review
curl -H "Content-Type: application/json" -X POST -d '{ "comment": "Needs better instructions", "itemId": 13402, "rating": 5, "reviewer_email": "dbellagio@us.ibm.com", "reviewer_name": "Dave Bellagio", "review_date": "11/04/2016" }' http://172.17.0.4:8081/mic... |
a278b49403277b56287c868aa9a0885164326dd3 | 470 | # @param string $1 (step_number)
# @return string (0=true, 1=false)
function _isSkippedStep() {
local step_number="${1}"
local step
local skip_steps=()
local result=1
if [[ -n "${SKIP}" ]]; then
while IFS='' read -r line; do skip_steps+=("$line"); done < <(echo "${SKIP}" | tr ":" "\n")
for step in ... |
9c343641a1a6f33265a721c9c244f6719e3896e0 | 739 | #!/bin/bash
# chkconfig:- 80 80
# Init file for Fibonacci service daemon
#
# Description: Fibonacci service deamon
#
# processname: fibonaccid
servicename="fibonacci"
prog="/usr/local/bin/fibonacci"
log="/var/log/fibonacci.log"
start() {
nohup $prog >> $log 2>&1 &
}
stop() {
ps -ef |grep $prog |grep -v "grep" |... |
760370f16b3bf2895cf0b1cccb5f5cb3bdca530e | 84 | echo -e 'This is a sample execution output for aqua status\n'
echo -e 'aqua\n'
ls -l |
55947b1b85100089a8aac424846e036540273af7 | 2,537 | #!/bin/sh
#Define the minimum size we'll resize to, default is 16x16px
minSize="16"
#Usage: ./AppIconResizer.sh <LARGEST_DESIRED_SIZE> <IMAGE_PATH>
# Ex: ./AppIconResizer.sh 1024 MyFullResIcon.png
# This example would create copies of 'MyFullResIcon.png' which have
# been resized to 1024x1024, 512x5... |
a2288494600942a7941c6f990dc73908823e6dd4 | 613 | #!/bin/bash
set -e
# Only run if template exists
if [ -f "/etc/tinc/tinc.conf.in" ]
then
# If TINC_CONNECT_TO is not set, set it to all filenames in /etc/tinc/hosts
if [ -z "$TINC_CONNECT_TO" ]
then
TINC_CONNECT_TO=$(ls -1 /etc/tinc/hosts/)
fi
# Expand TINC_CONNECT_TO to multiline configuration and ignore myse... |
0594dc08419593c489ff4ec6b10f5ed084b694d0 | 4,988 | install_googlechrome() {
wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
apt-get -f install -y
rm ~/google-chrome-stable_current_amd64.deb
}
install_git() {
apt install -y git
git config --g... |
7a3b671014467cd908c35c3bbc6695f05b424e27 | 2,108 | #!/bin/bash
set -x;
if [ $# -eq 0 ]; then
echo "No arguments"
exit 0
fi
SandboxID=`printf "%02d" $1`
CONFIG=$2
if [ -e "/root/sandbox/status/$SandboxID" ];then
echo "sandbox status file /root/sandbox/status/$SandboxID exists"
exit 0
else
echo "status = NetworkSetting" >> /root/sandb... |
b19c477a3fdcb306e2be9b4b06fbf90c3d1cb512 | 845 | #! /bin/bash
# Program:
# install apach protable runtime
#
set -e
# go somewhere safe
cd /tmp
# get the source to base APR 1.5.2
curl -L -O http://apache.stu.edu.tw/apr/apr-1.5.2.tar.gz
# extract it and go into the source
tar -xzvf apr-1.5.2.tar.gz
cd apr-1.5.2
# configure, make, make install
./configure
make
sud... |
376f0a2e8b805672c4e0f4bc284c8886891223a5 | 782 | #!/usr/bin/env sh
if (( $# == 0 )); then
echo "Usage: $0 MEDIA_ENTRY_ID"
echo "Example: $0 f5b78e56-a229-4295-a4cc-0311e6534207"
exit 1
fi
MEDIA_ENTRY_ID=$1
MEDIA_ARCHIVE_BASE_URL='https://medienarchiv.zhdk.ch'
RV_PLAYER_BASE='https://rv-dev.process.studio'
function uriencode { jq -nr --arg v "$1" '$v|@ur... |
514b6e167bc2166b176783eb1d0616aa43d3d157 | 2,624 | #!/bin/bash
# This script installs Python 2.7.6 3.3.5 and Anaconda3
# My Anaconda don't want none unless you got buns hun
clear
echo "This script will install and configure anaconda software for your system"
# Check whether you are root
if [ "$(whoami)" == "root" ]; then
echo "Sorry, you are running with r... |
d7f2a5c3cd46bbd33df81cfd2efe3e29182a55bf | 2,847 | #!/bin/bash
#
# PARAMETER
#
# par1: scwid without extension e.g. "00520010010"
# par2: tbin for the lc extraction in sec
# note that the script assumes the scw are found in the archive
# and at peculiar location for the input catalogue
#
### GRID SETUP
#
#$ -S /bin/bash
#$ -j y
#$ -o /gpfs0/ferrigno/INTEGRAL/nrt... |
e979257401bbae6af5292f2580e3724179da2ca3 | 68 | #!/bin/bash
ssh -C -N -R 2219:localhost:22 rssh@monitoringku.com &
|
36e540b38b6460a4bc60cd49b0cff9e3c62fbc80 | 2,462 | #!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); y... |
baa76f7438dbb610ce1edaab30803f1b99e98141 | 564 | #!/bin/bash
i=0
lambdaP=0
lambdaN=0
tot=0
ii=0
numberflow=5
totF=0
RESULT=0
all=10
for i in 3 #1 2 3 4 5 6
do
while read lambda avgPower
do
if [ $lambdaN -eq $ii ]
then
lambdaP=$lambda
lambdaN=$lambda
else
lambdaP=$lambdaN
lambdaN=$lambda
fi
if [ $lambdaP -eq $lambdaN ]
then
tot=`echo $to... |
126a825790acee3d71cbaad078680aea6b0f63b0 | 58 | pip install virtualenv
virtualenv venv --python=python2.7
|
82e83596bbfee4a7c496b4f5faa1c698f1c4585e | 126 | nohup python -u manageCrabTask.py -t resultsAna_CSCNtuples_2017SingleMu_Zmu_BC_RawReco_20180308_v1/ -r -l >& managedata.log &
|
dffb29c9b2f5e32a22ba758817b059e9bb1de5d6 | 1,210 | #!/usr/bin/env bash
###############################################################################
# script to quickly connect to a nested docker container
#
# example would be to get into an instance of a container on a remote server
# which might have changed the id and needs to be newly identified
################... |
2a761c2d468901f89fc291cf8b0d6bd341964c5f | 1,616 | sudo apt-get remove docker docker engine docker.io containerd runc
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
... |
0e68c1778eb083a4a7318a946f311bb70f347207 | 646 | #!/bin/bash
for i in `cat ../rarity.txt`
do
if [ ${#i} == 1 ]
then
if [ $i == C ]
then
convert images_original/$f.png -background black -alpha remove -bordercolor gray -border 7x7 images/$f.png
elif [ $i == U ]
then
convert images_original/$f.png -background black -alpha remove -bordercolor limegreen -... |
8ce18d1c92c0b68afd3937ffa1ecfe6cb90599dc | 236 | #!/bin/bash
#add fix to exercise4-server1 here
sudo sed -i '$ a\192.168.100.11 server2 server2' /etc/hosts &&
<<-EOT cat >> /etc/ssh/ssh_config
Host server2
HostName 192.168.100.11
User vagrant
EOT
sudo service ssh restart
|
76ebf8f07d4278c2197bb7d3a093b87cbaadedac | 1,025 | #!/bin/sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
eval "$(/opt/homebrew/bin/brew shellenv)"
/opt/homebrew/bin/brew install git
git clone https://github.com/anyenv/anyenv ~/.anyenv
echo 'eval "$(~/.a... |
feec8e6e2ead98c609f56c54efd40910c91e49ce | 263 | root_path="/Users/ddulaev/Documents/BioInformatics/SIMBA3D"
for (( i = 1; i < 22; i++))
do
dir_path_iter="${root_path}/examples/command_line_tutorial/results/chr${i}"
cd ${dir_path_iter}
for file in *.pdb; do
mv "$file" "Simba3d_chr${i}.pdb"
done
done |
5c9017da6dd9849ffaa7d360e8691ea8458074d1 | 244 | rm /tmp/vid/tmp/mylist.txt 2> /dev/null
for f in /tmp/vid/tmp/*.mp4; do echo "file '$f'" >> /tmp/vid/tmp/mylist.txt; done
mkdir /tmp/vid/result
ffmpeg -f concat -i /tmp/vid/tmp/mylist.txt -c copy /tmp/vid/result/result.mp4
rm -rf /tmp/vid/tmp
|
9b1fc360128fd26a79d36f3c3854b41f84963e8a | 963 | #!/bin/bash
usage(){
cat << EOF
Usage: $0 [OPTIONS] {amount of clients}
OPTIONS
-a grep output for how many cokes were given
-b grep output for how many clients got colas
-v grep output for verbose representation of colas distribution on clients
NOTE
For easy monitoring of the server process
watch -n 0.1 "ps -eLf|... |
9c77195b8ed5fc601b4c1ebc40fc9ffdf58c4e4c | 369 | #!/bin/sh
set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y ansible curl git
git clone --depth=1 https://github.com/matsuu/ansible-isucon9-qualify.git
cd ansible-isucon9-qualify
ansible-playbook --connection=local -i webapp, standalone.yml
cd ..
rm -rf ansible-isucon9-qualify
apt-get r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.