blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
3871672feeb35025d4280e684a2d09cf5917a5b2 | 34 | #!/bin/bash
sudo ntpdate beware01 |
3c8fa745617a135dc843ee1f105f89f04f9797fb | 162 | #!/usr/bin/env bash
cd "$(dirname "$0")"
cd ../data
rm -rf ../build/*
zip -r ../build/build.itmz \
mapdata.xml style.xml preferences.plist \
info.json
|
ec2756769185124e5675a7509c65b989ac31a962 | 1,657 | sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install vim git openssh-server python3 python3-dev python3-pip build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y
sudo apt-get ... |
25451f6779dde207c70cc3b1474feeec4c1e3821 | 111 | #!/bin/sh
docker rm -f postgres springdemo
docker-compose -p springdemo up -d
docker logs springdemo --follow
|
a35d2ae863c71b0d5e0197a143ff808aace9aa1d | 196 | #!/bin/bash
if [ -z "$1" ];then
echo "you must supply a directory"
exit 1
fi
cd $1
ls */p*/*.tar.gz | xargs -I V bash -c 'a=V; d=`dirname $a`; fn=`basename $a`; tar -C $d -xvzf $a'
cd ..
|
6d2c41b6e95e859f9c803681009b0cde7dd59ba1 | 2,909 | #!/usr/bin/env bash
# Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... |
fa83cc44bba657b280977818e429a421c70b109b | 107 | #!/bin/sh
count=`awk -F'[ :]+' '{++S[$NF]} END {for (key in S) print key,S[key]}' /etc/passwd`
echo $count
|
65bfb3fb67a73bfe86a2a4dcc22729a97dfedaf3 | 229 | #!/bin/sh
export HELP2MAN=$(which true)
./configure --prefix=${PREFIX}
make -j${CPU_COUNT} ${VERBOSE_AT}
make check
make install
# We can remove this when we start using the new conda-build.
find $PREFIX -name '*.la' -delete
|
4bdabd0067c41401d52ffc9dced7d229dc491606 | 1,062 | ## $Id$
# Contributor: TheKit <nekit1000 at gmail.com>
# Contributor: Alexey Andreyev <aa13q@ya.ru>
# Maintainer: James Kittsmiller (AJSlye) <james@nulogicsystems.com>
pkgname=qt5-ngfd-git
_pkgname=libngf-qt-git
pkgver=0.7.0.r0.gac87734
pkgrel=1
pkgdesc="Qt-based client library for Non-Graphic Feedback daemon"
arch=('... |
aa238e621e1b2e0db0d379ccd1152352c4d46c36 | 4,294 | #!/bin/bash
function iniciar
{
export MAX_CPU=50
export MAX_MEM=75
export MAX_PROCS=10
export MAX_SOCKS=3
export MAX_ARCHS=4
local limitacionesInit="$(cat ~/.shield/MODULES_CONFIG/limitaciones.config)"
eval "${limitacionesInit}"
###
local listaConsumoCPU=$(ps h u t | awk '{print $3}... |
a8ced050b86a75aace58f835307837e5c2b16e4f | 1,220 | #!/usr/bin/env sh
send_notification() {
volume=$(pamixer --get-volume)
if [ "${volume}" -gt 70 ]; then icon=notification-audio-volume-high
elif [ "${volume}" -gt 40 ]; then icon=notification-audio-volume-medium
elif [ "${volume}" -gt 0 ]; then icon=notification-audio-volume-low
else icon=notificati... |
9acd6469ce537bb1dc8d4e371810fe9f9853cf78 | 1,217 | #!/bin/bash
#output
OUTPUT=""
# Determine directory prefixes -
# different in git bash vs ubuntu
if [ -d "/mnt/c" ]
then
PREFIX_C="/mnt/c"
PREFIX_D="/mnt/d"
else
PREFIX_C="/c"
PREFIX_D="/d"
fi
# Interactive prompt for directory selection
PS3="Please select a directory: "
options=("C" "D" "Quit")
se... |
e31f14ec9681083081fe25a2dbd4d8a870086b2a | 89 | #!/bin/sh -e
for f in "$@"; do
echo "embedmd: checking $f"
embedmd -d "$f"
done
|
638a362b24439e55a4777565c51862c1dca99c6f | 433 | SKILL_NAME=$1
NOW=$(date +%s)
ZIP_FILE="$SKILL_NAME-$NOW.zip"
if [ ! -f ./$ZIP_FILE ]; then
echo "$ZIP_FILE not found. Creating file..."
chmod -R +rw $SKILL_NAME
cd $SKILL_NAME
zip -r "../$ZIP_FILE" * -x "*.DS_Store"
echo "$ZIP_FILE created."
cd ..
aws lambda update-function-code --function-name $SKILL_... |
5094aaf88cd4de504e2cc6730cf3704e5330f515 | 567 | # Description: Tool to configure and sync configurations to servers
# URL: git://bitreich.org/drist
# Maintainer: poq <jbloomfield at live dot com>
# Depends on:
name=drist
version=git-c4d5a55
sversion=c4d5a55
release=1
source=()
gitsource=git://bitreich.org/drist
build() {
cd $PKGMK_SOURCE_DIR
if cd $nam... |
ee4839655c618ffc49691d8db94a8fd71ec6b436 | 82 | #!/bin/sh
touch /home/sandfish8/chorechopper.chgworks.com/current/tmp/restart.txt |
454e3b4e47b27d617fce5c23c6abca44ea93ad09 | 79 | #!/bin/sh -e
mkdir -p "$1/usr/lib/firmware"
cp -R ./* "$1/usr/lib/firmware"
|
ab3f3eda66ee2c7a98d42bb9b57e4ce52d9a212b | 782 | #!/bin/bash
find ~ -maxdepth 1 -type f
#Output:
#/home/surya/.bash_logout
#/home/surya/.bashrc
#/home/surya/.ICEauthority
#/home/surya/.esd_auth
#/home/surya/.bash_history
#/home/surya/.bash_profile.swo
#/home/surya/.bash_profile
#/home/surya/.lesshst
#/home/surya/.viminfo
# Used find command in home directory set... |
254359f2569711c32ad82c76d7a0c4afa37ce5c4 | 1,408 | # POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Antonio Rojas <arojas@archlinux,org>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=konqueror
pkgver=18.12.2
pkgrel=1
pkgdesc="KDE File Manager & Web Browser"
arch=(x86_64 powerpc64le)
url="https://konqueror.org/"
license=(LGPL)
de... |
0823d5ae3821756c41418bae1b4100d78194f102 | 464 | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
. /libfs.sh
. /libmariadb.sh
. /libos.sh
# ensure MariaDB env var settings are valid
mysql_valid_settings
# ensure MariaDB is stopped when this script ends.
trap "mysql_stop" EXIT
if am_i_root; then
ensure_user_exists "$DB_DAEMON_USER" "... |
5f2ac6815329a9fc1f2c1c650b51038487fa00f6 | 128 | #!/bin/bash
echo "sudo rm /dev/fifo"
sudo rm /dev/fifo
echo "sudo ./worker reader mkfifo fifo"
sudo ./worker reader mkfifo fifo
|
9dfba9f7a6ab3c7535596d642907dbdcad629d62 | 531 | #!/bin/bash
if [ -z "$1" ]
then
echo "Usage: $0 <multiline puzzle file>"
exit 1
fi
printf "Testing $(basename $1)\n"
mkdir -p tmp/$(basename $1).puzzles
split -d -e -l 1 $1 tmp/$(basename $1).puzzles/
mkdir -p out/$(basename $1).solns/
for file in tmp/$(basename $1).puzzles/*; do
printf "\rTesting Puzzl... |
f80c2252ebd91eeacdad1c7942e8290e36025e44 | 568 | source /usr/local/sklib_gcc4.8.5/skofl_16c/env.sh
card_dir=/disk01/usr4/goldsack/sds_io/card_files
skds=/disk01/usr4/goldsack/r26400_skdetsim_sletrg_timetbabugfix_noruncut_qe_4_3/skdetsim.sh
skds=/disk01/usr4/goldsack/skdetsim/skdetsim.sh
if [ -z "$out_file" ]
then
echo "OUT FILE NOT SET"
# out_file=$card_di... |
1a37626e984c81a569d9fe4cce3f0d8cfc59f29d | 140 | DEBUG=on
SECRET_KEY='02i)wa**ispbn@(mf3$i!d=p7#4c517r#4co#_r=!x0ar-bp4r'
DATABASE_URL=sqlite:///db.sqlite3
ALLOWED_HOSTS=127.0.0.1,localhost |
05092cdf59cc5e182a93e977dc230cd06fadd8a3 | 892 | MONGO_DATABASE_VENUES=venues
MONGO_USER_VENUES=u1
MONGO_HOST_VENUES=127.0.0.1
MONGO_PASSWORD_VENUES=somepw
MONGO_ROOT_USER_VENUES=admin
MONGO_ROOT_PASSWORD_VENUES=adminpw
MONGO_DSN_VENUES=mongodb://u1:somepw@127.0.0.1:27019/venues
MONGO_PORT_VENUES=27019
MICROSERVICE_PORT_VENUES=8889
MONGO_DATABASE_BANDS=bands
MONGO_U... |
84345e99c0da67a36e2a67bad3423b684c6a3d7c | 255 | #!/bin/bash
pushd `dirname $0`
BASE_DIR=`pwd`
popd
BUILD_CMD=$BASE_DIR/build.sh
DEPLOY_CMD=$BASE_DIR/deploy.sh
bash $BUILD_CMD tomcat5
bash $DEPLOY_CMD 5 on
bash $BUILD_CMD tomcat6
bash $DEPLOY_CMD 6 on
bash $BUILD_CMD tomcat7
bash $DEPLOY_CMD 7 on
|
d6d3fe080f6ee298a6605ec385dae03e8391f0df | 67 | #!/bin/sh
exec 2>&1
exec multilog t s99999 n8 /var/log/mqtt-influx
|
066d5973959244fc405a2e801c713600cb4d7e9b | 287 | REACT_APP_API_SECRET=08de570fb3fd112599852ea8f15fc3ff
REACT_APP_API_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwOGRlNTcwZmIzZmQxMTI1OTk4NTJlYThmMTVmYzNmZiIsInN1YiI6IjVmNjRmN2I4ZTMzZjgzMDAzY2Y2NjMwZiIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.Icy53uv-jhckpzNopIwIgl2-j5llbB56L-WNjPXB3Eo
|
a222ee63c383540353724279398d3d27c3c8bca2 | 3,037 | #
# \`.|\..----...-'` `-._.-'_.-'`
# / ' ` , __.--'
# )/' _/ \ `-_, /
# `-'" `"\_ ,_.-;_.-\_ ', fsc/as
# _.-'_./ {_.' ; /
# {_.-``-' {_/
#
# https://github.com/stringlytyped/dotfiles
#
# BASHRC
# Configures non-login interactive shells
#
# Paths
# -----... |
b05027b151f2eeb8ee0faf9ac193c52870acf1f4 | 1,184 | #!/bin/bash
PROJECTS=$HOME/Projects
WORK=$PROJECTS/Work
TAB1_TITLE="NWYC Backend"
TAB1_SESSION="nwyc"
TAB1_WINDOWS=( $WORK/NWYC-Backend )
TAB2_TITLE="Hillday Backend"
TAB2_SESSION="hillday"
TAB2_WINDOWS=( $WORK/Hillday-Backend )
TAB3_TITLE="Constituent Voice 2"
TAB3_SESSION="cv2"
TAB3_WINDOWS=( $WORK/ConstituentVoic... |
58c810496df7447a912e802b7cdcbbfd9e684fae | 4,848 | if [ $# -ne 6 ]
then
echo "Usage: `basename $0` peak1.bed peak2.bed read1.bed read2.bed bp_shift_1 bp_shift_2"
exit
fi
echo "StepI: clean input"
sed 's/\s$//g' $1 | awk 'BEGIN {OFS="\t"}
{if ($1~/chr/ && $1 !="chrM" && $1 !~/random/ && $3>$2 && $2>0 && $3>0)
print $1,$2,$3>"peak1.bed";
else
... |
20bb642f4c20a9cdea7bd9e37b78578131447db6 | 394 | #!/usr/bin/env bash
# The output of TwoPass_Mean.py is 'key mean'
tmp=$(python electricityVariance_TwoPass_Mean.py Example\ Data/Electricity.csv)
# extract the mean
mean=$(echo $tmp | cut -d' ' -f2)
# Pass the mean as a parameter to the reducers in TwoPass_Variance.py
python electricityVariance_TwoPass_Variance.py E... |
c797de3a3b9f17a4b02e4fd26f70ddd72b5e0adf | 404 | #!/bin/bash
if [ "$ROOT_DIR" = "" ]; then
exit "Must set ROOT_DIR!"
else
. $ROOT_DIR/src/bin/include.sh
fi
TMPFILE=$TMP_DIR/checkcrontab.$$.tmp
MACHINE=`echo $HOSTNAME | cut -d \. -f 1-2`
crontab -l | diff -u - $ROOT_DIR/cron/$MACHINE.cron > $TMPFILE
RESULT=$?
if [ -s $TMPFILE ]
then
echo "crontab not up ... |
ecdda157e2c1e77fd2f8a907240dad5f9f80c483 | 150 | #! /bin/sh
echo runonce.sh
/usr/sbin/kadmin.local -q "ktadd -k /var/keytabs/http.keytab HTTP/www.example.com"
chown apache /var/keytabs/http.keytab
|
21d2a4d785346bec65022af16a5380017ddbd068 | 105 | #!/bin/bash
bundle install --path=vendor/bundle
bin/rake db:create
bin/rake db:migrate
bin/rake db:seed
|
9a236c8948df76b2d1b715728ec15dcb42829253 | 2,564 | #!/bin/bash
# note, this is only part of the ldap client install script. These are the relevent sed lines.
apt-get update
export DEBIAN_FRONTEND=noninteractive
apt -y install libnss-ldap libpam-ldap ldap-utils
unset DEBIAN_FRONTEND
sed -i 's/passwd: compat systemd/passwd: compat systemd ldap/g' /etc/... |
5b3137adf5c8f8ff0cd77e64d1f62e89020d3b93 | 2,934 | if [ "$#" -ne 1 ]; then
echo "usage: $0 <app_name>";
exit 1;
fi
function scaffold() {
local name=$1
echo "creating directory $name"
mkdir $name
cd $name
mkdir handlers structs
touch README.md
touch $name"_test.go"
# main
echo "package main
import (
\"fmt\"
\"github... |
5215ddde0bda42a7f79f366f19b20ee0b39a4837 | 418 | TITLE=node:node-boilerplate
SESSION_SECRET=node-boilerplate
LOG_LEVEL=INFO
PORT=3360
NODE_OPTIONS="--unhandled-rejections=strict"
#DEBUG="node-boilerplate:*"
POSTGRES_PASSWORD=node-boilerplate
CUSTOM_POSTGRES_DB=node-boilerplate
CUSTOM_POSTGRES_USER=node-boilerplate
DB_NAME=node-boilerplate
DB_USER=node-boilerplate
D... |
392837710a41297c4e64856d5545a48009ddd29a | 320 | #!/bin/sh
HOST='omvsadm@ec33013a.vmec.svl.ibm.com'
HOME='/Users/asif'
REMOTE_BASH='/usr/lpp/rsusr/ported/bin/bash'
ssh-copy-id -i $HOME/.ssh/id_rsa $HOST
echo "put $HOME/Downloads/zoau-1.0.3.pax /u/omvsadm" | sftp $HOST
echo "put $HOME/Downloads/pyz.66.pax.Z /u/omvsadm/" | sftp $HOST
scp $HOME/env $HOST:/u/omvsadm/
|
e5f96cc284452f34096b0850cc7a7e5052cebc16 | 105 | DB_USER=postgres
DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=14 - RepoProvas
DB_PASSWORD=123456
PORT=3000
|
8d79ffabaf50ba14d787feadfb6fae5a9ceffb11 | 99 | #!/bin/bash
systemctl stop poshc2.service >/dev/null
systemctl disable poshc2.service >/dev/null
|
c2bb693937e6ef6df7bcfcd75482dd462569f4d8 | 17 | echo "I am v341"
|
dc49e5ff0fd531a5a276828e2e1bc329d0820c63 | 407 | #!/usr/bin/env sh
#
# Toogle between input sources for BenQ GW2765HT monitor
# TODO rename file
model="BenQ GW2765"
dp="x0f"
hdmi="x11"
current_source=$(sudo ddcutil getvcp 0x60 --model "${model}" --terse | cut -d' ' -f4)
if [[ $current_source == $dp ]]; then
new_source=$hdmi
elif [[ $current_source == $hdmi ]]... |
48556e61c942efad70c769f33bbea2a224a45d3a | 1,226 | #!/bin/bash
set -e
save_logs() {
echo "save logs"
pushd $WORKSPACE_DIR/diego-lite
vagrant ssh -c "sudo tar -czf /vagrant/vagrant_upstart_logs.tgz /var/log/upstart"
popd
mv diego-lite/vagrant_upstart_logs.tgz .
}
cleanup_vagrant() {
echo "cleaning up vagrant"
pushd $WORKSPACE_DIR/dieg... |
9d0946695248d76efdfc4f45526d6622191a76d5 | 1,136 | pkg_name=yarn
pkg_origin=core
pkg_version=0.22.0
pkg_source="https://yarnpkg.com/downloads/$pkg_version/yarn-v$pkg_version.tar.gz"
pkg_shasum=e295042279b644f2bc3ea3407a2b2fb417a200d35590b0ec535422d21cf19a09
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="Yarn is a package manager for your ... |
6e734ada391026f177c705a5c44a7df23b61f53a | 540 |
python run.py --graph_size 50 --run_name f0_adap --experiment adaptive --adaptive_parameter tsp50_f0_adap.json --baseline rollout
python run.py --graph_size 50 --run_name f1_adap --experiment adaptive --adaptive_parameter tsp50_f1_adap.json --baseline rollout
python run.py --graph_size 50 --run_name f0_fixed --ex... |
3b45027e52092895b33db4bc04e0bbbe56544772 | 521 | #!/usr/bin/env bash
runners="SEQ OMP PTHREADS MPI_SEQ_SYNC MPI_SEQ_ASYNC"
line="# nb_procs"
for runner in ${runners}
do
for size in 4096 8192 16384 32768
do
line="${line} ${runner}_${size}"
done
done
echo "${line}" > data/benchALL.dat
for nbProcs in 1 2 4 8 16
do
line="${nbProcs} "
for r... |
65a9e2a6f4a13ca1ff2ad4eb0c84485d947492ab | 570 | #!/bin/sh
echo "Copy 3rd framework start."
if [ -d "../ios-3rd-vendor/jrmf/AlipaySDK" ]; then
rm -rf ./framework/AlipaySDK
cp -rf ../ios-3rd-vendor/jrmf/AlipaySDK ./framework/
fi
if [ -d "../ios-3rd-vendor/jrmf/JrmfIMLib" ]; then
rm -rf ./framework/JrmfIMLib
cp -rf ../ios-3rd-vendor/jrmf/JrmfIMLib ./framework/
fi
if [... |
a912daffc06e0145bb255eaa0e71e4bc8bc18b4a | 1,367 | # Maintainer: Moritz Maxeiner <moritz@ucworks.org>
# Contributor: Aaron Lindsay <aaron@aclindsay.com>
pkgname=libsearpc
pkgver=1.2.2
_seafilever=3.0.4
pkgrel=6
pkgdesc="A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System."
arch=('i686' 'x86_64' 'armv6h' ... |
06c8ff9c5b946c206cf9d20dcb1412e66ae5084f | 58 | adb kill-server
adb start-server
react-native run-android
|
f62d703af3028dd9d47e502d0fd9da79190871d9 | 59 | #!/bin/bash
for i in `seq 0 9`;
do
./r$i &
done
wait
|
3f1ddf51fca71dbe3846e343e9957d38bb8b81d9 | 4,816 | #!/bin/sh
# Utility functions
pecho() { printf %s\\n "$*"; }
log() { pecho "$@"; }
error() { log "ERROR: $@" >&2; }
fatal() { error "$@"; exit 1; }
try() { "$@" || fatal "'$@' failed"; }
# Run a command as another user.
# Usage: run_as <user> <command> [<args>...]
run_as() {
run_as_user="$1"
shift || fatal "m... |
82307cf7520f2cc1ddcfc870a0f4a37462dbfaff | 146 | #!/bin/bash
# file: roscore.sh
source ~/envr/ip_local.sh
source /opt/ros/kinetic/setup.bash
source ~/eros_ws_robocup/install/setup.bash
roscore
|
eae88bf22ca087c3c44ab5c0ab286690c468ad96 | 1,095 | #!/bin/bash -e
TMP_DIR="$(mktemp -d)"
DOWNLOAD_URL_PREFIX="https://github.com/wszqkzqk/deepin-wine-ubuntu/blob/master"
echo "开始下载deepin-wine安装包, 请稍后..."
wget -P "${TMP_DIR}" --content-disposition -c -T10 --tries=10 -q --show-progress "${DOWNLOAD_URL_PREFIX}"/{1.1udis86_1.72-2_i386.deb,1.2deepin-fonts-wine_2.18-12_all... |
a69df33436da89a80b07683094d3409febbf58a0 | 409 | #!/bin/sh
# WebIOPi PiStore launch script
# Force install
#VERSION=`python -c "import webiopi; print(webiopi.VERSION)"`
#if [ "$VERSION" != "0.5.3" ]; then
# echo "Update required..."
# chmod 777 setup.sh
# sudo ./setup.sh
#fi
# Start WebIOPi service
sudo /etc/init.d/webiopi start
# Launch the browser
midori -c `pwd... |
224b284fbc2f1c2041fdf762ee14e91bdc934777 | 40 | #!/bin/bash
gh install leozide/leocad
|
7d95ff58b7a75ff57777ee5f93c4ee9a0d7c1c1e | 273 | docker rm -f neat-template-web
docker rmi -f neat-template-web
docker build \
-t neat-template-web \
-f infra/Dockerfile .
docker run \
-dit \
-e HOST=neattech.io \
-e BACKEND_URL=api.neattech.io \
-p 3333:80 \
--name=neat-template-web \
neat-template-web |
dffdd1edb8b2ed8783b7056028e69d8614cbfef8 | 615 | bash runAll.sh FakeQCDHT100 ZvvHbb13TeV prep >& log/logPrepFakeQCDHT100 &
bash runAll.sh FakeQCDHT200 ZvvHbb13TeV prep >& log/logPrepFakeQCDHT200 &
bash runAll.sh FakeQCDHT300 ZvvHbb13TeV prep >& log/logPrepFakeQCDHT300 &
bash runAll.sh FakeQCDHT500 ZvvHbb13TeV prep >& log/logPrepFakeQCDHT500 &
bash runAll.sh F... |
fe59b5ed2d30bb1f65e672069cf8f95a598a3895 | 1,874 | #!/bin/bash
work="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
results_dir=$work/results
graphs_dir=$work/graphs
logs_dir=$work/logs
bin_dir=$work/bin
mkdir $logs_dir &> /dev/null
mkdir $results_dir &> /dev/null
mkdir $graphs_dir &> /dev/null
tag="Dacapo"
max_heap="4g"
function runSet {
... |
1222fd52a6f3f3eb5666928136d9908d57cff69a | 65 | REACT_APP_API_BASE=https://obscure-sierra-79316.herokuapp.com/api |
b1c9e8c4c7fa476aaf899d881727bf07dfc70fab | 119 | #!/bin/sh
echo "{\"apiURL\": \"http://$API_URL:$API_PORT\"}" > /usr/share/nginx/html/config.json
nginx -g 'daemon off;' |
3163d71584aecac9558780649482f8eebc49cdf1 | 715 | #!/bin/bash
SESSION='piano'
SF='/usr/local/share/samples/sf_GMbank.sf2'
OPTS=()
# OPTS=(-R yes)
if ! aconnect -i | grep "client 20: 'CH345'"; then
echo "Midi cable not connected?"
exit 1
fi
if tmux has -t "${SESSION}"; then
echo "attaching session...${SESSION}"
if [[ -z $TMUX ]]; then
tmux attach -t "${SESSION... |
e233a39240553d601fab6e69ac132ef3fc640cd4 | 2,501 | #!/bin/bash
CURRENT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
TARGET=$CURRENT/../target
NODENAME=localhost.localdomain
EXTERNAL_CA=$CURRENT/../pki-mock/ca.crt
# kubelet
sudo cp $TARGET/kubernetes/pki/kubelet-client-$NODENAME.crt /etc/kubernetes/pki/kubelet-client.crt
sudo cp $TARGET/kubernet... |
388d6160186583f30241a20ddb1366c24d9f6239 | 489 | Number=40000
j=0
for i in `seq 20001 $Number`
do
mosquitto_sub -t testSubFixTopic -h 192.168.10.8 -p 1883 -q $j -i subCID$i -k 600 -u mqttclient -P mqttclient &
j=`expr $j + 1`
if [ $j -ge 3 ]; then
j=0
fi
done
sleep 20
while true
do
for i in `seq 20001 $Number`
... |
613279306a0e5a3598a1b75d55db9c0e1352d4eb | 140 | #!/bin/bash
workDir=`dirname $1`
cd ${workDir} && cd ../
prefix="`pwd`"
nginxBin=${prefix}/sbin/nginx
nginxConf=${prefix}/conf/nginx.conf
|
7157b30f790e73c74bc9b1a79233807b9e5daebd | 224 | POSTGRES_HOSTNAME=192.168.178.43
POSTGRES_USER=vapor
POSTGRES_PORT=5432
POSTGRES_PASSWORD=vapor
POSTGRES_DB=vapor
HASH_KEY=Oek4YdyUFmKmq3cH7nUWmOrV1JISackQbuWf+OooD3Y=
CIPHER_KEY=Oek4YdyUFmKmq3cH7nUWmOrV1JISackQbuWf+OooD3Y=
|
1c0b8b5dc8f174ab4a6a3d5cd42affe33e88e5b2 | 140 | cd test
rm -rf fixtures/no-git-available
echo "==================== no-git-available ===================="
mkdir fixtures/no-git-available
|
adc7a97ea140d02d0fc70a748aa69274de526666 | 568 | #! /usr/bin/bash
#-----------------------------------------------------------------------------
# # Crop
CurProc=crop
echo Processing ${CurProc}...
OUTDIR=$OUTROOT/$NAME/${CurProc}
if [ ! -d $OUTDIR ];
then
mkdir -p $OUTDIR;
fi
./image -input ${INNAME} -${CurProc} -1 -1 150 150 -output ${OUTDIR}/${NAME}_${CurProc}_-1_... |
9fb8e1b4fc8324064ef5ee7b1dd7249adc73e486 | 72 | #!/bin/sh
#
# Start/stop udhcpc
#
/sbin/udhcpc -i wlan0 -x lease:86400
|
97f062ce6be6f7699d5f3be1991bb679873b9539 | 472 | #!/usr/bin/env bash
if [ -z "$1" ]
then
num_parrallel=1
else
num_parrallel=$1
fi
if [ -z "$2" ]
then
tf_file="../benchmarks/linear_regression.py"
else
tf_file=$2
fi
>&2 echo "Running $num_parrallel applications in parallel..."
for i in `seq 1 $num_parrallel`;
do
>&2 echo "Starting application $i."
F... |
9121d50bb4daa0f4bdec53d70b18b1424f0cd2b3 | 405 | #cat ../../gen_data/ | python cxq_added_user_feature.py ../../gen_data/cxq_added_user_feature_Before11.pkl 1 (1:train; 2:test)
cat ../../gen_data/ijcai2016_koubei_trainBefore11 | python cxq_added_user_feature.py ../../gen_data/cxq_added_user_feature_Before11.pkl 1
cat ../../gen_data/ijcai2016_koubei_trainAfter7 |... |
ef97f64c8ed88289297633f6b99b58871bcad6a5 | 334 | # Titobi's environment variables, extracted from:
# mongodb+srv://new_user:<password>@cluster0.emafz.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
# copied from MongoDB Atlas
DB_HOST=cluster0.emafz.mongodb.net
DB_USERNAME=new_user
DB_PASSWORD=newuser1
# NOTE: you can name your database whatever you want
DB_N... |
c952243985f8372251f47de922bdfef62697688c | 99 | #!/bin/bash
tmp=`ps -ef | grep voice| grep -v grep | awk '{print $2}'`
echo ${tmp}
kill -9 ${tmp}
|
86a79cca12743bbb8f42140e900f197b197e0fd3 | 392 | #!/bin/bash
conda init bash
source ~/.bashrc
conda activate cidia19
conda install pytorch==1.3.0 torchvision cudatoolkit=10.0 -c pytorch
conda install -c caffe2 caffe
conda install dicom2nifti -c conda-forge
conda install pydicom
conda install nibabel
conda install tensorflow==2.0.0
conda install tensorflow-gpu==2.0.... |
0d493fa86f98903bfa9c2c7ae6951bf621072ae3 | 8,540 | #!/bin/bash
#
# Pipelight installer for Debian Wheezy (amd64)
#
# Copyright (C) 2013 Jari Jokinen
# URL: https://github.com/jarijokinen/debian-pipelight
pipelight_version="master"
wine_version="1.7.0"
installer_tmp_path="/tmp/pipelight-installer"
dependencies=(
wget
ia32-libs
ia32-libs-i386
lib32asound2
li... |
6ccc1557a743e8bbdbc55650980c6b9c2d4b7852 | 1,551 | #!/bin/bash -e
export LC_ALL=C
export PS4='$ '
export DEBIAN_FRONTEND=noninteractive
if [ ! -d ".git" ]; then
echo 'ERROR: must be run from the root of the repository. e.g.'
echo './tests/test.sh'
exit 1
fi
if [ -z "${GITHUB_TOKEN}" ]; then
echo 'WARNING: Tests may fail without GITHUB_TOKEN environment variabl... |
9a4d7081d46bfca022cc90fe4951d3c105cffff5 | 193 | #!/bin/sh
cd /var/www/restx
java -cp "/var/www/restx/target/restx/classes:/var/www/restx/target/dependency/*" -Drestx.app.package=rxinvoice -Drestx.mode=prod $VM_OPTIONS rxinvoice.AppServer
|
7b3477161b42ad2f7d562b3289ac27e02a5a4512 | 608 | #!/bin/bash
# skip if build is triggered by pull request
if [ $TRAVIS_PULL_REQUEST == "true" ]; then
echo "this is PR, exiting"
exit 0
fi
# enable error reporting to the console
set -e
# cleanup "_site"
rm -rf _site
mkdir _site
# clone remote repo to "_site"
git clone https://${GH_TOKEN}@github.com/pigfly/pigfl... |
9b1fa988895540f5afa2e24ef17c3cb75acd1442 | 79 | #flutter clean
flutter build ios --release --target=lib/main_official_prod.dart |
1dedf802e66466c862e504faa2d94dc5a16402b8 | 280 | #!/bin/bash
# see https://stackoverflow.com/questions/5143795/how-can-i-check-in-a-bash-script-if-my-local-git-repository-has-changes
if [ $(git status --porcelain | wc -l) -eq "0" ]; then
echo " 🟢 Git repo is clean."
else
echo " 🔴 Git repo dirty. Quit."
exit 1
fi
|
1c5111436537f7390a58923851e4c1caa03996d8 | 80 | #!/bin/bash
var1=10
var2=20
var3=`expr $var2 / $var1`
echo "the result is $var3" |
bdd92a056a9710ed20c6a5ab114c4560f927aecc | 166 | #!/bin/bash
touch "opendj-http-access"
docker-compose up -d
echo -e "URL: http://localhost:4200 \nPassword: as defined in LDAP_ADMIN_PASSWORD in docker-compose.yml" |
79eb02697e831386e356dbd077ee9860c617cadc | 82 | git pull
git submodule sync --recursive
git submodule update --recursive --init
|
aac649b640eb2c9f1111a783645ce9e130413d46 | 179 | sudo cp ./kvs-webrtc.service /etc/systemd/system/kvs-webrtc.service
sudo systemctl daemon-reload
sudo systemctl enable kvs-webrtc.service
sudo systemctl start kvs-webrtc.service
|
2d3749db9b89075f85801cf0abb64986ca29aa73 | 1,397 | # Install MySQL
echo 'Executing sudo apt-get update...'
sudo apt-get update
echo 'Done.'
echo 'Installing mysql...'
sudo apt-get install --upgrade -y mysql-server
echo 'Done.'
echo 'Installing mysqldb for python3...'
sudo apt-get install --upgrade -y python3-mysqldb
echo 'Done.'
# Install apache2
echo 'Installing apac... |
4ae5ec6a24c4b93b00dc9e167cfffb9e2ac10fe0 | 142 | PORT=7000
MONGODB_URI=mongodb://localhost/billmaster
ACCESS_TOKEN_SECRET=require('crypto').randomBytes(64).toString('hex') and copy and paste
|
85beb320b6be28918c6473fd30e57dc6e7130a4b | 5,914 | #compdef _diraction-dispatch # -*- mode: sh -*-
# completion for the dispatcher command
# words: 1:function 2:directory 3:pattern
local diract=$words[2]
local dirdir=`eval echo $diract`
local subcommand=$words[3]
# Update Pwd to make subcompleter to consider we are in the target directory
local OLDPWD=$PWD
local ... |
4802d45c3a473500f6a431d0c8832571bbd71103 | 195 | Test disk speed with `dd`
Change your `hostname` on systems using `systemd`
Preventing a user from logging into the system
Basic service management with `systemd`
Using `dd` To Create Disk Images |
882afd7524546d46bc4b4d78760954a77446378a | 940 | #!/bin/bash
# Show current time of timezones I care about
# called on click from dwm_time
# no prompt
PS1=
print_center(){
local x
local y
text="$*"
x=$(( ($(tput cols) - ${#text}) / 2))
echo -ne "\E[6n";read -sdR y; y=$(echo -ne "${y#*[}" | cut -d';' -f1)
echo -ne "\033[${y};${x}f$*"
}
#echo... |
d8783ab2f7d32961bde363656645bbaa929a4460 | 73 | SECRET_KEY=wa-aoutgktbz7^@tvihoir_g17eqoc__%ts^+$e=zu+mkg7*z=
DEBUG=False |
77cf2f4b8e5b09b302ab44a4675e174f8903400d | 200 | #!/usr/bin/env bash
TCP_EXIT_CODE=1
while [ "$TCP_EXIT_CODE" != 0 ] ; do nc -vz -w 1 localhost 1001 &> /dev/null && TCP_EXIT_CODE=${?} || TCP_EXIT_CODE=${?} ; echo "failing"; sleep 1; done; echo "ok"
|
970973b31f335b2f71e327f7a16a6b26687dae4e | 914 | #!/bin/bash
echo " installing apache from apt repository"
sudo apt-get install apache2
cho " installing hostapd from apt repository"
sudo apt-get install hostapd
echo ""
echo ""
echo ""
echo -e "[ \033[1m\033[96mdude\033[m ] Install wlan mode switching script into systemctl's realms -------------"
echo ""
sudo ... |
3f0efc1735143bd5ef2dfee727a9511137f85f1d | 152 | FLASK_APP=./run
FLASK_ENV=development
# Pon dentro de las comillas una clave secreta que solo tu sabrás
SECRET_KEY=""
OAUTHLIB_INSECURE_TRANSPORT=true
|
5dbc765fbe23e9a998ebdd1c42a3fda8fbf2fa32 | 221 | #!/usr/bin/env sh
for i in /scripts/pre-init.d/*sh
do
if [ -e "${i}" ]; then
echo "[i] pre-init.d - processing $i"
. "${i}"
fi
done
echo "[i] run.sh - Waiting for cron"
cron && tail -f /var/log/rsnapshot.log
|
7b5475040112374b7333bc5a04f7325c63de25bd | 108 | #!/bin/bash
stty -F $1 230400 cs8 raw -echo -echoe -echok
websocat -b -n ws-listen:0.0.0.0:3030 - < $1 > $1 |
61b6fd8978b1833e8d99a7665958165058633236 | 398 | #!/bin/bash
case $1 in
clean)
rm Servertest.jar Servertest.class
;;
build)
javac Servertest.java
;;
package)
jar -cfe Servertest.jar Servertest Servertest.class
;;
run)
java Servertest
;;
*)
rm Servertest.jar Servertest.class
javac Servertest.java
jar -cfe Servertest.jar Servertest Servertest.class
java Serverte... |
48dfc621f83ed67500184e8cceec203fd840584e | 188 | # bash scripts/s3/create-bucket.sh meu-bucket
BUCKET_NAME=$1
aws \
--endpoint-url=http://localhost:4566 s3 mb s3://$BUCKET_NAME
aws \
--endpoint-url=http://localhost:4566 s3 ls
|
ff06484f8c088ede5f9f1d9722480a52c36f06a0 | 3,138 | #!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# 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 ... |
ff15a9ef910115ebf5bc6dee41091124fc7a654c | 103 | ok 1 - setup
ok 2 - apply git diff with -p2
ok 3 - apply with too large -p
# passed all 3 test(s)
1..3
|
16db33effe659c9dfceabc786dcd0eb522e192dd | 99 | #!/usr/bin/env bash
PATH="/opt/java-jdk/bin:$PATH" BASH_ENV="$BASH_ENV" "${0/-jdk/-openjdk}" "$@"
|
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 1,551