blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
9120bd5ac2f3e875a5409e677ad0257f4a6025af | 882 | #!/bin/bash
#
# This script sets the IDs of the networks already created in openstack gui
#
echo "GET NETWORK NAMES"
# get already created networks
echo " > internal network"
NETWINT=`openstack network list -f value | grep net_internal | cut --delimiter " " --fields 1`
SNETINT=`openstack subnet list -f value | grep ... |
941aa2d99ca6ee456de09b48f76883ec4b0cbedc | 2,013 | #!/bin/zsh
# Load custom aliases
if [[ -f ~/.public_alias ]]
then
. ~/.public_alias
fi
if [[ -f ~/.private_alias ]]
then
. ~/.private_alias
fi
#
## Load PATH
if [[ -f ~/.path ]]
then
. ~/.path
fi
#
# library-cli-sdk
# The next line updates PATH for the Google Cloud SDK.
#source '/Users/lpolyudova/D... |
989d682c33add0f60f007cc709859cc76e652f77 | 228 | #!/usr/bin/env bash
set -x
nomad_version=0.10.2
url="https://releases.hashicorp.com/nomad/${nomad_version}/nomad_${nomad_version}_linux_amd64.zip"
mkdir -p bin/
curl -o ./bin/nomad.zip "${url}"
unzip -d ./bin ./bin/nomad.zip
|
4579d4f1c3499a65202d4df78a8853dc115eaaa4 | 279 | #!/bin/bash
[[ -n "$__READY_CHECK_EVAL_SH" ]] && return || readonly __READY_CHECK_EVAL_SH=1
source $(dirname $BASH_SOURCE)/output.sh
check_eval() {
out_title "Eval: $*"
if eval "$*"; then
out_ok
return 0
else
out_ng
return 1
fi
}
|
b44413ecfab4cbf3416fb48210fe6c966a27c5b2 | 289 | #!/bin/bash
build_firmware() {
cd /micropython && make -C mpy-cross/ V=1
cd ports/esp8266 && make V=1
}
case "$1" in
"unix")
exec /micropython/ports/unix/micropython
;;
"build")
build_firmware
;;
*)
echo "test"
/sbin/my_init &
eval "$@"
;;
esac |
24e586b24faaeac6c20ecccf8eb6b3e61056e700 | 195 | #!/usr/bin/env bash
echo "Waiting..."
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
# do something with the file
done
echo "Exiting" |
3dec5747564c90bde7affb9b59395d77f5153426 | 481 | #!/bin/bash
timeout_num="110s"
high_rate="100000" # 100k
############## Reading inputs ##############
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-r) # High rate
high_rate="${2}"
shift
shift
;;
*) # unknown option
shift
shift
;;
esac
done
echo "Starting attack traffic for '$ti... |
a88e86c46ce8c72a686cc3fcd6a2cc5be91cb4f0 | 40 | FLASK_APP=pets.py
FLASK_ENV=development
|
6aa5ffa263821b623234c7a78d130cd8f9b4bf05 | 873 | #!/bin/bash
if [ "$#" -eq 2 ]; then
if [ -x "$1" ]; then
if [ -d "$2" ];then
for f in "$2/"*; do
line=$(head -n 1 "$f");
if [ "$line" == START ] ; then
fil="$f";
fi
done
file=a;
cp -f "$fil" "$file";
sed -i '/START/d' "$file";
lastLine=START;
until [ "$lastLine" == "STOP" ]; do... |
753a7b8cad13a1dd73e087fa50b0417d360f3540 | 48 | #!/bin/bash
sudo docker build -t="cttirpc:v1" .
|
459594177c6b90914b5c8f25a1c9a184478c2947 | 61 | #!/bin/zsh
wmctrl -s2 || true
urxvt -name irc -e irc "$@" &|
|
f1d9aa9354288d94cc0ed1ae2e7cadedaefaf4fc | 1,049 | #!/bin/bash
THISSCRIPT=$(readlink -f $0)
SCRIPTNAME=$(basename $THISSCRIPT)
SOURCE_DIR=${HOME}/Code/bylang/GarthTex
TARGET_DIR=${HOME}/.texmf/tex/latex/GarthTex
TEXLOC=/usr/share/texlive
SCR_USER=${SUDO_USER:-$USER}
function eproc {
local OUTSTR
OUTSTR=( "$@" )
cat <<-EOF1
ERROR: [ ${OUTSTR[@]} ]
EOF1
}
functio... |
c2614b5c066a280619ee68c98a1b82bbc02bcdc2 | 402 | #!/bin/bash
FILE=$1
if [ -f $FILE ] ; then
awk -F: '{
if ( $1 ~ /[Bb]/ ) {
AMOUNT = $NF
}
if ( $1 ~ /[Dd]/) {
AMOUNT += $NF
printf "%s\t%f\n", $2, AMOUNT;
}
if ( $1 ~ /[Cc]/) {
AMOUNT -= $NF
printf "%s\t%f\n", $2, AMOUNT;
}
if ( $1 ~ /[Ww]/) {
AMOUNT -= $NF
printf "%s\t%f\n", $... |
4695cc86421174316cbdc07326997052999643b8 | 184 | #!/bin/bash
read -p "This will delete all data in /var/lib/neo4j/data folder. Are you sure (y/n)? " -n 1 -r
echo
sudo rm -rf /var/lib/neo4j/data/*
sudo service neo4j-service restart
|
305cd56caf579373ee2f29e66a12087c33fb152d | 308 | #!/bin/sh
. /home/engines/functions/checks.sh
required_values="db_master_pass"
check_required_values
if test -n $db_master_pass
then
db_master_pass=`echo $db_master_pass|sed "/'/s///g"`
echo "alter user rma with PASSWORD '$db_master_pass';" | psql postgres postgres
fi
|
83b99ed09e462fb7350dad9fb483e7f7eafb1bf2 | 6,866 | #!/usr/bin/env bash
# Function that's responsible to detect if the current working directory is under
# (distributed) version control system and, if so, retrieves basic infos to the
# variable passed as parameter.
# Supported DVCS: Git, Mercurial (when installed)
#
# Requires:
# - `git` command installed and availab... |
2c08e5387d1c2b58791582afca83ec834e9ac1f2 | 648 | #!/usr/bin/env bash
NAME="aclImdbSimpleAnalysis_nounlab_vat"
OUT="temp/$NAME"
# Preprocess the dataset
python preprocess.py --corpus aclImdb_tok --output ${OUT}/data #--max_seq_length 3000
python w2v.py --input ${OUT}/data --save_data "demo" --embeddings "vectors_aclImdb.txt"
python main.py --corpus aclImdb_tok --mo... |
aef78f211a0de8037a4322aad6e10855d551527e | 466 | #!/bin/bash
# problem:- the core crate is not using the passed rustflags, temp work around copy the output of -v, and add the correct emit flags for the core crate
CUSTOM_RUSTC=/home/mabez/development/rust/rust-xtensa/rust
# /home/mabez/development/rust/xargo/target/release/
CUSTOM_XARGO_PATH=xargo
# build the core
... |
f609c4f5e56979e7c336c4012d82898dafecb25d | 342 |
# Agregar la siguiente linea al archivo /etc/apt/sources.list
# deb https://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main
# despues correr este script
curl https://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install uv4l uv4l-webrtc... |
2004b4701c246d8030b4666fc28cb49c3291ec31 | 779 | # Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=hawaii-terminal-git
pkgver=0.0.0
pkgrel=1
pkgdesc="The Hawaii Terminal Emulator"
arch=('i686' 'x86_64')
url="http://www.maui-project.org"
license=('GPL2')
depends=('qt5-declarative' 'qt5-quickcontrols' 'yat-git')
makedepends=('git' 'cmake')
options... |
38aea94c644e36b77f0204046d6e5705986edc9d | 760 | #!/bin/bash
freq() {
if [ -z "$1" ]
then
grep 'cpu MHz' /proc/cpuinfo
else
sudo cpupower -c 0 frequency-set -f $(($1*1000))
fi
}
time=${3-600}
host=${2-deneb}
LOGFILE="measurementResults-$(date +%y%m%d-%H%M).log"
declare -A shares=( [800]=50 [1800]=25 [... |
523f0eaa19a82e0a163cb2a33933ecdadf46a0b7 | 473 | #!/usr/bin/env bash
#
# Please, make sure to source the file "container.sh" first.
type __functions_container &>/dev/null
if [ $? -eq 1 ]; then
echo
echo "WARNING !!! The functions defined in this file need the ones defined in the file \"container.sh\"."
echo
fi
function delete_all_images() {
kill_c... |
65d0ec1bcb3e326d0bfa69793d9f18b5303c574e | 544 | #!bin/bash
echo "==========replace config.yaml=========="
cp script/config.yaml /etc/tacker/
chmod 744 /etc/tacker/config.yaml
ip="$(hostname -i)"
echo "$ip"
sleep 5
echo "==========vim admin-openrc.sh=========="
vim script/admin-openrc.sh
source script/admin-openrc.sh
echo "==========vim config.yaml=========="
v... |
95e9c8f7015795e99aed2349ae4de0053fedb927 | 462 | # https://www.hackerrank.com/challenges/bash-tutorials-read-in-an-array/problem
# Input Format
# A list of country names. The only characters present in the country names will be upper or lower case characters and hyphens.
# Output Format
# Display the entire array of country names, with a space between each of th... |
ce917fa4b016959a839370cda8c1cba3efad6b1c | 406 | #!/usr/bin/env bash
# This is a kludge and should be re-done as a proper Makefile.
LIBDIR=$(mysql -u root -p <<< "show variables like 'plugin_dir';" | tail -1 | awk '{ print $2 }')
gcc -fPIC -Wall -I/usr/include/mysql -I. -shared murmur3_mysql_udf.c lib/murmur3/murmur3.c -o "${LIBDIR}/murmur3_mysql_udf.so"
chgrp -R m... |
41bd52d817089bf7f07fa168353595910056102a | 922 | #!/bin/bash
set -e
export AWS_REGION=us-east-1
export DEPLOYMENT=development
export INSTANCE_TYPE=r3.xlarge
mode=$1
export SPONGE_VPC_NAME=us-east-1-dev-core
export SPONGE_ROLE=webhdfs-dataloader
export SPONGE_NODE_NAME=${SPONGE_ROLE}-dev.spongecell.net
STACK_NAME=$SPONGE_VPC_NAME-$SPONGE_ROLE
PARAMS_FILE=${STACK_NAM... |
bf0ea19813fd576d31ea09ed5b2688e4cb45fad4 | 1,289 | # Contributor: Simon Parzer <simon.parzer@gmail.com>
pkgname=larn
pkgver=20090906
pkgrel=1
pkgdesc="a roguelike computer game authored by Noah Morgan in 1986 for the UNIX operating system"
arch=("i686" "x86_64")
license=('BSD')
url="http://www.netbsd.org"
depends=('ncurses')
makedepends=('cvs')
source=('larn-bsdtolinux... |
4ff1702c4f7c1878cbc8d098c95ef51e7d52eba2 | 40,094 | #HG004 Callableloci for Freebayes
#use same maxDepth as was used for GRCh37
#All run 11/29/16
#150x150
dx run -y GIAB:/Workflow/GATK_V3.5/gatk-callableloci-v3.5-anyref -iinput_bam=GIAB:/HG004/GRCh38/Illumina/Illumina_GRCh38_150x150/HG004_GRCh38_150x150_300x_novoalign_1.bam -iinput_bai=GIAB:/HG004/GRCh38/Illumina/Illu... |
e057d94316dbbd7dd634e3bb18dde85d52c0fc40 | 276 | #!/bin/bash
# Jonas Bertossa
# Script per listare le faccie del dataset
cnt=$(ls /etc/facelock/Dataset/ | wc | awk '{print $2}')
if [[ "$cnt" -gt 0 ]] ; then
echo "Elenco facce nel dataset:"
ls -d /etc/facelock/Dataset/* | sed 's/.*\///g'
else
echo "Il dataset è vuoto"
fi |
d7d6e3bafd5305dcda2dd2feb682b3c2c39001c4 | 141 | # customization options
setopt no_auto_menu
setopt interactivecomments
setopt hist_ignore_dups
setopt noflowcontrol
setopt no_share_history
|
6c64fdee543ba4927ecfac0a26eb2e5f8a57014a | 869 | #!/bin/sh
source ~/build/bf.sh
URL="http://downloads.sourceforge.net/freeimage/FreeImage3110.zip"
TARBALL="FreeImage3110.zip"
DIR="FreeImage"
LOCAL_DIR=`pwd`
setup
src_download
src_extract
src_cd
setup_env
cp "${LOCAL_DIR}/patches/freeimage-make.patch" ./ || exit 1
patch -p0 < freeimage-make... |
d95945c72b068368d6e1318391e5b2dff7f65f92 | 135 | #!/usr/bin/env bash
cd ${BROTAIL_HOME:-/opt/brotail} || { echo "cannot cd to ${BROTAIL_HOME:-/opt/brotail}"; exit 1; };
bin/brotail -k
|
374f9abd2c694c9d43a257a08f9cbe24172c9699 | 48 | pipenv run black ./src
pipenv run black ./tests
|
079a0c98a3afb2009cb3ead38fd02db03de43921 | 245 | #!/bin/bash
read a
read b
read c
if [ $a -ge $b ]
then
if [ $a -ge $c ]
then
echo -e $a
elif [ $a -le $c ]
then
echo -e $c
fi
elif [ $b -ge $a ]
then
if [ $b -ge $c ]
then
echo -e $b
elif [ $b -le $c ]
then
echo -e $c
fi
fi
|
fe344c83052569b4be02f2a473ed44b52d645496 | 897 | # Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
pkgname=nvim-r
pkgver=0.9.10
pkgrel=1
pkgdesc="Vim plugin to work with R"
arch=('any')
url="https://github.com/jalvesaq/${pkgname}"
license=('GPL2')
optdepends=('vim>=8.0.0: either vim or neovim'
'tmux: if using vim, necessary for send... |
2bd8a5890d990f5ff094f219ee8ebb31f58ec0a4 | 110 | git -- version
git --version
init
git init
start <index.hmtl>
git config --edit
git rev-parse --show-toplevel
|
dd732d2069e47ebff5ed4eb550584a23fd1b2644 | 85 | # clean
rm haskell-in-y-minutes.hi
rm haskell-in-y-minutes.o
rm haskell-in-y-minutes
|
fae13e672128687297f782f0b44766e9d47c54d8 | 619 | #!/bin/bash
now_date=$1
zipfileName="UserEventLog"$now_date".json.en.tar.gz"
unzipfileName="UserEventLog"$now_date".json.en"
unzipfileName2="UserEventLog"$now_date".json"
export LANG=zh_CN.UTF-8
cp /dev/null tohive.py.log
tar zxvf /data/usereventlog/zipfile/$zipfileName -C /data/usereventlog/decrypt
mv /data/usereventl... |
ae9cfd52f6f8bab390b567b435341a749a15da20 | 103 | #!/bin/bash
sudo apt-get update
sudo apt-get install ansible -y
sudo chmod 400 /home/vagrant/.ssh/key |
411287c77def18a3ef44976ae30dcca3d8f2e122 | 1,087 | #!/bin/bash
echo -n "Any special separator? (y/n) "
read answer
if [ "$answer" = "y" ]; then
echo -n "What is the field separator? "
read sep
echo -n "Which input file? "
read file
echo -n "Which column number do you want? "
read number
echo -n "Do you want to output to a file? (y/n) "
read out
if [ "$... |
b974f51f7327acd98cc500eabc43ffcfc5044933 | 173 | #!/usr/local/bin/zsh
if [[ -d "/opt/chefdk" ]]; then
export PATH=$PATH:/opt/chefdk/bin
fi
if [[ -d "$HOME/.chefvm" ]]; then
export PATH=$PATH:$HOME/.chefvm/bin
fi
|
e12e42a86afb2fdffcb79c94c0bcccd562592b66 | 1,048 | #!/usr/bin/env bash
set -e
. $(dirname $0)/util
checkDependencies
# check ASDK environment variables
[ -n "$ASDF_INSTALL_VERSION" ] || (echo 'Missing ASDF_INSTALL_VERSION' >&2 && exit 1)
[ -n "$ASDF_INSTALL_PATH" ] || (echo 'Missing ASDF_INSTALL_PATH' >&2 && exit 1)
# install
mkdir -p "${ASDF_INSTALL_PATH}/bin"
tool... |
093c8db31980f3b557df09a9fe154e21a82c720d | 206 | #!/bin/bash
for YEAR in {2015..2021}
do
echo mkdir $YEAR
for MONTH in {01..12}
do
echo mkdir $YEAR/$MONTH
for DAY in {01..30}
do
echo ' echo "$YEAR $MONTH $DAY" > $YEAR/$MONTH/$DAY.txt'
done
done
done
|
710858ecbaea0bfae9688a6028b615e045e02a09 | 739 | #!/bin/bash
set -e
if [ ! -z "$INPUT_SRC_FOLDER" ]
then
cd "$INPUT_SRC_FOLDER"
fi
echo "Working directory"
pwd
if [ -z "$INPUT_MAVEN_IMAGE" ]; then
mvn -B dependency:tree | tee .dependency-tree
else
docker run --rm -v "$PWD":/usr/src/mymaven -v "$HOME"/.m2:/root/.m2 -w /usr/src/mymaven \
"$INPUT_MAVEN_IMAG... |
cf5a5ca1a5eaf9146e4508f056ce2ba0400d4aaf | 560 | # Install homebrew.
if [ ! -x "$(which brew)" ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew.
brew update 1>/dev/null
brew upgrade
# Apps to be installed by homebrew.
apps=(
ansible
docker
docker-compose
docker-machine
docker-swarm
... |
d69d0bf442baa79488df00f0b98cb0004142121e | 189 | #!/bin/bash
mkdir -p out
mkdir -p out/build
mkdir -p out/build/linux
cd out/build/linux
#if [ ! -f ./Makefile ] || [ "$#" -ne 0 ]; then
#fi
cmake ../../.. $@
make -j
cd ../../.. |
82ad027b472922d49548398a208811f31117368d | 16,952 | #!/bin/bash
clear
echo -e "\e[0;31m!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\e[0m"
echo -e "\e[0;32m!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\e[0m"
echo -e "\e[0;33m!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\e[0m"
echo -e "\e[0;34m!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!... |
4db86acc1f02eb761064740c3ddaef77e07f5aeb | 141 | #!/usr/bin/env bash
#
# To be used in profile, so
# !! no set -o ...
# !! no jh-lib
#
export PATH="$HOME/src/file-organizer/bin:$PATH"
|
46707f0030cc41d35a8c0b6d1442184cb5656bfa | 915 | export ACE_ROOT=~/ace/ACE_wrappers
#export ACE_LIB=${ACE_ROOT}/lib
export LOCAL_ROOT=~/local
export LOCAL_LIB=~/local/lib
export LOCAL_INC=~/local/include
#EHR_SRC=~/cqthink/ehr_svc_v3/src
EHR_LIB=~/cqthink/dependencies/lib/linux
export C_INCLUDE_PATH=${C_INCLUDE_PATH}:${LOCAL_INC}:${EHR_SRC}
export CPLUS_INCLUDE_PA... |
7d79196d8e32f4e9f71352ae7281572c253e553c | 2,008 | #!/usr/bin/env bash
__dotfile_install_basic() {
local basicapps=(
git-flow fzf wget zsh zsh-completions
rsync ripgrep gnu-sed hugo trash-cli
exa # alternate ls
bat # alternate cat
)
info_echo 'Basic app installing...'
retry 5 brew install ${basicapps[@]}
local basic... |
4df890e29425031da38983b45dc9ad32b8fdea1b | 676 | #!/bin/sh
# PBI Build Configuration
# -- Program Information --
PBI_PROGNAME="NuclearChess"
PBI_PROGWEB="http://www.linux-games.com/nuclearchess/"
PBI_PROGAUTHOR="nemysis@gmx.ch"
PBI_PROGICON="nuclearchess.png"
# -- Port Information --
PBI_MAKEPORT="games/nuclearchess"
PBI_MKPORTBEFORE=""
PBI_MKPORTAFTER=""
PBI_MAKEO... |
298f606ace8609c9025302e055f83fc27bcee2ee | 52 | REACT_APP_BACKEND_URL=http://localhost:3000/graphql
|
5f0887b82ca4d674b90812cbdc061afbd06435b5 | 1,015 |
#!/bin/bash
# set -x
# 执行 checkout
yarn checkout $@
branch=$1
currentPath=$(dirname $0)
sync(){
local moduleName=$1; shift
local path=$1; shift
{ # try
echo
cd $currentPath/$path
git fetch origin && \
git pull origin $branch && \
# 不显示输出
cd - 2>&1 >/dev/null && \
echo "\033[32m [... |
cd967fa4acefb2f2bd811138d764c65b9a26a455 | 139 | #!/bin/sh
if test "x$1" = "x"; then
echo "usage: $0 FILE"
exit 1
fi
awk '{ print $2 " " $1 }' "$1" | sort | awk '{ print $2 " " $1 }'
|
1a30277dd8fef0c583acb7963cfb8aa80abceb0f | 141 | APP_NAME=jag-scss
COMPONENT_NAME=jag-scss
OC_NAMESPACE=17b24e
OC_ENV=dev
RUNTIME=java
API_NAME=jag-scss-api
DNS=apps.silver.devops.gov.bc.ca
|
1aee2ffa5fcaab5538018c76036a0c6971648f3e | 181 | #!/bin/bash
tt=$(awk '{print $(NF-1)}') /etc/redhat-release
if [ ${tt%%.*} -eq "7" ];then
echo "配置centos7的源"
elif [ ${tt%%.*} -eq "6" ];then
echo "配置centos6的源"
fi
|
3f3b5be86105843c1c1e4fa4a50c216f256eecb4 | 3,479 | #!/bin/sh
# GFF
# wget ftp://ftp.ncbi.nlm.nih.gov/genomes/Macaca_fascicularis/GFF/ref_Macaca_fascicularis_5.0_top_level.gff3.gz
# Fasta
# wget ftp://ftp.ncbi.nlm.nih.gov/genomes/Macaca_fascicularis/Assembled_chromosomes/seq/mfa_ref_Macaca_fascicularis_5.0_chr1.fa.gz
# wget ftp://ftp.ncbi.nlm.nih.gov/genomes/Macaca_fa... |
d37f081259061be8a1195c1826612bbe6be61a28 | 281 | #!/bin/sh
python test1.py Tests/project1
python test2.py Tests/project2
python test2.py Tests/project2/errors
python test3.py Tests/project3
python test3.py Tests/project3/errors
python test3.py Tests/project3/private
python test4.py Tests/project4
python test4.py Tests/project5
|
99e66c5e7735fc7ce6fe546e3e0b0ea0c9549508 | 654 | #!/bin/bash
python jobscript.py hostfile 72
mkdir -p traces-pre-opt/72p
mpirun -np 72 -f hostfile parmetis parmetis/Graphs/rotor.graph 1 6 1 1 6 1
cd traces-pre-opt
pprof -s > 72p/161161.txt
rm -rf profile.*
cd ..
mpirun -np 72 -f hostfile parmetis parmetis/Graphs/rotor.graph 1 12 1 1 6 1
cd traces-pre-opt
pprof -s... |
017252d7ac6d8409155aca840fd0a57afc830cfe | 291 | #!/bin/sh
./legit.pl init
touch a b c d
./legit.pl commit -m '1st commit'
./legit.pl add a b c d
./legit.pl commit -m '1st commit'
echo hello >a
echo hello >b
echo hello >c
./legit.pl commit -a -m '2nd commit'
./legit.pl rm a b c
./legit.pl commit -a -m '3rd commit'
rm d
./legit.pl status |
7dccff707d3ca680930e59c1951c8f4f42a7ed94 | 467 | # /opt/ added new application web server
#
vi /opt/myapp/config/puma.rb
# stop puma
ps aux | grep puma
kill -9 3117
# backup /etc/nginx/conf.d/default.conf
sudo mv /etc/nginx/conf.d/default.conf / etc/nginx/conf.d/default.conf_bk
sudo vi /etc/nginx/conf.d/myapp.conf
# start nginx
sudo sytemctl restart nginx.servic... |
064e66d644f3334d14f69e0ba5501c89e5a4785d | 2,696 | #!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2012:0006
#
# Security announcement date: 2012-01-09 20:11:27 UTC
# Script generation date: 2017-01-01 21:13:40 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.4.2-ibm.i386:1.4.2.13.11-1jpp.1.... |
a4350fcd3d91bafd8188ccd7466dc3fc4ec99e22 | 117 | #!/bin/sh
echo 0 > /sys/class/rtc/rtc0/wakealarm
/sbin/ethtool -s eth0 wol g
/sbin/ethtool eth0
cat /proc/driver/rtc
|
245e89d32b6efafd74246c8281b478f8c7885195 | 661 | source: http://www.securityfocus.com/bid/2496/info
Many FTP servers are vulnerable to a denial of service condition resulting from poor globbing algorithms and user resource usage limits.
Globbing generates pathnames from file name patterns used by the shell, eg. wildcards denoted by * and ?, multiple choices den... |
a10c14538b5a374afda61e49bf91059fe7cdc062 | 917 | #!/bin/bash
echo "Archiving Python 2 virtualenv to /apps/py2venv.tgz..."
pushd /apps/whyis
sudo tar cfz /apps/py2venv.tgz venv
sudo rm -rf venv
popd
echo "Done."
sudo service stop jetty8
sudo /opt/puppetlabs/bin/puppet module uninstall stankevich-python
sudo /opt/puppetlabs/bin/puppet module install puppet-python
su... |
eb863297cad0cb034a5201b39c1be2800662ae2b | 352 | #!/bin/bash
Xvfb :1 -screen 0 1600x900x16 &
sleep 5
openbox-session&
x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever &
cd /root/noVNC
ln -s vnc_auto.html index.html
./utils/launch.sh --vnc localhost:5900 &
# build bootloader
cd /host
make
# bootup system
qemu-system-i386 -fda /host/bu... |
9c33518d7fcbba85b606da32a3d24b0c4e2beb54 | 561 | #!/bin/bash -ve
# USAGE: Run this file using `npm test` (must run from repository root)
mocha \
test/entity_test.js \
test/config_test.js \
test/validator_test.js \
test/api/publish_test.js \
test/api/auth_test.js \
test/api/vali... |
cd4d2099fb9af92f9719b20df2e1150aa13e5c70 | 1,537 | #!/bin/sh
# CreateDiskImage.sh
# Morphic
#
# Created by Owen Shaw on 5/29/20.
# Copyright © 2020 Raising the Floor. All rights reserved.
echo "---- Running CreateDiskImage.sh -----"
TEMPLATE_NAME="MorphicTemplate.dmg"
MOUNT_PATH="MorphicInstaller"
APP_NAME="${PRODUCT_NAME}.app"
COMPRESSED_TEMPLATE_PATH="${SRCROO... |
a8dee2c4a8ebdfed5f7d5a1e58508cea61d84042 | 517 | #!/bin/sh
. ./config
LUA_OUT_DIR="${TEST_OUT_DIR}/lua"
rm -rf "${LUA_OUT_DIR}"
mkdir -p "${LUA_OUT_DIR}"
export LUA_PATH="$LUA_PATH;$LUA_RUNTIME_DIR/?.lua;spec/lua/?.lua;spec/lua/extra/?.lua;compiled/lua/?.lua;;"
# Add `lua_install` dir to PATH, as this is where hererocks installs Lua at CI
export PATH=$PATH:$PWD/... |
4599620d1ed0741acdc52e39d4bea44c0815969f | 1,105 | #!/bin/bash
# Create data store
mkdir -p ${POSTGRES_DATA_FOLDER}
chown postgres:postgres ${POSTGRES_DATA_FOLDER}
chmod 700 ${POSTGRES_DATA_FOLDER}
# Check if data folder is empty. If it is, start the dataserver
if ! [ "$(ls -A ${POSTGRES_DATA_FOLDER})" ]; then
su postgres -c "initdb --encoding=${ENCODING} --local... |
d7696b3122bf106065e1ead255a10cde64fcfb20 | 218 | #!/bin/sh
set -x
zeus rake db:drop
zeus rake db:create
zeus rake db:migrate
zeus rake db:seed
# load test data to development database
# rake db:fixtures:load FIXTURES_PATH=spec/fixtures
# rake db:test:prepare
|
a5231da8cba252dc67b3e9bf2c4ad9b86f91352c | 1,116 | #!/bin/bash -login
#SBATCH --nodes=1 --ntasks=1
#SBATCH --time=48:00:00
#SBATCH --mem=128G
#SBATCH -A ged
#SBATCH --mail-type=FAIL,BEGIN,END
#SBATCH -J evalModel_chr1
cd $SLURM_SUBMIT_DIR
OUTPUT_DIR="${PWD}/output_chr21_"$exp
LOG_DIR="${OUTPUT_DIR}/logs"
OUTPUT_DIR_TRAINING="${PWD}/output_chr1_"$exp/training_output
s... |
cff298d0cebaaa7cd5ff892670a193876a126f54 | 255 | #!/bin/bash
cd $PROJECT_FOLDER/
cat >> .env <<EOF
SECRET_KEY=BANANARAMA
EOF
echo "${green}>>> Created .env${reset}"
cat >> .gitignore <<EOF
node_modules/
.env
EOF
echo "${green}>>> Created .gitignore${reset}"
cd $mainDir
./04_p_s_config_database.sh |
6e792eee3ee2dd3f2e35a42757538e5ce9f7df2f | 674 | #!/bin/bash
function usage {
echo "Takes in domain name as input"
exit 1
}
[[ -z $1 ]] && usage
export DOMAIN=$1
echo "Generating certs..."
openssl req -new -x509 -sha256 -key key.pem -subj "/C=US/ST=CA/O=Acme, Inc./CN=example.com" -extensions SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAlt... |
e40370a03b1ea0cadc790110b9ac0843a6c9add9 | 583 | APP_NAME=invillia-challenge
APP_ENV=local
APP_KEY=base64:tpxwP2AHOseo+Skweh/CReQzHitDxWix0DcWL4aUb3M=
APP_DEBUG=true
APP_URL=http://localhost:8000
TELESCOPE_ENABLED=false
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=invillia-challenge-db
DB_PORT=3306
DB_DATABASE=invillia-challenge
DB_USERNAME=invillia
DB_PASSWORD=c... |
a508077a86e9ab2212f6e74dcc24e39e6fbd57e1 | 1,342 | # PKGBUILD autocreated by ABStoOSX 0.2
# $Id
# ArchLinux Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>
pkgname=fftw
pkgver=3.2.1
pkgrel=1
pkgdesc="A library for computing the discrete Fourier transform (DFT)"
arch=('macx86')
license=('GPL2')
url="http://www.fftw.org/"
d... |
b5fed0949e1f19302f2486c3afdbc07edbf36e60 | 845 | #!/bin/bash
cargo build
target/debug/jemma 5000&
pid=$!
get=$(curl -s http://localhost:5000/this/is/test)
if [[ $get =~ "0" ]]; then
echo "GET OK"
else
echo "GET not OK"
kill "$pid"
exit 1
fi
curl -s -X POST http://localhost:5000/this/is/test
if [[ $? -eq 0 ]]; then
echo "POST OK"
else
echo... |
2fd4b7e78baaf46d3aa2db2f3aaf40df095a5c23 | 1,399 | ## Emacs, make this -*- mode: sh; -*-
FROM nuest/mro:3.4.0
MAINTAINER Rodrigo Belo <rodrigobelo@gmail.com>
## Install extra packages need
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ed \
build-essential \
libcurl4-openssl-dev \
gf... |
1034de18474fd062762bad7ab7e49bd964ddca17 | 501 | #!/bin/sh
. ~/.googlerc
case $1 in
delete|put|get|post)
method=`echo $1 | tr '[:lower:]' '[:upper:]'`
shift
;;
esac
if [ "$1" = data ]; then
args="$args -F @-;type=application/json"
shift
fi
for p; do
if [ -z "${p%%*=*}" ] ; then
query="$query $p"
else
path="$path $p"
fi
done
path=`echo ${path# } |... |
c630e917b5f2e8ce367690f64ae9407aeb413da7 | 161 | #!/bin/sh
fname=$(date +'%Y-%m-%d_%H-%M-%S')
folder=$HOME/Pictures/screenshots
xfce4-screenshooter -f -s $folder/$fname.png && notify-send "Screenshot
saved"
|
d384e8d2165394f8da3c8df72959a217f5c15975 | 978 | #!/bin/bash
#
# Copyright SecureKey Technologies Inc. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
echo "Running $0"
GOLANGCI_LINT_VER=v1.39.0
DOCKER_CMD=${DOCKER_CMD:-docker}
if [ ! $(command -v ${DOCKER_CMD}) ]; then
exit 0
fi
echo "Linting top-level module..."
${DOCKER_CMD} run --rm... |
190d860583b76f922c57af4c26bb07103d88c81d | 608 | VUE_APP_URL=https://addon-maker.128-bit.net
VUE_APP_TITLE=Simutrans Addon Maker
VUE_APP_AUTHOR=128Na
VUE_APP_KEYWORDS=Simutrans,Addon,Makeobj
VUE_APP_DESCRIPTION=Simutrans用のアドオンをdat作成からpak化までできるWebアプリです。
# makeobj api
VUE_APP_MAKEOBJ_API_URL=https://makeobj-api.128-bit.net/api/v1/pak
# portal
VUE_APP_PORTAL_URL=https... |
a34a6481b688236205eedc5d53dd06619e512bc5 | 263 | #!/usr/bin/env bash
source ~/dev/poky/3.1.6/environment-setup-cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi
cmake -G "Unix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -S . -B build
cmake --build build --target all -j
$CC -o sayhello hello.c
|
4ecfa25677b32d9574d96015f0bf25de61295ce2 | 404 | #!/bin/bash
linhas1=$(cat $1 | wc -l)
linhas2=$(cat $2 | wc -l)
linhas3=$(cat $3 | wc -l)
((${linhas1} > ${linhas2})) && ((${linhas1} > ${linhas3})) && echo "O arquivo com mais linhas é o: $1"
((${linhas2} > ${linhas1})) && ((${linhas2} > ${linhas3})) && echo "O arquivo com mais linhas é o: $2"
((${linhas3} > ${linha... |
e937eebb37be636c1845c2292cb7c059b5689075 | 338 | #!/bin/bash
rate1=15
rate2=30
# convert .npy files to matplotlib generated .png's
python3 animate.py
# convert images to MP4 file
ffmpeg -r $rate1 -start_number 0 -i frames_2_anim/img-%05d.png -c:v libx264 -r $rate2 -pix_fmt yuv420p sim-anim.mp4
# remove temp data
# rm-rf frames_2_anim/img*
# rm -rf test/
echo "an... |
23b97eae143ca94be531de454ac1cceb42e9c08b | 294 | #!/bin/bash
#TODO Enhance the script
#Start ssh service
sudo -S service ssh start && \
#Run only in the name node
if [ $1 == true ]
then
echo "Y" | /home/hadoop/hadoop/bin/hdfs namenode -format
/home/hadoop/hadoop/sbin/start-dfs.sh
fi
#Keep the containers running
tail -f /dev/null
|
a9473dd9c1faf82a4fb3da9f14ea463f975ef864 | 75 | #!/bin/sh
plink -C -D 8888 -N -pw $Password $Username@$Server << EOF
y
EOF
|
a4229cf570d71c7176a730e95918abbcec49ab0d | 150 |
echo "MrRomo Compiler****" $1
file=$1
filec="${file//.c/ }"
echo "compilando $file"
mkdir output
gcc -o output/$filec -lm $file
./output/$filec |
6dd7844dccb1b7312895b39deb9d7be9aa7546ca | 133 | #!/bin/bash
echo "my name is Joseph"
name="Joseph"
echo "My name is $name"
user=$(whoami)
echo "Who runs this computer? $user"
|
5a0cfca0d6b8fb581f5c3f80712fe47e7f625ffc | 284 | #!/bin/bash
#
# Verify no traffic between VFs on different nodes configured with OVN 2 isolated switches with ipv6 underlay
#
my_dir="$(dirname "$0")"
. $my_dir/common-ovn-basic-test.sh
NO_TITLE=1
OVN_SET_CONTROLLER_IPV6=1
. $my_dir/test-ovn-geneve-2-switches-2-nodes-pf-tunnel.sh
|
7f36bbdb2a3997f1b86a3d8d02608001aa37babd | 172 | #!/usr/bin/env bash
# NASA 2016
# SA 1.1
# By B03902086
#
# Usage: ./total_mem_usage.sh b04
ps aux |
grep ^$1 |
awk 'BEGIN { sum=0 } { sum+=$5 } END { print sum }'
|
c082a46405393de11a0d4b730badc5e5dffd931a | 2,725 | #!/bin/bash
set -e
# this is a fork of docker-entrypoint.sh of jrenggli (see also visol/egroupware)
# made by sneaky of Rothaar Systems (Andre Scholz)
# V2019-02-04-17-40
# Replace {key} with value
set_config() {
key="$1"
value="$2"
php_escaped_value="$(php -r 'var_export($argv[1]);' "$value")"
sed_escaped_va... |
19b89a92a6fc98722dc81e71a44e2778b2b4a070 | 1,957 | #!/bin/bash
# help output
if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
echo -e " \
This tool is a lot like mkscript bit it creates a directory and links the executable up instead of a simple single file script.
usage: mkscript <script-name> [script-folder]
"
exit 0
fi
# folder where all the scipts shall be st... |
6ff1455bd3d6ac9082c379c655290359c3e2c79c | 405 | #!/bin/sh
cwd=$(pwd)
cd ${CK_ENV_BENCH_SYLT_TRACE_GENERATOR}
rm -f ./a.out
echo ""
echo "$CK_CXX $CK_COMPILER_FLAGS_OBLIGATORY $CK_FLAGS_DYNAMIC_BIN ${CK_FLAG_PREFIX_INCLUDE}./ demo.cc ${CK_FLAGS_OUTPUT}a.out"
$CK_CXX $CK_COMPILER_FLAGS_OBLIGATORY $CK_FLAGS_DYNAMIC_BIN ${CK_FLAG_PREFIX_INCLUDE}./ demo.cc ${CK_FLAG... |
1a207c78b5f5e806375fa7281d865b8322a10206 | 16 | python f2f.py $1 |
386b0e7c3d8bdfe3ffe00c1b3f593627bdf853bb | 4,833 | EPOCH=100
DIR=./experiment-results/sprint-9-final-model
python scripts/train.py s3_network --seq-length 1 --epoch $EPOCH --lr 0.001 --batch 50 \
--architecture-str 'in1:512|hidden:128|out1:64|out2:10--recur:256' --keep_prob 0.5 \
--verbose --optimizer AdamOptimizer --output_dir $DIR --dataset mnis... |
3226098d9cb3fdd422ba143eb842ba867fb780e8 | 2,495 | #!/bin/bash
#
# This is an example script that install and configure grub after installation.
# To use it put it in your CUSTOMIZE_DIR, make it executable, and edit EXTRAPKGS
# of your $sysconfdir/default/ganeti-instance-debootstrap.
#
# Xen, for etch/lenny i386:
# EXTRA_PKGS="linux-image-xen-686,libc6-xen"
# Xen, fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.