blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
ba60982cc44ff93e84b3f02e5438810a2c93b0e2 | 137 | #!/usr/bin/env bash
cd servicediscovery
mvn package spring-boot:repackage
cd ..
cd api-gateway
mvn package spring-boot:repackage
cd ..
|
8a2a5d4b22e10addf142b7d0ff895ef3dd0ef489 | 1,431 | #!/bin/bash
. makeraid.conf || exit 1
MAXPART=$(gdisk -l $SOURCEDISK | tail -n 1 | awk '{print $1}')
echo "Source disk has $MAXPART partitions"
echo -n "Loading kernel module for raid1..."
modprobe md_mod
modprobe raid1
echo " done."
echo "Erzeuge /dev/md0 aus ${DESTDISK}1..."
yes|mdadm --create /dev/md0 --level=1... |
34c7b1f6501e0db012cc758589b91477347fe292 | 501 | #!/bin/bash
BIN=$1
OUTDIR=$2
TIMEOUT=$3
INDIR=$4
cp -r $INDIR/dbstore ./
echo '#!/bin/bash' >run.sh
echo "" >>run.sh
echo "echo y | $BIN -ri dbstore/" >>run.sh
chmod 700 run.sh
{ timeout -k 9 ${TIMEOUT}s ./run.sh; } &>$OUTDIR/o5
echo "$?" >>$OUTDIR/o5
test -d dbstore
echo "$?" >>$OUTDIR/o5
test -f dbstore/file1.lo... |
50d3001cae835f29da60f363b0a091d11cdff7cf | 1,345 | #!/bin/bash
## Remote backup script. Requires duplicity.
. /etc/backups/backup.config
dest_local_path=${destination##*://}
backend=${destination%://*}
for src in "${sources[@]}"
do
full_dest="$dest_local_path"/"$src"
mkdir -p "$full_dest"
if [[ "$encrypt" == 1 ]]
then
duplicity --gpg-options="--homedir... |
be38eb6140bbaa13fb13900ea42eeafe1ba565d7 | 253 | #!/usr/bin/env bash
# Usage: g resolve
# Summary: resolves all the dependencies in a golangdeps file
# Help: g resolve
set -e
source $_G_ROOT/share/g/meta.sh
setGoPath
while read line; do
echo "Resolving $line"
g get $line
done < golangdeps
|
ad0c7058821cc6d50f3496f339e0acdc2544d8e7 | 196 | #!/usr/bin/env bash
docker build -t <dockerHubId>/my_flask:1.0 .
docker push <dockerHubId>/my_flask:1.0
docker run -d -p 9090:9090 --name app --rm <dockerHubId>/my_flask:1.0
curl localhost:9090 |
856980d19e4a941dd0c3868758de377747dbac4f | 601 | #!/usr/bin/env bash
# sets up your web servers for the deployment of web_static
if ! which nginex;
then
apt update && apt-get install -y nginx
fi
mkdir -p /data/web_static/shared/
mkdir -p /data/web_static/releases/test/
rm -rf /data/web_static/current
echo "test Nginx configuration" > /data/web_static/releases/tes... |
aac4a062a1cd666143b26cf4948a382243170fe8 | 1,277 | #!/bin/sh
# Dependencies: volume.sh pacmd pactl sh xmenu
select_volume () {
menu=" 100% volume.sh --set 100
90% pademelon-tools volume --set 90
80% pademelon-tools volume --set 80
70% pademelon-tools volume --set 70
60% pademelon-tools volume --set 60
50% pademelon-tools volum... |
1f4d766c0ad9818c5cf8ea1ad3753501cee06100 | 1,865 | #!/bin/bash
# File management
input="syslog.log"
error_output="error_message.csv"
user_output="user_statistic.csv"
# 1(a)
error_regex="(?<=ERROR )(.*)"
info_regex="(?<=INFO )(.*)"
# 1(b)
error_list=$(grep -oP "${error_regex}(?=\ )" "$input")
# echo "$error_list"
# echo -n "Jumlah ERROR: "
# echo "$error_list" | wc ... |
0a668707e6453284184d0ae32931f6a2edfa34bd | 270 | time java -DentityExpansionLimit=2147480000 -DtotalEntitySizeLimit=2147480000 -Djdk.xml.totalEntitySizeLimit=2147480000 -jar Java/indexer.jar $1 6000 final_postings
python Python/concatenate_names.py
python Python/second.py
mv tert.py Python/
mv tert_names.py Python/
|
072719e2ece68431f50cd5e663161325ba542ba4 | 961 | # !/bin/bash
CUR_PATH="${PWD}"
VIM_PATH="vim"
BUNDLE_PATH="${VIM_PATH}/bundle"
VUNDLE_GIT="https://github.com/VundleVim/Vundle.vim.git"
# vim tools installation
INSTALL_VIM_PATH="${CUR_PATH}/${VIM_PATH}"
echo "Vim path: " ${INSTALL_VIM_PATH}
if [[ ! -d ${INSTALL_VIM_PATH} ]]; then
\mkdir -pv ${INSTALL_VIM_PATH}
fi... |
9173b8272ad1da90c4f42b6df2226c98791dafb6 | 1,931 | #!/bin/sh
source /etc/profile
source ${AZKABAN_HOME}/conf/env.conf
source ${base_path}/util.sh
value1=$1
value2=$2
if [ $value2 == 23 ]; then
day=`date -d "1 day $value1" +%Y-%m-%d`
hour=`date -d "1 hour $value2" +"%H"`
else
day=$value1
hour=`date -d "1 hour $value2" +"%H"`
fi
echo ${day} ${hour}
p... |
43ed297c2c04435817fa441db9ef1f4b5a803443 | 3,671 |
# ------------------------------------------------------------------------
# -- DISCLAIMER:
# -- This script is provided for educational purposes only. It is NOT
# -- supported by Oracle World Wide Technical Support.
# -- The script has been tested and appears to work as intended.
# -- You should always r... |
b3aa36b3afffce772f7a5c9574bff92a9335f500 | 315 | #!/usr/bin/env bash
cd ..
pwd
#压缩
project=fische
echo '删除原有压缩包……'
rm ./${project}.tar.gz
echo '开始压缩新包'
tar zcvf ${project}.tar.gz ./${project}
echo '压缩结束,开始上传新压缩包'
ali_scp push ${project}.tar.gz
#解压:tar zxvf pageCenter.tar.gz
echo '上传成功'
|
a0d011df136e57710b7559add924be92300f1a90 | 2,835 | #!/bin/bash
# Copyright (c) 2020 Tomasz Herman
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, ... |
f58d3c60b202163d135ff61f35b4db3cd39a0db1 | 408 | EXTENSION_DIR=extension/
BUILD_DIR=build/
ZIP_FILE_NAME=extension.zip
ZIP_FILE_PATH=${BUILD_DIR}${ZIP_FILE_NAME}
WEBSTORE_CRX_FILE_NAME=extension.webstore.crx
WEBSTORE_CRX_FILE_PATH=${BUILD_DIR}${WEBSTORE_CRX_FILE_NAME}
OFFLINE_CRX_FILE_NAME=extension.offline.crx
OFFLINE_CRX_FILE_PATH=${BUILD_DIR}${OFFLINE_CRX_FILE_... |
0c33493f70a680acecfa3338b218d7fbffafc866 | 88 | #!/bin/bash
cd `git rev-parse --show-toplevel`/src/controller-service
node src/main.js
|
14ef68d84249adc3c588e0ee8e3485d1c773cdb0 | 710 | #!/bin/bash
CD=$(dirname $BASH_SOURCE)
cd $CD
CD=$(pwd)
cd $CD/docker
#docker-compose up --build
docker build ./ -t steamvr_openhmd/build
docker run -ti --rm \
-e USER=$USER \
-v $HOME:/home/$USER \
-v $CD:/tmp/dev/ \
-v /etc/passwd:/etc/passwd \
--name build \
steamvr_openhmd/build:latest "$@"
... |
276e0c81d7c4ccb2e3d1574119a433a7cb1797a3 | 3,469 | #!/bin/bash
# Build a ddev-dbserver image for variety of mariadb/mysql
# and per architecture, optionally push
# By default loads to local docker
set -eu -o pipefail
OS=$(uname -s)
if [ ${OS} = "Darwin" ]; then
if ! command -v brew >/dev/null; then
echo "On macOS, homebrew is required to get gnu-getopt" && exi... |
7da94756afb750579921993784a4f0438358c7e7 | 158 | API_URL=https://aa-sandbox.setu.co
ANUMATI_URL=https://anumati.setu.co
CLIENT_API_KEY=1b0a81b0-a783-45be-b99e-8f7f352420ff
RAHASYA_URL=https://rahasya.setu.co |
e55fa40785d11975f49fc7333c5bfa72dc92708e | 510 | # vi movement in iTerm
set -o vi
# _bindings
bindkey -M viins "^w" beginning-of-line
bindkey -M viins "^e" end-of-line
bindkey -M vicmd "^[" vi-insert
bindkey -sM viins "^v" ./
bindkey '^N' forward-word
bindkey '^B' backward-word
bindkey "^F" history-incremental-search-backward
my-backward-delete-word() {
local ... |
fbb778dc2b39a8b77c9278a16d7e920c87a92886 | 282 | #d!b/in/sh
export JUICE_CONFIG=file:::`pwd`/mocha-cli-config.json
echo export JUICE_CONFIG=${JUICE_CONFIG}
#
# If files are specified, run just those tests
#
if [ "$#" != 0 ] ; then
echo mocha $*
mocha $*
else
echo mocha mocha-cli-tests
mocha mocha-cli-tests
fi
|
14ddb5b110a601dbfa8017588cda7c60a153ac8b | 9,407 | #!/bin/bash
echo "###Validate MASKED VDB###"
set -e
DEIP="virtualizationengine"
USER="delphix_admin"
PASS="Landshark-12"
function JOB_WAIT {
JOBID=${1}
until [[ "$(curl -s "http://${DEIP}/resources/json/delphix/job/${JOBID}" \
-b ~/cookies.txt -H "Content-Type: application/json" \
| jq -r .resu... |
db9fd0c782d9cb2fdbe7c1d46d8b8345c88520aa | 39 | #!/bin/sh
set -e
python contact_dir.py
|
33f41c9e3610e90912dc03707f564f265d451181 | 76 | #!/bin/bash
set -x
chown www-data:www-data /www-data/sagemath-org/www* -R
|
207bc72a69feb66c4f873822209e5c77943a8aaa | 2,893 | wget https://github.com/demo2099/jd_jscripts/raw/master/jd_bean_change.js
wget https://github.com/demo2099/jd_jscripts/raw/master/jd_syj.js
wget https://github.com/demo2099/jd_jscripts/raw/master/jd_blueCoin.js
wget https://github.com/demo2099/jd_jscripts/raw/master/jd_bookshop.js
wget https://github.com/demo2099/jd_js... |
7d2a540241818ad92bb15f3d381bd4e61f444631 | 441 | #!/usr/bin/env bash
for i in `seq 1 20`
do
python3 single_test.py alice-in-wonderland-cipher.txt
python3 multi_test.py alice-in-wonderland-cipher.txt
python3 single_test.py russell-cipher.txt
python3 multi_test.py russell-cipher.txt
python3 single_test.py os-sub-cipher.txt
python3 multi_test.py... |
2c8b4311b16455f8ec9ef2896e6699d4b63515f6 | 4,637 | bold=$(tput bold)
normal=$(tput sgr0)
echo ""
echo "${bold}Set ubuntu mirror to fi${normal}"
echo ""
sudo sed -i 's/us.archive/fi.archive/' /etc/apt/sources.list
echo ""
echo "${bold}Install nodejs 12 repo${normal}"
echo ""
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
##
echo ""
sudo echo "${bold}... |
b8ab28bf27cf971fba87af82c36c9aea4493790e | 1,344 | #!/usr/bin/env bash
# Copyright (c) 2019 SUSE LLC. All rights reserved.
#
# 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... |
1842dfdf6c740bccb59c156036e7afe8914bd57f | 2,752 | #!/usr/bin/env bash
welcome(){
echo ":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::"
echo "::: THIS SCRIPT WILL INSTALL EVERYTHING TO MAKE THIS MACHINE READY TO USE MBEAN REQUESTER"
echo "::: PLEASE WAIT IF YOU THINK THE PROGRAM IS SLOW, IT IS WORKING IN THE BACKGROUND :)"... |
337b31ffe3aba199b9c1c234238822a2a88e1f0d | 1,183 | #!/bin/bash
# Exit build script on first failure.
set -e
# Exit on unset variable.
set -u
readonly DB_PATH="/app/data/store.db"
env_vars_to_flags() {
set +u
local flags=""
if [[ ! -z "${SITE_TITLE}" ]]; then
flags+=" -title \"${SITE_TITLE}\""
fi
if [[ ! -z "${SITE_SUBTITLE}" ]]; then
flags+=" -... |
03d046ab232c475621df80ca3907b582ff2b6c36 | 706 | #!/usr/bin/env bash
root_dir="$(dirname "$(realpath "$0")")"
source "$root_dir"/preflight_checks.sh
new_tag="$1"
if [[ -z $new_tag ]]; then
echo "missing required new tag argument" >&2
exit 1
fi
echo "Updating pod utilities (excluding clonerefs): to $new_tag"
for i in initupload sidecar entrypoint; do
find $r... |
c709184159b58fac929f59f6e2524ecac94bb332 | 101 | #!/bin/bash
ab -n 32000 -c 150 -T 'application/json' -p post.json -v 1 http://127.0.0.1:3000/register |
2e975426e461e1ed116631808bd807c83ebbe871 | 191 | pkg install fish
cp -f data/fsh/bash.bashrc /data/data/com.termux/files/usr/etc/bash.bashrc
echo
echo " Successfully Updated your Termux Shell , Open A new Session To See The Update !"
echo
|
31626a8ec62f55088a18a35a7c5955b3e45dd02a | 30,861 | #!bash
#
# Copyright The Helm 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 or agreed to in... |
02e28f297ef2ec03ec780db9b5c973ccf58bf9b6 | 1,443 | #!/sbin/sh
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the Common
# Development and Distribution License, Version 1.0 only (the
# "License"). You may not use this file except in compliance with
# the License.
#
# A copy of the Common Development and Distribution License... |
422d9ea82b69dd8aaf7d29187d138d3f0278b7a8 | 760 | #!/usr/bin/env sh
#author:winecat
yum -y install patch make gcc gcc-c++ flex bison fontconfig.x86_64 fontconfig-devel.x86_64 libXpm*
yum -y install libtool.x86_64 libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64
yum -y install libjpeg-devel.x86_64 libpng-devel.x86_64 libattr.x86_64
yum -y install freetype-devel.x86_6... |
ccf5d684c4509e9b611daffff601210d3eb06e22 | 123 | #!/bin/sh /etc/rc.common
START=99
start() {
hwf_info_upload.sh &
}
stop() {
killall hwf_info_upload.sh &> /dev/null
}
|
e443cf4ae2c64093b655884eb6275839540bbcef | 988 | #!/bin/bash
. shared_vars.sh
EXPERIMENT_NAME="synthetic2"
OUTPUT_DATA_FOLDER="${COMMIT_HASH}"_"${EXPERIMENT_NAME}"
cd ..
echo "Reproduce Fig. 18 in two steps:"
echo " 1) run the underlying experiment"
echo " 2) plot the experiment data"
test -d "${OUTPUT_PATH}/${OUTPUT_DATA_FOLDER}" && { echo "--------"; echo W... |
0d626d4f19788fb62eef4dcbbe936f58ca66598a | 145 | # Alias
alias g='git'
alias ll='ls -lah'
alias la='ls -A'
alias l='ls -CF'
alias rm='rm -i'
alias paste="curl -F 'sprunge=<-' http://sprunge.us"
|
7335b6f5132980b33cf3036b23c15f8a2a5487a2 | 18 | echo "I am v6765"
|
02610f2d14e612fa94746b6d6d710e9547e31cb1 | 2,429 | #!/bin/bash
# Handle self referencing, sourcing etc.
if [[ $0 != $BASH_SOURCE ]]; then
export CMD=$BASH_SOURCE
else
export CMD=$0
fi
# Ensure a consistent working directory so relative paths work.
pushd `dirname $CMD` > /dev/null
BASE=`pwd -P`
popd > /dev/null
ORG="$1"
NAME="$2"
PROVIDER="$3"
VERSION="$4"
if [ ... |
baea964ab6110b4f87d0464e87d5556ab2b99fff | 239 | #!/bin/bash
echo "Download Jmeter ..."
wget https://downloads.apache.org//jmeter/binaries/apache-jmeter-5.2.1.zip
echo "Unzip ..."
unzip apache-jmeter-5.2.1.zip
echo "Clear zip file ..."
rm apache-jmeter-5.2.1.zip
echo "Completed !!!"
|
ee65e295d155b20d14660154f4d233f7c649df22 | 333 | #!/bin/bash
FILES=`ls -1 | sort -r | head -3 ##runs ls command and limit col to one##
##sort is builtin in linux -r reverse sort order##head -3 takes first 3results
COUNT=1
for FILE in $FILES
do
echo "File #$COUNT = $FILE"
((COUNT++))
done
exit 0
###display files in current directory in descending alphabetic ... |
1908f2121a007162f2b46e5d2e1e1bdd9ee36a03 | 196 | #This script will check the execution of previously executed command
#!/bin/sh
if [ "$?" -ne "0" ]; then
echo "Sorry, Something goes wrong earlier"
else
echo "Fine, Earlier command OK "
fi |
34be10bf46275d7fe895664232d0fefd94f05528 | 72 | #!/bin/bash
sudo pacman -S $(cat $1 | tr '\n' ' ') --noconfirm --needed |
ba738547e0d796d50f7e92bb5b6ed4523a8c1e18 | 193 | #Author: Nicol Anokhin and Jeniffer Ordonez
#date: 5-04-2020
#This launcher script runs on reboot the python script.
cd /
cd /home/rover/Desktop/TX2_Nodes
sudo python3 cambracket.py
|
609bc61ac9d7c44eda86cd66e997c7e084d165f8 | 1,845 | #!/bin/bash
# Build NGINX and modules on Heroku.
# This program is designed to run in a web dyno provided by Heroku.
# We would like to build an NGINX binary for the builpack on the
# exact machine in which the binary will run.
# Our motivation for running in a web dyno is that we need a way to
# download the binary on... |
05ce2e9710d7575a364b8ccca6a4a8fb927405ce | 143 | #!/bin/bash
rsync -Cravzp pi@192.168.1.5:/home/pi/Projects/raspberry-pi_timelapse/images/ /home/andre/Projects/raspberry-pi_timelapse/images/
|
0500b4626adb63cb66a12a55c963f405102ad4aa | 143 | #!/usr/bin/env bash
# Script to display "Holberton School" 10 times
i=0
until [ $i -gt 9 ]
do
echo "Holberton School"
let i++
done
|
0b01c0a4161865248f0f51c3ab19387d31ccc127 | 89 | #!/bin/sh
# enable linux emulation
kldload linux64
sysctl compat.linux.osrelease=4.3.0
|
1fe79cdcb4e8cf7602aaa17b817d140195856bb7 | 3,029 | #!/bin/bash
echo "******************************************************************" >> /home/level11/README.txt;
echo "* Welcome to PolyBandit. This is a polymorphic clone of *" >> /home/level11/README.txt;
echo "* Overthewire.org's Bandit exercise. The object is to figure out *" >> /home/level11/README.txt... |
c3e0b5c45dcc6e70157d89d6a32dee52e83aaf49 | 95 | #!/usr/bin/env bash
./gradlew run > log_app_out.txt 2> log_app_err.txt &
echo $! > .saved_pid
|
460a6df193dcd57cbaf4c3098c5ca459e53416c7 | 3,229 | #!/bin/bash
#########################################################################
# Purpose: Exports GNRS results
#
# Usage: ./gnrs_export.sh
#
# Authors: Brad Boyle (bboyle@email.arizona.edu)
# Date created: 12 June 2017
#########################################################################
: <<'COMMENT_BLOC... |
400a658a44638bd41cc963cbebe8d9d4d1ac1990 | 1,393 | echo 'Install xfce4 + TigerVNC-Server + Firefox + Flash on Centos 6.2'
echo 'Install EPEL & RPMI & YUM-Priorities'
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum -y install yum-priorities nano
yum -y update
e... |
58fe113f064a6dd371cf93d23df1f80318278a37 | 1,490 | #!/bin/bash
VESTIGE_RPM_VERSION=$(cat src/vestige-desktop-python3.spec | grep "Version:" | sed 's/Version:[ \t]*//g')
rm -r target
mkdir -p target/vestige-desktop-python3-$VESTIGE_RPM_VERSION
cp src/Makefile target/vestige-desktop-python3-$VESTIGE_RPM_VERSION/
cp src/vestige-desktop-python3.spec target/
cp -r ../stan... |
4795082f8424403fb6b6ecd35e090c1e19d99c6f | 2,300 | #!/usr/bin/env bash
# functions
function ccd() {
local default_repo="$HOME/github/dev/"
local rootdir=$(git rev-parse --show-toplevel 2> /dev/null || echo "$default_repo")
cd "$rootdir" || echo "ccd command from ~/.bashrc failed"
}
kcontext() {
kubectl config view --minify
}
ghgo() {
~/go/src/github.... |
f5579c1377ced1348e40e3ad4d56c9daeaedd5c3 | 32 | #!/bin/bash
service tomcat start |
a2770bb2dbd4ec0d3b736a6b95f99c9a7f3afb70 | 895 | #!/bin/bash
numWorkers=8
cp FullPoisson2D.harpertown.cfg FullPoisson2D.cfg
./runFullPoisson2D.sh > runFullPoisson2D.train-harpertown.run-peryn.out
cp FullPoisson2D.harpertown.cfg Poisson2D.cfg
./Poisson2D &> /dev/null
./runPoisson2D.sh > runPoisson2D.train-harpertown.run-peryn.out
cp FullPoisson2D.barcelona.cfg Ful... |
82140f2d300542fdaec74f0241c28dd37e1b4afe | 508 | export PATH=$PATH:/usr/local/bin
export PATH="$PATH:$HOME/bin"
#export NVM_DIR=$HOME/.nvm
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PATH=$PATH:/usr/local/Cellar/llvm/6.0.0/bin
export PATH=$PATH:/usr/local/include/eigen3
#if [[ -s ~/.nvm/nvm.sh ]] ; then source ~... |
b5ca9226a89545a6954e7481ba1e310cb40b8724 | 305 | #!/bin/sh
[ -z "$1" ] && host="localhost:8545" || host="$1";
[ -z "$2" ] && fname="tcpdump-`date +%s`.lst" || fname="$2";
port=${host#*:*}
host=${host%%:*}
filter="host ${host}"
[ -z "$port" ] || filter="${filter} and port ${port}";
sudo tcpdump -s0 -U -n -w - -G 30 -W 1 -i en0 "${filter}" > ${fname}
|
bc67c659f92277743b7c9b92a250ce8fe9f0c887 | 282 | #!/usr/bin/env bash
set -e
echo
echo "IS CATEGORY - CATEGORY"
echo "======================"
echo
source test/_controls.sh
category=$(category)
echo "Category:"
echo $category
echo
psql message_store -U message_store -x -c "SELECT is_category('$category');"
echo "= = ="
echo
|
a1751dfad200b3786f2d5672a7fa6968f966953d | 1,001 | #!/bin/sh
set -e
# if [ $(id -u) != 0 ]; then
# echo "Please run this as root or with sudo"
# exit 1
# fi
for gem in graphics rubysdl rsdl; do
gem uninstall -ax $gem || true
done
case `uname` in
Darwin)
echo "I'm on OSX. Not using sudo"
SUDO=
brew install sdl --universal
brew install sdl_m... |
ffde88084e69e0d2f1afc97f08cf2cc8ad9376b5 | 97 | #!/bin/sh
CONKY=/usr/bin/conky
for f in $HOME/.conky/*.conf;
do
$CONKY -c $f
sleep 2s
done
|
506d5e54b0a2cd491d59c85f88a712f4c2c1e2ac | 235 | #!/usr/bin/env bash
# 备1
docker run -d -h redis-replica1 --net express --name redis-replica1 wangxuangege/node_redis-replica
# 备2
docker run -d -h redis-replica2 --net express --name redis-replica2 wangxuangege/node_redis-replica |
c321e0809d1d931753fca2187ed8394f4f8957c4 | 54 | #!/bin/bash
d=/1zadaniye
mkdir -p "$d"
chmod 777 "$d"
|
ae2885c5b7b9d79c1a1deeac4c2e4a744fecf56a | 199 | # virtualenvwapper (http://virtualenvwrapper.readthedocs.io/en/latest/install.html)
export WORKON_HOME=~HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source ~/anaconda3/bin/virtualenvwrapper.sh
|
1270f30514e37eaee094b17e874cb205f9d31955 | 570 | #!/bin/bash
set -ex
# Update tools so that --licenses works
yes | sdkmanager tools
# Install SDK license so Android Gradle plugin can install deps.
mkdir "$ANDROID_HOME/licenses" || true
yes | sdkmanager --licenses
# Install the system image
sdkmanager "system-images;android-18;default;armeabi-v7a"
# Create and st... |
916ee596185db2e5ec76068691a85141def20f0f | 188 | #!/bin/sh
locust -f profile-stickyapp_rust.py --host http://stickyapp-rust.10.0.2.15.sslip.io --headless --print-stats --only-summary --csv stickyapp_rust --loglevel DEBUG --u 1 -r 1 -t 10 |
033fdb3b07e42c54722688b86a14ecf626c6ed4f | 24 | grep -wi "redpill" "$@"
|
0fa47d5f47723a4a926ba23dce70da6faa84556d | 3,458 | #!/usr/bin/env bash
##
# Copyright 2019 Adobe. All rights reserved.
# This file is licensed to you 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
#
# Unle... |
595d51f81cba997437a1f31e9c412fdf6df350a3 | 1,650 | #!/bin/bash
# This program will print a left arrow to the screen
# skip Function
skip() {
for i in $(seq $1);
do
printf " "
done
}
# printStars Function
printStars() {
for i in $(seq $1);
do
printf "*"
done
# Allow the option for printing the tail
if [ ! -z $2 ];
th... |
715955f4777e9f31387e929113be9f8028ae5744 | 171 | #!/bin/bash
var1="Hello"
var2="World"
result="$var1 $var2"
var3="Bob"
var4="Hussain"
var3+=$var4
#echo $result
#echo $var3
str="Hello World"
sub=${str:6:5}
echo $sub |
4a09eb3919d6d1aedad864ebdb03f820a4a9635c | 909 | #!/bin/sh
LONG_BIT=`getconf LONG_BIT`
if [ "$LONG_BIT" == "32" ];then
USR_LIB_PATH="/usr/lib";
else
USR_LIB_PATH="/usr/lib64";
fi
QUICKQUEST_PROG_DIR=$(dirname $0);
export LD_LIBRARY_PATH=$QUICKQUEST_PROG_DIR/jnotify-linux$LONG_BIT/:$QUICKQUEST_PROG_DIR/qtjambi-linux$LONG_BIT/:$LD_LIBRARY_PATH;
JAVA_CLASSPATH="$QUI... |
452360bf344c333bfb115f7b331a09169459473c | 199 | . ./setup.sh
myapplecli tx wasm store ./contract.wasm --from $S1 --gas-prices="0.025cosmos" --gas="auto" --gas-adjustment="1.2" --keyring-backend test --chain-id test
myapplecli query wasm list-code
|
2877963623cd26686989778de04c6b6e10d946f7 | 912 | #!/usr/bin/env bash
# Usage: ./deploy.sh [host] [identity_file]
# use the commandline argument 1 or if it's not there, use the ip specified here
host="${1:-root@96.126.110.107}"
identity_file="$2"
# removes old host from known_hosts in case host key changes when new VM instantiates
# parameter expansion removes an... |
593b1eaa2c5396b71a05eb600faf44485039e7fd | 803 | #!/bin/sh
# 仮想のディスクイメージを作成
hdiutil create -o /tmp/Big\ Sur -size 16G -volname Big\ Sur -layout SPUD -fs HFS+J -type SPARSE
# 作成したディスクイメージをマウント
hdiutil attach /tmp/Big\ Sur.sparseimage -noverify -mountpoint /Volumes/Big\ Sur
# createinstallmediaを使って、ディスクイメージを作成
sudo $HOME/macOS\ Big\ Sur.app/Contents/Resources/createins... |
4bfcb799d5b1d829fe4c28a8b1ff3aaae93ed00d | 2,487 | #!/bin/bash
#
# -------------------------------------------------------------------------
# {NAME} plugin for GLPI
# Copyright (C) {YEAR} by the {NAME} Development Team.
# -------------------------------------------------------------------------
#
# MIT License
#
# Permission is hereby granted, free of charge, to any p... |
fe2984eb8d7850ad6b7d28d8cbf4cca6de7ff65a | 54 | #!/usr/bin/env sh
roscd
source setup.bash
exec "$@"
|
1033e547de43065763e3edb056b9af5148fd52a1 | 566 | #!/usr/bin/env bash
if [ "$EUID" -ne 0 ]
then echo "[91mPlease run as root[0m"
exit
fi
eval_echo() {
to_run=$1
echo "[94m"
echo $to_run
echo "[0m"
eval $to_run
}
if [ -x "$(command -v git)" ]; then
echo "[Git installed[0m" ;
else
eval_echo "sudo apt update"
eval_echo "sudo a... |
338418a05027ee5a35761473aa717e9d8bc7276b | 2,357 | #!/bin/zsh
# Automatically download and install the latest Google Chrome
# https://support.google.com/chrome/a/answer/9915669?hl=en
# Variables
appName="Google Chrome.app"
appPath="/Applications/${appName}"
appProcessName="Google Chrome"
downloadUrl="https://dl.google.com/chrome/mac/stable"
#downloadUrl="https://dl.... |
c11134ed56149766a3ffd9664db9f2792aee526e | 2,892 | #!/bin/bash
# This script is intended to setup a fresh desktop with ROS and
# with dependencies on homebrew or linuxbrew depending on the OS being used
# @author Andrew Hundt <ATHundt@gmail.com>
echo ""
echo "###############################################################################################"
echo "# XONS... |
27894c9403cacf6f542bb279fec9a09cf7a53aea | 150 | #!/bin/sh
du -a ~/doc/bks | grep ".pdf\|.epub" | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}' | dmenu -b -i -l 10 | xargs -r -I % $READER %
|
1030298aeedb89db2d09b67ff481548ab77bdc26 | 249 | #!/bin/bash
exec 2>&1
test_spin_usage() {
local output="$(spin --bogus 2>&1 || true)"
if ! echo "$output" | grep -q 'use: spin'; then
fail "expected to find 'use: spin' in usage output"
fi
}
# TODO more tests here
. shunit2
|
99677f0538bb10a484862a03ca7e948c83a38278 | 30 | virsh vol-delete $1 --pool $2
|
e8692feabe061b0694fd28727509d618e318e252 | 1,104 | #!/usr/bin/env 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 applicab... |
352c06f18232fdfd7782cc63b4dd5b28714b3a96 | 1,251 | #!/bin/sh
#cd /home/jeff/$2/enlightenment-$2 && make clean
#./configure
cp -R /home/jeff/$2/enlightenment-$2 /media/sda5/Bodhi/e17_debs/$1/enlightenment-$1
cd /media/sda5/Bodhi/e17_debs/$1/enlightenment-$1/src/modules
rm Makefile.in
rm Makefile_wizard.am
#ls wizard
rm -rf wizard
#cp -a /media/sda5/Bodhi/patches/wizar... |
04933fd086bdb7a48a9db89345fe5768ce246302 | 1,805 | function __zcompile() # {{{
{
local _src=${1}
local _zwc=${_src}.zwc
if [[ ! -f ${_zwc} ]] || [[ ${_src} -nt ${_zwc} ]]; then
zcompile "${_src}"
fi
} # }}}
__zcompile "${ZDOTDIR}/.zshrc"
__zcompile "${ZDOTDIR}/rc.d/_asdf.zsh" && source "${ZDOTDIR}/rc.d/_asdf.zsh"
if [[ ${WSL_DISTRO_NAME} != '' ]] && [[ ... |
def944cef2586cfa1a1136de3d8a9e79f7bc69ce | 203 | #!/bin/bash
a=5000
b=1223
echo "Before swapping a is" $a
echo "Before swapping b is" $b
a=$[$a + $b]
b=$[$a - $b]
a=$[$a - $b]
echo ""
echo "Before swapping a is" $a
echo "Before swapping b is" $b
|
35b4fcb1266399a77584cfbf4bf3386c943f0cf5 | 95 | #!/bin/bash
#!/bin/bash
for i in $(find $1/ -newermt "$2" ! -newermt "$3"); do
echo $i
done
|
2c9a4ffd431c6d0d9a37fef31bb35e9ce89e7e4b | 400 | #!/bin/bash
ulimit -n 10000
if [ -z "$1" ]; then
echo "Please provide name for the test that will be used as the graph directory name."
exit 2
fi
./test_pseudo.sh &
PID=$!
ab -c 1 -n 200 -g ab.tsv http://localhost:8888/slow.php\?f\=1
killall siege
kill $PID
mkdir -p "$1"
gnuplot < graphs/distribplot.txt
mv dis... |
cb081f4d356820bf95b84a8dc3b0817e790a192b | 1,374 | #!/bin/bash
db_set() {
echo "$1,$2" >> ~/database
}
db_get() {
grep "^$1," ~/database | sed -e "s/^$1,//" | tail -n 1
}
_db_suggest() {
local cur
local stringreply
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
if (($COMP_CWORD == 1 ))
then
stringreply=$(cat /home/prashant/dat... |
6da3c9db9f345cf658a9f34a0d5ee417e9844c5a | 708 |
#Group 4 schedules run for 1 hour with 5 minutes or more between requests
echo "group 4-8"
# group 4 [1 hour @ 300000.0]
node apigeereq-quota.js $qtype '[[300000,4000]]' 'A' >> filenames.txt &
node apigeereq-quota.js $qtype '[[300000,4000]]' 'B' >> filenames.txt &
node apigeereq-quota.js $qtype '[[300000,4000]]' 'C... |
2060b96ccb74d18754dd1c2a903240ec8c8caa9d | 206 | #!/bin/bash
# $Id: cvscat,v 1.2 2002/07/15 13:21:51 sunny Exp $
if [ $# -le 1 ]; then
cat <<END
Syntax: cvscat file revision
END
exit 1
fi
cvs -d $(cat CVS/Root) co -p -r $2 $(cat CVS/Repository)/$1
|
4a4a63e55906050961fba3f20df36d9cb39cc8d7 | 935 | # python evaluate_cycle.py --gpu 1 --model_index 0
# python evaluate_cycle.py --gpu 1 --model_index 1
# python evaluate_cycle.py --gpu 1 --model_index 2
# python evaluate_cycle.py --gpu 1 --model_index 3
# python evaluate_cycle.py --gpu 1 --model_index 4
# python evaluate_cycle.py --gpu 1 --model_index 5
# python evalu... |
bd82973ce31c40621be123e500f01de4600a0ca8 | 987 | #!/usr/bin/env sh
set -xeu
cp -r deploy-repo/. builddir/
cp jq-github-release/jq-linux64 builddir/jq
fly_version=$(cat concourse-github-release/tag)
fly_download_url="https://github.com/concourse/concourse/releases/download/"
wget ${fly_download_url}/${fly_version}/fly_linux_amd64 -O concourse-github-release/fly_linu... |
c4cdced1ca42966c45dd50bb4ea7f8772ce3449b | 246 | REPO="trusty"
# Mirror URL
REPO_MIRROR[$REPO]="http://archive.ubuntu.com/ubuntu"
# Supported arches
REPO_ARCHES[$REPO]="amd64 i386"
# Supported arches
REPO_COMPONENTS[$REPO]="main universe"
# Base distribution flag
REPO_IS_BASE[$REPO]="true"
|
eb36b9d0029a03122681ffda484fde5965d3719b | 1,156 | #cgdb Setup
sudo apt-get install libreadline-dev
sudo apt-get install ncurses-dev
# Install Java
sudo apt-get install default-jdk
# Set JAVA_HOME variable
export JAVA_HOME=/usr/lib/jvm/default-java
# Get tomcat
wget http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-7/v7.0.40/bin/apache-tomcat-7.0.40.t... |
48c47471a051133354eb05d36a1b7855ce4b0706 | 1,052 | #!/usr/bin/env bash
# Copyright 2019 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
d611356585821aa2708b3d4b4816526e65146b7e | 559 | # Contributor: wesbrown18@gmail.com
pkgname=ruby-redis
pkgver=2.2.2
_realname="redis"
pkgrel=1
pkgdesc="Ruby client library for Redis, the key value storage server"
arch=(any)
url="https://github.com/ezmobius/redis-rb"
license=("GPL")
depends=('ruby')
source=(http://rubygems.org/downloads/redis-${pkgver}.gem)
noextract... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.