blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
13cdb6ae12e729d28da96df381ec41e346f5248e | 448 | #!/bin/sh -e
# Standalone build for info that doesn't depend on Perl. Only the info page
# viewer.
export LDFLAGS="$LDFLAGS -static"
export PERL=/bin/true
./configure \
--disable-nls \
--disable-rpath
make -C gnulib/lib
make -C info
make -C install-info
clinst -Dm755 info/ginfo "$1/usr/bin/i... |
a4497251423d31947c5d61ea68eca40d85c59105 | 13,256 | #!/bin/bash
export USER="rewry.menezes"
export GROUP="wheel"
# Colors Shell
red="\033[0;31m"
green="\033[0;32m"
yellow="\033[0;33m"
end="\033[0m"
bold=$(tput bold)
normal=$(tput sgr0)
master_password="<senha-master>"
pathdb="/home/rewry.menezes/bin/Linux/PuTTy"
db="$pathdb/database.csv"
script="$pathdb/connect.sh"
t... |
a923b3576bc73a0fefaf4c5a21d1fe8d9b472be5 | 130 | #!/bin/bash
docker-compose up -d
docker run -d --net branch_based_deployment_default -e VIRTUAL_HOST=whoami.local jwilder/whoami
|
3f3193ab926074e8e711f184e83c136efcbbd760 | 1,418 | #!/bin/sh
USERS=10
DURATION=30
CONCURRENCY_PER_LB=2
DESCRIPTION="LBs=$(cat ./endpoints.txt | wc -l) | concurrency-per-lb=$CONCURRENCY_PER_LB | users=$USERS | duration=$DURATION"
TIMESTAMP=`date '+%y-%m-%d_%H-%M-%S'`
echo "------------- Parameters -------------"
echo USERS=$USERS
echo DURATION=$DURATION
echo CONCURREN... |
cb6bed731f749f40a6382bddd9c376bf4a697843 | 330 | #!usr/bin/bash
'''
Git script that will dynamically add , commit and push work for us. Also adding a commit message
:$1: first argument passed in. Represents content that will be added
:$2: second argument passed in. Represents commit message added to current code commit
'''
git add $1
git commit -m "$2... |
072a491a565e20d16d43604406d19f5c0588ebde | 1,041 | #!/bin/bash
#
# Wrapper script to run polarLDA estimate on bootstrapped samples
#
# Written by Siyi Tang and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
# Take input variables
input_dir=$1 # absolute directory where the docs are saved
out_dir=$2
K=$3 # number of factors
N=$4 ... |
5baf48432a09cf0fb1c766f5a0369d1375a6c38b | 1,263 | #!/bin/bash
source ../../00-config/commonEnvironmentVars.cfg
#source $commonEnvir
export currDir=`pwd`
export combinedAssemblyList=$currDir/../004-combine-assemblies-and-annos/cutoff.info.of.assembled.experiment.tsv
export combinedGtf=$currDir/../004-combine-assemblies-and-annos/$finalCmbTrsptAnnGtfFile
export sampleI... |
fd50119fdf3cae7dcce0d85dc9c24df30976051a | 310 | NODE_ENV = 'production'
RDS_WRITE = true
RDS_DEFAULT = 'RADIO 93.3MHz'
RDS_PS = 'RADIO'
RDS_PORT = '/dev/ttys000'
RDS_RATE = 19200
WS_URI = 'ws://0.0.0.0:3000'
WS_KEY = 'deva.rds'
WS_USER = 'radio'
SLACK_URL = 'https://hooks.slack.com/services/...'
SLACK_ICON = ':strawberry:'
|
c63bd3cb6df7eef8c1ccd5fd81270987daabdfc4 | 61 | #/bin/sh
cat $1 | awk '{print $3 " " $4}' | ./main.exe
|
d7508a05867f61783263ff5d7947ae0d5281e893 | 823 | # Maintainer: almostalive <almostalive2003 at gmail dot com>
pkgname=libretro-mednafen-pce-git
pkgver=20120910
pkgrel=1
pkgdesc="libretro implementation of mednafen's PC Engine."
arch=('i686' 'x86_64')
url="https://github.com/libretro/mednafen-pce-libretro"
license=('custom')
makedepends=('git')
conflicts=('libretro-s... |
e864a550469700c332c0af6c83b4e4161606c919 | 151 | echo first pid is $1
echo second pid is $2
echo third pid is $3
pkill -TERM -P $1
kill -9 $1
pkill -TERM -P $2
kill -9 $2
pkill -TERM -P $3
kill -9 $3
|
4e8aa0780a4d4c753700890b9a23318e38ac8eae | 1,172 | # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: perlawk
pkgname=nial
pkgver=20130414
pkgrel=1
pkgdesc="An array programming language, like APL and J, but much more easy to learn and read."
url="http://www.nial.com/"
arch=(any)
license=('Artistic Licence')
depends=('ncurses')
makedepen... |
245fe8d4729d997c9feec342ba1d8682bb6a03d7 | 2,172 | #!/bin/bash
# check to see if current directory is a git repository
[ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo "$PWD does not contain a git repository"
exit 1
fi
# update local repository
git fetch origin
if [ "$?" -ne "0" ]; then
echo "Error fetching from ori... |
dfcb19ce08003cc17ee187d7be9b03d8760fcff5 | 1,386 | #!/bin/bash
# bring-up-ubuntu-container.sh
ME=stephen
# set passwd
read -p "Enter your password: " -s pw
echo
read -p "Enter your password again: " -s pw2
[[ "$pw" != "$pw2" ]] && echo "Passwords do not match" && exit 1
packages=( \
python3 python3-dev python3-pip python3-venv \... |
3f31369b79ffeda0bd8568fd7825aea829ba4f85 | 1,103 | #!/bin/bash
#if $(id -g) != "0" ] && "É necessário executar esse sistema com permissão. Execute da seguinte forma: sudo addvhost" fi
VHOST_LOCATION="/etc/nginx/sites-available"
USER_DIR="/home/f5consult"
clear
read -p "Informe qual será o novo domínio: " site
clear
mkdir $USER_DIR/$site
chown `whoami`:`whoami` $USE... |
3e09d66bb7d489167cd7e6e7a12bb84cd521f2fe | 98 | app=${1:-"main.py"}
cmd="python3 "${app}
echo ${cmd}
nohup ${cmd} >> ./logs/console.log 2>&1 &
|
fe4049a90bb7d6bae1096b4c80ddf7a92e7bd0fc | 2,197 | #!/bin/bash
set -euo pipefail
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null 2>&1 && pwd )"
source ${THIS_DIR}/log.sh
function help {
log_warning "Usage: helm.sh [ -v ] EKS_CLUSTER_NAME HELM_CHART_DIR HELM_RELEASE_NAME HELM_VALUES_FILE HELM_ARGS"
log_warning " EKS_CLUSTER_NAME: name ... |
970720f53ce742d939c7cf16eaf31cc1c7f6afa7 | 67 | REACT_APP_API_KEY=
REACT_APP_API_BASE=https://www.potterapi.com/v1
|
02d16a3a51253cf215ac833aba7e186244f25160 | 589 | #!/bin/bash
#Get this servers IP
IP=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`
DATE=`date +%Y-%m-%d-%H:%M:%S`
#Get the PID of the old running tcpdump
PID=`ps aux | grep tcpdump | grep $IP | grep -v grep | tail -n1 | awk '{print $2}'`
#When we kill it (-SIGINT) is the same as ctrl-C
#It ... |
0a7a3a42253cd5bfaf684543b0a5b84a45e7ffb1 | 247 | MONGO_URL= mongodb+srv://dhanashri:dhanashri@zomato-master.r42ak.mongodb.net/zomato?retryWrites=true&w=majority
GOOGLE_CLIENT_ID=400127244629-u04io0d7mu6or19lk795b2mmffot9th6.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=wz93XePie_kdGZWT8chwySB4 |
40f7a9b57327a9ad3c98594dadb97b1e394cb260 | 66 | scrapy crawl councilman_spider -t csv -o ../../data/councilman.csv |
53e31bb30990e9feb2b6d0bae5abea9c8a01aefe | 162 | #!/bin/sh -e
# postrm script for lighttpd
if [ "$1" = "purge" ]; then
rm -rf /var/log/lighttpd /var/run/lighttpd /var/cache/lighttpd
fi
#DEBHELPER#
exit 0
|
f733a67da60f5a8061824f2f11331764b95c25c9 | 61 | debug_path() {
for entry in $path; do echo $entry; done
}
|
1d796422834e88913cb2417a21f16cde161c0737 | 178 | #!/bin/bash
if [ "$(uname)" == "Darwin" ]; then
# This is a Mac
./osx/run_ulogme_osx.sh
else
# Assume Linux
sudo echo -n ""
sudo ./keyfreq.sh &
./logactivewin.sh
fi
|
326af8f70d7679397fe27c14ac56b8502c6d968e | 274 | # Here is a version that mirrors things horizontally across the X axis. Can be fun for pretending like you are emerging from a lake. Challenge: Try adding ripples. (Updated on 2020-05-08 13:56:41)
mplayer -vf 'geq=p(X\,Y)*gt(H/2\,Y)+p(X\,H-1-Y)*lt(H/2-1\,Y),scale' tv://
|
c8a502cad21d73057eba143720cdd83c5c0ed775 | 129 | #!/bin/bash
source $HOME/.bashrc
workon "resourceslibres.com"
source _variables.sh
$PROJECT_ROOT/prod_manage.py update_index
|
06ce2a6d1508ee9fcf3738073f8a25a8d78f8e91 | 2,529 | #!/bin/bash
#
# enable_sudo.bash
#
# v0.0.3 - 2021-08-25 - nelbren@nelbren.com
#
inform_task() {
case $2 in
1) echo -e "\e[30;48;5;3m$1!\e[0m\e[K";;
2) echo -e "\e[7;49;93m$1:\e[0m\e[K";;
*) echo -en "\e[30;48;5;7m$1...\e[0m\e[K"
esac
}
inform_and_exit() {
if [ "$1" == "0" ]; then
echo -e "\e[7;... |
e18a8681811f57703d3c8360bd35bd80fc00e5d5 | 1,124 | #!/bin/bash
youtubedlBoolean=false
echo
echo "///////////////////////////////////////////////////////////"
echo "/////////////// corroborando dependencias /////////////////"
{
YOUTUBEDL_SEARCH_DEPENDENCY=$(dpkg -s youtube-dl 2>&1)
} &> /dev/null
#si no existe la dependencia Youtube-dl la instala
if [[ $YOUTUBED... |
ee7388a81371c9ec344b749a32c37699e82eac5d | 1,060 | #!/bin/bash
cat << EOL
-------------------------------------
____ ___
/ __/__ _______/ (_)
/ _// -_) __/ _ / /
_/_/ \__/_/ \_,_/_/
/ __/__ _____ _____ ____
_\ \/ -_) __/ |/ / -_) __/
/___/\__/_/ |___/\__/_/
Brought to you by getferdi.com
Support our Open Coll... |
167d9b4de9411619849fe5076f9f4c4a0a787337 | 277 | #!/bin/bash
total_conn=$(netstat -alntp | grep ':80' | wc -l)
echo "total Number of connections to Varnish are:- " $total_conn
total_esta_conn=$(netstat -alntp | grep ':80' | grep ESTA | wc -l)
echo "total Number of ESTABLISHED connections to Varnish are:- " $total_esta_conn
|
f46089400101721bcdf657ec89fc1652b50d962a | 222 | #!/bin/bash
# This script fetches the specified package from S3
set -e
S3CFG=${S3CFG:-"$HOME/.s3cfg"}
filename=$1
url="s3://static.realm.io/downloads/sync-compat/$filename"
s3cmd --config=$S3CFG get "$url" "$filename"
|
5fce94a80d64713b0c4b4ced568521fdeb1c2c24 | 279 | #!/bin/bash
# to use this -->
# source ./env.sh
pyenv install -s
if [ ! -d env ]; then
python3 -m venv env
source env/bin/activate
env/bin/pip install --upgrade pip setuptools wheel
env/bin/pip install -r requirements.dev.txt
else
source env/bin/activate
fi
|
ca9e731e661f8e85f5ff47f0eefbe394f78ac6e6 | 3,953 | #!/bin/bash
# shellcheck disable=SC2086,SC2181
set -o errexit
set -o pipefail
set -o nounset
# set -x # debug
cleanup() {
echo "asdf test complete!"
}
trap cleanup EXIT
TESTING_CHANNEL=${TESTING_CHANNEL:-C034FNXS3FA}
main() {
local ns=${1:-bashbot}
local dn=${2:-bashbot}
# Retry loop (20/$i with 3 second del... |
7596a1c35089e632da5348e44a007fd6568e6c19 | 79 | #!/bin/sh
./Crashlytics.framework/run c59317990c405b2f42582cacbe9f4fa9abe1fefb
|
9963ed3f02390f4d5944c25e5260643cbd260875 | 3,528 | #!/bin/bash
#downloading and installing the required programms for hisat/stringtie and star/scallop pipelines
### Download the human genome data, generate genome sizes file and generate hisat/star indexes ###
wget ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_27/GRCh38.primary_assembly.genome.fa.gz -P $... |
3ffc3bacb7f528cc04d8d15498b35b67263766ec | 1,964 | #!/usr/bin/env bash
# Check if script is running as a desktop installation.
# If not, exit without configuring UI
if [[ ! "$DESKTOP" =~ ^(true|yes|on|1|TRUE|YES|ON])$ ]]; then
exit
fi
# CentOS version info - e.g., CentOS 7.8.2003 (v7.8 released March 2020)
# full_version=$(< /etc/centos-release tr -dc '0-9.')
major... |
7a55451c739bc23b5126c61e39de4dbf827c8cf7 | 3,011 | # Source .bashrc for non-interactive Bash shells
export BASH_ENV=~/.bashrc
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Get the OS
OS=$(uname | awk '{print tolower($1)}')
_setaliases() {
alias ls='ls -G'
alias ll='ls -ahlG'
alias grep='grep --color=auto'
alias p="ps aux... |
b8d0e8aae5e855be5876b420a4c97844d33777b5 | 58 | REACT_APP_NEWWAY_API_URL=https://newway-cnp.herokuapp.com
|
146315da9e06d7fe401c2cb875ee6bfbacdc7664 | 534 | #!/bin/bash
echo Cleaning or-tools
make clean
echo Builing all libraries
make all fz -j 5
echo Running tests
make test
echo Creating standard artifacts.
make python_examples_archive archive fz_archive pypi_upload
echo Rebuilding for python 3.5
make clean_python
make python UNIX_PYTHON_VER=3.5 -j 5
make test_python UNI... |
925f19d8a1903b8666e9eeb6ac4629396e2ac56f | 123 | #! /bin/bash -e
rm -fr build
mkdir build
cp ../build/libs/arduino-0.0.1-SNAPSHOT.jar build
docker build -t iot_rest_ms .
|
a3fab4509f11838d86e5f22fba24859d8fc58e17 | 73 | bq show --format prettyjson --schema ch04.college_scorecard > schema.json |
6eed3c6ca48695cbc38a6f776551ce0ca8efeca5 | 1,333 | #!/usr/bin/env zsh
# default editor
export EDITOR=vim
export PATH="/usr/local/bin:${PATH}"
export PATH="/sbin:${PATH}"
export PATH="${HOME}/bin:${PATH}"
export PATH="${HOME}/usr/bin:${PATH}"
export PATH="${PATH}:/usr/sbin"
if [ -f "${HOME}/Library/Haskell/bin" ]; then
export PATH="${PATH}:${HOME}/Library/Haskel... |
4f6c1d082faf0a5e4b03debc5ab09ed5c50749fd | 280 | #!/bin/sh
LC_ALL=C
export LC_ALL
CC=${CC:-gcc}
CPP=
L_OBJS=objs
L_MAKEFILE=$L_OBJS/Makefile
l_n=
l_c='\c'
cat << END > Makefile
default: build
clean:
rm -rf Makefile $L_OBJS
END
. auto/sources
test -d $L_OBJS || mkdir -p $L_OBJS
. auto/cc/conf
. auto/make
. auto/install
|
6eb0fd0423a81a4c95e05995d8a0ce72e42c32eb | 458 | #!/bin/bash
if [ $# != 3 ]; then
echo "$0 <name> <user> <command>"
exit 1
fi
name="$1"
user="$2"
command="$3"
file="/etc/systemd/system/$name.service"
if [ -e "$file" ]; then
echo "$file: exists, exiting."
exit 1
fi
cat > $file <<EOF
[Unit]
Description=$name
After=network.target
[Service]
Type=simple
User=$us... |
30a21524abe7b0042b034758fa5a6b7438cb1c28 | 76 | VITE_APP_TITLE="Chess"
VITE_API_CHESS="https://xadrez-backend.herokuapp.com" |
4e28d24e24e33d94c563e26237a7a8ea6e15b018 | 292 | #!/bin/bash
# BRANCH=master
BRANCH=`cat branch-linux`
if [ ! -z $1 ]
then
BRANCH=$1
fi
qemu-system-x86_64 \
-kernel ~/busybox/build/linux-$BRANCH/arch/x86_64/boot/bzImage \
-initrd ~/busybox/build/initramfs-busybox-x86.cpio.gz \
-nographic -append "console=ttyS0 nokaslr" \
-s
|
f0999a2ac7564f9f759d4ab5cc41c8eda988f6dc | 11,665 | #!/bin/bash
# DESCRIPTION
# Defines global settings.
# SETTINGS
# General
set -o nounset # Exit, with error message, when attempting to use an undefined variable.
set -o errexit # Abort script at first error, when a command exits with non-zero status.
set -o pipefail # Returns exit status of the last command in the p... |
f87964e9f541aea3835980ae79f4f0d40b9a9502 | 813 | #!/bin/sh
./tris-localserver -b 0.0.0.0:1443 -cert=rsa -rtt0=n 2>&1 & # first port: ECDSA (and no 0-RTT)
./tris-localserver -b 0.0.0.0:2443 -cert=ecdsa -rtt0=a 2>&1 & # second port: RSA (and accept 0-RTT but not offer it)
./tris-localserver -b 0.0.0.0:3443 -cert=ecdsa -rtt0=o 2>&1 & # third port: offer and rej... |
ae946c37b40dc67ab0dc036829424395f7920c42 | 94 | #!/bin/sh
#
# open _notes folder in VS Code
#
code ~/Google\ Drive/_notes/notes.code-workspace |
bf2608bb1955213a1e21cd4d4945e49b2d968e0d | 268 | #!/bin/sh
# bin/detect <BUILD_DIR>
# this buildpack depends on heroku-configvar-files-buildpack-config file in the root of the project
if [ -f $1/heroku-configvar-files-buildpack-config ]; then
echo "heroku-configvar-files-buildpack"
exit 0
else
exit 1
fi |
4ff02325bdeede3e2fa5409c472056819a976fc4 | 3,352 | #!/bin/bash
# ------------------------------------------------------------------
# -- AWS User Pool Authenticator
# --
# -- Requires:
# -- aws-cli
# --
# -- @author Pablo Viquez <pviquez@pabloviquez.com>
# ------------------------------------------------------------------
SELF_SCRIPT_PATH="$( cd "$( dirname "${BASH... |
7749982ee38faa60ee900225a727d090276618c9 | 1,381 | ESPNET_PATH="/mnt/Data/user_vol_2/user_neillu/End2End/espnet/egs/timit/asr_normwave_fbank/"
CLEAN_TIMIT="/mnt/Data/user_vol_2/user_neillu/TIMIT_Manner_E2E/"
DATA_PATH="/mnt/Data/user_vol_2/user_neillu/TIMIT_fbank/"
# step 1: generate normalized fbank
mkdir out/
python make_list.py $CLEAN_TIMIT out/TIMIT_filelist.txt... |
bfa0c6e9494e4f47dd1128d570cd8dc1a967a4f7 | 1,523 | #!/bin/bash
###
#
# mysql_setup.sh
#
# based on rrosiek/install_mysql.sh
# Helper script which role is to install MySQL and PHPMyAdmin
# Other packages are installed with ansible
#
###
# Variables
DBHOST=localhost
DBNAME=dbname
DBUSER=dbuser
DBPASSWD=test123
# MySQL setup for development purposes ONLY
sudo debconf-s... |
7e7d75fff3db76b1ec9bd58953ba9617cc03ebb2 | 260 | #!/bin/bash
cat >/etc/portage/package.use/supercollider <<EOF
media-sound/supercollider jack -portaudio server
EOF
cat >/etc/portage/package.keywords <<EOF
# required by =media-sound/supercollider-3.8.0 (argument)
=media-sound/supercollider-3.8.0 ~amd64
EOF
|
4b4256b417fc4d39bb13e278028ea658104a2223 | 1,421 | #! /bin/sh
git pull --rebase
proj=$1
repo=$2
test -n "$proj" || proj=Factory
test -n "$repo" || repo=standard
case $proj in
Factory)
product=000product
;;
Leap:15.*)
product=000product
;;
Leap:15.*:Ports)
product=000product
;;
Factory:PowerPC)
p... |
ea0b2cbc3f55cddf6a160afcc768dfa45098f1b7 | 134 | #!/bin/bash
DIR=`dirname $0`
nvcc -w -std=c++11 "$DIR"/crc32-prl-red1.cu "../$DIR"/big-table-gen.cpp -I"../$DIR"/include -o crc32-prl |
6131d6f6af15899a6ab477699c21a0399fd8ead9 | 108 | #! /bin/bash
echo 'please wait...'
python -m http.server 8080
echo 'start server at http://localhost:8080/'
|
09bafa6ae6c74e43d1855b4316691365eff90a9d | 3,294 | #!/bin/bash
gits=(prosper-rest-api prosper-traffic)
txtbld=$(tput bold)
txtrst=$(tput sgr0)
txtlue=$(tput setaf 4)
txtund=$(tput sgr 0 1)
git_url=git@github.com:reiosantos/
printGitProjectName() {
echo -e "${txtbld}${txtlue}****** $1 ******${txtrst}"
}
commandName() {
echo -e "${txtund}${txtbld}${txtlue... |
61b30d00d78ebcffb4863004041db123e7c9bca5 | 75 | PORT=
DB_HOST=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
DB_PORT=
JWT_TOKEN= |
db9fc6a51bc82de8274bc7374d6b99954a79c20b | 65 | #!/bin/bash
sed "s/tagVersion/$1/g" pods.yaml > web-app-pod.yaml
|
11e18f07f45d688a4d63ed9d91c2f90457687102 | 176 | #!/bin/bash
set -e
export PGPASSWORD=$APP_DB_PASSWORD;
psql -v ON_ERROR_STOP=1 --username "$APP_DB_USER" --dbname "$APP_DB_NAME" <<-EOSQL
CREATE EXTENSION "uuid-ossp";
EOSQL |
a97ca6c22799fca7c76fe44c41b7e8784c7e40d3 | 155 | #!/bin/sh
# /etc/profile.d/rust.sh
export PATH=${APP_DIR}/rust/current/bin:${PATH}
export LD_LIBRARY_PATH=${APP_DIR}/rust/current/lib/:${LD_LIBRARY_PATH}
|
615ebc680e41f4c2829d26030e48991ddaa34d21 | 505 | #!/bin/bash
#checks if LOGDNA_EXCLUDE has already been added and if not patches and restarts the daemon-set
kubectl get ds logdna-agent -n ibm-observe -ojson | jq -e '.spec.template.spec.containers[0].env[] | select(.name=="LOGDNA_EXCLUDE")' ||
(
kubectl patch ds logdna-agent -n ibm-observe --type "json" -p '[{"op":"a... |
f861f8d88f51c73163dd2f4e7db8c6732ce692d4 | 3,988 | #!/usr/bin/env bash
#C=17
dvsrs=(8 4 2 1)
#============
dpi=150
tmp_dir=tmp
fl_dir=/home/muzzy/Documents/py_pract/rcethRegsSpiders/data/jpg/dpi-150/10000_12_i
a4_150_dpi_lng=1754
a4_150_dpi_shrt=1240
a4_150_dpi_port=${a4_150_dpi_shrt}x${a4_150_dpi_lng}
a4_300_dpi_lng=3508
a4_300_dpi_shrt=2480
a4_300_dpi_port=${a4_3... |
70a209cf419b498b66fffba44cd3784a454bb5a6 | 830 | #!/bin/sh
# --------------------------------------------------------------
# Project: PAWN
# Purpose: PAWN CC Script
# Author: Ho-Jung Kim (godmode2k@hotmail.com)
# Date: November 5, 2006
# Filename: pawn_cc.sh
#
# Last modified:
# License:
#
# Note:
# --------------------------------------------------------------
# ... |
2156f4a2bee0341ff9696396e49bf3822b7bbc24 | 1,825 | #! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test reading in NeXTstep/GNUstep .strings syntax.
cat <<\EOF > mcat-s-1.in
/* This is an example of a string table file. Everything inside a comment
is completely ignored, even if in "quotes", or \escape characters, etc.
*/
"title" = "pattern II target 1";... |
4e3ce871d2fe811e0eab9dcb300915634ddd0a24 | 127 | #/bin/bash
if [[ ! -d /tmp/images ]]; then
mkdir -p /tmp/images
cp -r images/* /tmp/images/
fi
mysql -u root < create.sql
|
d637ab826516d789c1ec27f9608c8d679e72b2a7 | 247 | #!/usr/bin/env zsh
## Typewritten prompt
TYPEWRITTEN_PROMPT_LAYOUT="singleline"
TYPEWRITTEN_ARROW_SYMBOL=""
TYPEWRITTEN_CURSOR="terminal"
TYPEWRITTEN_SRC="/opt/homebrew/Cellar/typewritten/1.5.1/libexec/typewritten.zsh"
source $TYPEWRITTEN_SRC |
2b59f38b98da4f8a2be99d92185f64e94511c502 | 2,126 | #!bin/bash
apt-get update && apt-get -y install sudo
# pip installation
sudo pip3 install -r /usr/src/app/requirements.txt
sudo apt install -y gcc
sudo pip3 install uwsgi
# sqlite installation
sudo apt-get install -y sqlite3
sudo python3 /usr/src/app/db/setup.py
# NGINX configuration
sudo apt install -y nginx... |
76ba4eee0e2f9f373e393777564b21cc4097588d | 53 | find . -iname \*.m | xargs sed -i -e 's/addpath.*//'
|
8225c09bc8d6636c8eab31487c618ecba2b90ee6 | 576 | #
# Copyright (c) 2021 hpmicro
#
# SPDX-License-Identifier: BSD-3-Clause
#
if [ "X$MSYSTEM" "==" "X" ]; then
if [ "X$name" "==" "Xenv.sh" ]; then
echo "Please source this file, rather than executing it."
exit
fi
env_name=$0
else
env_name=$1
fi
script=$(cd -P -- "$(dirname -- "$env_name... |
417da451793fafe700669719ef09d718935becc3 | 61 | function title() { echo -ne "\033]0;$1\a"; }
export -f title
|
2577e8a6dc252c8e942892d0a2a963b6accde8b3 | 970 | #!/bin/sh
source ~cmst1/.bashrc
agentenv
tmp=`mktemp`
condor_overview | sed -n '/48 hours by workflow/,/-----/p' | grep " : " >> $tmp
while read line ; do
WF=`echo "$line" | awk -F' : ' '{print $1}'`
Jobs=`echo "$line" | awk -F' : ' '{print $2}'`
echo "Checking : " $WF
nRem=0
for iJob in $Jobs ; ... |
258b9b45feecb58523f0e3b7222b8d859263692f | 199 | #!/bin/bash
MAX_SECONDS=60
while /bin/true
do
[[ "$(echo ruok | nc "$HOSTNAME" 2181 2>/dev/null)" == "imok" ]] && exit 0 || sleep 1
[[ "$SECONDS" -ge "$MAX_SECONDS" ]] && exit 1
done
# EOF
|
f616a37d4cd0dae4f1ae457d86b50e736748c2cd | 1,092 | #!/bin/bash
echo "Installing Homestead."
echo 'deb http://download.virtualbox.org/virtualbox/debian zesty contrib' >> /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt-get -y update
sudo apt-get install -y virtualbox-5.1
sudo apt-get install -y dkm... |
63e4ed2981c10c024d2d1682d7a0dc9ce83d2554 | 59 | DB_USERNAME=root
DB_HOST=localhost
DB_PASSWORD=
DB_NAME=db
|
3beb9dc6d81c245f868f132dcd58b91387de12b5 | 267 | #/bin/bash
server="hut.jofgame.com"
username="zhubo"
passwd="Jof1Game8yzl"
mkdir libexec
ftp -n $server <<EOF
prompt off
user $username $passwd
get nagios-plugins-1.4.15.tar.gz
get nrpe-2.12.tar.gz
get snmpd.conf
get nrpe.cfg
cd libexec
lcd libexec
mget *
bye
EOF
|
c5640b5817124d0ed56dda7e935e28376ec6027c | 233 | #!/usr/bin/env bash
#Bash script that displays the time for 12 hours and 59 minutes:
i=0
j=1
while [ $i -lt 13 ]
do
echo "Hour:" $i
while [ $j -lt 60 ]
do
echo $j
((j++))
done
((i++))
j=1
done
|
c6bb52813949c821b5ac89b07e4f61ef76f32941 | 601 | #!/bin/bash
. ~/.bash_profile
if [ -z $CATALINA_HOME ]; then
echo "ERROR: CATALINA_HOME is not set!"
exit 1
fi
if [ -z $MAVEN_HOME ]; then
echo "ERROR: MAVEN_HOME is not set!"
exit 2
fi
echo "Shutdown tomcat application server..."
sh $CATALINA_HOME/bin/shutdown.sh
rm -rf $CATALINA_HOME/work
src_home=$HO... |
53905f3c718b1eadd65d841e588bf66c8db49f86 | 3,532 | #!/bin/bash
# runs updates
#
# Copyright (C) 2014 IHDN, Uvea I. S., Kevin Rattai
#
# This file will be superceded by the l-ctrl file as far as
# control of the system, as l-ctrl will be a cron job. This
# script may become depricated, although it might continue a
# useful, future function for loose processes that are ... |
5448bd2dcfa9eae5781692065053ce4657125324 | 1,319 | #!/bin/sh
# i3mailbox.sh (i3blocks mail module)
#
# Usage: i3mailbox.sh
#
# Displays number of unread mail and an loading icon if updating.
# When clicked, brings up `neomutt`.
case $BLOCK_BUTTON in
1) "$TERMINAL" -e mail.sh ;;
2) setsid "$HOME/scripts/floats/urxvtFloat.sh" 66 3 syncMail.sh >/dev/null & ;;
3) pgre... |
4a6776ac00b2a1d0262b16db16c15825e1af9762 | 4,565 | #!/bin/bash
if [ ! -d ~/.sdlvm ]
then
echo "Error: ~/.sdlvm not found"
exit 1
fi
mkdir -p ~/.sdlvm/versions
mkdir -p ~/.sdlvm/src
touch ~/.sdlvm/version
CURRENT_VERSION="$(cat ~/.sdlvm/version)"
function show_help() {
echo "usage: sdlvm [OPTIONS..]"
echo "options:"
echo " help shows this help"
echo " instal... |
f716e7bcd0e113162e81c8780ea9ce2235807619 | 546 | #!/bin/bash
export NNI_PLATFORM='local'
export NNI_EXP_ID='SreqCz44'
export NNI_SYS_DIR='/root/nni/experiments/SreqCz44/trials/eWeR6'
export NNI_TRIAL_JOB_ID='eWeR6'
export NNI_OUTPUT_DIR='/root/nni/experiments/SreqCz44/trials/eWeR6'
export NNI_TRIAL_SEQ_ID='6'
export MULTI_PHASE='false'
export NNI_CODE_DIR='/root/nni-... |
d6dd1008279b06c56386cebac22bdd44eddbad30 | 479 | #!/bin/bash
cd "$(dirname "$0")"
fname="BB?????.tfa"
temp="./temp"
for inputFile in `find ./bb3_release/ -name $fname -type f | sort -V`
do
output=`echo $inputFile | cut -d "/" -f 3-`
output=./aligned/"$output"_pasta
echo "################## $output ########################"
run_pasta.py --auto -d Protein -i $inp... |
ace14c95b4fe9dc72faac1aa993899e07c22eb6c | 772 | #!/bin/bash
set -e
set -o xtrace
if [ "${DISTRO}" = "rhel" ]; then
# NOTE(vkmc) This is necessary for now. Waiting for the release.
yum -y install wget
wget http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-latest.noarch.rpm
yum -y --nogpgcheck localinstall rhos-release-latest.noarch.rpm... |
950df83e8776bde34eec8025a913d652730e4fe6 | 163 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
python $DIR/generate-repos.py
for p in $(cat "$DIR/gitrepos"); \
do git clone $p; done
|
1471df19280805df43ce6a2617ce1e1ccc00a3d3 | 79 | #!/bin/sh
sbatch -t 48:00:00 --wrap="bash split.sh ../auth.txt 1 175238409"
|
d80a988344f78a5e517536f7be5493592fc6b531 | 114 | curl -XGET 127.0.0.1:9200/movielens-sql/data/_search?pretty
curl -XGET 127.0.0.1:9200/movielens-sql/_search?pretty |
e9d427af7831b2328688fe522a8fa9309d2ff894 | 3,734 | #!/usr/bin/env bash
# shellcheck disable=SC1090,SC2214
###############################################################################
CMD_SCRIPT=$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)
###############################################################################
source "$CMD_SCRIPT/../../cli/c... |
fb87055611f97e2e10c7ec26ef7296a9f9177a23 | 1,282 | set -eu
SCHOOL=14
DEPARTMENT=14
function getSubjectIds(){
YEAR="$1"
GRADE="$2"
COL1="$(( 6+(4*(GRADE-1)) ))"
COL2="$(( COL1 + 2 ))"
curl -Ss "https://syllabus.kosen-k.go.jp/Pages/PublicSubjects?school_id=${SCHOOL}&department_id=${DEPARTMENT}&year=${YEAR}&lang=ja" | pup 'table#sytablenc tbody tr json{}' | jq -r "... |
c43fe1cccba0aa0ae562afb79d7dc3d551290bf6 | 102 | #! /usr/bin/ksh
for i in {1..5}
do
typeset -Z3 i
echo $i
python vitiligo_vgg.py $i
done
|
f6a12d78d5d27ec63008d768cb3cdad42d14eb46 | 240 | # for loop does not work in sh
# to run bash scripts type ""bash <program_name>.sh""
read -p "enter number of rows: " num
for ((i = 1; i <= num; i++)); do
for ((j = 1; j <= i; j++)); do
printf "*"
done
printf "\n"
done
|
22c0655a420eb9dd38650b1decf48656e916f1c3 | 184 | #!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd ${SCRIPT_DIR} >/dev/null
# wait for mongod to initialize
sleep 10
python3 -m postprocessor
|
bb57bd4678228e1939edfc799a449b2e082107df | 64 | nohup ./SoftwareServerRestlet.sh &
nohup ./PolyglotRestlet.sh &
|
a8929473cd038c8cfbc4ecff558eb41849a5c913 | 28 | brew cask install cooviewer
|
480c83373b53b09c12915066f78e45ab8cb97827 | 148 | STATIC_PATH=./comingsoon/
HTTP_PORT=80
UPLOAD_PATH=./uploads/
SENDGRID_API_KEY=yourapikey
EMAIL_ADDRESS=email.to@receiveleads.com
DEBUG_LEVEL=debug
|
617a329d2d107ed3392d604cef177a2f304ba560 | 210 | #!/bin/sh
DEST="$1"
UUID=$2
DEST_TMP="$1.tmp"
echo SVN-fs-dump-format-version: 2 > $DEST_TMP
echo "" >> $DEST_TMP
echo UUID: $UUID >> $DEST_TMP
svnadmin load --force-uuid `pwd`/$DEST < $DEST_TMP
rm $DEST_TMP
|
4bfc0bbfac2e627f502e3a4bfc769b78af8856cc | 2,471 | #!/bin/sh
## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
resolveLink() {
local NAME=$1
if [ -L "$NAME" ]; then
case "$OSTYPE" in
darwin*|bsd*)
# BSD style readlink behaves differently to GNU readlink
# Have to manually follow links
while [ -L "$NAME" ];... |
ce9ba828c7e09ee28250fb1bc07838388c77ba6d | 1,304 | #!/bin/bash
function get_random_file {
echo "${1}/$(ls $1 | grep jpg | sort -R | tail -1)"
}
clear
echo "removing all known profiles...date. Current time is: "`date`
rm -Rf profile
echo "Start training for ==steve_jobs=="
python recognition.py --name steve_jobs --profile "faces/steve_jobs/40.jpg" "faces/steve_j... |
0c8b9f643dc2d9bf753671996dc4560280f8ade8 | 588 | #!/bin/bash
#network
#Mike.Xu
while : ; do
time='date +%m"-"%d" "%k":"%M'
day='date +%m"-"%d'
rx_before='ifconfig eth0|sed -n "8"p|awk '{print $2}'|cut -c7-'
tx_before='ifconfig eth0|sed -n "8"p|awk '{print $6}'|cut -c7-'
sleep 2
rx_after='ifconfig eth0|sed -n "8"p|awk '{print $2}'|c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.