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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ee0b67c3a1e03c24a3187148db0b722e9ced179b | Shell | yfyau/flutter_utils | /certificates/openssl_cer_to_pem.command | UTF-8 | 217 | 3.28125 | 3 | [] | no_license | #!/bin/sh
CURR_PATH="`dirname \"$0\"`"
cd $CURR_PATH
echo "Script Path - $CURR_PATH"
for cer in *.cer;
do
echo "Convert file - $cer";
echo $(openssl x509 -inform der -in "${cer}" -out "${cer%.*}".pem)
done | true |
a56efdb20c0ed6267a38165977d97d004cd85306 | Shell | nadlabak/android_device_motorola_umts_sholes | /prebuilt/bin/init_prep_keypad.sh | UTF-8 | 880 | 2.65625 | 3 | [] | no_license | #!/system/bin/sh
export PATH=/system/bin:/system/xbin:$PATH
mount -o remount,rw /system
ln -s /system/usr/keychars/qwerty.kcm.bin /system/usr/keychars/qtouch-touchscreen.kcm.bin
ln -s /system/usr/keychars/qwerty.kcm.bin /system/usr/keychars/cpcap-key.kcm.bin
ln -s /system/usr/keylayout/qwerty.kl /system/usr/keylayout/q... | true |
59e647d01371098186fbd4d2f69aa0589449bea5 | Shell | lovepocky/dotfiles | /.zshrc | UTF-8 | 843 | 2.640625 | 3 | [] | no_license | ################################################### * envs
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
export NODE_BUILD_MIRROR_URL="https://npm.taobao.org/dist"
################################################### * inits
eval "$(nodenv init -)"
eval "$(pyenv init -)"
[ -f "~... | true |
4b0513740a918b0e65c90ac567592828b943c722 | Shell | epiclongstone/server-setup | /serversetup.sh | UTF-8 | 2,744 | 3.859375 | 4 | [] | no_license | #!/bin/bash
set -e
FULLLOG=/tmp/serversetup.log
echo "Full logfile: /tmp/serversetup.log"
echo " - Installing required components" | tee -a ${FULLLOG}
sudo apt-get update >> ${FULLLOG}
sudo apt-get -y install \
software-properties-common \
wget \
git >> ${FULLLOG}
if ... | true |
4ba4f4d05e2c968464bec725affd2af138b36b38 | Shell | rafritts/bunit | /bunit_unit_tests/UnitTestsWithIntentionalFailures.ut | UTF-8 | 3,583 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# shellcheck disable=SC1091
source ../bunit.shl
testSetup () {
touch testFile
}
testAssertEqualsWithStrings () {
assertEquals "something" "something"
}
testAssertEqualsWithIntegers () {
assertEquals 10 10
}
testAssertEqualsWithIntegers2 () {
assertEquals 5 $((10 - 5))
}
testAssertEq... | true |
34e5aa128306b32eb53114dde2365f5b36e541a2 | Shell | JohnMahowald/timer | /_timer_backup.sh | UTF-8 | 729 | 3.78125 | 4 | [] | no_license | #! /bin/bash
TIMER_SRC_DIR="/Users/johnmahowald/Desktop/day/07.31.2018/timer"
NUMBER_DIR="$TIMER_SRC_DIR/numbers"
while true; do
now=$(date +"%H:%M:%S:%p")
output_display=""
for idx in $(seq 7); do # there are 7 lines in each font file
# output_line=$(($idx - 1))
output_line=$idx
for l in $(seq $... | true |
2fc6e7fbf2c861885d6c38bf0594095a40218226 | Shell | ravibjj/NetworkSecurityExamples | /client.py | UTF-8 | 325 | 2.578125 | 3 | [] | no_license | #!/bin/bash
# ****** Ravi Nori
# ****** 12/11/2020
# ****** Purpose: create a client socket
import socket
import time
# connect to the listener
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("127.0.0.1", 1424))
time.sleep(30)
# test host/port
print("you are connecting to {}:{}".format(host, port))
s.... | true |
97e62e5de4c04c74df1080bd529ddef46c73c1ce | Shell | mcievents/docker-weblogic | /run-weblogic.sh | UTF-8 | 2,181 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
WL_HOME=/opt/weblogic/wlserver
# See if WebLogic domain already exists.
if [ ! -d "/srv/weblogic/$WEBLOGIC_DOMAIN/config" ]; then
# It does not. Create it.
# Find or generate domain admin password.
if [ -z "$WEBLOGIC_PWD" ]; then
if [ -f /run/secrets/weblogic_admin_password ]; ... | true |
da3d31f2dc98bf9bd4f8b3a998d8656a3584c2d5 | Shell | hoglet67/BeebFpga | /release.sh | UTF-8 | 501 | 3.265625 | 3 | [] | no_license | #!/bin/bash
mkdir -p releases
name=beebfpga_$(date +"%Y%m%d_%H%M")
release=releases/${name}
echo "WARNING: Altera and Xilinx projects need manual compilation before release"
pushd roms
./make_duo_bitstream.sh
popd
mkdir -p ${release}/de1
cp -a altera/output_files/bbc_micro_de1.[ps]of ${release}/de1
cp -a roms/tmp... | true |
ccdf0c6e187f85eb489edc80c3a86f8e62cd3b2f | Shell | Braedencraig/create-react-app-blueprint | /install.sh | UTF-8 | 2,404 | 3.765625 | 4 | [] | no_license | #!/bin/bash
ERROR="🛑"
RED='\e[31m'
NC='\e[0m' # No Color
function command_exists {
command -v "$1" &> /dev/null
}
if [ -z "$LC_ALL" ]; then
if command_exists apt-get; then
sudo apt-get install locales
fi
printf "\r${2-$ERROR} ${RED}ERROR Locales are not found.${NC}
🐧 Linux OS:
You must to include... | true |
2f3ac9252d904a1554628d153a305eeaf3aac6e4 | Shell | fabioespinosa/CMSKubernetes | /docker/sqoop/scripts/phedex-file-catalog.sh | UTF-8 | 2,507 | 3.21875 | 3 | [] | no_license | #!/bin/bash
. $(dirname $0)/sqoop_utils.sh
setJava
BASE_PATH="/project/awg/cms/phedex/catalog/csv"
#BASE_PATH="cms-catalog"
JDBC_URL=$(sed '1q;d' cmsr_cstring)
USERNAME=$(sed '2q;d' cmsr_cstring)
PASSWORD=$(sed '3q;d' cmsr_cstring)
me=`basename $0`_$$
if [ -n "$1" ]
then
START_DATE=$1
else
START_DATE=`date +'%F' -d... | true |
8d24e476f11b834a3e275070d4e8dd54e2db6fd1 | Shell | yzrobot/ENRICHME_Releases | /ais/openhab/scripts/mongodb_status.sh | UTF-8 | 295 | 3.140625 | 3 | [] | no_license | #!/bin/bash
standard_mongo_file="/var/lib/mongodb/mongod.lock"
uol_mongo_file="/home/mongodb/database/mongod.lock"
if [ -f $uol_mongo_file ];
then
#File FILE exists
echo "ON"
else
if [ -f $standard_mongo_file ];
then
#File FILE exists
echo "ON"
else
echo "OFF"
fi
fi
| true |
5e94edfa5703dade80e7ab33a0f48ce0a9da1fec | Shell | memphis-iis/iis-sign | /test.sh | UTF-8 | 361 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
caddy&
CADDY_PID=$!
echo "caddy is running as $CADDY_PID"
QS=""
if [ x"$1" != x ]; then
QS="?$1"
echo "Using querystring $QS"
fi
echo "Debug at http://localhost:9222"
/opt/google/chrome/chrome --kiosk --disable-session-crashed-bubble --remote-debugging-port=9222 "http://localhost:2020/sign.html$Q... | true |
d4bd5494d4dc55f21294d4db6503d26375f8a6ce | Shell | aps337/wlan-ap | /feeds/realtek/rtl83xx-poe/files/etc/init.d/poe | UTF-8 | 459 | 2.96875 | 3 | [] | no_license | #!/bin/sh /etc/rc.common
START=40
USE_PROCD=1
PROG=/bin/poe.lua
service_triggers() {
procd_add_reload_trigger poe
}
start_service() {
[ "$(uci get poe.poe.enable)" -eq 1 ] || return 0
local budget=$(uci get poe.poe.budget)
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command ${budge... | true |
94b819685ad20c4e5762be44dfbd62a0e9421286 | Shell | cloudfoundry/bosh-azure-cpi-release | /ci/tasks/run-integration.sh | UTF-8 | 3,470 | 2.9375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
: ${AZURE_ENVIRONMENT:?}
: ${AZURE_TENANT_ID:?}
: ${AZURE_SUBSCRIPTION_ID:?}
: ${AZURE_CLIENT_ID:?}
: ${AZURE_CLIENT_SECRET:?}
: ${AZURE_CERTIFICATE:?}
: ${SSH_PUBLIC_KEY:?}
: ${METADATA_FILE:=environment/metadata}
metadata=$(cat ${METADATA_FILE})
export BOSH_AZURE_ENVIRONMENT=${AZURE_EN... | true |
be984778d19c4d4f2cef0b67d8693fed315062ca | Shell | GoldsteinE/binaries | /generate.sh | UTF-8 | 548 | 2.9375 | 3 | [] | no_license | #!/bin/sh
set -ex
cd "$(basename "$(dirname "$0")")"
CONTAINER_TAG='binaries-pack'
NEOVIM_VERSION='7685fc9ecd2a1a0b6c62fe56a14de8441d9f3a58'
RIPGREP_VERSION='13.0.0'
FD_VERSION='v8.2.1'
YADM_VERSION='a4d39c75045bfca9277284ff0513eb022237a88e'
docker build -t "$CONTAINER_TAG" \
--build-arg "NEOVIM_VERSION=${NEOVIM_V... | true |
9b75db4073b159de5c25d1d9d30f33e98bbbf623 | Shell | l29ah/w3crapcli | /bitfinex.com/bfx_hist_plot | UTF-8 | 680 | 3.21875 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
[[ -f "$1" ]] || {
echo "$1 not found"
exit 1
}
t=$(mktemp)
tac "$1" |
awk -F, '
BEGIN {
OFS=",";
v["EXCHANGE"] = 0.0;
v["TRADING"] = 0.0;
v["DEPOSIT"] = 0.0;
}
{
sub(/^.* on wallet /, "", $2);
v[toupper($2)] = $4;
print $5, v["EXCHANGE"], v["TRADING"], v["DEPOSIT"]
}
' > "$t"
gp=$(m... | true |
7ea1a207934b3d56f0f0db01b61662feec1e4f07 | Shell | qiaojunfeng/texlive-fontconfig | /PKGBUILD | UTF-8 | 733 | 2.609375 | 3 | [] | no_license | # Maintainer: Junfeng Qiao <qiaojunfeng at outlook.com>
# Contributor:
# https://github.com/qiaojunfeng/texlive-fontconfig
pkgname=texlive-fontconfig
pkgdesc=""
pkgver=20190225
pkgrel=1
arch=(any)
url='https://github.com/qiaojunfeng/texlive-fontconfig'
license=(custom)
#depends=(fontconfig xorg-fonts-encodings xorg-... | true |
769c9acb4a51b5998524833b6c24d6234dd95f59 | Shell | ividic/dotfiles | /shell/bash_functions | UTF-8 | 8,573 | 3.875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# CDF
# ---------------------------
# Change working directory to the top-most Finder window location
# From: https://github.com/mathiasbynens/dotfiles/blob/master/.functions
function cdf() { # short for `cdfinder`
cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')"... | true |
40d6fbfe196680d67f47683109661aa3246b14ea | Shell | oncoapop/data_reporting | /beast_scripts/FLD-barcode_lookup.sh | UTF-8 | 919 | 3.40625 | 3 | [] | no_license | #!/bin/sh
# Script to convert lookup unknown barcodes from FLD list
# Version 1.0
# by Damian Yap, Molecular Oncology, BCCRC
# on beast.cluster.bccrc.ca
# 10 Jun 2013
# This is the path and name of the file that we want to identify the barcodes in
qpath="/home/dyap/Projects/MiSeq_Data/MiSeq_QC"
query=$qpath/"Matched_B... | true |
0f3581a1d189984d634f62bec9139a4174acd0ae | Shell | vsoftco/t-depth | /scripts/algo2_space_stats.sh | UTF-8 | 436 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
# $@ - List of result files produced by algo2
# Computes the average maximum number of nodes per hyper-tree level and its
# standard deviation from the list of result files produced by algo2.
current_dir="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)"
tmp_file=$(mktemp)
bash ... | true |
a501d3af3f3643cb140510d298a7038f6e32c73b | Shell | jonasabreu/rgit | /recursive-git.sh | UTF-8 | 2,336 | 3.8125 | 4 | [
"MIT"
] | permissive | #! /bin/bash
function column-err {
printf "\033[41m%-10s\033[0m" "$1"
}
function column-ok {
printf "\033[32m%-10s\033[0m" "$1"
}
function column-neutral {
printf "\033[33m%-10s\033[0m" "$1"
}
function column-heading {
printf "\e[48;5;237m%-${HEADER_SIZE}s\e[0m" "$1"
}
function proj_name() {
column-heading... | true |
274cdcb53bb0d221796c01f788952fbc0a86b95a | Shell | benbalter/dotfiles | /lib/aliases | UTF-8 | 1,325 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Alias all the things!
# Git
alias gs="git status"
alias ga="git add"
alias gad="git add ."
alias gco="git checkout"
alias gc="git commit"
alias gcm="git commit -m"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --dat... | true |
ec2241249ffb8e6b0a108cd747020e4934179be0 | Shell | sirech/shelf2-backend | /go | UTF-8 | 914 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
goal_containerize() {
docker build . -t shelf2-backend
}
goal_run() {
rails s -p 3001
}
goal_outdated() {
bundle outdated
}
goal_linter() {
bundle exec rubocop
}
goal_test-unit() {
bin/rake spec:all
}
goal_test-pact() {
bin/rake pact:verify
}
goal_test-container() {
bin/rake spec:infra
... | true |
ba4ce9f1636b7d68a897218bfa71af2303898cf8 | Shell | jonnyparris/ansible-role-deploy-with-githooks | /templates/post-receive_githook.j2 | UTF-8 | 748 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
GIT_DIR=/home/{{ ansible_user }}/deployment_listeners/{{ app_name }}_{{ item }}
WORK_TREE=/home/{{ ansible_user }}/{{ app_name }}_{{ item }}
while read oldrev newrev ref
do
if [[ $ref =~ .*/master$ ]];
then
echo "Master ref received. Deploying master branch to {{ item }}..."
mkdir... | true |
7a5cf60352f56ec02d5cc9cbc719458ff21ec7ef | Shell | Svennito/gsaslanguage | /gsas_simulate_histogram | UTF-8 | 4,348 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# echo the call so we can see what's going on
echo "$0 $1 $2 $3 $4 $5 $6"
# Check syntax
if [ "$1" = "" ]; then
echo "$0 called without instrument parameter file for histogram!"
exit 0
fi
if [ "$2" = "" ]; then
echo "$0 called without bank number for histogram, assuming bank 1."
bank=1
else
bank=$2
... | true |
1405150e7d2084255d98f6bd107bd9c03bcaaef7 | Shell | Andrea-anliz2613/INSITOME | /pipeline/ancientDNA_qc_phase_impute.sh | UTF-8 | 18,255 | 2.953125 | 3 | [] | no_license | ## must change directories towards end; not set up like other scripts
ROOT_DIR=./
INSITOME_DATA_DIR=00_data/insitomedata/
QC_DIR=${ROOT_DIR}01_QC/ancientDNA_qc/
PHASE_DIR=00_data/ancientDNA_impute/phased/
IMPUTE_DIR=00_data/ancientDNA_impute/imputeresults/
ALIGNMENTS_DIR=00_data/ancientDNA_impute/alignments/
# exec... | true |
6819c9cfccb56d7280821da0d1ec95ee1d0b71c1 | Shell | prinschristo4/UNIX-2018-CMR- | /KISHAN-LS5.sh | UTF-8 | 203 | 3.4375 | 3 | [] | no_license | count=0
echo "enter the number"
read n
for (( i=1;i<=n;i++))
do
if [ `expr $n % $i` -eq 0 ]
then
((count++))
fi
done
if [ $count -eq 2 ]
then
echo "its a prime number"
else
echo "not prime"
fi
| true |
df6819e0064a2d01271ab7c3199f49d08f9421b2 | Shell | fac21/E-commerce-app-CSCS | /scripts/db:setup | UTF-8 | 336 | 2.859375 | 3 | [] | no_license | #! /bin/bash
# stop script when an error occurs
set -e
psql -q -c "CREATE USER username SUPERUSER PASSWORD '123'"
echo "Created Postgres user 'username'"
psql -q -c "CREATE DATABASE projectcscs WITH OWNER username"
echo "Created Postgres database 'projectcscs'"
# cp -r example.env .env
# echo "Created .env containi... | true |
f8441c8bc4e39f63234afb0102fd16559ef7bd45 | Shell | skiv71/BMSLink-core | /com/bms-sql | UTF-8 | 202 | 2.875 | 3 | [] | no_license | #!/bin/bash
# args
sql=$@
# initialise
db=bmslink
user=root
pass=
# user/pass
[ -n "$db" ] && [ -n "$user" ] || exit 1
[ -n "$pass" ] && pass=-p$pass
# main
mysql -u $user $pass $db -sNe "$sql"
| true |
4a6ae9b5c048839297a46697ef636c5c8cdbe9dd | Shell | otus-devops-2019-02/v1k3ng_infra | /packer/scripts/install_mongodb.sh | UTF-8 | 418 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# install Mongo-DB
# add key
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
# add repo
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list
# update info about repo
apt update
# install package
apt i... | true |
3d2913937316db2a240374c3f93dad954556fd33 | Shell | lrakai/quickstart-linux-bastion | /scripts/backend_bootstrap.sh | UTF-8 | 14,300 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/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'
#######... | true |
5007eceb9e8bc030c62265ca099d5045d6e1eeb6 | Shell | TejaAmbati-02/talks | /frp/fig2pdf.sh | UTF-8 | 5,224 | 4.03125 | 4 | [
"CC0-1.0"
] | permissive | #!/bin/sh
###############################################################################
# #
# Converts a .fig file into an .eps file suitable for including #
# in a latex document via, say, the graphicx package. ... | true |
ca640c14d30c92d403439982fbdbc79272f50a14 | Shell | jasheppa5/SRI-Monitor | /deploy.sh | UTF-8 | 5,430 | 3.46875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
AWS_PROFILE=
AWS_REGION=
BATCH_COMPUTE_EC2_SUBNET="172.31.0.0/20"
BATCH_COMPUTE_VPC_CIDR="172.31.0.0/16"
STACK_NAME=SubResourceIntegrityMonitor
if [ "$AWS_REGION" != "" ]
then
AWS_REGION_STR="--region ${AWS_REGION}"
else
AWS_REGION_STR=""
fi
if [ "$AWS_PROFILE" != "" ]
then
AWS_PROFILE_STR="--prof... | true |
2047e4ce2239c8fd459da377fbb6e854b6cfcf2e | Shell | QuitosMM/NGINX-Demos | /zookeeper-demo/provision.sh | UTF-8 | 278 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/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
| true |
ef4c9df03d62a9ef049ac434efde3fba12a5c685 | Shell | panchohumeres/superJupyter | /bi-init.sh | UTF-8 | 1,139 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -a
. ./.env
set +a
echo "creating certs dir: "${HOST_DATA_PATH}"/certs"
mkdir ${HOST_DATA_PATH}/certs
echo "creating certbot dir"
mkdir ${CERTBOT_PATH}
echo "changing ownership of certbot dir (for docker execution)"
sudo chmod -R g+rwx ${CERTBOT_PATH}
sudo chgrp -R ${UID} ${CERTBOT_PATH}
sudo chown -R... | true |
d8a9d71dcd75b4959397f99a206a46f5d403464d | Shell | smalnha/oldscripts | /mail/printEmail.sh | UTF-8 | 221 | 3.171875 | 3 | [] | no_license | #!/bin/bash
echo "printEmail.sh called: $0 $* in directory $PWD"
if [ "" ] && which gv; then
# 2-up
a2ps -Email --medium=Letter --output=- | gv -
else
# 1-up
a2ps -Email -1 --medium=Letter --output=$HOME/email.ps
fi
| true |
063b742e4cc49158687ed8949398f31c16c5c80b | Shell | daisukei777/tf-aks-frontdoor-cluster | /cluster/cleanup.sh | UTF-8 | 833 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Destroy Shared Resources
terraform init \
-backend-config="storage_account_name=${TF_VAR_rp_prefix}tfstate" \
-backend-config="container_name=tfstate-cluster" \
-backend-config="key=terraform.tfstate" \
-reconfigure
terraform destroy -auto-approve
RET=$?
# Delete Resource Group for Remo... | true |
2b39cb9462b0006a18df73a105879cc15867599f | Shell | gtraines/robot1 | /scripts/install_arduino.sh | UTF-8 | 1,123 | 2.515625 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
echo "/*========================*/"
echo "Downloading Arduino 1.8.5"
echo "/*========================*/"
cd ~/Source
wget https://github.com/arduino/Arduino/releases/download/1.8.5/Arduino-1.8.5.tar.xz
tar --xz -xf Arduino-1.8.5.tar.xz
cd Arduino-1.8.5/build/
cp ~/Source/configure-it-oot/build... | true |
2cfffcf0e7c75a916385f69f6d64b2c0cb569402 | Shell | luckypoem/tup | /test/t7027-move-dir-out.sh | UTF-8 | 337 | 2.765625 | 3 | [] | no_license | #! /bin/sh -e
# Make sure we can move a directory outside of tup and have it be deleted.
. ./tup.sh
mkdir tuptest
cd tuptest
re_init
tup monitor
mkdir foo
cd foo
echo 'int main(void) {return 0;}' > foo.c
echo ': foreach *.c |> gcc %f -o %o |> %B' > Tupfile
cd ..
update
mv foo ..
stop_monitor
update
tup_object_no_ex... | true |
cb6466c274f6d95332fe91b6750fa51ba1802097 | Shell | bneff84/pop-os-bootstrap | /helpers/mageclean | UTF-8 | 1,163 | 3.484375 | 3 | [] | no_license | #!/bin/bash
PWD="$(pwd)"
SCRIPT=$(readlink -f "$0")
BASEDIR="$( cd "$(dirname "$SCRIPT")" ; pwd -P )"
REDIS="$(command -v redis-cli)"
if [ -f "$PWD/app/etc/local.xml" ]; then
#Magento 1
echo "Detected Magento Version 1.x"
echo "Flushing cache via magerun cache:flush"
"$BASEDIR/magerun" cache:clean
if [ -x "$... | true |
5fa215091f04c51256ab496081200fe407df6f95 | Shell | aponsero/454meta_simulator | /scripts/config.sh | UTF-8 | 964 | 2.671875 | 3 | [] | no_license | export CWD=$PWD
# where programs are
export BIN_DIR="/rsgrps/bhurwitz/hurwitzlab/bin"
# user configs
export OUT_DIR="/rsgrps/bhurwitz/alise/my_scripts/454meta_simulator/test_pipeline"
export NB_READ=100000
export PROFILE="/rsgrps/bhurwitz/alise/my_scripts/454meta_simulator/test_pipeline/test_uniq.txt"
export DB_DIR="/r... | true |
8833e9abd8e675cc84491babdd22d16694ad0949 | Shell | mwichmann/lsb-checkers | /libchk/test_libchk | UTF-8 | 765 | 3.59375 | 4 | [
"Artistic-1.0"
] | permissive | #!/bin/sh
# Regression tests for libchk
# Copyright (C) 2001 The Free Standards Group Inc.
# Chris Yeoh <cyeoh@au1.ibm.com>
# Try runing lsblibchk
printf "Running lsblibchk..."
./lsblibchk > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "lsblibchk failed to run properly"
exit 1
else
# We can't really exp... | true |
8ec25a57ac46801c489b605c9f942388785816e7 | Shell | jayp16-cuete/alprazolam | /wireguard/gce.sh | UTF-8 | 2,971 | 3.671875 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
# currently only supports Google Compute Engine
function generate_port
{
while :; do
local port=$(shuf -i 30000-60000 -n 1)
ss -lau | grep $port > /dev/null
if [[ $? == 1 ]] ; then
echo "$port"
break 2;
fi
done
}
if [ "$EUID" -ne 0 ]; then
echo "you must run this a... | true |
fffbfc1b7c03d132a6d71b7983896452641283e5 | Shell | yenalp/vagrant_demo | /scripts/app/commands/create_test_symlinks/extensions/symlinks.sh | UTF-8 | 2,088 | 3.53125 | 4 | [] | no_license | #!/usr/bin/env bash
create_test_symlinks.symlinks.init() {
create_test_symlinks.symlinks.create() {
local __test_dir="$1"
local __component="$2"
local __feature_length="${#__features[@]}"
logger.beginTask --message \
"Creating Symlinks"
logger.step --message \... | true |
88965cf38baa1fe1aea2a7db1c00da92c15b34ec | Shell | svmheroku/cj4svm | /predictions/fx_past/fx_past_png.bash | UTF-8 | 716 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# fx_past_png.bash
# I use this script to create a png file for the splash page.
# The png file shows a weekly summary of fx-DanBot performance.
# Assume that fx_past.sql (via index_spec.bash) has been run and CSV data landed here:
# /tmp/fx_sunday_l.txt
# /tmp/fx_sunday_s.txt
set -x
cd /pt/s/rl/cj/pred... | true |
44063862a34557d6eefd3aa4c78f8d5d949217c4 | Shell | SaltyGrandpa/Shell-Scripts | /ClamAV-cron/clamav.sh | UTF-8 | 1,434 | 4.21875 | 4 | [] | no_license | #!/bin/bash
#Update this variable to be your email address
email_address="youremail@domain.com"
return_code=0
# Check for root privileges
if [[ $EUID -ne 0 ]]; then
echo "Virus scan: only root can do that" 1>&2
exit 1
fi
# Display starting message
echo "Starting ClamAV automated scan..." ; echo ""
# Dump o... | true |
2fed9cfc5143a01f6e32504b3bc2f4070eb30337 | Shell | cnlubo/auto_lnmp | /function/install/Tengine.sh | UTF-8 | 8,252 | 3.15625 | 3 | [] | no_license | #!/bin/bash
# shellcheck disable=SC2164
#---------------------------------------------------------------------------
# @Author: ak47(454331202@qq.com)
# @file_name: Tengine.sh
# @Desc
#--------------------------------------------------------------------------... | true |
e15bda5cf790da88bbe635d8831ea77a273a7af5 | Shell | perng1220/script | /2.sh | UTF-8 | 3,081 | 3.140625 | 3 | [] | no_license | #!/bin/bash
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
csv_file=$1
db_name=phone
table_name=ten
while (true)
do
data=`head -n 1 $csv_file`
if [ -n "$data" ]; then
# vat_number=`echo $data | cut -d ";" -f 1`
company=`echo $data | cut -d ";" -f 1`
# person_in_charge=`echo $data | cut -d ";"... | true |
d0b5d45adb04381f5695080ab3a44146533f3546 | Shell | marcosmunis/myCV | /outros_arquivos/push_to_start.bash | UTF-8 | 1,465 | 3.125 | 3 | [] | no_license | #!/bin/bash
#
set -e
set -u
install_packs() {
echo "install_packs"
apt update
apt full-upgrade -y
apt-get install python -y
apt-get install idle-python -y
apt-get install python-pip -y
apt-get install libmysqlclient-dev -y
apt-get install python-dev ... | true |
7cb6a741a87783a8e957567b309a385925dc673d | Shell | AndrewCEmil/YCSBScripts | /achilleSetup.sh | UTF-8 | 1,297 | 2.84375 | 3 | [] | no_license | # YCSB Prep
sudo rm -rf /usr/lib/maven jdk* /usr/lib/jvm/jdk1.6.0_33
sudo yum -y update
sudo yum -y install git
wget http://mirror.cc.columbia.edu/pub/software/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
chmod 700 apache-maven*.tar.gz
tar xzf apache-maven*.tar.gz
rm -f apache-maven*.tar.gz
sudo mv... | true |
8bb9c713b70e480c405afc6d339d5a413c95a3b4 | Shell | Bnei-Baruch/archive-backend | /misc/release.sh | UTF-8 | 821 | 3.859375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage: misc/release.sh
# Build package, tag a commit, push it to origin, and then deploy the
# package on production server.
set -e
echo "Building..."
make build
version="$(./archive-backend version | awk '{print $NF}')"
[ -n "$version" ] || exit 1
echo $version
echo "Tagging commit and pushin... | true |
9c0b378292d8d42d59203a3beb7d1770809ff2a9 | Shell | xpzouying/dotfiles | /neovim_config/utils/pypi_conf/config.sh | UTF-8 | 222 | 3.421875 | 3 | [] | no_license | #/bin/bash
if [ ! -d $HOME/.pip ]; then
echo "make $HOME/.pip"
mkdir $HOME/.pip
fi
if [ ! -f $HOME/.pip/pip.conf ]; then
echo "pip.conf not exists. link it."
ln -s $(pwd)/pip.conf $HOME/.pip/pip.conf
fi
| true |
4dc6a225dc14211ebce1258d7f30aa64d63dac70 | Shell | adorn331/CompetitionPlatform | /docker/run_django.sh | UTF-8 | 1,648 | 2.828125 | 3 | [] | no_license | #!/bin/sh
echo "Waiting for database connection..."
until netcat -z -v -w30 $DB_HOST $DB_PORT
do
sleep 1
done
echo "WEB IS RUNNING"
# # Static files
# npm cache clean
# npm install .
# npm install -g less
# npm run build-css
# python manage.py collectstatic --noinput
pip install -r /app/CompetitionPlatform/requir... | true |
e8ea86ce330677c8e7bb412485c3ce7045662ebb | Shell | nemethf/lsp-adapter | /dockerfiles/bash/populate-explainshell-db.sh | UTF-8 | 1,651 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script is intended to be used during the build of the bash language
# server to initialize the explainshell database with a few thousand man pages.
# This is a pretty slow process which takes ~30 minutes.
#
# This script assumes:
#
# - The current working directory is explainshell
# - Everything tha... | true |
915277e131f25e9806b73faae9410dc4be50d7ed | Shell | mstniy/safepm | /benchmarks/crash_consistency/run-variants.sh | UTF-8 | 323 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if ! [ -d "$BENCHMARK_PM_PATH" ]
then
echo "Please set BENCHMARK_PM_PATH to a valid directory." 2>&1
exit 1
fi
mkdir -p results
docker build -t safepm-crash_consistency .
docker run -v "$BENCHMARK_PM_PATH:/mnt/crash_consistency" -v "$(pwd)/results":/results -t safepm-crash_consistency bash inner_run.... | true |
b64a36a1e968b67711be1f0ea4e475d68f96700b | Shell | vilas20-10-98/codeinclub | /empWAGE.sh | UTF-8 | 161 | 2.8125 | 3 | [] | no_license | #!/bin/bash -x
isPrasent=1;
randomcheck=$((RANDOM%2));
if [ $isPrasent -eq $randomcheck ];
then
emprateperhr=20;
emphrs=8;
salary=$(($emprateperhr*emphrs));
fi
| true |
d7a182fa5cd189f67d5c3aa24862a0cf2454f838 | Shell | scriptzteam/SCENE-SCRiPTS | /Others/Other/glftpd_scripts/turranius/trialgroup.cron_0-2.sh | UTF-8 | 4,012 | 3.875 | 4 | [
"WTFPL"
] | permissive | #!/bin/bash
############################################################################
# Group Trial Cron Script 0.2 by Turranius #
# This script will check how much users in a group uploaded this week and #
# add it togheter. # ... | true |
07195173d1759f6880107bea12201bcc2b1d853f | Shell | tectronics/portaboom | /lack/portaboom/scripts/make_release_files.sh | UTF-8 | 2,990 | 3.859375 | 4 | [] | no_license | #!/bin/sh
# script to create the release files for XXXX release;
# script will be run from the top level project directory
# program locations
CAT=$(which cat)
SED=$(which sed)
GIT=$(which git)
PERL_GTK2_SRC="/tmp/perl-Gtk2"
if [ -z $FILELIST ]; then
echo "ERROR: FILELIST variable empty!"
exit 1
fi # if [ -... | true |
e89491d3c3150f7e3cfbff193636fdc00ad85f0b | Shell | BrandonBielicki/dotconfigs | /scripts/package_installs.sh | UTF-8 | 3,893 | 4.09375 | 4 | [] | no_license | #! /bin/sh
SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LOGFILE=$SRCDIR/../logs/log
PACKAGESLOG=$SRCDIR/../logs/packages
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> $LOGFILE
echo " Entered $0" >> $LOGFILE
USER=$1
HOMEDIR="$(eval echo ~$USER)"
echo " Running as user $USER" >... | true |
a6b3722bdad7e173df5813e55489930c0f814e19 | Shell | ericaenjoy3/bioconda-recipes | /recipes/biobambam/build.sh | UTF-8 | 316 | 2.59375 | 3 | [] | no_license | #!/bin/bash
set -eu
mkdir -p $PREFIX/bin
export CPP_INCLUDE_PATH=${PREFIX}/include
export CPLUS_INCLUDE_PATH=${PREFIX}/include
export CXX_INCLUDE_PATH=${PREFIX}/include
export LD_LIBRARY_PATH=${PREFIX}/lib
export LIBRARY_PATH=${PREFIX}/lib
./configure --with-libmaus2=${PREFIX}/lib --prefix=${PREFIX}
make install
| true |
32357d311857fe670b67f5f849de06b07f0f7264 | Shell | gcfavorites/umonkey-tools | /misc/sayhours/debian/usr/bin/sayhours | UTF-8 | 123 | 2.734375 | 3 | [] | no_license | #!/bin/sh
SAMPLES=/usr/share/sayhours
HOURS=$(date +'%H')
FILE=$(ls $SAMPLES/$HOURS/* | sort -R | head -1)
play -q "$FILE"
| true |
41087758849949b3e618d8b17ef0f90044b0b3fd | Shell | alanzhaonys/aws-ebs-deployment-boilerplate | /aws.sh | UTF-8 | 10,639 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Begin functions
#
function begin() {
echo
echo +++++++++++++++++++++++++++ AWS DEPLOYMENT ++++++++++++++++++++++++++++++
}
function end() {
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo
exit
}
function create_environment() {
readonly ENV_TO_CREATE=$1... | true |
0cf562c738de725b4bb26a3cc7d94826e0b2231f | Shell | sdey-sag/sagdevops-ansible-roles | /provision-connx-from-s3/templates/install_products.sh.j2 | UTF-8 | 1,485 | 3.75 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
echo "Begin $0"
THIS=`basename $0`
THISDIR=`dirname $0`; THISDIR=`cd $THISDIR;pwd`
THIS_HOSTNAME=`hostname --long`
echo "Current hostname: $THIS_HOSTNAME"
echo "Current folder: $THISDIR"
## load utils functions
function replace_global {
local pattern=$1;
local replacement=$2;
local file=$3;
... | true |
a367dc1476159ad6f27dabf46f2751a58c6672f1 | Shell | intelfx/bin | /misc/style-devel/colors | UTF-8 | 1,221 | 2.9375 | 3 | [] | no_license | #!/bin/bash
# Source: http://crunchbang.org/forums/viewtopic.php?pid=137566#p137566
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
BLK RED GRN YEL BLU MAG CYN WHT
──────────────────────────────────────────────────... | true |
fde50d5b4be7c9fec41de570588025acb4289ea3 | Shell | awcip/docker-autodl-irssi | /download.sh | UTF-8 | 935 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Download torrent file and check if it already exists
filterName=$1
Category=$2
TrackerShort=$3
TorrentName=$4
TorrentUrl=$5
echo "$filterName $Category $TrackerShort $TorrentName $TorrentUrl" \
>> "/home/user/download.log"
file="/autotorrent/$Category/$TorrentName-$TrackerShort.torrent"
wget $Torre... | true |
fbd748a3cfdac1a54a2f3c8df026efb1a00784a0 | Shell | booleangate/dotfiles | /configure.sh | UTF-8 | 1,695 | 3.296875 | 3 | [] | no_license | #!/bin/bash
. ~/.bash_functions
configure_deps() {
if is_mac; then
if ! has_bin 'brew'; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
has_bin 'node' || brew install node
if [ ! -d /usr/local/opt/coreutils ];... | true |
03dc158f6e2749c6d73e8d9e75efbe6396d67c66 | Shell | fredlim/canvas | /tools/scripts/canvas-build-debug.sh | UTF-8 | 2,342 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
cd ../../packages/canvas/src-native/canvas-ios
set -e
DEV_TEAM=${DEVELOPMENT_TEAM:-}
DIST="CanvasNative/Dist"
mkdir -p $DIST
echo "Cleanup"
xcodebuild -project CanvasNative.xcodeproj -target "CanvasNative" -configuration Debug clean
echo "Building for iphone simulator"
xcodebuild archive -project Canvas... | true |
487bccd541fb6fb8a95b88986fa585dd58a7ad15 | Shell | Rainynite25/playbook | /ssh_scripts.sh | UTF-8 | 602 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#1生成秘钥
if [ -f /root/.ssh/id_rsa ]
then
echo "密钥已存在"
else
ssh-keygen -t dsa -f /root/.ssh/id_rsa -N '' &>/dev/null
echo "密钥已创建"
fi
for ip in {31,41,7,8}
do
echo “=====================================”
#2分发秘钥
sshpass -p '1' ssh-copy-id 172.16.1.${ip} -o StrictHostKeyChecking=no &>/dev/null
if [ $?=... | true |
6e04e39668482e90c98a830988c2e4d36a3b19e8 | Shell | cinaeco/dotfiles | /shell/common/proxy.sh | UTF-8 | 365 | 3.53125 | 4 | [] | no_license | # Set proxy environment variables
function setproxy() {
proxy_address=${1:-} # default value of nothing
export HTTP_PROXY=$proxy_address
export HTTPS_PROXY=$proxy_address
export FTP_PROXY=$proxy_address
export http_proxy=$proxy_address
export https_proxy=$proxy_address
export ftp_proxy=$proxy_address
ec... | true |
00b1b02ca37156c37a2d4dd3bc44b86f95b998ef | Shell | kamigaito/SLAHAN | /scripts/predict/google/predict.sh | UTF-8 | 10,314 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -u
DATADIR=${PWD}/dataset/conv
MODELDIR=${PWD}/models
BINDIR=${PWD}/build_compressor
SCRIPTSDIR=${PWD}/scripts/tools
RESULTSDIR=${PWD}/results
if [ ! -d ${RESULTSDIR} ]; then
mkdir ${RESULTSDIR}
fi
# models
NAMES=("lstm")
ROOTDIRS=("${MODELDIR}/lstm")
BINS=(${BINDIR}/lstm)
NAMES=("${NAMES[@]}" "lstm... | true |
d4d922b9b11374e674377cd5001cd6a56ae73cf2 | Shell | eugenestarchenko/automation-for-the-people | /infrastructure/init.sh | UTF-8 | 696 | 2.984375 | 3 | [] | no_license | #!/bin/bash -e
echo "enter the name of the artifacts bucket that is created for this application. Name must be globally unique (e.g. michael-aftp)"
read ARTIFACT_BUCKET_NAME
echo "enter a personal GitHub access token. Generate one here: https://github.com/settings/tokens (only public_repo access needed)"
read GITHUB_... | true |
481bc324f836c0ae2c3717ec32ec25afb98e119b | Shell | SrinivasPithani/devops | /bash/find_files.sh | UTF-8 | 116 | 2.703125 | 3 | [] | no_license | #!/bin/bash
LOGS=`mktemp -d /tmp/outputXXXX`
touch $LOGS/$$
ls -l $LOGS
sleep 10
sleep 5
trap "rm -rf $LOGS/" INT
| true |
29840749dc927d6f4aab12cb4b975cb35cb18ff0 | Shell | Nokorot/MyConfigs | /home/.scripts/i3cmds/i3resize | UTF-8 | 576 | 3.46875 | 3 | [] | no_license | #!/bin/sh
# This script was made by `goferito` on Github.
[ -z "$1" ] && echo "No direction provided" && exit 1
distanceStr=$( [ -z "$2"] && "50px or 2ppt" || echo "$2" )
moveChoice() {
if [ $(i3-msg resize "$1" "$2" "$distanceStr" | grep '"success":true') ];
then i3-msg resize "$1" "$4" "$distanceStr"
else i3-... | true |
e559cc8ccde9675debb9bc93fa778c7e2e24fe86 | Shell | i2p/i2p.scripts | /source/git-reviewmissing.sh | UTF-8 | 408 | 2.875 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | #! /usr/bin/env sh
#
# view the changes in the current workspace for files NOT listed
# in filelist.txt; this is a good way to make sure you're not
# forgetting something that should be in filelist.txt before you
# check it in
# zzz 2008-10
#
# Re-written for git.
# idk 2020-10
git diff `cat filelist.txt` > out.diff
gi... | true |
2c8b4311b16455f8ec9ef2896e6699d4b63515f6 | Shell | leobudima/custom-ubuntu-setup | /install-defaults.sh | UTF-8 | 4,637 | 2.8125 | 3 | [] | no_license | bold=$(tput bold)
normal=$(tput sgr0)
echo ""
echo "${bold}Set ubuntu mirror to fi${normal}"
echo ""
sudo sed -i 's/us.archive/fi.archive/' /etc/apt/sources.list
echo ""
echo "${bold}Install nodejs 12 repo${normal}"
echo ""
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
##
echo ""
sudo echo "${bold}... | true |
1270f30514e37eaee094b17e874cb205f9d31955 | Shell | luca992/sqldelight | /.buildscript/before_linux.sh | UTF-8 | 570 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
# Update tools so that --licenses works
yes | sdkmanager tools
# Install SDK license so Android Gradle plugin can install deps.
mkdir "$ANDROID_HOME/licenses" || true
yes | sdkmanager --licenses
# Install the system image
sdkmanager "system-images;android-18;default;armeabi-v7a"
# Create and st... | true |
5885083fc7f93e2e5ac4be50dfcc9ec2159b8ac7 | Shell | kg2280/openvpn | /create_vpn_server.sh | UTF-8 | 3,396 | 3.875 | 4 | [] | no_license | #!/bin/bash
## Scrip to create an openvpn server
## Coded by: Kevin Gagne
## Date: 21 Sept 2017
##
VPN_NAME=mastervpn
## Check if there is an argument passed. If so, set the $VPN_NAME variable
if (( $#==1 ))
then
VPN_NAME=$1
echo "VPN_NAME will be $VPN_NAME"
fi
## Check if there is already a config this vpn.
i... | true |
dcc1795ad18a3c9d91ba3dade8c73b6b18dd93f8 | Shell | aligulle1/kuller | /pardus/playground/review/server/monitor/nagios-plugins/files/12_check_snmp_1.4.15_regression.patch | UTF-8 | 7,864 | 2.640625 | 3 | [] | no_license | #! /bin/sh /usr/share/dpatch/dpatch-run
## 12_check_snmp_1.4.15_regression.dpatch by
## Thomas Guyot-Sionnest <dermoth@aei.ca>
##
## Original patch to make Timeticks works as in check_snmp v1.4.14, it turns
## out is_numeric isn't so useful and treating all types as numeric works
## best for backwards-compatibility. Th... | true |
bf52db414f9c76a6cd6e1e6f2647cbddfca01e04 | Shell | openanthem/nimbus-docs | /scripts/generate.sh | UTF-8 | 2,763 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Set variables
DOCUMENTATION_VERSION="latest"
SOURCE_PATH="src"
ROOT_ADOC_PATH="${SOURCE_PATH}"
ROOT_ADOC_FILENAME="index.adoc"
ROOT_ADOC="${ROOT_ADOC_PATH}/${ROOT_ADOC_FILENAME}"
SUBSITES_DIR="${SOURCE_PATH}/pages"
RELEASE_NOTES_DIR="${SOURCE_PATH}/pages/release-notes/pages"
RESOURCES_DIR="${SOURCE_PATH}... | true |
0b7e29afb8ca473993b51aa30c65a6518d011ae8 | Shell | Jpocas3212/aur | /clion-eap/PKGBUILD | UTF-8 | 2,067 | 2.84375 | 3 | [] | no_license | # Maintainer: Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
pkgname=clion-eap
_pkgname=clion
pkgbuild=141.352.13
# This is a 1.0 release candidate
_pkgbuild=1.0
pkgver=${pkgbuild}
pkgrel=1
pkgdesc="C/C++ IDE. 30-day evaluation."
arch=('x86_64')
options=(!strip)
url="http://www.jetbrains.com/${_pkgname}"
license=('c... | true |
c237525d8afa43fe464c8128457ef7ab785f636b | Shell | liurui-1/opentracing-tutorial | /java/run.sh | UTF-8 | 491 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: run.sh qualified-class-name [args]"
exit 1
fi
className=$1
shift
set -e
mvn -q package dependency:copy-dependencies
CLASSPATH=""
for jar in $(ls target/dependency/*.jar target/java-opentracing-tutorial-*.jar); do
CLASSPATH=$CLASSPATH:$jar
done
ADD_MODULES=""
... | true |
760969bd978df1fccbbcf26fda66287a22852b1e | Shell | elvistache/Twister-OS-Patcher | /uninstall.sh | UTF-8 | 714 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo 'Uninstalling Twister OS Patcher by FlameKat53 and MobileGamesMotionYT...'
echo 'Thanks for using me! You can install me again at "https://bit.ly/patchtwist"'
cd ~
#Checks to see if these files exist and replace or remove them
if [ -d ~/patcher/ ]; then
rm -r ~/patcher/
fi
if [ -f ~/.local/share/app... | true |
346964bd842627467dfb8192e6993ea41b7b8bff | Shell | benamarfaiez/sentinel_loading | /collectData.sh | UTF-8 | 865 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
var1=$(ls products)
#consult all products
for var in $var1
do
#make a test to know the repertoires
if [ -z $(echo $var | grep "tif") ]
then
var2=$(ls products/$var | grep "SAFE")
#make a test to know the repertoires
if [ -z $var2 ]
then
echo '---'
else
#Fist launch the c... | true |
cae0282700b3a0f70d2428fb71a6e8cbe5a55e72 | Shell | nbcrrolls/opalroll | /src/rocks/cron/save-http-logs | UTF-8 | 434 | 3.78125 | 4 | [] | no_license | #!/bin/bash
basedir=/share/backup/apache_logs
date=`date +\%Y\%m\%d`
logs=`ls /var/log/httpd/*log-20* 2>/dev/null`
HostName=`hostname`
if [ "$logs" ]; then
ls $basedir > /dev/null
mkdir -p $basedir/$date
fi
#save all archived logs
for i in /var/log/httpd/*log-20*;
do
if [ -f $i ] ; then
mv $i $ba... | true |
2c7154f8496a805bbb278a14e09fd6743c3d2532 | Shell | GaloisInc/pirate | /demos/camera_demo/scripts/camera_demo.sh | UTF-8 | 378 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# usage: ./camera_demo.sh [device] [args]
MACHINE=`uname --machine`
PLATFORM_ARGS=""
USER_ARGS="${@:2:$#}"
VIDEO_DEVICE="/dev/video0"
PREFIX=""
APP="./camera_demo"
if [ $# -ge 1 ]; then
VIDEO_DEVICE=$1
fi
if [ ${MACHINE} = "armv7l" ]; then
PREFIX="sudo"
PLATFORM_ARGS="-f v -f h"
fi
${PREFIX... | true |
89987e2d7a57fd3b35808b7bd4aa1abbb91b01bd | Shell | 1054/DeepFields.SuperDeblending | /Softwares/read_galfit_output_fits_result | UTF-8 | 963 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#
if [[ $# -gt 0 ]]; then
readgresult_tmp="._.AstroGalfit._.ReadGalfitResult._."
CrabFitsHeader "$1" -ext 2 | sed -n -e '/COMP_/,/COMMENT/p' > "fit.header"
cat "fit.header" |cut -d\' -f2 |sed -E 's/\[(.*)\]/\1 0/g' |sed -e 's%+/-%%g' |sed -e 's%*%%g' > "$readgresult_tmp" #' #<20170210># |sed -... | true |
fe86cbf10f97c4516902bb078f826dac8b55ad49 | Shell | histograph/puppet-deploy | /testNDJSON.sh | UTF-8 | 777 | 3.296875 | 3 | [] | no_license | #! /bin/bash
# set -x
unalias ls
UPLOADS="/uploads/datasets"
IMPORTS="/var/www/importeren/app/storage/exports"
for i in $(ls ${UPLOADS});
do
for ii in pits.ndjson relations.ndjson
do
j="${UPLOADS}/${i}/${ii}"
k="${IMPORTS}/${i}/${ii}"
# echo ${j}
# echo ${k}
... | true |
784871978066b08c12d44d6bc7df3f67f0001781 | Shell | jwestgard/scripts | /data-cleanup/ent-convert.sh | UTF-8 | 402 | 3.234375 | 3 | [] | no_license | #!/bin/bash
##################################################
# ent-convert.sh | Joshua Westgard | 2014-01-26 #
#------------------------------------------------#
# Converts the XML entities for greater than and #
# less than symbols into regular characters. #
##################################################
... | true |
7a62cfbd86907ba228f381053db15593f0b99773 | Shell | charliephillips/netapp | /problem1.sh | UTF-8 | 2,397 | 3.625 | 4 | [] | no_license | #! /bin/bash
config=$1
output=$config.json
prevSlot=0
primed=false
if [ -f $config ]
then
while read line
do
# spin until serial is found
while [ "$systemSerial" == "" -a "$line" != "" ]
do
systemSerial=`echo $line | grep "System Serial Number" | cut -d':' -f2 | cut -d'(' -f1`
... | true |
1175ee9a89e4c342cd5f29440f5fa6fd45a8ca10 | Shell | jsmatos/utility-scripts | /monitor_docker_instances/monitor_docker_instances.sh | UTF-8 | 1,327 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# To be used with an instance of generic_monitor plugin in xfce4
# Simple script that verifies if some processes are running inside docker and to
# allow some actions by clicking on icons.
#
SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
function text {
if [[ $# -eq 0 ]]
... | true |
a5c0f3b70b6a5d5e82ceba971d6d7a55ccb3c89b | Shell | josephzhang8/schism | /conda.recipe/build_vl.sh | UTF-8 | 1,187 | 2.796875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/usr/bin/env bash
set -xeuo pipefail
#export mpi=mpich
export CC=mpicc
export FC=mpif90
export F77=mpif77
export F90=mpif90
#Fix an error?
sed -i -e "s|\!bflux0,|bflux0,|g" src/Hydro/schism_step.F90
# build and install schism
mkdir build
cd build
CMAKE_PLATFORM_FLAGS+=(-DCMAKE_TOOLCHAIN_FILE="${RECIPE_DIR}/cross... | true |
e3ef047e2937e110fa6561bccd7a9c4d71ed2d37 | Shell | bioinfx/cvdc_scripts | /archive/promoterAnchoredInteraction/test/calBackGroundDistribution.sh | UTF-8 | 572 | 2.640625 | 3 | [] | no_license | pushd ../../analysis/promoterAnchoredInteractions
#name=D00_HiC_Rep1
for name in $(cat ../../data/hic/meta/names.txt); do
(
echo $name
chr=1
mkdir -p $name
for chr in {1..22} X; do
echo $chr
awk -v OFS='\t' '{dist=$2-$1;mat[dist] += $3;count[dist]++ }END {for (i in mat){print i,mat[i],count[i]} }' ../../data/hic/ma... | true |
b80811af7815955d1daa97f5b389f81b72dcef0e | Shell | Mudlet/installers | /shell-check.sh | UTF-8 | 287 | 3.53125 | 4 | [] | no_license | #!/bin/bash
function testFile {
echo "testing $1"
shellcheck "$1"
ret=$?
if [ "$ret" -ne 0 ]; then
echo "There are problems in $1"
fi
return "$ret"
}
result=0
for f in *.sh osx/*.sh generic-linux/*.sh
do
testFile "$f"
ret=$?
let result+=$ret
done
exit "$result"
| true |
4b1cd5f0360f1b26cdd96f4c1f6fbb6eb0bc9554 | Shell | okapies/travis-sandbox | /.travis/install-protobuf.sh | UTF-8 | 2,348 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# retrieve arguments
while [[ $# != 0 ]]; do
case $1 in
--)
shift
break
;;
--version)
ARG_VERSION="$2"
shift 2
;;
--download-dir)
ARG_DOWNLOAD_DIR="$2"
shift 2
;;
... | true |
f487d637bcee0b8c1bb7aef3b296be2f6ebfbce8 | Shell | ilventu/aur-mirror | /scipoptsuite/PKGBUILD | UTF-8 | 4,703 | 2.765625 | 3 | [] | no_license | # Maintainer: Robert Schwarz <mail@rschwarz.net>
# Contributor: Johannes Schlatow <johannes.schlatow@googlemail.com>
# Contributor: Stephan Friedrichs <deduktionstheorem@googlemail.com>
pkgname='scipoptsuite'
pkgver='3.0.0'
pkgrel=7
pkgdesc="Tools for generating and solving optimization problems. Consists of ZIMPL, So... | true |
83e854aef7d693901ddf4fcb0414b117e21946d6 | Shell | andrewcampagnagit/quickstart-ibm-cloud-pak-for-security-1 | /scripts/install.sh | UTF-8 | 4,711 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | exec > cp4s_install_logs.log
export ENTITLED_REGISTRY_PASSWORD=$1
export OCP_URL=$2
export LDAP_PASS=$3
export CLOUDCTL_TRACE=TRUE
cloudctl case save --case https://github.com/IBM/cloud-pak/raw/master/repo/case/ibm-cp-security-1.0.17.tgz --outputdir .
tar xvf ibm-cp-security-1.0.17.tgz
cat << EOF > ibm-cp-security/... | true |
576cc7b26f21c39ff09389371dcb9c8c43f42022 | Shell | symbooglix/gpu | /other/clean.sh | UTF-8 | 100 | 2.546875 | 3 | [] | no_license | #!/bin/bash
for ext in bc opt cbpl bpl loc gbpl; do
find . -iname "*.${ext}" -print -delete
done
| true |
2ee71ba69641722058758913067664d93d786aae | Shell | smbrave/gosupervisor | /build.sh | UTF-8 | 283 | 2.75 | 3 | [] | no_license | #!/bin/sh
SVN_VERSION=`git rev-parse --short HEAD || echo "GitNotFound"`
APP_VERSION=`head -n 3 update.sh|grep LAST_VERSION|awk -F"=" '{print $2}'`
go build -ldflags "-X main.buildTime=`date +%Y%m%d-%H%M%S` -X main.binaryVersion=$APP_VERSION -X main.svnRevision=${SVN_VERSION}"
| true |
c13000ea940ec6b7b9110f04feaddcd05a902d84 | Shell | unkmc/RTK-Server | /rtk/map-server-auto | UTF-8 | 129 | 2.5625 | 3 | [] | no_license | #!/bin/bash
until ./map-server; do
echo "Server 'map-server' crashed with exit code $?. Respawning.." >&2
sleep 1
done
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.