blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
9a2b622423a0ade6a2d47a4bcfbe7e012f0df4c5 | Shell | Govardhan-github/shell.programms | /sequenceprblms/plots.sh | UTF-8 | 237 | 2.75 | 3 | [] | no_license | #!/bin/bash -x
num1=60
num2=40
AREAINFEET=$(($num1*$num2))
echo $AREAINFEET
AREAINMETERS=$(($AREAINFEET/10))
echo $AREAINMETERS
AREAOF25PLOT=$(($AREAINMETERS*25))
echo $AREAOF25PLOT
AREAINACERS=$(($AREAOF25PLOT/4047))
echo $AREAINACERS
| true |
f1efcaea8b0769b33e1986f40745d0fa19b4cc8f | Shell | pinusc/dotfiles | /bin/bin/util/weight_logger.sh | UTF-8 | 2,227 | 4.21875 | 4 | [] | no_license | #!/bin/bash
#================================= VARIABLES ===================================
LOG_FILE="$HOME/docs/various/weight/log.txt"
PLOT_FILE="$HOME/docs/various/weight/weight.png"
PLOT_SRC="$HOME/docs/various/weight/weight.plt"
DATE_COMMAND="date -I"
TIME_COMMAND="date -Ihours"
#=============================... | true |
de820ff5ecd742a1a04edb22e81cf599bb7e1b72 | Shell | fraigo/python-cors-proxy | /.docker/run.sh | UTF-8 | 274 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Starting..."
pwd
echo "Checking $REQUIREMENTS_FILE..."
if [ -e $REQUIREMENTS_FILE ]; then
echo "Installing from $REQUIREMENTS_FILE"
pip install -r $REQUIREMENTS_FILE
fi
sleep 3
python manage.py migrate
python manage.py runserver 0.0.0.0:8000
| true |
908b27fa1979acb9f49f1fcb4695db52e9adf76e | Shell | rafa0c/BASH | /network_Checker.sh | UTF-8 | 216 | 3.125 | 3 | [] | no_license | #/bin/bash
#Author:Rafael Caballero
#Date:Nov. 2014
#Purpose: This Script monitors Internet Connectivity.
SITE="www.google.com"
ping -c 2 $SITE > /dev/null
if [ $? != 0 ]
then
echo `date +%F`
echo PING failed!
fi
#END
| true |
5c99723ad1d82a767135ffb91e2f3c0434ad98a7 | Shell | zerro-tmp/dropbox_xcloud | /dropbox/bin/writeconfig.sh | UTF-8 | 3,318 | 3.484375 | 3 | [] | no_license | #!/opt/app/dropbox/bin/bash
APPKEY=$1
APPSECRET=$2
PROXY=$3
OAUTH_TOKEN_SECRET=$4
OAUTH_TOKEN=$5
CONFIG_FILE=/opt/app/dropbox/etc/config
CURL_BIN="/opt/app/dropbox/bin/curl --proxy $PROXY "
RESPONSE_FILE="/tmp/du_resp_$RANDOM"
API_ACCESS_TOKEN_URL="https://api.dropbox.com/1/oauth/access_token"
ACCESS_LEVEL="dropbox"
f... | true |
5b0d857015018bfdc63f9740283d18c7c3740f17 | Shell | dori2063/emotion | /papers/interspeech2021/run_experiments.sh | UTF-8 | 4,042 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# This script runs all the experiments from the Interspeech 2021 paper
# as well as additional experiments using "online" normalisation and
# proper inner cross-validation (with GridSearchCV).
# Only report TF internal errors (quite spammy otherwise)
export TF_CPP_MIN_LOG_LEVEL=2
all_corpora=(CaF... | true |
f77cbda8920ad33e913ca9a9e7c510b76f7c9856 | Shell | jianlin-cheng/DFOLD | /examples/T0_run_DFOLD-1ALY-A.sh | UTF-8 | 1,639 | 2.640625 | 3 | [] | no_license | #!/bin/bash
#SBATCH -J DFOLD
#SBATCH -o DFOLD-%j.out
#SBATCH --partition Lewis,hpc5,hpc4
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=10
#SBATCH --mem-per-cpu=2G
#SBATCH --time 1-00:00
mkdir -p /data/jh7x3/DFOLD/test_out/1ALY-A/
cd /data/jh7x3/DFOLD/test_out/1ALY-A/
if [[ ! -f "/data/jh7x3/DFOLD/... | true |
739d539555e221efc3ffb3c1c39a0cd79928e3db | Shell | giacastello/SFPC2019 | /CodePoetry/folder-friends/6681439e1147e86c5fe19f27136b0c3781fb394f78e54c2eddb99c14de8e0756/nariaki-gift/what/you/think/please-share.sh | UTF-8 | 374 | 3.203125 | 3 | [] | no_license | echo would you type what you think about sfpc?
read input
echo Thank you!
echo Is it okay to share your answer in this folder anonymously?
echo "(yes/no)"
read yn
if [ $yn = "yes" ]; then
echo "$input" >> what-we-think.txt
fi
echo thank you again!
echo "you can see other parson's answer as well in what-we-think.txt ... | true |
0ff18996ea6839316fd6a9b6fd28fc3d83bc9178 | Shell | crubier/my-personal-projects | /2007-PIR-Drone Trirotor acrobate/Projet/Informatique/CNES/club-10.0/tst/test_FormatFortran.in | ISO-8859-1 | 650 | 2.640625 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | #! /bin/sh
# identificateur RCS : "$Id: test_FormatFortran.in,v 3.9 2000/07/31 08:35:35 club Exp $"
# mise en place d'un environnement anglais pour vrifier les messages
@cl_cv_var_lang@=en ; export @cl_cv_var_lang@
@cl_cv_var_tradpath@=@srcdir@/.. ; export @cl_cv_var_tradpath@
# excution du programme de... | true |
c4d87536e9d2510f82f5b5d9dcc5f707a75a8c87 | Shell | Kissaki/mumble | /.github/actions/install-dependencies/main.sh | UTF-8 | 516 | 4.03125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
os="$1"
dep_type="$2"
arch="$3"
if [[ "$os" == "" || "$dep_type" == "" || "$arch" == "" ]]; then
echo "Invalid/Missing parameters"
exit 1
fi
# Turn variables into lowercase
os="${os,,}"
# only consider name up to the hyphen
os=$(sed 's/-.*//' <<< "$os")
dep_type="${dep_type,,}"
arch="${arch,,}"... | true |
5fdf501633533ebd9f7c54d97bdeac440212a5c7 | Shell | NeoChen1024/Brainfunk | /compile.sh | UTF-8 | 338 | 3.609375 | 4 | [
"Unlicense"
] | permissive | #!/usr/bin/env sh
set -e
CC="${CC:-cc}"
CFLAGS="-Ofast -pipe -static"
FILE="$(mktemp)"
SRC="$1"
OUT="$2"
msg_echo()
{
printf "\e[44m>>\e[0m \e[33m%s\e[0m\n" "${1}"
}
if [ $# -lt 2 ]; then
echo "${0}: <mode> <infile> <outfile>"
exit 4
fi
msg_echo "$SRC"
./brainfunk -m bfc -f "$SRC" -o - | "$CC" -x c $CFLAGS - -o "... | true |
83aa8c27a84e45cfda688b836e8fa7f676a5dee6 | Shell | PeterSzobonya/school | /szamrend/szamrend_gyak/2.sh | UTF-8 | 486 | 3.6875 | 4 | [] | no_license | #!/bin/sh
filename=$1
if [ $filename = --help ]
then
echo "Csak az adatok parameterrel mukodik a program"
else
while [ ! -f ~/szamrend_gyak/*/$filename ]
do
echo "Nem jo adatot adott meg "
read filename
done
fi
sum=0
sor=1
for i in `cat ~/szamrend_gyak/*/$filename | cut -f 2 -d ";"`;
do
class=`cat ~/szamre... | true |
9bd9fd0d194a82a7464a7fc99b253a3e2e55cc8b | Shell | TerryDodre/42 | /ft_server/srcs/index.sh | UTF-8 | 395 | 3.046875 | 3 | [] | no_license | if [ $1 = "on" ]
then
rm -rf /etc/nginx/sites-enabled/*
ln -s /etc/nginx/sites-available/localhost.conf /etc/nginx/sites-enabled/
service nginx restart
elif [ $1 = "off" ]
then
rm -rf /etc/nginx/sites-enabled/*
ln -s /etc/nginx/sites-available/localhost_indexoff.conf /etc/nginx/sites-enabled/
service nginx resta... | true |
77c37463f72e4357e9539b8c98067faf4f41445a | Shell | asamuylikrps/b6a | /run/run.sh | UTF-8 | 572 | 3.09375 | 3 | [] | no_license | #!/bin/bash
chown www-data:www-data /app -R
if [ "$ALLOW_OVERRIDE" = "**False**" ]; then
unset ALLOW_OVERRIDE
else
sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
a2enmod rewrite
fi
source /etc/apache2/envvars
mysqld_safe >/dev/null 2>&1 &
sleep 4
mysqladmin -u root password... | true |
4aa572596e9483cb630126240eb489ea068113e6 | Shell | grml/grml-crypt | /grml-crypt | UTF-8 | 14,320 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# Filename: grml-crypt
# Purpose: Program to format, mount and unmount encrypted devices/files
# Authors: Michael Gebetsroither <gebi@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
###############################################... | true |
504dd707195e441f503b1427ed7c1ab49bcd72c1 | Shell | Moss89/Bash_Project_Semester_1 | /COMP30640Project/client.sh | UTF-8 | 1,694 | 3.59375 | 4 | [] | no_license | #!/bin/bash
if [ -z $@ ] ; then
# check for arg
echo "Error: No ID given"
exit 1
else
# make pipe
mkfifo $1.pipe
mypipe="$1.pipe"
trap ctrl_c INT
# trap ctrl+c and delete client pipe
function ctrl_c(){
rm "$mypipe"
exit 0
}
# infinite loop
while [ True ]; do
read input
# extract command and db
cm... | true |
cf7067009618307fe645998f119970d3614df810 | Shell | Balthus1989/lus2ndproject | /cross-validation.sh | UTF-8 | 6,088 | 3.203125 | 3 | [] | no_license | #!/bin/bash
echo -n "Enter k for cross-validation > "
read k
echo -n "Enter the hyperparameter > "
read hyper
echo -n "Enter the number of threads > "
read threads
echo -n "Specify the template to be used > "
read tmpl
echo -n "Training set (file name)> "
read trainSet
echo -n "Test set (file name)> "
read testSet
ech... | true |
4fd2f2ddd41c3955f50b07a2e08a4760b57e1e09 | Shell | tianon/node-exporter-textfile-scripts | /apcupsd.sh | UTF-8 | 1,321 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -Eeuo pipefail
if ! command -v apcaccess > /dev/null; then
export PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
fi
if ! command -v apcaccess > /dev/null; then
echo >&2 'apcaccess: command not found'
exit 1
fi
if [ "$#" -eq 0 ]; then
set -- ''
fi
declare -A labelMap=(
['cable']='CABLE'
['... | true |
f992c57a08c75ff32472ab09015893028017e104 | Shell | kdave/xfstests | /tests/overlay/040 | UTF-8 | 1,418 | 3.125 | 3 | [] | no_license | #! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2017 Huawei. All Rights Reserved.
#
# FS QA Test 040
#
# chattr with [iap..] attributes open file for read-only and
# invoke ioctl(). If we chattr a lower file in overlay, it
# will get the lower file but not trigger copy-up, so ioctl()
# lead to modifica... | true |
ffc6b13970f5cb839a3626c78cbfed4757c54f47 | Shell | cedouiri/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/4-if_9_say_hi | UTF-8 | 190 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
#displays Holberton School 10 time and then Hi after 9th line
i=0
while [ $i -lt 10 ]; do
echo "Holberton School"
if [ $i == 8 ] ; then
echo "Hi"
fi
let "i++"
done
| true |
b718ee1b91495066130768149700d08cc44fe053 | Shell | dineshraj/dotfiles-old | /dev/install.sh | UTF-8 | 1,057 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# set up Github ssh
# see https://unix.stackexchange.com/questions/136894/command-line-method-or-programmatically-add-ssh-key-to-github-com-user-account
ssh-keygen -t rsa -b 4096 -C "dineshraj.goomany@bbc.co.uk"
eval "$(ssh-agent -s)"
cat <<EOT >> ~/.ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
... | true |
2a52282f376c562f325b95dc8c5a1b12697d0f6c | Shell | habitat-sh/core-plans | /.deprecated/p4broker/hooks/init | UTF-8 | 1,048 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -xe
#
if [ ! -d {{pkg.svc_data_path}}/log ]; then
mkdir -p {{pkg.svc_data_path}}/log
chown -R {{pkg.svc_user}}:{{pkg.svc_group}} {{pkg.svc_data_path}}/log
ln -s /dev/stdout {{pkg.svc_data_path}}/log/p4broker.log
else
chown -R {{pkg.svc_user}}:{{pkg.svc_group}} {{pkg.svc_data_path}}/log
rm -rf {{pkg.sv... | true |
80ff3900b3f7c768bff554a0adbf1f5cde394510 | Shell | Sakshi506/MyLearning | /assignment_day5/selection/if-elif/placeValue_if.sh | UTF-8 | 796 | 3.125 | 3 | [] | no_license | #!/bin/bash -x
echo -n "Enter a no: "
read n
len=${#n};
if [ $len -eq 4 ]
then
u_p=$(($n%10));
echo "unit place = $u_p";
n=$(($n/10));
t_p=$(($n%10));
echo "tens place = $t_p";
n=$(($n/10));
h_p=$(($n%10));
echo "hundred place = $h_p";
n=$(($n/10));
th_p=$(($n%10));
echo "Thousands place = $th_p";
... | true |
f64895d7bafa82de33277441dc0811cd47bbb111 | Shell | schenklklopfer/pixeldump | /mirror.sh | UTF-8 | 493 | 3.1875 | 3 | [] | no_license | #!/bin/bash
HOSTo="127.0.0.1"
PORTo="1234"
HOSTi="116.202.17.20"
PORTi="1234"
PTH="/home/schenkl/px-dd/pr.sh"
exec 3<>/dev/tcp/$HOSTi/$PORTi
echo -e "SIZE" >&3
SIZE=$(read var <&3; echo $var)
X=$(echo $SIZE | awk '{print $2}')
Y=$(echo $SIZE | awk '{print $3}')
let Y=Y-1
if [ $(( $X % 320 )) -eq 0 ]; then
DIVI=$(... | true |
dee2e8583dc594ee03af1831e6d87f08cde77c00 | Shell | saiskee/dwtj_rules_java | /java/aspects/google_java_format_aspect/TEMPLATE.run_google_java_format.sh | UTF-8 | 1,423 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/bin/sh -
#
# This script was generated from a template with the following substitutions:
#
# - JAVA_EXECUTABLE: {JAVA_EXECUTABLE}
# - GOOGLE_JAVA_FORMAT_DEPLOY_JAR: {GOOGLE_JAVA_FORMAT_DEPLOY_JAR}
# - JAVA_SOURCES_ARGS_FILE: {JAVA_SOURCES_ARGS_FILE}
# - OUTPUT_FILE: {OUTPUT_FILE}
# - COLORDIFF_EXECUTABLE: {COLORDIF... | true |
4fae1dfbf77299dad760047af6153b931b1a1e5c | Shell | MashupMill/nginx-proxy | /test/ssl.bats | UTF-8 | 3,617 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load test_helpers
SUT_CONTAINER=bats-nginx-proxy-${TEST_FILE}
function setup {
# make sure to stop any web container before each test so we don't
# have any unexpected contaiener running with VIRTUAL_HOST or VIRUTAL_PORT set
stop_bats_containers web
}
@test "[$TEST_FILE] start a nginx-proxy co... | true |
40db6de47ed3e4f598c358099691accf8f9505f5 | Shell | kayazas123/kubernetes-vagrant | /after_install_script | UTF-8 | 969 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo
echo "1. Search for vagrant logs for: 'This VM has IP address'"
echo
echo "2. SSH into the vagrant box: vagrant ssh"
echo
echo "3. Copy the kubeconfig to the local filesystem: cp /home/vagrant/.kube/config /vagrant/kubeconfig"
echo
echo "4. Modify the server IP address of the kubeconfig file"
echo
echo ... | true |
33591e5c4b7de50086c4414fed001d534ea3db65 | Shell | qumc8642/Lab_5 | /GradesAwk.sh | UTF-8 | 162 | 2.53125 | 3 | [] | no_license | #Quinlin McNatt
#Amos Hodges
FILE1=$1
awk '{
grade = 0;
for(i=4; i<=6; i++)
grade += $i;
OFMT = "%.0f"
print(grade/3, "["$1"]", $3",",$2);}' $FILE1 | sort -t' ' -k3 -k4 -k2
| true |
3e39ffa748196d6b1802e789c74a3c6b92745932 | Shell | Cluster444/pgo_dashboard | /bin/build_and_push | UTF-8 | 470 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# Build Docker image
docker build -t ${REPOSITORY} .
# Tag Docker image for Amazon ECR
docker tag -f ${REPOSITORY}:latest ${AWS_ACCOUNT_ID}.dkr.ecr.${EC2_REGION}.amazonaws.com/${REPOSITORY}:latest
# Log in to ECR
$(aws ecr get-login --region us-east-1)
# Create repository in ECR
aws ecr create-repositor... | true |
d9bb212fd5f2d6be3853b85586ea7b1b999869a3 | Shell | abargnesi/iron | /tests/test_internal.sh | UTF-8 | 2,372 | 2.84375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/usr/bin/env bash
source "$IRON_FUNCS" || exit 1
test_g_varset() {
# assert PATH is usable for testing
# shellcheck disable=SC2016
assertTrue "test assumption failed" '[ ! -z "$PATH" ]'
# and assert a 0 return with PATH set
_g_varset PATH
RC=$?
assertEquals 0 $RC
# and assert a 1 re... | true |
7688b8505fa1b67916a58611b62df32ecdead09a | Shell | rato303/docker-centos-redmine | /redmine_mysql.sh | UTF-8 | 324 | 2.625 | 3 | [] | no_license | #/bin/sh
REDMINE_DB_NAME=$1
REDMINE_DB_USER_NAME=$2
REDMINE_DB_PW=$3
service mysqld start
mysql -uroot -e "create database $REDMINE_DB_NAME default character set utf8;"
mysql -uroot -e "grant all on $REDMINE_DB_NAME.* to $REDMINE_DB_USER_NAME@localhost identified by '$REDMINE_DB_PW';"
mysql -uroot -e "flush privilege... | true |
fe4fa2d7b63b0dd54009b1d00c969458a0296011 | Shell | AndrewWhyNot/BOINC-Interval-Based-BnB | /taskProcesserRunner.sh | UTF-8 | 173 | 2.734375 | 3 | [] | no_license | #/bin/sh
while [ true ]; do
res=$(/usr/bin/python3 taskProcesser.py 2>&1 >> out)
#res = $($res: -1)
echo $res
if [ "$res" -eq "0" ]
then
exit 0
fi
sleep $res
done
| true |
73eb8f623ea1c0116e541fcd466550ee9997155d | Shell | WhiteHat123456/install-caddy | /icaddy2.sh | UTF-8 | 665 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
#chmod 755 install-caddy2.sh
#o o o o o o o o o o o
apt-get update
apt-get install curl -y
apt-get install net-tools
#caddy binary file
wget https://iaddy.ipip.pw/66666caddy/caddy
chmod 755 caddy
mv ./caddy /usr/local/bin
#Caddyfile
mkdir /etc/caddy
touch /etc/caddy/Caddyfile
#caddy.service
cur... | true |
c3720c70b0776ba5f1491f34e8bcf8d5c4459b40 | Shell | trieck/source | /clean.sh | UTF-8 | 494 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# generate exclusion list
. ./exclude.sh
if [ $? -ne 0 ]; then
echo "error: failed to generate exclusion list."
exit $?
fi
# clean excluded files
find . -regextype posix-egrep -iregex ".+\.(${EXCLUDE})$" -print -exec rm -f {} \;
if [ $? -ne 0 ]; then
echo "error: failed to clean files."
exit $?
fi
# ... | true |
3530dac9f37bc7833615cf01007ee82c510d1008 | Shell | ChristianGrete/dotfiles-brew | /dist/profile.sh | UTF-8 | 307 | 2.9375 | 3 | [
"MIT"
] | permissive | export BREW_PACKAGE="$DOTFILES_PACKAGES/dotfiles-brew"
export BREW_PACKAGE_SOURCES="$BREW_PACKAGE/dist"
export BREW_PACKAGE_VERSION="$(
cd "$BREW_PACKAGE"
git describe --tags "$(git rev-list --max-count=1 --tags)" 2>/dev/null
[ $? -ne 0 ] && echo 'Unversioned'
)"
. "$BREW_PACKAGE_SOURCES/aliases"
| true |
9e19b91e21d72b6c1f3aace6ce3054a1fc9a931b | Shell | bajcsiadel/Time-Crystals | /run.sh | UTF-8 | 470 | 3.28125 | 3 | [] | no_license | #!/bin/bash
mkdir -p ./results/outs ./results/movies ./results/stats
cd ./source
make
cd ../
for param in `ls -a ./parameters | egrep '^.*.json$'`
do
NAME=`echo $param | cut -d'.' -f1`
DATE=`date +%Y%m%d_%H%M%S`
build/softsim parameters/$param > results/outs/out_$NAME\_$DATE.txt &
nr_runnings=`ps -e ... | true |
816730d423f98bf40cdc5ffdb9f7404f090cc54a | Shell | INTO-CPS-Association/distributed-maestro-fmu | /bundle/src/test/resources/script.sh | UTF-8 | 1,063 | 2.9375 | 3 | [] | no_license | #!/bin/bash
#set -e
maestro=../../../../dmaestro/target/dmaestro-0.0.7-SNAPSHOT-jar-with-dependencies.jar
daemon=../../../../daemon/target/daemon-0.0.7-SNAPSHOT-jar-with-dependencies.jar
loaderModule=../../../../distribution-maestro-loader/src/main/resources/org/intocps/maestro/distributed/JavaRmiRemoteFMU2Loader.mabl... | true |
20e962e61c8cc848bec5e5f7c371a444cce593f7 | Shell | alberto-poncelas/tesseract_postprocess | /ocr_and_postprocess.sh | UTF-8 | 436 | 3.015625 | 3 | [
"MIT"
] | permissive |
INPUT_PDF=$1
OUTPUT=$2
INITPAGE=$3
FINPAGE=$4
SCRIPTDIR=$(dirname $(readlink -f "$0")) #path of ththis script
OUTPUTRAW=$OUTPUT".raw"
REPL_DICT='replacement_dictionary'
#DO OCR
bash $SCRIPTDIR/ocr/do_OCR.sh $INPUT_PDF $OUTPUTRAW $INITPAGE $FINPAGE
#POSTPROCESS
python $SCRIPTDIR/postprocess/get_replacement... | true |
f0321c486d0cdd8f9124d47c36d66545c8177e03 | Shell | Bjay1435/capstone | /rootfs/usr/share/pkg-config-crosswrapper | UTF-8 | 247 | 2.9375 | 3 | [
"MIT"
] | permissive | #! /bin/sh
# pkg-config wrapper for cross-building
# Sets pkg-config search path to target arch path only.
triplet=`basename $0 | sed -e 's:-pkg-config::'`
PKG_CONFIG_PATH=/usr/lib/${triplet}/pkgconfig:/usr/${triplet}/lib/pkgconfig pkg-config $@
| true |
586a025ee6247f1dc886f363a841e3ffbd07236a | Shell | prostoalex/vagrant-wordpress | /provision.sh | UTF-8 | 1,218 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
echo "Updating packages..."
apt-get update >/dev/null 2>&1
echo "Installing debconf-utils"
apt-get install -y debconf-utils >/dev/null 2>&1
echo "Pre-seeding mysql with default password SOMEPASSWORD123"
echo "mysql-server mysql-server/root_password password ... | true |
98fbcc194762749ba508ccc6f5bb6cde37427b1b | Shell | delkyd/alfheim_linux-PKGBUILDS | /open-transactions-git/PKGBUILD | UTF-8 | 2,607 | 2.90625 | 3 | [] | no_license | # Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=open-transactions-git
pkgver=20140620
pkgrel=1
pkgdesc="Financial cryptography library"
arch=('i686' 'x86_64')
depends=('msgpack' 'openssl' 'protobuf' 'zeromq' 'zlib')
makedepends=('autoconf' 'automake' 'gcc' 'git' 'gtest' 'libtool' 'make' 'pkg-config' 'swig')... | true |
f1a1ff246a30b70d758d8d043e6e8fd3dc83b4a6 | Shell | wangyue168git/Code-Extract | /run.sh | UTF-8 | 804 | 4 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# 定义默认参数
extract_filepath="/path/to/extract/file"
filetype="java"
outputFile="code.txt"
# 处理命令行参数
while getopts "hf:t:o:" opt; do
case $opt in
h)
echo "Usage: run.sh [-f extract_filepath] [-t filetype]"
echo " -f <extract_filepath> project path to extract files (default: /path/to/extra... | true |
0e40304045ddd33da1a9fb3b362199a8b9561337 | Shell | mc-suchecki/photo-critic | /.profile.d/ssh-setup.sh | UTF-8 | 1,242 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo $0: creating public and private key files
# Create the .ssh directory
mkdir -p ${HOME}/.ssh
chmod 700 ${HOME}/.ssh
# Create the public and private key files from the environment variables.
echo "${HEROKU_PUBLIC_KEY}" > ${HOME}/.ssh/heroku_id_rsa.pub
chmod 644 ${HOME}/.ssh/heroku_id_rsa.pub
# Note us... | true |
5856b47981fcfb7bbec83f985ed69609331206c2 | Shell | manasi1997/FlipaCoinRepo | /UC4.sh | UTF-8 | 883 | 3.3125 | 3 | [] | no_license | #!/bin/bash
isWin=0
isHead=0
isTail=1
headCount=0
tailCount=0
while [ $isWin -eq 0 ]
do
random=$(( RANDOM%2 ))
if [ $random -eq $isHead ]
then
((headCount++))
else
((tailCount++))
fi
if [ $headCount -eq 21 ] && [ $tailCount -eq 21 ]
... | true |
e650b406b613dd7d916c55fc27983d43d1a2814b | Shell | d-sedov/location-configurations | /data-construction/yelp-download-import/yelp-more-download/address_request_maker.sh | UTF-8 | 1,408 | 3.328125 | 3 | [] | no_license | #!/bin/bash
################################################################################
################################################################################
#
# FILE: address_request_maker.sh
#
# BY: Dmitry Sedov
#
# CREATED: Tue Jan 21 2020
#
# DESC:
#
# EXEC: CHANGE PARAMETERS api_key, n_records, o... | true |
30548630ce04026369282d7088126fdba5287107 | Shell | tamarinvs19/scripts | /photo.sh | UTF-8 | 424 | 2.609375 | 3 | [] | no_license | #!/bin/sh
cd /tmp
mencoder tv:// -tv driver=v4l2:width=640:height=480:noaudio:outfmt=uyvy:fps=3 -ss 1 -endpos 1.5 -ovc copy -o 1.avi
mplayer 1.avi -vo jpeg
rm -rf 1.avi 00000001.jpg 00000002.jpg 00000003.jpg
cd /home/slava
for num in `seq 8 -1 0`
do
[ -f $num.jpg ] && mv $num.jpg $[ $num + 1 ].jpg
[ -f $num-a.... | true |
69a4bbb08b97f574c6531f564192c8ce58e20e57 | Shell | xyy2006/Healthcare_MachineLearning_Pipeline | /Main_file/extract_moduleList_from_ModulesCatalog.r | UTF-8 | 3,267 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# Content: A function can extract the module list from Modules_Catalog.txt put under './Module_file'.
# Note:
# Author: Yang Yang
# Date:"Thu Jul 24 15:12:22 EDT 2014"
# Usage: To be loaded by main program:ModelComputation_workbench_setup.r
##################################################################... | true |
3490169bb0cb3aabf6a233151810c9efaa9615bd | Shell | dddeeemmm/vanila-kubernetes | /templates/gen_certs_worker_nodes.sh.j2 | UTF-8 | 1,189 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
INT_NAME="{{interface}}"
LB_API_IP={{lb_api_ip}}
INTERNAL_IP=$(ip addr show $INT_NAME | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)
cat > ca-config.json <<EOF
{
"signing": {
"default": {
"expiry": "87600h"
},
"profiles": {
"kubernetes": {
"usages": ["signing", "key en... | true |
19615fbddb036c2ec6eb76a0dcead52885d500ba | Shell | tsackton/ls2 | /filters/gatk_filter.sh | UTF-8 | 1,332 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#code to filter variants using GATK
module load bedtools2
module load samtools/1.2-fasrc01
module load GATK/3.4.46-fasrc02
#set up variables
REFERENCE=$1
VCF=$2
OUTPUT=$3
BAM=$4
DEPTH=$(samtools merge -u - $BAM | samtools depth - | awk '{sum+=$3} END { print sum/NR}')
MINDEPTH=$(($DEPTH / 3))
MAXDEPTH... | true |
b180138848d1d4c57c0a6cfacc34570bc72acc4c | Shell | asaschachar/dotfiles | /find/aliases.zsh | UTF-8 | 85 | 2.546875 | 3 | [
"MIT"
] | permissive | function fd() {
find . -type d -name "$1"
}
function ff() {
find . -name "$1"
}
| true |
90e2483051fe8052ab381222e8031f3889dac70f | Shell | phonex34/OpenCorePkg | /macbuild.tool | UTF-8 | 4,107 | 3.203125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
package() {
if [ ! -d "$1" ]; then
echo "Missing package directory"
exit 1
fi
local ver
ver=$(cat Include/OpenCore.h | grep OPEN_CORE_VERSION | sed 's/.*"\(.*\)".*/\1/' | grep -E '^[0-9.]+$')
if [ "$ver" = "" ]; then
echo "Invalid version $ver"
fi
selfdir=$(pwd)
pushd "$1" || ... | true |
293b157a734eeec051942b167680222497824ccb | Shell | sindongboy/topinion | /scripts/result.sh | UTF-8 | 254 | 3.234375 | 3 | [] | no_license | #!/bin/bash
for src in `find . -type f -name "*keyword"`
do
echo "${src}"
cat=`echo "${src}" | sed 's/\.keyword//g'`
cat ${src} | cut -f 2 | awk '{for(i=1;i<=NF;i++){printf("%s\n", $i);}}' | sort | uniq -c | sort -nr > ${cat}.result
done
| true |
736dcf82febbe0340e99c80f2b922870e25cb040 | Shell | libdist-rs/libchatter-rs | /scripts/aws/throughput-vs-latency/vary-f/do_exp.sh | UTF-8 | 1,008 | 3.421875 | 3 | [] | no_license | # An experiments needs the following things set up first
#
# cli_ip_file: A file for the client consisting of all the pvt ips on where to
# contact the nodes of the protocol
#
# ip_file: A file containing the pvt ips of other nodes. Used by the server to
# contact the other servers
IN_FILE=${1:-"scripts/aws/aws_ips.lo... | true |
3edb5d5335cba1d4bc7bcf29c807096c023961f1 | Shell | lankacse/Paper-Replication-2012 | /Assembly-Overlaps/Create-Final-Links.sh | UTF-8 | 335 | 2.765625 | 3 | [] | no_license | mkdir Samples
cd Samples
for i in $(cat ../SampleList.txt)
do
mkdir $i
cd $i
mkdir Reads
cd Reads
for j in $(find ../../../$i-Reads/|grep fastq)
do
ln -s $j
done
cd ..
mkdir Assemblies
cd Assemblies
ln -s ../../../$i-RayMeta.fasta RayMeta.fasta
ln -s ../../../$i-MetaVelvet.fasta MetaVelvet.fasta
cd .... | true |
c69861cc425300a480c902848397e07184b74107 | Shell | tylerwight/install_dontstarve | /install_dontstarve.sh | UTF-8 | 1,548 | 3.859375 | 4 | [] | no_license | #!/bin/sh
#Install Don't Starve Together dedicated server
#Tyler Wight
#Change these two variables to install any game. The name will be used for the folder structure and the user that is created.
#=====================
gamename=starve
gamesteamcode=343050
#=====================
cronjob="*/30 * * * * /mnt/${gamename}/... | true |
8e70917cfb10988989956d6343ffd3163c9c54e8 | Shell | harrybournis/dotfiles | /macos/new-mac-setup.sh | UTF-8 | 1,899 | 3.703125 | 4 | [
"MIT"
] | permissive | ###
### THIS THING IS UNTESTED
##
# Copied from:
# https://github.com/cowboy/dotfiles/blob/master/init/20_osx_homebrew.sh
# https://github.com/paulirish/dotfiles/blob/master/setup-a-new-machine.sh
# Exit if it is not a mac
if [[ ! "$OSTYPE" =~ ^darwin ]] ; then
exit
fi
### XCode Command Line Tools
# thx htt... | true |
eb744b47f8597f9adf0341f5f8a4f51c0a8f9016 | Shell | VJatla/mmaction2-forked-Mar30-docker | /tools/data/video_data/box_blur_videos.sh | UTF-8 | 402 | 3.671875 | 4 | [] | no_license | #!/bin/bash
#
# DESCRIPTION:
# Goes through a drectory recursively and blurrs videos using box blur
for fullfile in */*.avi
do
filename=$(basename -- "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"
dirloc=$(dirname "${fullfile}")
CMD="ffmpeg -i ${fullfile} -c:v libx264 -c... | true |
55add02025b8bae6646698d8c0c49adaef36805c | Shell | shahed3184/Audio-Album-Shell-Script | /albumScripts/Mixed_Albums-Icche_Korei_Ek_Shathe.sh | UTF-8 | 1,876 | 2.90625 | 3 | [] | no_license | # ------------- SCRIPT ------------- #
#!/bin/bash
scriptDirectory="${0##*/}"
# Remove .sh from file name
#fileDirectory=${scriptDirectory:: - 3}
#fileDirectory${scriptDirectory::${#scriptDirectory}-3}
fileDirectory=${scriptDirectory%???}
cd ..
mkdir files
cd files
IFS='-' read -ra array <<< "$fileDirectory"
for... | true |
ea2c9e09c25b061e53fa3bdc7b6965830f277a83 | Shell | BD4VZK/lekhachem.github.io | /archive/old/probe/update.sh | UTF-8 | 834 | 2.515625 | 3 | [] | no_license | cat /etc/issue|sed -n '1p' > index.txt;
uname -a|cut -d ' ' -f 2|sed s/^/HostName:' '/ >> index.txt;
uname -a|cut -d ' ' -f 3|sed s/^/Kernel:' '/ >> index.txt;
dmidecode -t system|awk -f /root/shells/servername.awk >> index.txt;
echo -e '\n-------- CPU: -------' >> index.... | true |
d99597b3f21e84f1e21774c1e68a5aae61a7ca4e | Shell | mveritym/kubedecode | /bin/kubedecode | UTF-8 | 906 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function usage(){
echo -e "usage: ${0} SECRET [NAMESPACE]\n"
echo -e "SECRET The secret to decode"
echo -e "NAMESPACE The namespace to retrieve the secret from (optional,"
echo -e " defaults to the namespace of the current context or KUBENS)."
}
if [ "${1}" == "-h" ]; then
... | true |
bd90d21c7933098ebfd2a591073007b49b818409 | Shell | Etimo/biketracker | /deploy.sh | UTF-8 | 1,039 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
export TILLER_NAMESPACE=biketracker
export KUBECONFIG=deploy/kubeconfig
docker_tag=registry.kubernetes.etimo.se/biketracker-server:$(git rev-parse HEAD)
export HELM_TLS_ENABLE=true
export HELM_TLS_VERIFY=true
export HELM_TLS_CA_CERT=deploy/tiller-keys/ca.crt
export HELM_TLS_CERT... | true |
404c3b74fc7f3c3714a9deea4664392d7f932e53 | Shell | analogrelay/ConferencePlanner | /build.sh | UTF-8 | 918 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
REPOROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
[ ! -z "$BUILDCONFIGURATION" ] || BUILDCONFIGURATION="Debug"
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
source "$REPOROOT/scripts/_common.sh"
cd "$REPOROOT"
echo "Running $BUILDCONFIGURATION Build..."
echo "Verifying dotnet CLI versi... | true |
8bc575159329911a318327875f2b5b29247d9135 | Shell | susynt/susynt-write | /bash/setup_release.sh | UTF-8 | 541 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#
# Execute it with: source setup_release.sh
#
echo "Setup up ATLAS soft"
export ATLAS_LOCAL_ROOT_BASE="/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase"
source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh
release="Base,2.4.24"
setupATLAS
lsetup "rcsetup -u"
echo ""
echo "Setting up Analysis ${release} ... | true |
0f7d763e82676876b2f78f9fee67d399c318114d | Shell | cablelabs/rdk-raspberrypi-sysint | /devspec/lib/rdk/core_shell.sh | UTF-8 | 3,028 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2018 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may ... | true |
dceaffd6fd00b31f28054c14d01970b3559ec940 | Shell | SilverFire/dotfiles | /bin/ydl | UTF-8 | 167 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
file="$HOME/bin/youtube-dl"
if [ ! -e "$file" ]; then
wget https://yt-dl.org/downloads/latest/youtube-dl -O $file
chmod a+rx $file
fi
$file -t $@
| true |
5413f618100d829980e170cd8c0cd5d97e668777 | Shell | rummsi/ministra | /mag322/rootfs/usr/local/share/app/bin/set_second_boot.sh | UTF-8 | 3,158 | 3.40625 | 3 | [] | no_license | #!/bin/sh
source /etc/init.d/shell-utils.sh
upload_sboot=/ram/SbootIm
head_sboot=/ram/SbootHead
one_sboot=/ram/one_sboot.img
cmp_sboot=/ram/cmp_sboot.img
get_name_and_len_part "ssbl2" max name_part
if [ "$1" != "" ]; then
upload_sboot=$1
fi
if [ ! -e $upload_sboot ]; then
echo "ERROR: File $upload_sboot no... | true |
3fa3441f9c4360cc0509f234a290417a263c1406 | Shell | sib-swiss/SchoolRNA2020 | /long_read/run_flair.sh | UTF-8 | 2,283 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# mkdir ~/flair_output
# mkdir ~/logs
## minimap2 runs in about 90 mins
## probably less time with 6 cpu
minimap2 \
-ax splice \
-G 500k \
/data/lrrnaseq/references/Homo_sapiens.GRCh38.dna.chromosome.12.fa \
/data/lrrnaseq/reads/batch_combined/*.fastq.gz \
2> ~/logs/minimap2.log \
| samtools sort \
| sam... | true |
6f8673ce6591662884a71e6854d9cd626491773f | Shell | herzog0/pdbinit | /pdbinit | UTF-8 | 6,775 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Author: Teodoro Bertolozzi Mendes
# Contact: teobmendes@gmail.com
# This script's intent is help users to create a postgres environment for development
# In development!
POSTGRES_VERSION="12.0"
POSTGRES_URL="https://ftp.postgresql.org/pub/source/v$POSTGRES_VERSION/postgresql-$POSTGRES_VERSION.... | true |
4dfacf01ae052aac3d3917bf2177f4d179043b31 | Shell | jesselumarie/dotfiles | /.zshrc | UTF-8 | 4,457 | 2.96875 | 3 | [] | no_license | # set up ruby
# export PATH="$HOME/.rbenv/bin:$PATH"
# export PATH="$HOME/.rbenv/shims:$PATH"
eval "$(rbenv init - zsh)"
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
export PATH=/opt/homebrew/bin/:$PATH
export RACK_ENV=development
# Add thrift
export PATH="/usr/local/opt/thrift@0.9/bin:$PATH"
# set up p... | true |
414a019a0573495bf5f7b8e4a5ac607476b9eebd | Shell | dgunda1/shrine-extras | /runshrine | UTF-8 | 359 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# This is used to start/stop shrine from init
# Set all required environement variable first
HOME=/opt/shrine
source ~/shrine.rc
# run start|stop as requested
ACTION=$1
case $ACTION in
start) ${SHRINE_TOMCAT_HOME}/bin/startup.sh;;
stop) ${SHRINE_TOMCAT_HOME}/bin/shutdown.sh;;
... | true |
2b184fc8605d89e77da22582848239e0f577d587 | Shell | HelloKitty/TestTravisWithUnity | /Install.sh | UTF-8 | 1,165 | 3.6875 | 4 | [] | no_license | #! /bin/sh
# Based on https://github.com/vergenzt/ci-build/blob/unity-5.3/Scripts/install.sh which updates support for 5.3 component based installer.
# Corrected for Unity's decision to change to download instead of netstorage
BASE_URL=http://download.unity3d.com/download_unity
HASH=cc9cbbcc37b4
VERSION=5.3.1f1
down... | true |
1c10c32678199f8467ad9b56bd4491a7872ecabd | Shell | sho-87/dotfiles | /setup_scripts/linux/run_setup.sh | UTF-8 | 3,305 | 3.28125 | 3 | [] | no_license | #!/bin/bash
source $(dirname "$0")/helpers.sh
# Update OS
PS3="Select your distribution: "
select distro in Ubuntu Kubuntu "KDE Neon" pop_os Quit;
do
case $distro in
Ubuntu)
update_distro
sudo apt-get install ubuntu-restricted-extras && success "Ubuntu restricted extras installed"
break;;
K... | true |
411ed6ee9aaa8e237d0a91971bcd91300beac3da | Shell | rshariffdeen/CPR | /experiments/manybugs/gzip/118a107f2d/setup.sh | UTF-8 | 1,273 | 2.578125 | 3 | [
"MIT"
] | permissive | project_name=gzip
bug_id=118a107f2d
dir_name=$1/manybugs/$project_name/$bug_id
download_url=https://repairbenchmarks.cs.umass.edu/ManyBugs/scenarios/gzip-bug-2009-10-09-1a085b1446-118a107f2d.tar.gz
current_dir=$PWD
wget $download_url
mkdir -p $dir_name
cd $dir_name
cp $current_dir/gzip-bug-2009-10-09-1a085b1446-118a107... | true |
b174db8d41d307f077beccd81a0c6fc3d5a5920d | Shell | zenuo/zenuo.github.io | /bin/rand_image.sh | UTF-8 | 884 | 4.1875 | 4 | [] | no_license | #!/usr/bin/env bash
cd `dirname $0`
# 目标路径
image_path='/img/'
# 移动指定的图片到文件夹,并重命名为随机字符串
# 检查参数
if [[ "$#" -ne 1 ]]; then
echo "usage: "$0" <image_file_path>"
exit 1
fi
# 切换到本脚本所在的文件夹
cd `dirname "$0"`
# 文件名
filename=`basename -- "$1"`
# 拓展名
extension=${filename##*.}
# 随机字符串
rand=`openssl rand -hex 12`
# 将参数... | true |
5e73209689b00a42e7c12ae026b1e3d457ce0a40 | Shell | jpotts18/node-ci | /scripts/verify.sh | UTF-8 | 385 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# Test
npm test
# Lint
node_modules/.bin/eslint .
# Check for debug code
# FILES_PATTERN='\.(js)(\..+)?$'
# FORBIDDEN='console.log'
# git diff --cached --name-only | \
# grep -E $FILES_PATTERN | \
# GREP_COLOR='4;5;37;41' xargs grep --color --with-filename -n $FORBIDDEN && echo 'COMMIT REJECTED F... | true |
411c4288fe88ebe178d2acf9321ff6be24596054 | Shell | wonkodv/bashconfig | /bashrc.d/40-command-not-found-hook.bash | UTF-8 | 661 | 3.5625 | 4 | [] | no_license | command_not_found_handle () {
local cmd=$1
printf "bash: $(gettext bash "%s: command not found")\n" "$cmd" >&2
echo "Try givemethat to get it" >&2
echo "$cmd" > ~/tmp/.missing-packages
return 127
}
givemethat(){
local pkgs
local cmd=`cat ~/tmp/.missing-packages`
echo "packages that cont... | true |
2d55b253fb0cee7c97eb0fea899027b202ff9224 | Shell | shuoyangd/tarsius | /scripts/data-prep/prepare_conll/prepare_all_conll.sh | UTF-8 | 884 | 3.0625 | 3 | [
"MIT"
] | permissive | #! /bin/sh
#
# prepare_all_conll.sh
# Copyright (C) 2019 Shuoyang Ding <shuoyangd@gmail.com>
#
# Distributed under terms of the MIT license.
#
MAX_PREFX_LEN=$1
OUT_DIR=$2
RIGIDITY="strict"
# for file in `ls /home/shuoyangd/projects/salience_benchmark/conll-2012/v4/data/train/data/english/annotations/*/*/*/*_auto_conll... | true |
695d0acb10bf4d252de91c46bed4781bb329a5dd | Shell | lefthairynut/script | /dut | UTF-8 | 1,734 | 4.28125 | 4 | [] | no_license | #!/bin/bash
# realpath and basename don't check if the input exists or not. It has to be manually checked.
if test ! -e $1; then
echo "$1 doesn't exist."
exit 1
fi
rpath=$(realpath $1)
# Removing $HOME section from the beginning of $rpath
rpath_edited=$(echo $rpath | sed "s|$HOME/||")
#echo "rpath_edited: $... | true |
201a487bb951f65b966edc51040135a72c2ef753 | Shell | patrickyoung/certsplain | /check_cert.sh | UTF-8 | 1,171 | 4.25 | 4 | [] | no_license | # Report SSL Certificate Expiration info
set -e
DATE_FORMAT="%d/%b/%Y:%H:%M:%S %z"
HOST="${1}"
PORT=${2:-443}
IP="${HOST}"
function ssl_expire_date() {
expire_date="$(openssl s_client -servername "${1}" -connect "${1}":"${2}" 2>&- | openssl x509 -enddate -noout 2>/dev/null | sed 's/^notAfter=//g')"
if [ -z "${ex... | true |
737b4dfe2f9d37b2f5d69deac070546f7f51c30d | Shell | petrikoz/dotfiles | /i3wm/i3/i3blocks/scripts/memory | UTF-8 | 2,927 | 3.703125 | 4 | [] | no_license | #!/bin/sh
#
# Show free memory in Solarized Dark colorscheme
#
# If you not see $label below use other font :)
################################################################
# Click
################################################################
[ -n "$BLOCK_BUTTON" ] && pkill -f conky
# Left click
if [ "$BLOCK_BU... | true |
2ad73ef99afe2f04a7bbfb2eccc5a15f549ccfd4 | Shell | zlyoha/notes | /bash/postinstall.sh | UTF-8 | 741 | 2.796875 | 3 | [] | no_license | #!/bin/bash
# превичная настройка ОС
# history
cat >> ~/.bashrc << 'EOF'
#add datetime to commands
export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S '
#add more commands to history
export HISTFILESIZE=100000
export HISTSIZE=100000
# Avoid duplicates
HISTCONTROL=ignoredups:erasedups
# When the shell exits, append to the history... | true |
1649ed413dbbf612d545fbc383df8094251a5dee | Shell | RMontas/codec-objective-evaluation | /gen_stats_hop_unified.sh | UTF-8 | 6,969 | 3 | 3 | [] | no_license | #!/bin/bash
# Title: gen_stats.sh
# Inputs: main_dir_name SEQ
declare -a std=("LAURA" "SEAGULL" "PT0" "PT150" "DS" "DC")
declare -a std_rect=("LAURA_RECT" "SEAGULL_RECT" "PT0_RECT" "PT150_RECT" "DS_RECT" "DC_RECT")
declare -a epfl=("")
declare -a fast=("PT150_FAST")
if [ $2 == "STD" ]
then
for i in "${std[@]}"
do
... | true |
00cdb50c8e40c0d2e8781d7d6226d2ebbc6c1306 | Shell | TechToSpeech/planetarium | /query.sh | UTF-8 | 1,245 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set +x
exit_on_error() {
exit_code=$1
last_command=${@:2}
if [ $exit_code -ne 0 ]; then
>&2 echo "\"${last_command}\" command failed with exit code ${exit_code}."
exit $exit_code
fi
}
if [ -z "$1" ]; then
echo "You must specify a target respository to stargaze."
exit... | true |
0dc8c7fc5e0d0bec18264138ecd5228656051f22 | Shell | spathak99/PDF_Encrypt | /script.sh | UTF-8 | 605 | 3.921875 | 4 | [] | no_license | #!/bin/bash
#Extract keys from csv and format properly
ARRAY=()
while IFS=',' read -r last first || [ -n "$last" ]
do
str="$last $first"
ARRAY+=(${str:8:32})
done < keys/encryption-keys.csv
#For each PDF file in the directory, append keys to a textfile for openssl
#to use and then run encryption command fo... | true |
3fb9f53a2c32e7cd30560a62812525fbd869afc4 | Shell | es-ude/EmbeddedUtilities | /buildAll.sh | UTF-8 | 260 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function build_and_zip {
bazel build :pkg --config=$2
if [ ! -z "$OUTPUT_DIR" ]; then
mkdir -p "$OUTPUT_DIR"/"$1"/
cp -f bazel-bin/pkg.tar.gz "$OUTPUT_DIR"/"$1"/"$1".tar.gz
fi
}
build_and_zip $1
# build_and_zip $1 avr
| true |
5713b486fc326b330128ff46928d2d121b7d582d | Shell | bitcraze/bitcraze-website | /tools/build/download_hardware_docs | UTF-8 | 1,259 | 4.125 | 4 | [
"CC-BY-3.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
set -e
scriptDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
dstDir="${scriptDir}/../../src/documentation/hardware"
tmp="${scriptDir}/../../tmp"
downloadFile="${tmp}/download.zip"
function downloadOneAtifact() {
local uri=$1
local unzipName=$2
mkdir -p ${unzipName}
echo "Downloadi... | true |
c524ffe60a8cebc167b04716d946a2d71c6cc4a8 | Shell | RaveMaker/Secure-Wordpress | /secure-wp.sh | UTF-8 | 904 | 4 | 4 | [] | no_license | #! /bin/bash
# This script secure all wordpress folders and files permissions
# This is the folder where all your WordPress installations are:
www="/www"
# Loop all folder inside $www and try to locate WordPress installs.
for d in "$www"/*/; do
# remove trail / from $d (/www/website instead of /www/website/)
d=$... | true |
dcb0a2999452bb62343ae415333d6ae32717ebfa | Shell | gilmararaujo/ClusterCassandraDSE | /opsc_script.sh | UTF-8 | 747 | 3.125 | 3 | [] | no_license | #!/bin/bash
#set timezone
echo "Set timezone......."
cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
sleep 3
timedatectl | grep Timezone
# configure repositories
add-apt-repository ppa:webupd8team/java
curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
echo "deb http://login:passwd@debi... | true |
6e6f822954d43a22e92b87545e6af51d8594db94 | Shell | rofl0r/irix-3.x-src | /man/olympusman0/iugptx | UTF-8 | 2,131 | 4 | 4 | [] | no_license | #! /bin/sh
# uigptx - make permuted index for IRIS User's Guide reference manual.
# Modelled after /usr/man/tocrc. It also makes a table of
# contents.
#
# Usage: uigptx all - create ptx and toc files
# uigptx tr - create troff output (using xroff)
#
# The script getNAME extracts the information from which the ... | true |
a9842e7c69de669355a9905e80da48c0a4c37775 | Shell | wws2003/webapp2 | /setup/DB/postgres/02_setupDataSources.sh | UTF-8 | 1,067 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# Set environment variables
echo "1. Setting environment variables"
source 00_setEnv.sh
# Export path
export PATH=$PATH:$usr_glassfish_bin_path
# Copy driver to glassfish domain lib folder to work later
cp lib/$PSQL_DRIVER_JAR_NAME $usr_glassfish_domain_lib_path
# Create new JDBC connection pool
echo "3... | true |
78e7fb57dc922ea43dcffa307d294bd1a8c4e1e1 | Shell | gonzalo-bulnes/dotfiles | /scripts/node | UTF-8 | 180 | 2.625 | 3 | [] | no_license | #!/bin/sh
#
# Run node in a container
#
set -e
VERSION="7.10-alpine"
IMAGE="node:$VERSION"
exec docker run --rm -e NPM_AUTH_TOKEN -w "$(pwd)" -v $(pwd):$(pwd) $IMAGE node "$@"
| true |
43d901e2d722b83e4d8a2e331106353380b9d348 | Shell | parallelworks/welding | /utils/compileCcx.sh | UTF-8 | 189 | 2.8125 | 3 | [] | no_license | #!/bin/bash -e
CcxFolderName=$1
BCFuncName=$2
extractDir=$3
tar -zxf ${CcxFolderName}.tar.gz -C $extractDir
cp $BCFuncName ${CcxFolderName}/src/
cd ${CcxFolderName}/src/
make
| true |
f71b86f7def53d020db7eb8cf8048b69d0007204 | Shell | GrowSense/Index | /docker.sh | UTF-8 | 179 | 2.84375 | 3 | [] | no_license | MOCK_FLAG_FILE="is-mock-docker.txt"
if [ ! -f "$MOCK_FLAG_FILE" ]; then
docker $1 $2 $3 $4 $5 $6 $7 $8 $9 $10
else
echo "[mock] docker $1 $2 $3 $4 $5 $6 $7 $8 $9 $10"
fi
| true |
d2cd6e9c2c24046a99249d32515dc3716351f5ea | Shell | tungsheng/server-script | /init.sh | UTF-8 | 2,985 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
export log_file=$HOME/install_progress_log.txt
export repo=$HOME/server-script
println() {
echo -ne "\n\n$1"
echo -ne "\n===========================================\n"
}
println "Disable root password..."
sudo passwd -l root
println "Add user..."
sudo adduser deploy
println "Add user to ... | true |
8127a93b0eab85ab827c4f32a2cd008c88ba7ffb | Shell | Elphel/x3domlet | /docker/run.sh | UTF-8 | 549 | 3 | 3 | [] | no_license | #!/bin/bash
# start the container in the background
CONTAINER=$(docker run -i \
-d \
-v $(pwd)/models:/home/elphel/x3domlet/models \
-v $(pwd)/kml:/home/elphel/x3domlet/kml \
-p 8080:8080 \
-p 35729:35729 \
x3domlet \
gulp connect) || exit
echo $CONTAINER
# temporize
sleep 5
# open in browser
xdg-open http:/... | true |
5cf7830bbe4ad02519e4249967aebc803e10bd44 | Shell | ltaulell/HPC_toolset | /schedulers/get_slurm_cpu.sh | UTF-8 | 1,642 | 2.828125 | 3 | [
"CECILL-B",
"LicenseRef-scancode-cecill-b-en",
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# PSMN: $Id: get_slurm_cpu.sh 3696 2022-07-05 12:59:50Z ltaulell $
#
# RUNNING=$(squeue -h -o "%t %C" | awk 'BEGIN {somme=0} /R/ {somme+=$2} END {print somme}')
RUNNING=$(squeue -h -o "%t %C" | awk 'BEGIN {somme=0} /R/ {somme+=($2/2)} END {print somme}')
PENDING=$(squeue -h -o "%t %C" | awk 'BEGIN {somme... | true |
c4a2d0c37dcb9a02f283927674f597325ede70d7 | Shell | djdunc/volumio2slack | /spotify2slack.sh | UTF-8 | 1,109 | 3.328125 | 3 | [] | no_license |
#!/bin/bash
# run script on MAC OSX that is running the spotify client
GLOBIGNORE=*
APIKEY="ADD IN YOUR SLACK USER OAUTH TOKEN HERE"
trap onexit INT
function reset() {
echo 'Resetting status'
curl -s -d "payload=$json" "https://slack.com/api/users.profile.set?token="$APIKEY"&profile=%7B%22status_text%22%3A%... | true |
3ba02a48fc355c2535595881003e2bcf0043637b | Shell | bizplay/kiosk-os-chroot | /var/lib/dpkg/info/unclutter.config | UTF-8 | 275 | 2.71875 | 3 | [] | no_license | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ -e /etc/default/unclutter ]
then
. /etc/default/unclutter
if [ -n "${START_UNCLUTTER}" ]
then
db_set unclutter/autostart ${START_UNCLUTTER}
fi
fi
db_input low unclutter/autostart || true
db_go || true
db_stop
| true |
e73c9f39f3be2b6215e589784d18d40f7662162e | Shell | rzumer/daala | /tools/collect_mvf_ec.sh | UTF-8 | 336 | 2.890625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -e
VIDEOS=($*)
RATES=("1 3 5 7 11 16 25 37 55 81 122 181 270")
VNAMES=()
for vid in ${VIDEOS[@]}; do
vname=$(basename ${vid})
vname=${vname/%_*/}
VNAMES+=(${vname})
done
parallel -j4 'export OD_EC_ACCT_SUFFIX={1/.}-{2} ; examples/encoder_example -v {2} {1} -o /dev/null' ::: ${VIDEOS[@]} ... | true |
c3e17f8e0a36fd774fffc224af99277fe5c7520e | Shell | syyyr/home-repo | /.config/bashrc/completerc.bash | UTF-8 | 2,123 | 3.25 | 3 | [] | no_license | #!/bin/bash
__impl_path_compl() {
command find -not -name '\.*' -type f | sed s@\./@@
}
_setup_path_compl() {
eval "_$1_complete() {
pushd '$2' > /dev/null
FZF_DEFAULT_OPTS='-1' FZF_COMPLETION_TRIGGER='' __fzf_generic_path_completion __impl_path_compl '-m' ''
popd > /dev/null
}"
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.