blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
9beed7b6f3ccfd259aa1199fe0914fab5daf623d | 1,499 | #!/bin/sh
set -e
SDK_ROOT=`pwd`
while getopts ':p:' opt; do
case $opt in
p)
SDK_ROOT=$OPTARG #set the SDK_ROOT
echo "get_opts SDK_ROOT:${SDK_ROOT}"
;;
?)
echo "How to use: $0 [-b path ]" >&1
exit 1
;;
:)
echo "Option -$... |
a99316b26b112c3e6a38f59e9fec04cde6134aed | 210 | #!/usr/bin/env bash
# If ES won't start with the error:
# max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
# Run this command:
sudo sysctl -w vm.max_map_count=262144
|
70a746fe09feea326a08850444cd461c567ef3aa | 18 | echo "I am v7792"
|
773bc64556d7eb6d0e73ea9c8c7c862bf160fcd8 | 1,543 | #!/bin/bash
set -e
source $(dirname $0)/common.sh
config() {
check_param
load_ns
echo "######################################"
echo "####Get ESP config for Wireshark!####"
echo "######################################"
BASE_CMD="ip netns exec ${ROUTER_CONTAINER_ID} ip xfrm stat"
SPI_LIS... |
1768e7e24fc9eabf150f7ffcadb7834aa385e90f | 874 | #!/bin/sh
PORT=2323
PIDFILE=/home/ferada/.cl-nailgun-script.pid
CL=/home/ferada/src/opt/bin/sbcl
NG=/home/ferada/src/nailgun/ng
PID=
if [ -f $PIDFILE ]
then
PID=$(cat $PIDFILE)
fi
# TODO: file lock so only one server is started
SPAWN=
[ -z "$PID" ] && SPAWN=YES
/bin/kill -s 0 $PID || SPAWN=yes
if [ -n "$SPAWN" ... |
3f9504b953dbae2369abb087f6b528541b227560 | 3,915 | # Copyright (c) 2014, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of cond... |
464045819c00089f4f9b39b4d5f673e895ff5c13 | 32 | MAPBOX_KEY =
OPENWEATHER_KEY = |
01a4405d451f4c829b722b12cc0be56138e18ff1 | 527 | #!/bin/bash
set -e
set -x
IN_LEFT="$1"
IN_RIGHT="$2"
IN_META="$3"
OUT_LEFT="$4"
OUT_RIGHT="$5"
OUT_META="$6"
TIMESTAMP="$7"
FIXED_META="$8"
# TODO: Deal with this...
# TODO: cp: cannot stat 'ua-mac/Level_1/rgb_geotiff/2018-07-01/2018-07-01__08-35-45-218/rgb_geotiff_L1_ua-mac_2018-07-01__08-35-45-218_left.tif': No su... |
576f308ed9e7ee15f55bbc35664610ed65aca408 | 246 | #!/bin/bash
#
# Nombre: Start_D
#
# Inicia un demonio
#
# Precondicion: Deben estar seteadas las variables de entorno e instalado todo.
# TODO: en principio, solo el Recibir_B.sh
nohup $BINDIR/Recibir_B.sh > /dev/null 2>&1 &
exit 0 |
93980febdb299f73be58fa326f94f2ead77bb3c9 | 252 | #!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
export LD_LIBRARY_PATH=$dirname/lib
export QML2_IMPORT_PATH=$dirname/qml
$dirname/$appname "$@"
|
b80effb11cf1d74b2c6de1853c0117af804d8a5b | 738 | #!/bin/bash
topic_arn=$(awslocal sns create-topic --name test-producer | jq -r '.TopicArn')
queue_url=$(awslocal sqs create-queue --queue-name test-consumer | jq -r '.QueueUrl')
subscription_arn=$(awslocal sns subscribe --topic-arn $topic_arn --protocol sqs --notification-endpoint $queue_url | jq -r '.SubscriptionArn'... |
18d0de95c12559b3d0b3e4aa6b2415a2b76ccdf2 | 174 | #!/bin/bash
export BIBINPUTS=${BIBINPUTS}:`kpsewhich --show-path=bib | sed -e "s/\!\!//g"`
~/Library/TeXShop/bin/latexmk -pdf -r "$HOME/Library/TeXShop/bin/xelatexmkrc" "$1"
|
5bced6fb0b73577c2d6ba2494e5cc28d1ea22dcc | 274 | #!/bin/bash
# SID: CCE-27033-0
{
: ${LIMITS_CORE:=0}
##
# Just zap the entry if it exists and readd
sed -Ei "/\*\s+hard\s+core\s+/d" /etc/security/limits.conf
echo "* hard core ${LIMITS_CORE}" >> /etc/security/limits.conf
} &>> ${LOGFILE}
|
c498a35a8ac84ff63b649c1facbd21acfeaa63e6 | 672 | #!/bin/sh
FONT_NAME=monofur
FONT_TYPE=plain
FONT_SIZE=25
FONT_SPEC="$FONT_NAME-$FONT_TYPE-$FONT_SIZE"
# Swing fonts - Haven't gotten these to work
JDK_JAVA_OPTION="-Dswing.aatext=true -Dswing.plaf.metal.controlFont=$FONT_SPEC -Dswing.plaf.metal.userFont=$FONT_SPEC"
# Plastic fonts - Haven't gotten these to work
JDK... |
16693af0794c6778369faca8e76b2ed4e4119816 | 361 | #!/bin/bash
SENHA=$1
ACAO=$2
if [ $# -lt 2 ]; then
echo "Faltou passar senha e ação a ser tomada (REBOOT OU RESET)!"
exit 1
fi
echo "Numero de argumentos: $#"
while read IP; do
echo "RESET:$IP"
if [ $? -eq 0 ]; then
if [[ -n "$IP" ]]; then
curl "http://$IP/cgi-bin/api-sys_operation?passcode=$SENH... |
92050228902e9eef833a26b286cb2f79849a46b9 | 52 | #!/bin/bash
echo B
echo B >&2
exec sleep infinity
|
98f78419631107676b6c5bdf69a4c6fc99c65964 | 88 | REACT_APP_DECORATORS = true;
REACT_APP_BABEL_STAGE_0 = true;
PORT = 3000;
BROWSER = none |
c59b1452551ef4919c2fdc2f1b27ba3e38e97d8a | 220 | wget http://egg-consortium.org/downloads/EGG_Obesity_Meta_Analysis_1.txt.gz
gzip -cd EGG_Obesity_Meta_Analysis_1.txt.gz > EGG_Obesity_Meta_Analysis_1.txt
cp EGG_Obesity_Meta_Analysis_1.txt 22484627_Childhood_obesity.txt |
700c0cf16c6515c4a558e8a5e5228569ae0ac16e | 68 | #!/bin/bash
./bin/publisher "test" "test" "test" "test" &>/dev/null |
5a00c156343a13f205098823c52e908385cbf5bf | 290 | #!/bin/bash
maxsize=16
tester=./unit_test
i=1
while [ $i -le $maxsize ]; do
j=1
while [ $j -le $maxsize ]; do
k=1
while [ $k -le $maxsize ]; do
echo "$tester -m $i -n $j -k $k"
$tester -m $i -n $j -k $k
k=`expr $k + 1`
done
j=`expr $j + 1`
done
i=`expr $i + 1`
done
|
f71b9aadc9aec91b91e297b03898e26031206a90 | 302 | #!/usr/bin/env bash
alias g="git"
alias ls="ls -lah"
alias cd..="cd .."
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../../"
alias ~="cd ~" # `cd` is probably faster to type though
# Enable hub aliasing
eval "$(hub alias -s)"
|
a424e1a0fcff64f31dacad0f1d30f7847ab8926d | 622 | #!/usr/bin/env bash
log () {
printf '%s %s\n' "$(date -R)" "$*" >> ~/.logs/note.log
}
named_note () {
vim "$XDG_CONFIG_HOME/notes/$1"
(
set -e
exec > >(while read -r l; do log "$l"; done) 2>&1
if ! cd "$XDG_CONFIG_HOME"/notes
then
log "Issue moving to notes dire... |
2f250a311cda89633c9c60816a721ca08551b7c3 | 771 | #!/bin/sh
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.
# Check for Homebrew
if test ! $(which brew)
then
echo " Installing Homebrew for you."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Install hom... |
aa47540f8b9af48a8ee70cfb8e5d1c760726c1a6 | 5,433 | #PBS -N LUFACT_C_OriginalMatrix_TimeTest_ICC
#PBS -l walltime=20:00:00
#PBS -q mei
#PBS -m abe
#PBS -M carlos.sa01@gmail.com
#PBS -lnodes=1:r641:ppn=32
# Machine USED
read -r node_info<$PBS_NODEFILE
############ Information about algorithm to run ################
alg="LUFACT_C_OriginalMatrix_ICC"
exeICC="$HOME/... |
f4bc8e2df037aa73e85c7ef768112a46f0dcc65d | 288 | mysql -uroot -proot -h127.0.0.1 -P3310 -se"select @@port\G select count(*) from test.employees"
mysql -uroot -proot -h127.0.0.1 -P3320 -se"select @@port\G select count(*) from test.employees"
mysql -uroot -proot -h127.0.0.1 -P3330 -se"select @@port\G select count(*) from test.employees"
|
f718aaccac3d57149d5532a05cedf4beb17c8133 | 654 | #/bin/sh
# Copyright 2006-2014, Alan K. Stebbens <aks@stebbens.org>
#
# Test module for list-utils.sh
#
export PATH=.:$HOME/lib:$PATH
source list-utils.sh
source test-utils.sh
test_10_print_list() {
start_test
words=(
apple banana cherry dog elephant fox giraffe hawk indigo manzana milk november
october de... |
fa5ec5f84bc30e035ee4d5cf4eb22d2fe9e1557b | 482 | pkgname=netctl-eduroam-kth
pkgver=0.1
pkgrel=2
pkgdesc='Example netctl profile for eduroam at KTH'
arch=(any)
url=http://www.lan.kth.se/eduroam/linux/arch_linux_example.html
license=(MIT)
depends=(ca-certificates netctl)
source=(eduroam-kth)
install=install
md5sums=('d7f6aa0caeb8ec37a70fa69b8b3eeafb')
sha256sums=('3761... |
34133138447447680c55f5b6e56ca10cce39e834 | 5,573 | export LC_CTYPE=C
export LANG=C
USER_INSTALL_DIR="$(dirname "$( cd "$( dirname "$0" )" && pwd )")"
USER_PACKAGE_INSTALL_DIR='$HOME/QueryIOPackage'
echo "Installation Directory: $USER_INSTALL_DIR"
PROP_FILE=$USER_INSTALL_DIR/bin/qio-setup.properties
source $PROP_FILE
LOCAL_IP=`ifconfig | grep -Eo 'inet (addr:)?([0-... |
a9763bf461c5407e4079f9f8530c5e9c90a50717 | 893 | # deploy kubernetes dashboard
kubectl -f ./app.yaml apply
# para acceder al dashboard
kubectl edit svc kubernetes-dashboard -n kubernetes-dashboard
# y actualizamos `type: ClusterIP` a `type: NodePort` aunque podemos no hacerlo, porque es un eks y necesitamos el por-forward
# y haces un port-forward
kubectl port-for... |
5879f7da5ee14af996b87b46371e276828d73875 | 314 | #!/bin/bash -xe
# setup
export CXX=${CXX:-"g++"}
export CXXFLAGS='-O2 -g0 -std=gnu++14 -fno-gnu-keywords'
# build
${CXX} --version
mkdir -p m4
autoreconf -ifv
./configure --disable-silent-rules --enable-debug-checks --disable-static
make -j$(nproc)
# test
make -j$(nproc) check || (cat ./test-suite.log; false)
|
c8c001cf28670a1a8053d0a5f29f4837fb0892bc | 4,009 | #!/bin/bash
# Configuration
. ./config.sh || { echo "FAILED: Could not configure" && exit 1 ; }
# Additional Configuration
# NONE
# See https://docs.openshift.com/enterprise/latest for general openshift docs
echo "Create a Devnation Fedevnation-visitorsderal 2017 demo environment"
echo " --> make sure we are logged... |
f0da1493684d740f87d3c927bd8fa677c0508d3b | 558 | #!/bin/bash
downloaded=0
total=`wget http://www.z0r.de/0 -O - -q | grep "«" | cut -d "\"" -f 2`
echo "$total clips available"
for i in `seq 0 1 $total`; do
if [ ! -f "swf-files/$i.swf" ]; then
echo "downloading clip #$i"
flashobj=`wget "http://z0r.de/$i" -O - -q | grep "swfobject.embedSWF"... |
2b9d8b126d4a371b4705ae571363722a109113a5 | 37 | API_URL = https://api.url.com/api/v1/ |
ed1a45f200465762f943e0e40d4d1b596b6dfa8d | 2,332 | #!/usr/bin/env bash
set -euo pipefail
STARSHIP_CACHE_DIR="/tmp/starship-cache"
JSON_FILE="$STARSHIP_CACHE_DIR/laravel.json"
VERSION_NOT_FOUND="___VERS_NOT_FOUND___"
check_artisan() {
if [ -f "$PWD/artisan" ] && [ -d "$PWD/vendor" ]
then
return 0
else
return 1
fi
}
get_laravel_versio... |
63abe15dc1eb94ae9980b901ce08a58b67b84c34 | 292 | #!/bin/bash
docker rm ubuntu_node-server_1 --force
docker pull asianjohnboi/tweetery:latest
docker run --name ubuntu_node-server_1 --restart=unless-stopped \
--network=ubuntu_tweetery-network \
--ip=172.18.0.2 \
-p 5000:5000 asianjohnboi/tweetery:latest |
040a52566fbcb276fe710c4a6a889de27ef3ae74 | 1,571 | #!/bin/bash
# Run the tests in a local docker container, which runs the same travis test script.
# This script does the following:
# - create a new test image with necessary software installed e.g. git
# - remove existing containers, and create a new one for each test run
# - mount the dotfiles directory and exec... |
dc1b17c3b1cf9585860327f237cd43c054876054 | 148 | DATABASE= test_db
DATABASE_HOST=localhost
DATABASE_USER= root
DATABASE_PASSWORD= MyNewPass
JWT_PASS=mepasses
JWT_DURATION=90d
JWTCOOKIE_DURATION=90
|
9388105764fb60be93c3fa92a1b0d8b0c747f5b4 | 783 |
pkgname=chromaprint
pkgver=1.5.1
_commit=aa67c95b9e486884a6d3ee8b0c91207d8c2b0551
pkgrel=2
pkgdesc='Client-side library that implements a custom algorithm for extracting fingerprints from any audio source'
url='https://github.com/acoustid/chromaprint/'
arch=('x86_64')
license=('LGPL')
depends=('ffmpeg')
makedepends=('... |
94c03bef8c4933b0188638f3de72b227c24f67b1 | 61 | #!/bin/bash
slapcat -n0
ldapsearch -x -b "dc=hadoop,dc=io"
|
507be8bf5d29db0319d9da02e913c0f58c3778ef | 2,880 | #!/bin/sh
echo "import FWCore.ParameterSet.Config as cms" > HiGenJetsCleaned_cff.py
echo "from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *" >> HiGenJetsCleaned_cff.py
for system in PbPb pp pPb
do
for sample in mc data
do
for algo in ak
do
for sub in Vs Pu NONE
do
for radius in 2 ... |
dca9a88e6d865cf13924a97b1cbb3dac193a43df | 2,378 |
PACKAGES="$PACKAGES busybox"
hset busybox version "1.29.1"
hset busybox url "http://busybox.net/downloads/busybox-$(hget busybox version).tar.bz2"
hset busybox depends "crosstools host-libtool"
hset busybox optional "pam"
configure-busybox() {
local obj=$STAGING/obj/busybox-obj
mkdir -p $obj
if [ -f "$CONFIG"/conf... |
0e13fcbac7ae682d36bfdd6686dea6f6b91cbb30 | 865 | #!/usr/bin/env bats
load stub_helper
setup() {
make_root_dir
}
run_command() {
run xcenv-global $@
assert_success
}
@test "global default" {
run_command
assert_output "system"
}
@test "unsetting global version" {
make_global_file
assert [ -f "$XCENV_ROOT/.xcode-version" ]
run_command --uns... |
8bec6c1fec13da78b6d802023eb9cb4ee25d9edf | 518 | #!/bin/bash
# If you need to add or remove from the repo root please change NUM_ITEMS_SHOULD_BE
# Please take care to only add files or directories to the repo root unless they are
# required to be in the repo root, otherwise please find a more appropriate location.
NUM_ITEMS_SHOULD_BE=41
NUM_ITEMS=$(ls -la | wc -l)... |
ad489029f19a5c3c2ba0bcd0000465d77be2f07e | 1,643 | ulyaothos=`cat /etc/ulyaoth`
buildarch="$(uname -m)"
fcgiwrapversion=1.1.0
useradd ulyaoth
cd /home/ulyaoth/
su ulyaoth -c "rpmdev-setuptree"
su ulyaoth -c "wget https://github.com/gnosek/fcgiwrap/archive/'"$fcgiwrapversion"'.tar.gz"
su ulyaoth -c "tar xvzf '"$fcgiwrapversion"'.tar.gz"
su ulyaoth -c "mv /home/ulyaoth/... |
9798d11a719c8fc69dd89fd683c6d06ed3a0a1f4 | 195 | #!/bin/bash
# Created at http://ellenandpaulsnewstartup.com - we're hiring!
script=$(basename $0)
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
$DIR/run-in-docker "$script" ${@} <&0
|
c5f97c76a5e0f6134e7b8226ead58a9e132a2edd | 4,270 | #!/usr/bin/bash
#-*- coding: utf-8-*-
# ==============================================================================
# title :parsage.sh #
# description :Parse log file . #
# author :Odka33 - Elie BEN AY... |
41c89713e593bf3048cd9997bcd4b4a9e27cb2f1 | 915 | #!/bin/bash
TARGET=$1
if [ ! -f "$TARGET" ]; then
echo "|id|cve|component|description|bugzilla link|jira link|comments|" > $TARGET
echo "|-" >> $TARGET
fi
mu find from:bugzilla and subject:CVE | awk -F '[ :\\]\\[]' '{print $13}' | sort | uniq | while read id; do
# Skip ids that already exist
EXISTS=`cat $TARG... |
41ee8bbd7fdf287bb262dc3522ccceac03d12e07 | 205 | #!/bin/bash
set -euo pipefail
jlpm && jlpm run build
python -m pip install -e .
jupyter labextension develop . --overwrite
jupyter server extension enable retrolab
jupyter serverextension enable retrolab
|
a90a897e757d444375d1f76ec0fd3dddf83f405d | 150 | #!/usr/bin/env bash
set -e
rm -rf generated_tb/sim/cov_work
cp -f ./covfile.txt generated_tb/sim/
./run -covfile ./covfile.txt +coverage_enable $@
|
e8fdbd5cf6d25905383e6c21761231e6eb2f3555 | 585 | #!/bin/bash
#SBATCH -N 1 # 1 node
#SBATCH -n 1 # 1 task per node
#SBATCH -c 4 # 4 cores per tasks, means 4 Matlab workers
#SBATCH -o matlab.out # stdout is redirected to that file
#SBATCH -e matlab.err # stderr is redirected to that file
#SBATCH -t 00:01:00 # time required, here it is 1 min
# sends mail when process... |
3ccfdff0364282eab51aa0feb7300a021dd1c5da | 179 | #!/usr/bin/env bash
# Rudimentary wallet tests.
python pyethrecover.py -p password123 -w test_wallets/ico.json &&
python pyethrecover.py -p password123 -w test_wallets/mew.json
|
852dce36dcabe9e2b25c1e4bf52b46faba137823 | 272 | PORT=3008
MONGO_DB= mongodb://doaa:1234@cluster0-shard-00-00.iushq.mongodb.net:27017,cluster0-shard-00-01.iushq.mongodb.net:27017,cluster0-shard-00-02.iushq.mongodb.net:27017/drinkDBB?ssl=true&replicaSet=atlas-8iarwt-shard-0&authSource=admin&retryWrites=true&w=majority
|
d57cc6056e39288fef838f3ac52484dd5fc97507 | 1,909 | #!/bin/bash
#
# setup-linux.sh
# Set up new Linux environment.
#
readonly DOTNET_SDK_VERSIONS=(3.1 5.0)
if (( EUID != 0 )); then
echo "This script must be run as root." 1>&2
exit 1
fi
# Upgrade system packages
apt update && apt upgrade
# Install common tools
apt install make
#
# Install 'Oh my Posh'
# htt... |
e51c956555d29b5048bddbafd4480cbd0e87fb02 | 382 | WAR_DIRECTORY=/home/brekol/workspaces/private/jbutils/jbutils-ui/target
WAR_DIRECTORY2=/home/brekol/workspaces/private/jbcity-courses/jbcity-courses-ui/target
docker run -d \
--name jbutils \
-p 8080:8080 \
-p 80:80 \
-v $WAR_DIRECTORY/jbutils.war:/usr/local/tomcat/webapps/jbutils.war \
-v $WAR_DIRECTORY2/jbcity-cours... |
3effd117faef6898d8ca4bdddc980f64610258b7 | 9,043 | #!/usr/bin/env bats
load 'libs/bats-support/load'
load 'libs/bats-assert/load'
load 'mock_helper'
setup() {
tmp_dot_home="$(mktemp -d)"
DOT_HOME="${tmp_dot_home}"
tmp_script_dir="$(mktemp -d)"
source "${BATS_TEST_DIRNAME}/../install"
}
teardown() {
rm -rf "${tmp_dot_home}"
rm -rf "${tmp_script_dir}"
}
... |
c4a6e4ff7bd0edaa2eba4d85e0477687b4fa6d68 | 291 | # Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
# read VERSION from .env
VERSION=$(grep VERSION .env | xargs)
IFS='=' read -ra VERSION <<< "$VERSION"
VERSION=${VERSION[1]}
if [[ -z "$VERSION" ]]; then
echo 'set VERSION variable properly on .env file';
fi |
2250d9d9d0941805bc77be153fad4980955a028a | 3,605 | #!/bin/bash
set -e
# check whether user had supplied -h or --help . If yes display help
if [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]]; then
echo "
Usage (order is important!):
strip_primers_parallel <fastq1> <fastq2> <rev/comp primers as fasta> <threads to use>
Resulting files will be output to a subdirec... |
8118769cb8b5faa5095b5c6eceb08a1db54b6166 | 108 | #!/usr/bin/env bash
cd $(dirname $0)
cd ../
docker-compose -p dev down
docker-compose -p image down
exit 0
|
8650af3a03e7aa5469b75df7ddf71992bfb099f4 | 3,826 | #!/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.00"
#--- Double Angle Sx != Sy != Sxy ---
RO=128
GD=0.3:-0.1:0.2
#
touch DA_Sx_Sy_Sxy_RING.txt
touch DA_Sx_Sy_Sxy_ACadaptive.txt
for (( ... |
2aa85509f37b8b221350ea4e9bdbe0f9ef2b9240 | 406 | #!/usr/bin/env bash
docker run -d -p 8080:8080 --link postgres_postgres-master_1:postgres_postgres-master_1 --link postgres_postgres-slave_1:postgres_postgres-slave_1 --link redis_docker-redis-sentinel1_1:redis_docker-redis-sentinel1_1 --link redis_docker-redis-sentinel2_1:redis_docker-redis-sentinel2_1 --link redis_do... |
bea4af540e6e443e66b4fb3dfb8e48deb39868c0 | 5,447 | # Settings for all shells
#Environment variables
export EDITOR=vim
export VISUAL=$EDITOR
export PAGER=less
export CVS_RSH=ssh
export LESS="-RM"
export NODE_PATH=/usr/local/lib/node_modules
export PATH=$HOME/bin:$HOME/bin/bin:/usr/local/share/npm/bin:/usr/local/share/python:/usr/local/sbin:/usr/local/bin:/usr/sbin:/us... |
f0277579bb0c19eeeec2305dda4387e9b0ba7db2 | 12,039 | #!/bin/bash
# server=build.palaso.org
# build_type=Chorus_Win32masterContinuous
# root_dir=..
# Auto-generated by https://github.com/chrisvire/BuildUpdate.
# Do not edit this file by hand!
cd "$(dirname "$0")"
# *** Functions ***
force=0
clean=0
while getopts fc opt; do
case $opt in
f) force=1 ;;
c) clean=1 ;;
esac
... |
0daaf1bfd0580ac08b6eb684e635f4d8b7fcdc00 | 423 | #!/usr/bin/env bash
if [ $# -lt 1 ]; then
echo "Usage: $0 <hostnames_file>"
exit 1
fi
hostnames="$1"
for u in $(cat "$hostnames"); do
lookup=$(nslookup $u 2>&1)
if ! [[ $(echo -n "$lookup" | grep -i "can't find") ]]; then
answer=$(echo -n "$lookup" | grep -A 999999 "answer" | grep "Address" | cu... |
b0d8d149ee218bf079d60dca62da5ebf322d109b | 723 | for ratio in 100 50 40 30 20 10 5 4 3 2 1
#for ratio in 1 2 # for testing code
do
mkdir shooting
cp WeatherandCrime_Data.shooting.ones.csv shooting
cp WeatherandCrime_Data.shooting.zeroes.csv shooting
./bag_and_bin.sh WeatherandCrime_Data.csv 10 1 $ratio
#./bag_and_bin.sh WeatherandCrime_Data.csv 1 1 ... |
eb9afbf29607d6b40407b00f2588ccc6e302aed9 | 354 | local arg="$*"
while (( $# ));do
if [[ -f "$1" ]]; then
local server=${(U)1:t:gs/./}
break
fi
shift
done
if [[ -z $server ]]; then
eval "gvim $arg"
else
if vim --serverlist|grep -w $server &>/dev/null;then
eval "gvim --servername $server --remote-silent $arg"
else
eval "gvim --servername $se... |
a8d43b61425a4603e57c911bb5bfcba2194befc9 | 1,273 | #!/bin/bash
## caculate read depth for a given bed file or bam file
if [ $# -lt 2 ]
then
echo "Usage: `basename $0` <bamFile or bedFile> <bedFile> [outDir]"
exit 65
fi
if [ $# -lt 3 ]
then
outDir='./'
else
outDir=$3
fi
if [[ $1 = *.bam ]]; then
a='-abam'
elif [[ $1 = *.bed ]]; then
a='-a'
fi
outB... |
d72ca73756697920cbef6a54036c61b950989d18 | 397 | #!/bin/bash
if [ -z "$1" ]; then
echo "Usage: mysql.rm <username>"
exit
fi
echo -n "Enter MySQL root pass:"
read MYSQL_PASS
mysql -uroot -p${MYSQL_PASS} -e "drop database ${1}" mysql
mysql -uroot -p${MYSQL_PASS} -e "delete from user where user='${1}'" mysql
mysql -uroot -p${MYSQL_PASS} -e "delete from db where ... |
e976d83c93f3738e5b78b0fb76f30c3c6a41f775 | 220 | #!/usr/bin/env bash
aws configure set aws_access_key_id AKIA3W3ZEDH6VT4MVK6E
aws configure set aws_secret_access_key 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
aws configure set default.region us-east-1
aws configure list
|
fa62c5e6501371b46166b056089a9df37595e587 | 1,199 | #!/usr/bin/env bash
import.require 'provision'
provision.postfix_base.init() {
provision.postfix_base.__init() {
import.useModule 'provision'
}
# Install required packasges
provision.postfix_base.require() {
debconf-set-selections <<<"postfix postfix/mailname string localhost"
... |
a32d8cf9d1b41ba423179305294b1e4fd6d382b6 | 4,012 | #!/bin/bash
# Author: Evan Manuella
: <<'ExplainForLoop'
Every iteration, var is going to be a new element of the command line arguments
First, we check if it is has the "*]" pattern, if it does
-we compile it (depending on whether it is *scm or *c)
-store the output as a file
-convert the source to ... |
884e183f5f80f18ef2aa31d72bece8a7abc8f7b4 | 2,601 | #!/bin/bash
# Copyright 2018 by the contributors
#
# 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 appl... |
6c39076416604e4d6d3adfdeae0ab4783ea09457 | 46 | REACT_APP_API_ENDPOINT = http://localhost:3600 |
da0b90c0b97a288c58db696a526eee4f3ef02341 | 368 | # pulls latest changes from git
git pull
# update submodules
git submodule update
# activates environment and updates to include new packages
source activate reactn
# kills all existing processes
ps -ef | grep "python" | awk '{print $2}' | xargs sudo kill
# start up app.py again
sudo /home/ubuntu/anaconda3/envs/re... |
69c1cff527efa9caca4383c59a3c9b0587bf87eb | 2,137 | ulimit -t 1
case $2 in p1) ./../../limit $1 '5 5 3 6 1 4' | diff outputP/O1 - && exit 0 ;;
p2) ./../../limit $1 '1 5 2 3 7 4 22 1 2 1 3 2 0 17 5 6' | diff outputP/O2 - && exit 0 ;;
p3) ./../../limit $1 '6 8 4 6 7 5 4 65 1 4' | diff outputP/O3 - && exit 0 ;;
p4) ./../../limit $1 '6 8 6 2 4 11 4 62 3' | diff outpu... |
4c27a54487de7de2eef8f389bd62a60533f2ba62 | 245 | #!/bin/bash
DB_DATABASE=$1
if [ "$DB_DATABASE" == "" ]; then
echo "usage $0 <databbase>"
exit
fi
sudo su - postgres -c "dropdb $DB_DATABASE" 2>/dev/null
sudo su - postgres -c "createdb $DB_DATABASE"
sudo su - postgres -c "psql --list" |
1ef6c9586a99bf12d7ea3341304b1b468e7ea8a3 | 1,919 | #!/bin/sh
### BEGIN INIT INFO
# Provides: domaininfo
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Domain info collector
# Description: Collects information about domains based on BIND lo... |
3fb5ac143de8377632852b9385ab12f8bdd4ed43 | 47 | #!/usr/bin/env bash
exec pharo launchpad "$@"
|
87d54facdead03994fa14a2d890c7288d41424c8 | 970 | #!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
outputPath=./blog/.vuepress/dist/
setGitGlobalConfig() {
git config --global user.name "liddhappy"
git config --global user.email "870886477@qq.com"
}
if [ -f "${outputPath}index.html" ];then
echo "index.html文件存在"
else
echo "index.html文件不存在"
# 生成静态文件
yarn build
fi
... |
04894d896419ba0f9d6225879ee853335eff296e | 21,351 | #!/bin/bash
# Silently install masternodes and insert privkeys
function setup_environment() {
# Set Variables
INSTALLDIR='/root/installtemp'
LOGFILE='/root/installtemp/silentinstall.log'
touch '/root/installtemp/checkdaemon.log'
# create root/installtemp if it doesn't exist
if [ ! -d $INSTALLDIR ]
then mkdir $INSTA... |
9f2934dd2b57538e68b40ddad683192522fdbbc4 | 167 | #!/bin/bash
#if [ ! -n "$1" ];then
# echo "i"
# exit -1
#fi
git remote rm origin
git remote add origin git@github.com:zhangxinming1991/mfc.git
git remote show origin
|
b6f0c48d3b40dd9e4554d83fe2ba5a0f03373012 | 10,281 | #!/bin/sh
die() {
printf "$1\n" >&2
exit 1
}
usage() {
cat <<EOF
usage: configure [options]
--prefix=PREFIX installation prefix [/usr]
--exec-prefix=EPREFIX installation prefix for executable files [PREFIX]
--bindir=DIR user executables [PREFIX/bin]
--datadir=DIR architecture-in... |
535e9d73fa20fa4c6f0a00778833d8579422e4f4 | 163 | PORT=5000
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_PASSWORD=postgres
POSTGRES_USER=postgres
PGDATA=/Users/flat-box/docker_data/db/postgres
POSTGRES_DB=flat_box |
e17da62c13048cda3daa43beabf9fe710d85017b | 3,316 | #!/bin/bash
#Read the config properties
. ./config.props
startTag=""
endTag=""
#outputFormat="md"
if [ $# -eq 0 ];
then
echo "USAGE: sh $0 tag1 tag2"
exit -1
elif [ -z "$1" ] || [ -z "$2" ]
then
echo "USAGE: sh $0 tag1 tag2"
exit -1
fi
startTag=$1
endTag=$2
#If the user provides the output format as... |
30a98df04b0ace0a845aba6ab0812948aab24435 | 1,388 | #!/bin/bash
if [[ ! -d ${SHYFT_STITCHED_PATH}/${SHYFT_MODE} ]]; then
mkdir -p ${SHYFT_STITCHED_PATH}/${SHYFT_MODE}
fi
toProcess=( )
payloads=( )
for CFG in $SHYFT_BASE/config/$SHYFT_MODE/stitchSystematicConfigs/*.cfg; do
COMMAND_TO_RUN="stitch.py ${SHYFT_REBIN_PATH}/${SHYFT_MODE} ${SHYFT_STITCHED_PATH}/${SHYFT_... |
36cb65ef6b4f7f12b1f3550b3a9cf81079420110 | 148 | #!/bin/bash
read -p "enter a number: " num
harNum=0
for ((i=1;i<=$num;i++))
do
harNum=`awk "BEGIN {print $harNum + (1/$i)}"`
done
echo $harNum
|
74278669431f94523ad452cd98beb20178450645 | 581 | #!/bin/bash
echo "" > results/block_design_timing_100.txt
3dDeconvolve -nodata 300 1 -polort 1 \
-num_stimts 3 \
-stim_times 1 block_times/blockt.100.A.txt 'BLOCK(100)' -stim_label 1 'A' \
-stim_times 2 block_times/blockt.100.B.txt 'BLOCK(100)' -stim_label 2 'B' \
-stim_times 3 block_times/blockt.100.C.txt 'BLOCK... |
8b537a95e28b2e1cde34af74e71f3b23307434ea | 151 | DB_HOST=db
DB_PORT=3306
DB_USER=teste
DB_PASSWORD=teste
DB_NAME=teste
DB_DRIVER=mysql
DB_CHARSET=utf8
DB_DOCTRINE_DRIVER=pdo_mysql
IN_DEVELOPMENT=true |
67a31c13f8a9b6458924f359719f1807ea94d350 | 954 | sf-get-cvs-modules() {
(CVSCMD="cvs -z3 -d:pserver:anonymous@\$ARG.cvs.sourceforge.net:/cvsroot/\$ARG co"
# CVSPASS="cvs -d:pserver:anonymous@\$ARG.cvs.sourceforge.net:/cvsroot/\$ARG login"
CVSPASS='echo "${GREP-grep} -q @$ARG.cvs.sourceforge.net ~/.cvspass 2>/dev/null || cat <<\\EOF >>~/.cvspass
\1 :pserver:anonymou... |
d2e9e6e1b58cfd5a48e0c5f95e8ee0244e396e09 | 291 | docker rmi winccoa-centos winccoa-base winccoa-java winccoa-mqtt winccoa-orcl
docker build winccoa-centos -t winccoa-centos
docker build winccoa-base -t winccoa-base
docker build winccoa-java -t winccoa-java
docker build winccoa-mqtt -t winccoa-mqtt
docker build winccoa-orcl -t winccoa-orcl |
e9f8adb31635608ca78d823d36205d7452949390 | 555 | #!/usr/bin/env bash
#set -x
export PS4='+ [`basename ${BASH_SOURCE[0]}`:$LINENO ${FUNCNAME[0]} \D{%F %T} $$ ] '
MYNAME="${0##*/}"
CURDIR=$(cd "$(dirname "$0")"; pwd)
chmod +x ${CURDIR}/bin/start
MYIP=`ifconfig | grep "inet addr:10\." | grep -oP "((\d+\.)){3}(\d+)" | head -n 1`
nohup ${CURDIR}/bin/start \
--mast... |
931f3bb2c04827fcbb16f8ddc9a01d544aa2f456 | 160 | #!/bin/sh
# tap twice to drag + hold
synclient TapButton1=1
# self-explanatory
synclient CircularScrolling=1
synclient RightEdge=1800
synclient BottomEdge=1350
|
71621205dff27c6e3ed424cd0473691e714de4ef | 605 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qt512/lib/
ldd ./bin/chatterino
make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
cp ./resources/icon.png ./appdir/chatterino.png
wget -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x li... |
a72e658cbc91d244abeac081e346fe17d7a43a66 | 48 | NODE_ENV=development
USERNAME=test
PASSWORD=1234 |
50710a4a4b2e7b13d732a783b2de4b8e188afbf3 | 80 | ok 1 - setup
ok 2 - merge c2 with a custom strategy
# passed all 2 test(s)
1..2
|
18d69867518c8a8f4aa4b234717b82d43d20f923 | 164 | #!/usr/bin/env bash
set -x
echo "Running $PWD/install.sh"
injected_dir=$1
# copy any needed files into the target build.
cp -rf ${injected_dir}/modules $JBOSS_HOME
|
78cd276e1070143eaec135ccddd3f2bd18d8a9bc | 130 | #!/bin/bash
#
# Resizes JPG images in current directory.
for i in *.jpg
do
convert $i -resize 250 $i > /tmp/jpg-resize.log
done |
c1933be97a38da4d5535ac0f254005842c0d171b | 150 | #!/bin/bash
set -e
cd ~/mesa
git tag -d build || true
git tag build `git-commit-working-tree`
num_jobs=`getconf _NPROCESSORS_ONLN`
make "-j$num_jobs"
|
e8cc910f63aebd6c406cce9ff901fac0dcf953e4 | 56 | #!/usr/bin/env bash
source env.sh
docker-compose stop
|
f496c0efecad68a30395fa19cdb88cc7c9e10063 | 238 | #!/bin/sh
[ -z "$1" ] && echo "file is needed;" && return
READELF=arm-none-linux-gnueabi-readelf
$READELF -v 2>/dev/null || READELF=arm-linux-gnueabihf-readelf
$READELF -a $1 | grep "Shared library:" | cut -f 2 -d '[' | cut -f 1 -d ']'
|
ea673c6fa2caee4ba3c142bd145d8a22271f960e | 127 | #!/bin/sh
# vim:set sts=2 sw=2 tw=0 et:
./configure \
--with-features=huge \
--enable-gui=no \
--enable-fail-if-missing
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.