blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
31472f1fa0664c76a976072d68635eed3f37a133 | 1,248 | #!/bin/bash
DIST_FOLDER="docs"
SRC_FOLDER="src"
HTML_FILE_NAME="index.html"
JS_FILE_NAME="script.js"
DATE=`date +%d_%m_%Y`
rm $DIST_FOLDER/$HTML_FILE_NAME
rm $DIST_FOLDER/$JS_FILE_NAME
echo "arquivos apagados"
html-minifier --collapse-whitespace --remove-comments --minify-css true --minify-js true $SRC_FOLDER/$HTML_F... |
478bb53d90681bbdede2f2004e675eea6a8e25fa | 234 | # include local
if [ -e ~/.bashrc.local ]
then
source ~/.bashrc.local
fi
# add brew to path
export PATH=/usr/local/sbin:/usr/local/bin:$PATH
# chruby
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
|
00ddf57bb2878c9c50d4c9e1f53083cdbf0fafbe | 2,578 |
#!/bin/bash
# Get the acces token
export TKN=$(curl -k -X POST 'https://secure-rhamt-web-console-labs-infra.apps.seoul-250a.openshiftworkshop.com/auth/realms/master/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=password' \
-d 'grant_type... |
473ce69ec83ec8991588576302ce33c05f6bda74 | 747 | #!/bin/bash
######
# Taken from https://github.com/emp-toolkit/emp-readme/blob/master/scripts/throttle.sh
######
## replace DEV=lo with your card (e.g., eth0)
DEV=lo
if [ "$1" == "del" ]
then
sudo tc qdisc del dev $DEV root
fi
if [ "$1" == "lan" ]
then
sudo tc qdisc del dev $DEV root
## about 3Gbps
sudo tc qdisc ad... |
3554fdeb15abc68fbf6fc9c159fef56901339e9e | 207 | #!/bin/bash
mpiexec -np 1 Rscript $pathv/buildMpiNet.R $dataFile $((numberCore-1)) $pathv "sparrow2Z" $outputpath
Rscript $pathv/computeMD5.R $outputpath/sparrow2ZNetwork.csv $outputpath/sparrow2tempmd5.out
|
1a6b58212862b4119e1135e32cc437357276b613 | 1,252 | #!/bin/sh
addgroup -g ${GID} rufy && adduser -h /var/www/RuFy -s /bin/sh -D -G rufy -u ${UID} rufy
if [ $WEBROOT != "/" ]; then
sed -i 's|<webroot>|'${WEBROOT}\/'|g' /etc/nginx/nginx.conf
sed -i 's|<webroot2>|'${WEBROOT}'|g' /etc/nginx/nginx.conf
sed -i -e '\#URI# s#/rufy#'${WEBROOT}'#' /var/www/RuFy/RuFy... |
6220acaa3141d89f5d3b471fc7089f7c3acfd9ea | 199 | #!/bin/sh
echo SET ANT ENVIRONMENT
cd ../ant
. ./setantenv.sh
echo CHECK ANT HOME VARIABLE
echo ANT_HOME: $ANT_HOME
cd ../ant_compile
echo ANT COMPILE OUTPUT:
ant clean
ant compile
ant jar
ant run |
807a5c9b26c96780c455e289b0eea6e4c0811728 | 48 | babel-node ./scripts/kernel/save-kernel-to-db.js |
254508bbd728d660ced76aea9712149357052de6 | 467 | #!/bin/bash
#SBATCH -J task3 # name for job array
#SBATCH -o all.out #Standard output
#SBATCH -e all.err #Standard error
#SBATCH -p serial_requeue #Partition
#SBATCH --mem-per-cpu 4096 #Memory request
#SBATCH -n 1 #Number of cores
#SBATCH -N 1 #All cores on one machine
# 1st argument = M (number of Ys to generate per ... |
21a695b45f7b05410be3e31b15b11ef8cd87d12b | 674 | # Contributor: Francesco Piccinno <stack.box@gmail.com>
pkgname=ctunnel
pkgver=0.3
pkgrel=1
pkgdesc="Proxy forward TCP or UDP connections via a cryptographic tunnel"
arch=('i686' 'x86_64')
url="http://nardcore.org/ctunnel"
updateurl="http://nardcore.org/ctunnel/download=>ctunnel-"
license=('GPL')
depends=('openssl')
g... |
fa8ded8928324f3e411e96ad8930489d803df1e1 | 1,571 | echo $WORKSPACE
export PROJECT_NAME=ohrockman
export APP_VERSION=`git rev-parse HEAD | cut -c -12`
export VENV_VERSION=`sha1sum ./requirements.txt | cut -c -12`
export ROOT="/usr/local/$PROJECT_NAME"
export APP_DIR="$ROOT/app_versions/$APP_VERSION"
export VENV_DIR="$ROOT/venv_versions/$VENV_VERSION"
export TEST_APP_DIR... |
471d9ae2e78ea6c99eab648a36d5103356dce6a3 | 2,920 | #!/bin/bash
# Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE.md file.
# Setup
# - Install and build dartino.
# - Install Cocoapods.
# - Run immic (output i... |
d93fd6ad14f65dcef9c3444c70bfbc64f89e83d8 | 48 | python() {
require package_installed python
}
|
502c42b64793fc0cb6ac8d8e31e74c4691dd1d4f | 216 | #/bin/bash
nvim +UpdateRemotePlugins +PlugUpgrade +PlugInstall +PlugUpdate +PlugClean +qall
nvim -c 'CocInstall -sync coc-json coc-phpls coc-tsserver coc-css coc-eslint coc-html coc-tailwindcss coc-flutter|q' +qall
|
6e030c04b62def3a1366f524398c82073b781069 | 534 | # Maintainer: Mark Lamourine <markllama@gmail.com>
pkgname=python2-powerusb
pkgver=1.4
pkgrel=1
pkgdesc="Library and CLI tools to Control PowerUSB power strips."
url="http://pwrusb.com"
arch=('any')
license=('Apache')
makedepends=('git' 'python2' 'python2-distribute')
depends=('python2' 'python2-lxml' 'python2-pyusb')... |
833c7320339e701ef8922203805068d0e7e13c00 | 830 | #!/usr/bin/env bash
self="$(dirname "$0")"
build_in_place_dir="$(python -c "import os; print os.path.realpath('$self/../_mac-build')")"
xammac_framework_dir="$build_in_place_dir/Library/Frameworks/Xamarin.Mac.framework/Versions/Current"
xbuild_external_dir="$build_in_place_dir/Library/Frameworks/Mono.framework/Externa... |
293d7f3f1c2393270d10ce7a2471571614607b11 | 429 | # Basic Aliases
alias ll='ls -al'
alias gg='open '"'"'https://www.amazon.de/New-York-liebe-dich-XOXO/dp/B00J361GUA/ref=sr_1_1?s=instant-video&ie=UTF8&qid=1483534090&sr=1-1&keywords=gossip+girl+staffel+6'"'"' -a google\ chrome > /dev/null'
# Open in Different IDEs
alias brackets='open . -a brackets'
alias idea='open . ... |
c0c5d1d280c39ed1e16cb491e3c13dea7d7e8b60 | 1,840 | #!/usr/bin/env bash
source /chili/core.sh
sh_confadduser()
{
cfullname="Vilmar Catafesta"
cuser="vcatafesta"
cpass=""
cpassroot=""
chostname="chili"
ccreatenewuser="Cria usuario"
exec 3>&1
usertext=$(dialog \
--backtitle "$cmsgusermanager" ... |
c4aa3191b94b2a670a2ba592b67832f8dda021d0 | 1,072 | #!/bin/bash
# Deps: php, pwgen, emc
URL="https://emcdpo.local"
SALT="fah6aZfewfwewej"
ADDRESS="ERGPQNKpmJNaXeaq6ZDYwgghQDMBQGVema"
VENDOR="Your Company"
ITEM="Name of your product"
PHOTO="http://www.blockchainengine.org/wp-content/uploads/2016/04/Smart4.png"
OTHERS="Description=The description of your product"
PREFIX... |
27426063fe8c195617fbc488fe4dcb9b6ca32dbe | 1,377 | #!/bin/bash
branch_name=${1:-master}
RECLONE=yes
GLANCE_BRANCH=${GLANCE_BRANCH:-$branch_name}
HORIZON_BRANCH=${HORIZON_BRANCH:-$branch_name}
KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-$branch_name}
NOVA_BRANCH=${NOVA_BRANCH:-$branch_name}
QUANTUM_BRANCH=${QUANTUM_BRANCH:-$branch_name}
SWIFT_BRANCH=${SWIFT_BRANCH:-$branch_na... |
896035178e53a9e498393e78f84b8cad893f5ad1 | 55 | PUBLIC_KEY=
PRIVATE_KEY=
MAIL_TO=mailto:teste@teste.com |
f7bbb86c83d070aded437cfc12c2f0fc14df34d8 | 65 | docker-compose -f docker/docker-compose-run-whole-prod-app.yml up |
7528cc08e3926b058bdf3ba61dc5721b56368838 | 1,038 | #!/bin/bash -xe
SCRIPTDIR=`dirname $0`
SCRIPTDIR=`cd $SCRIPTDIR && pwd -P`
BASEDIR=${SCRIPTDIR}/../..
BASEDIR=`cd ${BASEDIR} && pwd -P`
pushd ${BASEDIR} > /dev/null
SYSTEM_VERSION=21
android_ndk_build() {
SYSTEM_VERSION=$1
ARCH=$2
OTHER_FLAG=$3
# build
/bin/rm -rf build
/bin/mkdir build
... |
350fda017c35e554fb56e5d28700859e603f0121 | 3,502 | #!/usr/bin/env bash
#============================================================================#
# AUTOR : Jefferson Carneiro <slackjeff@riseup.net>
# LICENÇA : GPLv2
# DESCRIÇÃO : Backup para arquivos/diretórios e banco de dados MariaDB
#
# Versão: 1.0
#=========================================================... |
1f335f86c1ce7b71be589b8265edb62bf7e218b2 | 333 | #
# Script to Install
# Linux Tools
#
# The Python Quants GmbH
#
apt-get update
apt-get upgrade -y
# Linux System Tools
apt-get install -y wget bzip2 screen htop vim man less
# Python3 via Linux
apt-get install -y python3 python3-pip
pip3 install pip --upgrade
pip install ipython pandas pyzmq q nose
cp 04_vimrc.txt ... |
b85fe0fcf851137e2279839255589dcfc75dfecd | 640 | module purge
module load gnu_comp/10.2.0
module load cmake/3.18.1
module load bison/3.4.1
module load openmpi/4.0.5
module load ucx/1.8.1
export DATA=/cosma5/data/do008/dc-bett2 # Path to data partition
export INSTALL_DIR=/tmp/firedrake # Path to install
# Set main to be working directory
# Create this in /tmp ... |
d1cbd22cc85521adaf6ece94eb786c3d4e353b7d | 644 | #!/bin/bash
# Below are example commands that I normally run during a build.
# Change home directory (bower puts a lot of cache and tmp directories here)
#HOME=$OPENSHIFT_REPO_DIR
#cd $OPENSHIFT_REPO_DIR
# Cache npm and bower components on main gear
#if [ "$OPENSHIFT_GEAR_UUID" == "$OPENSHIFT_APP_UUID" ]; then
#mk... |
6b1d01901d4ef9d8f4e84e99bcdee0663a3c2692 | 59 | #!/bin/bash
echo "./configure --host=arm-linux-gnueabihf "
|
a392f50a824ac0e3c54ebaaf9c27c5554a9948b6 | 202 | #!/usr/bin/env bash
find . -name \*pyc | xargs rm -fv
find . -name \*pyo | xargs rm -fv
find . -name \*~ | xargs rm -fv
find . -name __pycache__ | xargs rm -rfv
rm -rf coverage .coverage .cache
|
efcb6625f9e4f15f3182616d29e02f9031cdfcf3 | 483 | # auto completion for the ece-install command. -*- sh -*-
_ece-install_commands()
{
local cur=${COMP_WORDS[COMP_CWORD]}
local prev=${COMP_WORDS[COMP_CWORD-1]}
options="
--conf-file
--verbose
--version
-V
-f
-v
"
# default completions is t... |
934ff825b945bae6582b709321928dba2a748d70 | 95 | #!/bin/bash
export FLASK_APP=./Group16/server.py
source $(pipenv --venv)/bin/activate
flask run |
5bd4ea24449818149ae80d7eb6e60266e269af8c | 778 | #!/bin/bash
set -eu pipefail
: '
This script is designed to detect if a gitsha represents a normal
push commit (to any branch) or whether it represents travis attempting
to merge between the origin and the upstream branch.
For more details see: https://docs.travis-ci.com/user/pull-requests
'
# Get the commit mess... |
74fd3bd749604a1047316c30c329039e642acdfa | 64 | git add . && git commit -m 0 && git push
sharknado5
K00sk0mbuis
|
c28f4fca627d743b5385c4b61c1add7feba2468f | 136 | JAWSDB_URL='mysql://nkbjwkq0lv4v3whu:q22yqgjp8492kw71@fugfonv8odxxolj8.cbetxkdyhwsb.us-east-1.rds.amazonaws.com:3306/wa8bxbm0ennqp83q'
|
c95d8de5d729d84b9f4e2f3f04abad93ab54275e | 1,048 |
#check local IP
ip=$(eval "ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'")
#configure elasticsearch
sed -i "s/#network.host: 192.168.0.1/network.host: $ip/g" /etc/elasticsearch/elasticsearch.yml
sed -i 's/#http.port: 9200/http.port: 9200/g' /etc/elasticsearch/elasticsearch.yml
sed -... |
b14380b757411de834f8c6f6cdc5d1b4c25ad3ea | 340 | #!/usr/bin/bash
if [ -z "$1" ];
then
echo "Call as $0 <Classname> [directory]"
exit 1
fi
case ${1:0:1} in
[[:lower:]])
echo "$1 should begin with an uppercase letter."
exit
;;
esac
if [ -z "$2" ];
then
P="$1.java"
else
P="$2/$1.java"
fi
echo 'class' "$1" '{
public static void main(String[] args) {
... |
60efeda91239eeb9d6e18775baeb3290610d2db9 | 83 | #!/usr/bin/env bash
image_tag="watermark-remover"
docker build -t "$image_tag" .
|
59c2d53a40e8fcf816e88b82a58b13588f9b69d9 | 171 | #!/bin/sh
f0="$(readlink -f -- "$1")"
shift
[ -f "$f0" ] && [ -r "$f0" ] || exit
for f; do
[ "$f0" -ef "$f" ] && continue
cmp -s -- "$f0" "$f" && printf %s\\0 "$f"
done
|
dfd660ac3e98a18b790ae9388817253821cd9e2e | 818 | #!/usr/bin/bash
danglingImg=`docker image ls | grep httpsproxy | grep latest | awk {'print $3'} | uniq`
if [ -z "$danglingImg" ]
then
echo "Empty Image!"
else
printf "Images: $danglingImg \n=======\n"
for word in $danglingImg
do
printf "Removing $word\n"
c... |
06403ffd91a87b44277d6d7100a483106a6ad988 | 737 | #! /bin/sh
# installs pyenv for the current user
REPO_NAME=sysadmin
USERNAME=nephlm
PY_VERSION = 3.5.1
INSTALL_DIR=/opt
GITHUB=https://github.com
sudo apt-get install curl git gcc make zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libssl-dev libffi-dev -y
curl -L https://raw.github.com/yyuu/pyenv-installer/... |
17202e935aac207c27f78df4bb795f405155ab34 | 1,524 | # Maintainer: Jens Pranaitis <jens@chaox.net>
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: Tom Killian <tom.archlinux.org>
# Contributor: Judd Vinet <jvinet.zeroflux.org>
pkgname=dhcpcd
pkgver=5.1.1
pkgrel=1
pkgdesc="RFC2131 compliant DHCP client daemon"
url="http://roy.marples.name/dhcpcd/"
a... |
64a356985d73c3ad286831f1e89d6690dbe661da | 7,359 | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... |
0f825ba9fcc4e695ace107170e950f4c120f29c2 | 432 | #!/bin/bash
argc=$#
option=$1
dev_name=$2
start_block=$3
block_size=$4
if [ $argc -lt 4 ]; then
echo "Usage : ./dsm.sh [dev_name] [option(-d, -w, -r)] [start_block] [block_size]"
exit 1
fi
nvme dsm ${dev_name} ${option} --blocks=${block_size} --slbs=${start_block} > /dev/null 2> /dev/null
ret=`echo $?`
... |
f47c4cb858a5913d316933d8333dac3aef0e54c6 | 110 | #!/bin/sh
echo "step 1. make init"
rm -rf build
mkdir build
cd build
cmake ..
echo "step 2. make"
make
cd ..
|
229b3300e2a3e555af7e3a34f794b45fa354dcb7 | 118 | #!/bin/sh
lynx -source https://bootstrap.pypa.io/get-pip.py | python3
pip install BeautifulSoup4
pip install openpyxl
|
7cceaaacf34177b60a6e71b3353b254aa202f528 | 244 | # create a new software environment with conda
conda create -y --name py368 python==3.6.8
conda init
# activate that environment
conda activate py368
# install unicycler & dependencies
conda install -c bioconda unicycler
conda deactivate |
7b561cc31bb21a41391c79f7b6ddfa5e9c588b97 | 371 | MicrosoftAppId=638cd1cd-131b-423f-a38f-172d985d372f
MicrosoftAppPassword=kWcwxQ-1Pj^(e/CB
AzureWebJobsStorage=DefaultEndpointsProtocol=https;AccountName=botishhbdc4;AccountKey=mgi1C0dC/H1kLF6CwbUoenqZ2EQBOPKC3h5InsN1JRUWWUpAIqqSZnjZxsKx0ymPcEY5DCfuAYTTvli1zdezwA==;
BotOpenIdMetadata=
MONGODB_URI=mongodb://MohamedHasse... |
3f98d9e3f96bf859a18a6fcc306358c32e17e8ea | 213 | raspivid -t 0 -w 1280 -h 1080 -fps 25 -b 1700000 -o -| tee /home/pi/Desktop/asdasdasd.avi | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! udpsink host=192.168.1.50 port=14550
|
e881442b9c41dde98901c0c947c9781ef2a622ef | 138 | /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player --vm-name "$(VBoxManage list vms | awk -F '"' '{print $2}')"
|
7e63d6d79b438435bef3cd8b7a383a549facc0d3 | 2,238 | #!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Licen... |
82eabb17874e2b545e507d094b076a818f96f908 | 265 | HOST=127.0.0.1
PORT=3333
NODE_ENV=development
API_DEBUG=false
APP_NAME=UserAPI
APP_URL=http://${HOST}:${PORT}
APP_PREFIX=/users
APP_KEY=
DB_CONNECTION=postgres
DB_HOST=127.0.0.1
DB_PORT=5433
DB_USER=postgres
DB_PASSWORD=docker
DB_DATABASE=user_api
DB_DEBUG=false |
9575907521191c28f0ef9538e39864fe2c5951ad | 1,937 | #!/usr/bin/env bash
cd $VIRTUAL_ENV
echo "+ Setting up development environment bash functions ..."
function vcd () {
HOME=$VIRTUAL_ENV \
CDPATH="${VIRTUAL_ENV}:${VIRTUAL_ENV}/local:${VIRTUAL_ENV}/var:/tmp:${CDPATH}" \
eval "cd $@"
}
function vbp () {
SIGNALQUEUE_RUNMODE=SQ_SYNC \
${INSTAN... |
f9fec2297223455dcc5eac37930eda29e8cceeb3 | 855 | #!/bin/bash
# GAUSS-SEIDEL MEASUREMENTS
# =========================
ARCH=$1
OUT="out.gs.$ARCH.txt"
ITERS=10
mkdir gauss-seidel
cd ./code
# Compile
echo 'Building benchmarks ...'
./build_$ARCH.sh
mv a.gs.$ARCH.Ofast ../gauss-seidel/
mv gs.s.$ARCH.Ofast.s ../gauss-seidel/
cd ../gauss-seidel
# Run benchmarks
echo 'Ru... |
d3e4871771ba8a25ebd44702fefd90b7208897c0 | 60 | DB_USER=
DB_PASS=
DB_HOST=
DB_PORT=
DB_DIALECT=
DB_DATABASE= |
f3e98eec66d9826a20f48a396b195ead4d2a5438 | 43 | #!/bin/zsh
cat /dev/stdin > /dev/clipboard
|
be64d810918b5c82fff4a41da1aed63198971788 | 112 | MONGO_USER=admin
MONGO_PASSWORD=tien1991
MONGO_PATH=@ds259241.mlab.com:59241/tutorial_typescript_node
PORT=5000
|
9ee10febfc5002cf0ebb9f1304bd705fc8bb9c87 | 450 | #!/usr/bin/env bash
mkdir -p ./components/com_${FILE_FOLDER_NAME}/controllers
mkdir -p ./components/com_${FILE_FOLDER_NAME}/language/en-GB/
mkdir -p ./components/com_${FILE_FOLDER_NAME}/layouts/
mkdir -p ./components/com_${FILE_FOLDER_NAME}/models/
mkdir -p ./components/com_${FILE_FOLDER_NAME}/views/
cp ./tmp_php.txt ... |
d010e263d0b21afab93511098ce73427257e4d3b | 464 | #!/bin/bash
# error case
set -e
echo step 1 : maven command to build the .war
echo ' '
mvn clean install -f ../pom.xml
echo ' '
echo step 2 : copy the .war in the right directory
echo ' '
cp ../target/Project01.war ../docker/images/wildfly/data/
echo ' '
echo setp 3 : docker-compose commands to launch the container... |
9a721a8e72464fcf267fe54e34353868b9351192 | 6,970 | #!/bin/bash
#set -Eeuo pipefail
set -Eeo pipefail
DEFAULT_NETWORK_RANGE="172.30"
CIDR_16="${DEFAULT_NETWORK_RANGE}.0.0/16"
CUR_DIR=$PWD
echo "CUR_DIR:" $CUR_DIR
echo "---Building tfuser cli...."
cd ../../tools
TOOL_DIR=$PWD
make tfuser &>/dev/null
TFUSER_PATH="${TOOL_DIR}/tfuser/tfuser"
echo "TFUSER_PATH:" $TFUSER_PATH... |
132b1be265c9657ca898acb7307ec05333475168 | 74 | ./exilla orderbook:get --pf=8000 --pt=15000 --s=10 --schema=quoter_average |
ce2fc86dd5a26db391848a6a66c9f8b6649766f5 | 222 | #!/usr/bin/env bash
readonly DEST_DIR='../failed/'
pcregrep -o1 -o2 --om-separator=' ' 'cannot move.*(2-s2.0-\d+).* to .*/([\da-z-]+\.zip)' job.log | while read pub zip
do
echo "unzip $zip '*$pub.xml' -d $DEST_DIR"
done
|
503a8c0c73c47ec324e9703c8a541ff25552b09c | 726 | FILES=`ls data/*.h5ad 2>/dev/null` # get names of all .h5ad files from data dir
for f in $FILES;
do
file=`basename $f` # get name of .h5ad file
printf "\nStarting dropkick qc on $file:\n"
time dropkick qc $f # generate dropkick QC report
printf "\nRunning dropkick filtering on $file:\n"
time dropkick run $f -j... |
3675505c5d5ae6822220db48c5f732f590b33616 | 216 | #!/bin/bash
DATE=`date`
cd /opt/test
echo $DATE > lastrun.txt
git add *
git commit -a -m "$DATE" 2>&1 >> /dev/null
/usr/bin/java -jar /opt/jenkins-cli.jar -auth admin:admin -s http://80.48.101.133:8080 build 'Test'
|
80f074154159554facfed9dad713901d7f23400d | 975 | #! /bin/bash
# Change cell vectors of an orthorhombic cell given the length in wd POSCAR
# Usage orthcell: [a]
# Usage orthcell: [a] [b] [c]
cp POSCAR oldPOSCAR
sed -i '2,5d' POSCAR
if [ $# -eq 1 ]
then
a=$(echo $1 | awk '{printf "%.16f", $1}');
sed -i '2 i 1.0000000000000000' POSCAR
sed -i '3 i ... |
9d03b94be18806f70e5ab497d835fcaad257c66d | 696 | # Setup Kubernetes
[ -f /etc/yum.repos.d/kubernetes.repo ] || {
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://pa... |
1a95c22249c42d071ecb4acc91a451af11691f45 | 7,541 | #!/bin/bash
DOCSTRING="psiblast4allPDB.sh PDBDIR/ list
Given 'PDBDIR', a folder of single chain PDB files,
and 'list', a list of PDB chains. Seqentially run
fixMSE.py reindex_pdb.py getfasta.py MakeMTX.sh MakePRF.pl MakeJSD.pl
Deposit *.fasta files at PDBDIR/FASTA/
Deposit *.mtx files at PDBDIR/MTX/
... |
5f99c6dae3e0de89a627dd8660073e59530b8fbe | 191 | #!/bin/bash
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA1 "1368x768_60.00"
xrandr --output VGA1 --mode "1368x768_60.00"
|
e6114acb1a905f9c6c9d598bf5c5d75e537b05dd | 66 | #!/bin/bash -e
exec java $JAVA_PARAMS -jar /opt/app-root/app.jar
|
c7e9e499c058e362d0ee946cf75b42394f03dd05 | 537 | # Maintainer: György Balló <ballogy@freestart.hu>
pkgname=humanity-icon-theme
pkgver=0.5.3.4
pkgrel=1
pkgdesc="Elementary Icons for Humans"
arch=('any')
url="https://launchpad.net/humanity"
license=('GPL')
depends=('gnome-icon-theme')
source=(https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_$pkgver.tar.g... |
1bbaa6fbc02b5bc57f7b3669da924c0c833ce762 | 49 | #!/bin/bash
parecord &> ../zero-log/parecord.log
|
0fd4e1bc25e6ec525f9925f80f2a99d7160764ba | 434 | #!/bin/sh
SCRIPT_DIR=$(cd $(dirname $0); pwd)
if [ "$1" != "-y" ] ;then
printf "Just stopping. It's not removing containers. \nDo you want to stop docker now (y/n)? "
read answer
else
answer=y
fi
if [ "$answer" != "${answer#[Yy]}" ] ;then
cd ${SCRIPT_DIR}
cd ..
docker-compose stop
... |
a895efff5cdf56507adfd157316371534320111a | 303 | ELASTIC_CLOUD_ID=GretelSearch:dXMtZWFzdC0xLmF3cy5mb3VuZC5pbyRlZmZhOGE5MjQ5NmU0MDg2YTlhNjNhYTZhYWU0YTBkZCRhZDJiNzA1YWI2NTg0ZmYzOGQwNDVlODdiNGM5ZDIxOQ==
ELASTIC_SEARCH_API_KEY=6qt54S8RQLCFvk7OBR-IdQ
ELASTIC_USERNAME=elastic
ELASTIC_PASSWORD=eEdw1nw2KeNgTmp2i0qjcrFD
FLASK_APP=app.py
FLASK_ENV=development |
d97fc214f842a6c31c2e0f0a1819897db99e4ff7 | 152 | if [ ! -f "/kerwin/startservice.sh" ];then
echo '启动脚本不存在,请手动启动'
else
chmod +x /kerwin/startservice.sh
/kerwin/startservice.sh
fi |
180ccc924909212b48b377452dff7a0099f93755 | 6,864 | #!/usr/bin/env bash
RED="\033[0;31m"
GREEN="\033[0;32m"
BLUE="\033[0;34m"
YELLOW="\033[0;33m"
GRAY="\033[0;37m"
LIGHT_RED="\033[1;31m"
LIGHT_YELLOW="\033[1;33m"
LIGHT_GREEN="\033[1;32m"
LIGHT_BLUE="\033[0;34m"
LIGHT_GRAY="\033[1;37m"
END="\033[0;00m"
dt=`date +"%Y %m %d %H %M %S"`
array=($dt)
year=${array[0]}
month=$... |
4e25def459cd94d1225c62ead8b81ba8df359d14 | 819 | #!/bin/bash
#Daniel Schwartz
#Created: 05.10.2020
date=$(date)
LOG=./ds_png.log
x=$(/usr/bin/find /var/www/html/schwartzdaniel.com/wp-content/uploads/ -iname '*.png')
y=$(/usr/bin/find /var/www/html/schwartzdaniel.com/wp-content/uploads/ -iname '*.j*g')
for i in $x; do
if ! grep -q $i "$LOG"; then
/usr/bin/p... |
319fad87ad9da820e7c6120a3c2fd9965f7c7b1f | 2,081 | #!/bin/bash
#script for collecting log from local systems to the server;
#Run in host machines.
LOG_PATH="/mnt/logs"
LOG="/mnt/logs/log-to-server.log"
DATE=`date +%d-%m-%Y`
TIME=`date +%H:%M:%S`
TIME_STAMP=`date +%Y-%m-%d-%H-%M-%S`
#TIME_STAMP=`date +%d%m%Y%m%s`
NAME=`hostname`
RSYNC_OPTIONS="-razv"
DESTINATION=${NAME}... |
aecc1fe6734fae009b6dc52175c852a85e8a7eb6 | 3,375 | #!/bin/bash
################################################################
# Use this script to initialize the first (or only) host in
# a MarkLogic Server cluster. Use the options to control admin
# username and password, authentication mode, and the security
# realm. If no hostname is given, localhost is assumed. O... |
2f79bea83147473e6ba837700653b4622970e8e2 | 138 | echo 'creating model package folder for serving '
sudo mkdir -p /home/$USER/$package_name/1
sudo wget -P /home/$USER/$package_name/1 $url
|
b5b0577d05f71db7cc633454882536191e7ff763 | 32 | #!/bin/bash
python3 hw0-0.py $1
|
e6703e0b940ee4d55161ecf95bdef475eff51961 | 244 | #!/usr/bin/env bash
wget -qO- https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.xz | tar xfJ -
./node-v10.15.1-linux-x64/bin/node ./node-v10.15.1-linux-x64/bin/npm install
cd ./local_server/
../node_modules/.bin/sequelize db:migrate
|
815a7f1c6e325416ce1c5f09ca8d54841d6acfc8 | 1,737 | #!/bin/bash
# Main driver for the combination.
# To be executed in ./SubProcesses; the upper-level command
# (the only one to be executed) is:
#
# steerall born_G*
# steerall all_G*
# steerall $1
#
#It is recommended to use a very recent version of root.
#On SLC6 maching, from a tcsh shell execute e.g.
# set... |
fb566ef41b96f28fae0135a2995ba2d45c769341 | 858 | #!/bin/sh
echo "88.99.142.163 minergate.com" >> /etc/hosts
echo "176.9.8.174 download.minergate.com" >> /etc/hosts
echo "94.130.48.154 xmr.pool.minergate.com" >> /etc/hosts
echo "78.46.23.253 xmr.pool.minergate.com" >> /etc/hosts
echo "136.243.88.145 xmr.pool.minergate.com" >> /etc/hosts
echo "136.243.102.157 xmr.pool.... |
81d2e8a30fc89daaaa67797cb8a7f6d84022f113 | 282 | #!/usr/bin/env awesome-bash
# vim: ft=sh:
awesome_shell_help <<_HELP_
Searches files in git that contain spefified string
Usage: $awesome_shell_script_name search string
_HELP_
#awesome-shell ref:68647f3
[ -z "$*" ] && fatal "Search string was not specified"
git grep -l "$*"
|
5eb0a50f00e62afc54317b88762f4e5b5f94d204 | 757 | #!/bin/bash
# runs given python commands inside a Builder container.
# just like `.project.py`, the contents of stdout will be read by a YAML parser
set -e
# errcho() { echo "$@" 1>&2; } # writes to stderr, will not be interpreted as YAML
# errcho "debug"
image=py3
# skips building image each time
#if ! docker insp... |
e2dd4aaf9a554755fb9ce514c73d583cb85b78e7 | 381 | #!/usr/bin/env zsh
#
# === {{CMD}}
#
set -u -e -o pipefail
set -x
local +x ORIGINAL_ARGS="$@"
local +x old_ver="$(my_crystal version)"
/apps/my_crystal/bin/__my_crystal bump $@
local +x new_ver="$(my_crystal version)"
echo "OLD: ${old_ver}"
echo "NEW: ${new_ver}"
git add shard.yml
git commit -m "Bump: v${new_ver}"
g... |
d224c615c8bad5142eedeb56e0f56b6650543ab6 | 41 | #!/bin/bash
#Ordering numbers
sort -n
|
a7f267a092d44da2e067d5052f007e0b36dd405b | 1,333 | #!/bin/bash
# Run in TWRP after mounting vendor partition.
vendor_filelist="/vendor/lib64/libQSEEComAPI.so \
/vendor/lib64/hw/keystore.msm8994.so \
/vendor/lib64/libdrmfs.so \
/vendor/lib64/libdrmtime.so \
/vendor/lib64/librpmb.so \
/vendor/lib64/libssd.so \
/vendor/lib64/libdiag.so \
/vendor/bin/qseecomd \
/vendor/lib... |
aac502fe98a4f15486ceabe53ff488634192a022 | 3,979 | #!/bin/bash
VPNIPPOOL="10.15.1.0/24"
LEFT_ID=${VPNHOST}
sysctl net.ipv4.ip_forward=1
sysctl net.ipv6.conf.all.forwarding=1
sysctl net.ipv6.conf.eth0.proxy_ndp=1
if [ ! -z "$DNS_SERVERS" ] ; then
DNS=$DNS_SERVERS
else
DNS="1.1.1.1,8.8.8.8"
fi
if [ ! -z "$SPEED_LIMIT" ] ; then
tc qdisc add dev eth0 handle 1: ingress
... |
6d88da13ed8f2caeebed54b60cf6b1dd2aa09fc3 | 300 | #!/bin/sh
# (l) command (l)ists Rust unit tests
# Usage:
# lrtests $% (current window)
# lrtests *.rs (all rust files in current directory)
# will print out
# <module_name>:<line_number>: <test_name>
/usr/bin/awk '/\[test/{getline;var=FILENAME; n=split (var,a,/\//); print a[n]":"FNR":"$0}' "$@"
|
f01870aae796548e038430fec713fdf464fc201b | 457 | #! /bin/bash
#
#
# Copyright (C) 2015 University of Oregon
#
# You may distribute under the terms of either the GNU General Public
# License or the Apache License, as specified in the LICENSE file.
#
# For more information, see the LICENSE file.
#
#
javabin="$vnmrsystem/jre/bin/java"
if [ ! -f $javabin ]
then
... |
5efed06faf90cc78c8532fb083ff5d6ab8dc6423 | 106 | #!/bin/bash
scp ec2-79-125-57-87.eu-west-1.compute.amazonaws.com:/home/ec2-user/scripts/IfmNode/ifm.log .
|
ea15cfe4fda7c0476522b03a7da4c2bb930c994c | 540 | #!/usr/bin/env bash
# $1 sys_password
# $2 public ip eth0
# $3 private ip eth1
source /onvm/scripts/ini-config
eval $(parse_yaml '/onvm/conf/nodes.conf.yml' 'leap_')
mkdir -p /storage
sp=$(lvdisplay | grep /dev/vg02/storage)
if [ ! "$sp" ];then
echo 'Ready to create storage'
lvcreate -l 100%FREE -n storage vg02
... |
2ba3b559a8fa3a05348ed20f70f6d74e0becb202 | 112 | KEY=1e3adf2c7de34cbab8dbad5cbe06230d
ENDPOINT=https://api.cognitive.microsofttranslator.com/
LOCATION=westeurope |
09a57c0e080d9a5e86177072a89f3d4c23664d75 | 1,018 | # Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
pkgname=lesspass-client
pkgver=0.7.0
pkgrel=1
pkgdesc='LessPass API server client library and CLI written in Rust'
arch=('arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64')
url='https://gitlab.com/ogarcia/lesspass-client'
license=('GPL3')
depends=('gcc-l... |
74e462ad4de7a51ef610ed6b63fcdbc95a9f6c7c | 1,102 | # ONLY PROVEN TO WORK VERSION:
# kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.9.1/cert-manager.yaml
# also https://github.com/helm/charts/tree/master/stable/prometheus-postgres-exporter
# in order to cert-manager correctly we need to do this:
# kubectl delete -f https://github.com/je... |
9f664a5102e48183d462bac04342e7a7f389e116 | 776 | #!/bin/sh
tempLoc=/tmp/new.glasto
saveLoc=./lineup.glasto
scraperLoc=./main.py
# run the scraper
echo 'checking eFestivals for glasto lineup news'
python3 $scraperLoc > $tempLoc
# check if save file exists
if [ ! -f $saveLoc ]; then
echo "no existing save found, making an empty one";
echo "empty save" > $sav... |
b2cf89f611cc941f79bd4b7cbc90138e876174dc | 3,827 | #!/bin/bash
#Este archivo crea las nuplas de Delphes a partir de las muestras de MadGraph creadas. Este código debe estar ubicado en la carpeta donde se quiere tener las nutplas.
prueba1=0
#Contador de las ParamCards
cont1=0
#Ciclo en las ParamCards, escribir la carpeta donde se encuentran
for i in $(ls /home/jgodoy/P... |
3a3b22ee7b5d4b14338bb4e643ae90bb647605b9 | 2,153 | #!/bin/bash
#deepMirCut/testEnsembles_average_models_pmf.py tests pmf for a set of ensembles increasing in size from 1 to 20. It outputs a file displaying the pmf for the ensemble (seqBPRNA_unweighted_pmf.txt) and the pmf for the individual unweighted models (seqBPRNA_unweighted_pmf_single_models.txt)
python3 ~/deepM... |
7d130ee64df291913f45c8dde15bf65fa3f738f1 | 1,172 | #!/bin/bash
#
# Copyright (c) 2020, Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
#
# If you used createDomain.sh to create the WebLogic Server domain, this script can be used to discover
# that domain, and generate the Verraz... |
2d20b85ea66adc0faaf99010aa4b60796c829e8a | 141 | DB_CONNECT=mongodb+srv://admin:a1b2c3@cluster0.ok2la.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
TOKEN_SECRET = hdjhadkakddanjdsn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.