blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
e647415a11e536c88125d37f5f371c03e7302338 | 123 | #!/bin/sh
DIR=`dirname $0`
cp $DIR/.gitignore .
cp $DIR/.classpath .
cp $DIR/.project .
cp -r $DIR/.settings .
mkdir src
|
77823c1dad670e2d55b0b792a4002c8ba242cb6d | 3,354 | #!/bin/bash
# /etc/init.d/mvrecording.sh
#
#
# verzija datoteke 1.0.1
# datum: 03.06.2015
#
# promjene:
# 1.0.1 03.06.2015
# dodano zapisivanje u bazu za svaku datoteku.
#this is where files are recorded
DIR="/mnt/ramdisk"
#this is where files are stored
DESTINATION="/var/www/html/recording/"
#this is minimal lengt... |
0f679701c8f278ada14c63d327c12b441dc3345b | 268 | python /opt/intel/computer_vision_sdk_2018.5.455/deployment_tools/model_optimizer/mo_tf.py --input_model model/yolov3/frozen_darknet_yolov3_model.pb --tensorflow_use_custom_operations_config model/yolov3/yolo_v3.json --output_dir model/ --input_shape=[1,416,416,3]
|
7b512d6f57d052e557f11d48cd6a73507c8fecf5 | 9,324 | #!/bin/bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
###############################################################################
# General UI/UX ... |
d8123be3bd7ef4557e7a1d2268867bc9074d4520 | 295 | #!/usr/bin/env bash
apt-get install -y zip
wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.0.27/orientdb-3.0.27.tar.gz -O orientdb-community-3.0.27.tar.gz
tar -xvf orientdb-community-3.0.27.tar.gz
mv orientdb-3.0.27 /opt/orientdb
rm /home/vagrant/orientdb-community-3.0.27.tar.gz |
62a453c7a2843bf656d42af4c85140ef038a7ca1 | 376 | CUDA_VISIBLE_DEVICES='0' python -W ignore XLNet_runner.py --data_dir="/project/my_data" --xlnet_model="xlnet-base-cased" --max_seq_length=150 --do_train --do_test --train_batch_size=24 --eval_batch_size=1 --learning_rate=5e-5 --num_train_epochs=3 --warmup_proportion=0.1 --seed=2020 --output_dir="model-runner-output2" -... |
9c5225ffd59866916fbd3176b072f54d4407a174 | 89 | #!/usr/bin/env bash
function __ext_go_vendor {
go mod tidy -v && go mod vendor -v
}
|
3b4af62e9f492e79711be6aa9bf495638c58d138 | 472 | dossier=".../4.20.3/segmented"
cd $dossier
for a in $(ls *_merged.tif) do
do
echo "============="$a
mkdir -p $dossier/withoutnodata
mkdir -p $dossier/shapefile
/OTB-7.3.0-Linux64/bin/gdal_translate -of GTiff -a_nodata 0 $dossier/$a $dossier/withoutnodata/$a
done
cd $dossier
for a2 in $(ls *_mer... |
88f180c9550687ad26da54c4c9490b3ba96d9551 | 1,734 | #!/bin/bash
#Description Set kernel parameters for Mysql_pre;
#notice: This script is suit for CentOS7.
#Date 02/05/2017 2nd release
#Author Jamie Sun
echo "=====stop iptables;selinux====="
/etc/init.d/iptables stop
sed -i 's/SELINUX.*$/SELINUX=disabled/g' /etc/selinux/config
echo "=======set IO Scheduler,noop======... |
7a1cebdf710d2b68d9db6b6789e9bb27cfca2ec1 | 1,678 | #!/bin/sh
alias wp="docker-compose run --rm wpcli"
WP_USER="wordpress"
WP_PW="wordpress"
# WP_THEME_DIR="postlight"
# WP_THEME_NAME="postlight"
WP_EMAIL="example@example.com"
WP_DB_NAME="wordpress"
WP_DESCRIPTION="headless WordPress site"
NOW=`date +"%m_%d_%Y_%H_%M_%S"`
# wp core download --version=4.9.2 --locale=en... |
3723b66c67b63e4716f27fade27e1a9f2ac55dd1 | 168 | aws_ec2_spot_datafeed_subscription_create() {
local bucket="$1"
shift 1
cond_log_and_run aws ec2 create-spot-datafeed-subscription --bucket $bucket "$@"
}
|
3403551a2d0a09af86f3a5c5944d9287046f59e5 | 2,372 | #!/bin/bash
#set -e
set -m
#debug
#set -x
ROOT_DIR="$(git rev-parse --show-toplevel)"
BINDIR=$ROOT_DIR/build
OUTFILE=result.log
FLIB_ADDR=01:00.0
PGEN_RATE=1
# size in steps of 1024ns
PGEN_MC_SIZE=100
FLIB_MC_LIMIT=1048576
BASE_EQID=0xF00
BUF_SIZE_EXP=28
LINK=(disable disable disable disable disable disable disabl... |
f25ce40e909420c8967ee2a5012a1066a2c2b783 | 134 | #### Copie des données dans HDFS ####
# A lancer depuis bash
hdfs dfs -copyFromLocal /home/root/big_data_simulated.csv /user/root
|
f3acf75090ef19d0bd49b3d3e92f4b7f00765a96 | 116 | #!/bin/bash
seq 2000 2004 |
sed 's;^;http://ndr.md/data/noaa/;' |
sed 's;$;/;' |
xargs -n 1 curl -s
|
ed66634a5a9d90bce8415e563b8fa30826542f4f | 21 | python ./walkProx.py
|
3d2913937316db2a240374c3f93dad954556fd33 | 14,353 | #!/bin/bash -e
# Bastion Bootstrapping
# authors: tonynv@amazon.com, sancard@amazon.com, ianhill@amazon.com, logan.rakai@cloudacademy.com
# NOTE: This requires GNU getopt. On Mac OS X and FreeBSD you must install GNU getopt and mod the checkos function so that it's supported
# Configuration
PROGRAM='Backend'
#######... |
bd7d2c582f4fa774c4ff67881933a2288d6f96d0 | 1,009 | #!/bin/bash
echo Waiting for Kafka to be ready...
cub kafka-ready -b broker:29092 1 20
sleep 0
kafka-topics --create --topic customer --if-not-exists --bootstrap-server broker:29092 --partitions 1 --replication-factor 1
kafka-topics --create --topic purchase-detail --if-not-exists --bootstrap-server broker:29092 --pa... |
ceb4786295f1fb9dd1e0aa4567fbfdcef1b6f0c0 | 7,941 | #!/bin/bash
# source matlab
source /autofs/cluster/animal/scripts/matlab/matlab_74
#
# For each subject, extracts time courses for each run
# and computes correlation coefficients using ROIs.
# Also generates a corresponding matrix graphic.
#
function usage {
echo " ______ _____ _ _ _ __ ... |
a0640ffe50520c4bbc04eb2a2e2f33b2799dfb1b | 94 | #!/usr/bin/env bash
#This will show the listening ports and the PID of the socket
netstat -lp
|
df149fa7552c31e55c3bb09a17e27c20ffff8cbd | 287 | #!/bin/bash
#Mini Web Crawler
#BMR
wget -q -O - http://antares.dci.uia.mx/eortiz/SEGPR20/index.php | grep 'http' >> liga.txt
wget -q -O - http://antares.dci.uia.mx/eortiz/SEGPR20/index.php | grep '@' >> emailsCrawler.txt
wget -q -O - -i --color liga.txt | grep '@' >> emailsCrawler.txt
|
aa738a57009cbf963a15ee02b53f6d1ce6ed9f71 | 658 | export MOONSTREAM_CORS_ALLOWED_ORIGINS="http://localhost:3000,https://moonstream.to,https://www.moonstream.to"
export MOONSTREAM_OPENAPI_LIST="users,subscriptions,txinfo"
export MOONSTREAM_APPLICATION_ID="<issued_bugout_application_id>"
export MOONSTREAM_DATA_JOURNAL_ID="<bugout_journal_id_to_store_blockchain_data>"
ex... |
ec862dc743e0d74a8b6833ada92a79884378dea3 | 131 | #!/bin/bash
for file in $(ls ../fastq1_1/*.gz); do
echo $file
trim_galore --fastqc -o ../fastq1_1_trim $file
done
|
efeb13f4dcf7d9ca25a36ba867b8166986bbbd26 | 293 | #!/bin/bash
cardano-cli transaction build-raw \
--tx-in 8ef1f0f43de79e42508031be7226c64632b097ff1773968766165beb1d8aa619#0 \
--tx-out $(cat paymentwithstake.addr)+0 \
--ttl 0 \
--fee 0 \
--out-file tx.raw \
--certificate-file pool-registration.cert \
--certificate-file delegation.cert
|
c809fa009f52327da2730453011f1320d9192284 | 763 | config_map=$(kubectl -n cowbull get configmaps --no-headers $1 2> /dev/null)
ret_stat=$?
if [ "$ret_stat" != "0" ]
then
if [ -f .local/$1.yaml ]
then
short_banner "Loading $1 configuration from local manifest"
kubectl apply -n cowbull -f .local/$1.yaml &> /dev/null
if [ "$?" != "0" ]
... |
93f03ff10fd6a9f5f8ac4785995944f8656f996e | 16,056 | #
# Copyright 2016-2017 Blockie AB
#
# This file is part of Space.
#
# Space is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation version 3 of the License.
#
# Space is distributed in the hope that it will be useful... |
7e0be8f50687f5d82d77c47061b8826fe97a3a7c | 361 | #!/bin/bash
while true;
do
temp=$(./readTempData.sh)
now=$(date +%d.%m.%y-%T)
cat blank.json | sed 's/T1/'$temp'/g; s/D1/'$now'/g'> \
send.json
json=$(cat send.json)
echo $json
curl -X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d "$json" \
http://iot-api-gw.ericsson.net:3001/resources... |
3f87aa4c15dcc0f90e44a2bf402af8b7aed1d9e6 | 2,587 | # the project root directory, parent directory of this script file
dir="$(cd "$(dirname "$0")/.."; pwd)"
if [[ $# -eq 0 ]]; then
echo "Usage: $0 <object.key>" >&2
exit 1
fi
if [[ ! -f "$dir/$1.json" ]]; then
cd "$dir/terraform"
OUTPUT=$(terraform output)
REGION=$(echo "$OUTPUT" | grep ^region | tr ' ' '\n' ... |
206c6bbc8f9a8268438f8c89a7985a12206ae486 | 4,598 | #!/usr/bin/env bash
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
# Disable t... |
1abc52c1bdd47973d7ff70f605d9d1aefceb2a58 | 8,185 | #!/bin/bash
# This is the packager for bgp-extrapolator and rov.
# Making sure that jq, python3, and curl are installed
python3_test=$(command -v python3)
jq_test=$(command -v jq)
curl_test=$(command -v curl)
if [ -z "$python3_test" ]
then
echo "Aborting: python3 not installed"
exit 1
fi
if [ -z "$jq_test" ]
then
... |
0b29c96736980842e3e6cbff736e6bd5747a43a6 | 4,530 | #! /bin/sh
#█▓▒░ COMMON
alias sudo='sudo ' # Enable aliases to be sudo’ed
alias '?=man'
alias h="history"
#█▓▒░ SYSTEM
alias afk="xflock4" # Lock the screen (when going AFK)
alias restart='sudo shutdown -r'
#█▓▒░ CD
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ... |
cd6b5d68d95a284a4d7ec7609b2c9e677d2333d5 | 73 | bash xcodesetup.sh
bash vimsetup.sh
bash itermsetup.sh
bash seilsetup.sh
|
e89c01a3dbeb5f311dc4f40722289332389f83c5 | 103 | curl -sSL https://github.com/zthxxx/jovial/raw/master/installer.sh | sudo -E bash -s ${USER:=`whoami`}
|
606365921323c266394d6e48b2114438304977e6 | 279 | cp nifpara1.dat xifpara1.dat
cp nifpara1.ddx xifpara1.ddx
cp nifpara1.ixx xifpara1.ixx
cp nifpara2.dat xifpara2.dat
cp nifpara2.ddx xifpara2.ddx
cp nifpara2.ixx xifpara2.ixx
cp nifpara3.dat xifpara3.dat
cp nifpara3.ddx xifpara3.ddx
cp nifpara3.ixx xifpara3.ixx
|
5f4a374eb10243363da148b20a04ed43e26f5cb4 | 1,477 | #!/bin/bash
set -e
# ERRORS CODE
E_BADARGS=11
E_BADLOCATION=12
usage()
{
cat <<UsagePrint
Usage :
./clone.bash -t target [-v] [-h]
./clone.bash --target target [--verbose] [--help]
Clone all your repositories from your github account
Verbose : Permit to see what is done at each step
Help : P... |
d27b9dc449bf0789a24d7115c617b4c2e6d71b68 | 328 | APP_NAME=Lumen
APP_ENV=local
APP_KEY=uKPd9QTKdMr6TQEUeHUyiokbmFlqPxK1
APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=UTC
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
AUTHORS_SERVICE_BASE_URL=localhost:8000
BOOKS_SERVICE_BASE_URL=localhost:8001
PAYS_SERVICE_BASE_URL=localh... |
df510fcc1938a4055968e23b5291c4d18a5d6afd | 484 | #!/bin/bash
echo "Processing mp3 folders"
find . -maxdepth 1 -mindepth 1 -type d | while read d; do
echo "[${d}]"
pushd "${d}" &> /dev/null
find . -type f -name '*.par2' | while read f; do
par2repair "${f}" &> /dev/null && {
find . -type f ! -name '*.mp3' ! -name "*.jpg" | while read f; do
rm ... |
73a5a2bcb4ae291f6114ffde3795d9127e6f359f | 195 | #!/bin/bash
dotnet restore loadgenerator/loadgenerator.csproj &&
dotnet build --no-restore loadgenerator/loadgenerator.csproj &&
dotnet run --project loadgenerator/loadgenerator.csproj --no-build |
5007eceb9e8bc030c62265ca099d5045d6e1eeb6 | 5,226 | #!/bin/sh
###############################################################################
# #
# Converts a .fig file into an .eps file suitable for including #
# in a latex document via, say, the graphicx package. ... |
0eebd6da2e4393cbd3d9723002d124b0c3769bc1 | 431 | set -e
#source `dirname $0`/../config.sh
if [ $# -lt 3 ]
then
echo "USAGE: `basename $0` <input.bedgraph> <chrom.sizes> <out.bigWig"
exit 1
fi
#chromInfo=`dirname $0`/../annot/chromInfo.txt
INBG=$1 # input bedgraph
chromInfo=$2
OUTBIGWIG=$3 #"${INBG%.*}.bigWig" # output bedgraph
#if [ -f "${INBG}" ] && [ -s "${I... |
018272249162586da533fefd79cb02ab1d97dcb5 | 414 | #!/bin/sh -e
v="$(sass -v | sed 's/[^0-9.]//g')"
if [ -z "$(semver -v "$v" -r ">=3.1")" ]
then
echo "sass@>=3.1 required"
false
fi
sass="sass -C --scss --compass --trace"
while getopts ":mr:" opt; do
case $opt in
m) sass="$sass -t compressed";;
r) sass="$sass -r $OPTARG";;
\?) echo "invalid option: -$OPTARG... |
65ea4e66d05775c2c9e22111f8eda84262d639e3 | 12 | #TODO Test
|
4db0c253a9f337bb3a6712904bc541d8bb9658ef | 2,233 | #!/bin/bash
#----------------------------------------------------------------------------------------------------
# defaults
models_ranges=()
make_plot_links="n"
uncs=(
#"st"
#"st+sy"
"st+sy+no"
)
#----------------------------------------------------------------------------------------------------
# parse co... |
fd5e585bf4e6bb98a2a25ec218a4015f4b8c3567 | 2,037 | #!/bin/sh
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo... |
98edba5bed5706492887df1dbd8d28c49694616b | 869 | #!/bin/bash
#
contador=0
#
# LA PRIMER DECLARACION AL LLAMAR LA FUNCION ES EL NOMBRE DEL ARCHIVO ORIGINAL
nombre=$1
#
# LA SEGUNDA DECLARACION INDICA EN GRUPOS DE CUANTAS HOJAS SEPARAR
separaren=$2
#
# CON SED BORRO EL .PDF PARA EL ARHIVO DE SALIDA
salida=$(echo $nombre | sed 's/.pdf//g')
#
# CUENTO CUANTAS PAGIN... |
a499874e3d00a9df0cbff067e39bc277255e1a02 | 1,015 | #!/bin/bash
intfs="$(ip link show 2>&1 | grep -E '\seth' | grep ^[[:digit:]] | sed -e 's|.* \(eth.*\)@.*|\1|' | xargs)"
hn="$(hostname)"
function addBridge {
local brname="$1"
local intf="$2"
if ! ip link show dev $brname > /dev/null 2>&1 ; then
echo "$(date +%Y%m%d-%H:%M:%S): Running: brctl ad... |
08da243abab78a0172553ea55dd6a588a6abb9aa | 473 | #!/bin/bash
set -o verbose
rm -rf Card/classes/*
# Compile the real classes we are testing
javac -d Card/classes/ ../../src/com/immortallabs/cardboard/game/Card.java
# Compile the junit classes
javac -classpath :Card/classes/:../../lib/junit4.jar:Card/classes/com/immortallabs/cardboard/game/: -d Card/classes/ Card/sr... |
bb91a4f1c944a6c54fb306b6429aa51813f459eb | 145 | # make sure we have a certificate
vomit.sh 1
source /cvmfs/grid.cern.ch/centos7-ui-test/etc/profile.d/setup-c7-ui-example.sh
which gfal-copy
env
|
973ba6dc09db55798e58864440c040aa6e08bb4f | 110 | #!/bin/bash -e
check 'cat ~/greeter-release/config/final.yml' 'local' #> blobstore is not confiured corectly
|
69b685b2353ddb89036404c6005c8ba35469199f | 714 | #!/bin/bash
if [ $# -ne 2 ]; then
echo "Invalid number of parameters!"
echo "Usage: ./run.sh [input_data_file] [output_location]"
exit 1
fi
hadoop jar /usr/lib/hadoop/hadoop-streaming-2.8.5-amzn-1.jar \
-D mapreduce.job.reduces=1 \
-D mapreduce.job.name='Category and Trending Correlation_JOB1' \
-file map... |
8a9111addfaa2f15f932e07235889b490d91a712 | 86 | #!/bin/sh
ORIGIN=`readlink -e $0`
ROOT=`dirname ${ORIGIN}`
node $ROOT/../server.js $*
|
1adf9c43a9ba69033e88104bdf9e1abc59457f64 | 907 | #!/usr/bin/env zsh
# Script Name: Lykegenes VPS Toolkit
# Author: Patrick Samson
# License: MIT License (refer to README.md for more details)
#
# Determine the base path of this script.
# echo "The script you are running has basename `basename "$0"`, dirname `dirname "$0"`"
# echo "The present working directory is `p... |
9df67afbd00272e7d5c8aafb0507e33a722b11d2 | 428 | function is_new_bundler() {
local is_new_bundler_VERSION=`bundle --version | cut -f 3 -d ' '`
local is_new_bundler_VERSION_MAJOR=`echo $is_new_bundler_VERSION | cut -f 1 -d .`
local is_new_bundler_VERSION_MINOR=`echo $is_new_bundler_VERSION | cut -f 2 -d .`
if [ $is_new_bundler_VERSION_MAJOR -gt 1 ]; then
r... |
2d6eb5d5048c7a8121aa679901857ad05cb1d42f | 2,936 | #!/bin/bash
FSBIN="./solution/test_goatfs"
# begin: expected output
mount-output() {
cat <<EOF
disk mounted.
2 disk block reads
0 disk block writes
EOF
}
mount-mount-output() {
cat <<EOF
disk mounted.
mount failed!
2 disk block reads
0 disk block writes
EOF
}
mount-format-output() {
cat <<EOF
disk moun... |
123d54ba91a36dfd1241ec031eac6f0ec812d8ef | 62 | #!/bin/sh
uvicorn main:app --reload --host 0.0.0.0 --port 80
|
c02c1845288673dbad5555edb622e764e2824c85 | 2,823 | #!/usr/bin/env bash
# Copyright 2017 British Broadcasting Corporation
#
# 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 b... |
b2c97bf9aa9330b43ffd67a8596b88e77a6cb6b8 | 1,530 | #!/usr/bin/env bash
source "${BASH_SOURCE%/*}/_includes.sh"
en=en0
usage_name wifi <<-DESC
A tool for managing WiFi on macOS.
DESC
usage_cmd info <<-DESC
Print the current wifi status.
DESC
usage_cmd local <<-DESC
Print the wifi local ip and copy it to the clipboard.
DESC
usage_cmd global <<-DESC
Print the gl... |
8fa339d02c41bfd358a5b6fd83a77c33f3623494 | 45 | for i in {1..100}
do
python test2.py
done
|
16e5bbf8d574f9a983f84b914d0d4ec636148ea4 | 356 | #!/bin/bash -e
################################################################################
# SMOKE version 3.0 INSTALL SCRIPT
# for use on UTK Newton only
#
# Files changed in order to compile:
# None
################################################################################
export SMK_HOME=$APPDIR
mkd... |
23715666b96e735c3b17bb3ed68b60ab5ed4eadd | 296 | find alfresco-demo-data-repo-amp/src/main/amp/config/alfresco/module/alfresco-demo-data-repo-amp/bootstrap/dynamic/sites/* -mindepth 1 -type d -delete
find alfresco-demo-data-repo-amp/src/main/amp/config/alfresco/module/alfresco-demo-data-repo-amp/bootstrap/dynamic -type f -name '*.*' -delete
|
e299d0c7682737ae84b83ce63854006bc7a8df0e | 79 | #!/bin/bash
flex example.flex
gcc lex.yy.c -ll
cat example_text.txt | ./a.out
|
0eb2b6ab213598ad17c46cfc5f028458ca598209 | 327 | #!/bin/bash
# --------------- Functions
test () {
for FILE in ../../../files/*; do
echo $FILE;
done
}
save () {
#tail -f /var/log/menssages > out
echo -n "Digitar nome: "
read name
echo $name >> ./out.txt
clear
echo $(cat ./out.txt)
}
# --------------- Main
main () {
clear
echo "custom install"
save
read aa
... |
9877eb58db1908ab7a38d6687693965569c7c9b4 | 106 | #!/bin/bash
while read -p "Enter Code 64> " -r code
do
echo $code | base64 -i -d ; echo -e "\n\r"
done
|
c7bbb396a4b88d7209c88dc29773b680ac9b2e66 | 121 | #!/bin/bash
JAVA_HOME={{ java_path }}
PATH=$PATH:$JAVA_HOME/jre/bin
export PATH
java -jar /var/jenkins/bin/agent.jar
|
b8d152e9798a7f5572f2b28c864a1d820c5e9109 | 200 | VERSION=1.17
OS=linux
ARCH=amd64
cd $HOME
wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz
tar -xvf go$VERSION.$OS-$ARCH.tar.gz
mv go go-$VERSION
sudo mv go-$VERSION /usr/local
|
9d6e28be64a9d605e50f2eaab7ac911cc4e7021d | 54 | #! /bin/bash
sudo taskset 0x0f python RL_gov.py train
|
4d0ac648cfb675d66ee9ce8b31c37ecb2da34030 | 153 | How to unstage a staged file
You can use git offline!
The three states in git
How to write a git commit message
Remote repositories: fetching and pushing |
dde7e3cda59d3bdd8e38a32c118cb4b99c79891f | 427 | #!/bin/bash
#
# SVOX Pico TTS - Read text from file
#
# EXECUTE COMMAND
# ./picoTTSFromFile.sh text_en.txt
# ./picoTTSFromFile.sh de-DE text_de.txt
#
##### Constants
language="en-GB"
tmpFile="/tmp/picoTmpAudio.wav"
text=""
##### Main
if [ $# == 1 ]; then
text="${1}"
else
language="${1}"
text="${2}"
fi
... |
2d7bf76ac5fe7e65c4fa5ceb7f5eebdffc241cc0 | 758 | #!/bin/bash
SEMVER_REGEX="^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))?$"
semver_arr() {
version=$1
if [[ "$version" =~ $SEMVER_REGEX ]]; then
local major=${BASH_REMATCH[1]}
local minor=${BASH_REMATCH[2]}
local patch=${BASH_REMATCH[3]}
if [ ! -z $patch ]; then
patch=$(echo $patch | c... |
883f73953e07059897493feb15c87315e3ea3ac1 | 1,847 | #!/bin/sh
# This script is meant to recover all skin mcf files
# author: Jille
########################
#info
TOPIC=Skinfiles
DESCRIPTION="This script will recover the backupped skinfiles and ambienceColorMaps"
. /eso/bin/PhoneCustomer/default/util_info.sh
#Make app volume writable
echo Mounting app folder.
mount ... |
be771a779fcbdeca1847a2c8bc0c835f4ac6384c | 1,112 | # Maintainer: eolianoe <eolianoe [at] gmail [DoT] com>
# Contributor: Aaron Lindsay <aaron@aclindsay.com>
# Contributor: Edvinas Valatka <edacval@gmail.com>
# Contributor: Adrian Hühn <adrian.huehn@web.de>
pkgname='libsearpc'
epoch=2
pkgver=3.3.0
pkgrel=4
pkgdesc="A simple C language RPC framework (including both serv... |
723f11305b61e3a6c26f8de8b7b4cb14b4bae739 | 69 | mkdir ./Graphs
../../bin/Draw "./FileList/AllTxt.txt" "./Graphs/"
|
6b67d1309aefff7109b65e9c11e97aac8ff7f711 | 47 | java -Xmx20g -jar sfc_eigen_algo.jar reqsize=3
|
294cbd81fd191bf2ae3d991fb380b0728a5c5b92 | 105 | cp ~/.zshrc ./roles/omz/files
cp ~/.spacemacs ./roles/spacemacs/files
cp ~/.config/i3/* ./roles/i3/files
|
f0289d47046a911b40afbdbf5c4801734b90102e | 524 | #!/bin/sh -e
#
# Dump the daemon threads
#
[ -t 1 ] && LONG= || LONG=l
[ $# -eq 0 ] && LIST='scheduler runner archiver ticker' || LIST=$@
for SERVICE in ${LIST}
do
PID_FILE=$(ps -ef \
| fgrep "/daemons/${SERVICE}" \
| fgrep -- '--pid-file' \
| head -1 \
| sed -e 's/^.*--pid-file\... |
a853c33505b75a3e0984b90c7c6c34cd7a651dcc | 129 | #!/usr/bin/env bash
ginkgo -r -race -skipMeasurements -randomizeAllSpecs -randomizeSuites test/webintegration -- -webintegration
|
c503cedd4a542049e380a926339aaf92591528ec | 192 | #!/bin/sh
cp targetdisplaymonitor.py /usr/local/bin/
cp com.user.targetdisplaymonitor.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.user.targetdisplaymonitor.plist
|
22e8a85ed5bc55edd06d7bd797aa31a7cd641e13 | 303 | #! /usr/bin/env bash
# Alias the codeowners-validator command to include most common invocation
alias codeowners-validator='REPOSITORY_PATH="./" EXPERIMENTAL_CHECKS="notowned" GITHUB_ACCESS_TOKEN="${GITHUB_CODEOWNERS_VALIDATOR_TOKEN}" OWNER_CHECKER_ORGANIZATION_NAME="arceo-labs" codeowners-validator'
|
2a05690c3b6aa6ae99ccaade43f30b401675fa55 | 4,100 | #!/bin/bash
sudo apt-get install -y apt-transport-https ca-certificates linux-image-extra
########################
### Add repositories ###
########################
# For Atom.io
sudo add-apt-repository -y ppa:webupd8team/atom
# For FishShell
sudo apt-add-repository -y ppa:fish-shell/release-2
# For JDK
sudo apt-ad... |
df13d13fdbc2f328e5e8ad1fa19132fec6af861a | 118 | #!/bin/bash
cp /usr/bin/free.bak /usr/bin/free
cp /usr/bin/top.bak /usr/bin/top
echo "Script executed successfully"
|
08d7597919481c0ac10e6766111e7738695742fe | 426 | #!/bin/bash
DATETIME="`date +%Y%m%d-%H%M%S`"
HOSTNAMEF="`hostname -f`"
HOSTNAMES="`hostname -s`"
openssl req -new -newkey rsa:2048 -nodes -sha256 -subj "/C=DE/L=Koeln/O=Example GmbH/OU=IT/CN=${HOSTNAMEF}/emailAddress=it.department@example.com" -config custom-openssl.cnf -out "${DATETIME}-${HOSTNAMES}-csr.pem" -keyout... |
37729fe235789b0e51a5c87da33099766ec8a418 | 424 | #!/bin/bash
# Exit script if return code != 0
set -e
source /root/functions.sh
echo "Install dhcpcd package without udev support"
aur_start
aur_build dhcpcd-without-systemd
aur_finish
echo "Install and configure additional PHP packages"
source /root/php.sh
echo "Download adminer"
curl -L -sS -o /srv/http/adminer.p... |
1c7655f144505aee1af29f86fa29fe438630ba55 | 155 | #!/bin/bash
if [ "$(id -u)" == "0" ]
then
echo "Please run git without sudo, your regular user account is enough :)" 2>&1
exit 1
fi
/usr/bin/git "$@" |
50fa2c1730aefd8637cd32addbffe4cfbb8a7008 | 296 | #!/bin/bash
set -eo pipefail
if [ -z "$1" ]; then
CMD=$(readlink -f "$0")
find /home -iname node_modules -mtime +14 -prune -exec bash $CMD {} \;
else
if [ -z "$(echo "$1" | tr "/" "
" | grep "^\\.")" ]; then
echo " -- RM $1 -- " >&2
rm -rf "$1"
else
echo "keep $1"
fi
fi
|
b114a0c99909d96a1836b9dbbeebe086e6caf1e3 | 128 | #!/bin/bash
python RunBootstrap.py --paralog1 YER074W --paralog2 YIL069C --bootnum 21 > YER074W_YIL069C_Boot21_PrintScreen.txt
|
4efdc83fb0dd87acc64c3a75f7cbeb7d7583f67c | 106 | MAX_REQUESTS=1000
TOKENS=test,tokens
LOG_LEVEL=DEBUG
GOOGLE_APPLICATION_CREDENTIALS=ServiceAccountKey.json |
33a4b522f6fda84c33e9812d541fe45e97272825 | 164 | #!/usr/bin/env bash
if [ "$1" == "--version" ]; then
gpg $@
else
gpg --pinentry-mode loopback --batch --passphrase-fd 0 --no-tty $@ <<< $GPG_PASSPHRASE
fi;
|
be347946d32578fa9e87c69d427f54d29a874a5b | 39 | #!/bin/bash
./plot_1.gnu
./plot_2.gnu
|
6e50992660c62ee9189180ee5fa7e970b0842c66 | 121 | #!/bin/bash
python3 ../../label.py EC/day_aggregation.csv EC/Key/pca_clusters.csv cluster EC/Key/raw_clusters.csv cluster |
2047e4ce2239c8fd459da377fbb6e854b6cfcf2e | 278 | #!/bin/bash
if [ ${HOST_IP} ]; then
ipaddr=${HOST_IP}
else
ipaddr=`/sbin/ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`
fi
echo "export HOST_IP=$ipaddr" | tee -a ~/.bash_aliases
. ~/.bash_aliases
/usr/local/bin/docker-compose up -d
|
87ebb79da0a8975f99346240f87d887d0e15e6a0 | 191 | #!/usr/bin/env bash
#Find Text in files
echo "Searching for files containing the text '$1' in current dir and all sub-dirs"
find . -type f -not -iwholename '*.git*' -exec grep -il "$1" {} \;
|
5f02c3d06ed420ed854606eb857b10d85f374ade | 3,443 | #!/bin/bash
JAR=/Users/albarron/workspace/LumpSTS/target/LumpSTS-0.0.1-SNAPSHOT.jar
DEPENDENCIES=/Users/albarron/workspace/LumpSTS/target/dependency/*
INPUT_PATH=/Users/albarron/workspace/LumpSTS/DATA
################
# CHAR N-GRAMS #
################
CLAZZ=cat.lump.sts2017.similarity.CharNgramsSimilarity
######
#... |
e9e6aab7b7faa78735fbfb8debb494a8bf0addb1 | 319 | #!/bin/sh
#export MODELSIM_BIN="$HOME/intelFPGA_lite/18.0/modelsim_ase/bin"
MODELSIM_BIN="$HOME/intelFPGA_lite/18.0/modelsim_ase/linuxaloem"
# cleanup
rm -f code_ref.dis
rm -f code_dut.dis
$MODELSIM_BIN/vlib work
$MODELSIM_BIN/vlog riscv_asm.sv riscv_asm_tb.sv
$MODELSIM_BIN/vsim -c -do 'run -all;quit' riscv_asm_tb
|
354b7b191e7c840a0d839a944525648c3f939845 | 291 | #!/bin/bash
build_dir=build_sc
cd $build_dir
CPPFLAGS="" CFLAGS="-I`pwd`/../ -I`pwd`/../../expat-2.0.1/lib/" LDFLAGS="-L`pwd`/../../target/usr/local/lib/" ../configure --target=mipsel-linux-uclibc --host=mipsel-linux-uclibc --build=i486-linux-gnu --enable-shared --enable-static --prefix=
|
9fdaab2b4ffb201dfaa8be0915650d734b968d7b | 262 | #!/bin/sh
# vim:ft=zsh:
# abstract: symlink the results of a beets query
QUERY="comments:knarkmacka"
while read d; do ln -s $d; done <<(beet ls comments:knarkmacka|dirnamep|sort -u)
#while read d; do
# ln -s $d; done
# <<(beet ls "$QUERY"|dirnamep|sort -u)
|
1f608830550d82dfa38fbd17c3b511dab0f72a68 | 1,867 | #!/bin/bash
#Copyright (c) 2015 Apps4Av Inc.
# Author Zubair Khan (governer@gmail.com)
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above co... |
c5dd39bb52ab02bd9683bd4d5e81686a5d224a53 | 326 | function loop()
{
while true
do
sleep 1
echo "looping"
done
}
function int()
{
echo "sigint"
exit
}
function term()
{
echo "term"
exit
}
function quit()
{
echo "quit"
exit
}
function shkill()
{
echo "kill"
exit
}
trap int SIGINT
trap term SIGTERM
trap shkill SIGKILL
trap quit SIGQUIT
... |
ec6291365d119a1c0f80f0f536f876760dcaab1a | 46 | #!/bin/bash
git pull --rebase origin master
|
2b603e54985df8c7a77de4ae6206feb77a56bea3 | 190 | #!/bin/sh
curl -s 'http://www.weatherlink.com/user/cokikite/index.php?view=main&headers=0' | \
ruby -ane 'puts Time.now, $F[2].match(/wrap.(\S+) (\d+)/)[1,2] if ~/KT<\/span><\/td>.*$/'
|
fd8b3cad7c6725f76ee1044e64be16b5b3962709 | 2,612 | #!/bin/bash
unhide_cursor() {
printf '\e[?25h'
}
trap unhide_cursor EXIT
_key()
{
local kp
ESC=$'\e'
_KEY=
IFS= read -d '' -r -sn1 _KEY
case $_KEY in
"$ESC")
while read -d '' -sn1 -t1 kp
do
_KEY=$_KEY$kp
case $kp in
[a-zA-NP-Z~]) break;;
esac... |
ba04e3c556883cde1c22681906aa2e19848cfb42 | 490 | #/bin/bash
echo $PWD
WORKDIR=$PWD
ls -l
source /afs/cern.ch/project/eos/installation/cms/etc/setup.sh
cd /afs/cern.ch/user/q/qwang/work/cleanroomRun2/Ana/CMSSW_7_5_8_patch3/src/QWAna/QWCumuGap/test
eval `scramv1 runtime -sh`
cp qw_Hijing_mod1.py $WORKDIR/cfg.py
cd $WORKDIR
cmsRun cfg.py
ls -l
NEW_UUID=$(openssl rand -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.