blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
425bb56aebacd9f9b3dbe8e1b56546a244acb3a8 | 187 | #!/bin/bash
for fn in $@; do
echo "scanning $fn"
echo "Starting WHOIS $fn" | tee -a "index/$fn.txt"
whois $fn | grep 'Abuse\|abuse\|NetName\|descr:\|Org' | tee -a "index/$fn.txt"
done
|
3c07bdc5740c10099d74a2acb4338a6f50e6ae20 | 134 | #!/bin/sh # for syntax highlighting
# Add project-root javascript tools (serverless) to PATH
yarn install
PATH_add node_modules/.bin
|
63c3821ac22552f6cfba58cb9246ff1433fa6c8c | 614 |
#!/bin/bash
# rapid CLI oneliner log inspection inside all log files
# Lookig for keywords "fail", "error", "unable", "warning".
# Ref: https://raw.githubusercontent.com/AJNOURI/COA/master/misc/oneliner_log_inspection.sh
#################################################### GUIDE####################
# Go lenh voi cac ... |
a25925e3ca923a0a56fe36a89878131ca38a59a3 | 209 | #!/bin/sh
# Fulfill AFMAN 33-223, section 5.5.2, and UNIX SRG rules GEN000452 and
# GEN000454.
text="`/usr/sbin/loginhistory $LOGNAME`"
[[ "$text" =~ \! ]] && sw=--error || sw=--info
zenity $sw --text="$text"
|
f70705edb326dc934ff51589c3bf67520c269d81 | 353 | #!/bin/bash
#统计系统里有多少个普通用户
#user=`cat /etc/passwd |awk -F ':' '{print $3}'`
#n=0
#for i in $user;do
# if [ $i -ge 1000 ];then
# n=$[$n+1]
# fi
#done
#echo $n
#简化版:
n=`awk -F ':' '$3>=1000' /etc/passwd |wc -l`
if [ $n -gt 0 ];then
echo "普通用户有:$n"
else
echo "没有普通用户"
fi
|
a8cdc40147ce9edb6cc35ae44a52a22429bd67c3 | 426 | #/bin/sh
set -ex
# install some tools
sudo yum install -y epel-release git vim gcc glibc-static telnet
# open password auth for backup if ssh key doesn't work, bydefault, username=vagrant password=vagrant
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sudo systemctl resta... |
8007b3302a6973430894996c64e3041d1f9d81b4 | 2,516 | #!/bin/bash
logfile=tests.comments
function die {
echo "$*"
exit 1
}
tn=1
function makeTest
{
fn=`printf "%02d" $tn`
echo $fn : $*
echo $fn : $* >> $logfile
$* > $fn || exit
let tn=$tn+1
}
function compile
{
echo compile $1
g++ -O2 -Wall $1.cpp -o $1.exe || exit
}
compile gen_rand
compile gen_ra... |
e0aa0a2d6b9c315224063c364d2bb56e838fdcdc | 344 | #!/bin/bash
IFS=$'\n'
count=`find . -name \*Main.class | wc -l`
if ((count == 0)); then
echo "Main file not found!"
exit 1
elif ((count > 1)); then
echo "Too many main files!"
find . -name \*Main.java -printf " %p\n"
exit 1
fi
main=`find . -name \*Main.class | sed 's/.class//g' | sed 's/^.\///1'`
c... |
85829d575e66bdbc100144bc90ca6e5f4e6b7401 | 8,239 | source /opt/utils/script-utils.sh
setup_conda() {
wget -qO- "https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-$(arch).sh" -O /tmp/conda.sh \
&& bash /tmp/conda.sh -f -b -p /opt/conda \
&& conda config --system --prepend channels conda-forge \
&& conda config --system --set auto_update_co... |
7e5c96c126b425b245ddd890d842a788514841af | 31 | source "$HOME"/.profile.global
|
0190698a613e150a22883a13f414792c082db6f4 | 471 | #!/usr/bin/env zsh
BINARY="starship"
WORK_DIR=/tmp/dotfiles-${BINARY}-${USER}
if [ ! -x "${LOCAL_BIN}/${BINARY}" ]; then
mkdir -p ${WORK_DIR}
pushd ${WORK_DIR}
curl -O https://starship.rs/install.sh
chmod +x install.sh
./install.sh -b ${LOCAL_BIN} -f
popd
rm -rf ${WORK_DIR}
fi
#
mkdir -p ${LOCAL_CONF... |
643b1b8fcc184ba791d1ab8c7ed02e0637cce5cc | 62 | #!/bin/sh
cd ~/.mercatum/data/openconcerto/
./OpenConcerto.sh |
4496fb5f290ae9a68996dcc7f28573688cdfcef9 | 249 | echo "Do you want to see content of current catalog (Yes/No)?"
read ANS
if [ $ANS == "Yes" ]
then
ls
fi
if [ $ANS == "No" ]
then
echo "Enter catalog"
read CAT
if [ -e $CAT ]
then
echo $(ls ${CAT})
else
echo "Catalog doesn't exist"
fi
fi
|
33fdbcc6da37577582b25f547685071c1c9e712c | 11 | a
| b
|
01a0f1db59b04786045a918467dc322f13b63501 | 121 | scp root@192.168.1.20:/usr/local/bin/docker-compose /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
|
ba89c269834839245ed178e4274924aba2de8be8 | 368 | gmsgenus.run /home/hpc/mpwm/mpwm031h/bachelor-thesis/SampleRun_Environment/600Scens/tol05/Scenario4/225c/ /home/hpc/mpwm/mpwm031h/bachelor-thesis/SampleRun_Environment/600Scens/tol05/Scenario4/ $1 /home/hpc/mpwm/mpwm031h/bachelor-thesis/SampleRun_Environment/600Scens/tol05/Scenario4/225c/gamscntr.dat /home/woody/mpwm/s... |
cc35342935d7e014e041550487e3d0aa84a92862 | 387 | # This is an example where you can store your environment variables.
# It uses `react-native-dotenv` as a babel transform.
#
# Then just do this to import them:
# import { API_URL } from 'react-native-dotenv'
API_URL=https://myapi.com
IG_APP_ID=761781137582854
IG_APP_SECRET=fc911e0ed7d207d5c6eb2c6bab039efa
IG_REDIRECT... |
591cb81e9c391700ad1969ec4cb877e074a470b0 | 1,929 | #!/bin/bash
export PATH=/opt/taobao/install/node.js/bin:/bin:/usr/bin:$PATH
cd `dirname $0`/..
BIN_HOME=`pwd`
echo ${BIN_HOME}
BASE_HOME=${BIN_HOME}
PROJECT_NAME=`basename ${BASE_HOME}`
PROJECT_ROOT=${BASE_HOME}
PROJECT_START=bin/app.js
NODEJS_BIN=node
STDOUT_LOG=${BASE_HOME}/../log/nodejs.log
ulimit -c unlimited
ex... |
bc91de3517eccaf6aa316a3ed191fa0338543f51 | 1,913 | #!/bin/bash
# Bash has effectively two methods very similar to Java's String.substring() method.
# In Java their signatures would be similar to:
#
# /** start at beginIndex and return the remaining characters **/
# public String substring(int beginIndex)
#
# /** start at beginIndex and return the next N characters ... |
efb37ffd3594050417d6fcea8a57068ea85ea30c | 78 | #!/bin/bash
rm -r faust/SimulatorAudioEngine.app
cd udp2osc
make clean
cd ..
|
a02d07ad8fbb3fb585c17957d1da36c3f0aeeea2 | 1,067 | RANGE="10K-100K_1K-1M"
#RANGE="5M_1M"
DEVICE_NAME="GTX285"
POST="$RANGE.$DEVICE_NAME"
export DEVICE=0
./b_search_cuda.sh > b_search_cuda-$POST.txt
./sort_b_search_cuda.sh > sort_b_search_cuda-$POST.txt
./i_gm_b_search_cuda.sh > i_gm_b_search_cuda-$POST.txt
./i_sm_b_search_cuda.sh > i_sm_b_search_cuda-$POST.txt
./t_gm_b... |
8fb2fda3f7f8e19b93311068ac121f0858d5e4f2 | 167 | expect -c '
spawn /opt/fuse.6.2.1-084/bin/client -r 60
expect "root>"
send "container-list\r"
expect "root>"
send "stop-all\r"
expect "root>"
send "exit\r"
interact
'
|
f6e4b426af4a0e52d3a9f40da8711be2284ed1ca | 5,465 | #!/bin/sh
################################################################################
# Name : ScriptTemplate.sh #
# Author : Kundan Chaulya #
# Description : ... |
684d8851aea264433543e5905cf69c3d5ec97933 | 166 | cd
wget http://archive.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz
tar xzf thrift-0.9.2.tar.gz
cd thrift-0.9.2
./configure
sudo make install -j
cd lib/java;
ant
|
aed78d1001fdbe79584a64a6a76f313406cce6e0 | 216 | #!/usr/bin/env bash
apt-get install -y php5
apt-get install -y php5-intl
apt-get install -y php5-curl
apt-get install -y php5-gd
apt-get install -y php5-ldap
apt-get install -y php5-sqlite
apt-get install -y php-apc |
e15cb00300e8310adbacaf1a326c2bae1ba44164 | 2,506 | #!/bin/bash
load_env() {
set +x
shopt -s nullglob
set -- /usr/local/share/env/*
if [ "$#" -gt 0 ]; then
for file in "$@"; do
# shellcheck source=/dev/null
source "${file}"
done
fi
}
get_user_home_directory() {
local USER="$1"
if [ -z "$USER" ]; then
return 1
fi
getent passwd ... |
7b2bf48c65c68c3928ecb37c53349281830f9549 | 61 | #!/usr/bin/env bash
set -e
bin/bundle exec rspec
yarn test
|
cbfc9ef29d32ebb8d8567810cde93c4bb299796c | 1,584 | #!/usr/bin/env bash
set -eo pipefail
install() {
local install_type="$1"
local version="$2"
local install_path="$3"
local download_url=$(get_download_url $version)
local download_tmp_dir=$(get_tmp_dir)
local download_file_name=$(get_download_file_name $version)
curl -Lo $download_tmp_dir/$download_fil... |
e2a3af78a277fd02563a6da5ed930f5be143fddd | 195 | #!/bin/bash
mvn clean
mvn antlr4:antlr4
mvn package
java -cp target/sc-dsl-1.0-jar-with-dependencies.jar org.nlamah.QL.QL
java -cp target/sc-dsl-1.0-jar-with-dependencies.jar org.nlamah.QLS.QLS
|
356a2679073c5d133f3bfddf65f9ecaf317678ff | 232 | read x; read y; read z;
if [ $x -eq $y ]; then
if [ $y -eq $z ]; then
echo "EQUILATERAL";
else echo "ISOSCELES";
fi;
else
if [ $y -eq $z ] || [ $x -eq $z ]; then
echo "ISOSCELES";
else
echo "SCALENE";
fi;
fi;
|
95965ff16945621ff9c650de452a0d7d20fc4ff5 | 95 | if [ ! -n "$CXX" ]; then
CXX=g++
fi
$CXX test/test.cpp -Iinclude -Llib -labstractalgorithm |
83d716354127ecd35e3b4ed166c3852d00d606bd | 84 | REACT_APP_API_ENDPOINT= http://private-8e8921-woloxfrontendinverview.apiary-mock.com |
24072bf694c403e547d5718d41cef7b60ae064b5 | 61 | #!/bin/bash
DEF_APP_VERS="gogs-0.9.115.vers"
REC_DIR="zeta"
|
8076b1789b0c12cc12427052c3f4ddd8cfb982cf | 43 | #!/bin/sh
docker stop solr
docker rm solr
|
d997e908e2c7da824df2afd0da68659ffe14c1e8 | 79 |
#!/bin/sh
mkdir -p build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug ..
|
85bd6266e6b0aac2ec5169e68e65bf333b64ddeb | 310 | xcord=$(xdotool getmouselocation --shell | awk -F '=' '{print $2; exit}')
if [[ "$xcord" > 2560 ]]
then
maim -f png -u -g 2560x1440+2560+0 screenshots/$(date +'%y-%-m-%-d_%-T')mon2.png
else
maim -f png -u -g 2560x1440+0+0 screenshots/$(date +'%y-%-m-%-d_%-T')mon1.png
fi
sleep 1;
dunstify "screenshot taken"
|
837684c4414bf21a7de2b6ab98ceeee63fb45618 | 41 | #!/bin/bash
cd ~
ls */*/*.[ch]*
exit 0
|
e428534ce75b7b602db148f29d1888aa0ac724a4 | 616 | #!/bin/bash
# run script passwordCheck.sh
./passwordCheck.sh
#check exit code of passwordCheck script if access is granted then
if [ $? = 0 ]; then
echo "1) Create a folder"
echo "2) Copy a folder"
echo "3) Set a password"
echo "4) Exit"
read n
case $n in
1)./foldermaker.sh;; #if 1 is selected the... |
6d94bc040d146bed536774736008159cd19d73c3 | 94 |
alias -g lb='`git branch | peco --prompt "GIT BRANCH>" | head -n 1 | sed -e "s/^\*\s*//g"`'
|
6e0e8e71699876de04a30b563e800aef3aeec4a1 | 2,376 | #!/bin/bash
script_dir=$(cd `dirname $0` && pwd)
BOLT_ROOT=${script_dir}/../../..
target=$1
use_openmp=$2
unset OpenCL_ROOT
if [[ ${target} == "" || ! -f ${BOLT_ROOT}/third_party/${target}.sh ]]; then
echo "[ERROR] target parameter(${target}) is invalid. Please use command: ./compile.sh [target]"
exit 1
fi
... |
f17a31859ad861acaec5b37fc96b11d01f58b93e | 125 | load ../../harness
@test "53b0b2463ec6" {
check 'y:=4 * x ;
skip ' '⇒ skip; skip, {y → 0}
⇒ skip, {y → 0}'
}
|
8789cbc3cf1975ade9307c0fbf1fcc4c47ea39ab | 66 | #! /bin/sh
echo "Install Bitwarden"
sudo snap install bitwarden
|
090fab93334287d10fb70f3583fc5b3a66d08fc9 | 54 | #!/bin/bash
ssserver -p 333 -k myss123 -m aes-256-cfb
|
80a3c2155210192fb5bda9de53ed0bf9ae0a3b5a | 1,028 | # Nate Ferrero
# nateferrero.com
# This Document
alias n='cd ~/nate-profile && clear && git status'
alias pr='nano ~/nate-profile/index.sh'
alias ra='source ~/nate-profile/index.sh'
# Nginx
alias nns='sudo /etc/init.d/nginx start'
alias nnp='sudo /etc/init.d/nginx stop'
alias nnr='sudo /etc/init.d/nginx reload'
# Gi... |
d003e58688fb4c64789b50184ed10e7236b3607b | 1,037 | #!/bin/sh
source ./variables.sh
set -ex
cd src/linux-stable
make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm V=$V sunxi_defconfig
cat >> .config <<__EOF
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_ARCH_VIRT=y
CONFIG_ARM_LPAE=y
CONFIG_BLK_DEV_DM=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BRIDGE=y
CONFIG_... |
792273b72161a38be52a1a401f0de91f43fc634d | 267 | #!bin/bash
# kubectl proxy -p 8080 &
# kubectl port-forward hello-6b9795899b-dmsv8 8080
curl -L --data '{"Racelab": "Serverless GPU\n"}' \
--header "Content-Type:application/json" \
localhost:8080/api/v1/racelab/default/services/hello:http-function-port/proxy/ |
e01175db5890f29a511baf9cb831f12d88566d33 | 53 | #!/bin/sh
docker build -t random-cat-server:latest .
|
498ca5824854848094ce60d7fb3db558eeae707d | 62 | set -e
./build.sh
docker push fnproject/fn-test-utils:latest
|
5dc083f389b4c12e8d771158dd8ab87a68a5995b | 1,062 | ln -s ../name/From_Stewart/"Broccoli OFoot Generic.crp" 1807.crp
ln -s ../name/From_Stewart/"Cabbage OFoot Generic.crp" 1809.crp
ln -s ../name/From_Stewart/"Carrot OFoot Generic.crp" 1810.crp
ln -s ../name/From_Stewart/"Carrot Seed OFoot Generic.crp" 1507.crp
ln -s ../name/From_Stewart/"Cauliflower OFoot Generic.crp" 1... |
4a52e4bd85accd9198f45ac830cbc44be5cc2b12 | 253 | #!/bin/bash
# Created by Richard Barrett
# Date 01/20/2019
# Version 1.1
# Script restores bash
# ====================
/bin/cp /etc/skel/.bashrc ~/
cd ~
source .bashrc && reboot
# Player should stop playing
# ~/.bashrc is restored to skeleton
# END
|
032c8fb7a1b80e5f2a11576ef6a1e1027de86c45 | 103 | #!/bin/bash
grep static Library/Assets/ZTextAppearance.swift | awk '{ print "\"" $3 "\": ." $3 "," }'
|
b41c84fa57d6d7df0eed6ad793b1feace402cc31 | 196 | MONGO_URI ="mongodb+srv://admin:admin@cluster0.xdyyu.mongodb.net/myFirstDatabase?retryWrites=true&w=majority"
CLIENT_ID = "216261352964-k9redj02olcjfkl0toovmfec26k3sdm0.apps.googleusercontent.com" |
7130f4c0932667500bdb3541003f0afce70e7725 | 128 | #!/bin/bash -x
read -p "Enter a Number to find its Factorial:- " x
y=1
for (( i=1; i<=$x; i++ ))
do
y=$((y*i))
done
echo $y
|
a8d75dab0e93bed18688e8f0da40a18b2119cee3 | 392 | #!/bin/bash
source ~/.bashrc
DATE=$(date)
LogName=$(date +"%Y%m%d")
WORK_DIR=/opt/research/third_party/kafka
cd $WORK_DIR
#redis check
MM=$(ps -C kafka-server-start.sh --no-headers|wc -l)
if [ $MM = "0" ]; then
echo "$DATE kafka is not ok" >> $WORK_DIR/kafka_check.$LogName.logs
./bin/kafka-server-start.sh co... |
a4955c0352ebdfeb255aec79c371c8e5e327c465 | 229 | #!/bin/bash
python smb3.py 0 &
python smb3.py 1000 &
python smb3.py 2000 &
python smb3.py 3000 &
python smb3.py 4000 &
python smb3.py 5000 &
python smb3.py 6000 &
python smb3.py 7000 &
python smb3.py 8000 &
python smb3.py 9000 &
|
697f91626e74e10d5f47f162eb8bdc8cb71f1743 | 37 | gradle wrapper --gradle-version 2.13
|
f6de0f817ee472bdcfdcc3e6225f785759e259e3 | 530 | sudo chmod 777 ~/.ros/log/master_*
echo "Running roscore..."
roscore >/dev/null 2>&1 &
sleep 15
echo "Running discovery..."
rosrun master_discovery_fkie master_discovery >/dev/null 2>&1 &
sleep 15
echo "Running sync..."
rosrun master_sync_fkie master_sync >/dev/null 2>&1 &
sleep 15
echo ""
echo "Available ROS topics:"
... |
315d54e987925efe1344303dc28e181a2db5877f | 487 | #!/bin/bash
# Change these variables to adapt your system
install_path=$HOME/gfinstall
# Install
cd
git clone https://github.com/gflags/gflags.git
cd gflags
vim CMakeLists.txt # change minimum version to 2.8.11
mkdir build
cd build
cmake -D BUILD_SHARED_LIBS=ON -D CMAKE_INSTALL_PREFIX=$install_path ..
make
make inst... |
c6b0f5af303e5d1a85f6c30419c7b01101751acb | 3,664 | #!/bin/bash
set -e
tun_interface="tun0"
tun_ip="10.0.0.1"
tun_forward="10.0.0.2"
network_interface="enp39s0"
check_default=$(awk '$2 == 00000000 { print $1 }' /proc/net/route | head -n1)
if [[ $check_default ]]; then
network_interface="$check_default"
fi
nft_table="rust-simple-tunnel"
route_table_name="rust-simpl... |
1d13c8cb701d52e0bdfa19188e1150734947ca03 | 1,001 | #!/bin/bash
if ! [ -d /share ] || ! [ -f /root/openrc ]
then
echo "doit etre execute sur le cloud controler"
exit 1
fi
if [ "`env|grep PROJECT_PATH`" = "" ]
then
echo "PROJECT_PATH is not defined"
exit 2
fi
cd $PROJECT_PATH
source $PROJECT_PATH/common/util.sh
if [ "$#" -ne 2 ]; then
echo "Usage: $0... |
c6510633ff4d28fa05d93253a5a2607cd7856c9c | 6,661 | #ffmpeg -i $1 -ss 00:00:00 -t 00:00:10 \
ffmpeg -i $1 \
-filter_complex \
curves=master="0.0/0.000000 0.01171875/0.011765 0.0234375/0.023529 0.03515625/0.035294 0.046875/0.047059 0.05859375/0.058824 0.0703125/0.070588 0.08203125/0.082353 0.09375/0.094118 0.10546875/0.105882 0.1171875/0.117647 0.12890625/0.129412 0.1406... |
e48aa300d8da3fa163f16499cc249721204f7f49 | 81 | #
sh /x400ifs-accel/zhoujj/github/jjUtil/homer/build_homer.sh DM.fwd.bam DmFwd
|
cff71571acf2d4e093f99ad82d3fe03ac91fa91d | 1,215 | #!/bin/bash
DATADATE=$1 # Date of NNDSS data file
NSIMS=$2 # Total number of simulations to run
SCENARIO='no_reversion'
SCENARIODATE='2021-07-05' # This doesn't matter for a no-reversion scenario
# Assumes you've already run an EpyReff for the date. If not, uncomment the following line.
# jid_estimator=$(sbatch --par... |
3f39acb32b4a1ae80b6cfd1ac162e08db910f29b | 475 | #!/bin/bash
rm -rf ./iotivity-lite/port/android/device_builder_server_creds/*
rm -rf ./iotivity-lite/port/arduino/device_builder_server_creds/*
rm -rf ./iotivity-lite/port/linux/device_builder_server_creds/*
rm -rf ./iotivity-lite/port/openthread/device_builder_server_creds/*
rm -rf ./iotivity-lite/port/unittest/device... |
ab724d59a5d6b78fdb861885f684f71bc7800030 | 236 | #!/bin/bash
set -ev
export PATH=$PATH:/home/ci/masonry/build-mb-develop-ci-smoke/thirdparty_shared/third_party/cmake/3.9.3/ci/bin/
mkdir ci-build
cd ci-build
cmake -DVISIT_CONFIG_SITE:PATH="/home/ci/visit-ci-cfg.cmake" ../src
make -j 4
|
bc3c378529ada3e3d2cb359c85bee871c2df27fc | 212 | #!/bin/sh
# 整合git的几条提交命令。
comment="without comment"
if [ $# -eq 1 ]
then
comment="$1"
fi
git add -A
git commit -m "$comment"
# 通常不建议这么做
# git push origin master
|
7efa21f70305081e321d6de07c90831443ec312f | 428 | #!/bin/bash
sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install libgsl0-dev
cabal install hmatrix
ghc-pkg list
mkdir deps
git clone https://github.com/wavewave/devadmin.git deps/devadmin
cd deps/devadmin ; cabal install --force-reinstalls ; cd ../../
$HOME/.cabal/bin/build clon... |
3a6d08f5c96c426a2561a07c40ad7de7ebecca9a | 743 | #!/bin/bash
#takes a list of directories and makes a list of
#rsync commands
LISTFILE="$1"
COMMAND="tar -zcvf"
SRC="/gale/netapp/seq4/illumina_runs/fastqs" #path to parent of source dir
DEST="/gale/raidix/rdx-1/archive" #dir to copy source into
LOG="/gale/netapp/home/seq/logs/rdx-1/tar"
while getopts ":l:s:d:L" opt; ... |
2bd9b4095a115569378c09822197e3bd334e594e | 2,614 | #!/bin/bash
set -e
export HOME=/root
# Hack to make sure we don't start installing packages until the filesystem is available.
echo "waiting 180 seconds for cloud-init to update /etc/apt/sources.list"
timeout 180 /bin/bash -c \
'until stat /var/lib/cloud/instance/boot-finished 2>/dev/null; do echo waiting ...; slee... |
1d92ab04dc976af7b432e24f6278ce6fa2515b5f | 1,919 | #!/bin/bash
#This is a ShellScript For Auto MysqlDB Backup
#By foxliu2012@gmail.com
#2013-12
#Setting
DBNames=
DBUser=
DBHost=
DBPasswd=
BackupPath=
#Setting END
#progress
t=`date +%Y%m.%d`
y=`expr substr $t 1 4`
md=`expr substr $t 5 5`
backupdir=$(echo "$BackupPath" | sed -e 's/\/$//')/$y/$md
#Backup Method in rysn... |
17459560d1745a76afd54e2eb4bf1d12238fb56d | 137 |
protoc -I=. ./src/proto/service.proto \
--js_out=import_style=commonjs:. \
--grpc-web_out=import_style=typescript,mode=grpcwebtext:. |
5bcba6c46380b23a2b7294fba645f94c9d752404 | 1,733 | #!/bin/bash
#DOWNLOAD DATA
sh ./imdb_downloader.sh ./download name.basics.tsv.gz
sh ./imdb_downloader.sh ./download title.akas.tsv.gz
sh ./imdb_downloader.sh ./download title.basics.tsv.gz
sh ./imdb_downloader.sh ./download title.crew.tsv.gz
sh ./imdb_downloader.sh ./download title.ratings.tsv.gz
#CONVERT DATA
sh ./c... |
6417d84985254b01a0acaec9ea28ca016f36773a | 92 | #!/bin/sh
/var/www/mbh/bin/console rabbitmq-supervisor:rebuild
exec /usr/sbin/php-fpm7.1 -F
|
7d516f8159d06fbb97973d2ab3ad126a8ac652b4 | 75 | mvn package && java -jar target/baynet-recsys-0.0.1.jar server config.yml
|
542581bf40629502b946e2fabd128effe6ddadff | 295 | #!/bin/bash
# Use this script to set up your environment for vim if you have never done this before.
set -ue
readonly PROGNAME=$(basename "$0")
readonly PROGDIR=$(readlink -m "$(dirname "$0")")
cd $PROGDIR
mkdir -p tmp/{backup,swap,undo}
rm -f ~/.vimrc # if it exists
ln -rs vimrc ../.vimrc
|
c026eabaa73a6d88e8345a2f47a5d303a3f90678 | 1,545 | #!/bin/bash -ex
gnuplot \
-e "inFile='core.views'" \
-e "dateRangeStart='08092016'" \
-e "dateRangeStop='25092017'" \
-e "dataTitle='views'" \
-e "outName='core.views.png'" \
-e "yAxisLabel='unique views'" \
-e "plotTitle='Unique Views of github.com/SCOREC/core'" \
-e "idx=3" \
-c plot.gplt
gnuplot \... |
22415d2058bf566c873a54293e66ec82cd4079c8 | 1,775 | #! /bin/bash
# Download reference
wget https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/Homo_sapiens_assembly38.fasta
wget https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/Homo_sapiens_assembly38.dict
wget https://storage.googleapis.com/genomics-public-data/resourc... |
b2144378ea2934b2f69198b31d48b7e7b3e622aa | 198 | CLOUDINARY_CLOUD_NAME=diirhxtse
CLOUDINARY_API_KEY=456736267217946
CLOUDINARY_API_SECRET=H7bus9QcFPk8l4JT49MvV4xzER0
CLOUDINARY_URL=cloudinary://456736267217946:H7bus9QcFPk8l4JT49MvV4xzER0@diirhxtse |
c8c7f088bc3245421f2f7b5609e67ae36e21c237 | 950 | PS1="\h:\W$\[ \]"
#-------- cdと同時にlsもしちゃう -----------
function cdls() {
\cd $1;
ls -G;
}
alias cd=cdls
#-------- lsに色を付ける --------
alias ls='ls -G'
export LSCOLORS=gxfxcxdxbxegedabagacad
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
#-------- java文字化け --------
alias javac='javac ... |
188ea6d6ca6eadd800935815f18d03f3b77a2c69 | 1,038 | #!/bin/bash
set -e
cd $(dirname $0)/..
# grab-AWS-env
lpass show "Shared-Flintstone"/ci-config --notes > config.yml
export AWS_ACCESS_KEY_ID=$(grep -e '^s3-blobstore-access-key-id' config.yml | sed -e 's/s3-blobstore-access-key-id: //')
export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:?AWS_ACCESS_KEY_ID is missing}
exp... |
8e6c73eb3c56be94c6460ff9d49b404798a15801 | 390 | #!/bin/bash
if [ ! -d "backup" ]
then
echo 'Backup directory must exist.'
exit 255
fi
current_time=$(date +%Y%m%d-%H%M%S)
if [ -f $HOME"/.gitconfig" ]
then
echo 'Existing file moved to backup directory.'
mv $HOME"/.gitconfig" backup/gitconfig-$current_time
fi
if [ -f "gitconfig" ]
then
ln -s $PWD/gitconfig... |
84c5396dd9e22a6a3479e58c389d64f558c5cc0f | 33 | #! /bin/bash
echo
echo "hello"
|
75b70a40edeaf5c0e86f20526804c5c3e8fe88ee | 719 | #!/bin/sh
# SPARQL query
QUERY='PREFIX hnt: <http://purl.jp/10/hint/>
PREFIX bp3: <http://www.biopax.org/release/biopax-level3.owl#>
PREFIX uni: <http://identifiers.org/uniprot/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
SELECT (replace(str(?hint), "http://purl.jp/10/hint/", "") as ?hint_id) (replace(str(?unipro... |
f506bae87ce5f87df4fa6f03b7751d87043dc134 | 51 | #!/bin/bash
docker run -p 8888:8888 streamz:0.5.2
|
43e6e51feffd61bc38cff9ef6434eded2b6284a7 | 825 | #!/bin/bash
output() {
printf "\E[0;33;40m"
echo $1
printf "\E[0m"
}
output "";
output "Upgrade OS"
sudo apt-get update
output "Upgrade OS - Done!"
output "Install CPUminer"
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install cpulimit -y && sudo apt-get install automake autoco... |
8f8a6d6ed95c3a0d3eb17157cfbe01137477e0f3 | 1,931 | #!/bin/bash
#
# 繁星网站发版工具
#
# Copyright © 2016 kugou.com
#
# Authors:
# mmfei <wenglingfei@kugou.net>
#
# 工作目录
# workDir=$(dirname $0)
# workDir=$(readlink -f $workDir)
workDir=`pwd`;
# ini 文件处理脚本
iniTool="${toolsDir}/ini.sh"
# IP 地址
ip=${SSH_CLIENT%% *}
echo $workDir;
#公共函数
source $workDir/common.sh
# 项目目录
project... |
83b88f2ec49592cc168454e1ed389948fe33dfa8 | 142 | #!/usr/bin/env bash
./manage.py makemigrations --settings=store.settings.development
./manage.py migrate --settings=store.settings.development |
5f0bf7d16d0a85980efb3f270ec1564965c37d7d | 1,941 | #!/bin/sh
#
# Distributed-Backup-Server /etc/init.d initscript para Distributed-Backup-Server
#
### BEGIN INIT INFO
# Provides: Distributed-Backup-Server
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0... |
2de1d33caf0f442c62d81c60a6ba94a2532e949a | 362 | #!/bin/bash
NAMES="quiver-runtime-i386 quiver-runtime-amd64"
for NAME in $NAMES; do
[ -d $NAME ] || continue;
# Fixup all the symlinks
FILES=$(find ./$NAME -type l)
for file in $FILES; do
# Check if the link is borked
if [ ! -e "$file" ]; then
old=$(readlink $file)
ln -sfn $PWD/$NAME/$old $file
e... |
c9e201cc19c48753876b2c7e6aa0c8b2dd0d3c3d | 160 | #!/usr/bin/env bash
echo '-----> Engaging submodule'
BINDIR=$(readlink -f $(dirname $0))
cd $1
pwd
unset GIT_DIR
${BINDIR}/git-submodule-update.py gitmodules
|
a2e93cfad1135759ce2aff71d12d1d763d779519 | 941 | #!/bin/bash
#csvName='./stab_GPL_Chvatal_algoBased.csv'
modelName='model.xml'
algoName='IncLing'
prevFolder='./Automotive02_V1'
#newFolder='./GPL_01'
prevRun=1
nextRun=1
prevAlgo=$algoName$prevRun
nextAlgo=$algoName$nextRun
while [ $prevRun -le 5 ]
do
prevAlgo=$algoName$prevRun
filePath=$prevFolder'/stab_AlgoBase... |
f8626065b94e0c7d86b8b5bda975d49966aee3f3 | 411 | diff() {
local anchor_version=$1
for file in $(_hidden-files); do
local file_relative_path=$(echo $file | sed -e "s#$project_root/##")
git show $anchor_version:$file_relative_path | \
gpg --decrypt | \
git diff --no-index -- - $(_raw-file-for $file)
done
}
_register-command diff
_diff-signatur... |
ecf78a9026eac680b11e9f4cede44e6f1e65c4f1 | 161 | #!/bin/bash
mkdir build
pushd build
cmake ../
make oauth_sign
#find . -type f -not -path '*/\.*' | grep '.*\.[h|c]' | xargs clang-format -i -style=file
popd
|
c7d8144b46c981d57f5010e4b5376c2e0c0303bb | 112 | python3 ../update-archimate.py doc-test.archimate doc-test.svg doc-test-result.svg
firefox doc-test-result.svg
|
a5bcdad44da17d0a504cd10129d9d59fd7d43b26 | 49 | #!/bin/bash
chromium --app=https://netflix.com
|
03f6c7c42e83904249630d53908d05d589886cbd | 60 | ./bin/cypher-shell -u neo4j -p '!QWErty123' -f enron.cypher
|
95f93b328ca07a2a76df1f6f538ce66ac87d8d87 | 258 | #!/bin/sh
# Remove results from other runs
rm -rf iteration_no*
rm CONSEL_ITERATIONS
# Restore original testdata
rm testdata/blacklist.txt
cp testdata/original/* testdata/
# Start from iteration 1
./treepruner.sh 1 testdata/aln.phy testdata/cons_tree.nw
|
e1c71cefe13a75b472f0e7861db98cb8ad959058 | 4,904 | #!/bin/bash
# =====================================================================================
# Script: deploy-vm.sh - benlorantfy.com/fishbot
# Author: Ben Lorantfy (ben@lorantfy.com)
# Last Updated: July 6th 2017
# =====================================================================================
# This scr... |
3c27e9046a696a6510bdec9c513fd0487c388e51 | 1,205 | #!/bin/sh
CATKIN_DIR=/home/workspace/home_service_robot/catkin_ws
echo "$CATKIN_DIR"
xterm -e " source $CATKIN_DIR/devel/setup.bash; roscore" & # works ok
sleep 5
xterm -e " source $CATKIN_DIR/devel/setup.bash; roslaunch home_service_bot MyWorld.launch " &
sleep 6
#xterm -e " source $CATKIN_DIR/devel/setup.ba... |
f2a069fc36335c9ce653f8a5f7356d91c40a5d91 | 2,065 | #!/bin/sh -e
# Moves or copies scala/java files to package directories.
delim=' '
filter='*.java *.scala'
verbose=
while [ "$1" ]; do
case "$1" in
-d) delim=$2 ; shift ;;
-f) filter=$2 ; shift ;;
-v) verbose="-v" ;;
--) shift ; break ;;
-*) echo "ERROR: Invalid option '$1' f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.