blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
35480d36f7ca729daa6f24438a259553b1f332e4 | 182 | NODE_ENV=development
PORT=5000
DATABASE_URL=postgres://xuanhai:@localhost:5432/hoctienganh0dong_development
DB_LOGGING=false
PROTOCOL=http
FRONTEND_HOST=localhost
API_KEY=1234567890@ |
e73d0459d7271d9175004eed1ebf0df43dda2067 | 450 | FLASK_APP=./web-application/main.py
FLASK_ENV=development
FLASK_DEBUG=1
MAX_CONTENT_LENGTH=1024*1024*1024
SQLALCHEMY_DATABASE_URI=mysql+mysqlconnector://jonny:h3lloW0rld@localhost/app_database
SQLALCHEMY_TRACK_MODIFICATIONS=False
SECRET_KEY=abcsdkfpskjgp24g
SECURITY_PASSWORD_SALT=i2u89u2498u
SECURITY_PASSWORD_HASH=sha5... |
e69bca25ea99e3a8ab2e29815d01a9e720a8653e | 220 | #!/bin/bash -x
read -p "Enter the number :" n
for(( count=2 ; count<=$n ; count++ ))
do
test=$(( $n % $count ))
if [ $test -eq 0 ]
then
echo "$n is not a prime number "
else
echo "$n is a prime number "
fi
break
done
|
94b1c89576d4504af4bddaf801f172e3f582ea58 | 207 | #!/bin/bash
PDIR=../../../out
CUR=`pwd`
DIR=`basename $CUR`
WDIR=$PDIR/$DIR
DDIR=Current_Results
cp $DDIR/Qs*devc.csv $WDIR
cp $DDIR/Qs*line.csv $WDIR
cp $DDIR/Qs*hrr.csv $WDIR
cp $DDIR/*git.txt $WDIR
|
8bed696a75e48b346da03ce041bca4da553f960f | 553 | #!/bin/bash
## PSF
# {{{ Locations
# Backup Cache Location
backupLoc=/run/media/$USER/External\ Backup/Other\ Backups/Pacman\ Cache/
echo $backupLoc
# Cache Folder
cacheLoc=/var/cache/pacman/pkg/
#}}}
# {{{ Startup & Conditions
# Do nothing if no drive is found
if [ ! -d "${backupLoc}" ]; then
echo "Drive no... |
417c3ff08821d8d0d5eefd895dce7f6a8e4bd3df | 2,191 | #!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan
printf "Content-type: text/html;charset=gb2312
Cache-Control: no-cache
"
echo -n "";
. ../common/common.sh
myself="/cgi-bin/Route/`basename $0`"
IPE_PPPOEPLAN=${PGBIN}/ipe_pppoeplan
MOD_TAB_LIST="基本配置#${myself} 计划列表#/... |
b083cfa2629a3decba05ead0d0c5bd2149811df9 | 54 | #!/usr/bin/bash
yum install bind
systemctl start bind
|
b1de9a225214313f1d863b7c9880a9e0e0f93abf | 2,951 | #
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# This is a collection of bash functions used by different scripts
#NWPATH="$1"
#P_ADD="$1"
export NW_NAME="$3"
export CORE_PEER_TLS_ENABLED=true
export ORDERER_CA=$NW_PATH/ordererOrganizations/${NW_NAME}.com/orderers/orderer.${NW_NA... |
fb6efe6f96eaa353c648f6ea1b1ad0108f2292a1 | 788 | #!/bin/bash
# This script demonstrates testing to see if 2 strings are the same
# TASK 1: Improve it by asking the user for a password guess instead of using inline literal data
# TASK 2: Improve it by rewriting it to use the if command
# TASK 3: Improve it by giving them 3 tries to get it right before failing (test 3... |
f7460b8e00aa614605de513014ff4b87d62fb6e2 | 363 | #!/bin/bash
# Actualiza el README con los archivos que tenga el proyecto, para facilitar su acceso.
REPO_URL="`git remote -v | grep fetch | tr "\t" ' ' | tr -s ' ' | cut -d ' ' -f 2 | sed 's/\.git$//'`/blob/master"
echo -e "# Tesina\n\nArchivos:\n" > README.md
for file in `find * -type f -name '*.md'`; do
echo "* [... |
0f428d3be9bb2328c52f4fbe59fe614241a2e6ef | 236 | #!/bin/bash
export ONE_API_ROOT=/home/zhouhaiy/tool_chain/oneapi/beta01/inteloneapi
export DPC_CPP_ROOT=${ONE_API_ROOT}/compiler/latest/linux
export LD_LIBRARY_PATH=${DPC_CPP_ROOT}/compiler/lib/intel64_lin:${LD_LIBRARY_PATH}
make -j4
|
cfc7786bc05ae6ecb0a263ba000824867a7602b1 | 67 | #!/bin/bash
echo ===== onstart.sh
echo ===== PID: $PERF_TARGET_PID
|
ae053de12a9319cc4c5a1ed1173c893a45d3c92d | 286 | #!/usr/bin/env bash
cat <<.
setzer 0.1.1
Copyright (C) 2017 Mariano Conti <nanexcool@gmail.com
License: GNU GPL version 3 or later <https://gnu.org/licenses/gpl>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
. |
6f46dbcfb3b7a870bd3f9202198bca8ecbc5747f | 644 | #!/bin/bash
if [ ! -d "$1" ]; then
red "Working dir is missing";
exit -1; fi
workingdir="`cygpath -a $1`";
tmp=`mktemp -d`;
if [ ! -d $tmp ]; then
mkdir $tmp; fi
for alltarfile in `ls $workingdir/*-all.tar.gz`; do
if [ `expr match "\`basename $alltarfile\`" "clean-.*"` -ne 0 ]; then
red "SKI... |
bd50ff68cb9ca87732880a202c202e2827476b72 | 308 | ACCESS_TOKEN_SECRET=7ff494d76103b4a67229c85c066d7644279f4adbc5a8eb508618f28d6f4c593d13b2140c834dcca9cc7f79d790a673c0e889c4d6b9c4ba0c4a0d94427def4e45
REFRESH_TOKEN_SECRET=726655e2efc9cb2feb424d8c03a4b6f88b9e6fb5bdde22387ade511feef186fd82827c35d68f8cf7a88a43666e14ef5ab11da08febc41d1c249cf80050a346a6
PORT=3000 |
c7ae3bfa101cca58315a974de296400a04a7e116 | 328 | #!/bin/sh
# Copyright (c) 2019-2023 CIYAM Developers
#
# Distributed under the MIT/X11 software license, please refer to the file license.txt
# in the root project directory or http://www.opensource.org/licenses/mit-license.php.
git ls-files | xargs -l sha256sum > ~src_hash
cat ~src_hash | sha256sum | tr -d " -"
rm ~s... |
da49bb471a46e4374d68453e84002de678a29cb2 | 554 | NODE_ENV=dev
MAIN_PORT=8080
SQL_HOST=localhost
SQL_USER=root
SQL_PASSWORD=leotaxi
SQL_DATABASE=taxi
REDIS_PORT=6379
REDIS_HOST=localhost
REDIS_PASSWORD=
GOOGLE_MAPS_API_KEY=AIzaSyChpUAP9GZnlZZePGYqnZxNgU3n6TDB9vc
STRIPE_SECRET_KEY=
PAYMENT_CURRENCY=usd
JWT_SECRET=abcde
MAX_DRIVERS_SEND_REQUEST=10
MAX_DISTANCE_TO_SEND_R... |
b7a57cb9d1d7137812d0cc9f773d5a6fcfc7470d | 1,217 | #!/bin/sh
. legit-setup.sh
orig_head=`git symbolic-ref -q --short HEAD`
stashed=0
# Check that the current branch exists - so we can check if it has
# unstashed changed
if git show-ref --quiet refs/heads/$orig_head; then
# Check if we need to stash some changes
if git diff-index --quiet HEAD --; then
... |
cf5855f85a3ae63caad9a085768ec1877de69cf8 | 225 | echo "switching menu to Turkish"
rm /etc/openpanel.xml
cp /etc/LANG/TU/openpanel.xml /etc/
rm /etc/panel/openpanel.xml
cp /etc/LANG/TU/openpanel.xml /etc/panel/
rm /etc/panel/lite.xml
cp /etc/LANG/TU/lite.xml /etc/panel/
exit |
6032b86d6a29492b86c2acbc903f2841368a48b0 | 1,256 | #!/bin/bash
if [[ ! $(dpkg -l irssi 2> /dev/null | grep '^ii') ]]; then
echo "Installing irssi..."
supo apt-get -y update
sudo apt-get -y install irssi &> /dev/null
sudo apt-get -y clean
fi
if [[ $1 == "-n" && $2 ]]; then
nickname=$2
elif [[ $1 == "-n" ]]; then
nickname="0"
elif [[ -f ... |
59d5fb156ea456c67e8be96625d2e9c2cde071ee | 904 | #!/bin/bash
set -e
set -u
blink="blink1-tool --quiet --brightness=128"
${blink} --off
last_color="off"
errors=0
while true; do
# Try to ping, count errors
ping -c 1 www.google.com -D -W 5 > /dev/null 2>&1 \
|| errors=$(( ${errors} + 2 ))
# Decay errors over time if we're good
errors=$(( ${e... |
5deb096df630cea6915babdffb2bed55ff957555 | 165 | #!/bin/bash
if [ ! -f "$XDG_CONFIG_HOME/xfce4/terminal/terminalrc" ]; then
ln -s "$dotfiles_dir/xfce4-terminal/terminalrc" "$XDG_CONFIG_HOME/xfce4/terminal/"
fi
|
e7d9e96f7250a4a12015bbf2ab68a2d69775c30d | 106 | #set_data_root.sh CONFIG_DIR DATA_ROOT_PATH
sed -ri "s|(data_root *= *).*|\1$2|" $(grep -lr data_root $1)
|
37c0d332de8a8f7233684648c2e7c7155fe06ae6 | 159 | for((i=1;i<=5;i++)) ### Outer for loop ###
do
for((j=1;j<=5;j++)) ### Inner for loop ###
do
echo -n "$i"
done
echo "" #### print the new line ####
done
|
1297b7922f7833741900c158b8ff0a3613777f69 | 475 | #!/usr/bin/bash
if ! type "git" > /dev/null; then
pacman -Sy --needed git
fi
if [[ ! -d ~/dotfiles ]]; then
git clone git@github.com:zapling/dotfiles.git ~/dotfiles
fi
echo "You are about to run a bunch of scripts, are you sure?"
read -p "Press any key to continue" -n 1
for setup_step in ~/dotfiles/setup/st... |
c6d0cc2babfdc9fbf928f49cdfef9cdc6c9c821f | 198 | #!/bin/bash
find . -type d -name '__pycache__' | sed 's#^\./##' | while read d; do echo $d; rm -rf $d; done
find . -type f -name '*.pyc' | sed 's#^\./##' | while read f; do echo $f; rm -f $f; done
|
035a9f235414fa80229c606c97a0f33de4fbd84a | 56 | export PATH=$HOME/.nvm/versions/node/v12.18.3/bin:$PATH
|
bbee44d7867f585142e68382ffefc11f871f904a | 331 | #!/usr/bin/env bash
# Install HACS
wget -q -O - https://hacs.xyz/install | bash - && \
# Move the third-party components into place.
mkdir -p /config/custom_components
cp -R /maison/hass/config/custom_components/* /config/custom_components/
# Invoke the Docker image's original command.
python -m homeassistant --conf... |
b4b977b582b360153a56c528bb2480b4c980b7ca | 992 | INCLUDES="-I/home/dalmir/Dropbox/Microcontrollers/picnix/ \
-I/home/dalmir/storage/github/pic/sdcc/driver/graphic/lcd/ \
-I/home/dalmir/storage/github/pic/sdcc/library/graphic/lcd/ \
-I/home/dalmir/storage/github/pic/sdcc/driver/graphic/glcd/ \
-I/home/dalmir/storage/github/pic/s... |
06a3acc4e2964a3ac6890561316fb445c26d8226 | 226 | #!/usr/bin/env bash
case $BLOCK_BUTTON in
4)
~/src/scripts/brightness.sh up
;;
5)
~/src/scripts/brightness.sh down
;;
esac
echo "$(xbacklight -get | awk '{print int(($0/5)+0.5)*5}')%"
|
86e1f0f44b810ab23895379c754e56445396146e | 26 | #!/bin/sh
rm -f _* gmon*
|
a43327ffeb66ddab79e045c5d953d790e34b763a | 82 | #!/bin/bash
# Pacotes utilizados pela o curso de: ${curso}
apt install ${pacotes}
|
fbf78532fa26e1f8c4e918ecd82ada914d252c6c | 1,518 | #!/usr/bin/env bash
# default value stage
folder= #f
noupload= #n
worknode=ibmvm1 #w
user=dachuan #u
# definition, parsing, interrogation stages
while getopts ":f:w:u:n" o; do
case $o in
f)
folder=$OPTARG
;;
w)
worknode=$OPTARG
;;
u)
user=$OPTARG
;;
n)
nou... |
13df5bf289b35b74c485c7803cbd73199973ebd2 | 512 | #!/bin/bash
cp .travis.settings.xml $HOME/.m2/settings.xml
mvn clean test -q
if [[ $TRAVIS_PULL_REQUEST == "false" || $TRAVIS_PULL_REQUEST_SLUG == $TRAVIS_REPO_SLUG ]]; then
echo "start sonarcloud scan"
mvn org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=sunxuia_website-uti... |
0cd4a068db6b6ab86660af05378a3de4cf1588fb | 1,928 | #!/usr/bin/env bash
# Sync the site's local development copy with production one
# Author Name: Andrey Andreev aka andyceo
# Author Email: andyceo@yandex.ru
# Author Homepage: http://andyceo.ruware.com
# ENGLISH NOTE: under development. Note that comments in this file
# and output messages in russian language genera... |
8ab07cbf4c86966407d54aef13f2e36bdbd6c104 | 200 | Rapidly invoke an editor to write a long, complex, or tricky command
Find any Unix / Linux command
Terminal based browser
`else` statements using the `||` operator
The Basics of Environment Variables |
de7311bcc8d6d684806ddf62bc3f0bedce5a0641 | 164 | #!/usr/bin/env bash
VERSION=5.6.2
wget https://artifacts.elastic.co/downloads/logstash/logstash-${VERSION}.tar.gz
tar -xzf logstash*.tar.gz
rm logstash*.tar.gz* |
baef31dff7c9f51510223ef22b72eb6f5c715844 | 259 | # if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# vim: ft=sh ts=4 sw=4 sts=4 et fdm=marker fdl=0:
source /home/msaud/.config/broot/launcher/bash/br
|
1c504e891752791c73186b90dcb893a5097f1116 | 247 | #!/bin/bash
path=$(dirname $0)
path=${path/\./$(pwd)}
cmake_file_path=${path}/
output_path=${path}/cmake/
mkdir -p ${output_path}
cd ${output_path}
cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=${cmake_file_path}/iOS.cmake ${cmake_file_path}
cd ${path}
|
c594cd77aca37555b9b73d99927037a675e0d55e | 2,041 | #!/usr/bin/env bash
#
# Ystia Forge
# Copyright (C) 2018 Bull S. A. S. - Bull, Rue Jean Jaures, B.P.68, 78340, Les Clayes-sous-Bois, France.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
#
source ${utils_scripts}/utils.sh
log begin
lock "$(basename $0)"
[ -z ${LOGST... |
951bc114f6416b517e4b53d5fe9f6752191e3475 | 158 | #!/bin/bash -xe
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
CREDO_ARGS="$@"
$DOCKER_COMPOSE run --rm -T $(power_dnsex_env) web mix credo $CREDO_ARGS
|
f5668139b57a735588d9ac18a05b5f2d7716c290 | 2,532 | #!/bin/bash
NYC_RAW_DIR="../data/raw"
NYC_INTREIM_DIR="../data/intreim"
NYC_PROCESSED_DIR="../data/processed"
CONFIG_FILE="../config/data_sources.json"
#CONTEXTUAL_DATA_FNAMES=( "MapPluto" "NYC_tracts" "CENSUS_ACS_2015" "DOB_complaints" "DOB_violations" "DOB_ecb_violations" "NYC_311_complaints" )
CONTEXTUAL_DATA_FNAM... |
8d6da61e9a4598b3693d69b5ddb1b7c2c994b8b7 | 103 | MAPBOX_KEY: Here goes the api key from mapbox
OPENWEATHER_KEY: Here goes the api key from OPENWEATHER |
0cb813f21366f377bbf5aee28baa07d1847849e4 | 313 | #! /bin/bash
DIR="results"
GPUID="0"
TYPE="vanilla"
DATASET="mnist"
SIZE="71"
mkdir -p "${DIR}"
for layers in 2 5 10 20 50 100
do
th main.lua -gpuid "${GPUID}" -cudnn 1 -json "${DIR}/${TYPE}-${DATASET}-${layers}.json" -type "${TYPE}" -set "${DATASET}" -layers "${layers}" -size "${SIZE}" -max_epochs 400
done
|
2ec7855f91b1a744e120d92af2fa5f8bd1aa89b5 | 332 | #!/usr/bin/env bash
source script.sh
function catch() {
case $1 in
0) echo "all tests succeeded"
;;
1) echo "installLiveServer() failed";
;;
*) echo "fubar! Something went wrong."
;;
esac
exit $1
}
# try
(
installLiveServer || exit 1
)
cat... |
f1ce261ce654222ca80476e5517e0189281a4b66 | 451 | #!/bin/bash
for kit in $@; do
if [[ $kit == "shield" ]]; then
SHIELD_ENABLED=1
fi
if [[ $kit == "blobstore-webdav" ]]; then
BOSH_MANAGED_BLOBSTORE=1
fi
if [[ $kit == "db-internal-postgres" ]]; then
BOSH_MANAGED_POSTGRES=1
fi
echo $kit
done
if [[ $BOSH_MANAGED_POSTGRES == 1 && $SHIELD_ENABLED... |
75290565fd2e9ab5e555b127bb22ece7a2da27f3 | 61 | sudo sh git_clones.sh
sudo sh update.sh
sudo sh ptf_tools.sh
|
82e298c9d141f14e4785fe10b6791ebce9704208 | 217 | #!/usr/bin/env bash
MODELS="/usr/local/share/models/"
docker run -it \
-v $(pwd):/usr/local/src/ \
-v $MODELS:$MODELS \
-v $DATA_DIR:$DATA_DIR \
tensorflow/tensorflow \
bash -c "export DATA_DIR="$DATA_DIR"; bash"
|
281415bc1994f117cab5f3d7a4cdfbbf820b7755 | 599 | # /bin/bash
# Exit script on command fail
set -e
# Auto export variables
set -a
# Exit if there are any parameter reference not passed as argument
set -u
# Tag as latest and push both versions
echo "Tag suizman/dform:`cat version | sed '/^\s*$/d' | tail -n1` as suizman/dform:latest"
docker tag suizman/dform:`cat ... |
9df6c00274b5a92eaf6c01dac8a89c9e1a892ace | 549 | #!/bin/bash
set -e
git checkout master
git remote update origin
git reset --hard origin/master
NEW_VERSION=`python2 updateLatest.py`
BRANCH_NAME=version-${NEW_VERSION}
git checkout -b ${BRANCH_NAME}
python2 kodi-addons/addons_xml_generator.py
git add plugin.video.9anime
git add addons.xml
git add addons.xml.md5
git... |
fdf44ce2303844ff9d2232fcf8370f0399e98b19 | 1,009 | #!/usr/bin/zsh
# save config
echo "CUDA_VISIBLE_DEVICES=0,1,2,3 python -u main.py \
--output_dir debug-exp/ \
--do_train \
--train_batch_size 24 \
--eval_batch_size 128 \
--bert_model albert-xxlarge-v2 \
--learning_rate $1 \
--num_train_epochs $2 \
--model_load_dir $3 \
--model_save_dir $3 \
--scheduler $4 "... |
458da17595f6c2994ea4aeb57c9f870300198de5 | 85 | #!/bin/bash
PCF_RABBIT_VERSION="1.15.3"
RELEASE_ID="265855"
PRODUCT_SLUG="p-rabbitmq" |
3c96934b2bb44071c9df0ed855fd5ee09abc153f | 430 | #!/bin/bash
data=gcn4
data_root=../../data/$data
fold=1
hidden=4
result_root=$HOME/scratch/results/kd_prediction_fisher/$data
kernel_dir=$result_root/kernel_matrix
if [ ! -e $kernel_dir ];
then
mkdir -p $kernel_dir
fi
save_file=$kernel_dir/kmat-f-$fold-h-$hidden.pkl
python explicit_fisher.py $data_root/${data}.t... |
f0b5b236c9bb3d41966926fb056d6d0b1b5d6c9b | 567 | #!/bin/bash
DCLIB="../../tool/lib/dataclayclient.jar"
if [ ! -f $DCLIB ]; then
echo "[ERROR] dataClay client lib (or link) not found at $DCLIB."
exit -1
fi
if [ -z $COMPSSLIB ]; then
echo "[ERROR] COMPSSLIB variable with valid COMPSS path is undefined"
exit -1
fi
if [ ! -f $COMPSSLIB ]; then
echo "[ERROR] COMPSs... |
cbe4020f0000741622a325a8eb526f457b42e5ee | 342 | #!/bin/bash
# Helper to automatically attach to TMUX on ssh
# See
# https://stackoverflow.com/questions/7114990/pseudo-terminal-will-not-be-allocated-because-stdin-is-not-a-terminal
# https://stackoverflow.com/questions/1376016/python-subprocess-with-heredocs
export cmd="ssh -t -i $1 -o StrictHostKeyChecking=no $2@$3 t... |
db593ec949c1c00afdba754b80c31a6e7ffad24f | 273 | #! /bin/bash
cd $(dirname "$0")
image="$(echo $1 | cut -d '.' -f1)"
checksum="$(md5sum iso/$image.iso | cut -d ' ' -f1)"
packer build -var "iso_checksum=$checksum" "$image.json"
mkdir -p "images/$image"
mv output-qemu/packer-qemu "images/$image.qcow2"
rm -rf output-qemu
|
8c34ed91817b3685d2f6d6490866a402cca4cb29 | 3,122 | #!/bin/bash
VERSION=$1
ENT="$HOME/code/pandora_enterprise"
OPEN="$HOME/code/pandorafms"
OS="Centos"
ARCH="x86_64"
EL="el7"
EXT="demo"
TARGET_URL="http://atlantis.artica.es"
DOCKER_PATH="$OPEN/extras/docker/centos8/"
OSTACK_IMAGE="pandorafms/pandorafms-open-stack-el8"
OBASE_IMAGE="pandorafms/pandorafms-open-base-el8"
P... |
9de523f04bb2c7412fc5f60c5bca18cb4d066d65 | 915 | #!/bin/bash
#SBATCH --time=16:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=20
#SBATCH --account=fogelson
#SBATCH --partition=kingspeak
#SBATCH -C "c20"
#SBATCH -o runner07.out
#SBATCH -e runner07.err
# find number of threads for OpenMP (adapted from CHPC code)
# find number of MPI tasks per node
export TPN=$(echo $SLURM_T... |
6f9fe3be9ad2aed7169f1566be1a1dcb0147b821 | 4,996 | #!/bin/bash
#
# ./run.sh [--preserve-tmp] casename
#
# Create a temporary directory in the current working directory and run the integration
# tests. Currently supported cases are:
#
# - serial: runs the serial versions of rangular and rmcdhf
# - mpi: runs the MPI versions of rangular/rmcdhf, but with a short MPI_TMP (... |
017e4af2f12614a6c95dba45e2b730f78ec5fd8d | 5,324 | netstat -lnp|grep 80
./apache/bin/apachectl start
sestatus
sudo chmod 4755 ../httpd
chmod 4755 ../httpd
sudo chmod 4755 ../httpd dir
dir
dir
tar -xzf httpd-2.4.27.tar.gz
cd httpd-2.4.27
cd ..
mkdia apache
mkdir apache
cd httpd-2.4.27
./configure --prefix=/home/2017/y2017g48/apache
make
make install
./apache/bin/apac... |
39263f4b1927e824d963679903a8ff414215fe7c | 137 | #!/bin/sh
pylint src/ && flake8 src/ && pydocstyle --add-select=D203,D212,D205,D200 --add-ignore=D211 --match='(?!__init__).*\.py' src/
|
44b223516235c0eb769aca3b94828a6933a9ca04 | 2,423 | #!/bin/bash
# btrfs filesystem with options in fstab:
# nofail,user,user_subvol_rm_allowed,compress=lzo
# mount cmd: mount /dev/...
# unmount : umount /dev/...
set -o errexit
set -o nounset
cmd=$(basename $0)
do_help() {
cat <<EOF
usage:
$cmd help: print this message
$cmd init <src>: initialize current dir t... |
5833b1c2c905226c98e7c188169562d5de1b02b2 | 175 | DJANGO_SETTINGS_MODULE=simpleapp.settings.production
MYSQL_DATABASE=app-db
MYSQL_USER=user123
MYSQL_PASSWORD=123456
MYSQL_ROOT_PASSWORD=123456
MYSQL_PORT=3306
MYSQL_HOST=mysql |
2f3ac9252d904a1554628d153a305eeaf3aac6e4 | 2,507 | #!/bin/bash
. $(dirname $0)/sqoop_utils.sh
setJava
BASE_PATH="/project/awg/cms/phedex/catalog/csv"
#BASE_PATH="cms-catalog"
JDBC_URL=$(sed '1q;d' cmsr_cstring)
USERNAME=$(sed '2q;d' cmsr_cstring)
PASSWORD=$(sed '3q;d' cmsr_cstring)
me=`basename $0`_$$
if [ -n "$1" ]
then
START_DATE=$1
else
START_DATE=`date +'%F' -d... |
3e89c252fa67910445770399df05bea9c0086aa8 | 448 | #! /bin/sh
#to prevent some possible problems
export AS_JAVA=/usr/local/jdk1.8.0
GLASSFISHPATH=/home/glassfish/bin
case "$1" in
start)
echo "starting glassfish from $GLASSFISHPATH"
sudo -u gladmin $GLASSFISHPATH/asadmin start-domain domain1
;;
restart)
$0 stop
$0 start
;;
stop)
echo "stopping glassfish from $GLASSFI... |
6c3dc9e778798669e050016370e3975678355695 | 597 | #!/bin/sh
if [ "$#" -ne 2 ]; then
printf "Usage: ./rsync-data.sh EXTERNAL_IP INTERNAL_IP\n\nBefore: copy all internal ips of the task managers to the slaves file!"
fi
IP=$1
INTERNAL_IP=$2
sed "s/JOBMANAGER_PLACEHOLDER/${INTERNAL_IP}/g" flink-conf.yaml > flink-conf-amazon.yaml
rsync -avz ../flink-dist/target/fli... |
88ae5a25f02d63affa6025a79f90887af3a995a5 | 152 |
cd /var/www/
/usr/bin/git pull
composer install
php artisan migrate
php artisan compile:templates
cd /var/www/frontend
bower update
gulp less
gulp js
|
d8047ecf19dec110fee138be7138a5e0bceb38d3 | 635 | #!/bin/bash
#
# prepare-ipxe copies the right images to /tftpboot, later when the
# shared volume is created, rundnsmasq will copy them there to
# /shared/tftpboot. We do this as a two-step operation to ensure all
# the expected images are available at build-time. Otherwise the CI
# jobs that build these images could s... |
b0e0bbfd05d34c742f4d3babfd54a8f40689a01a | 3,220 | #!/bin/sh
#IN_IMAGE_DIR=$OUT_DIR/target/product/rpi4/
#IN_BOOT_FILES=$ANDROID_BUILD_TOP/vendor/brcm/rpi4/proprietary/boot/
#OUT_IMAGE_FILE=$HOME/raspberrypi/omni-$ROM_BUILDTYPE.img
if [ -z $ROM_BUILDTYPE ]; then
echo "missing ROM_BUILDTYPE"
exit 0
fi
options=$(getopt -o ho:i:b: -- "$@")
[ $? -eq 0 ] || {
... |
801a8349ee83dae6d021604412dbd3831bb59a24 | 3,372 | #!/usr/bin/env bash
# Covtype
train_file="covtype.scale.train.small"
test_file="covtype.scale.test.small"
train_file_path=$(readlink -f datasets/$train_file)
test_file_path=$(readlink -f datasets/$test_file)
global_data=true
perform_test=true
# Init weights
use_weight_file=false
weight_file=
# Data parameters:
num_t... |
1a7f4573be59f36862fa823a3ebf3790bbd74c49 | 935 | #!/bin/bash
function check_dataset_info(){
if [[ -z "${DataSetsCli_name}" ]]; then
echo "DataSetsCli_name is undefined"
exit
else
MY_DATASET_NAME="${DataSetsCli_name}"
fi
}
function check_mount_point(){
if test -f "$MOUNT_POINT"; then
echo "MOUNT_POINT exists"
else
mkdir $MOUNT_POINT
f... |
eeaeaffc95cb0816080e14de729c5bd39bbc471e | 148 | #!/bin/bash
CTYPE="content-type:application/json"
URL='http://localhost:15672/api'
curl -i -u guest:guest -H $CTYPE -XDELETE $URL/vhosts/samtests
|
3f66740d209f672815f813e227f691f58793183e | 202 | #!/bin/bash
set -e
# Build Revolve
cd /revolve
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE="Release"
make -j4
# Install the Python dependencies
cd /revolve
pip3 install -r requirements.txt
|
cb60a7f8efb8f6dd37e284c15c78ae4ca7c6bf28 | 60 | touch -A -000001 -a bomb.txt | stat -f %a bomb.txt | cat -e
|
7235ed330121cb3af3b7c85eaa7e399d81cfecf9 | 399 | wget https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/2.9.0/github-markdown.min.css
wget https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js
wget https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.3/katex.min.js
wget https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.3/katex.min.css
wget h... |
d9a1ae5c33a327230693bc22bd4bd34c85cb31e7 | 15,873 | #!/bin/bash
#SBATCH --partition=cpu_short
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --mail-user=nt1598@nyu.edu
#SBATCH --ntasks=3
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=32G
#SBATCH --time=00-12:00:00
#SBATCH --output=serial_test_%j.log#!/bin/bash
module add samtools/1.9
module add bedtools/2.26.0
# parse s... |
f5effb6f2e7e1552c64a29ca81445640cadb8aa9 | 485 | # force a build clean every time
rm ~/.cache/nim/main_d/*
rm ios_triangle/src/*
# build it for iOS
/p/Nim/bin/nim c -f --os:ios -c --noMain:on main.nim
# copy all support files into the ios project
cp ~/.cache/nim/main_d/*.c ios_triangle/src/
cp nimbase.h ios_triangle/src/
cp file_compat.h ios_triangle/src/
cp ../glf... |
d6ee2e1faf7219e656643f4244078d23b6b0c1ae | 2,614 | #
# Copyright 2022-2023 Advanced Micro Devices Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
ae497418c588190b9750a47c901a715f80eddd6f | 232 | #!/bin/bash
set -e
rm -f results.txt
for i in extra/burst/*.png; do echo $i; ./mcq.py $i; done
#for i in extra/burst/*.png; do echo $i; ./mcq.py $i; feh research.png; done
#for i in extra/burst/*.png; do echo $i; ./mcq.py $i; done
|
9c216f999d7142ae58fa1c9b619d8acf53c44672 | 162 | export PATH=~/projects/tools/Arm_A9_linaro_4.8.3/bin:~/projects/tools/lz4:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-gnueabi-
./makeMtk -t s7511 r drvgen k
|
ff6283956ba1125bf30208063121a53908d19e8b | 56 | #!/bin/bash
#This is my prelab :)
echo 'Hi Evveryone'
|
b83da1603ea7caa4d4d82e115b81ba1c4ea22cb3 | 64 | #!/bin/bash
PROC=4
mpirun -np ${PROC} ./himeno/bmt_L_2x2x1.out
|
d11191e65203a0563d5f1b8fd1a18b0f3443ed37 | 104 | #!/usr/bin/env bash
cd "$(dirname "$0")"
php tests.php && php --no-php-ini test_unloaded.php
exit $?
|
1ae7904fab11f82e7b26dacf58da5aff9d53c279 | 369 | #!/usr/bin/env bash
./raftexample3 --id 1 --cluster http://127.0.0.1:12379,http://127.0.0.1:22379,http://127.0.0.1:32379 > node1.log &
./raftexample3 --id 2 --cluster http://127.0.0.1:12379,http://127.0.0.1:22379,http://127.0.0.1:32379 > node2.log &
./raftexample3 --id 3 --cluster http://127.0.0.1:12379,http://127.0... |
e02c7c86cb37272d445688f57e55d635edbfdb4d | 67 | #! /bin/bash
echo " Hello World "
echo " this is my first script"
|
c10bd7e61041cf65934db4d97828cda4cd20f05b | 6,524 | #!/bin/sh
#
# File: llnms-scan-asset.sh
# Author: Marvin Smith
# Date: 12/13/2013
#
# Purpose: Runs the scanners on the specified asset.
#
#----------------------------------------#
#- Print Usage Instructions -#
#----------------------------------------#
usage(){
echo "`basename $0` [o... |
0c46e3f5515aa9171a2a6796770f40a48f1c04d6 | 327 | #!/bin/bash
COMPONENTS_PATH=~/.config/conky/themes/personal
killall conky
sleep 10 &
# Load left panel
# conky -c ${COMPONENTS_PATH}/left-panel.conky &
conky -c ~/.config/conky/themes/conky-blue/conkyrc &
# Load right panel
conky -c ${COMPONENTS_PATH}/right-panel.conky &
# conky -c ${COMPONENTS_PATH}/zenzire.conky &
... |
3186a9da601dfb23e6e035f29ee9da4bb7548cab | 69 | #!/bin/sh
exec dotnet run --project "$(dirname "$0")/../JsonEncode"
|
ec4300d204bc3b7a933460b78e0067ba509829b4 | 1,206 | #!/usr/bin/env bash
#USAGE: checkPyImport packagename
#
#EXAMPLES:
# #Should return Success and an exit code of 0
# checkPyImport os
#
# #Should return Failure, exit code 1 -- "Douglas Adams" != "Monty Python"
# checkPyImport slartibartfast
#
# #In a script where you don't want the stdout, do something like:
# c... |
d65ce154dd39375c719740d49e8c60bfbd65d877 | 2,046 | #! /usr/bin/env bash
# This script must be sourced
#
# Set up the environment to deploy to a Riff AWS docker swarm
# Takes 1 argument, the swarm environment name (staging, beta, etc)
# defaults to 'staging'
# After this script is sourced: the python environment is activated,
# a tunnel to an aws docker manager is cre... |
b721f0b338a3b6eff823392ffd7bbf091e87f021 | 314 | # Load ~/.bash_prompt, ~/.exports, ~/.aliases, ~/.functions
for file in ~/.{bash_prompt,exports,aliases,functions,git-completion}; do
[ -r "$file" ] && source "$file"
done
unset file
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
|
a564ad28c55263eb345b723f08eb8a3a82a737bc | 202 | #get MSCOCO dataset
#(1) install gsutil via:
curl https://sdk.cloud.google.com
#Make local dir:
mkdir train2017
#(3) Synchronize via:
gsutil -m rsync gs://images.cocodataset.org/train2017 train2017
|
8c949714b6aaafc710a4e16a9b629873304eaf89 | 979 | #!/bin/sh
# Copy and build source files to VM370
# STOP MSYS2 rewriting directory paths in the docker container
export MSYS2_ARG_CONV_EXCL="vm370:;/opt"
docker kill vm370
docker pull adriansutherland/vm370:builder
docker run --rm -d -p 3270:3270 -p 8038:8038 -p 3505:3505 --name vm370 adriansutherland/vm370:builder
# ... |
7840ee1d66c584addcea70c884a80d715b626b42 | 1,387 | WORKSPACE_DIRECTORY="$(dirname "$0")/.."
echo WORKSPACE_DIRECTORY
# set the build version if specified
if [ -z ${BUILD_NUMBER+null} ]; then
echo "No build number set. This is okay - will build without modifying “Info.plist” or badging icon."
else
/usr/libexec/PlistBuddy -c "Set CFBundleVersion ${BUILD_NUMBER}... |
a39c754f0aa801e00f0da2c5b3bb804747429207 | 8,109 | #!/bin/bash
# problem 5 in 1D
# generate figs locally
cd resultsp51DKn1e-9
../../../glvis-3.3/glvis -run ../create_parallel_M1Philippe_1Dfigures.glvs
cd ../resultsp51DKn1e-9Efield
../../../glvis-3.3/glvis -run ../create_parallel_M1Philippe_1Dfigures.glvs
cd ../resultsp51DKn0.0001
../../../glvis-3.3/glvis -run ../create... |
784c35aa18e0c6ca35de8550fd891b7cd7991f63 | 2,754 | #!/usr/bin/env bash
function check_version() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
# Define some paths
BUILD_ENV="$HOME/work/build_env"
# Load cmake
module load cmake
# Create the directory to work in
source=$(pwd)
mkdir -p $BUILD_ENV
# If PostgreSQL isn't present, download and install it... |
f6f4ee6832f6bd60173d773b2e575a767d3ec732 | 1,100 | #!/usr/bin/expect
#Shell command to transfer file using scp on Linux
#Don't support windows yet for now
#Usage
# localFIle remoteAddr remoteFile user password isToRemote
set localFile [lindex $argv 0]
set remoteAddr [lindex $argv 1]
set remoteFile [lindex $argv 2]
set user [lindex $argv 3]
set password [lindex $argv ... |
6bffcdf3f59474451cdf6809c3fe74046fee3f7a | 150 | #!/bin/bash
for filename in $(ls $1)
do
echo "$filename" | grep "\.old$" > /dev/null
if [$?!='0']
then mv "$1/$filename" "$1/$filename.old"
fi
done
|
dc22d73bc0f93b31bcde4982fdb573158a0d3384 | 13,804 | #!/bin/sh
# SET IMAGE FOLDER PERM
chmod 777 /usr/local/nginx/html/images -R
# INIT
printf "$(date '+%Y/%m/%d %H:%M:%S') [info] _ _ _ _ \n"
printf "$(date '+%Y/%m/%d %H:%M:%S') [info] __| | __ _| |_ __ _ _ __| |___ ___(_)\n"
printf "$(date '+%Y/%m/%d %H:%M:%S') [info] / _ |/ _ |... |
2f766b1f1046a97c7b7c1d42a7776694e2c93a19 | 2,260 | #!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
tmp_dir=$(mktemp -d)
cd $tmp_dir
git clone https://github.com/diddledan/one-script-wsl2-systemd
python3 -c "import configparser; config = configparser.ConfigParser(); config.read('/etc/wsl.conf'); config['boot']['command'] = \"/usr/bin/env -i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.