blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
94c900a6d84a3e54fed033afa26bcab071c0e062 | 174 | #!/bin/bash
cd ~/
cd Documents/website/prettyweirdart/prettyweirdart.github.io
node editPrettyWeirdArt.js
bundle exec jekyll serve
open -a Safari http://localhost:4000
exit 0 |
3a512266d8f66df3635cf88a0e278b99d1b89322 | 5,476 | #!/bin/sh
#
# This script generates the shell-script-installer "installer.sh".
# The "installer.sh" script can be downloaded by semi-end-users
# which want a fully automated method of compiling Globule and
# its prerequisites and utility software packages, but want to
# have a home-build/compiled Globule and not a bin... |
1650785cbe401bc07ccefee4fb42bc4b292d6d68 | 283 | #!/bin/bash
echo '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='
echo ' Suppression des outils de dev.'
echo '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='
echo ' - Suppression des fichiers dans /opt/ ...'
rm /opt/fromev3.sh
rm /opt/toev3.sh
echo ' > done !' |
f1800c713315c7dd7f09a36cecb44a4115a342a8 | 118 | Managing branches
Pushing to a remote branch
The golden rule of rebasing
Merging branches
Checkout the previous branch |
c7aa18ebe260ab83361e6debfdeca013ca8ac00a | 462 | #!/bin/bash
# Periodically update my ip
# crontab -e
# 0 */6 * * * /home/USERNAME/bin/gians_home >/dev/null 2>&1
name="$GIANS_DEVICE"
ip="$(hostname -I | awk '{print $1}')"
appurl="$GIANS_HOME/address"
curl -sSd "{\"name\":\"$name\", \"address\":\"$ip\", \"user\":\"$USER\"}" -H "Content-Type: application/json" -X PO... |
f2d1d7ed18d5ba325d4424785aa2b226d4155e44 | 221 | API_KEY=XXXXXXXX
AUTH_DOMAIN=XXXXXXXX
DATABASE_URL=XXXXXXXX
PROJECT_ID=XXXXXXXX
STORAGE_BUCKET=XXXXXXXX
MESSAGE_SENDER_ID=XXXXXXXX
APP_ID=XXXXXXXX
MEASUREMENT_ID=XXXXXXXX
WEB_CLIENT_ID=XXXXXXXX
ANDROID_CLIENT_ID=XXXXXXXX
|
e0bb662f3acd1b2c59c63bcbe051afa54aa21a01 | 3,128 | #!/bin/sh
# file : bootstrap.sh
# license : MIT; see accompanying LICENSE file
usage="Usage: $0 [-h] [--libbutl <dir>] [--host <triplet>] <cxx> [<cxx-option>...]"
diag ()
{
echo "$*" 1>&2
}
cxx=
libbutl=
host=
while test $# -ne 0; do
case "$1" in
-h|--help)
diag
diag "$usage"
diag
... |
33a54694441fcb670ca0f07b261f43ded0ca8958 | 556 | #no need for shebang because /bin/bash does not exist and this script is being run by bash
SYS_CONF_SCRIPTS_DIR="$WRK/vfs_scripts"
source $SYS_CONF_SCRIPTS_DIR/utils.sh
echo "================ LFS SYS CONFIGURATION MAIN ================"
s_start $0
S=$?
$SYS_CONF_SCRIPTS_DIR/bootscripts.sh
$SYS_CONF_SCRIPTS_DIR/devic... |
091dd5d786c6f6e19500fc064673bee931663c8e | 166 | #!/bin/bash
cd "$2"
mkdir "$2/video"
mkdir "$2/audio"
cd "$1"
for f in $(find $1); do
#echo $f
#echo $1
f=${f#$1}
echo "$2/$f"
touch "$2/$f"
done |
38de4faa690d6608cc94f2cd58d73fae17a4a8ac | 628 | #!/bin/bash
PROJ=/usr/local/apps/ocean_portal
ENV=$PROJ/wag_env;
while getopts e:v: flag
do
case "${flag}" in
e) ENV=${OPTARG};;
v) PYVER=${OPTARG};;
esac
done
PIP=$ENV/bin/pip;
# 1_11
$PIP uninstall wagtail -y
$PIP install "wagtail==1.11.1"
PYTHON=$ENV/bin/python3;
DJ=$PROJ/marco/manage.py;
$PYTHON $D... |
b1ccb087f47ba13eb0c0911eecfed6387baf9c17 | 176 | #!/bin/bash
# Limelight addon (Kill it and start it each time Yabai starts)
killall limelight &>/dev/null
/usr/local/bin/limelight --config "$HOME/.limelightrc" &>/dev/null &
|
3c656ba9bacb5be5400236529425b8b7792467e8 | 250 | $HADOOP_PREFIX/bin/hdfs dfs -mkdir -p map-reduce-assignment/input
cd $HADOOP_PREFIX
export HADOOP_CLASSPATH=$(bin/hadoop classpath)
$HADOOP_PREFIX/bin/hdfs dfs -copyFromLocal /home/ddm/src/code/purchases.txt map-reduce-assignment/input/purchases.txt |
7b71bfb71376d8c223c5aef8bd673d4c5a893da8 | 484 | #!/bin/bash
module load R/R-3.6.1
# rm -rf out; mkdir out # Write desired output (by redirecting stdout) here.
rm -rf slurm_out2; mkdir slurm_out2 # Let Slurm write output (stdout, stderr) here.
# sbatch will run jobArray.sh 100000 times in parallel with the variable
# SLURM_ARRAY_TASK_ID set to 1, 2, ... in the resp... |
73c014eab81dd26101da8c446e4f8aeb6f69ceec | 1,216 | #!/bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/bin/lib
echo "Compiling $3 ..."
apktool="$(pwd)/bin/apktool"
mkkey="$(pwd)/bin/mkkey.sh"
signapk="$(pwd)/bin/signapk.jar"
mkdir "$1"
cd "$1"
echo "Initializing git..."
git init
git remote add origin "$2" > /dev/null
git checkout --orphan "$3"
if [ $? -ne 0 ]
th... |
f1bbe9ae2783b2d035a2a92eab97601f36ebbdfd | 807 | #!/bin/sh
# PROVIDE: forked-daapd
# REQUIRE: avahi_daemon dbus
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# forked_daapd_enable (bool): Set to NO by default.
# Set it to YES to enable forked-daapd.
# forked_daapd_config (path): Set to %%PREFIX%%/etc/for... |
b3daa67415ac74375a14bde66950944e0ec77c0c | 756 | #!/bin/bash
cat <<EOF
b o n d e r
O O
|_________|
| -- -- |
| O O |
|_________|
\_____/
p o p e r
_______
/ . \
() @ @ ()
\___o_... |
3a18b559214c0c1034da0c32e9334108bea3f4b7 | 145 | # === Echo Variables
PORT=1323
# === Database credentials
DB_HOST=fance-db
DB_PORT=3306
DB_USERNAME=root
DB_PASSWORD=supersecret
DB_NAME=fance
|
06203834792aedfd2650830b9b78b87374dc596b | 290 | #!/bin/bash
folder="/home/jiriyu/Desktop/ics2019_1/nexus-am/tests/cputest/tests"
files=$(ls $folder)
for file in $files
do
file=${file%.*}
echo $file
make ARCH=riscv32-nemu ALL=$file run
echo 'please input key to step into the next file.'
read next
done
## load-store.c leap-year.c
|
c0fb987da9cccd810481019f56af4d2dfbb13438 | 197 | #!/bin/sh
make -C /Users/Cyro/CSCI4611/repo-chakx011/dev/a4-dance/build -f /Users/Cyro/CSCI4611/repo-chakx011/dev/a4-dance/build/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.make$CONFIGURATION all
|
702d5802c2b2c699f65cc26077aa99634fab4b85 | 6,950 | #!/bin/sh
Main () {
showmenu \
"Choices" \
"Graphic Games" \
"Graphic Demos" \
"Terminal Games" \
"Terminal Demos" \
"Benchmarks" \
"Programming Languages" \
"Network Tools & Web Browsers" \
"Symmetric multiprocessing" \
"Compile Stuff" \
"Start X Server (glxgears, xterm, ...)" \
"Start wayland/weston" \
"Sound" \
"Q... |
a183b80571aeb94ea68e0e80dbfefbb370faf200 | 1,070 | #!/usr/bin/env bash
# START CONFIGURATION
export CONTECO_DC_GLOBAL_PACKAGE_CONTECO="module.schema_registry"
export CONTECO_DC_GLOBAL_PACKAGE_TAG="6.0.0"
export CONTECO_DC_GLOBAL_STACKNAMES="conteco_dc_schema_registry,conteco_dc_schema_registry_ext_rest"
export CONTECO_DC_GLOBAL_BOOTSTACKS="conteco_dc_schema_registry"
... |
a1244ba2b9a88cc173d9f4ad7578291da485cb3b | 1,048 | #!/bin/bash
if [ -f "/etc/os-release" ]; then
. /etc/os-release
elif [ -f "/etc/arch-release" ]; then
export ID=arch
elif [ "$(uname)" == "Darwin" ]; then
export ID=darwin
else
echo "/etc/os-release missing."
exit 1
fi
fbe_fedora_packages=(
boost-devel
llvm
llvm-devel
clang
clang-tools-extra
lld... |
7cb88fb2f13f7af808e307abf314c00e4d63827b | 640 | #!/bin/bash
for j in man odt
do
rm -rf $j
mkdir -p $j
for i in $(ls rst/*.rst | sed "s/.rst$//g" | sed "s/rst\///g" | sort)
do
rst2$j rst/$i.rst > $j/$i.$j
done
done
rm -rf html
mkdir -p html
for i in $(ls rst/*.rst | sed "s/.rst$//g" | sed "s/rst\///g" | sort)
do
rst2html --link-stylesheet rst/$i.rst > html/$i... |
821c26f7070c51cbd9ec065f3e9586512e698fd5 | 780 | #!/bin/bash
# https://github.com/Anachron/i3blocks/blob/master/blocks/trash
TRASH_DIRECTORY="${BLOCK_INSTANCE}"
if [[ "${TRASH_DIRECTORY}" = "" ]]; then
TRASH_DIRECTORY="${XDG_DATA_HOME:-${HOME}/.local/share}/Trash"
fi
# Left click
if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
xdg-open "${TRASH_DIRECTORY}/files"
# Righ... |
1bea8ab1ee57fb3cf4ac205a4e60817021c95a26 | 158 | #!/bin/bash
COUNTER=0
while [ $COUNTER -lt 1024 ]; do
curl --data "id=33&holdthedoor=submit" http://173.246.108.142/level0.php
let COUNTER=COUNTER+1
done |
1d48abf3f9f0e3e5ca3ea0baa97f3bd047a9b6fd | 285 | #!/bin/bash
HANDLERS_DIR=Handlers
#build handlers
dotnet restore
dotnet publish -c release $HANDLERS_DIR
#install zip
apt-get -qq update
apt-get -qq -y install zip
#create deployment package
pushd $HANDLERS_DIR/bin/release/netcoreapp2.0/publish
zip -r ./deploy-package.zip ./*
popd
|
7675390ba2103919305fe6f9c1c91c6ca1bb9018 | 3,180 | #! /bin/bash
CURDIR=`dirname $0`
MACHINENAME="Boot2Root"
ISOPATH="$CURDIR/Boot2Root.iso"
ISO_INTRA_LOCATION="https://projects.intra.42.fr/uploads/document/document/2527/BornToSecHackMe-v1.1.iso"
START_VM_SCRIPT="$CURDIR/startVM.sh"
function checkVM {
IS_VM_EXIST=`VBoxManage list vms | grep -i $MACHINENAME | wc -... |
791a47a48ff0f32a3e24ccd981a30ce242ae514f | 637 | #!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="KWIML"
readonly ownership="KWIML Upstream <kwrobot@kitware.com>"
readonly subtree="Utilities/KWIML/vtkkwiml"
readonly repo="https://gitlab.kitware.com/utils/kwiml.git"
readonly tag="master"
readonly paths="
"
extract_source () {
git_archive
ca... |
95e0c671a6383eb14966bd5a64006778f4c22b1f | 978 | # "Install" this script by symbolically linking from here to your "~/bin" dir!
# - NB: don't delete your files here or it will break the "install", since it's simply symbolically linking to
# the executable here!
# - Therefore, if you move these files, simply re-run this install script and it will automatically up... |
36d067a0a743b79047af0cfc475eb1b00e5751ef | 804 | #!/bin/bash
# SAMPLE script to break a list of single muons into per-region files
# This allows to run pattgen/corrgen using only muons that belong to that region
# This script also effectively removes all events that fail filtering cuts
# NOTE: you need a region lookup file for the entire sample (region_${label}.dat... |
bc3c6c1e0215c52899eca737319544dacf5e9921 | 2,615 | setopt autocd
autoload -U compinit && compinit
zstyle ':completion:*' menu select
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt hist_reduce_blanks
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_LINUX_ARCH_ICON='\UF023'
POWERLEVEL9K_OS_ICON_FOREGROUND='046' #default - delete
POWERLEVEL9K_COMMAND_EX... |
1688d196dad8e5cdef1715446d19e063b9435c54 | 67 | ENTRY=main.js
OUTPUT=bundle.js
DEV_URL=http://theme.dev/
PORT=8080
|
901be8b22f328c4a524aed94bc6180dea068d056 | 17,914 | mkdir -p $TMPDIR/Kidney_105_ATAC
cd $TMPDIR/Kidney_105_ATAC
python atac_v_1_1.py --out-dir /proj/fureylab/data/ATAC/mouse/CAST/CTL_kidney/BD_ATAC_105_kidney/out2 --tmp-dir $TMPDIR/Kidney_105_ATACtmp --group-name Kidney_105_ATAC --max-nhits 1 --config config.cfg --slurm --section C57BL6 --run /proj/fureylab/data/ATAC/mo... |
1c03be2c0823c47723e08ff036d2a3fed3315fe8 | 318 | #!/usr/bin/env bash
# Fetches a docker login command from aws through the CLI. Assumes that the aws.sh script is executable in the users home directory.
# Supports setups where the AWS CLI assumes a role via an assigned profile instance.
set -o errexit
CMD=$(/home/core/aws.sh ecr get-login --no-include-email)
$CMD
|
770ba21b6e3a923fc34fc625a6c383eb74c8ef5f | 700 | PLATFORM=cuda101
IMAGE_TAG=0.4.1-cuda10.1-cudnn7-trt6-devel
docker rm --force compile_$PLATFORM
docker run --rm --name compile_$PLATFORM -dit \
-v $PWD:/Serving \
-e http_proxy=http://172.19.57.45:3128 \
-e https_proxy=http://172.19.57.45:3128 \
-e PYTHONROOT=/usr \
-e TENSORRT_ROOT=/usr \
-e GOROOT=/usr/lo... |
013ed1623a2d48d9d79adee6c88ef0eff993b705 | 164 | #!/usr/bin/env bash
go get -u github.com/orbs-network/orbs-contract-sdk/...
./node_modules/.bin/truffle test ./test/*.sol ./test/contract-test/VerifierEndToEnd.js |
9ffd3acb6a5f19372f27fcfd5db32c3d78ee4dd2 | 4,898 | #!/bin/bash
#mfproc [-u username] [-s S|R|Z]
echo -e "Name\t\t\tPID\tPPID\tUID\tGID\tState"
if [ "$#" -eq "0" ]
then
ls /proc | egrep "[0-9]" | while read process
do
name=`(cat "/proc/$process/status" | egrep "^Name" | cut -f2 -d$'\t') 2>/dev/null`
processID=`... |
47b148895f7a33511a71f9b38c33e9b4e57567c8 | 38 | ifconfig | grep -i "ether" | cut -c15- |
8d7b158b9b45b4f329af9c79f14d2b4dcc3ab5e3 | 1,331 | #!/bin/bash
# Dependency: requires jq (https://stedolan.github.io/jq/)
# Install via Homebrew: `brew install jq`
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Is It Up?
# @raycast.mode compact
# @raycast.packageName Developer Utils
#
# Optional parameters:
# @raycast.icon 🌐
# @raycast.argument1 ... |
c9d987922f3df74a9264022ae684ec0d3725c634 | 133 | #!/bin/sh
# Copyright (c) 2014 John Ko
/bin/ls -1 /dev/ | \
/usr/bin/egrep ".{0,1}da[0-9]" | \
/usr/bin/egrep -v "[0-9]p[0-9]"
|
98b1102be7cd9b86e0a623504e29e5ade3a6a23c | 1,587 | #!/bin/bash
##### define your paths
# 1) a directory of fastq files
#fastq_files="/well/jknight/AbuDhabiRNA/P170245"
# 2) project directory
#mkdir -p ./mapping/2.mapping/mappingscripts
#mkdir -p ./mapping/2.mapping/fastq
# make links all fastq files in $fastq_files directory to $PROJECT_DIR/mapping/2.mapping/ ;
#cm... |
5cac1509e481ffee43e928edd26665a5fbdb7444 | 1,278 | #!/bin/sh
work_dir=/tmp/cert
gen_ca()
{
[ ! -e ca ] && mkdir ca
openssl genrsa -out ca/ca-key.pem 1024
openssl req -new -out ca/ca-req.csr -key ca/ca-key.pem << EOF
CN
CHINA
CHENGDU
ZK
YF
root
support@zkchina.com.cn
EOF
openssl x509 -req -in ca/ca-req.csr -out ca/ca-cert.pem -signkey ca/ca-key.pem -days 3650
}
... |
3cc81e369c48bd0d1171ace653e135b991b7ea8d | 346 | #!/bin/sh
touch .mounts.total
mounts="$1"
mount_ok(){
awk -v mount="$1" 'BEGIN{status="FAIL"} ($2==mount && $4 ~ /rw,/) {status="NORM"} END{print "Mount",mount,"has",status,"status"}' /proc/mounts
}
for mnt in $mounts; do
mount_ok $mnt
done | sort >.mounts.status
comm -2 -3 .mounts.status .mounts.total
cp -f .m... |
74bea2c581e73dfc041a4ce2640d3256a1a43771 | 234 | #!/bin/bash
. /home/ubuntu/dev/horizon-js/tests/build-inc.sh
OUT="/home/ubuntu/dev/horizon-js/tests/Horizon.RunTests.html"
#LIST="Helpers.js"
LIST="Horizon.js"
SRC="../lib/require.js"
SRC+=" ../js/load-modules.js"
build_run_test
|
b590fdc2957877877d1a9b9231d5abdf6542d0a0 | 2,177 | #PBS -l walltime=09:30:00
#PBS -o distr_train__${PBS_JOBID}-o.txt
#PBS -e distr_train__${PBS_JOBID}-e.txt
### Inputs ###
nodes=$1
ppn=$2
hash=$3
# Agent #
max_v=$4
rw_fac=$5
col_vel=$6
kp=$7
xw=$8
yw=$9
zw=${10}
# Neural Net #
sched=${11}
hid_size=${12}
num_hid_layers=${13}
expl_rate=${14}
# PPO #
max_timesteps=${1... |
4d277cf1fe0b64010dc1ce1ff0e53f0d4f5efbd5 | 677 | #!/bin/bash
set -e
set -x
LIBUV_VERSION=1.5.0
wget https://github.com/libuv/libuv/archive/v$LIBUV_VERSION.tar.gz
mock --define="buildversion $BUILD_NUMBER" -r $MOCK_TARGET --resultdir target/srpm --buildsrpm --spec libuv.spec --sources v$LIBUV_VERSION.tar.gz
RAPIDJSON_VERSION=1.0.2
wget https://github.com/miloyip/ra... |
3b07b7e96d6154428f9e1534f8e4480a7808fb48 | 217 | #!/bin/sh
iface=$1
if [ "$iface" != "" ]; then
(
if [ -x /sbin/ifconfig ]; then
/sbin/ifconfig $interface |grep inet
else
/sbin/ip addr |grep $iface$
fi
) |egrep -o '([0-9]{1,3}\.){3}[0-9]{1,3}' |head -n1
fi
|
c413e3b406233ab4f60b84aa51551cd343b7968f | 732 | #!/bin/bash
BASEDIR=$(dirname "$0")
PARAM_FILE_PATH=$BASEDIR"/parameters.json"
STACK_NAME=$(jq -r '.[0].NetworkStackName' "$PARAM_FILE_PATH")
echo "VPN stack name: ${STACK_NAME}"
read -p "Continue? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
if ! aws cloudformation describe-sta... |
84cba06a4230da07abd5fdddd5cfad51ff2b1675 | 300 | #!/usr/bin/env bash
# This script is used to package the relevant contents of this project into a ZIP file. This ZIP file can then be used
# to send it to applicants.
DIR_NAME=${PWD##*/}
rm -f assignment.zip
cd ..
zip -r $DIR_NAME/assignment.zip $DIR_NAME/src $DIR_NAME/README.md $DIR_NAME/pom.xml |
b26ec3fbc62403f7144b30132f95713fce06fbd3 | 1,778 | #!/usr/bin/env bash
# SPDX-License-Identifier: BSD-2-Clause
function get_deps() {
source "${DOCKER_BUILD_DIR}/test/integration/scripts/helpers.sh"
check_openssl_version
if [ "$OSSL3_DETECTED" -eq "1" ]; then
engine_pkg="tpm2-openssl"
engine_flags=""
engine_version="master"
tpm2_tss_version="3.2.0"
else
... |
e56f1212ec2576a2a90441a610d5407af1f2e969 | 781 | #!/usr/bin/env bash
#
#SBATCH --job-name=blender
#SBATCH --partition=common
#SBATCH --output=./blender_test_logs.txt
echo "Downloading Blender 2.79b for x86 Linux"
wget https://download.blender.org/release/Blender2.79/blender-2.79b-linux-glibc219-x86_64.tar.bz2
echo "Extracting..."
tar -xf blender-2.79b-linux-glibc21... |
619e9d3e965b28423c07c5f2581726500959ea9b | 1,202 | #!/bin/bash
scripts/wait-for-nifi.sh $HOSTNAME 8080
scripts/initialize-reporting-task.sh $HOSTNAME 8080
if [ "$ADD_CLINICAL_INGESTION" = true ] ; then
python /scripts/loadHealthPatternsFlows.py \
--baseUrl=http://$HOSTNAME:8080/ \
--reg=$NIFI_REGISTRY \
--bucket=Health_Patterns \
--flowName="Clinical Ingesti... |
f95a1aa382e15492d7a0e285c16f437245297752 | 250 | #!/bin/sh
### BEGIN INIT INFO
# Provides: alignment
# Required-Start: mountkernfs
# Required-Stop: mountkernfs
# Default-Start: S
# Default-Stop:
### END INIT INFO
if [ -e /proc/cpu/alignment ]; then
echo "3" > /proc/cpu/alignment
fi
|
704a60c4d3a8ae915c6f122e17ebd0b212741832 | 1,539 | export ZSH=$HOME/.oh-my-zsh
export LANG=en_US.UTF-8
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
export EDITOR=vim
export ANDROID_HOME=/opt/android-sdk
export GOPATH=$HOME/.go
export QT_DIR=/usr/include/qt
export PATH=$PATH:"$ANDROID_HOME/tools"
export PATH=$PAT... |
4ad00125892d6e6878a0484296decfe612a5c62b | 1,305 | conda activate ARG
python galaxies.py
python redshifting.py
mkdir runs
python GalaxiesVAE.py standard_low-standard_high inputgalaxies targetgalaxies &> runs/standard_low-standard_high.out &
python GalaxiesVAEplot.py standard_low-standard_high inputgalaxies targetgalaxies
python GalaxiesVAE.py standard_high-standard_... |
4d9fa6a7bc387d500d6e0ff1bddbfdba64bacfa6 | 3,387 | #-------------------------------------------------------------------------------
# Copyright 2017 Cognizant Technology Solutions
#
# 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
#
# htt... |
ad03758975738168b2dfccb40de8ad7245f71eae | 607 | #!/bin/bash
name=sqlite
version=3.29.0
_v=3290000
revision=0
sources=(
"https://sqlite.org/2019/${name}-autoconf-${_v}.tar.gz"
)
build_depends=(
"automake"
"autoconf"
"readline"
"zlib"
)
depends=(
"readline"
"zlib"
)
function prepare() {
tar xf ${name}-autoconf-${_v}.tar.gz
cd ${na... |
2de46a73a30353e768f1bbf8f528dc023f879896 | 558 | # Contributor: Timo Schmiade <the_isz@gmx.de>
pkgname=notipy
pkgver=0.2.2
pkgrel=2
pkgdesc="A minimalistic gtk3 notification daemon written in python."
arch=("any")
url="https://github.com/the-isz/notipy"
license=("GPL")
provides=("notification-daemon")
depends=("python2-gobject" "gtk3" "dbus-python")
options=(!emptyd... |
0edd72fbed8ac2d1ca1d6793441ac0f3af462720 | 918 | #!/bin/sh
echo "---------- gcloud config configurations activate opa ----------"
gcloud config configurations activate opa
cd ~/workspace/opa-example/k8s/terraform/
echo "---------- export GOOGLE_APPLICATION_CREDENTIALS ----------"
export GOOGLE_APPLICATION_CREDENTIALS=~/workspace/opa-example/k8s/terraform/credentia... |
fed2beb6a09e4a3c844e3be84b3de34c2ee55723 | 1,227 | #!/bin/bash
set -e
git clone git@github.com:Activiti/activiti-build.git
git clone git@github.com:Activiti/Activiti.git
git clone git@github.com:Activiti/activiti-cloud-build.git
git clone git@github.com:Activiti/activiti-cloud-service-common.git
git clone git@github.com:Activiti/activiti-cloud-runtime-bundle-service.gi... |
f9d4bfd0193b944756c4637544f04780e4abcb37 | 421 | #!/bin/bash
#For every change in JSX files you need run this file for avoid errors like:
#does not exist in the haste module map
#or other random errors
rm -rf /tmp/metro-*
rm -rf /tmp/haste-*
#rm shim.js
# echo "PLEASE remove comment im shim.js where require('crypto')"
#./node_modules/.bin/rn-nodeify --hack --inst... |
5e62770be0386f1f40ab9898de533e7130aa57ed | 420 | #!/bin/bash
LOC=/tmp/linkbaiter
mkdir -p $LOC
cd {{linkbaiter_install_dir}}
for spider in bi bf ; do
OUTPUT="$LOC/$spider.$(date +'%s.%N').json"
PLUSONENEWS_MYSQL_HOST="{{PLUSONENEWS_MYSQL_HOST}}" \
PLUSONENEWS_MYSQL_DBNAME="{{linkbaiter_db_name}}" \
PLUSONENEWS_MYSQL_USER="{{PLUSONENEWS_MYSQL_USER}}" \
PLUSO... |
20ea370751637e28aa6746a6a4eefdffd8f420c4 | 75 | #!/bin/bash
rm -rf ./dist
mkdir -p dist
npm run prod
zip -r dist{.zip,}
|
74171fad0845bf2b7e9eac81359cabc7c99404f7 | 449 | #DIRRST=/gpfs/scratch/userexternal/ateruzzi/CHECK_DA/DAdelta/DA_RST/
DIRRST=/gpfs/scratch/userexternal/ateruzzi/RA_COAST2017/wrkdir/MODEL/DA__FREQ_1/
MASKFILE=/gpfs/scratch/userexternal/ateruzzi/MASKS16/meshmask.nc
#OUTMISF=/gpfs/scratch/userexternal/ateruzzi/CHECK_DA/DAdelta/MEANmisf/
OUTMISF=/gpfs/scratch/userexterna... |
13716e0332573d30268a2053423368eec6a3b481 | 1,844 | #! /bin/bash
# $author: twfcc@twitter
# $PROG: uninstall.sh
# $description: uninstall components which installed by [gfw3proxy.sh|gfw3proxy_init.sh|gfwtiny.sh]
# $Usage: $0
# Public Domain use as your own risk.
LANGUAGE=C
LC_ALL=C
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export LANGUAGE LC_A... |
59ba21776ffd04c5a17b22be6904bb07c75d8d02 | 2,511 | #!/bin/bash
APIGEE_ZOOKEEPER_DC_1="n13 n15 n16 n17 n18"
APIGEE_CASSANDRA_DC_1="n13 n15 n16 n17 n18"
APIGEE_OPENLDAP_DC_1="n13"
APIGEE_POSTGRESQL_DC_1="n19"
EDGE_POSTGRES_SERVER_DC_1="n19"
APIGEE_QPIDD_DC_1="n19 n29"
EDGE_QPID_SERVER_DC_1="n19"
EDGE_MANAGEMENT_SERVER_DC_1="n03"
EDGE_MESSAGE_PROCESSOR_DC_1="n03 n04 n05 ... |
3c0b96eb862b2ed677dfbff6c93f1cb34c608536 | 922 | #!/bin/bash
echo "Hello $LOGNAME"
echo "what you want:"
echo "Type 1 for programming"
echo "Type 2 for somethink else"
read doing
case $doing in
1)
echo "What project you need : " # choose type of project
echo "1 python"
echo "2 bash"
read doProg
case $doProg in
1)
cd Documents/Python/Projects #dir... |
ec9ecc304a6fe77329a2ce4e98f02888d2513272 | 3,070 | #!/bin/bash
[[ -L $0 ]] && SCRIPT_FILE=`readlink -fn $0` || SCRIPT_FILE=$0
pushd `dirname "${SCRIPT_FILE}"` >/dev/null
BASE_DIR=`pwd`
popd >/dev/null
source "${BASE_DIR}/module.d/common.sh"
check_env || exit 1
FUNC_FILE_CONFIG="${MODULE_BASE}/config.sh"
FUNC_FILE_REMOTE="${MODULE_BASE}/remote.sh"
import_functions
N... |
2fb1f54ada6eeb2b66ed340db0b8c532b830ab85 | 1,670 | #! /bin/bash -x
################################################################################
#
# ------ FOR Linux64 & gnu C&fortran & openmpi -----
#
################################################################################
export FORT_FMT_RECL=400
export GFORTRAN_UNBUFFERED_ALL=Y
ln -svf ../../../data/rad/... |
6a5375e0e705e0c3939b21964a7f605dc74cb1eb | 256 | # Extra search pathnames.
for BINDIR in "$HOME/local/bin" "$HOME/bin" "$HOME/src/"*"/"*"/"*"/.virtualenv/bin" "$HOME/node_modules/.bin"
do
[ -d "$BINDIR" ] || continue
expr "$PATH" : ".*$BINDIR" >"/dev/null" && continue
export PATH="$BINDIR:$PATH"
done
|
dce954e966aa37c982efdba58bed1ee41566d1c3 | 1,650 | ###############TAKEPIC.SH
#!/bin/bash
# sudo fswebcam --log ~/camlog.txt -d /dev/video0 -r 1600x1200 pics/`date '+%Y.%m.%d-%H.%M.%S'`.jpg
# sudo fswebcam --log ~/camlog.txt -d /dev/video0 pics/`date '+%Y.%m.%d-%H.%M.%S'`.jpg
#sudo raspistill -w 1024 -h 768 -o pics/`date '+%Y.%m.%d-%H.%M.%S'`.jpg
#sudo raspistill -o pic... |
a6c660ae5fd0549441e663385052b378ceccd8b6 | 391 | #!/bin/bash
# Always edit
#SBATCH --job-name="batch_11"
#SBATCH --output="/data/gpfs/projects/punim0995/rfst/slurm/slurm_output/batch_11.out"
for i in {1..1440}
do
JOB_NAME="j_11_${i}"
OUT_NAME="/data/gpfs/projects/punim0995/rfst/slurm/slurm_output/job_11_${i}.out"
sbatch --job-name=$JOB_NAME --output=$OUT_NA... |
e73f0e2c82d9b0ad1a6b891eda33d99ab2724263 | 123 | #!/bin/bash
for i in {1..1000000}
do
/usr/bin/sparcv9/ibv_rc_pingpong &
/usr/bin/sparcv9/ibv_rc_pingpong localhost
done
|
908b7e021f7904b665fe68dc169de70cad8df1e2 | 193 | #!/bin/bash
cd `dirname $0`
#cd /home/orange/kddData/london/londonair
sh getLondonData.sh
/home/orange/anaconda2/bin/python getCleanData.py -t today /home/orange/kddData/london/londonair/data/
|
02333aa539d6e42e1eb18e2eb8aec3b71ffb9073 | 124 | for i in `find . -maxdepth 1 -type d \( ! -iname ".*" \)`
do
echo "transformando aplicacion $i ..."
xpotronize $i -f
done
|
6fb182077668b4215c585de898234ee29f091bb2 | 29 | #!/bin/bash
python case08.py
|
be9ce8f78f7721b48466ec8e75e54d67022a2d54 | 570 | #!/bin/bash
#
#check and see if the system has been configured to interface with an arduino properly
if [[ ! -d /var/lock || \
! $(ls -l /var/ | grep lock | awk -v col=4 '{print $col}') = "_uucp" || \
! $(stat -f %Mp%Lp /var/lock) = "0775" || \
-z $(dscl . -read /Groups/_uucp GroupMembership | grep -o $USER) ]]; then
... |
d7c6c14bd26bf819e7cfde2a4ba4c015241775ed | 85 |
CYBER_DOJO_KATAS_ROOT=/usr/src/cyber-dojo/katas
START_POINTS_ROOT=/app/start_points
|
e6b4be4220ec621bd3ab0fbb3b135b59febe3ff3 | 38 | rosrun robot_control test_odometry.py
|
f69f8ec759c25ec80337f692f35eb8c24e49f71f | 223 | #!/bin/sh
server_ip="93.95.227.123"
server_path="/var/www/plexius/web/gallery/"
echo 'Uploading to server...'
rsync --progress -ab --recursive --remove-source-files ~/pix/ pi@$server_ip:$server_path
echo 'Upload complete.'
|
3f30c6f9013fa7bd03d81102aa01afc209065fc5 | 2,027 | # figure out my ip
echo "getting my ip"
MY_IP=$(curl ipinfo.io/ip)
echo "My IP: $MY_IP"
# get subnets for the ELB and vpc id
echo "getting all subnets and vpc id's"
SEC_GROUP=$(aws ec2 describe-security-groups --group-names shaiEladSecGroup | jq -r .SecurityGroups[0].GroupId)
KEY_NAME="shai-elad-key"
NOW=$((1 + $RAN... |
8b39c3cb28809adf2da82925e5586a453e83a452 | 101 | #!bin/bash
source $HOME/.dotfiles/utils.sh
copy_to_clipboard "$(git rev-parse --abbrev-ref HEAD)"
|
4e885050248cf97c894f1f6bb1cba7f826ec6d66 | 801 | #!/bin/bash
# Made by: papii
# help command when you need help :D
function loadupMessage {
printf "+---------------------------------------------------------------------+\n"
printf "|------------- Welcome to ONION's HELP, made by papiii ---------------|\n"
printf "|-- here you can find most of the documentation y... |
9de4d5e0ff68d923dc1e7e100aeb0a350fba187f | 890 | #!/usr/bin/env bash
set -euo pipefail
# The page at <https://prerelease.keybase.io/> links to this:
#readonly CURRENT_LINUX_RELEASE_JSON_URL='http://prerelease.keybase.io.s3.amazonaws.com/update-linux-prod.json'
# but that hostname doesn't have a valid cert if we switch to https.
# Meanwhile, this works for https:
rea... |
8cbb7252588854ddc8bf54855151bd3e79816979 | 237 | #!/bin/bash
docker run -d \
--name bqproxy \
--restart always \
--publish "80:80" \
--publish "443:443" \
--volume "${BOOTIQUE_WORKING_DIR}/nginx:/etc/nginx/conf.d:ro" \
--volume nginx-cache:/data/nginx/cache \
nginx:1.13
|
07eb420c287d55eec37ad733c8166aec8da92009 | 91 | #!/bin/sh
"${SRCROOT}/Pods/Target Support Files/Pods-TeamTalk/Pods-TeamTalk-resources.sh"
|
49dabedd3e1d619bbcb1444744abecf7620539da | 24,852 | #!/bin/bash
#40000/17= 249 16053361 0 webm none opus ' https' https://r5---sn-25ge7nse.googlevideo.com/videoplayback?expire=1565854107&ei=OrVUXbrgJ46pkgbBwLL4Cw&ip=148.163.76.139&id=o-AAwvPPsN37O_ABHCDF-auh4XNCmvCgg_MDBX9y8kS5eJ&itag=249&source=youtube&requiressl=yes&mm=31%2C29&mn=s... |
25deb5129c7b32f99152e2f81d5554a14e4c9ba5 | 158 | #!/usr/bin/env bash
gradle build
docker build -t tendril/my-home-api-bootstrap .
docker run -d -p 8080:8080 --env-file ./env.dev tendril/my-home-api-bootstrap |
6b4b3cfb1c9ec7375e471d24ac787e90f1eb08ad | 1,516 | #!/bin/bash
if [ $# -ne 1 ]
then
echo "usage:rmresp.sh eventfile."
exit 0
fi
EVENTFILE=$1
if [ -f $EVENTFILE ]
then
TYPE=FILE
EVENTS=(`cat $EVENTFILE|awk '{print $1}'`)
else
TYPE=DIR
EVENTS=($EVENTFILE)
fi
FILTRE=(1.0 2.0)
FREQ="0.8 1.0 10 12"
#FREQ="0.8 1 2 2.2"
#FREQ="0.8 1.0 3.0 3.2"
#FREQ="0.1 0.2 0.4 0.... |
eec1a43f94ef556a0678339b584dff5248cd8ae0 | 1,466 | 团队管理的心得
1. 团队的流程建设;人才的梯队建设
2. 鼓励向上沟通。多进行内部沟通。
3. 安排任务的方法,总结的挺好:
第一,讲清楚目标与意义,我的期望与衡量标准;
第二,讲清楚做这件事对其个人能力成长有什么帮助;
第三,关于做事情的方法和思路,如何去做,做情景管理,因人而异;
总结:
1,完美之道,不在无可增加,而在于无可删减。在管理上,感觉很忙,琐事很多,而没有成就感,重要的事情没有做,
是不是因为自己“做”得太多?确实要反思自己是不是管的太多,做得太多。关键还没有做到点上。所以要对自己的
事情进行统计,看那些事情可以授权给别人完成,信任别人完成,给别人机会,不是把所有事情都抓在手里,这是
没有安全感... |
a3ba3e2300abbc62f1d4bde6f2ab0c8b8857f60b | 272 | DATABASE_URL=mongodb+srv://lumjc:cck441@cluster0.pmn64.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
JWT_KEY = SJJSNGWRJGNOWNRGKANGKJNNKJEH
CLOUDINARY_CLOUD_NAME=lum-jun-chi
CLOUDINARY_API_KEY=192448441571742
CLOUDINARY_API_SECRET=WNQ7RPG7sJBjmYBUFK9I2nTzA_c |
0a59c52d2a7d5de4a48924987aa9a71f6542f993 | 164 | #!/bin/bash
set -euo pipefail
native_apps=(
"Todoist"
"Slack"
"Trello"
"Spotify"
)
for native_app in "${native_apps[@]}"; do
open -a "$native_app"
done
|
ddbed2ab75af1b542a9bdd006ce62182728c2cd5 | 2,013 | #!/bin/bash
#
# Push images to Docker hub and update Helm chart repository
#
# This script assumes that there is a file tag
# which contains the name of the tag to use for the push
#
# We assume that the following environment variables are set
# DOCKER_USER User for docker hub
# DOCKER_PASSWORD ... |
19a3daeb461bd50aa26b4c2f986dc8656b895b81 | 799 | #!/bin/bash
if [[ $SIMLIFE_VERSION == '' ]]; then
SIMLIFE_VERSION=0.0.0-TRAVIS
fi
# simlife-dependencies.version in generated pom.xml or gradle.properties
PREVIOUS_DIR=$(pwd)
cd $HOME/generator-simlife/generators/server/templates
sed -e 's/<simlife-dependencies.version>.*<\/simlife-dependencies.version>/<simlife... |
b09ef82535f6c7f8f21885e21151d3c77be6a381 | 395 | alias prf="source ~/.profile"
export PS1='\[\e[1;33m\]\u@\h \w ->\n\[\e[1;36m\] \@ \d\$\[\e[m\] '
alias python="python3"
alias anyjava="ps -ef | grep java"
alias killjava="ps -ef | grep java | grep -v grep | awk '{print \$2}' | xargs -r kill -9"
alias launch="rm nohup.out && nohup ./gradlew bootRun &"
alias setmux='sh... |
e7fc8e4c4fd8f4ed521a56267dccabb016fec1e9 | 45 | #!/bin/bash
gcc vector_add.cpp -o vector_add |
cacd3bd91f8c438abc3f496e80c1cdb3db55f79c | 487 | #!/bin/bash
sudo apt-get install nginx
sudo mkdir /usr/share/nginx/test.com
cat << EOF >> /usr/share/nginx/test.com/index.html
<h1>hi, testing Nginx.</h1>
EOF
cat << EOF >> /etc/nginx/sites-available/test.com
server {
listen 80;
root /usr/share/nginx/test.com;
index index.html index.htm;
server_name test.com... |
0d04e37b5fcbfd277817f2f0463db980dd71d770 | 582 | #!/bin/bash
sudo apt-get update
sudo apt install zip -y
sudo apt-get install awscli -y
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubec... |
bcf732affe913355eb6a18c491d3ff1b742d1759 | 267 | #!/bin/bash
<<COMMENT
Read n and generate fibonacii nos <= n
COMMENT
#read n
echo "Enter the value of n:"
read Num
f1=0
f2=1
echo "The Fibonacci Nos <= $Num is : "
i=0
while [ $f1 -le $Num ]
do
echo -n "$f1 "
fn=$((f1+f2))
f1=$f2
f2=$fn
done
echo
|
c067306b19a0fbff3ef7035d22b793ead6340d19 | 557 | #!/usr/bin/env bash
# Editing
export EDITOR='vim'
# `v` with no arguments opens the current directory in Vim, otherwise opens the
# given location
function v() {
if [ $# -eq 0 ]; then
$EDITOR .;
else
$EDITOR "$@";
fi;
}
export VISUAL="$EDITOR"
#alias vv="cd $DOTFILES/link && v $DOTFILES/link/.{,g}vimrc +'cd ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.