blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
c378b9e4b441294ccf1e0895c656032203ed5d87 | 1,418 | aa() {
echo -e "alias ${1}='${2}'" >> ~/.bash_alias && load
}
ad() {
sed '/alias ${1}=/d' -i ~/.bash_alias
}
au() {
ad ${1} && aa ${1} ${2} && load
}
deploy() {
message="Deploy branch ${1}? (y/N): "
read -p "$message" -r
if [[ $REPLY == y ]]
then
echo
git checkout master && git pull && git mer... |
cb867cdc92bfb12ed5c3a2b287e19d142f4e1a53 | 449 | #!/usr/bin/env bash
set -eu
# Retrieve the sha
git fetch "${JUST_GIT_USE_REMOTE-${JUST_GIT_UPSTREAM-just_upstream}}" "${1}"
# store the branch name incase merge fails, this will reattach the head how
# exactly it was
before_branch="$(git rev-parse --abbrev-ref HEAD)"
# detach the head
git checkout "$(git rev-parse HE... |
7449a2efa8c9c603f360c65eacf36778a8b19252 | 2,626 | #!/bin/bash
#
# Copyright (c) 2015, Los Alamos National Security, LLC
# All rights reserved.
#
# Copyright (2015). Los Alamos National Security, LLC. This software was
# produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos
# National Laboratory (LANL), which is operated by Los Alamos National
# Sec... |
69241ccd0d6ee9f68543afcf92e34ac1c16f35be | 1,080 | #!/bin/sh
set -eu
echo "*** Installing Cassandra"
curl -SL http://downloads.datastax.com/community/dsc-cassandra-$CASSANDRA_VERSION-bin.tar.gz | tar xz
mv dsc-cassandra-$CASSANDRA_VERSION/* /cassandra/
echo "*** Installing Python"
apk add python
# TODO: Add native snappy lib. Native loader stacktraces in the cassand... |
e9f7b37c7737de1451e1f72bb5d3941a2fd31d10 | 34 | nvm use v6.11.2
source ./.secrets
|
6f1b9ab3ad7f4e338d371a81d579533a26e6fd92 | 1,945 | #!/usr/bin/env bash
_pyfiledir_setup_pythonpath(){
_PYFILEDIR_PATH="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" || return; pwd -P )"
if [ "$OSTYPE" = "msys" ]; then
PYTHONPATH=${PYTHONPATH:+${PYTHONPATH};}$_PYFILEDIR_PATH
else
#----------|-if PYTHONPATH not empty add leading colon |
... |
0a934df4fe5c053832075f58d2b5bffc0acfbe48 | 1,493 | #!/bin/bash
if [ $# != 2 ]
then
echo " use for root in cluster"
echo " Usage:"
echo " $0 NewUser Group"
exit 2
fi
WHO=`whoami`
if [ $WHO != "root" ]
then
echo " Only root have permission to add user "
echo " Please use root to run this script! "
exit 2
fi
HOST=`hostname`
i... |
85846c01a6ac5b7da84c4a94a17e703dbd39a380 | 141 | #!/bin/bash
set -e
if [ "$1" = 'liquidsoap' ]; then
eval $(gosu liquidsoap opam config env)
exec gosu liquidsoap "$@"
fi
exec "$@"
|
dc93261ee01c83d33d2e3555ce7d2a5f9d81cc0d | 476 | ORCHESTRATOR_OPTIONS+=" --no-retry"
ORCHESTRATOR_OPTIONS+=" -e x86_functional:$PWD/../BipModel/include"
ORCHESTRATOR_OPTIONS+=" -e x86_functional:$PWD/../BipEngine/include/generic"
ORCHESTRATOR_OPTIONS+=" -e x86_functional:$PWD/../BipEngine/include/specific"
ORCHESTRATOR_OPTIONS+=" -l x86_functional:$PWD/../BipModel/li... |
86af977dcd52382869b15ffc2d5a79732519d06f | 76 | #!/bin/sh
nohup ./objs/testSrslibrtmp -c ./objs/srs.conf >/dev/null 2>&1 &
|
deb14162ce1361974164f843522ba65fac5f9102 | 402 | #!/bin/bash
split=valid
python create_lm_data.py \
--seq_len=16384 \
--bsz_per_host=8 \
--lower_case=False \
--split=${split} \
--tokenizer_type=sent_piece \
--tokenizer_paths=../data/wikitext-103-sp/wt103.model \
--input_glob=../data/wikitext-103/${split}.txt \
--save_dir=../data/wikit... |
dfc74e705f1f2b2fa7c6f0d331c745db1f617974 | 185 | #!/bin/bash
# Download Netdata
# bash <(curl -Ss https://my-netdata.io/kickstart.sh) --dont-wait --dont-start-it
# Download fping
# /usr/libexec/netdata/plugins.d/fping.plugin install
|
51d06227a0af97568a1c5633e7be0459d913b09d | 2,800 | #!/bin/bash
#
# Pre-Configure xawtv for sidux
#
# License: GPL
#
# Based on initial work by Kai Lahmann <kl@3dots.de>
#
# Patches and Debian package by Fabian Franz <knx-xawtv@fabian-franz.de>
#
# Spanish translation by Sergio González, <sergio.gonzalez@hispalinux.es>
#
#
#---------------------------------------------... |
8277e02bcacdc15e3e48730c0cb2746e16a0688e | 111 | #!/bin/bash
export HOST_USER=$(id -u -n)
export HOST_UID=$(id -u)
export HOST_GID=$(id -g)
docker-compose up
|
66011250c090c45ccf94cb57e2e197bc019f9a9a | 2,800 | #!/bin/sh
umask 002;
mkdir -p ../Results;
#Run the samples against the four CARD types in parallel, and wait for the jobs to finish;
for i in `ls`; do read1=`readlink -e ${i}/processed/${i}_1.fastq.bz2`; read2=`echo ${read1} | sed -e "s:_1.fastq.bz2:_2.fastq.bz2:g"`; seq1=`echo ${read1} | rev | cut -f1 -d "/" | rev |... |
a1102d7bd1765b303734a4fc4f1081c65ab67241 | 483 | #!/bin/sh
set -e
newpost=$(cat <<EOF
{
"id":"MSG010",
"message":"This is a new post",
"user":{"userName":"asterix","name":"Asterix"},
"date":"2020-03-28T12:07:43.883997"}
EOF
)
curl -s -d "$newpost" -H "Content-Type: application/json" -X POST -o /dev/null http://localhost:8081/posts/create
curl -s htt... |
99c3f71dfaa3ef217e299933343c4d3dcc949e89 | 415 | #!/bin/bash
update() {
sudo apt-get update -qq
}
install_dependencies() {
sudo apt-get install -yqq make gcc libssl1.0.0 libssl-dev \
libcap-ng0 libcap-ng-dev python python-pip autoconf \
libtool wget netcat curl clang sparse flake8 \
graphviz autoconf automake libtool python-dev
sudo pip -qq insta... |
b66052a17058b0f2c6bcdb73e329473a6f79d69f | 56 | #!/bin/bash -xe
echo Hello World from Remote Builder!
|
52339632aaaa31d5b50493b9dea708c168a04dc3 | 107 | #!/bin/bash
echo "two values"
read num1 num2
if [ $num1 -ne $num2 ]
then
echo "two not are equal"
fi
|
8c787d422fab5b1d2d333f3e6671a1fac89cace8 | 802 | #!/bin/sh
# Check for Smart Card Daemon
echo "Checking pcscd (PC/SC Smart Card Daemon)"
if ps -ef | grep -v grep | grep pcscd > /dev/null; then
echo " pcscd running"
else
echo " pcscd not running"
echo "Warning: Smartcard will probably not work until pcscd is running!"
fi
# Home Path to installation direc... |
1df407f32be83219dec86186f8bd0a5077006692 | 103 | R -e 'study_id=6; subject_id=48; source("multiple_comparison_correction_and_registration_to_MNI.R")'
|
b5566e18ec2aa0e3d1c7e164d198a83add68e267 | 3,258 | #!/bin/bash
set -e
if [ ! -e $TOOLBOX_PATH/bart ] ; then
echo "\$TOOLBOX_PATH is not set correctly!" >&2
exit 1
fi
export PATH=$TOOLBOX_PATH:$PATH
export BART_COMPAT_VERSION="v0.4.03"
####
# Pattern
####
bart repmat 0 384 Fig4b_ptrn Fig4b_pattern
####
# ESPIRiT
# The pics reconstruction needs the slices in dimens... |
d5d087fedf9b81ac7cf7299ee82b7565728ce543 | 1,539 | # Maintainer: Ezekiel Bethel <zek@9net.org>
pkgname=switch-configs
pkgver=1
pkgrel=4
epoch=
pkgdesc=""
arch=(any)
url=""
license=('GPL')
optdepends=(xorg-xinput xorg-xrandr libpulse)
install=
source=(git+https://gitlab.com/switchroot/switch-l4t-configs.git r2p.service 10-monitor.conf asound.state brcmfmac4356-pcie.txt... |
e0db245dcc8b6e2617bbd19466ffc109290e8860 | 138 | REACT_APP_AUTH0_DOMAIN=dev-vmaacgmk.us.auth0.com
REACT_APP_AUTH0_CLIENT_ID=91KVKp5hc76NqgTRjnnRzj4HSvqsQVJA91KVKp5hc76NqgTRjnnRzj4HSvqsQVJ |
72e75cf9d9c5e54ad0ca2a7f4f9416ffc6b16222 | 496 | #!/bin/bash
set -eu
cd "${0%/*}"
readonly language="${1:-English}"
if [[ ! -d "models/parsey_universal/$language" ]]; then
(
mkdir -p models/parsey_universal
cd models/parsey_universal
wget "http://download.tensorflow.org/models/parsey_universal/$language.zip" >&2
unzip "$language.zip" >&2
rm "$l... |
9bd3af9de9389a9259c5f4311fe6dcf9a102388b | 526 | #! /bin/bash
# join video files together
if [ -z "$1" -o "$#" -lt 3 ]; then
echo "extra=y $0 [-k] <out> <first> <second> [...]"
exit 0
fi
[ "$1" = "-k" ] && keep=1 && shift
out="$1"
shift
for i in $(seq 1 $#); do
in="$(eval echo \$$i)"
ffmpeg -nostdin ${extra} -i "$in" -c copy -bsf:v h264_mp4toannexb -f mpegts ... |
c5d61da6ece9be21e82b5335a002d7fefcf05cd0 | 72 | #!/bin/bash
read -p "Please, enter string: " VAR
echo "Hello, ${VAR}!"
|
3fbae2834920a5677116ba2bbaafb266ae87d574 | 207 | #!/bin/sh
##tstamp: 20121006_105740
_vroot="vroot";
_host_specific_root="conf/$(uname -n)";
if [ -L $_vroot ]; then
echo ">>> update existing $_vroot";
rm $_vroot;
fi
ln -s $_host_specific_root $_vroot;
|
fe1b4ddc0f55f41851cb1b9c26484491bdd1f323 | 587 | #!/bin/sh
sudo pacman -S --needed mariadb
yay -S --needed mycli # autocompletion and syntax highlighting
mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl mariadb.service
mysql -u root -p
# atm I am not running mysql as a regular user
# https://dev.mysql.com/doc/mysql-security-ex... |
b4c6552815a6c7aeb1e419c46fb4f83cef2eefe5 | 1,419 | bindkey -v
autoload -Uz edit-command-line
zle -N edit-command-line
bindkey -M vicmd 'v' edit-command-line
bindkey "^[[1;3D" backward-word
bindkey "^[[1;3C" forward-word
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
source /usr/local/Cellar/fzf/0.22.0/shell/key-bindings.zsh... |
17e0bae8a67c9ed1eed7248b18a763d7d6f97b7c | 110 | #!/bin/sh
bfg \
--delete-folders "{node_modules,.pioenvs}" \
--replace-text audit/passwords.txt \
.
|
c1f05f2225733fe79379ab4927174a676e2a9c67 | 2,398 | #!/bin/bash
function runPretestGen {
tcat <<<"\
9
info 1 5
info 1 7
rollback 1
check 1
clone 1
undo 2
check 2
rollback 1
check 1"
}
function runTestGen {
# Subtask 1 (5 tests): n <= 1000, no undo
tgen ../gen n='[10;20]' undo_c=0
tgen ../gen n='[300;500]' undo_c=0
tgen ../gen n=1000 undo_c=0
tgen ../gen n=1000 undo... |
feb448d1ae644b0f0db18e62e9b14503c8636763 | 1,273 | #!/bin/bash
# Download leap seconds file
source="https://www.ietf.org/timezones/data/leap-seconds.list"
wget $source
## Create Delta T file for Cartes du Ciel
#source=http://maia.usno.navy.mil/ser7
#source="--inet4-only ftp://cddis.gsfc.nasa.gov/pub/products/iers"
source="ftps://gdc.cddis.eosdis.nasa.gov/products/... |
713447aa5bd2df52632b2a10dbd1a6e993486524 | 102 | #!/bin/dash
# Test04 by Martina Zaki, z5264835
for number in 234 53 3 sheep
do
echo $number
done |
c5561b7f31f45733566713b99dededec8e01b39a | 6,156 | ulimit -t 1
echo $1 $2 $3 $4 $5 >> testruns.txt
case $2 in
p1) $1 199 0 920 555 97 5090 2 772 430 1 0 0 | diff outputP/O1 - && exit 0 ;;
p2) $1 972 1 293 188 648 9666 3 337 440 0 0 0 | diff outputP/O2 - && exit 0 ;;
p3) $1 485 1 341 740 472 3313 2 369 440 0 0 1 | diff outputP/O3 - && exit 0 ;;
p4) $1 27 1 64 46... |
8c7090bd14f071ef58c828f563497dcbfa769831 | 243 | #!/bin/sh
source /home/mitsuba-renderer/setpath.sh
NUM_PROCS=8
OUTPUT_DIR='images/demo_camera_static'
mkdir -p $OUTPUT_DIR
imageI=1
mitsuba -p $NUM_PROCS -o ./$OUTPUT_DIR/demo_camera_static_without_cam_directions.png demo_camera_static.xml
|
40e43f0764db162436f52412b6c1b1c048916f4b | 311 | #!/bin/sh
for i in \
linkedlists-castor.gp \
linkedlists-moleson.gp \
linkedlists-orc-castor.gp \
linkedlists-orc-moleson.gp \
queues-castor.gp \
queues-moleson.gp \
trees-castor.gp \
trees-moleson.gp \
;
do
echo "Processing:" $i
gnuplot $i
epstopdf `basename $i .gp`.eps
rm `basename $i .gp`.eps
done
|
12fd5b50ab322a3c0b28cf245eb0b27538fc3284 | 4,643 | #!/bin/bash
DISK_LOCATION="${HOME}/rootfs/virt-builder"
function check_virt_builder()
{
type virt-builder 2>&1 > /dev/null
if [[ $? -eq 0 ]] ; then
echo y
else
echo n
echo "Install virt-builder (libguestfs)" 1>&2
fi
}
# $1 - arch
# $2 - kernel path
function touch_arch()
{
pushd "${DISK_LOCATION}" > /dev/... |
1b8547ad36592becde5e9671ec3f2f98126aed3c | 6,863 | #!/bin/bash
##
# Copyright 2007-2011 University Of Southern California
#
# 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 require... |
5a268ffad53dd2d282274e1d449f4651e2cc6bd6 | 327 | #!/bin/bash
export AWS_ACCESS_KEY_ID=AKIAJQTI36MB3A4ZXAUQ
export AWS_SECRET_ACCESS_KEY=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
FCH=$(date +%H-%M)
echo "Backup Mysql"
mysqldump -u root -h dbaws -pdbaws sugar > /tmp/bk_sugar-$(hostname)-$FCH.sql
echo "Subiendo backup"
aws s3 cp /tmp/bk_sugar-$(hostname)-$FCH.sql s3://... |
ef8cf49190cf7e4bc9600479558b3bfdd532c0f3 | 1,232 | #!/bin/bash
LOOKUPS="80.11.67.135
server7.integrityserver.net"
REGEX_IP="\(\([0-9]\{1,3\}\.\)\{3\}\([0-9]\{1,3\}\)\)"
REGEX_IP_HOST="\(\([0-9]\{1,3\}[-_\.]\)\{3\}\([0-9]\{1,3\}\)\)"
REGEX_WORD="[-_\. a-zA-Z]*"
# assume input isn't IP
HOST_IP=''
IS_IP=''
for LOOKUP in ${LOOKUPS}
do
HOST_IP=${LOOKUP}
IS_IP=`echo ${... |
53ad4f23ef8739ff9b3431b23a77ebe3714dd328 | 237 | #!/bin/sh
set -e
set -u
set -x
GO_PACKAGE=go1.4.1.linux-amd64.tar.gz
if [ -e *.rpm ]; then
rm *.rpm
fi
cp $HOME/$GO_PACKAGE ./
docker build -t=centos6 .
rm $GO_PACKAGE
docker run -it --rm -v `pwd`:/pki centos6 /bin/sh /pki/makeRPM.sh
|
5692600295a91182f774f8ae7863fdf5c1866f00 | 1,783 | # shellcheck shell=bash disable=SC1090
## Set Environment Variables
# -----------------------------------------------------------------------------
export BROWSER=firefox
export EDITOR=nvim
export VISUAL=$EDITOR
export TERMCMD=termite
# merge program for pacdiff
export DIFFPROG="$EDITOR -d"
# find locally installed... |
32ff3ec1269a39776d76724d27448b644834b813 | 812 | export CC=/opt/openmpi-2.0.2/bin/mpicc
export CXX=/opt/openmpi-2.0.2/bin/mpicxx
export CF=/opt/openmpi-2.0.2/bin/mpif90
export FC=/opt/openmpi-2.0.2/bin/mpif90
export F77=/opt/openmpi-2.0.2/bin/mpif77
export LIBRARY_PATH=/opt/openmpi-2.0.2/lib/:${LIBRARY_PATH}
export PATH=/opt/openmpi-2.0.2/bin/:$PATH
cd ..
cd peridigm... |
c2e23f933ffd0eb8bb3b75bb307d556118b3a292 | 954 | #!/bin/bash
# $Id: INSTALL.sh,v 1.13 2010/04/25 10:46:44 o-mizuno Exp $
echo "====================================================================="
echo " PMAN3 installer script"
echo "====================================================================="
echo "mkdir db & tmp"
mkdir db
chmod 777... |
d3e6a0babe3b0e431d75dea9427118428327d2bb | 101 | ../annt -w data-weights.xml -t training-data2.txt -x 1 -e 500 -S -r 0.001 -m 0.8 -l S784 S16 S16 S10
|
9e0be233edef17d5a94236291ba43729b0c19995 | 116 | #!/bin/bash
set -e
export MACOSX_DEPLOYMENT_TARGET=10.8
./configure --enable-shared --prefix=${PYTHONHPC_PREFIX}
|
e17636aa23a38b0db12420212d11fcbe25755645 | 1,227 | #!/bin/bash
#
# This script is executed at the end of appliance creation. Here you can do
# one-time actions to modify your appliance before it is ever used, like
# removing files and directories to make it smaller, creating symlinks,
# generating indexes, etc.
#
# The 'kiwi_type' variable will contain the format of t... |
c15d8d696ede5f8566c37d1bcbfd3c22cd2b5fc5 | 805 | #!/bin/bash -l
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --mem=64G
#SBATCH --output=std/popss%j.stdout
#SBATCH --error=std/popss%j.stderr
#SBATCH --mail-user=cfisc004@ucr.edu
#SBATCH --mail-type=ALL
#SBATCH --time=2-00:00:00
#SBATCH --job-name="stacks"
#SBATCH -p koeniglab
# software dependencies
# stacks 2.60
mo... |
5b284b04000962e760cb94d63406a2118b47158b | 175 | #!/bin/bash
. /home/maneesh/.bashrc
export FLASK_APP=/home/maneesh/Pavlok/pavlok-scripting/app.py
screen -dmS pavlok_scripting /usr/local/bin/flask run --host=0.0.0.0 -p 5020
|
270fb7d65504a7f199dadbc1b001ae276a7f6c4b | 153 | #!/bin/bash -x
ID=$(pgrep -lf sshfs)
MOUNTPATH=$(mount | grep fusefs | awk '{print $3}')
kill -9 ${ID}
sudo umount -f /home/serkroes/hassfs/fileshass
|
3a36496cecf80975819b22ec5f7a38434bc7045c | 1,504 | #!/bin/bash
#Second Shell Script Execise to create multiple users
# Make sure the script is run with super user privileges
if [[ "${UID}" -ne 0 ]]
then
echo "The script needs Super User Privilege"
exit 1
else
echo 'Executing with Super User Privilege'
fi
#Give a poitional argument to create a username
if [[ ... |
760cbd896636025313feb2bd7f53316e0d29912f | 3,323 | # 文字コードの設定
export LANG=ja_JP.UTF-8
# パスの設定
PATH=/usr/local/bin:$PATH
export MANPATH=/usr/local/share/man:/usr/local/man:/usr/share/man
export SVN_EDITOR=vim
# 関数
find-grep () { find . -type f -print | xargs grep -n --binary-files=without-match $@ }
# エイリアスの設定
alias ls='ls --color=auto'
alias ll='ls -ltr'
alias gd='d... |
171c1561eae382639c4de4e824bb742063cced95 | 1,668 | #!/bin/bash
#
# Citrix XenServer 5.5 VM Backup Script
# This script provides online backup for Citrix Xenserver 5.5 virtual machines
#
# @version 3.01
# @created 24/11/2009
# @lastupdated 01/12/2009
#
# @author Andy Burton
# @url http://www.andy-burton.co.uk/blog/
# @email andy@andy-burton.co.uk
#
# Get current di... |
14c8dddb6f07ca4657c2ca7c36eb22835d314de1 | 2,811 | #!/bin/bash
#
# Daemon Name: sensoriamentod
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DPATH=/home/fagnerpsantos/Developer/Arduino/sistemas-embarcados/umidade/cpp/sensoriamentod/Release
DESC="Sensoriamento de sensores"
NAME=sensoriamentod
DAEMON=$DPATH/$NAME
DAEMON_ARGS=$DPATH
PIDFILE=/var/run/$NAME.pid
# Exit if the package ... |
df333e2e02896de2de846b83b5973d8b0fd13a0c | 737 | #!/usr/bin/env bash
# Copyright (C) 2017 'icrunchbanger' icrunchbanger@gmail.com
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
#
# This program is distributed in... |
49fd76ea5761742d71dd549a3a3935f12f3d6442 | 164 | #!/bin/bash
# 生成目标文件
gcc -fPIC -o add.o -c add.c
gcc -fPIC -o sub.o -c sub.c
# 生成共享库
gcc -shared -o libzmath.so add.o sub.o
rm *.o
exit 0
|
e2bcc1bb47a239931e30e5f39d100bf4aa4186b3 | 198 | #!/usr/bin/env bash
lsof -wc vlc \
| awk '$4~"[0-9]r" && $5=="REG"' \
| grep -o \
-e '/.*.mp4' \
-e '/.*.avi' \
-e '/.*.flv' \
-e '/.*.mkv' \
-e '/.*.mpg' \
-e '/.*.wmv'
|
56bbfa7caf38c5b1c240833608960bc44ce95007 | 1,859 | #!/bin/bash
#
# "We're here to observe another kind of code. The bad code." - Root, Person of Interest
#
IP=$1
echo ""
echo ""
echo "####### #####
# ###### # # ##### ## # # ##### # # #
# # ## # # # # # # # #... |
16a8538916ea79f60f0c58d5b769da5b248b21e7 | 287 | #!/bin/bash
bash ./scripts/increment_android_version_code.sh
bash ./scripts/increment_android_version_name.sh
bash ./scripts/update_ios_version_code.sh $(bash ./scripts/get_android_version_code.sh)
bash ./scripts/update_ios_version_name.sh $(bash ./scripts/get_android_version_name.sh)
|
daa254cdb80c2cdf3902d54bb61172aca795227b | 61 | ### port
PORT = 2000
### mongo url
MONGO_URL = <mongoose url> |
e08e72a408ed15d1b0f2a00aad96c0d1770f85f2 | 1,755 | #!/bin/sh
# ---------------------------------------------------------------------------
# JOnAS: Java(TM) Open Application Server
# Copyright (C) 2005-2007 Bull S.A.S.
# Contact: jonas-team@objectweb.org
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser Gene... |
d5fd9b2f12dea4a97ee97193e01f3e69b381f81d | 540 | #!/bin/bash
# vim: set ft=bash syntax=on
alias rpm-keys="rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'"
function kto {
gdb --batch-silent --pid=$$ --eval-command='call unbind_variable("TMOUT")'
}
function td {
sudo kill $(cat /var/run/openvpn.pid)
sudo rm -f /var/run/openvpn.pid
}
funct... |
d5859b61489bb5b91707d0e967b01259fd39a366 | 216 | #!/bin/sh
sudo snap install android-studio --classic
echo ANDROID_HOME=/opt/android/sdk | tee --append ~/.bashrc
echo PATH=\$PATH:\$ANDROID_HOME/tools:\$ANDROID_HOME/platform-tools | tee --append ~/.bashrc
|
2e2f81f3669248ceb4ed6c672c11528977274fd0 | 325 | javac -d bin -classpath src:libs/jssc.jar src/SimpleSender.java
javac -d bin -classpath src:libs/jssc.jar src/SubMCUTester.java
javac -d bin -classpath src:libs/jssc.jar src/BdosSerialSender.java
javac -d bin -classpath src:libs/jssc.jar src/TelnetSender.java
javac -d bin -classpath src:libs/jssc.jar src/ESP8266Tester.... |
28f2e15d3795bfbfa83cbb02cf42e59115d994ee | 235 | cd ./task/autograd
python3.7 -m pip install pytest
python3.7 -m pip install allure-pytest
case_dir_list=('base')
for case_dir in ${case_dir_list[@]}
do
python3.7 generate.py ${case_dir}
python3.7 test_${case_dir}.py ${case_dir}
done
|
681ebe3bf34349caf087d91d68b90c0f0b4cd19e | 297 | eval "export pwd=\$pwd_$TRAVIS_BRANCH"
eval "export usr=\$usr_$TRAVIS_BRANCH"
rm -rf .git .travis
rm .travis.yml .gitignore
(
echo set ssl:verify-certificate false
echo set ftp:prefer-epsv false
echo open -u $usr,$pwd sl51.web.hostpoint.ch
echo mirror -v -c -e -R
echo exit
) | lftp -f /dev/stdin
|
5520e322211921214912ee6dbbc566ef08831c7b | 1,692 | #!/usr/bin/env bash
# This script will run alongside the data.sh script to install a LAMP stack
set -e
set -u
# Update the APT cache
apt update -y
# Upgrade the apt repos to ensure we install the LTS
apt upgrade -y
# Install Apache2
apt install apache2 -y
# Install PHP and the dependencies
apt install php7.0 libap... |
27794e132f5c81a9db131347ca4eeeac16aa0239 | 128 | DATABASE_URL=postgres://postgres:postgres@localhost:5432/db_desafio_coteminas
NODE_ENV=development
API_URL=http://localhost:3333 |
82d86f961036521fa8f088bc99aa2835fe5af9d7 | 958 | #!/bin/bash
CRLIBM=../crlibm/.libs/libcrlibm.so.0.0.0
NEWGLIBC=../glibc/build/glibc/math/libm.so
./time_math2 < input-decks/exp-inputs || exit 1
./time_math2 input-decks/exp-inputs || exit 1
./time_math2 -d input-decks/exp-inputs-hard || exit 2
./time_math2 -A $CRLIBM -a exp_rn input-decks/exp-inputs-hard || exit 3
... |
71cdb7ea513ac71c070c85b2b6829ea2585efb0d | 219 | #!/bin/sh
if [ ! -d testo ]; then
mkdir testo
fi
JULIA_NUM_THREADS=4 julia src/chloe.jl -o testo testfa/*.fa --level=info
for f in $(ls testo)
do
echo "diffing $f"
diff testo/$f testfa/$f
done
rm -rf testo
|
909245232faa5cb7aaf72c8dbc86f6e714d335dc | 876 | #!/bin/bash
if [ -z "$DOCKER_TAG" ]; then
if ! GITTAG="$(git describe --tag --long --exact-match 2> /dev/null)"; then
GITTAG="$(git describe --tag --long --dirty)"
echo "This commit is not tagged; use this for testing only"
fi
DOCKER_DIR_HASH="$(git rev-parse --short=12 HEAD:curiefense)"
... |
2266ac4ca1c77ae7cd324a03abe3c4445ed39d1d | 202 | #!/bin/bash
mode=( 0 1 )
P=( 2 4 8 12 )
N=( 120 240 480 960 )
for m in "${mode[@]}"
do
for p in "${P[@]}"
do
for n in "${N[@]}"
do
mpiexec -np p helloworld.py n p m
done
done
done |
5e3e66e79fb10f52ba3783b15040e64ccbe823ac | 530 | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# setup python
if [ ! -d env ]
then
virtualenv env
fi
. env/bin/activate
./env/bin/pip install -r requirements.txt
export PYTHONPATH=$PYTHONPATH:$DIR
export PATH=$PATH:$DIR/bin
# setup node
if [ -n "$BARRISTER_NODE" ]
then
# force modul... |
1b06af6e3bdd71281d1f69551b8a47b8c5e27a09 | 543 | #!/bin/bash
echo -e "$cMagenta#===========================================#"
echo -e "# SSH Keys"
echo -e "#===========================================#$cDefault"
# Create the ssh directory if it doesn't exist yet.
if [ ! -d "$HOME/.ssh" ]; then
mkdir $HOME/.ssh
fi
sshfiles=$(ls $dir/ssh)
for file in... |
2d9e0477940d773b5c84c687404676090126d1a0 | 144 | #!/bin/sh
set -e
cd "$(dirname "$0")"
cd ../..
mkdir -p backend/snarks/
cp semaphore/semaphorejs/build/verification_key.json backend/snarks/
|
2e5974a2641468a61433ab781bf858a9e269dbbb | 401 | #!/bin/bash
#####################################################################
# Move window to given workspace (and follow) #
#####################################################################
desktop_id="$1"; shift
active_window_title=$(xdotool getactivewindow getwindowname)
wmctrl -t "... |
7ffa8b28c67b56cd86e08bc196adc28f2c16ca9e | 520 | #!/bin/bash
# LGSM install_ut2k4_key.sh function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
echo ""
echo "Enter ${gamename} CD Key"
echo "================================="
sleep 1
echo "To get your server listed on the Master Server list"
echo "you must get a free CD key. Get a key here:"
echo "h... |
725e2c1f8539f79d9994c15a0b8b4cf481ee8942 | 69 | cd ./frontend
yarn install --production --frozen-lockfile
yarn build
|
b2e76912bb6d31f8cb62902d4bbac9bde4b4b0cb | 1,067 | #/bin/bash
#
# Xperimental!!
#
#
# for each of the PST files create a folder and burst into it
# - BUT using the "-o" to get tthunderbird compatible files
#
# IFS business, because we have filenames
# with spaces in them...
OLDIFS=$IFS
IFS=$'\n'
#
#
ifile="ClientA/USB-1/PersonA.pst"
ofile="ClientA-X/PersonA-ema... |
c12f89d4de89c09d195fcd19c9fd3458bae01bbb | 1,139 | #!/bin/bash
#SBATCH --account=def-glatard
#SBATCH --time=00:05:00
#SBATCH --nodes=5
#SBATCH --mem=20G
#SBATCH --cpus-per-task=1
#SBATCH --ntasks-per-node=1
logdir=/scratch/vhayots/sparkpilot/logs
mstr_bench=$logdir/hpc_def_${SLURM_JOB_ID}_benchmarks.out
spscript="/scratch/vhayots/sparkpilot/example/dummyprogram.py /s... |
01f0bdce014609864415bc5df9011e5d404fcb4a | 1,950 | #!/bin/sh
#
# tags:alpine-notify-srv alpine-hw
# target::/usr/local/bin/
# mode:755
#
set -euf -o pipefail
bot_api="https://api.telegram.org/bot"
send_notification() {
wget -O- "${bot_api}${bot_key}/sendMessage?${textmode}${ding}chat_id=${chat_id}&text=$(urlencode "$*")"
}
urlencode() {
# urlencode <string>
ol... |
094a2d4e3095da3f47047a6ce6dfe96cdf4b2874 | 210 | #!/bin/bash
set -x
java -jar \
-Xmx512M \
-Ddata.url=http://nginx/trace.dat \
-Doutput.dir=/root/result \
-Dlogs.dir=/root/logs \
-XX:+PrintGCDetails \
/root/dists/processor.jar
|
59de7d6b328a87f1e48f576e2d7e744c2cdbbe9f | 1,455 | #!/bin/bash
#$ -q "all.q@wigclust1[7-9]","all.q@wigclust2[0-4]"
#$ -pe threads 2
#$ -l vf=8G
#$ -o /mnt/wigclust1/data/safe/kostic/output/output_paired_real.out -j y
export BOWTIE_PATH=/mnt/wigclust1/data/safe/kostic/bowtie-1.2.1.1
export DATA_PATH=/mnt/wigclust1/data/safe/kostic/cut_sites
export RESULTS_PATH=/mnt... |
cb1fc02466900b3b49e7a2c9543186f407edb31a | 957 | #!/bin/bash -v
# this script puts the matchbox executable
# in a zip file that can be submitted
# to the starexec execution platform
source=MB.hs
exe=MB.exe
target=matchbox2016
# target=matchbox-compress
# name of the binary in the release package
# will be $target.bin
# note that source release/$target.sh must ex... |
a028196937c8fa2406d0503b0775ca836a022a7c | 63 | python manage.py dumpdata --settings=sis.settings > data.json
|
11a8fe571a1860a48d512b7849d31f124d61bf37 | 465 | #!/usr/bin/env bash
# For Django: run manage.py in either the project or app level
function m(){
(
while true; do
if [[ -f manage.py ]]; then
python manage.py "$@"
return 0
else
if [[ $(pwd) = '/' ]]; then
echo "Ca... |
3c95a7526fb473b595c03c478ebd8076b56015df | 331 | # Automatically created
background='#1b1d1e'
black='1b1d1e'
red='f92672'
green='4df840'
yellow='f4fd22'
blue='2757d6'
magenta='8c54fe'
cyan='38c8b5'
white='ccccc6'
brightBlack='505354'
brightRed='ff5995'
brightGreen='b6e354'
brightYellow='feed6c'
brightBlue='3f78ff'
brightMagenta='9e6ffe'
brightCyan='23cfd5'
brightWhit... |
efbe4f8ce7f204ee6a7a332ec6f64b525cd16360 | 27 | API_KEY=
SERVER_PORT=42210
|
706298b8701dda13c971cf5571ca806dd1c3cde7 | 1,553 | #!/bin/env zsh
fpathMC="/dpm/in2p3.fr/home/cms/phedex/store/user/kskovpen/SimAnalysis/v20160409/"
liMC=($(/usr/bin/rfdir ${fpathMC} | awk '{print $9}'))
fpathMCXRD=$(echo ${fpathMC} | sed "s%/dpm%root://sbgse1.in2p3.fr//dpm%g")
nFilesMC=20
outDir="lists/"
rm -rf ${outDir}
mkdir ${outDir}
rm -f /tmp/tempMC.txt
for... |
3e40d8b417a7e482d629f87c6458e34107bf13ff | 688 | #!/bin/sh
sudo launchctl stop com.fsb.logKext
sudo launchctl unload /Library/LaunchDaemons/logKext.plist
sudo /Library/Application\ Support/logKext/logKextKeyGen remove
sudo rm -f /Library/LaunchDaemons/logKext.plist
sudo rm -rf /System/Library/Extensions/logKext.kext
sudo rm -rf /Library/Application\ Support/logKext
... |
7c1aba4bf2edd43af7a943e11f2234f50536827c | 1,419 | source ~/.bash_aliases
if [ -f ~/.git-prompt.sh ]; then
source ~/.git-prompt.sh
export PS1="\[\e[35;1m\]\T \[\e[32;1m\]\W\[\e[1;33m\]\$(__git_ps1) > \[\e[0m\]"
fi
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
export NVM_DIR="/Users/di.huynh/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm... |
b7277c8ffd1271e158fca9cbd2384b851f3096a8 | 68 | #!/bin/bash
while read -r line
do
echo "Ligne lue : $line"
done |
56e6c2c16537527e4412a3eec4f2e7369a0281bd | 170 | python3 MCAN-RoBERTa_pair-cat_box_tfidf-neg_focal_all_predict-all_cls.py 0 24
python3 Visual-BERT_pair_box_tfidf-neg_focal_all_predict-all_cls.py 0 24
python3 ensemble.py |
cf19b323db16bef7698b7fe89b523955308487c6 | 4,981 | #!/bin/bash
# License: GPL last version . Лицензия : GPL последней версии
# Written: Mikhail Zaripov . Написано: Михаил Зарипов
# Last modified: ___ . Исправлено _____
RPMIOPT=" --ignoresize --nodigest --nosignature --nosuggest "
#RPMIOPT=" --ignoresize --nosignature --nosuggest "
if [ "`id -u`" != "0" ] ;then
ec... |
884a2e8af2175be56ad6e32ed1db24446141f213 | 375 | if [ -f ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh ]; then
source ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
fi
export TERM=xterm-256color # It only works with 256 capable terminals, sorry =)
export PATH=$HOME/.bin/:$HOME/.perl5/bin:$PATH:~/.local/bin
ex... |
9ee65a56ea542b62a5fe52a2608273fb8ed8d604 | 895 | #!/bin/bash
#Shell script to build and push image for operator
#Command to build operator image
echo -n "Enter repository name "
read repo_name
echo -n "Enter Operator image name "
read image_name
#command to build image
sudo operator-sdk build $repo_name/$image_name
#Command to push operator image
sudo docker pu... |
d4ece9fa1a73bd9ada9951bc8bbca3986614db18 | 17,113 | #!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution ... |
1983f47471fc7125f66d2c4eb4ce5a810ab51b8e | 420 | #!/bin/sh
rm -rf component.xml
rm -rf parallella.bit.bin
rm -rf parallella_spi.cache
rm -rf parallella_spi.hw
rm -rf parallella_spi.sim
rm -rf parallella_spi.xpr
rm -rf parallella_spi.zip
rm -rf reports
rm -rf results
rm -rf src
rm -rf system.cache
rm -rf system.hw
rm -rf system.runs
rm -rf system.sim
rm -rf system.src... |
5a42238dc62fdbf43376682dee02f1d507faf329 | 2,313 | #!/bin/sh
#
# Use ab to upload a program via reverse telnet and run it
#
# Some default values
SCRIPT="/tmp/.as1267/.s"
DIR="/tmp/.as1267"
version="1"
# Show usage and exit
usage() {
echo ""
echo "Before running this script, you first need to run the following:"
echo " nc -l -p localPort < file2Xfer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.