blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
cc157baab2d5c40f1262920b4bfc21469ff08450 | 429 | #!/bin/bash
#set -x
dir=${1:-vid-tag}
du -hcs "$dir"
IFS=$'\n'
for f in $(find "$dir" -type f -name '*.jpg'); do
#echo "$f"
quality=$(identify -verbose "$f" | grep Quality | cut -c 12-)
if [[ $quality -gt 85 ]]; then
echo "$f"
#echo "$quality -gt 85"
tmp="${f/%.jpg/-q85.jpg}"
... |
7930ffc23befd65521f242ead0fa63854f83fbde | 504 | #!/usr/bin/env bash
name="PUT YOUR KEY NAME HERE"
# Amount to use for validating
amount="100001000ualtg "
gaiacli tx staking create-validator \
--amount=$amount\
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--pubkey=$(gaiad ten... |
ffa9ab7c16e98b1ce8df282a66da5f2eab6e9253 | 460 | #!/bin/sh
temperature=0
total=0
# Calculate the average temperature across all thermal zones
for temp in /sys/class/thermal/thermal_zone*/temp; do
temperature=$((temperature + $(cat "$temp")))
total=$((total + 1))
done
temperature=$((temperature / (total * 1000)))
echo "$temperature°C"
echo "$temperature°C"
... |
c35e9a3c623df26361c644d8d280017e88a1dc60 | 1,288 | #!/bin/bash
. lib.sh || exit
ARGS=$(getopt -o '-P:b:' --long 'prefix:,branch:' -n "${0##*/}" -- "$@") || exit
eval set -- "$ARGS"
unset ARGS
ARG_PREFIX=
ARG_BRANCH=
ARGS=()
while (( $# )); do
case "$1" in
-P|--prefix)
ARG_PREFIX="$2"
shift 2
;;
-b|--branch)
ARG_BRANCH="$2"
shift 2
;;
*)
ARGS+=( "$... |
24c4a0d8b4eb6583d338d68a3e60b1fc8281cda7 | 170 | #!/bin/bash
docker run -v /data/node2:/var/lib/cassandra -d -e CASSANDRA_SEEDS="$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' one_node)" cassandra:latest
|
d8db9a6a53234d732a09319d567ac7187e6d86d3 | 152 | NODE_ENV=development
PORT=3000
APP_URL="http://localhost:3000"
BASE_PATH="/api/v1"
DB_HOST = 'localhost'
DB_NAME = 'test'
DB_USER = ''
DB_PASSWORD = ''
|
694c99b03c699fd4083bb02079235093cb4774a5 | 1,200 | #!/bin/sh
BITCOIN_ROOT=/mnt/bitd
# Pick some path to install BDB to, here we create a directory within the bitcoin directory
BDB_PREFIX="${BITCOIN_ROOT}/db4"
mkdir -p $BDB_PREFIX
# Fetch the source and verify that it is not tampered with
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
echo '12edc0df... |
f1c6e274d58214d7f0a699fc71906993665df002 | 3,442 | #!/bin/bash
# This script generates the figures for lesson 18
make -C ../.. bin/HalideTraceViz
rm -rf tmp
mkdir -p tmp
# Grab a trace
HL_JIT_TARGET=host-trace_loads-trace_stores-trace_realizations \
HL_TRACE_FILE=$(pwd)/tmp/trace.bin \
make -C ../.. tutorial_lesson_18_parallel_associative_reductions
ls tmp/trace.bin... |
c4140117dc04f53ec2569143d99c8c8dbdc04ad2 | 2,470 | mkdir installation
mkdir installation/OpenCV-master
sudo yum -y install epel-release
sudo yum -y install git gcc gcc-c++ cmake3
sudo yum -y install qt5-qtbase-devel
sudo yum install -y python34 python34-devel python34-pip
sudo yum install -y python python-devel python-pip
sudo yum -y install python-devel numpy pytho... |
d0430de0f0417cf2c3e855e372f6d385a6a8e3b9 | 1,334 | #!/bin/sh
#
# you might run this one from cron. it recordes from jackd
# from the pors specified for the duration specified.
# Then encodes to OGG.
# leaving us with a 3 channel vorbis file :)
# http://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-800004.3.9
#
# jack ports to record
PORTS0="system:capture_1"
# mpd di... |
f2db9be5c1bb73e3a61b289f27f973cc26e2cd0f | 2,366 | #!/bin/bash
# CS 302, assignment #8 test script.
# ---------------------------------------------------------
# Initial checks.
# Ensure executable file exists.
# Verify availability of testing support files.
if [ -z $1 ]; then
echo "Error, must provide executable file name."
exit
fi
if [ ! -e $1 ] || [ ! -x $1 ]; ... |
2fe55401a79d9727cac079b0db05229e8a2a5b26 | 346 | # bashrc loading
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
# editor
export EDITOR=vim
# refresh profile
alias refresh='. ~/.bash_profile'
# npm install from cache
alias npmi='npm install --cache-min Infinity'
# cleanup directories
alias cleanup='find . -name .DS_Store -type f -delete'
# projects
alias projects='cd... |
0551c776835e4bf93265ed21cb3f85d3ef37a486 | 162 | #!/usr/bin/env bash
source ./sh/init.sh
for path in $target_path/$dev_path/$branch/$repo_path/*
do
pathname=$(basename $path)
echo $pathname
done
|
a7cefbe5adea7ded85a395f24f00308cd1533190 | 3,630 | #!/bin/bash
# 在 master 节点和 worker 节点都要执行
# 安装 docker
# 参考文档如下
# https://docs.docker.com/install/linux/docker-ce/centos/
# https://docs.docker.com/install/linux/linux-postinstall/
# 卸载旧版本
apt-get remove -y docker \
docker-client \
docker-client-latest \
docker-ce-cli \
docker-common \
docker-latest \
docker-latest-l... |
157c1f2539691d96c080bd837cda6313ac5c34c1 | 751 | #!/bin/bash
# Usage: ./add_user.sh <Domain> <User Name> <Default Password> <SSH Key Path or String in quotes>
# Example: ./add_user.sh example.com john Password123 "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA879BJGYlPTLIuc9/R5MYiN4yc/YiCLcdBpSdzgK9Dt0Bkfe3rSz5cPm4wmehdE7GkVFXrBJ2YHqPLuM1yx1AUxIebpwlIl9f/aUHOts9eVnVh4NztPy0iSU... |
3472e3b116f4cf4231a05e011dd776c557ae40dc | 103 | #PiGen
#Generate all possible combinations (4 digits) - PIN
#thank you for using
# license @bobdinh139
|
92198585b522842c311a6b07c4681e3d0431da10 | 126 | docker build -t nodecontroller .
docker tag nodecontroller:latest simonh88/nodecontroller
docker push simonh88/nodecontroller
|
708b5fadd45fb9660255a9a4a402c11c35371965 | 51 | REACT_APP_API_URL="https://jdbackend.herokuapp.com" |
3f669f3c1e7c15a3d479fdb8ef6195e168f2ce66 | 421 | #!/usr/bin/env bash
if [ -z "{{AWS_ACCESS_KEY_ID}}" ]; then
echo "AWS_ACCESS_KEY_ID is empty"
fi
if [ -z "{{AWS_SECRET_ACCESS_KEY}}" ]; then
echo "AWS_SECRET_ACCESS_KEY is empty"
fi
if [ -z "{{&S3_CONFIG_BUCKET}}" ]; then
echo "S3_CONFIG_BUCKET is empty"
fi
echo '{{&S3_CONFIG_BUCKET}}'
aws s3 sync {{&S3_C... |
ca88f6b7b260f1eed10fe1829f85b951c8cbf911 | 346 | echo
echo " ____ _ _ _ _ ____ ____"
echo " | \| | | ( \ / ) _ )/ ___)"
echo " | | | | |_| |) X ( (/ /| |"
echo " |_|_|_|\____(_/ \_)____)_|"
echo
echo "-------------------------------------------------------------... |
a610701eddd122a27aa5743f0bcbbd1ea2059cdf | 399 | #!/bin/sh
APPID=mobi.optware.openvpn
# Symlink files into /opt
cd $IPKG_OFFLINE_ROOT/usr/palm/applications/$APPID/opt
find sbin -type d -exec mkdir -p /opt/{} \;
find sbin -type f -exec ln -sf $IPKG_OFFLINE_ROOT/usr/palm/applications/$APPID/opt/{} /opt/{} \;
rm -f /etc/event.d/$APPID
mkdir -p /etc/event.d/
cp $IPKG_... |
db9847ca6be3b80b40527b4f6d662bd142ca8bf3 | 308 | #!/usr/bin/env bash
set -e
PLUGINS=$(cat plugins/windows_only.txt)
for d in $PLUGINS; do
if [ -d "$d" ]; then
plugin="$(basename "$d").exe"
echo " $plugin"
CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 \
$GO build -o "${PWD}/bin/$plugin" "$@" "$REPO_PATH"/$d
fi
done
|
57b414b773b5707134d1c07740f3fa8c6dbd653e | 1,269 | #!/bin/sh
export USER=${USER:=SYSTEM}
export PASSWORD=Toor1234
export HOST=${HOST:=sports-hana.mo.lmy.corp}
export PORT=${PORT:=30827}
export CHECK="#0"
export MAXTIME=${MAXTIME:=3600}
export SLEEPTIME=${SLEEPTIME:=10}
export IS_CLOUD=$(echo $HOST | grep 'hana.ondemand.com')
if [ -z "$IS_CLOUD" ]; then
export IS_CLO... |
cf08eb5ae82e991bde88ac5aa04b13a7f94118fd | 504 | #!/bin/bash
echo "Bash script to:"
echo " - Convert cpn60 database into proper fasta format."
echo "Source is http://haruspex.usask.ca/cpnDB/cpn60_a_nut"
echo "Damion Dooley, Dec 19, 2014"
echo "Running..."
file_name=$datadir/$dirversion/future_release/$1
# All entries with >v are preliminary / not valid yet.
sed --... |
e9029636e0e98f840835e5a1f8329d3186a59f1f | 76 | #!/bin/bash
cas=`date +%T" "%D`
echo $cas >> /home/student/skripty/cas.txt
|
cd38ae49494b5236ef2390522596ea0d799469ec | 210 | set -ex
USERNAME=treeder
IMAGE=bump
docker run --rm -v "$PWD":/go/src/github.com/treeder/bump -w /go/src/github.com/treeder/bump iron/go:dev sh -c 'go build -o bump'
docker build -t $USERNAME/$IMAGE:latest .
|
1b7b5205e0b25725c4689355262f08b9821c9b1e | 59 | zip jt-`date +%Y%m%d`_001.zip ants.py MyBot.py logutils.py
|
17eeaea66f222709f2a3c784add4995401f5bdaf | 426 | #!/bin/bash
source "/vagrant/scripts/common.sh"
function installRemoteKAFKA {
echo "install KAFKA from remote file"
curl ${CURL_OPTS} -o /vagrant/resources/$KAFKA_ARCHIVE -O -L $KAFKA_MIRROR_DOWNLOAD
tar -xzf /vagrant/resources/$KAFKA_ARCHIVE -C /usr/local
}
function installKAFKA {
installRemoteKAFKA
ln -s /us... |
1e8c15aed1896d0f3f45811d781d540845392919 | 4,257 | #!/bin/sh
# vim: smartindent tabstop=4 shiftwidth=4 expandtab number colorcolumn=100
#
# This file is part of the Assimilation Project.
#
# Author: Alan Robertson <alanr@unix.sh>
# Copyright (C) 2013 - Assimilation Systems Limited
#
# Free support is available from the Assimilation Project community - http://assimproj.... |
61b53eb20d72f9b7ea6c3e12a9125fcf42209f5e | 98 | # Telegraf Environment Variables
TG_MOSQUITTO_USERNAME=subclient
TG_MOSQUITTO_PASSWORD=questitto |
a1fa3c9b0ae047e5ee2c7436d33ee5a1e761e7bc | 1,676 | #!/bin/bash
export HAB_LICENSE="accept-no-persist"
if [ ! -e "/bin/hab" ]; then
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
fi
if grep "^hab:" /etc/passwd > /dev/null; then
echo "Hab user exists"
else
useradd hab && true
fi
if grep "^hab:" /etc/group >... |
136997b343543833ba1e9c1753df3cf59ef03e75 | 2,238 | #!/bin/bash
if [ $# != 5 ];then
echo "fname,folder,size,repeat,oname"
exit
fi
name=$1
fname=`echo $name|cut -d'.' -f1`
folder=$2
size=$3
repeat=$4
oname=$5
echo $repeat,$size
step=`echo | awk "{print $size-$size*$repeat}"`
step=`echo $step | cut -d. -f1`
echo 'step and size:'$step,$size
wi=`gdalinfo ${fname}.tif|gr... |
57b0b91769902b2c867214278435fd7ddf5cedfd | 460 | #!/bin/sh
RELEASE=3.6.3
sudo apt-get update
# install dependencies
sudo apt-get install libbz2-dev liblzma-dev libsqlite3-dev libncurses5-dev libgdbm-dev zlib1g-dev libreadline-dev libssl-dev tk-dev
# download and build Python
mkdir ~/python3
cd ~/python3
wget https://www.python.org/ftp/python/$RELEASE/Python-$RELE... |
736b2b71ffd8b41a9adf2f832504b498aa3f2553 | 4,045 | #!/bin/bash
#-----------------------------------------------------------------------------#
# Variables
#-----------------------------------------------------------------------------#
CURRENT_DIR=`pwd`
WORK_DIR=$1
#KERNEL_URL='https://github.com/altera-opensource/linux-socfpga.git'
KERNEL_FILE_URL='ftp://ftp.kernel.o... |
cdf0c27ba243658f705252557d7e345182d841aa | 357 | #!/bin/bash
#the variables PIM_DB_USER and PIM_DB_PASSWORD will be supplied using Kubernetes secrets in the pod definition
exec /wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 -DLDAP_HOST=$LDAP_HOST -DPIM_DB_USER=$PIM_DB_USER -DPIM_DB_PASSWORD=$PIM_DB_PASSWORD -DPIM_ADMIN_DB=$PIM_ADMIN_DB -DPIM_ROOT_DB=$PI... |
65ef700ae2e36281e92732ed9ab61e31d5b62a9f | 83 | #!/bin/bash
# script teste do Hello World
# 12/05/2015
clear
echo "Hello World"
|
a03b7dd5a517b227b2c379d9056490f311ffe604 | 287 | ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
docker run -it --privileged -v /tmp/.X11-unix:/tmp/.X11-unix --net=host \
-v $(pwd)/../../other:/home/ubuntu/other -v $(pwd)/..:/home/ubuntu/2020RobotCode -e DISPLAY=$ip:0 --user ubuntu frc900/zebros-2019-dev:latest /bin/bash
|
b6eb6e0f76d03cf858449557b2ac3ebb2c4d2855 | 5,280 | #!/bin/bash
# Wrapper script to launch parallel Find, file list aggregation & calculate total size from file list input
# Intended to be used with Slurm, leveraging job arrays
# This launcher script will submit Slurm job array for the parllel find execution, and dependencies for the aggregation and size calculation ta... |
5ff13dc31f876956a6860bda030d3314c6a9bb68 | 140 | #!/bin/bash
. ../mirror.sh
#inferno.bioinformatics.vt.edu::slackware
rsync \
-rvz \
--delete \
$SLACK_MIRROR_URL \
$SLAK_MIRROR_DIR
|
188bf5361ebd67dd46e50811aca8c6b40304fab1 | 51 | PORT=3001
API_SERVER_URL=https://api.negotium.space |
b7ac16b251b5fdf8e7d2df8b5714542b131fa2b9 | 1,697 | python ./src/method1/run_sentenceRoBERTa_filter.py --model_name_or_path=/home/niuyilin/pre-trained-models/sentence-robert-large-nli-mean-tokens/0_RoBERTa --output_dir=/home/niuyilin/pre-trained-models/sentence-robert-large-nli-mean-tokens/0_RoBERTa --num_train_epochs=4 --learning_rate=1e-5 --model_type=roberta --train_... |
85b45d692f9ba970cd9ad0209bf0418fd6c4bf8d | 13,522 | #!/usr/bin/env bash
export JENKINS_FAIL=0
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p $SCRIPT_DIR/outfiles
if [ -z $JENKINS ]; then
rm $SCRIPT_DIR/outfiles/*
fi
touch $SCRIPT_DIR/outfiles/log
export DFS_DISABLE_ASSERTIONS="true"
export DFS_DEFAULT_DEBUG_LEVEL=0
iter() {
testname=... |
1b431944d1b54822c6802779effeaa41f5cca08e | 18,226 | # --------------- DBWEBB-VALIDATE MAIN START HERE ---------------
#
# External tools
#
#HTMLHINT="dbwebb-htmlhint"
HTMLHINT="htmlhint"
HTMLHINT_OPTIONS=
HTMLHINT_CONFIG=
CSSLINT="csslint"
CSSLINT_OPTIONS="--quiet"
STYLELINT="stylelint"
STYLELINT_OPTIONS=""
SCSSLINT="stylelint"
SCSSLINT_OPTIONS=""
JSHINT="jshint"
E... |
77f70c6aa435df2f7025e9c5b00ff3a6d29905d4 | 15,723 | #!/bin/bash
# OSX-only stuff. Abort if not OSX.
[[ "$OSTYPE" == darwin* ]] || return 1
heading 'Configuring OS X'
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/... |
1dd9aedb27a858be8888b5ef0f857e79ffdccc8b | 989 |
#!/bin/bash
PROJECT_ID=cdn-demo-221916
ZONE=europe-west2-c
gcloud beta container --project "$PROJECT_ID" \
clusters create "standard-cluster-1" --zone "$ZONE"
--username "admin" --cluster-version "1.9.7-gke.7" \
--machine-type "g1-small" --image-type "COS" --disk-type "pd-standard" \
--disk-size "100" \
--scopes ... |
41087758849949b3e618d8b17ef0f90044b0b3fd | 10,639 | #!/bin/bash
#
# Begin functions
#
function begin() {
echo
echo +++++++++++++++++++++++++++ AWS DEPLOYMENT ++++++++++++++++++++++++++++++
}
function end() {
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo
exit
}
function create_environment() {
readonly ENV_TO_CREATE=$1... |
70d0162aa8b8eab9629fd5ee07f4d2760d1f9bf6 | 2,416 | #!/bin/bash
if [ ! -f /opt/virtuoso-opensource/database/virtuoso.db ]; then
echo "====================================================================="
echo "virtuoso.db doesn't seem to exist. This appears to be the first run."
echo "Therefore we are now going to secure the sparql endpoints"
cat /secure_sparql.is... |
6defbbf38f73e66f0577cd3992be7c7eb7143dde | 1,340 | #! /usr/bin/env bash
# Update system
apt-get update -y
# Create a swap file
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
# RVM
echo "Installing RVM..."
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A... |
73ccdd8421a0eee6e258ce21647e595524a9f31c | 68 | #!/usr/bin/env bash
tab --starship | sed -e 's,^tab ,,' -e 's,/,,'
|
7a90ea3ec149cb2b15d3ed3f17dfac8b481592e5 | 1,503 | # Maintainer: David Runge <dvzrv@archlinux.org>
pkgname=mephisto.lv2
pkgver=0.18.2
pkgrel=1
pkgdesc="A Just-in-Time FAUST compiler embedded in an LV2 plugin"
arch=(x86_64)
url="https://open-music-kontrollers.ch/lv2/mephisto/"
license=(Artistic2.0)
groups=(lv2-plugins pro-audio)
depends=(glibc libglvnd libvterm libx11 ... |
8a406324f18446572999ec26b53f1a08142deb20 | 406 | #!/bin/sh
HOME=$DEBUG_REAL_HOME steam steam://install/286690
echo $? > ~/install-exit-status
echo '#!/bin/sh
cd $DEBUG_REAL_HOME/.steam/steam/steamapps/common/Metro\ 2033\ Redux
HOME=$DEBUG_REAL_HOME LIBFRAMETIME_FILE=$LOG_FILE LD_PRELOAD=$TEST_EXTENDS/libframetime/libframetime.so ./metro -benchmark benchmarks\\\\b... |
e9f0e72343d6a64e172aabd4e9a3cd92548b02a0 | 135 | #!/bin/bash
echo Excuting ...
scala ~/BigData/008-WordCountInScala/WordCount.scala
echo Output written to ~/output/wordcount_scala.csv
|
2f13c9330638f46988560a67652228ba164f9c79 | 86 | #!/usr/bin/env bash
# Use Debian 8 variables.
. "$BASE_DIR/tmpl/vardistrib/debian-8"
|
87865ae19e539f4964e23a82afb917fccc0d37c5 | 64 | #!/bin/bash
docker build -t xcncip2toolkit/core "$(dirname $0)"
|
9826882a5f41937db70cc30c77c7b2f962240423 | 222 | #!/bin/sh
if [ "$#" -ne "3" ]; then
echo Uso: generar-datos-alumno.sh nombre_apellido legajo email
exit 1
fi
nombre=$1
legajo=$2
email=$3
(echo nombre:$nombre
echo legajo:$legajo
echo email:$email) > datos-alumno
|
54d6cfa326da30b324f838a9d9b08ed0ba6fdcc8 | 415 | #!/bin/bash
echo -n "Sciezka: "
read path
counter(){
for file in "$1"/*
do
if [ -d "$file" ]
then
echo "$file"
counterhelp "$file" "$2"
fi
done
}
counterhelp(){
for file in "$1"/*
do
if [ -d "$file" ]
then
echo -n "$2"
echo "$f... |
95ce506c4e5e3329b6fc0f3de4c552882b204793 | 772 | rm ising
mpic++ main.cpp tools.cpp treeofdevil.cpp solver.cpp periodicfunction.cpp -o ising -lgurobi_c++ -lgurobi65 -lpthread -lm -Wall -m64 -fPIE -fexceptions -frounding-math -O2 -I/Library/gurobi605/mac64/include/ -I/usr/local/include/ -I. -L/Library/gurobi605/mac64/lib/ -L/usr/local/lib/ -lboost_regex-mt -lboost... |
9a97323de4d7ead34cde22aeab3bf2694204a55c | 444 | sh 00_script_Mutect2.sh 20Gy_1_S01_S Liver_20Gy_1_G
sh 00_script_Mutect2.sh 20Gy_1_S03_S Liver_20Gy_1_G
sh 00_script_Mutect2.sh 8Gy_2_S01_S Panc_8Gy_2_G
sh 00_script_Mutect2.sh 8Gy_2_S02_S Panc_8Gy_2_G
sh 00_script_Mutect2.sh 2Gy_2_S03_S Liver_2Gy_2_G
sh 00_script_Mutect2.sh 2Gy_2_S04_S Liver_2Gy_2_G
sh 00_script_Mutec... |
4e7740fab15dd9654c0da8db9c2d3e7b5bcf2835 | 745 | #!/bin/bash
#Script used to change terminator colors.
CONFIG=~/.config/terminator/config
DARK_FG="\"#ffffff\""
DARK_BG="\"#333333\""
LIGHT_FG="\"#000000\""
LIGHT_BG="\"#ffffff\""
CURRENT=$(grep -e "foreground_color\ =\ " $CONFIG)
if [[ $CURRENT == " foreground_color = $LIGHT_FG" ]]; then
sed -i.bak "s/foregr... |
97a2f0e9ef7312610c37ffce82e14a99402a0806 | 2,697 | #!/bin/bash
# Editor
export EDITOR="vim"
# Upgraded ls
alias ls='ls -GFh'
alias rm='rm -i'
# Setting path
homebrew=/usr/local/bin:/usr/local/sbin
export PATH=$homebrew:$PATH
export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
export PATH="/Users/ajallooe/settings:$PATH"
#export PYTHON... |
bcaa4120afa7cb0c3382292ffb7a8829a185efd5 | 1,005 | #!/bin/bash
# setup-nethunter, version 1.00
ROOT_UID=0 # $UID = 0 is usually root.
E_NOTROOT=87 # Non-root exit error.
# Run as root
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "You're not running this script root previliges."
echo "Do sudo ./setup-nethunter.sh or su && ./setup-nethunter.sh"
exit $E_NOTROOT
fi
# Upd... |
1b486d5f1cd4929f84d5f7be35d2c04131c02c67 | 227 | echo demo10.sh-----------------
a=1.5
let "b = $a + 1.3" # 错误
# t2.sh: let: b = 1.5 + 1.3: syntax error in expression (error token is ".5 + 1.3") 意为表达式错误(错误的符号".5 + 1.3")
echo "b = $b" # b=1 |
623c17b11bfefeda1079ba4085cb63574639fd65 | 258 | #####################
# Stop mongo deamon #
#####################
echo "Stopping the mongo deamon, if running."
pid=`ps -u"alex" -opid,comm | grep "mongod" | awk '{print $1}'`
if [ "$pid" != "" ]
then
kill $pid
echo "mongod pid $pid, stopped."
fi
|
34d0ca893db75f242999a61687ea6a612acc6e06 | 220 | #!/bin/bash
while sleep 30
do
if pgrep -f /home/ubuntu/ads_bot/bin/bot >/dev/null
then
echo 'Yaaya' >/dev/null
else
ruby /home/ubuntu/ads_bot/bin/bot 2>/home/ubuntu/ads_bot/bot.log &! >/dev/null
fi
done
|
d2ad2c1aa59cd19b853e20b9c5adb62cd9ec5e27 | 73 | for file in [a-z]*.JPG
do
echo $file
mv $file ${file%%.JPG}.jpg;
done
|
9d63f8f2a6a2877c194d10cd66b578a02fda59dd | 630 | #!/bin/bash
set -ex
generate_docker_files() {
mkdir -p $1
cat Dockerfile \
| sed s/__PY_VER__/$1/ \
> $1/Dockerfile
cp get-pip.py $1/
}
build_docker_images() {
docker build --no-cache --force-rm --pull -t mrupgrade/deadsnakes:$1 $1/
}
test_image() {
docker run -it --rm mrupgrade/... |
2aad13ae4d57590bb628db7812bd2a5e1d5b4131 | 49 | curl "https://api.test.com/" -u ":some_password"
|
e104788b65bde6d87461be1070602711a4dfde42 | 553 | #!/bin/sh
date_t=$(date +"%Y-%m-%d-%H-%M-%S")
for i in $(seq 0 2)
do
ipaddr=$(ifconfig usb$i | grep "inet addr" | awk '{print $2}' | awk 'BEGIN {FS=":"} {print$2}')
echo $ipaddr
if [ "$ipaddr" = "" ]; then
continue
fi
date +"%Y-%m-%d %H:%M:%S" > /root/scanner/i... |
adf151bec641ac6b4b2329d23e0c6650909a277b | 658 | # On se déplace dans annotations
# remplacer <project>
# cd /shared/projects/<project>/annotations/hg38
cd /shared/projects/form_2022_32/coursLinux/demo/annotations/hg38
mkdir bed; cd bed
# On télécharge le fichier
wget https://zenodo.org/record/5716151/files/hg38_exons.bed.gz
# Le fichier compressé (finit par "... |
12372270d9b1e77b45f16e689ffa7899efb6e566 | 41 | #! /bin/sh
qlmanage -p "$1" > /dev/null
|
310b96c9814a091f292e416a1bf24cf0d0f436f3 | 242 | #!/usr/bin/env bash
set -e
export BUILD_TYPE=${BUILD_TYPE="_minimal"}
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
CMAKE_OS+=" -DENABLE_LIBRARIES=0 "
. $CUR_DIR/cmake.sh $*
. $CUR_DIR/make.sh clickhouse-bundle
. $CUR_DIR/server.sh
|
f34a2acc26cc5b78ad0b8f20c32ac4b13aea557f | 190 | #!/bin/bash
declare -A fruit
# 定义数组
fruit=([apple]='111' [orange]='222')
# 获取数组中的值
echo "apple price = ${fruit[apple]}"
# 获取数组中的key
echo "${!fruit[*]}"
|
bf48b709220c9b3ade95eb0235a65571aa490b87 | 149 | #!/bin/bash
for i in {31..40}
do
nohup smoldyn-cplx vchnl_5hz.txt.8ch > test.tmp.5hz
mv mol_ca_5hz.txt.8ch 5hz_8ch_trials/mol_ca_5hz.8ch.v$i
done
|
0dc64343f89024d9a378ec296a7047607cd75e8a | 212 | HOST = localhost
UDATABASE = root
PASSWORD = root
DATABASE = mydb
PUERTO = 3306
REGION = us-east-2,
S3_KEYC = AKIAXUASULOT3NT664EJ
S3_SECRETKEY = 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
API_VERSION = 2020-10-03 |
0a4f7daad0beb1ad48cc0fbd40d902467bbddccc | 398 | #!/bin/bash
echo "When running this script, make sure that the box is either on your local network or you are connected to the local network of the box."
echo "If 'ssh box' does not work, then this script won't work."
echo "Fetching box id..."
ssh box "ifconfig wlan0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,... |
54367d7ecf91f1c422b5049d6a6336c0db9c4f91 | 55 | DB_URL=mysql://root:root@127.0.01:3306/gsd?charset=UTF8 |
e7a8cff1aa76a44223060843c355e559fdf13abf | 1,549 | #!/usr/bin/env sh
. /etc/pkgmk.conf
. Pkgfile
OLD_VERSION='1.5.1'
[ -z "$PKGMK_WORK_DIR" ] && PKGMK_WORK_DIR="$PWD/work"
[ -z "$PKGMK_SOURCE_DIR" ] && PKGMK_SOURCE_DIR="$PWD"
if [ -e "$PKGMK_SOURCE_DIR/wesnoth-$version.tar.bz2" ]; then
echo 'You have the lateist source file.'
exit 0
fi
if [ -n "`pkginfo -i | egre... |
d0960456a569d92db4cbeea1da6f1bdb6654f312 | 342 | #!/bin/sh
export CGO_ENABLED=${CGO_ENABLED:-1}
export GOEXPERIMENT=boringcrypto
if [ "${CGO_ENABLED}" != "1" ]; then
echo "CGO_ENABLED=${CGO_ENABLED}, should be set to 1 for static goboring compilation" >&2
exit 1
fi
set -x
exec go build -ldflags "-linkmode=external -extldflags \"-static -Wl,--fatal-warnings\" ... |
43afe430b4ccf6deb1c15ffa3ecf9e0b0c6c87f8 | 156 | #!/bin/bash
saludos="Bienvenido/a "
user=$(whoami)
dia=$(date +%A)
echo "$saludos nuevamente $user"
echo " Hoy es $dia"
echo "ESPERO TENGAS UN GRAN DIA"
|
7f28a53390866cd36f15be771a630581963c6706 | 64 | # HISTORY
HISTSIZE=50000
SAVEHIST=49000
HISTFILE=~/.zsh_history
|
834a691366d24aa29f7e5308ba7c22d0a36703d1 | 489 | #!/usr/bin/env bash
mod.install() {
ellipsis.link_files "$mod_path/common"
case "$(ellipsis.platform)" in
cygwin*)
ellipsis.link_files "$mod_path/platform/cygwin"
;;
darwin)
ellipsis.link_files "$mod_path/platform/osx"
;;
freebsd)
... |
214cd83b255612306f467e7d6320d70b364f7d34 | 63 | /data/data/com.termux/files/home/scripts/randomWallpaper-get.sh |
abf485d9536fdff2c086c274e2c4a443c1375218 | 32 | #! /bin/dash
fork zathura "$@"
|
0cf562c738de725b4bb26a3cc7d94826e0b2231f | 1,485 | #!/bin/sh
echo "Begin $0"
THIS=`basename $0`
THISDIR=`dirname $0`; THISDIR=`cd $THISDIR;pwd`
THIS_HOSTNAME=`hostname --long`
echo "Current hostname: $THIS_HOSTNAME"
echo "Current folder: $THISDIR"
## load utils functions
function replace_global {
local pattern=$1;
local replacement=$2;
local file=$3;
... |
0fe8f380eec29f7b45aa3f5f744c8f0507d7cab4 | 221 | #!/usr/bin/env bash
echo "Generating Simbotic Sandbox project files"
echo "----------------------"
"$SIMBOTIC_ENGINE"/GenerateProjectFiles.sh -project="$SIMBOTIC_SANDBOX"/Sandbox.uproject -game -engine -Makefile -vscode
|
1e22a3b4983deb727f6eb312749ca1518425ac01 | 233 | #!/bin/bash
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration.
#
# Test script.
#
# Return the correct code:
set -e
# Run the test:
chappy.py StoreGateTests/atn_test_sgProducerConsumerDataPool_jobOptions.py
|
a0dec744a28285c5779a770eef49ab5d41bac1a6 | 130 | #!/bin/bash
# Use this script to re-deploy the WAR to a running liberty test server
mvn -e -DskipTests clean pre-integration-test
|
52aced63c6124f02bf70e85fb94717388f9c53c5 | 397 | #!/bin/sh
# Copy client and cloud node files to blockchain-bootcamp.com/files for downloading.
for ff in connect.sh geth.sh; do
aws --profile luottamus s3 cp client/$ff s3://blockchain-bootcamp/files/client/$ff
done
for ff in account.passwd account.json genesis.json ethereum.sh ethereum.py index.html; do
aws --pro... |
5595c43674af2b774e40302531267c2cee5254fa | 405 | #1 launching the peer and writing the log to peer.log
peer node start 2> ./$CORE_PEER_ID.log &
sleep 10
#2 Checking the peer status
peer node status
#3 Fetch the genesis for the channel - this leads to creation of commercialpaperchannel
peer channel fetch 0 -o $ORDERER_ADDRESS -c commercialpaperchannel
#4 Joing ... |
31613afe8f6630a4c50b50faf4403f9c9ea13c44 | 99 | TMDB_API_KEY=260465034a27680187bf3f997beccf9d
DATABASE=movieclaps
DATABASE_USER=
DATABASE_PASSWORD= |
71ae786a1f037356a0ddd384dc16b57af53b4eb0 | 194 | MONGO_DB_URL=mongodb+srv://Admin:admin@cluster0.doajv.mongodb.net/test?authSource=admin&replicaSet=atlas-o56b24-shard-0&readPreference=primary&appname=MongoDB%20Compass&ssl=true
SERVER_PORT=8008 |
83a5b9b4dfa841fc0fdb40a018e1bcbc93ba38d2 | 105 | #!/bin/bash
echo "pid is $$"
while (( count < 10 ))
do
sleep 10
(( count++ ))
echo $count
done
exit 0
|
009ee5c4232fa0f9b1f11c863efd66a2a6d823e5 | 1,123 | ## Hard info
cat /proc/cpuinfo
cat /proc/meminfo
free –m
## Disk IO
dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
dd if=/dev/zero of=test bs=8k count=256k conv=fdatasync
## Test speed
wget https://cachefly.cachefly.net/100mb.test
wget freevps.us/downloads/bench.sh -O - -o /dev/null | bash
## OneinStack(https:/... |
6442393778466497694dd5b3ed9903ef8952f614 | 169 | #!/bin/bash
# start tmux first
tmux new-session -c /home/thomas/lisa2019 -s lisa
tmux neww -n glibc
tmux neww -n vagrant
tmux neww -n ttyd
# start ttyd
#./ttyd-start
|
b7cd066770861e5018a0abcff24ac9364dffc958 | 147 | #!bin/bash
grep -E '08:00:00 AM' 0312_Dealer_schedule > 03128AM.txt
awk '{print $1, $2, $5, $6}' 03128AM.txt >> Dealers_working_during_losses.txt
|
4bf70fdbd3f91c6ddc7b3359eedd90fccfdbfbe1 | 1,013 | !/bin/bash
cd `dirname $0`
BIN_DIR=`pwd`
cd ..
DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/conf
LIB_DIR=$DEPLOY_DIR/lib
LOGS_DIR=$DEPLOY_DIR/logs
LIB_JARS=`ls $LIB_DIR|grep .jar|awk '{print "'$LIB_DIR'/"$0}'|tr "\n" ":"`
CLASSPATH="$LIB_JARS:$CONF_DIR"
STDOUT_FILE=$LOGS_DIR/stdout.log
JAVA_MEM_OPTS=""
BITS=`java -version 2>&... |
2ddee2cbf8a9dd7b593d97cece1c2c532ad23971 | 133 | #!/bin/sh
service nginx start
certbot certonly --webroot --webroot-path /var/www/html
cp -r /etc/letsencrypt/archive/* /root/result
|
ff779affa44ff981a744df0e173fdf6b34ea615f | 533 | #!/bin/bash
cd /home/share
sudo yum localinstall oracle* --nogpgcheck -y
sudo echo "export ORACLE_HOME=/usr/lib/oracle/12.2/client64" >> /home/vagrant/.bash_profile
sudo echo "export PATH=$ORACLE_HOME/bin:$PATH" >> /home/vagrant/.bash_profile
sudo echo "export LD_LIBRARY_PATH=$ORACLE_HOME/lib" >> /home/vagrant/.bash_p... |
a367dc1476159ad6f27dabf46f2751a58c6672f1 | 1,221 | #!/bin/bash
# Source: http://crunchbang.org/forums/viewtopic.php?pid=137566#p137566
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
BLK RED GRN YEL BLU MAG CYN WHT
──────────────────────────────────────────────────... |
bfaf4835c0960f3262625d98095ca10e88d6d36b | 109 | JWT_SECRET_KEY=
SALT_ROUNDS=
DATABASE_URL=
SUPPORT_EMAIL_HOST=
SUPPORT_EMAIL_ADDRESS=
SUPPORT_EMAIL_PASSWORD= |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.