blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
fcef3a1f26b20da2989b325fdf0131fa8eb01346 | 1,673 | cd /data
DATA_FREE_SPACE=`df -k /data | tail -n1|awk '{print $4}'`
DATA_FREE_SPACE_MB=`expr $DATA_FREE_SPACE / 1024`
echo "Data partition free space(MB):"
echo $DATA_FREE_SPACE_MB
EMMC_TAR_GZ_SIZE_MB=`du -m emmc.tar.gz | awk '{print $1}'`
echo "emmc.tar.gz size(MB)"
echo $EMMC_TAR_GZ_SIZE_MB
DATA_NEED_SPACE_MB=`expr ... |
6dd8f48e7a8a03e48f1fbf6ee0fdb844ef5db1f7 | 1,041 | #!/bin/bash
# Install required packages
apt-get update
apt-get -y install wget
apt-get -y install unzip
apt-get -y install default-jre-headless
# Download and unzip Tomcat
cd ~
wget http://central.maven.org/maven2/org/apache/tomcat/tomcat/7.0.64/tomcat-7.0.64.zip
unzip tomcat-7.0.64.zip
mv apache-tomcat-7.0.64 tomcat... |
461859c50cd303ffa60e87afb6d66e3b2f3ba362 | 5,263 | #!/bin/bash
################################################################################
#
# Title: Binary Signing Script for macOS
# Author: Shane Lee
# Date: December 2020
#
# Description: This signs all binaries built by the `build_env.sh` script as
# well as those created by installing salt. It ass... |
946812cc5fb0a5223e330470ad2918feb8e8c5fd | 411 | #!/bin/bash -x
FIX="${*}"
test "X${FIX}" = "X" && FIX='/etc/syslog.conf'
sleep 1
TSTAMP=`date +%Y-%m-%d_%H:%M:%S`
SELF=`basename $0`
grep -E "(authpriv.info;.*authpriv.none;|authpriv.none;.*authpriv.info)" ${FIX}
NEEDS="$?"
test "X${NEEDS}" != "X0" -a "X${SELF}" != "X" -a "X${TSTAMP}" != "X" -a "X${FIX}" != "X" && pe... |
4ff4030011d4477d98352d470248b4077a80b04b | 663 | #!/usr/bin/env bash
# Download and unzip the CDI TCK dist
wget http://download.eclipse.org/ee4j/cdi/cdi-tck-2.0.6-dist.zip
shasum -a 256 cdi-tck-2.0.6-dist.zip
unzip cdi-tck-2.0.6-dist.zip
# Install the TCK artifacts into local repo
pushd .
cd cdi-tck-2.0.6/artifacts
bash artifact-install.sh
popd
# Download Wildfly/... |
4c50d170fa1aaf13bf5516edb9750877c19a1b76 | 485 | ## Master server ,first need to run "chmod +x *.sh" in command line
#!/bin/sh
### step1: install git
echo "Installing git..."
yum install git
### step2: config
echo "Configing git..."
git config --global user.name "Johnny Cao"
git config --global user.email "johnnycao@chinasystems.com"
## No password for git comm... |
963b096ae15f19f82fb4fbe098afda83d8f53571 | 150 | #!/bin/bash
for i in `seq 1 10`; do
node main.js && s=$? && break || s=$?;
echo 試行 $i 回目: 5秒待機中...;
sleep 5;
done;
exit $$s
|
a75d2dbb4e8b88085a44ae1e66e166ad82c0d4b8 | 1,812 | #!/usr/bin/env zsh
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
# Altera by Jorge Borges
# Use with a dark background and 256-color terminal!
# You can set your computer name in the ~/.box-name file if you want.
# Borrowing shamelessly from these oh-my-zsh themes:
# fino
# bira
# robbyrussell
#... |
837b20ebf95fa689226a71866829761fd550a178 | 51 | #!/bin/sh
ip link set wmon0 down
iw dev wmon0 del
|
9a90be2960fefb05ca6d3f611b783e05b1fb97b2 | 1,357 | # Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: William Turner <willtur.will@gmail.com>
_pyname=booleanOperations
pkgname=python-${_pyname,,}
pkgver=0.9.0
pkgrel=3
pkgdesc='Boolean operations on paths'
arch=(any)
url="https://github.com/typemyt... |
3001e06ef5f95cc69d36d68d823d596557d54c29 | 776 | #!/bin/bash
echo "------Welcome To Smanager------"
echo "Options--"
echo "1. Delete Photos that are 90 days old"
echo "2. Delete videos that are 90 days old"
x=$(pwd)
read ch
cd ~/Documents
case $ch in
1)
find -mtime +90 -name "*\.png" | rename 's/ /_/g'
a=$(find -mtime +90 -name "*\.png")
b=$(find -mtime +9... |
d3306bf25052f1bfa7b5b2bb32d5ed468c3b1d1e | 1,028 | #!/bin/bash
# c0lby:
source root_plist_utility.sh
##########################################################
############## Create New Root.plist file ##############
##########################################################
PreparePreferenceFile
AddNewPreferenceGroup -t "About"
AddNewTitleValuePreference ... |
ef06a2a4a59647f7c2242007de80d03d7c102617 | 49 | git clone https://github.com/fastai/courses.git
|
34d7cc4e7310ecc9861cc345a205360bf7049a51 | 644 | #! /bin/bash
cd $1
javac -g Main.java
if [ $? -ne 0 ]; then
exit 1
fi
main_class=Main
command="java daikon.Chicory --daikon-args='--no_text_output --config=../config.txt' --daikon $main_class"
print_invariants="java daikon.PrintInvariants --format java $main_class.inv.gz"
# First run the program with just passi... |
4e974670ac64b5910fed2d96f07cf811b3b8cde8 | 47 | while [ $? -ne "1" ]
do
python2 7.py
done
|
fb13959dd63354c2627296768456d4a5b76f5ef7 | 135 | NODE_ENV=development
PORT=5000
DATABASE=simple-sosmed
USERNAME=root
PASSWORD=12345
HOST=127.0.0.1
DIALECT=mysql
MAX=5
MIN=0
IDLE=10000 |
e13a3440daa61382f038ecff715e055cba8dcc3c | 1,129 | #!/bin/sh
# TODO: compile the gnu readline library for line editing support
set -e
. ../../common.sh
cd $WORK_DIR/overlay/$BUNDLE_NAME
# Change to the Lua source directory which ls finds, e.g. 'lua-5.3.4'.
cd $(ls -d lua-*)
echo "Preparing 'Lua' work area. This may take a while."
# we install lua to /usr and not ... |
9ca588b8390b5bcb9748bf0bae4756df8db93522 | 1,001 | #!/bin/sh
# Minimal Android Debug initrd
# 2013-10-21 Thomas Perl <m@thp.io>
export PATH=/bin:/sbin
# Mount basic file systems
mount -t proc none /proc
mount -t sysfs none /sys
echo 255 > /sys/class/leds/led:rgb_blue/brightness
sleep 3
# Prepare /dev
mount -t tmpfs -o size=64k,mode=0755 tmpfs /dev
mkdir /dev/pts
m... |
6f46bc846f199d38582b9de52ee0f30dd8237b24 | 75 | #!/bin/bash
#ssh -h -2 trigger@altri1 $*
ssh -h -2 trigger@alidcscom835 $*
|
d904729fbb96490dc11908b608268fc8cd8a02e9 | 1,548 | #!/bin/sh
#Author : Sakir Beg
#Copyright (c) LazieDev
#Script that automatically uninstalls the complete program from your system.
COLUMNS=$(tput cols)
title="AutoApp UnInstaller v1.0"
printf "\n%*s\n" $(((${#title}+$COLUMNS)/2)) "$title"
userinput="y"
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
echo Ente... |
8b5462b2b444092aacf3aebf6c472ed1333720b1 | 14,480 | #!/bin/bash
function createtribe1() {
infoln "Enrolling the CA admin"
mkdir -p organizations/peerOrganizations/tribe1.example.com/
export FABRIC_CA_CLIENT_HOME=${PWD}/organizations/peerOrganizations/tribe1.example.com/
set -x
fabric-ca-client enroll -u https://admin:adminpw@localhost:7054 --caname ca-tribe... |
8fcfe73bf2170b0c64e2def722642874e8221f19 | 579 | #!/bin/bash
# dump address table records for a specific street
ADDRESS_DB="/data/address.db";
STREET_DB="/data/street.db";
P1="174.766843";
P2="-41.288788";
NAME="glasgow street";
sqlite3 $ADDRESS_DB "ATTACH DATABASE '$STREET_DB' as 'street'; \
SELECT address.* FROM street.rtree \
JOIN street.names ON street.n... |
f1695ea2c41c54ded3acdd7bbe3731c07e126149 | 325 | #!/bin/bash
. /opt/tr069/common.sh
if [ "$ACTION"x = "get"x ];then
cpin=`uci -c /opt/config get status.module.sim_stat 2>/dev/null`
if [ "$cpin"x != "true"x ];then
echo '--'
exit 0
fi
ul_mcs=`uci -c /opt/config get tr069.radio.ulMcs 2>/dev/null`
echo $ul_mcs
fi
ex... |
e841fdfd456c8fbc9b3c8976bf71754677309de7 | 123 | cd java-server
./build.sh
cd ..
heroku deploy:jar java-server/build/libs/rmnp-camping-backend-0.1.0.jar --app rmnp-camping
|
c16813dd102efb52622fdcb9b29c3d05a6f82efd | 354 | #!/bin/sh
#
# descent.sh - customizable recursive source tree descent
#
ROOT=$JOOSDIR/src
visit() {
# TODO: make copy of this file and fill this function
echo `basename $1`
}
# 1 param: directory
descent_rec() {
echo descending $1...
for f in `ls $1`; do
visit $1/$f
if test -d $1/$f; then
descent_rec $1/$... |
2026facec402d0c876afe5bd83a9bfd34e86f1d4 | 223 | #!/bin/bash
PrinterInstallerInfo=$(cat /opt/PrinterInstallerClient/VERSION)
if [ ! -z "$PrinterInstallerInfo" ] ; then
echo "<result>$PrinterInstallerInfo</result>"
else
echo "<result>not found</result>"
fi
exit 0
|
5c6b80f900a8bfd085179922cb19cfb7c57822ed | 11,047 | #!/bin/bash
sed -i 's/http:\/\/i.imgur.com\/tBEBEGX.jpg/no2o\/lemon_chiffon_dark_orange_preview.jpg/' no2o.json
sed -i 's/http:\/\/i.imgur.com\/QdXBG5D.png/no2o\/lemon_chiffon_dark_orange_image_0.png/' no2o.json
sed -i 's/http:\/\/i.imgur.com\/6AtRdBe.jpg/no2o\/lemon_chiffon_dark_orange_image_1.jpg/' no2o.json
sed ... |
e76c13d076999f4456eb2b559ce99802e942e6cf | 114 | sac << END
m quick2012.macro
quit
END
sac << END
m quick2013.macro
quit
END
sac << END
m quick2014.macro
quit
END
|
7adef7cb0b7dbea7c935ca3705f42ab365506235 | 765 | #!/bin/sh
set -e
IMAGE=femtoos.img
ISO=femtoos.iso
TMP=/tmp/femtoos
IMAGESIZE=10000
#
# remove old file
#
rm -f $IMAGE
rm -f $ISO
#
# build kernel
#
make clean
make
#
# make .img file, with the kernel and with grub
#
dd bs=1k count=$IMAGESIZE of=$IMAGE if=/dev/zero
mdconfig -a -t vnode -f $IMAGE -u 0
gpart create -... |
0d3ee48518751eb22371ce07ec7bf9dd56852e3f | 485 | #!/bin/bash
#How to install USB in Virtualbox
cat << _EOF_
<html>
<head>
<title>
## **How to Install USB in VirtualBox**
</title>
</head>
<body>
1. Download and Install virtualbox extension Pack on windows.
2. After installing, reboot the *host OS* for changes to take effect.
3. Under settings in virtualNox *go to... |
319663f0d69e067581087958a74524ab61fe2e62 | 1,306 | # run this script: bash install.sh
#
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xfce4
sudo apt-get install jockey-gtk
sudo apt-get install xdm
sudo apt-get install ipython
sudo apt-get install python-numpy
sudo apt-get install python-scipy
sudo apt-get install python-matplotlib
sudo apt-get install... |
4a4ea9df536956f1c9e5c9eeac63444b162b6a72 | 1,399 | #!/usr/bin/env bash
#DMG_filename="git-latest-osx-installer.dmg"
#DMG_filename_extension="${DMG_filename##*.}"
#DMG_filename_without_extension=$(basename "${DMG_filename}" .dmg)
#DMG_PKG_pathname="/Volumes/Git * Intel Universal/git-*-intel-universal-*.pkg"
#DMG_PKG_filename="${DMG_PKG_pathname##*/}"
mkdir -p ${HOME}/... |
2932a72d19a3d33fceb123cf989b8644b5f161e4 | 305 | #!/bin/sh
cd $(dirname "$0")/../easy-rsa
{
(cd pki/issued;ls client-* 2>/dev/null | sed -n 's/^client-\(.*\).crt$/\1/p')
(cd pki/private;ls client-* 2>/dev/null | sed -n 's/^client-\(.*\).key$/\1/p')
(cd pki/reqs;ls client-* 2>/dev/null | sed -n 's/^client-\(.*\).req$/\1/p')
} | sort | uniq
|
00586e51b2c7e3941843e8fba32d6826595aa873 | 1,285 | #!/bin/sh
#find . -name "s2-corpus-*" -print -exec gunzip -k -S ".json" {} /; -exec
#&& gunzip *.gz &&
#find . -name "s2-corpus-*" -print -exec mongoimport --numInsertionWorkers 2 --db search --collection semanticscholar --file {} \; -exec rm {} \;
#find . -name "s2-corpus-*" -print -exec curl -XPOST 'localhost:920... |
c9733e34d0f50fd1ac922a70d3046ad9032a269a | 191 | #!/bin/sh
# Script.sh
# MacTech Demo
#
# Created by Pelle on 2016-11-14.
# Copyright © 2016 MacTech. All rights reserved.
echo "Script running with args '$@'"
say -v Alva "$@"
exit 0
|
696b866c3c235ddb0f120dc248b48184ee98ec7e | 847 | #!/bin/sh
# This script is called by udev when a partition on a
# removable USB block device is added or changed.
# It creates a readonly mount unit via systemd and starts it.
# systemd will handle the removal itself.
action=$1
devpath=$2
devunit=$(systemd-escape --path --suffix device $devpath)
mountpoint=/media/usb... |
4695c5846ea39ca536db0830c791f96d016d3299 | 64 | #!/bin/bash
uptime | awk -F'load averages(s|): ' '{ print $2 }'
|
9a6df2cec4d851d6d8f37abb305380c64588a5d8 | 61 | #!/bin/bash
DATACUBE=$1
node lib/upload_datacube.js $DATACUBE |
8c9bd3cf7fbf7c22c7d8bccdf5e57b18beb82e4e | 26 | #!/bin/bash
echo "*.txt"
|
bbc474b6a28064976cce578b19297dbfcc51922d | 171 | #!/usr/bin/expect
#author jack
#用途: expect 实现自动化
spawn ./interactive.sh
expect "Enter number :"
send "1\n"
expect "Enter name :"
send "jack\n"
expect eof
|
922c69c0943d067bccc3ae0f8f1eec3b7b47a025 | 12,480 | #!/bin/bash
# Script to back up the home directory using rsync
# COMPLETE: This is to do a complete backup. The procedure will simply create a new directory
# dated with the current time and do a full backup of the /home/maxx/
#===========================================================================... |
3d94368da727d55416d9dc90cba994d529b70164 | 516 | #!/bin/bash
if [ $# -lt 1 ]; then
echo "Usar $0 pcs [off|on] [-F]"
exit 0
fi
if [ $# -lt 2 ]; then
op="off"
else
op=$2
fi
if [ $# -lt 3 ]; then
F="-no"
else
F=$3
fi
for num in $(seq 0 10)
do
if [ $op == "off" ]; then
./send_com.sh $1 "if [ \$(who | grep -v unknown | grep -v root... |
6d266b55f654f8c25b66e52523d6e4eab85959f4 | 537 | #!/bin/bash
../gem5-fy/build/X86_MESI_Two_Level/gem5.opt -d ../gem5-out-disk/mtrace-micro2017/l2-prime-probe/ref-evict --debug-flag=WayEvictMICRO17 --debug-file=evict-way.out ../gem5-fy/configs/example/fs.py --cpu-type=timing --kernel=x86_64-vmlinux-2.6.28.4-smp -n 4 --l1d_size=32kB --l1i_size=32kB --l1d_assoc=2 --... |
cfea436c0d759f0d521d17dca9f5610f81d57d13 | 150 | #!/bin/sh -eux
mkdir -p /etc;
cp /tmp/geco-metadata.json /etc/geco-metadata.json;
chmod 0444 /etc/geco-metadata.json;
rm -f /tmp/geco-metadata.json;
|
14dbf22ff39d1ce1a96632bd554e7dc5bbc7930e | 351 | #!/bin/bash
# add following ssh keys on zsh start
ssh-add ~/.ssh/git-symphony/bungee-symphony-pem > /dev/null 2>&1
ssh-add ~/.ssh/git-symphony/bungee-symphony > /dev/null 2>&1
ssh-add ~/.ssh/platoon/bk-platoon-aws.pem > /dev/null 2>&1
# ssh-add ~/.ssh/platoon/bungee-platoon-aws > /dev/null 2>&1
ssh-add ~/.ssh/platoon/... |
a7381bfb8bff612bd7b58f9ec11c7b2636252db6 | 9,641 | #!/bin/sh
# v0 - in progress
# set -x
reset
####################################################################################################
#
# Copyright (c) 2015, JAMF Software, LLC. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permit... |
853415f5ff92864a3b5cf127200fa3890b39e3a9 | 5,310 | #!/bin/bash
INSTALL_DIR=/usr/local/bin
TEMP_DIR=`mktemp -d /tmp/eibd.XXXXXX`
EIBD_bin=$INSTALL_DIR/eibd
pthsem_url="http://downloads.sourceforge.net/project/bcusdk/pthsem/pthsem_2.0.8.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fbcusdk%2Ffiles%2Fpthsem%2F&ts=1414933358&use_mirror=freefr"
bcusdk_url="http://downl... |
7b98a7ef7c1a0b36fe135c179495c9b4a7fe5202 | 470 | #!/usr/bin/env bash
prompt_setter() {
# Save history
history -a
history -c
history -r
PS1="(\t) $(scm_char) [$blue\u$reset_color@$green\H$reset_color] $yellow\w${reset_color}$(scm_prompt_info)$(ruby_version_prompt) $reset_color "
PS2='> '
PS4='+ '
}
PROMPT_COMMAND=prompt_setter
SCM_THEME_PROMPT_DIRTY="... |
01988cffb8bf45f31f3d01e3bc24233052bd7d19 | 88 | #!/bin/bash -e
if [[ "$#" -eq "0" ]]; then
exec go run server.go
else
exec "$@"
fi
|
870b0e2ccebcaaf39ce6041cff2fa1fa11165f04 | 417 | #!/bin/bash -e
echo "==> Packaging..."
rm -rf output/dist && mkdir -p output/dist
tar --exclude='./.git' --exclude='./output' -cvzf ./output/dist/conjur-api-go.tar.gz .
# # Make the checksums
echo "==> Checksumming..."
cd output/dist
if which sha256sum; then
sha256sum * > SHA256SUMS.txt
elif which shasum; then... |
b11aeb3007cb9670b26629b32e9df5a87c79f2a8 | 1,290 | #!/bin/bash -eu
# Copyright 2019 Google Inc.
#
# 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 law or agree... |
1aa5ceed3140959d42f2b3098086560e1e175033 | 2,464 | #!/bin/bash
echo "[$(basename $0) hook START]"
ORIG_DIR="$(pwd)"
PROJECT="$(git rev-parse --show-toplevel)"
cd "$PROJECT"
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php | grep -v _ide_helper\\\\.php`
# Determine if a file list is passed
if [ "$#" -eq 1 ]; then
oIFS=$IFS
IFS... |
ad00e997809fb098633f2ce8427367bab28bc958 | 55 | #!/bin/sh
ffmpeg -r 10 -b 360000 -i %03d.jpg test.mp4
|
d4352aff7a8d818abd85fbcbd520c302f7897426 | 1,577 | #!/bin/sh
# Gets ready to add custom things to the path and adds the paths that I
# consistently use. This script can be sourced by sh and any variant.
# before_system_path=
# system_path=${PATH}
# after_system_path=
# Used internally
detect_system_path() {
system_path=`echo ${PATH} | sed -e "s|${before_system_... |
75404d0c077babf592cac9c2eb644730916080ef | 452 | #!/bin/bash
USER=${USER:=rstudio}
PASSWORD=${PASSWORD:=rstudio}
USERID=${USERID:=1000}
ROOT=${ROOT:=FALSE}
export HOME=/home/$USER
useradd -u $USERID $USER
addgroup $USER staff
echo "$USER:$PASSWORD" | chpasswd
chmod go-rx /usr/bin/passwd
mkdir -p $HOME
if [ "$ROOT" == "TRUE" ]
then
adduser $USER sudo && echo ... |
891de5448ec603a2950b34361fa2c6eb13cd34a8 | 98 | #!/bin/sh
./build/sim/agent/agent1 ./configs/a1/m_ee_chemoonly.json ./configs/a1/e_retablate.json
|
cba6b61e694b88644aea628313dfd8eca62cfe7e | 428 | #!/bin/bash
echo Committing this repo
git add .
git commit
git push
echo copying to blakwurm.github.com repo
rm -rf ../blakwurm.github.com/*
cp CNAME ../blakwurm.github.com
cd resources/public
cp -r * ../../../blakwurm.github.com
cd ../../
echo commiting blakwurm.github.com
cd ../blakwurm.github.com
git add .
git c... |
46e0ffc761453b4ce0877d83ebc444e0aaa7a59d | 139 | #!/bin/bash
cd $PROJECT_DIR
./Scripts/CreateIncludeOSServerBuild.sh
tar czf IncludeOSServer.tar.gz IncludeOSServer
rm -rf IncludeOSServer
|
dcdb58e91a82c71e533d6f7e714e1ed525413a6f | 306 | #!/usr/bin/env bash
PROJECT_ROOT=/code/DJTT/FTTv2
WORKDIR=/code/DJTT/DJTTv2/api/src/apps/
VIRTUALENV=/code/DJTT/DJTTv2/venv
source $VIRTUALENV/bin/activate
cd $WORKDIR
echo "Running Celery Worker - itd"
$VIRTUALENV/bin/celery -A celery_handler.workers.itd worker --loglevel=info -Q itd --hostname=itd@%h
|
27442988ad9152aaaeca4e0806a9789f33d511dc | 16,315 | v_table_data_date=$1
if [[ v_table_data_date -eq "" ]];
then echo "Date not passed as parameter"; v_table_data_date=$(date -d '-1 days' +%Y%m%d);
else echo "Date provided" ;
fi
v_dataset_name=nb_reports;
date
# Downstream table loading. Replace existing
v_query_ga_source_medium="select * from
(
sele... |
94b99e191872563b92ab2e70590fad35940f250f | 330 | #! /bin/sh
eACommander >&2 -r \
--address 0x00000000 -f "${PTXDIST_PLATFORMDIR}/images/geckoboot-image" \
--address 0x00080000 -f "${PTXDIST_PLATFORMDIR}/images/efm32gg-dk3750.dtb" \
--address 0x8c000000 -f "${PTXDIST_PLATFORMDIR}/images/linuximage" \
--address 0x8c400000 -f "${PTXDIST_PLATFORMDIR}/images/root.rom... |
fd1d917f9ce68d28a099aafe39b0e21330ecb950 | 5,804 | #!/bin/bash
set -x
function usage() {
echo "./build.sh sgxsdk|graphene|scone|sgxlkl"
}
# You need the SGX SDK and PSW installed.
if [[ $# -gt 1 || $# -eq 0 ]]; then
echo "wrong number of arguments"
usage
exit 1
fi
[[ $# -eq 1 ]] && VARIANT=$1
if [[ ! ( $VARIANT == "scone" ||
$VARIA... |
8f4046b30d7c2ebf68ce4f2b005853fe2475a9e9 | 403 | #!/bin/bash
printf "Stopping\n"
if [ -f ./pid ]
then
PID=`cat pid`
printf "Killing process $PID\n"
while true
do
kill $PID
sleep 1
kill -0 $PID 1> /dev/null 2> /dev/null
if [ $? -eq 0 ]
then
echo "Trying to kill $PID again"
else
echo "Process $PID killed"
rm pid
... |
187ee406bbd43eec8ef6430fca4e92480b96f40b | 684 | #$ -S /bin/bash
#$ -cwd
#$ -N tss_detector
#$ -o tss_detector.out.$JOB_ID
#$ -j y
#$ -pe bscb 32
#$ -M dankoc@gmail.com
#$ -m be
#$ -l h_rt=24:00:00
STARTDIR=`pwd`
## Copy files to scratch space (/workdir and /SSD).
SCRATCH=/SSD/cgd24_tssDetector_galGal
mkdir $SCRATCH
cp /home/cgd24/projects/tss_detector/run_svm_galG... |
4088ed2e6b1e8930e2b6be2b5ea1e2b7092833e9 | 60 | i=0
while [ $i -lt 10 ]
do
echo i is $i
let i=$i+1
done
|
05a3eee92024307be4c11f3af55a58b5681bda92 | 131 | #!/bin/bash
set -e
ROOT=`dirname "${BASH_SOURCE[0]}"`
source ${ROOT}/venv.sh
exec pip install -r system/requirements.txt --upgrade
|
4c71a4ce67c81c16c511c8765278a30229e78ad4 | 141 | #!/bin/bash
while true; do
avconv -loglevel verbose -re -i /vid/1.mp4 -c:a copy -c:v copy -f flv rtmp://localhost/myapp/1 &
sleep 1
done
|
d501bd12cae6771b8e7b19ca80916c0400bd86d9 | 190 | #!/usr/bin/env bash
# MySQL
MYSQL_VERSION=5.7.22
MYSQL_HOST=mysqldb
MYSQL_DATABASE=babadumaindb
MYSQL_ROOT_USER=vagrant
MYSQL_ROOT_PASSWORD=vagrant
MYSQL_USER=vagrant
MYSQL_PASSWORD=vagrant |
5e62221d60de4696fe50cdbbe7a341045d277db8 | 316 | for round in $(seq 1 4); do
for tr_ex in $(seq 1 8); do (
echo ".load ../links_goto/links_goto_${round}_${tr_ex}.dat"
echo ".logfile log_goto_${round}_${tr_ex}.txt"
echo ".f ../test_goto_files/goto_list.txt"
echo ".f ../test_goto_files/test_goto.txt"
echo ".q") | annabell
done
done
|
60202d343046cd6e0e90d2a46ea40cc1994a6dc2 | 102 | # App
PORT=
# Session
SESSION_SECRET=
# MongoDB
MONGO_HOST=
MONGO_USER=
MONGO_PASS=
MONGO_DATABASE=
|
c901a89c2d60d9ea6983cac9a5bd5b2236523304 | 104 | #!/usr/bin/env bash
ddocker run -e PASSWORD=ubuntu -e SUDO=yes -it --rm -p 80:6080 algorithm-cpp:latest |
ee72bb05ffeb1b627643b0d2c1998b22cc4af862 | 16,639 | #!/bin/bash
#RIP_TEMP=/smb/newton/media_rw/media4/temp
RIP_TEMP=/smb/newton/media/peer2peer
ENC_TEMP=/disks/media
FINAL=/disks/media
LOGS=/disks/media
run_long() {
fn=$1
shift
echo "$*"
$* > $LOGS/$fn.out 2> $LOGS/$fn.err
}
run_cmd() {
run_long "$*"
}
BASE=$1
ACTIONS="$2"
if [ -z "$ACTIONS" ]; then
ACTIONS="g... |
27c3e1d0bb9898355d9357eec740950c20ef0b34 | 2,325 | # Path to your oh-my-zsh installation.
export ZSH="/home/marko/.oh-my-zsh"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ ... |
a20f1642510bcab9c52431af8624f248b3982ad0 | 199 | #!/usr/bin/env sh
mkdir protoc
cd protoc
wget https://github.com/google/protobuf/releases/download/v3.0.0/protoc-3.0.0-linux-x86_64.zip
unzip protoc-3.0.0-linux-x86_64.zip
chmod +x bin/protoc
cd ..
|
42ab6909de890e5908dcc66763a9bdd9d143b8b2 | 157 | docker run -it -p 8888:8888 --network docker_hadabot_network --entrypoint /bin/bash dsryzhov/jupyter-ros2
jupyter lab --ip=0.0.0.0 --no-browser --allow-root
|
d7be9a23071e5f5af52e5852d4a51cbee330e755 | 2,910 | #!/usr/bin/env sh
superuser_name=$(whiptail --title "Create superuser" --inputbox "Input superuser name" 10 60 3>&1 1>&2 2>&3)
[ $? -ne 0 ] || [ -z "$superuser_name" ] && echo "Operation aborted by user" && return 1
superuser_mail=$(whiptail --title "Create superuser" --inputbox "Input superuser mail" 10 60 3>&1 1>&2... |
d083d563f6080759fb6821d30337155c59fa03b3 | 3,126 | #!/usr/bin/env bash
set -eu
function _clone_or_update() {
repo=$1
path=$2
if [ -d "${path}" ]; then
git -C "${path}" pull
else
git clone "${repo}" "${path}"
fi
}
function _create_opam_switch_if_needed() {
if [[ $(opam switch show) != "${PWD}" ]]; then
opam switch create . ocaml-base-compiler.4.11.1 --wi... |
716b8bf2fa4050901cceae869ed37cce80632d7a | 2,962 | #!/bin/bash
#################################################################
# #
# Author: Joe Jiang #
# Lable: build-all.sh #
# Information: buildLFM ... |
163217a1687eaad8a31a2f92c2b0cfbadf554da0 | 354 | #!/bin/bash
#$ -N ppcan
#$ -cwd
#$ -q gpu
#$ -e error_marchiorot.e
#$ -o output_marchiorot.o
#$ -m bea
source /nfsd/opt/anaconda3/anaconda3.sh
conda activate /nfsd/opt/anaconda3/tensorflow
python -u main.py --mode 1 --alpha 0.25
python -u main.py --mode 2 --alpha 0.5
chmod +x train_exp_1.sh
chmod +x train_exp_2.sh
... |
8bf32428e0514e94709df44de5a8ebefebade6f8 | 73 | #!/bin/sh
9p read acme/$winid/tag|awk '{sub("Del.*", ""); print; exit}'
|
916d581d852c4301e8a186873101a492cde226fc | 30 | brew cask install node-webkit
|
274f31a0450a23d88cbfad3c3ef58f9288e0ae8c | 1,299 | #!/usr/bin/env bash
BASE_DIR=$(cd `dirname $0` && pwd -P)
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.4.0-x86_64.rpm
rpm -vi filebeat-5.4.0-x86_64.rpm && rm -rf filebeat-5.4.0-x86_64.rpm
cp ${BASE_DIR}/filebeat/config/filebeat.yml /etc/filebeat/filebeat.yml
sed -i -e "s#master0#${M... |
b0955e76ddc94efd34bab05ffd45430abb3d7b91 | 306 | #!/bin/bash
# For use when building a debian package
steel_version_macro=$(grep 'define STEEL_VERSION' ../src/steel_version.h)
steel_version=$(echo "$steel_version_macro" | sed -e 's/.*"\(.*\)".*/\1/')
date=$( date +%Y-%m-%d )
date_id=$( date +%Y%m%d )
dch -v $steel_version-$date_id "$date daily build"
|
c5df22f79ef0c5506b7752176f5082d2b93478d0 | 419 | PRISMA_HOST_PORT=4466
PRISMA_API_SECRET=my-secret
PRISMA_DB_HOST=host.docker.internal #for pg running on localhost. will work on mac and windows alone.
PRISMA_DB_USER=postgres
PRISMA_DB_PASSWORD=password
PRISMA_ENABLE_MIGRATION=true
PRISMA_DB_PORT=5432
PRISMA_DB=journal
PRISMA_ENDPOINT=http://localhost:4466
GRAPHQL_SER... |
f7492eaf4760b5b08858dbfd15d23bdaee6d4367 | 274 | #!/bin/bash
if [[ -d "repos/secret-santa-sms-a" ]]; then
cd repos/secret-santa-sms-a
git checkout master && git reset version-1.0 --hard && git push -f
git push origin --delete my-branch
git push origin --delete improve-tests
cd ../..
fi
rm -rf repos/
|
ce30949a4979d3f289b0058bb42be904bc1d7cc1 | 2,681 | #fit for signal scaling
cd /storage/9/mneukum/CMSSW_7_1_9/src
cmsenv
cd /storage/9/mneukum/CMSSW_7_1_9/src/CombinedEWKAnalysis/CommonTools/test/my_test/ssWW_smallGrid
cp /storage/9/mneukum/test/pythia_output_to_ATGCRooStats/ready_to_fit_ssWW_KC_maxGrid_fs0.root ./ssWW_smallGrid_fs0.root
python ./doFit.py --config=ssWW_... |
9665a180cc451efd9c8961e9b0bf4d378ca2a811 | 109 | kubectl get secret --namespace monitor grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
|
e3512e320e6bb4aca910193f027b49ce076f9701 | 113 | #!/bin/bash
export OUTPUT_ROOT=/short/v10/tmp/${USER}/ula3_tests/pqa
rm -f test.pqa.*
rm -rf ${OUTPUT_ROOT}/*
|
f604d77c80349e26156a8cc0bf609a513ed5e948 | 29 | set -x
git pull heroku master |
a4a2afa56122e97976771fc0c0f4635121823f5e | 145 | FILES=./*.att
for f in $FILES
do
echo "Processing $f file..."
f2=${f%????}
fstcompile --isymbols=ins.txt --osymbols=outs.txt $f $f2.fst
done
|
ade8b61934599ce30517fc0ed410feacf4245ba9 | 706 | #!/bin/sh -x
rm -fr local
cp -fr algorand_network local
cp -fr algorand_data local/Primary
clean() {
(killall -9 tealdbg || exit 0)
(killall -9 algod || exit 0)
}
clean
export POSTGRES_USER=algogrand
export POSTGRES_PASSWORD=indexer
export POSTGRES_DB=pgdb
(docker container stop algopgdb || exit 0)
docker run ... |
79870852ba65cb5d1416a9719b49c90a1ced5abe | 646 | #!/usr/bin/env sh
exec 1>&2
function h1() {
printf "\n\x1B[1;39m> %s\n" "$@"
}
function pass() {
printf "\x1B[1;33m✔\x1B[0m %s\n" "$@"
}
function fail() {
printf "\x1B[1;31m✖\x1B[0m %s\n" "$@"
exit 1
}
function failsafe() {
printf "\x1B[1;31m✖\x1B[0m %s\n" "$@"
}
commit_files() {
if [ $# -eq 0 ] ; th... |
8df92e05ebef18308646f0fd760da02c645254ea | 69 | #!/bin/bash
cd `dirname $0`
gunicorn -w 4 -b 0.0.0.0:8080 lamp:app
|
50b4626cdc984cc6121468f6dcff1a5d80d000bf | 2,052 | #!/bin/bash
# 05/12/2015
# script agenda um horário para o sistema ser desligado
# as janelas são construidas através do programa zenity
# que já vem instalado na maioria das distribuições.
#
# por Flávio Oliveira (Flávio Dicas)
# https://github.com/oliveiradeflavio
# http://youtube.com/flaviodicas
# http://flaviodeoli... |
512ea3ab0d1b11bf921670ca5bcebb02f98f9c16 | 47 | /usr/local/cuda/bin/cuda-install-samples-7.5.sh |
35733d83b7b101d00dd03a24eb1756f545e6bc68 | 286 | #!/usr/bin/env bash
DOCKER_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# RUN developping tools from docker
docker_cmd="docker run -t --rm -e PATH=$DOCKER_PATH:/home/rustenv/.cargo/bin -v $PWD:/home/rustenv/workdir -w /home/rustenv/workdir rustos"
$docker_cmd $@
|
53fb6177aea3d40f202b63291f129581bb2fdd46 | 627 | APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:WHknEjLBlqtSFBdLnW2Q1VvbB9Jxalhk929Jv3/s1c8=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://badtumb.local
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=badtumb
DB_USERNAME=nilsenj
DB_PASSWORD=21317636
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIV... |
04b1eea9458b703983bd0d85eb3fbf3d11d78906 | 57 | #!/usr/bin/env bash
java -jar build/libs/ora-0.2.0.jar $1 |
390fd71c8cab5e244e655f952a4c8bd8e73339d0 | 196 | PSQL_DATABASE=jdbc:posgresql://localhost:5432/creative
PSQL_USER=docker
PSQL_PASSWORD=keyboard_kat
S3_ACCESS_KEY_ID=AmazonS3AccessKey
S3_SECRET_ACCESS_KEY=AmazonS3SecretKey
S3_BUCKET_NAME=Potato
|
580ce8547953a3dda993c2f959339f0f7f354312 | 72 | FLASK_APP=picorss/src/web/setup_flask.py FLASK_ENV=development flask run |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.