blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
fd391c18ff34326d73e790e6d155623d4472b26d | 215 | #!/bin/sh
. ${DIR_MELVABLE}/module/ubuntu_1404_64bit_mac/ubuntu_1404_64bit_mac.melvablesrc
Initialize
InstallDevelopTall
# InstallExplore
# InstallWatch
InstallOptimize
InstallTime
InstallSudo
# InstallServerLamp
|
1a01ce92d73678ab34948a146c46c4e33018bd17 | 685 | #!/bin/bash
# vim: set ft=sh
set -e
exec 3>&1 # make stdout available as fd 3 for the result
exec 1>&2 # redirect all output to stderr for logging
from=$1
if [ -z "$from" ]; then
echo "usage: $0 <path/to/source>"
exit 1
fi
# for jq
PATH=/usr/local/bin:$PATH
payload=$(mktemp $TMPDIR/samba-resource-request.XXXXX... |
4bd3b05799c7fbb5b0969d8ebc1dd4903e7f9334 | 378 | #!/bin/bash
# Originially stolen from: https://git.io/vi07z
while :
do
# Outputting like that reduces blinking
status_output=$(git -c "color.status=always" status --short --branch)
log_output=$(git --no-pager log --color=always --abbrev-commit --date=relative --pretty=live $@)
clear
echo "$status_o... |
9c5d4fca7d18363b8a6336150deb9dee50c87bfa | 6,206 |
ssh -t savitar "cd /data/savitar/tabhid;cd Server_Exps;echo 'xvfb-run-safe -s \"-screen 0 1400x900x24\" python3 ../Main.py --name Mario_1_1_1_stp_LR_0.0001_Gamma_0.99_Batch_32_itrs_1_Xp_300k_CEps_0.9999_Decay_Count_12_Stle_1000k_Beta_0.001_Eps_1_0.05_k_uid_0 --env Mario-1-1-v0 --lr 0.0001 --seed 7 --t-max 1200000 --ep... |
75f66225a4ff794d7bce6f7e9012c2a0767604ec | 8,927 | #!/usr/bin/env bash
make_docker_compose() {
cat << 'EOF' > "${PWD}/augur/docker-compose.yml"
version: '3.7'
services:
augur:
image: augurproject/augur:runner
restart: always
ports:
- 9001:9001
- 9002:9002
- 9003:9003
- 9004:9004
volumes:
- ./keys:/keys
environment... |
24cfac76632fc18d3b8c329f8d648e38ccdbaa45 | 117 | #!/bin/sh
dialog --title "Check me" --checklist "Pick Numbers" 15 25 3 1 "one" "off" 2 "two" "on" 3 "three" "off"
|
0f3581a1d189984d634f62bec9139a4174acd0ae | 436 | #!/usr/bin/env bash
# $@ - List of result files produced by algo2
# Computes the average maximum number of nodes per hyper-tree level and its
# standard deviation from the list of result files produced by algo2.
current_dir="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)"
tmp_file=$(mktemp)
bash ... |
a5bbd629d692accae8b4600dd299af9aa486fabf | 162 | #! /bin/bash
find . -name not\* | tail -1 | xargs rm
mkdir -p '12" records'
find \! -name . -type d | tail -1 | xargs rmdir
//https://en.wikipedia.org/wiki/Xargs |
0aa57ec68cdf524dde0be78ca44936fb16794941 | 84 | PORT = 23333
FILE_BASE_PATH = data
POOL_SIZE = 15
ENABLE_TSV = true
PAGE_SIZE = 4096 |
647c5d7b6f55515b971f23c37a7701d1bd6ad6f2 | 437 | #!/usr/bin/env bash
set -eu
setup_borg() {
title "Setting up borg"
local borg_file_dir="${CONFIGS_DIR}/borg"
info "Creating symlink for borg"
ln -sfn "$borg_file_dir" "$XDG_CONFIG_HOME"
info "Adding systemd"
mkdir -p "${XDG_CONFIG_HOME}/systemd/user"
ln -sfn "${borg_file_dir}/borg.servic... |
e4b3d34b844cf1161bb424550bd8baabcd6b119e | 2,275 | #!/bin/bash
source "/home/cwal219/training/.common"
intro () {
STEP="0"
cd "~/"
printf "${F_HEADR} ___ ___ ____ _ ____ _ \n / _ \ / _ \ _ | _ \ | | | _ \ (_) \n| | | | | | | (_) | |_) | __ _ ___| |__ | |_) | __ _ ___ _ ___ ___ \n| | |... |
8020bcafb3eb0487133325b6cd6bcde75120e6f9 | 2,419 | #########################################################################
# File Name:.sh
# Author: jxsr713
# mail: jxsr713@163.com
# Created Time: 2021年06月09日 星期三 15时10分45秒
#########################################################################
#!/bin/bash
#get current path
path=`pwd`
echo "current path:$path"
py_pa... |
481da8f0cb32690e70e9bd1adc9abd0bc9ea4d3a | 1,457 | #!/bin/bash -x
# resize the SD card to minimum size and zip it to image directory
# assume /dev/sdg2 is partition to be shrunk
# parameter 1 - output file name
# parameter 2 - optional root device partition otherwise /dev/sdg2
# parameter 3 - optional image directory otherwise /curation/images
# Automatically determine... |
1c4cd5d9e7ec834fa463cc016a062be609c04dfa | 604 | #!/usr/bin/env bash
#
~/.Scrips/wal -i ~/Imágenes/Wallpapers/ -o wal-set -a 95
source "${HOME}/.cache/wal/colors.sh"
reload_dunst() {
pkill dunst && \
dunst \
-lb "$color15" \
-nb "$color15" \
-cb "$color15" \
-lf "$color0" \
-bf "$color0" \
... |
07a7051091605ba6a798dfbc6c5ca8e8f667076c | 253 |
# coffee -c -o out/ coffeescript
handlebars templates/solution.handlebars -m -f out/solution.handlebars.precompiled-template.js
webmake --ignore-errors --ext=coffee coffeescript/html-app.coffee out/bundle.js
uglifyjs out/bundle.js -o out/bundle.min.js
|
f5be228c0c4208b7e99567c722e8b2ff6fcb7f4c | 1,750 | #!/bin/zsh
myArray=()
dateArray=()
timeArray=()
filenameArray=()
# comand running example ./.script.sh "Friday" "16:00" "19:00"
# $1 $2 $3
# then you can move the filtered.txt file to a specific folder
# mv `cat filtered.txt` bunchy
while IFS= read -r line; do
myArra... |
30ac30e86708bcb65d4df3e3f8ce6e2990d06811 | 404 | #!/bin/bash
# by @kinduff from post https://gist.github.com/lelandbatey/8677901
autotrace \
--dpi 1024 \
--line-threshold 0.1 \
--color-count 16 \
--corner-always-threshold 60 \
--line-reversion-threshold 0.1 \
--width-weight-factor 0.1 \
--despeckle-level 10 \
--despeckle-tightness 5 \
--preserve-wid... |
fe72d1bf60d09c5f4fd776bad12fb87ce8160abe | 6,011 | KUBEVIRT_OPERATOR_IMAGE=quay.io/kubevirt/virt-operator@sha256:2614cefd38f12db94912773664ae001c4e716e1d2dc8ce99ec6ef34774fc1f23
KUBEVIRT_API_IMAGE=quay.io/kubevirt/virt-api@sha256:9beee8b716423c6cc10c176cd31b49cdcf14408b5c6830e9dbea0e2aad322cd7
KUBEVIRT_CONTROLLER_IMAGE=quay.io/kubevirt/virt-controller@sha256:41211a967a... |
e09d76dee0cbf351c6c8ac0e9ce0f69e99ab279d | 124 | #!/bin/sh
../.././gradlew --quiet -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false run -p ../../ --args="-q" < $1
|
738b4d8a279a78522a3df021663ac32ba76a417f | 4,147 | #!/bin/bash
############################### 用户参数设定区 起始 ############################################
DailyBuildDir=/home1/zhangheting/DailyBuildSW1
CodeDir=$DailyBuildDir/Code
DAILYBUILDLOG=$DailyBuildDir/DailyBuild_A158.log
VersionDIR=$DailyBuildDir/Version
Date=$(date +%y%m%d)
############################### 用户参... |
a125320c4ec525d2308f6a6220434be578868e6f | 36 | #!/bin/bash
exec terminator -e tmux
|
b9d15afcc6e1745082e94b0cf5263efc05ad6039 | 343 | #!/bin/sh
hostname=$(cat /etc/hostname 2>/dev/null)
case "$hostname" in
ek874)
amixer set 'DVC In',0 20%
amixer set 'DVC Out',0 20%
amixer set 'DVC In',1 20%
amixer set 'DVC Out',1 20%
;;
hihope-rzg2m | hihope-rzg2n | hihope-rzg2h)
amixer set 'DVC In',1 20%
amixer set 'DVC Out',1 20%
... |
4dd628c2886a96b0119e00236d34cd0f15cdf5c0 | 1,728 | #!/bin/sh
SAMPLE='01'
./zokrates compute-witness -i waldo01.compiled -o waldo01_witness${SAMPLE}.dat -a 1015988797 227243221 73736855 598706041 2 229 321995
./zokrates generate-proof -p prove_waldo01.key -i waldo01-variables.inf -w waldo01_witness${SAMPLE}.dat > waldo01_proof${SAMPLE}-A.log 2>&1
./zokrates generate-pr... |
fadc8ed0c19fe6d960698d6d24de83ce5c8385f7 | 543 | #!/bin/sh
BUILD_DIR="build"
# New branch for release
BRANCH="release/3.5.0"
start_dir=`pwd`
./prepare.sh $BUILD_DIR
./build-all-core-apps.sh $BUILD_DIR $BRANCH
cd ./${BUILD_DIR}/cytoscape
./cy.sh switch $BRANCH || { echo Failed to switch; exit 1; }
./cy.sh pull || { echo Failed to pull; exit 1; }
mvn clean install... |
6997592820598eb0f0d231785c0e1d968e3c9c8d | 2,025 | #!/usr/bin/env bash
################################################
# Haskell
################################################
softcheck=`stat $HOME/.ghcup/env`
if [ $? == 1]; then
running "Downloading and installing Haskell's ghcup"; filler
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
... |
59a795008bad5a92511332761b67fc35335d0476 | 78 | /usr/local/bin/php /home/r2lpawan/public_html/index.php PromotionalMails index |
53a25dc64afcbd38fcf2ddafa67b1903cbc70c7a | 1,097 | #!/bin/bash
PARENT_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")";pwd -P)
echo "PARENT_PATH:" ${PARENT_PATH}
source ${PARENT_PATH}/header.sh
WD=$(pwd)
echo "WD:" ${WD}
cd built/Tests/Unit
###############################################################################
header 'UNIT TESTS STARTED'
for d in */; do
c... |
9ba99e055e16ae6c7ec347b84d162669321fceaf | 1,232 | # $Id$
# Maintainer: PhotonX <photon89@googlemail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=libbonoboui
pkgver=2.24.5
pkgrel=3
pkgdesc="User Interface library for Bonobo"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
license=('GPL' 'LGPL')
depends=('libgnomecanvas' 'libgnome')
makedepends... |
c3b60e3a81e83c444dedccc29c8267947796de35 | 10,721 | #!/bin/bash
# Список функций:
# init — входная функция
# createConfig — создание конфигурационного файла пользователя
# createDefaultFolders — создание необходимых папок
# checkGitignore — проверка и зоздания .gitignore
# checkTableVersionExist — провверка существования таблицы ве... |
a923dd59429d317e71c2917a95cb65f5203245dd | 577 | #!/bin/bash
#
# Copyright (c) 2019. TIBCO Software Inc.
# This file is subject to the license terms contained in the license file that is distributed with this file.
#
echo "Setting up consul gv provider.."
cd /home/tibco/be/gvproviders/consul
apt-get install -y wget
# Download jq.
wget "https://github.com/stedol... |
fc1e1ee55a9ed1005801399b53d57bc7beb3e151 | 1,188 | #!/bin/bash
# TODO: make it configurable if you open this stuff again
ENV=$1
INTERFACE=wlp2s0
function disable_networks {
wpa_cli disable_network 0 > /dev/null
wpa_cli disable_network 1 > /dev/null
wpa_cli disable_network 2 > /dev/null
}
function enable_network {
wpa_cli enable_network $1
}
function disable_... |
e5a0dcee431a27a19b4c21bf383f2a3afbd3f28f | 36 | QT_MAC_WANTS_LAYER=1 python3 main.py |
ad0922f478a47a0385890a5cff6f81641eeb7e16 | 363 | #!/bin/bash
git push --tags
ssh -T appuser@192.81.216.138 'bash -s' << EOF
export PATH="$PATH:/home/appuser/.nvm/versions/node/v6.9.1/bin:/home/appuser/.nvm/versions/node/v6.9.1/lib"
cd ~/apps/jeremymeyer.io
git remote update -p
git fetch --tags
git checkout $(git describe --tags `git rev-list --tags --max-... |
6373d8ad3088197a979ee01d034478a2c9e8ad7e | 937 | set log x
set log y
set xlabel "time [1/omega]"
set ylabel "k_perp(t) [cm2/s]"
set grid
set macros
usin='u 1:($2+$3)'
pl 'k_vs_t_Ek.6.0e+05eV_Nm128_slab1.00_sig.1.0e+00_Lc2d.3.0e-03_LcSlab.3.0e-02.dat' @usin w lp pt 7 ti "100% slab"
repl 'k_vs_t_Ek.6.0e+05eV_Nm128_slab0.60_sig.1.0e+00_Lc2d.3.0e-03_LcSlab.3.0e-02.dat' ... |
de55514103a889e18c6315a2d462c2a5c9107ac7 | 624 | #ifndef COMMON_SH_HEADER_GUARD
#define COMMON_SH_HEADER_GUARD
#if BGFX_SHADER_LANGUAGE_SPIRV
#undef BGFX_SHADER_LANGUAGE_HLSL
#define BGFX_SHADER_LANGUAGE_HLSL 5
#endif
uvec4 GetNeighbours(ivec2 pos, ivec2 size)
{
uvec4 result;
int maxX = size.x - 1;
int maxY = size.y - 1;
result.x = uint(pos.... |
47410fbe4c1b534a431f42fe6464df4e5e1fad6b | 1,579 | #!/bin/bash
#BSUB -P med106
#BSUB -W 2:00
#BSUB -nnodes 10
#BSUB -J Script2
# ----------------------------------------------
# This script uses more than 1 node.
# ----------------------------------------------
# You first need to load the appropriate module!
# module load ibm-wml-ce/1.7.0-2
echo "Bash version ${BASH... |
d461525fdf302e5e7ad412899cd8ddc7249a6442 | 100 | #!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
. ./pay-directly.sh
. ./pay-via-charlie.sh |
2184b3f5fd33e99bd3e47969f5ed8f1f9a8ad604 | 693 | #!/bin/bash
time=`date +"%m-%d-%H-%M"`
if [ ! -d "checkpoint" ]; then
mkdir checkpoint
fi
if [ ! -d "log" ]; then
mkdir log
fi
LOG=log/train_pool_${time}.log
# --feature_path "image_vgg19_block5_pool_feature.h5" --ifpool True \
# dir path flags
python train.py --workspace "/home/dagui/.keras/datasets/" \
... |
079d8b105c45b5a37b54200f8258b18bfb9e394a | 455 | #!/bin/bash
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export TF_MODULE=infra-cluster-az-tf
#
AZ_TFVARS=$TF_MODULE/az.auto.tfvars
AWS_TFVARS=$TF_MODULE/aws.auto.tfvars
source mc-r3-aks.env
cat <<EOF > "$AZ_TFVARS"
resource_group = "$RESOURCE_GROUP"
az_vnet = "$AZ_VNET"
az_vnet_subnet = "$AZ_VN... |
9139217de506351cd77022690aeb918f2dbff94f | 63 | #! /bin/sh
cp *.php /var/www/html
install *.sh /usr/local/bin/
|
af850026b9055736db235afa10fbb2334f972231 | 135 | #!/usr/bin/env bash
docker run -it igor/test:1 sh
docker run -v /home/igor/go/src/GoReadWriteTest/vol:/go/src/app -it igor/test:1 sh
|
b4c82a24e6f659e4734772efa80a59e651b45876 | 219 | #! /bin/sh
#ICBINK=~/src/kernel/icbink/entry_point-c
# Allow user to set their own.
if [ -z $ICBINK ] ; then
ICBINK=~/klisp/icbink/entry_point-c
fi
cd $(dirname $0)/../tests
$ICBINK ../run/icbink-compatibility.k
|
ac5b241f47b9b91a9aa223264c7b077d95b1fe84 | 979 | #!/bin/sh
# $Id$
# Script to add a prefix to README*tx files
# in order to let them appear in the Reference manual, generated
# by Doxygen, in the same order as on the main Web page.
mv READMEbase.txt p03_READMEbase.txt
mv READMEcalib.txt p13_READMEcalib.txt
mv READMEcalign.txt p14_READMEcalig... |
43b0d8a77ecfbbb93bc6a8f848e340c2cba2b13c | 521 | # Add `source ~/bin/bashrc` to ~/.bashrc.
# "activate" alias to activate a Python virtualenv
# in the usual place I put it
alias activate="source .env/bin/activate"
# https://github.com/magicmonty/bash-git-prompt
GIT_PROMPT_ONLY_IN_REPO=1
GIT_PROMPT_FETCH_REMOTE_STATUS=0
GIT_PROMPT_SHOW_UNTRACKED_FILES=no
GIT_PROMPT_... |
e652f79304d323f572e9811362232b0fafdbd54b | 107 | #!/bin/bash
dlv debug --headless --listen=:2345 --api-version=2 --accept-multiclient $GOPATH/src/web.go
|
19b108295cfd20a4510ff5c93c4e5fced2583b4e | 303 | #! /bin/bash
module load pgi/17.9
module load slurm
module load intel/xe_2018.2
source /ddn/apps/Cluster-Apps/intel/xe_2018.2/vtune_amplifier/amplxe-vars.sh
source /ddn/apps/Cluster-Apps/intel/xe_2018.2/advisor/advixe-vars.sh
export MLG=~/matrices-lg
export MSM=~/matrices-sm
export MVLG=~/matrices-vlg |
f4ec2c04022cfdf6ce509e1d45ae1626df529774 | 1,848 | ENVIRONMENT-> EnvSize:{500, 350} Radiation:0 Temperature:0 isSimulationActive:0
CELL-> GAr:100 GDi:85 GFL:150 GAg:100 GSi:50 GSp:2 GRR:300 GM:1.69749 Tp:1 TR:6.80665 Rt:197.673 Ps:{340.334, 276.545} A:0.0 Sp:0.166162 Si:20 De:0 FL:100.0 FF:0 Hr:100.0 TD:0 C:{255, 0, 0, 255} MFC:{0, 0, 0, 255} TxR:{14, 14, 6, 6} Tx:wh... |
9b75bfaf45b961c93aee2e993874f8798592cfa6 | 192 | #Display hostname and IP(s) for current container
echo "Hostname: $HOSTNAME | IP(s): $(hostname -I)" > '/usr/local/apache2/htdocs/index.html'
#Run web server in background
httpd -DFOREGROUND
|
f5b5353e27d1aba910fad4c9b01c59fecd6daa41 | 3,220 | #!/bin/bash
BASE_NAME="${1}"
SERVER_APP_NAME="${BASE_NAME}-server"
CLIENT_APP_NAME="${BASE_NAME}-client"
function usage() {
echo "usage: ./create-ad-app.sh <app-name>"
}
if [ -z "${BASE_NAME}" ] ; then
usage
exit 1
fi
SERVER_APP_PASSWORD=$(openssl rand -base64 32 | grep -o '[[:alnum:]]' | tr -d '\n')
expo... |
7b82d01d55036223cb73929064d4d7ab1949338c | 73 | APP_PORT=
DB_CONNS=
KEYPATH=
PGHOST=
PGPORT=
PGUSER=
PGPASS=
PGDATABASE=
|
a24e6b212ed746c83e722a58f4180a46544612df | 624 | #!/bin/bash
set -e
role=${CONTAINER_ROLE:-app}
env=${APP_ENV:-production}
migrate=${DB_MIGRATE:-0}
if [[ "$role" = "app" ]]; then
if [[ "$migrate" = "1" ]]; then
php /var/www/html/artisan migrate --force
fi
docker-php-entrypoint apache2-foreground
elif [[ "$role" = "worker" ]]; then
echo "... |
74c1bad3bc8eff63de5544b7200c44faf03c0737 | 766 | #!/bin/sh
VOLUME=${VOLUME:-/volume}
VOLUMES=${VOLUMES:-$VOLUME}
ALLOW=${ALLOW:-192.168.0.0/16 172.16.0.0/12}
USER=${USER:-nobody}
GROUP=${GROUP:-nogroup}
CONF_FILE=${CONF_FILE:-"/tmp/rsyncd.conf"}
mkdir -p ${VOLUME}
getent group ${GROUP} > /dev/null || addgroup ${GROUP}
getent passwd ${USER} > /dev/null || adduser -D... |
ad779cf5deb5877afbda255a0be3f19415c21f4f | 375 | APP_NAME=Lumen
APP_ENV=local
APP_KEY=base64:t2+acLjBHZl50WYorpSG8gtWSQfP8B501Ya+VyoSP5s=
APP_DEBUG=true
APP_URL=http://localhost:8080
APP_TIMEZONE=UTC
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=jwt
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=file
QUEUE_CONN... |
6db776b29cb0a4422c5660a5d7f94341e9aebfe2 | 1,371 | #!/bin/bash
#
# Copyright (c) 2020-2021 Intel Corporation
#
# 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... |
5f37ab08f0f3ad67cc3e01c18062403f8f9ea2c3 | 54 | defaults write com.apple.finder AppleShowAllFiles YES
|
1fff5d47d20c3e32acb53b62e3605b2b26822120 | 559 | #!/bin/bash
RATE=`/opt/zimbra/libexec/zmmsgtrace -s "@foo.com" 2> /dev/nul |grep "foo.com \-\->" |sort |uniq -c`
RATE=`echo $RATE |sed -e 's/ --> /,/g'`
OLDIFS=$IFS
IFS=','
aRATE=($RATE)
for line in "${aRATE[@]}" ;do
COUNT=`echo $line |awk '{print $1}'`
EMAIL=`echo $line |awk '{print $2}'`
#... |
1ead7be1a9485c3a762e1858f29f9608dbddd671 | 79 | #!/bin/bash
sudo pacman -Syyu
sudo pacman -S zathura
yay -S zathura-pdf-mupdf
|
2daa2568352e9dcd8efa9aae628e8a7a943a5cbb | 801 | #!/bin/bash
#
# Script for copy to arduno15 folder
#
# For Linux root: $ sudo test.sh root
#
os=`uname`
if [ $os == 'Darwin' ]; then
board_path=~/Library/Arduino15/packages/RedBear/hardware/STM32F2
elif [ $os == 'Windows' ]; then
board_path=~/Library/Arduino15/packages/RedBear/hardware/STM32F2
elif [ $os=='Linu... |
9d2116aef11d6d0e2ac84ac41ff79cae5c18fec1 | 334 | #!/bin/bash
docker stop $(docker ps -a -q --filter="name=minion.1")
docker rm $(docker ps -a -q --filter="name=minion.1")
docker run --name minion.1 -d -p 2020:22 --privileged --gpus all -v /sys/fs/cgroup:/sys/fs/cgroup:ro saurabh/docker-nvidia-systemd:latest
docker exec -it minion.1 systemctl restart systemd-user-ses... |
2e440d8167ca35e8511ec755ac061700c96123ea | 1,901 | #/bin/bash
XMLMERGYTOOL=$PORT_ROOT/tools/ResValuesModify/jar/ResValuesModify
GIT_APPLY=$PORT_ROOT/tools/git.apply
device_name=`grep "ro.product.device=" stockrom/system/build.prop | cut -d '=' -f2`
curdir=`pwd`
function applyPatch () {
for patch in `find $1 -name "*.patch"`
do
cd out
$GIT_APP... |
87afab83d612d89bd71f20e85d794100cf7464aa | 671 | #!/bin/bash
# current dir
currentDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# library dir
libraryDir="$currentDir/src/lib"
case "$(uname -s)" in
CYGWIN*|MINGW**)
export PYTHONPATH="$(CYGPATH -w $libraryDir);$PYTHONPATH"
;;
*)
export PYTHONPATH="$libraryDir:$PYTHONPATH"
;;
esac
# figurin... |
d107e12f943463ab8c3caf212d84123469019f7d | 444 | #!/bin/bash
#verificação de arquivo com mais de 24 horas
Horas_Arquivo=`date -r PrimeiroPrograma.java +%H`
Horas=`date +%H`
Minutos_Arquivo=`date -r PrimeiroPrograma.java +%M`
Minutos=`date +%m`
if [ $Horas_Arquivo-lt $Horas -a $Minutos_Arquivo -lt $Minutos ] ; then #Hora e minuto do arquivo menor que a atual
echo "... |
ac2b31b4002cc0abf9e204a6f7afbcc1a39f934c | 117 | python delaney_chainer_regression.py > delaney_output.txt
#python malaria_chainer_regression.py > malaria_output.txt
|
35c06d448dad7b5c27f4aba8a0a94ea7ac3c5277 | 155 | workdir=$(pwd)
cd $workdir
$workdir/bin/STAR --genomeDir $workdir/index \
--readFilesIn $workdir/data/reads.fastq \
--outSAMtype BAM SortedByCoordinate
|
1c590da73ebd4290d72695e6ecc619a9827b818a | 1,266 | pkgname=inescapable
pkgver="1.1"
pkgrel=1
license=('Commercial')
url="http://www.magneticrealms.com/"
pkgdesc="Unravel the mystery uncovered by a remote interplanetary mining operation."
arch=('x86_64')
_archive='inescapable_linux_1.1-amd64.deb'
source=("hib://${_archive}")
md5sums=('7bb8c6194dccac5a476bb288f3ae0f67')
... |
474667c77e064aabf1950994a73eda8b682e8c12 | 39 | #!/bin/bash
./all.sh | diff all.txt -
|
dff3c63e1574f68a8e310523d6db4ed6690590a5 | 61 | #!/bin/sh
for i in 1 2
do
my_secret_process $(i)_tmp
done
|
bbddc56cf34cb681eef5367aced149b50ed72f1c | 571 | #!/bin/bash
#This script just helps me create my submission:
printf '1. This is load_students.sh\n\n' > hw8.txt
cat load_students.sh >> hw8.txt
printf '2. This is insert_template_students.awk\n\n' >> hw8.txt
cat insert_template_students.awk >> hw8.txt
printf '3. This is table_schema_students.sql\n\n' >> hw8.txt
cat... |
bf78f0e0c90b592785cb1a286b40985b80e3f713 | 22 | HELLO=BAR
SEEKING=
NO= |
b75d504dfce00c749bb501ee5af28fc47f4aedb3 | 354 | #!/bin/bash
cat /proc/net/dev|awk {'print $1'}| awk -F: {'print $1'} > /tmp/cloudview_adaptor_2
while read line2
do
flag=1
while read line1
do
if [ $line1 == $line2 ]; then
flag=0
fi
done < /tmp/cloudview_adaptor_1
if [ $flag == 1 ]; then
ifconfig $line2 $1 netmask $2 up
route add default gw $3
fi... |
638c538352e594372a635a2a5f220d7aeeb4e7a4 | 2,278 | #!/bin/bash
echo
echo "Provision Edge-X S3 Proxy in AWS environment"
echo
# Format and mount volumes
VOLS="xvdc xvdd xvde xvdf"
let i=1
for v in $VOLS; do
echo
echo "Formatting /dev/${v}1 ..."
echo
echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/$v
mkfs.ext4 -b 4096 /dev/${v}1
mkdir -p /data/store$i
echo "/dev/${v}1 ... |
0727737a654db2c9f1cd71d1f7f2c165ac15a6fe | 198 | # Functions for interactive use
#
#
# Display the last brew run log (from this project's build scripts)
# for a given formula
function last-log() {
ls log/runs/*/*/$1 | tail -1 | xargs cat
}
|
2cf277351037ea896cf432143c8dd2e731de8d9b | 3,608 | #!/usr/bin/bash
# verify root
ID=$(/usr/bin/id -u)
[ $ID -ne 0 ] && echo "You must be root to run $0." && exit 1
#get environment name
[ ! -f ../.envtype ] && echo -n "Env Name: " && read ENVTYPE && echo "$ENVTYPE" >../.envtype && cp -f ../.envtype ../../.
#switch from enforcing to permissive selinux
# Add tfsupport... |
73e5704d95f3f468c9e30ac2c6982636ce845079 | 55 | source ~/.aliases
export PATH="$PATH:$HOME/.local/bin"
|
35486aed266710fabdf4f64b03ebdd98fdb3b5a0 | 1,016 | #!/bin/bash
NETWORK=`$HOME/config.py network`
BOTNAME=`$HOME/config.py nick`
CHAN=$1
CHAN_II=$HOME/irc/$NETWORK/$CHAN
inotifywait -e modify $CHAN_II/out > /dev/null 2>&1
STUFF=`tail -n 1 $CHAN_II/out`
USER=`echo "$STUFF" | sed -e 's/^[^<]*<//' -e 's/>.*$//'`
if [ "$USER" != $BOTNAME ]; then
MSG=`echo "$STUFF" | se... |
9299295a94c2a201fe6b49cca01bcc0d2f446bb8 | 550 | #!/bin/bash
SEGMENTATION=$1
TRANSFORM_MATs_TEMP=(`ls $2/*.mat`)
TRANSFORM_MAT_ATLAS=$3
INV_TRANSFORMs_TEMP=(`ls $4/*InverseWarp.nii.gz`)
INV_TRANSFORM_ATLAS=$5
REF=$6
for (( i=0; i<${#TRANSFORM_MATs_TEMP[@]}; i++ )); do
FILENAME=`basename ${TRANSFORM_MATs_TEMP[i]} | cut -d '.' -f 1`
OUTPUTNAME=./segmentation/... |
4f85610035ee24c0d1144ffbc56ed3d0f38cc2de | 64 | #! /bin/bash
# pip install -r requirements.txt
python init.py
|
a90dc71f7b8c6eff3b15fe1059a4f6ee3f8fe791 | 126 | #!/usr/bin/env bash
exec 2>&1
set -e
sleep 1
exec /opt/haproxy/1.4/haproxy \
-f /srv/etc/logstash/logstash.haproxy.conf
|
6d34b6fb9d891af643a07438cbedfdafaf2a7161 | 172 | NODE_HOST=172.31.1.5
NODE_RPC_PORT=8545
GET_BLOCKS_TIMEOUT=20
SEND_BLOCKS_TIMEOUT=60
RMQ_HOST=rabbitmq
RMQ_PORT=5672
RMQ_USER=admin
RMQ_PASSWORD=adminpassword
RMQ_VHOST=/ |
8fd9a370ebaa5f943b40af43c0429f93bac86eda | 128 | #!/bin/bash
. $DIR/util.sh
echo "Step 12, remove /home/basiclinux/grep/D"
removeFile ${homedir}grep/D
removeDir ${homedir}grep
|
20ed779d2afa80b37b5d2e3407ae930677167088 | 108 | #!/bin/sh
env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -v -o report.exe
|
7721de3be4a0f3d9bf963250c7e7324e26b4b4c7 | 297 | #!/bin/sh
sudo apt-get install python3-magic
pip3 install xmljson
pip3 install exif
pip3 install PyPDF2
pip3 install makeelf
pip3 install beautifulsoup4
pip3 install Pillow
pip install xmljson
pip install exif
pip install PyPDF2
pip install makeelf
pip install beautifulsoup4
pip install Pillow
|
ebdfcd8e42c93704ffdf5b0c410671cf982ff567 | 127 | Subdirectory checkout
Tracking shorthands
Setting the upstream branch
The golden rule of rebasing
Solving basic merge conflicts |
4eaf4d2efabe49db46cb2be1c204721532836db6 | 2,751 | #! /bin/sh
KVCONFIG_SRC_FILE="../Kyzenred.kvconfig"
TEMPLATE_FILE="../src/kvconfigtemplate"
if [ -e $TEMPLATE_FILE ]; then
echo Generating standard Kvantum colors...
TEMPLATE=$(
< $TEMPLATE_FILE ./kyzenred-kvantum-color-edit.sh "ForegroundNormal" "Colors:Window" "window_text" |
./kyzenred-kv... |
3e613bc154682f3dadeb38a6558899d7a0dd9fdb | 797 | #!/bin/bash -x
digit1=$(((RANDOM%899)+100))
digit2=$(((RANDOM%899)+100))
digit3=$(((RANDOM%899)+100))
if [ $digit1 -gt $digit2 ] && [ $digit1 -gt $digit3 ]
then
echo "$digit1 is greater than $digit2 and $digit3"
Max=$digit1
else
if [ $digit2 -gt $digit3 ]
then
echo "$digit2 is greater than $digit... |
3086d4d5e216601b899cd080848d40fcaca9ae51 | 498 | #!/usr/bin/env bash
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
SCRIPT_DIR=$(dirname $(readlink -f $0))
function backup()
{
if [ -f $1 ]
then
rsync $1 $2
echo "$1 backuped."
else
echo -e "${RED}File doesn't exists!$NC}"
fi
}
backup ~/... |
383ee80285ba4b854d8cb1a8686e6980a4155ec2 | 7,935 | #!/bin/sh -efu
. girar-sh-functions
. shell-args
PROG0="$PROG"
PROG='task run'
show_help()
{
cat <<EOF
$PROG - queue a task for build
Usage: $PROG [options] [<task id>]
If no task id is specified, the latest task created by the current user
will be choosen.
Options:
-m <word> use the given <word> as the re... |
d16c590c7a91627736a5319869c3f1df8d7b75ff | 158 | APP_PORT=3006
# Keycloak Credentials
KEYCLOAK_USER_MAIN=admin
KEYCLOAK_PASSWORD_MAIN=admin
KEYCLOAK_REALM_MAIN=master
KEYCLOAK_BASE_URL=http://localhost:8888 |
976b36134d4d2d76c2fbfd275335a66af05029f4 | 170 | #!/usr/bin/env bash
if pytest ; then
black .
git add .
git commit -m "$(echo $@)" # read the arguments as the commit message
fi
git reset --hard
git status
|
b5140c30bc3afeaaddf4de662f1ec1732c870533 | 2,488 | # vim: set ft=zsh:
# ALIASES
#alias ls='ls --color=auto -G'
#alias ll='ls --color=auto -lGh'
#alias la='ls --color=auto -lG -a'
alias console='script/console'
alias c='bundle exec pry -r ./config/environment.rb'
alias server='script/server'
alias log='bundle exec rake log:clear; tail -f log/development.log'
alias log... |
6291093d2ff1bf349c4c2200ef5a3674e2a66d25 | 1,087 | # Installing Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# We're going to use rbenv to install and manage our Ruby versions.
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then e... |
b9fa75c97c138c68666817192e22e82aa25336c9 | 232 | #!/bin/bash
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
# This might not work so well on messy csv's
path=`echo $2 | awk -v x=${1} -F ',|"' '{print $x}'`
echo -n $2,
${SCRIPTPATH}/check.sh -c "${path}" && echo
|
86309be8ab871f1416e651a860bb15cadd363c16 | 318 | #!/bin/bash
sudo yum update -y && sudo yum -y install git
git clone https://github.com/jstrassburg/environ-api
cd environ-api
aws configure set s3.signature_version s3v4
aws s3 cp s3://my-bucket/my-secrets.sh .
virtualenv .venv
source .venv/bin/activate
source secrets.sh
pip install -r requirements.txt
python app.py
|
ade279f1f902dfd0d380db63d7b4fb553eb6088d | 542 | #!/bin/bash
try() {
input="$1"
expected="$2"
./src/nim_9cc "$input" >./tmp.asm
# TODO also support ubuntu for CI
nasm -f macho64 tmp.asm -o tmp.o
ld tmp.o -o tmp -macosx_version_min 10.13 -lSystem
./tmp
actual="$?"
if [ "$actual" = "$expected" ]; then
echo "$input => $actual"
else
echo "$e... |
2d3b2ff259456e747ab6b6be92710a3ca09c2358 | 46 |
clear
clear
python clients.py localhost 5000
|
68a4e8c3562c4930ed6d337fe3d33c107bd9e0c9 | 875 | #!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
SCRIPT_ROOT=$(realpath $(dirname ${BASH_SOURCE})/..)
pushd $SCRIPT_ROOT
go mod vendor
popd
trap 'rm -rf $SCRIPT_ROOT/vendor' EXIT
CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-... |
536184686f70b8d17712df52ca5fa02858de0bd4 | 1,733 | #!/bin/bash
###############################################################################
## Written By :
## Purpose : Check atime ctime and mtime after file operation
###############################################################################
# run this script should be require root
# here create zpool /myta... |
7c359f2f9fab97160bb8c4b13af79d7bb9256639 | 1,825 |
# This script expects to be executed in a folder with a subfolder called blogs,
# containing the .xml files that should be sanitized. Results are written to a
# folder called sanblogs.
# Create output folder
mkdir -p sanblogs1
# Loop over input files (with path prefix)
for pathname in ./blogs/*.xml
do
#Progress re... |
c2864da8586b9ed138dcb7c052d23e394b94b38f | 484 | #!/bin/bash
if [ "$1" == "" ]; then
echo "Error: No Tar"
exit
fi
./stop.sh
docker run -v ~:/mnt centos:latest rm -rf /mnt/deepracer-for-dummies/docker/volumes/minio/bucket/rl-deepracer-pretrained
docker run -v ~:/mnt centos:latest rm -rf /mnt/deepracer-for-dummies/docker/volumes/minio/bucket/rl-deepracer-sage... |
b06723a804ba3cc910fc085589ea0cedae8b8b47 | 43 | sed -i 's/^ROOT.*/ROOT = $(shell pwd)/' $1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.