blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
92eaa584fae8bccb8edb4e76984e3d225ca567da | 338 | #!/bin/bash
for SCANS in FIXME XXX TODO;
do
find . -name '*.py' \
-exec grep -i --files-with-matches $SCANS {} \; \
-exec grep -i --line-number --color=always -C 5 $SCANS {} \;
find . -name '*.php' \
-exec grep -i --files-with-matches $SCANS {} \; \
-exec grep -i --line-number --color=always -C 5 $... |
2a27292ec57f86631e01428a4828694c91b32c04 | 1,558 | #!/bin/bash
# This is a simple build script and will be executed on your CI system if
# available. Otherwise it will execute while your application is stopped
# before the deploy step. This script gets executed directly, so it
# could be python, php, ruby, etc.
# Download, Build and Install Memcached
# I found this... |
ee21d7a54c8af8c53073766c3530c96f12078e1a | 67 | #!/bin/bash
cd ..
cargo build --release
cp target/release/bench .
|
963f4154eadf2c89e540b5fb2734323fc08c2ce1 | 726 | #!/bin/bash
AKS_ID=/subscriptions/39d07b0f-88c5-40cc-b714-ffff1bca236f/resourcegroups/teamResources/providers/Microsoft.ContainerService/managedClusters/securecluster
## Web Dev
WEBDEV_GROUP_ID=$(az ad group create \
--display-name Web-dev \
--mail-nickname webdev \
--query objectId -o tsv)
az role assig... |
e9a62f0c6bf46169d00db37090182870df02fab2 | 1,093 | #!/bin/bash
set -eu
cd $(dirname "$0")
NETWORK_NAME=$1
source "$NETWORK_NAME.env"
cd ..
if [ -f .env ]; then
# allow server overrides for WWW_DIR and DATA_DIR
source .env
fi
PUBLIC_IP=$(curl -s ifconfig.me)
NETWORK_DIR=$WWW_DIR/$NETWORK_NAME
NIM_FLAGS="-d:release -d:SECONDS_PER_SLOT=$SECONDS_PER_SLOT -d:SHAR... |
4edeece097e7d223f37cb313b8a74c14264ed3db | 69 | docker-compose up --build -d
curl 127.0.0.1:8181
docker-compose down
|
f9b761cd3efaf67b32dee0287d53d88d610d8abf | 627 | # ドキュメント作成
bundle exec rake doc
npm run-script doc
if [ "${TRAVIS_PULL_REQUEST}" == false ] && [ "${TRAVIS_BRANCH}" == "develop" ]; then
git clone --quiet --single-branch -b gh-pages git://github.com/sh19910711/web-graph-visualizer.git tmp/gh-pages \
&& cp -r tmp/doc tmp/gh-pages/ \
&& cd tmp/gh-pages/ \
... |
de29f58baa66fe6c7b13a468d1283e69165ed33e | 2,941 | #!/usr/bin/env bash
echo ======================
echo == PREPARING CENTOS ==
echo ======================
yum -y update
# For Python
yum -y groupinstall development
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
# For Mahout
yum -y install opencl-headers
yum -y install redhat-lsb-core
... |
c4eb13063f893abb4024ff5a4f7fba7010ead261 | 185 | #!/bin/bash
. functions.sh || exit 1
reset bin_prot_03.ml
package bin_prot
tell <<END
module Test_binprot = struct
type 'a t = { x : int ; y : 'a } with bin_io
end
END
cmd dump env
|
02aadfa1115801332dc4fa083a1f171943daf20e | 1,371 | [ -z "$PS1" ] && return
# history related
HISTCONTROL=ignoredups:ignorespace
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
# check for resize
shopt -s checkwinsize
# enable colors
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
... |
3d868c1f6363341fac702ad2df47e7c79b0de799 | 1,656 | #!/bin/bash
# ATLAS logs don't grant read access to other accounts but atlas
# Hence we need to dump the logs to a location where the monitoring user can read them
source_location="/home/atlas/RunAtlas"
target_location="/home/montty2/RunAtlas"
main_log_name="log.EVNTtoHITS"
athena_log_name="AthenaMP.log"
athena_worke... |
a8eaef8f5ce1fe4de8cf5ece5479e68bfb403a9f | 150 | #!/bin/bash
DOCKERID=`cat .dockerid`
echo "Running docker image $DOCKERID"
docker run -u $UID -v $PWD:/opt/website:z -p 4567:4567 -it $DOCKERID $@
|
ba3b36e36e9bc26f7efe536709e0012c6db16c46 | 93 | [ -n "$PS1" ] && source ~/.bash_profile;
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
|
e714fa7335e819013150f80d14c781cca4814d92 | 607 | APP_ENV=local
APP_KEY=base64:l0tm7Jole4uq91ZRTi8YM5GzNnU80DImbbrLrJltn78=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=localhost
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=esport
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=12... |
0e2c37415cd9867d951852c607ed7bcf1167615f | 72 | #!/bin/bash -x
hugo -t whiteplain
git add docs
git commit -m "rebuild"
|
da60704e6c92eec6d4c1fb7644399da3cb54abe1 | 225 | echo "Version 1"
echo "sleeping 2"
sleep 2
echo "open pipe"
#echo "NET ALLOW http://www.google.ca" | nc -vv 192.168.0.19 7777
echo "NET ALLOW http://www.google.ca" | nc -vv 172.28.2.0 7777
wget www.google.ca
wget www.bing.ca
|
a3f0034cb398382a84436b13450f0cf42fccc9d9 | 367 | echo -e "\n---- Install WkHtmlToPdf 0.12.1 ----"
sudo wget -P Downloads http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
cd Downloads
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
cd /usr/local/bin
sudo cp wkhtmltoimage /usr/bin/wkhtmltoimage
sudo cp wkhtmltopdf /usr/bin/wk... |
8749743cc90557c82078da3c65e92efb9ab6053d | 382 | #!/bin/sh
SINK=$(pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1)
VOL=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
pactl set-sink-mute "$SINK" 0
if test `expr $VOL + 5` -gt 100;
then
pactl set-sink-volum... |
586a3d4bfef756603a91f60d8b02869d3df0612c | 196 | #!/bin/bash
echo "Start install"
sudo mkdir -p /usr/share/fonts/truetype/custom
echo "Installing font"
sudo cp Monaco_Linux.ttf /usr/share/fonts/truetype/custom/
sudo fc-cache -f -v
echo "Enjoy"
|
51275baea680db1834e5b6facf2ff2a6cda18238 | 198 | #!/bin/bash
if [ -z "$@" ]
then
echo 'lock'
echo 'logout'
echo 'switch_user'
echo 'suspend'
echo 'hibernate'
echo 'reboot'
echo 'shutdown'
else
i3exit $@
exit 0
fi
|
535774eed05cb2548d83e55d4e975f509d45d811 | 179 | #!/bin/bash
erl +K true +t 5000000 +Q 1048576 +P 1048576 -env ERL_MAX_ETS_TABLES 999999 -name mini@127.0.0.1 -setcookie mini_server -pa ebin deps/ebin app -s tk start -detached
|
69b0bcc21fb5ab77c187556508469a1e05002884 | 1,990 | #!/bin/bash
global_variables()
{
doc_root=/appl/stats/webdocs
port_no=9999
log_dir=/logs/python_web
logfile=$log_dir/startup.log
pidfile=$log_dir/python_web.pid
if [ ! -d ${log_dir} ]
then
mkdir ${log_dir}
fi
}
##################### Don't Modify Beoynd This ##################... |
1c26a432765a9845c812250123e2c7f91291c85f | 82 | AWS_ACCESS_KEY_ID=12345689987
AWS_SECRET_ACCESS_KEY=omgileakedthiskeyasecondtime!
|
f5585f1facb22a95a458b70489004d3bb3b1c128 | 784 | #!/usr/bin/env bash
if [ ! -f grafana_2.1.3_amd64.deb ]
then
wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.1.3_amd64.deb
fi
sudo apt-get install -y adduser libfontconfig
sudo dpkg -i grafana_2.1.3_amd64.deb
line='deb https://packagecloud.io/grafana/stable/debian/ wheezy main'
more /etc/apt/sources.list ... |
3ce4bfec7e2c876c1ac38be22790816fdcb7785e | 339 | #!/bin/sh
if [-z $1 ]; then
echo "No report specified. You must enter the name of the new report."
fi
REPORT = $1
echo "Create new report named '$REPORT'..."
RET = `mkdir $REPORT`
if ![ $RET == 0 ]; then
echo "Error: Report directory already exists."
fi
echo "Done. Now edit the following:"
echo "\treports/$RE... |
f925e47f63d45856377708b5168370ec531f5dfe | 226 | #!/usr/bin/env bash
# Install git
sudo apt install -y git
#Clone repo
cd /home/yc-user
git clone -b monolith https://github.com/express42/reddit.git
#Install dependicies
cd reddit && bundle install
#Start project
puma -d
|
4f23fd41a11ae9505b823885cf9d252d565f2f57 | 197 | #!/usr/bin/env bash
# This script cuts and reads certain columns in the file passwd, located in the etc directory
while IFS= read -r line
do
echo "$line" | cut -d ":" -f1,3,6
done < "/etc/passwd"
|
ccc9948c338c684468b41c3b42a6c0d0664496e7 | 3,675 | #!/usr/bin/env bash
conf="$HOME/.config"
scp="$HOME/.scripts"
DEPS_PACMAN=(
"arandr"
"dunst"
"feh"
"fzf"
"git"
"htop"
"i3-gaps"
"nasm"
"playerctl"
"pulseaudio"
"python-pip"
"qutebrowser"
"redshift"
"surf"
"sxhkd"
"vlc"
"zathura"
"zathura-pdf-mupd... |
b700c9b6db406170264cb877d6840d349f4c6b08 | 21 | FLASK_APP = myblog.py |
0205177b56a29f8fea9450ad7a4f4c7a4d4728f6 | 437 | # Build the dockerfile for the engironment
if [ ! -z $(docker images -q tensorrt_ssd:latest) ]; then
echo "Dockerfile has already been built"
else
echo "Building docker image"
docker build -f dockerfiles/Dockerfile --tag=tensorrt_ssd .
fi
# Start the docker container
echo "Starting docker container"
docker run --r... |
cd1aa933447a5c9139486b47bee7f3db7839a012 | 1,343 | #!/bin/bash
###############################
RELDIR=`dirname $0`
ABSDIR=`cd $RELDIR;pwd`
PYTHON="/usr/bin/python"
###############################
ARGNUM=$#
###############################
function step1()
{
if [ $? -eq 0 ]; then
$PYTHON $ABSDIR/CheckAndInit.py
else
exit 1
fi
}
functio... |
89cb7c5886379ac5fff5e62a55e3f30f8acd61d3 | 266 | #!/bin/bash
openssl genrsa -out key.rsa 2048
openssl base64 -in key.rsa -out key64.rsa
docker run --name demo-plb-mongo -d mongo
docker build -t api-demo-plb-img .
docker run --name demo-plb-api -p 127.0.0.1:4000:4000 --link demo-plb-mongo:mongo -d api-demo-plb-img
|
302a35f28e55e2862f93f85835de3e8f1faf5111 | 112 | #!/bin/sh
/usr/local/demo/bin/weston-st-egl-cube-tex --video=/usr/local/demo/media/ST2297_visionv3.webm -f -a
|
1aa85bf9c28b42a23ac1dbdcd7699e49378f7710 | 82 | #!/bin/bash
docker build -t spark2/spark-hadoop-cluster .
./startHadoopCluster.sh
|
31b940d237fa55b580a39b1024f776f165fb3873 | 281 | #!/bin/bash
python train_deep_sdf.py -e examples/sofas -c latest
python train_deep_sdf.py -e examples/planes -c latest
python train_deep_sdf.py -e examples/lamps -c latest
python train_deep_sdf.py -e examples/tables -c latest
python train_deep_sdf.py -e examples/chairs -c latest
|
1e7287061127137b437d4a57abb374eebc8e5796 | 74 | #!/bin/bash
LC_ALL="en_US.UTF-8" python3 local/recapitalize_first_word.py
|
0bae15748e75916d77cc56433975bfc373d8b03a | 592 | #!/bin/sh
set -e
COMMONDIR=d-freedesktop
if [ ! -d $COMMONDIR/source ]; then
mkdir -p $COMMONDIR/source
fi
if [ ! -d repos ]; then
mkdir -p repos
fi
REPOS=repos
for repo in inilike desktopfile icontheme mimeapps xdgpaths mime
do
if [ ! -d $REPOS/$repo ]; then
(cd $REPOS && git clone https://gi... |
4ea2b95f84c397c3c06cee45bb63cd7ffdebc16e | 2,433 | #!/usr/bin/env bash
#nameserver 127.0.0.53
#search consul
which unzip curl socat jq route dig vim || {
apt-get update -y
apt-get install unzip socat jq dnsutils net-tools vim curl -y
}
# Install consul\
CONSUL_VER=${CONSUL_VER}
which consul || {
echo "Determining Consul version to install ..."
CHECKPOINT_URL="htt... |
eb866f0049d9d8b6e97c09c5130222f56a081059 | 71 | curl -i $publicURL/marktwain?format=xml -X GET -H "X-Auth-Token:$token" |
2c4b167720e9e94bd905c2097b82c389b3191b39 | 89 | #!/bin/sh
touch tmp/restart.txt
echo "reloading nginx config"
sudo service nginx reload
|
19769bbcfc90f767b809e089ee8b92eaaf6e981d | 447 | #!/bin/bash
docker login
docker rm -f news_service
#Set env variables
export NEWSADDR=:80
export APIKEY="`cat ./news_api.key`"
export SQLADDR=3306
export MYSQL_ROOT_PASSWORD="sqlkey"
export DSN="root:$MYSQL_ROOT_PASSWORD@tcp(sql_server:$SQLADDR)/mysql"
#News Service
docker pull 2charm/news_service
docker run -d --net... |
18a56d102eb3ef245a9276d9cb21535d19754fcf | 229 | #!/bin/bash
rm -rf build/arm
mkdir -p build/arm
mkdir -p libs/arm
cd build/arm
cmake -DDEBUG=OFF -DCMAKE_TOOLCHAIN_FILE=../../ios.toolchain.cmake -DENABLE_ARC=1 -DIOS_PLATFORM=OS ../../
make
mv libdata-reporter.a ../../libs/arm/
|
3fce0347a9c878ab4e12bb23959fd486706c13ad | 350 | #!/bin/sh
# post-removal script.
# echo "+ removing settings"
# rm -f "${IPKG_INSTROOT}/hbbp/p2ptbl/update"
# sed \
# -e "/gwip gossip/d" \
# -i "${IPKG_INSTROOT}/etc/crontabs/root"
# sed \
# -e "/inetable watcher/d" \
# -i "${IPKG_INSTROOT}/etc/crontabs/root"
# sed \
# -e "/FFRL-FW/d" \
# -i "${IPKG_I... |
d9fd838b37a0bf6cca6341269d1e8abfea154a8d | 257 | #!/bin/sh
virtualenv --no-site-packages --clear env
. /usr/local/virtualenvs/ceeq_new/bin/activate
pip install --download-cache /tmp/jenkins/pip-cache -r requirements/jenkins.txt
python manage.py jenkins --enable-coverage --settings=ceeq.settings.jenkins |
5e276f23b72e6648560e6eabe0b096015822a97b | 2,638 | ##!/bin/bash
# This script will go to a folder with the output of the simulations and gather the fixed and proposed mutations in tables
# in a subfolder called "Final_results"
# $1 = path to the directory with results from simulations
# $2 = number of replicates in that simulation
cd $1
num_reps=$2
mkdir Final_resu... |
cd4808d6c5f38499d345aaefabd06fac9e658cfc | 46 | #!/bin/bash
docker build -t twoon/logtest:2 . |
839e37d2adc01d74ab4e21222fe711eae52949fa | 364 | #!/usr/bin/env bash
# Usage: ./hacking/make-docs.sh
# Run build, which will remove previously installed versions
./hacking/build.sh
# Install new built version
ansible-galaxy collection install networktocode-nautobot-*.tar.gz -f
# Run antisbull-docs now
antsibull-docs collection --use-current --squash-hierarchy --d... |
5752d5db18349dd1e36d98de05c8cd5cd74ba19b | 1,368 | if [ ! -n "$WERCKER_IKACHAN_SERVER" ]; then
error 'Please specify server property'
exit 1
fi
if [ ! -n "$WERCKER_IKACHAN_PORT" ]; then
error 'Please specify port property'
exit 1
fi
if [ ! -n "$WERCKER_IKACHAN_CHANNEL" ]; then
error 'Please specify channel property'
exit 1
fi
if [ ! -n "$DEPLOY" ]; then
... |
42a28473867699bb44ad69bd7e2eff41ff781453 | 1,963 | ### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/... |
d7e895d1e2142ca21ab4fd3a8a91ef9532a4963d | 783 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function isodate {
echo $(date --iso-8601=seconds)
}
xset m 0 0
mouse_id=$1
speed=$2
echo "$(isodate) mouse_id: $mouse_id" 2>&1 | tee -a "$DIR/mouse.log"
echo "$(isodate) speed: $speed" 2>&1 | tee -a "$DIR/mouse.log"
xinput set-prop $mouse_id "... |
4b125264aa6d0f7dab3dece719c0926a666940cc | 168 | #!/bin/bash
sbt universal:packageZipTarball
docker build -f modules/fetchers/homematic/docker/dev/Dockerfile -t razemio/metatron:dev .
docker push razemio/metatron:dev |
e85fa63273f8d277f7dfd6c2417ff4b43f1d6ab8 | 727 | #!/bin/sh
# PROVIDE: owntone
# REQUIRE: avahi_daemon dbus
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# owntone_enable (bool): Set to NO by default.
# Set it to YES to enable owntone.
# owntone_config (path): Set to %%PREFIX%%/etc/owntone.conf
# by de... |
6286c2697b7335e999c67ae7451d93afa7f8a112 | 1,338 | # Source default FZF aliases
if [ -f /usr/share/fzf/key-bindings.zsh ]; then
. /usr/share/fzf/key-bindings.zsh
elif [ -f /usr/share/fzf/shell/key-bindings.zsh ]; then
. /usr/share/fzf/shell/key-bindings.zsh
elif [ -f /opt/homebrew/opt/fzf/shell/key-bindings.zsh ]; then
. /opt/homebrew/opt/fzf/shell/key-bindings.z... |
1aaa436d86aaaf6abd0d61a0a381a5aea62a4277 | 1,168 | #!/usr/bin/env bash
services="server"
rm_secrets () {
for x in $services; do
docker secret rm "$x""_cert"
docker secret rm "$x""_key"
done
}
gen_key_cert () {
BASE_DOMAIN="$1"
DAYS=1095
CONFIG_FILE="config.txt"
cat > $CONFIG_FILE <<-EOF
[req]
default_bits = 2048
prompt = no
d... |
2abb5f5b44df4130c6a04871e4b0d3289b340ed6 | 125 | #!/bin/bash
if nc -zw1 8.8.8.8 53; then
bash /opt/openflixr/updateof
else
echo "Can't update, no Internet Access"
exit 1
fi
|
f2d076f81d5df7278dcd41963d5d578b47f3c1c8 | 992 | #!/bin/sh
#IPKG='../ipkg-utils-1.7/ipkg-build'
PKGROOT='maemo/advancedcaching/src/'
VERSION=$1
BUILD=$2
if [ "$VERSION" == "" ] ; then
echo "gimme version, plz"
exit
fi
if [ "$BUILD" == "" ] ; then
echo "gimme build, plz"
exit
fi
cp files/advancedcaching-48.png $PKGROOT/usr/share/icons/hicolor/48x48/hildon/ad... |
3a940a3094e4e622c2ef60ac9fb05fe640955483 | 106 | NODE_ENV=test
CUSTOM_ENV=local
PORT=3000
API_URL=http://localhost:3000/graphql
HOST=http://localhost:3000
|
431189e5a3dde604555ee47f41433adab20fd784 | 86 | brew install vim --with-override-system-vi
brew install tree lftp trash wget dos2unix
|
a57f83c103b09a65556a918d7b78c23a23b64497 | 91 | #!/bin/sh
notify-send -u critical "lunch" "No handler exists for '$1' ($2: '$3')"
exit 96
|
a1c2afcab84b05c64126b5d93bfa16298d17c5cb | 2,486 | #!/bin/bash
set -euxo pipefail
NGINX_VERSION="1.25.2"
VOD_MODULE_VERSION="1.31"
SECURE_TOKEN_MODULE_VERSION="1.5"
RTMP_MODULE_VERSION="1.2.2"
cp /etc/apt/sources.list /etc/apt/sources.list.d/sources-src.list
sed -i 's|deb http|deb-src http|g' /etc/apt/sources.list.d/sources-src.list
apt-get update
apt-get -yqq buil... |
51296f2bb89c77382e5d1b7679c409a5bf847730 | 51 | NEXT_PUBLIC_API_URL=https://rickandmortyapi.com/api |
003353a04703d2d2ba2581113641ae01ba1c1518 | 3,156 | #!/bin/sh
PLUGIN_DESCRIPTION="Create a new $CLI_MAIN_COMMAND CLI project"
PLUGIN_AUTHORS="Greg"
PLUGIN_VERSION="0.0.1"
PLUGIN_NOT_REMOVABLE=1
check_files_and_dirs() {
for _D in "$@" ; do
if [ ! -d "$_D" ] && [ ! -f "$_D" ] ; then
echo "$_D not found"
exit 1
fi
done
}
ok() {
_MSG="$1"
read... |
78cd4d64ea05c89a96852a37264857bd714bac7a | 612 | #!/usr/bin/env bash
#docker rm starburst-demo-latest
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo $DIR
docker run \
-v $DIR/etc/catalog:/usr/lib/starburst/etc/catalog \
-v $DIR/log:/var/log/starburst \
-v $DIR/etc/config.properties:/usr/lib/starburst/etc/starburst/config.properties \... |
a9a5ad9ee3db1e2641dd17dd5c8457d40476f361 | 2,267 | # Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Duck Hunt <vaporeon@tfwno.gf>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable LTO
pkgbase=mgba
pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
pkgver=0.10.2
pkgrel=2
arch=('x8... |
8555769ef436800b984afc491292c152fc2c4661 | 308 | #!/bin/bash
echo "Waiting for robot name"
while [ -z "$ROBOT_NAME" ]; do
ROBOT_NAME=$(rosparam get /robot_names 2>/dev/null)
sleep 0.5
done
echo "Robot name is '$ROBOT_NAME'"
/opt/ros/melodic/lib/teleop_twist_keyboard/teleop_twist_keyboard.py cmd_vel:=/${ROBOT_NAME}/cmd_vel_osgar __name:=keyboard
|
596beb4d15ce4d51df0da437e2639f2fe0fa99fa | 1,862 | # Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="bira"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="... |
c839ae78bcb6e8f440ea1afd3959defba943a06b | 667 | #!/bin/bash
# Install cohomCalg
echo "Installing cohomCalg package to \${USER_LOCAL}/bin..."
mathpath=$(which math | rev | cut -d'/' -f1,2 --complement | rev)
mathmsg=$(${mathpath}/monitorlm 2>&1 | head -c -1)
if [[ "${mathmsg}" != "Could not find a MathLM server." ]]
then
initfile=$(math -noprompt -run "WriteSt... |
c301693d6532497cc3a81121744ef09461bf03e4 | 70 | #!/bin/bash
/opt/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX
|
b2a9e509a179cfd2488ae6cf4f408885b1685e11 | 83 | cd hugo
hugo
cd ..
git add .
git commit -m "update site"
git push -u origin master
|
1daf4797dd23eaaaae76f8d4d8266af6491d1fe2 | 4,847 | #!/bin/bash
# Based on the excellent community work here : https://www.domoticz.com/forum/viewtopic.php?t=6264
# Adapted to my configuration
# Last Update 20160903
# Used to detect if smartphones are in by l2ping on bluetooth and if no response search for the smartphone in arp table
## Installation ##
# Add this script... |
1979ddac3fb11aa32c52c7f48e3077bc5d7e3662 | 865 | #!/bin/bash
set -e
#
# Generates a changelog in reStructuredText from the commit history of
# the packages in Packages/Framework.
#
# Needs the following environment variables
#
# VERSION the version that is "to be released", e.g "4.1.0"
# PREVIOUS_VERSION the last released version, e.g. "4.0.0"
# BUILD_URL ... |
dcfc9f5f58f0832f313b2982ebb4673662515deb | 268 | # introduce the library
#!/bin/sh
# ask the user his name
echo "HELLO"
echo "WHAT IS YOUR NAME?"
# enter the name
read "name"
# print user name
echo "YOU ARE $name"
# making the folder of his name
mkdir $name
cd $name
# making a cpp_file of his name
touch $name.cpp
|
5ee1ba92833cf810feccdae8e68b0ca6f1c873ae | 669 | #!/bin/bash
#-------------------------------------#
# #
# DEVELOPED BY : NISAL PRIYANKA #
# #
#-------------------------------------#
if [[ $1 == 'stop' ]];
then
#run the parser script [TO key DECODE]
python parse.py
kill $(ps aux | awk '/[b]ackup/ {print $2}')
exit #exit the scr... |
b2c7cd5b339b47dba5aae72ebe42474fbf40d360 | 307 | #!/bin/sh
SRC=$1
DEST=$2
# Copy filesystem
dd if=/dev/${SRC} of=/dev/${DEST} conv=sparse bs=1M
# Mount filesystem and install Marketplace customizations
mkdir -p /mnt/image
mount /dev/xbd7a /mnt/image
tar -cf- -C /home/ec2-user/ec2-bits/etc.marketplace . | tar -xpof- -C /mnt/image/etc
umount /dev/xbd7a
|
0ed416d624702c6b153e02b802f2c0126b866c8b | 1,377 | #!/bin/sh
function print_usage(){
cat <<END
$0 - Convert asciidoc to concordion html
SYNOPSIS
$0 [-f] <TxtFile> <htmlDir|htmlFile>
DESCRIPTION
This program convert an asciidoc text file to concodion
instrumented html file. For example:
$0 TestCase1.txt TestCases/
will convert TestCase1.tx... |
1b7cfc613324fd4054ec8958ce42964fad2d5bbc | 234 | #!/usr/bin/env bash
# Bash script that displays the content of the file /etc/passwd.
# script should only display:
# username
# user id
# Home directory path for the user
while IFS= read
do
cut -d ":" -f 1,3,6
done < /etc/passwd
|
6723c9f61f484a52164901373b4ecd9908d04f03 | 53 | #!/bin/bash
echo "Hello World"
echo "i am in master"
|
b64f28f57473132011eeeb1744ed1349684a55cf | 338 | #!/bin/bash
rm ~/rpmbuild/RPMS/x86_64/libmlx4-*
tar zcvf libmlx4-1.0.5.tar.gz libmlx4-1.0.5/*
cp libmlx4-1.0.5/libmlx4.spec ~/rpmbuild/SPECS/
mv libmlx4-1.0.5.tar.gz ~/rpmbuild/SOURCES/
cd ~/rpmbuild/SPECS/
rpmbuild -bb libmlx4.spec
service opensmd stop
rpm -Uvh --force ~/rpmbuild/RPMS/x86_64/libmlx4-*.rpm
serv... |
1204c8f571cf250d6959cd3bda3b095412cf0601 | 498 | #!/bin/sh
#
# Usage: build.sh [version]
#
# If version is omitted, fetch the latest from GitHub.
#
set -eo pipefail
readonly REPO=sourcegraph/src-cli
VERSION="$1"
if [ "$VERSION" = "" ] ; then
VERSION=$(curl --silent "https://api.github.com/repos/$REPO/releases/latest" \
| jq -r .tag_name)
fi
echo "-- Buildin... |
12b68de17b377796c69d01d45c5b9758d6da4013 | 1,087 | # Contributor: robb_force <robb_force@holybuffalo.net>
pkgname=uf-fox
_pkgname=uf-FOX
pkgver=1.1
pkgrel=1
pkgdesc="A frontend for the uCON64 rom backup and management tool."
url="http://ucon64.sourceforge.net/index.php"
arch=('i686' 'x86_64')
license="GPL"
depends=('ucon64' 'fox-legacy' 'fox')
source=(http://downloads.... |
6f6232c0061c9ac57a00b61a7838403e2d5c36fb | 72 | docker run -d -p 4567:4567 --name pullapi-api-docs -v $(pwd):/app slate
|
38d74b259ee641a3107cf3fce4168266e2206c69 | 471 | #!/bin/sh
# @author: Zhanliang Liu
# @description: get https://3g.dxy.cn/newh5/view/pneumonia hourly
HOME=/home/zliu
#url="https://3g.dxy.cn/newh5/view/pneumonia"
url="https://ncov.dxy.cn/ncovh5/view/pneumonia"
echo "Starting download ${url}"
CURR_PATH=`cd $(dirname $0);pwd;`
cd $CURR_PATH
ts=`date +%Y%m%d%H%M... |
aed28d4cf9b779664dd36746e15556e03204dfc7 | 5,115 | #!/usr/bin/env sh
# ranger supports enhanced previews. If the option "use_preview_script"
# is set to True and this file exists, this script will be called and its
# output is displayed in ranger. ANSI color codes are supported.
# NOTES: This script is considered a configuration file. If you upgrade
# ranger, it wi... |
85a582a38cc7ddfdb5f305d16700365dee90335b | 1,733 | #!/bin/bash
cd $(dirname $0)
source ./src/config.sh
rebuild=0
clean=0
log=0
parallel_runs=$default_parallel_runs
function get_args {
while [[ $# -gt 0 ]]
do
arg=$1
case $arg in
-r|--rebuild)
rebuild=1
shift
;;
-c|--clean)
... |
506accea4c02c499bf33d7f32dbce53463ac91be | 3,151 | #export PATH=/usr/local/jdk1.6.0/bin/:/usr/local/cmake-2.4.7-Linux-i386/bin/:$PATH
export IGSTKVT_HOME=/home/igstk/IGSTK/IGSTK-VT-ELO
/usr/bin/startx &
export DISPLAY=:0
cd /home/igstk/IGSTK/IGSTK-HEAD/
/usr/bin/cvs -d:pserver:anonymous@public.kitware.com:/cvsroot/IGSTK update -APd
cd /home/igstk/IGSTK/IGSTK-HEAD-bin/... |
c2fb1a26ec64642c833cfc24607a64baaaba3f1d | 124 | #!/bin/bash
set -ex
# Download NNDC HDF5 data, ENDF/B-VII.1 distribution, multipole library
source tools/ci/download-xs.sh
|
ba08118d3a2cca112f10147193d02981e4da06be | 399 | #!/usr/bin/env bash
. utils.sh
prnt "Installing kubemaster load balancer on $loadbalancer"
if [[ "$this_host_ip" = "$loadbalancer" ]] || [[ "$this_host_name" = "$loadbalancer" ]]; then
sudo apt update
sudo apt install -y haproxy
sudo apt autoremove -y
else
remote_cmd $loadbalancer apt update
remote_cmd $loadb... |
da6cebb2a6505a45fac04ca0b874ac294b3fb14c | 215 | #!/usr/bin/env bash
DOCKERHUB_REPOSITORY=${1:-"crs4"}
DOCKERHUB_IMAGE_NAME=${2:-"locust"}
# Build Locust image
echo "Building the Locust image..."
docker build -t ${DOCKERHUB_REPOSITORY}/${DOCKERHUB_IMAGE_NAME} .
|
20078b247bc8b6541493fc5270569f37a1eb9257 | 200 | if [ $1 ]; then
sudo borg list $1
else
echo
echo "ERROR: Backup folder argument is missing. Use folder name to display backup set or FOLDER_NAME::BACKUP_SET to display files."
echo
fi
|
efe90a42801cbbdec35ec2b8825e036087210ff3 | 1,000 | #!/bin/bash -ex
set -x;
DIR="$(cd "$(dirname "$0")" && pwd)"
NPM_RUN_SCRIPT='startDev'
if [ "${ENVIRONMENT}" = "production" ]; then
NPM_RUN_SCRIPT='startProd'
fi
# Stop/Remove Existing Node
docker stop node
docker rm node
MONGOD_CONTAINER_IP=$(docker inspect mongod --format '{{ .NetworkSettings.IPAddress }}')
doc... |
0839f03bd609e8ff037ee80ea45e38133342d3a7 | 1,037 | #This script is written to be installed on Debian.
#Sources on https://xen-orchestra.com/docs/from_the_sources.html
sudo apt-get install -y cifs-utils nfs-common
sudo apt-get install -y curl software-properties-common
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get install -y nodejs
sudo npm i... |
a76ae08a2da4070d9b75fac279bb84b511afea9b | 178 | #!/bin/bash
sudo mkdir -p /opt/spark
cd /opt/spark
sudo wget http://apache.go-parts.com/spark/spark-1.4.1/spark-1.4.1.tgz
sudo tar -czvf spark-1.4.1.tgz
sudo rm spark-1.4.1.tgz
|
391772c41b1dd290b609d6803a69b01b4273136d | 182 | #! /bin/sh
#
# mpv.sh
# Copyright (C) 2020 Shlomi Fish <shlomif@cpan.org>
#
# Distributed under the terms of the MIT license.
#
set -e -x
git clone https://github.com/mpv-player/mpv
|
db501b4812c7c7ae46c21c1ecb5fc573e1254fb8 | 73 | #!/bin/sh
#
# This script tests storage management.
aldor -Wtest+store2
|
4466b589ec3fd019ec514cf0df9098c051d5429e | 403 | #!/usr/bin bash
echo "正在重启项目。。。"
echo "web 服务器重启。。。"
killall -9 uwsgi3;
killall -9 uwsgi3;
killall -9 uwsgi3;
uwsgi3 -i /www/wwwroot/api.freaks.group/server/uwsgi.ini;
supervisorctl restart daphne;
echo "web 服务器已启动"
echo "celery 重启。。。"
/etc/init.d/celeryd restart;
/etc/init.d/celerybeat restart;
echo "celery 已启动"
ec... |
cbd9459196cf5400074ccd45df3b87968fc599a4 | 118 | #!/bin/bash
CWD=$(pwd -P)
cat /dev/urandom | base64 | head -c 5 > $CWD/entropy && \
git commit -am "wip" && git push
|
7e98233ce0a04f3039c09ffa2570e437c0e236f5 | 106 | #!/bin/sh
set -e
./manage.py migrate
exec uwsgi --http :${LISTEN_PORT} --module currency_converter.wsgi
|
bae0ddac8e9e58afe4d93dc501d7d186c4b6658d | 381 | #! /usr/bin/env nix-shell
#! nix-shell -i bash -p sshpass
set -euo pipefail
MESSAGE=$1
PORT=1337
sshpass -p "hamster2" ssh \
-p ${PORT} \
-o UserKnownHostsFile=/dev/null \
-o StrictHostKeyChecking=no \
-o LogLevel=ERROR \
root@localhost "bash -c \"
apt-get update
apt-get -y install toilet
echo $MESSAGE | t... |
bc2bec9b781b5521154918a383f523c2ef59f09f | 3,401 | #!/usr/bin/env bash
#
# https://github.com/adnanh/webhook
# docker install webhook
#
log() {
echo -e "\e[1;35m------------------------ $@ ------------------------------\e[0m"
}
die() {
printf 'error: %s.\n' "$1" >&2
exit 1
}
glob() {
case $1 in $2) return 0; esac; return 1
}
yn() {
printf '%s [y/... |
cb49fb15313031a3da20c62ee113ca45286dbe73 | 59 | #!/bin/bash
clear
echo "Jessie is an awesome princess! :)"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.