blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
8ed19b436b51a1c7ab83fbaff54b5c4fd4477559 | 98 | #! /usr/bin/env zsh
~/.i3blocks-scripts/i3blocks-contrib/bandwidth/bandwidth -i ' ' -o ' '
|
cb6263592df49b4fc67b7d62628b55b80c2e4232 | 246 | #!/bin/bash
l=0
n=0
s=0
touch counterResult
FILES=./*.csv
for f in $FILES
do
$f >> counterResult
wc -w $f >> counterResult
n=$[ $n + 1 ]
s=$[ $s + $l ]
done
echo "$n files in total, with $s lines in total"
#!/bin/bash
|
44be5fae9c983adf4fa63756e301e1870696007a | 182 | cp kaiser/src/main/resources/sartography_application.properties kaiser/src/main/resources/application.properties
./gradlew kaiser:war
cp kaiser/build/libs/kaiser-0.0.1.war kaiser.war |
f18443c7207430a084550bc5a1eb3ea1b239b71f | 1,656 | #!/bin/bash
live_machines="$(VBoxManage list runningvms)"
#echo $live_machines
if [[ $live_machines =~ .*Centos7_Minimal.* ]]
then
echo "###### Taking down vm for restoration process ######"
VBoxManage controlvm Centos7_Minimal poweroff
fi
sleep 3s
echo -e "\n###### Restoring VM to base snapshot ######"
VBo... |
f1e0a785f28c935e2c3848ebb75e661e96d56a9b | 94 | #!/bin/sh
#
# autobuild
libtoolize -c
aclocal
autoheader
autoconf
automake -a -c
|
180966ff80e2daaa6c5c5e4546a7a03cc90f5652 | 55 | #!/bin/sh
docker-compose stop && docker-compose rm -f
|
daa1b95b55a46063679598418874d32498264feb | 1,057 | #!/bin/bash
# JSON Uglifier - Remove whitespaces from JSON document.
# Copyright (C) 2008-2015 Richard Huang <rickypc@users.noreply.github.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Fr... |
3fcb1c9aff8549d4ee4ab96ca982ad481cd6a232 | 1,707 | #!/bin/sh
CONF="/etc/config/qpkg.conf"
CONTAINER_STATION_NAME="container-station"
CONTAINER_STATION_PATH=$(/sbin/getcfg $CONTAINER_STATION_NAME Install_Path -f $CONF)
mountlocaltime=" -v /etc/localtime:/etc/localtime"
SYSTEM_MOUNT=" -v /etc/qbus:/etc/qbus -v $CONTAINER_STATION_PATH/usr/bin/.libs/qbus:/bin/qbus -v /va... |
dbfe8c1d1e9a290a573b12d9140758c1f0e7b046 | 1,753 | #!/bin/sh
# You have to execute this script ONLY ONCE.
# This script does the following things:
# 1. Fetch this repo
# 2. Install basic dependencies
set -eu
DOTPATH=${HOME}/dotfiles
REPO_URL=https://github.com/magurotuna/dotfiles.git
REPO_TARBALL=https://github.com/magurotuna/dotfiles/archive/master.tar.gz
function... |
be52d9459d61ca27d66d9e8ed179450149672588 | 396 | #!/bin/bash
set -u
set -o pipefail
# Try to ensure we have config first
$SNAP/bin/sentry config list >/dev/null
if [ $? -ne 0 ]; then
echo "Sentry is not initialised yet, so there is no need to migrate the database."
echo "Exiting and allowing the refresh to continue as normal."
exit 0
fi
echo "Migrating ... |
7f21db6c5397544f7fc02353e185bba48b8fdd6d | 3,378 | #!/usr/bin/env bash
#
# unit test for helper for building the README.md
#
source ../build_doc.sh
output_split_lines() {
local oldIFS=$IFS
IFS=$'\n'
local i=0
local l
for l in $output
do
lines[$i]=$l
i=$((i+1))
done
IFS=$oldIFS
}
setup() {
# https://github.com/docopt/docopts/issues/39
if ... |
a2bd125a7b17369582fb4ca9ad055612fed7bc80 | 68 | HOSTNAME=$(shell hostname)
VOLUME_DIR=/mnt/gv0/volumes
DNS=10.0.0.1
|
123435a8b4bf16a9afa801f91f765049ea23ef04 | 226 | #!/bin/bash
if [ $1 == true ]; then
if ! [ -d $HOME/EAA/backups ]; then
mkdir $HOME/EAA/backups
fi
tar czf week4backup.tar.gz $HOME/EAA/week4
mv week4backup.tar.gz $HOME/EAA/backups
else
tar -xzvf week4backup.tar.gz
fi
|
36e7bcfa2b07210d796e7793113c0379a4894f50 | 1,128 | #!/bin/bash
# needed variables taken from environment
TOKEN=${PLUGIN_TOKEN}
CONTAINER=${PLUGIN_CONTAINER}
APP=${PLUGIN_APP}
# will be used to release app to heroku
PAYLOAD='{
"updates": [
{
"type": "web",
"docker_image": "IMAGE_ID_TO_REPLACE"
}
]
}'
echo "using Container=${CONTAINER}"
echo "u... |
04961af839749f7d7cad576c4918fe7c75b29ada | 492 | # -*- mode: sh -*-
Z=~/.zsh
# language options
setopt function_argzero
# module / dependency loading
# require: load & initialize a separate module
# provide: mark the module as loaded (if it does not provide an eponym function)
function require() { for name ($*) autoload -Uz $name && $name; }
function provide() { fo... |
10b1a6ad5086232e05bccac702906b18aa3e84c6 | 2,208 | #!/bin/bash
usage(){
echo 'Usage: git ls [-h | --help] [-b | --batch | -c | --color] [-a | --all] [[--] directory]'
}
dotfiles=0
colors=1
formatting=1
while :
do
case "$1" in
--help|-h)
usage
exit 0
;;
-a|-A|-all)
shift
dotfiles=1
;;
-c|-C|--colo... |
22e62797da7bc26c707908d9aaae6869f8837115 | 134 | #!/bin/bash
script_dir=`dirname $0`
snapshot_prefix='sysctl.conf.'
/bin/ls -1 ${snapshot_prefix}* | sed "s/^.*${snapshot_prefix}//"
|
05d73da8f622a43e14d655252e5d2c1052724431 | 4,178 | #!/bin/bash
project="dst-admin" # 项目名称
sys=$(uname -s) # 操作系统
machine=$(uname -m) # 架构版本
darwin_steamcmd_link="https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz"
linux_steamcmd_link="https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"
# 创建Linux服务器环境
create() {
... |
e169d4605b2506b5181a3217d86964f7f9322a09 | 202 | #!/bin/bash
if [ -n "$1" ] && [ "$1" == "-task" ];
then
echo "Задание"
echo "77. Удалить все пустые строки в конце файла"
echo
echo
fi
sed '/^$/d' file.txt |
2d9ef700bf7f4016ac464a5a20dbb9da1e462fe2 | 1,987 | #!/bin/bash
HADOOP_HOME="/opt/hadoop"
HADOOP_SBIN_DIR="/opt/hadoop/sbin"
HADOOP_CONF_DIR="/opt/hadoop/etc/hadoop"
YARN_CONF_DIR="/opt/hadoop/etc/hadoop"
. "/root/.bashrc"
if [ "$HOSTNAME_MASTER" != "" ]; then
sed "s/HOSTNAME/$HOSTNAME_MASTER/" /opt/hadoop/etc/hadoop/core-site.xml.template > /opt/hadoop/etc/hadoop/co... |
1e5a77e58a74f65c192dd85bf31f848517a87585 | 1,198 | #!/usr/bin/env bash
IMAGE_ROOT_TRAIN=../vehicle-triplet-reid/VRIC/train_images ; shift
IMAGE_ROOT_TEST=../vehicle-triplet-reid/VeRi_with_plate/image_test; shift
INIT_CHECKPT=./pre_trained_model/resnet_v1_101.ckpt ; shift
EXP_ROOT=./experiments/VRIC_resnet101_test ; shift
python train_usevalidation.py \
--train_s... |
fd3f8f3e81e04d6a027cfc5f5df0d964a0d920e5 | 665 | # Maintainer: Ainola
# Contributor: Vinícius dos Santos Oliveira
pkgname=gnomato
pkgver=1.1.0
pkgrel=1
pkgdesc="A timer for Pomodoro Technique"
arch=(i686 x86_64)
url="https://github.com/diegorubin/gnomato"
license=('GPL3')
depends=('gtkmm3' 'libnotify' 'boost-libs' 'python2')
makedepends=('intltool' 'gettext' 'boost'... |
744e0bf43b9e8513fbd16f14eea3954239a37243 | 101 | #!/bin/bash
mkdir arches
mkdir data
mkdir embeddings
mkdir param_json
mkdir runs
mkdir scheduled_hp
|
123d0977765931e55d25b1256dbdd9d83b3ac20d | 775 | #!/bin/bash
# Check flag item variables to make sure that they are set
getopts_validate() {
if [ -z "$HOST" ] || [ -z "$TOKEN" ] || [ -z "$FILENAME" ]; then
if [ -z "$HOST" ]; then
echo "Missing -h <closedstack url>"
echo "summon.sh -h <url> -t <closedstack api token> -f <path to server list file>"
... |
6fbece084ea2a1e823aad033ad7d3218464ea411 | 103 | #!/bin/bash
rm -rf /tmp/hadoop1207*
for i in {65..85}
do
ssh node0$i "rm -rf /tmp/hadoop1207*"
done |
93d8ab257556e53fff608defb1070e07a6667a7c | 4,197 | #!/bin/bash
echo ""
echo "Applying migration SponsoringOrganisationDetails"
echo "Adding routes to conf/app.routes"
echo "" >> ../conf/app.routes
echo "GET /:srn/new-return/sponsoringOrganisationDetails controllers.chargeC.SponsoringOrganisationDetailsController.onPageLoad(mode: Mode = ... |
bb20e58bd3b75662ae68ce806326d4e969105297 | 165 | #!/bin/bash
eye "$@" --tactic limited-answer 1 --n3 http://josd.github.io/eye/reasoning/fib/fib.n3 --query http://josd.github.io/eye/reasoning/fib/fibQ.n3 > fibE.n3
|
2d527a00a5713d8fa81ad61dee5aa65dd80c48b9 | 148 | PROJECT_DIR=/home/pi/display-app
exec python $PROJECT_DIR/display-enviro.py >> $PROJECT_DIR/logs.log &
echo "kill -9 $!" > $PROJECT_DIR/shutdown.sh
|
701d0fcbccc88d05955b330d0d032ab60c0d213a | 1,608 | ####################################################################
#Script Details:- This script for user managment activity #
#Auther:- Ravindra Kudache Date:- 21-08-20 #
####################################################################
echo "Please select one of the codition
... |
a1f6ed25ce7fbd78feeb9eef90a60fcf64c08876 | 237 | #!/bin/bash
#builds and configures Gorda java-components
#TODO: First, compile and install the gapi-components
#THEN sed the pom.xml of postgresql-component to point to 0.5-SNAPSHOT of gapi
#THEN compile and install postgresql-component |
2abf83fb982c2ef9672a2b515d4d70522ff96828 | 572 | #!/bin/sh
cat > ./src/db/migrations/$(date +"%Y%m%d%H%M%S")-$1.js << EOF
// @ts-check
/**
* @param {import('sequelize').QueryInterface} queryInterface
* @param {import('sequelize').SequelizeStatic} Sequelize
*/
module.exports.up = (queryInterface, Sequelize) => {
// Write migration code here.
};
/**
* @param {i... |
c82bef51db72f453f69386a18a57d862d0b96bac | 142 | #!/bin/bash
# percy snapshot public --snapshots_regex="(components\/preview.).*\.html$" --enable_javascript --trace --widths "375,1024,1280"
|
c4d3b5ad62a3159da7d15354c95dcc7d386804f8 | 513 | # Maintainer: Chris Warrick <aur@chriswarrick.com>
pkgname=ob-autostart
pkgver=1
pkgrel=3
pkgdesc="A simple autostart application for Openbox"
arch=('any')
url="http://crunchbanglinux.org/forums/topic/2614/"
license=('GPL2')
depends=('python' 'pygtk')
#optdepends=('python-notify')
source=('ob-autostart') #from http://... |
10cb74c47e357a7f12cd3df6da49349c00cf2246 | 511 | #!/bin/bash
echo 'The following "npm" command builds your Node.js/React application for'
echo 'production in the local "build" directory (i.e. within the appropriate'
echo 'subdirectory of "/var/jenkins_home/workspace/"), correctly bundles React'
echo 'in production mode and optimizes the build for the best performance... |
28422df399379d841558a39340baa98e44ac2cc8 | 118 | #!/bin/bash
echo "CheckStream"
pidof='pidof vlc' if [[ -z $pidof ]]
then
exit
else
/home/pi/Script/Stream.sh fi
exit
|
d4fab129262037671aabf437192082961aa0e2d5 | 917 | #!/bin/bash
cd /Users/luho/Desktop/evolution_analysis/data/cds_seq/
for i in *_code_align.fasta
do
hyphy busted --alignment /Users/luho/Desktop/evolution_analysis/data/cds_seq/$i --tree /Users/luho/Desktop/evolution_analysis/data/tree/${i%_code_align.fasta}_aa_unroot.tre --branches Foreground --srv Yes --output /User... |
1b708af89172b0fa7e87f080ac4129f9d4095c69 | 262 | cmake -B build \
-DCMAKE_C_FLAGS="-msse4.2" \
-DCMAKE_CXX_FLAGS="-msse4.2 -D_LIBCPP_DISABLE_AVAILABILITY" \
-DCMAKE_C_STANDARD=11 \
-DCMAKE_C_STANDARD_REQUIRED=ON \
-DCMAKE_INSTALL_PREFIX=$PREFIX
make -C build VERBOSE=1
make -C build install
|
a3321207a7cad48c99fe8f852c865036ff0a99e2 | 1,275 | # Maintainer: David Grayson <davidegrayson@gmail.com>
_realname=perk
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git"
pkgver=r78.f82c537
pkgrel=1
pkgdesc="Portable Executable (PE) Resource Kit (mingw-w64)"
arch=('any')
url="https://github.com/bitcoin/${_realname}"
license=('custom')
ma... |
3a1ed9dbc4b20cbbf9b9c2af9aad01c7177728de | 135 | #!/bin/bash
export NODE_PATH=$NODE_PATH:.
if [ -z $1 ];
then mocha --recursive --bail tests;
else
mocha --recursive --bail $1;
fi;
|
eb1b5bbd7768a30ce5c9de99bb30e9ac2c4f6f54 | 64 | #!/bin/sh
# dokku
alias dokku='bash $HOME/bin/dokku_client.sh'
|
6f09bcfdb2499f58dd456fc46078bc42465c8d78 | 1,115 | #!/bin/sh
#Script para configuracao da placa de rede local manual
ifconfig #Usado para listar as interfaces disponiveis
echo
read -p "Qual interface de rede deseja configurar? " INTF #Seta qual interface será configurada
echo
read -p "Informe o IP destinado ao host EX(192.168.1.25): " IP #Armazena qual IP será atribu... |
cf246a9085377c4ca37f0a9aba7297d43f7afa96 | 674 | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
TARGET="${1:-}"
DOTFILES=$(find ${TARGET}/ -type f -name '.*' -not -name .DS_Store -not -name .git -not -name .gitignore -not -name .dotfiles | sed -e 's|//|/|' | sed -e 's|./.|.|')
source $DIR/utils... |
f4706f43025fdb17e8b7bc4e8e89662e277f8edb | 655 | #!/usr/bin/env bash
# shellcheck disable=SC2164
cd "$(dirname "${BASH_SOURCE[0]}")"
# Upload all packages to a Nexus3 server, with a raw repository named 'gradle-distribution
NEXUS_SERVER="${NEXUS_SERVER:-127.0.0.1}"
NEXUS_RAW_REPO="${NEXUS_RAW_REPO:-gradle-distribution}"
DIST_DIR="${1:-build/distributions}"
for file i... |
0e6b664719cc488a561ba444c0d4293810123d2c | 57 | #! /bin/bash
cd /home/pi/atten
nohup python ./atten.py &
|
bc43e88e357dc64194bcf9b044ba9d80c69ce38b | 4,485 | #!/bin/bash
# Settings
cwd=$(pwd)
# functions for text formatting
info () {
printf " [ \033[00;34m..\033[0m ] $1"
}
user () {
printf "\r [ \033[0;33m?\033[0m ] $1 "
}
success () {
printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
}
fail () {
printf "\r\033[2K [\033[0;31mFAIL\033[0m] $1\n"
echo ''
exit
... |
4a6a97bff8833d137a9e3e5b910992baf2e1c79e | 453 | APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=UTC
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
JWT_SECRET=secret
MAIL_DRIVER=smtp
MAIL_HOST=
MAIL... |
f9115ec9223d0c20c0640667b3ff267941509a5a | 289 | #!/bin/sh
cd /usr/src/app
if [[ ! -e /installed ]]; then
touch /installed
echo "Not installed yet, run init scripts"
echo "Database (ecto) create & migrate"
mix ecto.create && mix ecto.migrate
echo "Run tests"
mix test
fi
exec mix phx.server "$@"
|
97e62e5de4c04c74df1080bd529ddef46c73c1ce | 2,185 | #!/bin/bash
set -e
WL_HOME=/opt/weblogic/wlserver
# See if WebLogic domain already exists.
if [ ! -d "/srv/weblogic/$WEBLOGIC_DOMAIN/config" ]; then
# It does not. Create it.
# Find or generate domain admin password.
if [ -z "$WEBLOGIC_PWD" ]; then
if [ -f /run/secrets/weblogic_admin_password ]; ... |
36931c3de7c6d9cb84c07be3e2cc0ca40f84d3e6 | 143 | curl https://raw.githubusercontent.com/monperrus/crawler-user-agents/master/crawler-user-agents.json > tests/fixtures/crawler-user-agents.json
|
8dcc007ac005de5724e8313b509ba446db4eb84a | 517 | #!/bin/bash
today_date=$(date -u +"%Y-%m-%d")
today_ts=$(date -d $today_date +%s)
goaccess <(cat website_on_caddy.log | jq --raw-output '
.request.remote_addr |= .[:-6] |
select(.request.remote_addr != "1.2.3.4") |
select(.ts >= '$today_ts') |
[
.common_log,
.request.headers.Referer[0] // "... |
3aaa24e71548b80796dabbc932f412f9a84c1963 | 2,433 | #!/bin/bash
export _gbtproject_=`pwd`
export LD_LIBRARY_PATH=/opt/Anaconda3-5.0.1/lib
bin=../bin/xgboost-g++-omp-dense-halftrick-short-splitonnode-fitmem-release
hist=../bin/xgb-latest
tagname=`basename $bin`
echo "run speedup test with tagname=$tagname"
if [ ! -f $bin ]; then
echo "Usage: run-speedup.sh <bin>... |
52c2d44b97fe4f10d2d58952aacd7ae724d536fa | 133 | man() {
local width=$(tput cols)
[[ $width -gt $MANWIDTH ]] && width=$MANWIDTH
env LC_CTYPE=C MANWIDTH=$width man "$@"
}
|
177875c6923bb1eb4ad7e0cd01080483a26b1bd0 | 549 | # compile icsharp (the awb version)
# packages directory needs to be created manually because otehrwise nuget doesnot work
cd /home/condauser/icsharp \
&& . /opt/mono/env.sh \
&& mkdir /home/condauser/icsharp/packages \
&& mono ./.nuget/NuGet.exe restore ./icSharp.sln \
&& xbuild ./iCSharp.sln /property:Configu... |
ae61ab1d88d185f65fb535a7854dc8eb67e3620a | 203 | #!/bin/bash
echo 'Before:';
echo;
# Show Memory
free -m;
# Clear the Random Access Memory
echo;
sudo sh -c "sync; echo '3' > /proc/sys/vm/drop_caches";
echo;
echo 'After:';
echo;
# Show Memory
free -m;
|
db0a19f32da1042ec1d820829855e34267d0143c | 155 | clang++ -std=c++1y -stdlib=libc++ main.cpp -lsupc++ -Os -DLIBRARY="\"libc++\"" && ./a.out; g++ -std=c++1y main.cpp -Os -DLIBRARY="\"libstdc++\"" && ./a.out |
5a1200909609f64b481c624e7c1d37f776c75feb | 230 | confirm()
{
local resp
while true
do
echo -n "$* [y/n]"
read resp
case $resp
in
[yY])
return 0
;;
[nN])
return 1
;;
*)
echo "Please enter y or n"
esac
done
}
|
b0a734078ac7230310d0ae4cda006986334161a4 | 169 | #proc2.sh
#!/bin/bash
echo "SUPPORTED FILESYSTEM TYPES:"
echo ---------------------------------------------------------
cat /proc/filesystems | awk -F'\t' '{print $2}'
|
a16233d8044485d0f0ddae1d6cefa7c281566a0d | 1,328 | #!/bin/bash
export model=$1
export config_file=$GWS_PATH/software/slstr_calibration_ftp_retriever/config/slstr_cpa_level0_$model'.cfg'
export lockfile=$GWS_PATH/s3_slstr_raw_data/$model/flight/level0_data/level0_lock.txt
export output_dir=$GWS_PATH/s3_slstr_raw_data/$model/flight/level0_data/
export log_dir=$GWS_PATH... |
1c00b21080b74bb0bd69d1e3320f1d9b31ace490 | 1,387 | #!/bin/bash
# shellcheck disable=SC2086
source settings.sh
source bLOG.sh
log_load pGO
source tENV.sh
CONT=$PROJ_CONT
CONT_DIR=$PROJ_CONT_DIR
CONT_MNT_DIR=$PROJ_CONT_MNT_DIR
HOST=$PROJ_HOST
HOST_DIR=$(pwd)$PROJ_HOST_DIR
HOST_MNT_DIR=$(pwd)$PROJ_HOST_MNT_DIR
IMG=$PROJ_IMG
IP=$PROJ_IP
LABEL=$PROJ_LABEL
MODE=$PROJ_MOD... |
18fb28691d534e2e2b84e184954e91341836cb2a | 1,627 | #!/usr/bin/env nix-shell
#! nix-shell -i sh
set -e
set -o pipefail
dotnet tool restore
version_js="$(dotnet tool run nbgv get-version --format json)"
export Version=$(echo $version_js | jq -r '.AssemblyInformationalVersion')
echo Tag: $Version
export PackageVersion=$(echo $version_js | jq -r '.NuGetPackageVersion')
... |
c8eb79453daa6740377c606bface335f75a45789 | 1,168 | #!/bin/sh
VERSION_NUMBER=$1
MONICA_NAME="monica_$VERSION_NUMBER"
ARTIFACT_ROOT="artifact"
ARTIFACT_FOLDER="$ARTIFACT_ROOT/$MONICA_NAME"
SQLITE_FOLDER="sqlite-db"
ARTIFACT_SQLITE_FOLDER="$ARTIFACT_FOLDER/$SQLITE_FOLDER"
DEPLOY_FOLDER="deployartefact"
rm -rf $DEPLOY_FOLDER
rm -rf $ARTIFACT_ROOT
mkdir -p $ARTIFACT_FOLD... |
6755d0f29579311926124000f3d1eb51608118d1 | 2,415 | # vi: filetype=sh
# bashrc might be sourced for non-interactive shells, in particular scp,
# see http://lists.gnu.org/archive/html/bug-bash/2012-06/msg00028.html
# scp breaks when it encounters output, so all echos etc. must be avoided,
# and explicitly only happen when in interactive mode
#
# I also put aliases and a... |
c2df705dad424b28c91889c320e192bdf89cb69c | 321 | #!/bin/sh -e
# Instalar en /etc/network/if-up.d/addip2issue
if [ "$METHOD" = loopback ]; then
exit 0
fi
# Only run from ifup.
if [ "$MODE" != start ]; then
exit 0
fi
cat /etc/issue-original > /etc/issue
/usr/local/bin/get-ip-address >> /etc/issue
echo "" >> /etc/issue... |
0482fe683466c30847f9a8b631a8f0d7584be4e1 | 57 | #!/bin/bash
exec python3 -m git-package-manager.gpm $@
|
c97b3b961eb7bc0907b852626e17e3e1a452b9e2 | 569 | #!/bin/sh
BASEDIR=$(dirname "$0")
. $BASEDIR/env.sh
# ------------------------------------
PID=`ps -ef | grep java | grep "=$SERVER_NAME" | awk '{print $2}'`
if [ e$PID == "e" ]
then
echo "JBOSS($SERVER_NAME) is not RUNNING..."
exit;
fi
# ------------------------------------
UNAME=`id -u -n`
if [ e$UNAME != "... |
b0b2895029e2740b4f2f5444e371945d775f09e6 | 413 | #!/bin/bash
set -e
# This setup assumes you have antlr4 installed on your system
# as described at https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
java \
-Xmx500M \
-cp "/usr/local/lib/antlr-4.8-complete.jar:$CLASSPATH" \
org.antlr.v4.Tool \
-Dlanguage=Go solidity-antlr4/Solidity.g4... |
63324e9ff279780322b785290006a149ff190619 | 115 | #!/bin/sh
tmux new-session \; split-window -h \; split-window -v \; select-pane -t 1 \; split-window -v \; attach
|
2b92f5f26222b10f5d4646f207897290dee3b2e8 | 1,457 | #/bin/bash
#获取版本信息
ver="jdk_"`echo $1 | awk -F "-" '{print $2}'`
version=`echo $1 | awk -F "-" '{print $2}'`
#移动目录并解压
if [ ! -d "/opt/java" ]; then
echo -e "\e[1;32m 已创建 /opt/java 目录 \e[0m"
mkdir /opt/java
fi
if [ ! -f $1 ]; then
echo -e "\e[1;31m 不存在 $1 , 请上传tar.gz文件到当前目录\e[0m"
exit 1
else
cp $1 /opt/java/... |
d543d1ea132f522ddb71bdb0018adcc0ef55e1d1 | 4,002 | #!/bin/bash
verif=`ls /opt/vpn/x.509/server/ | grep tun1.conf`
if [ -z $verif ];then
echo "Vous n'avez pas encore de serveur, voulez-vous créer un ? oui/non"
read reponse
if [ $reponse == "oui" ];then
server="server_x509"
echo "choisissez une option"
echo "1- client-to-client"
echo "2- sans client-to-client... |
ea8cc7e8694192f02e4c2ce322828f18393c6cc4 | 550 | #!/bin/bash
#SBATCH --nodes=1
#SBATCH --account=ucb164_summit1
#SBATCH --time=23:59:00
#SBATCH --qos=normal
#SBATCH --partition=shas
#SBATCH --ntasks=1
#SBATCH --array=1-2
#SBATCH --job-name=density_profile
#SBATCH --output=./sbatch_out_files/%x.%j.out
#SBATCH --mail-type=ALL
#SBATCH --mail-user=eric.keenan@colorado... |
da198eb04ad9cdc30bbd72a5e845b841ce8c3114 | 151 | Incorrect time on dual boot systems
Check the HDD with `badblocks`
Get hardware stack details with `lspci`
System uptime
Finding Open Files With `lsof` |
772dd88c6a767d488789d3f460d0b9f9ea036178 | 115 | #!/bin/bash
# run docker container
sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk
|
da3d31f2dc98bf9bd4f8b3a998d8656a3584c2d5 | 501 | #!/bin/bash
mkdir -p releases
name=beebfpga_$(date +"%Y%m%d_%H%M")
release=releases/${name}
echo "WARNING: Altera and Xilinx projects need manual compilation before release"
pushd roms
./make_duo_bitstream.sh
popd
mkdir -p ${release}/de1
cp -a altera/output_files/bbc_micro_de1.[ps]of ${release}/de1
cp -a roms/tmp... |
463d0a4a42ca92063e75a914a0141dc99df10a1f | 724 | #! /bin/bash
echo
echo "*******************************************************************"
echo
echo "Open another terminal window and run a netcat listener: nc -lvp 443"
echo
echo "Run the following command to spawn a shell once the reverse connection establishes:"
echo
echo "python -c 'import pty; pty.spawn(\"/... |
139861f2cf26a9c084786dd04a63cbbb085fa0e0 | 483 | #!/usr/bin/env bash
echo "Login into ECR ..."
$(aws ecr get-login --no-include-email)
echo "Push docker image to ECR ..."
./gradlew docker dockerTag dockerPush -PTAG=$TRAVIS_BUILD_NUMBER -PREPOSITORY_URI=$REPOSITORY_URI
printf '{"SPRING_PROFILES":"%s","SPLUNK_TOKEN":"%s", "ENVIRONMENT":"%s", "REPOSITORY_URI":"%s"}... |
775632d15439e56addd32a71b774a1cc890fb55c | 705 | #!/usr/bin/env bash
cd /home/vishu/Softwares/Apache
#put this in any directory you like
wget http://central.maven.org/maven2/org/apache/avro/avro-tools/1.9.1/avro-tools-1.9.1.jar
AVRO_TOOL_JAR=/home/vishu/Softwares/Apache/avro-tools-1.9.1.jar
AVRO_PROJECT_FOLDER=/home/vishu/Learnings/Udemy/ApacheKafkaSeries/Confluent... |
3704d0e239e14ba5177d77b24ec30684bd961d1f | 844 | #!/bin/bash
#帧缓冲设备对应的设备文件是/Dev/fb*
readelf test -h ##查看elf格式可执行文件信息
readelf -S elf ##查看段信息
ps -eLo ruser,lwp,psr,args |grep pid #查看进程所属cpu
arm-linux-as #编译汇编文件,产生目标文件,供连接器ld连接
arm-linux-ld -T ld.lds #连接多个文件代码段,数据段,bss段到一个文件中
nm ##列出目标文件中的符号。
arm-linux-objcopy ##把一种目标文件中的内容复制到另一种类型的目标文件中
arm-linux-objdump ##显示一个或者多个目标文件... |
7a2bcc28e33d89e856a5950963fc696e6657e332 | 145 | #!/bin/bash
DIR=`dirname $0 && pwd`
cd $DIR
#python ./scrobd.py $@ 2>&1 | tee -a debug.log
python ./scrobd.py $@ || notify-send "Scrobd" "FAIL"
|
0ec0dc5f591d27ac68e9a828afa8d43f666d0d89 | 3,420 | #!/bin/bash
DIR="$1";
kdialog --title "Resize Images" --yesnocancel "Do you want to replace exisiting files ?"
case $? in
0) # Replace exisiting files !
choice=`kdialog --title "Resize Images" --radiolist "target size:" 1 "1024px" on 2 "800px" off 3 "640px" off 4 "480px" off`;
FILE=""
let "nbfiles = $#... |
ccdf0c6e187f85eb489edc80c3a86f8e62cd3b2f | 2,404 | #!/bin/bash
ERROR="🛑"
RED='\e[31m'
NC='\e[0m' # No Color
function command_exists {
command -v "$1" &> /dev/null
}
if [ -z "$LC_ALL" ]; then
if command_exists apt-get; then
sudo apt-get install locales
fi
printf "\r${2-$ERROR} ${RED}ERROR Locales are not found.${NC}
🐧 Linux OS:
You must to include... |
999bd51c2769774021a04a1d3953f2084dc4ad2b | 186 | #!/bin/sh
ES_HOST=${ES_HOST:-localhost}
ES_PORT=${ES_PORT:-9200}
echo "elasticsearch.url: "http://${ES_HOST}:${ES_PORT}"" >> /opt/kibana/config/kibana.yml
exec /opt/kibana/bin/kibana
|
46dc4de26fcbb2680f6e5fc3e3f5419f1bb2487c | 107 | echo "Input your number"
read digit
while [ $digit -gt 0 ]
do
echo $digit
digit=`expr $digit -1`
done
|
0b3dacdbb3cd8d6cdb88a781a0dd8e2766e8d73c | 861 | #/bin/bash
#DATA DO ARQUIVO
DATA=`date +%F`
#DIRETORIOS
ROOT_DIR=/backup
TMP_ROOT_DIR=/backup/tmp
BKP_CONF_APACHE=/etc/apache2
BKP_CONF_MUNIN=/etc/munin
BKP_CONF_FAIL2BAN=/etc/fail2ban
BKP_WORDPRESS=/sites/wordpress
BKP_CONF_FIREWALL=/etc/init.d/start_firewall.sh
BKP_SCRIPTS=/root/scripts
#COMANDOS
MYSQLDUMP=/u... |
7e4ee55de15c22ff201c890150ec8ef4015867c9 | 97 | #!/bin/sh
code-push release-react cm_driver android --targetBinaryVersion "~1.2.0" -d Production
|
1c8ee218c39c5a7b66d997049a289dc9cfcb2890 | 2,758 | #
# UniFi controllable switch - common functions
#
[ -z "$ROOT" ] && echo "Set ROOT before sourcing common.sh" 1>&2
if [ -e /var/etc/persistent ]; then
DEVEL=
# use /tmp to avoid littering persistent config
# the controller re-adopts the device on reboot when needed
# and this allows forgetting the device... |
7367e10fec538e14c0faaccd85978f12e422bcb8 | 77 | #!/bin/bash
arr=($(cat))
for i in {3..7}
do
echo -n "${arr[$i]} "
done
|
addd15d7cb62e4f0349f99d74b20cdc9fd9bcc23 | 588 | #!/bin/bash
# https://github.com/brotandgames/bagcli -- example location
cli_help() {
cli_name=${0##*/}
echo "
$cli_name
Quick WordPress CLI
Version: 1.0.0
https://github.com/russellmacshane/quick-wordpress
Usage: $cli_name [command]
Commands:
backup Backup
list List Backups
restore Restore
* ... |
ac05f8a2e870ee67b0c2e148a2474d210f7cf347 | 1,554 | #!/bin/sh
if [ $# -ne 1 ]; then
echo "usage: copy_gstreamer_framework dest"
exit -1
fi
# check that dest exists, if not, create it and the subdir "GStreamer.framework"
DEST="$1/GStreamer.framework"
PKG_DEST="$DEST/Versions/1.0"
if [ ! -d $PKG_DEST ]; then
mkdir -p $PKG_DEST
fi
GSTQT_PLUGIN="/Users/dan/eclipse-wo... |
d2f0ddee4827d1855fd8d1788179419c10210702 | 52 | ./$1 880 1 159 963 340 963 0 617 583 0 0 1 >> $2/O1
|
fffb342b6690fa3451a9d939669560f75aaf2978 | 661 | #!/bin/bash
MSG="${1:-test msg}"
CHANNEL="${2:-test-readonly}"
USERNAME="user_b"
PASSWORD="password"
SERVER="https://testrocket"
USERID="userid_of_user_b"
# GET authToken
AUTHTOKEN="$(curl -s ${SERVER}/api/v1/login -d "username=${USERNAME}&password=${PASSWORD}" | grep "authToken" | cut -d"\"" -f4)"
# post message
c... |
f229b4f8a13c8602f5e43c8a32a949262e6dba47 | 423 | #!/bin/sh
# appliance group and use
APPLIANCEGRP="rgm"
# nagios paths
rgmdir="/srv/rgm"
linkdir="${rgmdir}/nagios"
chown -R nagios:${APPLIANCEGRP} ${linkdir}*
chmod 775 ${linkdir}/etc
chmod 775 ${linkdir}/etc/objects
chmod 775 ${linkdir}/var/log/spool/checkresults/
systemctl enable nagios.service &>/dev/null
system... |
cc17e64bb221a04a696d533937182b46d4c837c6 | 213 | # Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo
# Install PowerShell
yum install -y powershell
# List version
pwsh -v
|
1b228e66dc186f49d961a2203523b1cb2f192e02 | 851 | ###########################################################
###################### General Setup ######################
###########################################################
### DB ####################################################
DB_CONTAINER_NAME=web-db
DB_HOST_PORT=3306
DB_ROOT_PASSWORD=secret
### PHP ##... |
37937c775386efea66461a8266f6a5f27579b126 | 416 | #!/usr/bin/env bash
set -e
EXPLICIT=(
rslsync
)
./installWithAurHelper.sh "${EXPLICIT[@]}"
sudo pacman -D --asexplicit --quiet "${EXPLICIT[@]}"
mkdir -p ~/.config/rslsync
mkdir -p ~/.cache/rslsync
cat > ~/.config/rslsync/rslsync.conf << EOF
{
"device_name": "$HOSTNAME",
"storage_path": "$HOME/.cache/rslsync/",
... |
3f052c1f87ed3c050f727e36ec1f51716e149558 | 32 | #!/bin/sh
mvn -Pzinc scala:run
|
8533b8e74c046a6c2cc18f54a0580545205bfdaf | 3,314 | #!/bin/bash
#
# Wrapper script to start DDAC cassandra daemon running on this node
# Written by Madhu Kangara | initial version | v.1.0 | 05/28/2019
#
DDAC_HOME=/apps/cassandra
CASSANDRA_PIDFILE="${DDAC_HOME}/run/cassandra.pid"
RETVAL=0
NEED_NEWLINE=0
CASSANDRA_USER=cassandra
NAME="Apache Cassandra"
OUTPUT_... |
7e4f378c8ac38009e244a14e6a5135759dd3f477 | 277 | compileToSparc.py -g -s init.s -c serial_io.c -C $AJIT_TOOLS_RELEASE/tools/ajit_access_routines/src -I $AJIT_TOOLS_RELEASE/tools/ajit_access_routines/include -E serial_io.elf -V serial_io.vars -H serial_io.hex -M serial_io.mmap -O serial_io.objdump -D AJIT -L LinkerScript.lnk
|
ce0d69bc004075b91002ec7cd55d6c9f2e7b52d4 | 679 | #! /bin/bash
# setup de la clave de la base de datos
kdb5_util create -s -P masterkey
#creamos usuarios
/usr/sbin/kadmin.local -q "addprinc -pw kpere pere"
/usr/sbin/kadmin.local -q "addprinc -pw kpau pau"
/usr/sbin/kadmin.local -q "addprinc -pw kjordi jordi"
/usr/sbin/kadmin.local -q "addprinc -pw kanna anna"
/usr/sbi... |
91cd3949bb0fec81ed69c543cda4c4a8e7f0195f | 205 | #!/bin/bash
while true; do
FILE=~/tmp/file7
if test -f "$FILE"; then
echo "$FILE exists."
else
echo "INIT ..."
touch /tmp/file7
fi
echo "DONE"
sleep 1d
done |
9d2ca3f9bd1880095fcebee6216f5f97ac7ecb26 | 134 | docker run -d -P --net-alias hello --network rr_net lindison/hello-world:k8s
docker run -it --network rr_net -P alpine nslookup hello
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.