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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4259342afc1477f4d8d268ad31cd718b04481a96 | Shell | pjensen7/Week4_Assignment | /guessinggame.sh | UTF-8 | 536 | 3.9375 | 4 | [] | no_license | #!/usr/bin/env bash
clear
function Introduction {
echo
echo "Hello.....would you like to play a game?"
echo
echo "Try to guess how many files are in the current directory"
echo
}
Introduction
FileNumber=$(ls -1 | wc -l)
until [[ $response -eq $FileNumber ]]; do
read response
if [[ $response -gt $FileNumber ]]
t... | true |
fc1d2d7940bc2352cc8b619ddb795e18f9cee0ee | Shell | oalbiez/docker-subcommand-demo | /start | UTF-8 | 550 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
VOLUME=/usr/src/app
USER=user
GROUP=user
VOLUME_UID=$(stat -c "%u" $VOLUME )
VOLUME_GID=$(stat -c "%g" $VOLUME )
if [ "$VOLUME_UID" != "0" ]
then
getent group $VOLUME_GID
[ $? -gt 0 ] && groupadd --gid $VOLUME_GID $GROUP
getent passwd $VOLUME_UID
[ $? -gt 0 ] && useradd --create-ho... | true |
7275f7b37e4963248d3186cd386b48f11693132c | Shell | AaronOldenburg/TerminalJam | /q-journal/JournalCode/dostats.sh | UTF-8 | 984 | 3.828125 | 4 | [] | no_license | # Output game stats
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
filename="../stats.txt"
DATE=`date +%c`
health=100
MAX_HIT=50
update_file() {
range_double=$(( MAX_HIT*2 ))
hit_amt=$(( $((RANDOM%range_double))-MAX_HIT ))
printf "\n\nOn "$DATE", " >> $filename
if [ $hit_amt -gt 0 ]; then
pr... | true |
d02cf5024d2affa9adae42e91503f8d672722e15 | Shell | pajamapants3000/docker-infra | /devcontainer/library-scripts/create-dotnet-devcert.sh | UTF-8 | 2,500 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# May want to make these customizable
CERT_PW=""
DEVCERT_PATH=/aspnet/https
DEVCERT_NAME=dotnet-devcert
#
TMP_PATH=/var/tmp/localhost-dev-cert
if [ ! -d $TMP_PATH ]; then
mkdir $TMP_PATH
fi
if [ ! -d $DEVCERT_PATH ]; then
mkdir -p $DEVCERT_PATH
chmod -R 755 $DEVCERT_PATH
fi
KEYFILE=$DEVCERT_... | true |
e0577521af93f991cdb7c52d2605ec25dd9ddbde | Shell | freecracy/gvm | /gvm | UTF-8 | 4,300 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -o pipefail
{
BASE_PATH=$HOME/.gvm
GOPATH=$HOME/.go
GOBIN=$GOPATH/bin
GVMRC=$HOME/.gvmrc
VERSION_REPO=https://github.com/golang/dl.git
BASE_DOWNLOAD_URL=https://dl.google.com/go/
TARPATH=$BASE_PATH/tar
GOHOSTOS=linux
VERSION=
[[ ! -d $BASE_PATH ]] && mkd... | true |
33ba3cfd19bf5602b87cfb8b347d8aa060db0cf3 | Shell | gianricardo/smart | /Models/QueenCoverGen | UTF-8 | 2,511 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
#
# Generate an instance of the queen cover problem
#
#1 : i
#2 : j
#3 : N
cover()
{
printf "\n// Make sure we cover square %d,%d\n\n" $1 $2
# check column
i="1"
while [ $i -le $3 ]; do
if [ $i -ne $1 ]; then
printf "(q_%d_%d>0) | " $i $2
fi
i=$[i + 1]
done
printf "\n"
# check... | true |
ce4a326f15adbfaba01b8351d1b459a4cdf164de | Shell | cvigilv/puntos | /sxiv/exec/key-handler | UTF-8 | 548 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
rotate() {
degree="$1"
tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read file; do
case "$(file -b -i "$file")" in
image/jpeg*) jpegtran -rotate "$degree" -copy all -outfile "$file" "$file" ;;
*) mogrify -rotate "$degree" "$file" ;;
esac
done
}
case "$1" in
"C-c") while read ... | true |
537ba14147974de0d90c045df5b7bb1f5169be5e | Shell | fr4nc3sc4/BinBench_ | /docker/spawn_images.sh | UTF-8 | 1,874 | 3.265625 | 3 | [] | no_license | #!/bin/bash
gcc=( "gcc-10" "gcc-9" "gcc-8" "gcc-7" "gcc-6" )
clang=( "clang-11" "clang-10" "clang-8" "clang-6" "clang-4" )
clang10="https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz"
clang8="https://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86... | true |
69265156542aa2a8de356d86cb0843fbbeff6a09 | Shell | mengyuan411/au-wing-cmp | /script/decisiontree_daemon.sh | UTF-8 | 4,837 | 3.203125 | 3 | [] | no_license | #compare dmac_avg dmac_50th dmac_90th dmaci_avg dmaci_50th dmaci_90th
if [ $# -lt 4 ]
then
echo "Usage: lccs_decision_daemon.sh <gap_time> <wlan_type> <roundnum> <channel> "
echo " "
echo " gap_time : gap_time=10 means every 10s we will get a slow or fast"
echo " wlan_type : wlan0 | wlan1"
e... | true |
762a7a01b5a3c09acf59a0d0b536ed71c758860f | Shell | chernic/Cacti | /YumLAMP_Cacti/cactiroot/CrondDeviceCheck.sh | UTF-8 | 5,976 | 3.875 | 4 | [] | no_license | #!/bin/sh
function BreakPoint()
{
while [ "y" != "$AUTO_FLAG_yn" ]
do
read -p "\033[33mDo you Make Sure to Continue? [y/n/q] \033[0m" AUTO_FLAG_yn;
[ "$AUTO_FLAG_yn" == "q" ] && exit 0;
done
AUTO_FLAG_yn="n"
}
function NotRootOut()
{
[ "0" != "$(id -u)" ] && echo "Error: You must be... | true |
947e610011116106198dce33abc74024367b77cd | Shell | ut-osa/ryoan | /apps/testing_preamble.sh | UTF-8 | 1,360 | 3.859375 | 4 | [] | no_license | #!/bin/bash
cd $(dirname $0)
logfile_number=
encrypt=1
padding=1
checkpoint=1
usage="Usage: $0 [{--log-append|-l} string] [--no-checkpoint] [--no-encrypt] [--no-io-model] path/to/pipe_description.json"
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-l|--log-append)
logfile_number="$2"
shift
shift
... | true |
6ff793581f58c4dab0bc04787b0e6f2543de4eb7 | Shell | fmihaich/deviget | /script/ui_test | UTF-8 | 914 | 3.59375 | 4 | [] | no_license | #!/bin/bash
DEFAULT_BROWSER=chrome
DEFAULT_ENV=PDR_DOCKER
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-b|--browser)
BROWSER=$2
shift
;;
-e|--env)
TEST_ENV="$2"
shift
;;
*)
# unknown option
... | true |
5e62770be0386f1f40ab9898de533e7130aa57ed | Shell | opyate/uys.io-playbook | /roles/linkbaiter/templates/linkbaiter.sh.j2 | UTF-8 | 406 | 3 | 3 | [] | no_license | #!/bin/bash
LOC=/tmp/linkbaiter
mkdir -p $LOC
cd {{linkbaiter_install_dir}}
for spider in bi bf ; do
OUTPUT="$LOC/$spider.$(date +'%s.%N').json"
PLUSONENEWS_MYSQL_HOST="{{PLUSONENEWS_MYSQL_HOST}}" \
PLUSONENEWS_MYSQL_DBNAME="{{linkbaiter_db_name}}" \
PLUSONENEWS_MYSQL_USER="{{PLUSONENEWS_MYSQL_USER}}" \
PLUSO... | true |
12dd9031012faafb73d031015d85f9fb5ed04b75 | Shell | 0xdead8ead/firmware_reversing | /firmware/Netgear_Centria_WNDR4700/squashfs-root/etc/email/email_log | UTF-8 | 4,588 | 3.703125 | 4 | [] | no_license | #!/bin/sh
nvram=/bin/config
smtpc=/usr/sbin/ssmtp
LOG_FILE=/var/log/messages
# email related configs (in nvram get command) :
# email_smtp : smtp server address
# email_endis_auth : smtp sever needs authentication or not ?
# email_username : username for smtp server authentication
# email_password ... | true |
03bb2e0cf2169b3f0aaa1768533e1493c173b9df | Shell | dbyio/spotifyMyPi | /do.sh | UTF-8 | 2,062 | 4.125 | 4 | [] | no_license | #! /bin/bash
function require_root() {
if [ $(id -u) -eq 0 ]; then
return 0
else
echo "Please run me as root."
exit 1
fi
}
function is_running() {
id=$(docker ps -f name=spotifyd -f status=running --format "{{.ID}}")
if [[ $id ]]; then
return 0
else
return 1
fi
}
function container_exists() {
id=$... | true |
dffce2ee168462738d5aab11cb5bf4807da7a3e6 | Shell | hongbin8237/slam | /bin/realtime.sh | UTF-8 | 1,567 | 2.5625 | 3 | [] | no_license | #!/usr/bin/env sh
# bin/realtime.sh
# Martin Miller
# Created: 2014/07/07
# Simulate real-time
DATA=raw/2nd
BODY=data/bodyHist3.txt
DT=data/dt.fifo
ALT=data/alt.fifo
ACC=data/acc.fifo
QBW=data/qbw.fifo
ANGVEL=data/w.fifo
DISP=data/disp.fifo
#BODYFF=data/body.fifo
pkill slam
pkill sensor
pkill multitap
rosrun rviz rviz... | true |
ba01ed97201399c81ff315c9210923fba84293af | Shell | dijonkitchen/but_why | /examples/main/bin/run | UTF-8 | 849 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Recommended way of starting an unpacked repo of Edge in production
# Feel free to change this
APP_NAME=Edge
# Comment this to disable the production REPL, otherwise use it to specify the port.
SOCKET_REPL_PORT=50505
# Exported so it can accessed inside the JVM
export NREPL_PORT=5601
# The -Xms JVM ar... | true |
7f9324c251ff730b138be93ea305e57cb552126a | Shell | bossjones/debug-tools | /install-fx.sh | UTF-8 | 686 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#-----------------------------------------------------------------------
# Linux (Linux/x86_64, Darwin/x86_64, Linux/armv7l)
#
# install-fx.sh - Install fx
#
# usage: install-fx.sh NON_ROOT_USER (use a non root user on your file system, eg install-fx.sh vagrant)
#
# Copyright (c) 2020 Malcolm Jones
# All R... | true |
975de804b442bc06cd63cc04909165898ead8a7d | Shell | h8h/MasterMind | /compileme.sh | UTF-8 | 448 | 2.859375 | 3 | [] | no_license | #!/bin/bash
javac -target 1.6 -source 1.6 -encoding utf-8 *.java mastermind_core/*.java mastermind_save_load/*.java mastermind_gui/mastermind_templates/*.java mastermind_gui/*.java -Xlint:-options 2> mastermind_error.log
if [ -e mastermind_error.log ] && [ $(wc -l mastermind_error.log | awk '{print $1}') -gt "0" ]; th... | true |
4b8d020510691084b9595f20077f8de0c09488be | Shell | stuart-warren/k8sh | /k8sh | UTF-8 | 4,874 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
ct() {
if [ -z "$1" ]; then
local contexts=$(k config get-contexts -o=name | sort -n)
echo "$contexts"
return
fi
export KUBECTL_CONTEXT=$1
}
export -f ct
_ct_completions()
{
local contexts=$(k config get-contexts -o=name | sort -n)
COMPREPLY=($(compgen -W "${contexts}" "${COM... | true |
4844f8db09b6c546058c9bc539b5c8257dab4ebe | Shell | komarios/weblogic_wlst | /infra/shutdownNMandAdminServer.sh | UTF-8 | 279 | 2.65625 | 3 | [] | no_license | #!/bin/sh
echo "Killing nodemanager"
nm_pid=`ps -efx | grep java | grep wlogic | grep -v wlogic2 | grep -i NodeManager | awk '{print $2}'`
kill -9 ${nm_pid}
cd $DOMAIN_HOME/bin
. ./setDomainEnv.sh
cd $DOMAIN_HOME/bin
echo "Stopping Admin Server "
./stopWebLogic.sh | true |
503a8c0c73c47ec324e9703c8a541ff25552b09c | Shell | merckey/dropkick-manuscript | /run_and_test.sh | UTF-8 | 726 | 3.359375 | 3 | [
"MIT"
] | permissive | FILES=`ls data/*.h5ad 2>/dev/null` # get names of all .h5ad files from data dir
for f in $FILES;
do
file=`basename $f` # get name of .h5ad file
printf "\nStarting dropkick qc on $file:\n"
time dropkick qc $f # generate dropkick QC report
printf "\nRunning dropkick filtering on $file:\n"
time dropkick run $f -j... | true |
df5f30eb599ce15d19be268b66f1e52526435672 | Shell | bradtm/pulsar | /docker/build.sh | UTF-8 | 2,026 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License");... | true |
2491f4bca896bd434968615e126bbe98f51fdd98 | Shell | danielsuo/libphase | /scripts/spec/invoke.sh | UTF-8 | 868 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
DIM=$1000000
DIR=$(realpath "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && echo $(pwd)/../../)")
mkdir -p $DIR/tmp/spec_$1m
cmds=$DIR/tmp/spec_$1m/cmds.sh
rm -f $(dirname $cmds)/*
for i in `find $DIR/cpu2017/benchspec -maxdepth 3 -type d | grep run`; do
benchmark=$(basename $(dir... | true |
7d416547153a210a13559b8d84318f3abd69fa97 | Shell | usp-engineers-community/Open-usp-Tukubai | /TEST/block_getlast.test | UTF-8 | 9,792 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#!/usr/local/bin/bash -xv # コマンド処理系の変更例
#
# test script of block_getlast
#
# usage: [<test-path>/]calclock.test [<command-path> [<python-version>]]
#
# <test-path>は
# 「現ディレクトリーからみた」本スクリプトの相対パス
# または本スクリプトの完全パス
# 省略時は現ディレクトリーを仮定する
# ... | true |
1034de18474fd062762bad7ab7e49bd964ddca17 | Shell | pandrewhk/apicli | /google | UTF-8 | 501 | 3.359375 | 3 | [] | no_license | #!/bin/sh
. ~/.googlerc
case $1 in
delete|put|get|post)
method=`echo $1 | tr '[:lower:]' '[:upper:]'`
shift
;;
esac
if [ "$1" = data ]; then
args="$args -F @-;type=application/json"
shift
fi
for p; do
if [ -z "${p%%*=*}" ] ; then
query="$query $p"
else
path="$path $p"
fi
done
path=`echo ${path# } |... | true |
b7c05defeb76959368c96b03e556736755d3ab04 | Shell | Shubashree/EEGLAB2Hadoop | /create_env.sh | UTF-8 | 730 | 2.609375 | 3 | [] | no_license | #!/bin/bash
ENV=$MY_STOR/python
#Create a virtual environment
pip install virtualenv
virtualenv $ENV --system-site-packages
$ENV/python/bin/activate
#Create lapack
wget http://www.netlib.org/lapack/lapack-3.4.2.tgz
tar -xvf lapack-3.4.2.tgz
rm lapack-3.4.2.tgz
cd lapack-3.4.2
cp make.inc.example make.inc
make blaslib... | true |
05248b509fa91ad9d7b479add14ae9b00ad7c387 | Shell | plkx/mordred | /extra/ci/test_script.sh | UTF-8 | 431 | 3.0625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -e
source ./extra/ci/common.sh
PYTHON=python
conda list
if [[ -n "$COVERAGE" ]]; then
info $PYTHON -m mordred.tests -q --with-coverage
else
info $PYTHON -m mordred.tests -q
fi
echo "test README.rst" >&2
info $PYTHON -m doctest README.rst
for example in `find examples -name '*.py'`; do
... | true |
5a05ce7f0266babd7c308daec698ff7cebb52e52 | Shell | IBMCloudDevOps/bluemix-openstack-deploy | /setup_tools/install_python.sh | UTF-8 | 383 | 3.28125 | 3 | [] | no_license | #!/bin/bash
CURR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(dirname "$CURR")"
mkdir $DIR/src
mkdir $DIR/.localpython
cd $DIR/src
# Get/Unpack python
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar xfz Python-2.7.9.tgz
# Configure/install python
cd Python-2.7.9/
./configure CFLAGS=-... | true |
6f9832b554c4cd7220f584db1284c6ffdcf91078 | Shell | NattyNarwhal/wmx | /rsharman-patch/example-wmx-keybding-files/move-this-window-to-previous-channel | UTF-8 | 246 | 2.671875 | 3 | [
"BSD-2-Clause"
] | permissive | #! /bin/sh
# Move this window to the previous channel
echo channel | nc localhost 6999 | \
gawk '/Current channel is/{ n = $4;
if (--n > 0) {
print "wchannel",'"$1"', n ;
}
print "quit"
}' | \
nc localhost 6999
| true |
6492f62376f972d49b9f5ec581cc206edffb0cfa | Shell | bcskda/scripts | /diht-lectorium-compress-queue.sh | UTF-8 | 260 | 3.046875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
IFS=$'\n'
for x in `cat "$1"`
do
stat $x || (echo Error: $x does not exist && exit 1)
done
for x in `cat "$1"`
do
(cd "$x" && $HOME/bin/diht-lectorium-compress.sh ${2:-MTS} ${3:-source_compressed.mp4} && echo OK $x) || echo Error $x
done
| true |
9057e118fe703bf9ff01a9f8a06735a25b8730a9 | Shell | gtjamesa/.dotfiles | /shell/helpers/asdf | UTF-8 | 467 | 3.203125 | 3 | [] | no_license | #!/bin/bash
asdf-reload() {
awk '{print $1}' "$HOME/.tool-versions" | xargs -I {} asdf plugin add {}
asdf plugin update --all
asdf install
if grep -q krew ~/.tool-versions; then
mkdir -p "$HOME/.krew"
# Symlink ~/.krew/backup to ~/.dotfiles/shell/.krew-plugins
[ ! -h "$HOME/.krew/backup" ] && sym... | true |
51f98169ac776be093ca5de1baa8016b64a9175e | Shell | 00dani/dot-zsh | /zshenv | UTF-8 | 917 | 3.34375 | 3 | [] | no_license | # Initialise each of the XDG vars to their default values if they're unset.
: ${XDG_CACHE_HOME:=~/.cache}
: ${XDG_CONFIG_HOME:=~/.config}
: ${XDG_DATA_HOME:=~/.local/share}
# For XDG_RUNTIME_DIR, pick a temporary directory - the spec actually
# *requires* that it's destroyed when the user logs out, so that's handled b... | true |
da06b3320790d2bf5960a19bc3d99efe73a6d682 | Shell | raplin/electric | /src/sd-image/old-scripts/sudo_get_ssid_name.sh | UTF-8 | 213 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
[ "root" != "$USER" ] && exec sudo $0 "$@"
# gets the current configured SSID value from wpa_supplicant.conf file
grep -n ssid /etc/wpa_supplicant/wpa_supplicant.conf | awk -F \" '{print $2;}'
| true |
6fe176219de6eeea55651de2a80a32d37cfa6914 | Shell | fabledfoe/ferda | /.sandos | UTF-8 | 386 | 2.515625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/usr/bin/env bash
printf "Setting up projects…\n"
printf "\n Install Node 14 and set as default \n"
source ~/.zshrc
nvm install 14
nvm use 14
nvm alias default 14
printf "Clone and install portal repos \n"
cd ~
git clone git@github.com:RollKall/RollKall-Portal.git
cd RollKall-Portal
yarn
cd ..
git clone git@github... | true |
d9a4b1ac1f19f73cc68124ac722a707a1d920e56 | Shell | ComplianceAsCode/content | /linux_os/guide/system/network/network_sniffer_disabled/tests/no_promisc_interfaces.pass.sh | UTF-8 | 144 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
for interface in $(ip link show | grep -i promisc | sed 's/^.*: \(.*\):.*$/\1/'); do
ip link set dev $interface promisc off
done
| true |
0966479fbfa60f0b71c016d25635c711ab8d71f1 | Shell | creidinger/virtualbox-backup-shell-scripts | /vm-shutdown.sh | UTF-8 | 809 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Purpose: Shutdown all Virtualbox VMS
#
# Location: Stored on the host machine 192.168.1.222
# Directory: ~/
#
# Author: Chase Reidinger
# list the vms
# grab only the txt between ""
# remove the ""
VMS_RUNNING=$(vboxmanage list runningvms | grep -o '".*"'| sed 's/"//g')
# Shud down each VM
function shu... | true |
0724c75178a8247a1cf29bda63fdcea139d762df | Shell | jlauman/data_engineering_project_04 | /bin/build_spark_image.sh | UTF-8 | 1,543 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 sparknet
docker build --tag local:spark --file - ./ <<EOF
FROM centos:centos7
RUN yum -y install epel-release &&\
yum -y update &&\
yum -y install openssh-server openssh-clients &&\
yum -y install java-1.8.0... | true |
d6d76980bc69ebed240efa71df18ebd522f4bbd0 | Shell | joaniznardo/smxm7 | /uf2-ftp-email/labs/lab44b/boot/vm4/provision.sh | UTF-8 | 2,159 | 2.859375 | 3 | [] | no_license | #!/bin/bash
set -eux
config_domain=$(hostname --domain)
apt-get install -y --no-install-recommends vim
cat >/etc/vim/vimrc.local <<'EOF'
syntax on
set background=dark
set esckeys
set ruler
set laststatus=2
set nobackup
autocmd BufNewFile,BufRead Vagrantfile set ft=ruby
EOF
# install nginx to host the Thunderbird Aut... | true |
03010ba991f76fe6b8391f875402d98d96445fcb | Shell | nathanph/zsh-completions | /src/go/_circleci | UTF-8 | 20,256 | 2.859375 | 3 | [] | no_license | #compdef circleci
# -----------------------------------------------------------------------------
# The BSD-3-Clause License
#
# Copyright (c) 2018, Koichi Shiraishi
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following c... | true |
dd3f7997bf335c0a4629d3bf6b238dbdfae85cdf | Shell | zhaogaolong/graphql-metrics | /patch/graphql_patch.sh | UTF-8 | 232 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo prefix: $prefix
if [ -z $prefix ]; then
prefix=vendor
fi
graphql_path=$prefix/github.com/graph-gophers/graphql-go/graphql.go
if ! grep -q MySchema $graphql_path; then
cat patch/graphql.txt >> $graphql_path
fi
| true |
8d9f6d631fa50e9c64f06c1a170cc19d2d1725e6 | Shell | neilhsieh94/getBranchUrl | /get_branch_url.sh | UTF-8 | 3,079 | 4.125 | 4 | [] | no_license | #!/bin/bash
##############################################################
# README
#
# Quick Set Up
# 1. Copy this file into your home directory
# a) In terminal: cd ~
# b) To copy, open the current folder in finder,
# In Terminal: open `pwd`
# c) Copy and pasta in there
#
# 2. Open your .bash_profile
... | true |
ff85c0af8bf2b47535498bf2d949f755d4bf3802 | Shell | commshare/testLiveSRS | /trunk/objs/_srs_build_summary.sh | UTF-8 | 7,041 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#####################################################################################
# linux shell color support.
RED="\\e[31m"
GREEN="\\e[32m"
YELLOW="\\e[33m"
BLACK="\\e[0m"
echo -e "${GREEN}build summary:${BLACK}"
echo -e " ${BLACK}+-----------------------------------------------------------------... | true |
1ee15e239b7ad68c12e34ea2650c986203dbd58a | Shell | svpmtrust/autotest | /testserver/provision.sh | UTF-8 | 1,292 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
echo Installing Python
echo -----------------
sudo apt-get update
sudo apt-get install python python-pip -y
echo Installing Celery..
echo -----------------
sudo pip install celery==3.1.17
echo Installing Pymongo..
echo ------------------
sudo pip install pymongo==2.8
echo creating Participants,p... | true |
6f29698598efe046b927c9075cdcd33e1601249f | Shell | sebialex/tools | /low-mem/init.d.sh | UTF-8 | 1,195 | 3.828125 | 4 | [] | no_license | #!/bin/sh
### BEGIN INIT INFO
# Provides: lowMemAlert.sh
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Provides warning when system memory is too low, and wil... | true |
e570a44d6294b2d018502994a2df16aa94313abe | Shell | eeuneeun/kvmManager | /vnet/kvmVnetDel.sh | UTF-8 | 373 | 2.9375 | 3 | [] | no_license | #!/bin/sh
#가상네트워크삭제
. ./kvmLib
delTitle="삭제할네트워크선택"
vListUpdate vnet
vnetListView $delTitle
while [ 1 ]
do
dialogCall ${vnetListArray[*]}
if [ -n $selectNum ] && [[ $selectNum =~ $isNum ]]
then
vnetDel ${vnetListArray[$selectNum]}
vListUpdate vnet
vnetListView $delTitle
dialogCall ${vnetListArray[*]}
el... | true |
8a3aa40bb40ac112445ebd14608ba203e4a63cf6 | Shell | rhgkstjf/Web-Log-Mining | /DataAnalysis_scala_version2.sh | UTF-8 | 2,306 | 3.046875 | 3 | [] | no_license | #!/bin/bash
P=$(date "+%Y-%m-%d")
mkdir [UserHomePath]/AutoLab/Week_DF/$P
echo {"-------------오늘은 $P입니다. 데이터 배치 분석 자동화 시작합니다.-------------"}
echo "-------------url 크롤링 시작 ----------------------"
python3 crw.py
sleep 2m
hadoop fs -put urldata.json /urldata/urldata.json
echo "-------------url 데이터 갱신 완료 -----------------... | true |
015c87bc820f2ef9ba9d6306c45d5da4e3b2e288 | Shell | crr0004/workspace-setup | /scripts/copyme.sh | UTF-8 | 305 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#Copies relevant files to the correct locations
#$1 should be dir to copy to
if [[ -n "$1" ]] && [ -d $1 ];
then
for file in $( ls -A ../files/ ); do
(cd ../files && ln -bs $(pwd)/$file $1/.$file)
done
exit
else
echo "Must supply a directory to copy to. Suggest home directory of ~/"
fi
| true |
88007332164d3bb3955ca577c02cee98a90ea5b3 | Shell | lukeburpee/archived-legalease-code | /legalease/scripts/shell/email-data-extraction/run_ocr_processing.sh | UTF-8 | 455 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
set +x
set -e
MEMORY=$1
echo "===========================================$0"
OUTPUT_DIR='ocr_output'
if [[ -d "/usr/src/app/pst-extract/$OUTPUT_DIR" ]]; then
rm -rf "/usr/src/app/pst-extract/$OUTPUT_DIR"
fi
spark-submit --master local[*] --driver-memory $MEMORY --files spark/filters.py,ocr/... | true |
96927d3e5b73cd3f44793cab4a3091ab607f0484 | Shell | kabir/large-domain | /client-scripts/tag-started-slaves.sh | UTF-8 | 1,205 | 4.03125 | 4 | [] | no_license | #!/bin/bash
echo ========================================================
echo Tagging all non running servers as Type=Slave, Name=SlaveXX
echo ========================================================
if [[ -z "${1+x}" ]] ; then
COUNTER=0
else
COUNTER=$1
fi
function tag {
if [[ "$1" != "0" ]] ; then
... | true |
3e0fd81500af910a67e97f5f4ca0bd04054b2653 | Shell | hgrif/data-science-box | /provisioning/common/templates/bash_aliases | UTF-8 | 756 | 2.9375 | 3 | [
"BSD-2-Clause-Views"
] | permissive | alias ll='ls -alF'
alias la='ls -A'
alias l='ls -1 --group-directories-first'
alias j='jump'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;... | true |
048d343300afab8183813620603a7d26dc2d9bab | Shell | jrabinow/homedir-scripts | /clean_env | UTF-8 | 306 | 3.53125 | 4 | [] | no_license | #!/usr/bin/env bash
function main()
{
tmpdir="$(mktemp -d)"
tmprc="$(mktemp)"
cat > "$tmprc" << EOF
PS1='\$ '
cd "$tmpdir"
EOF
env - HOME="$tmpdir" TERM="$TERM" bash --noprofile --rcfile "$tmprc"
rm -rf "$tmpdir" "$tmprc"
}
if [ "${BASH_SOURCE[0]}" == "$0" ]; then
main "$@"
fi
| true |
f132213ebef89aff7d00e260507623e1fe9be096 | Shell | hasim-a/axpbox | /test/rom/test.sh | UTF-8 | 660 | 3.265625 | 3 | [] | no_license | #!/bin/bash
# Download the firmware
wget 'http://80.211.96.38/s/inc/downloads/es40-srmon/cl67srmrom.exe'
# Start AXPbox
../../build/axpbox run &
AXPBOX_PID=$!
# Wait for AXPbox to start
sleep 3
# Connect to terminal
ncat -t 127.0.0.1 21000 | tee axp.log &
NETCAT_PID=$!
# Wait for the last line of log to become P00... | true |
c052db84689899ad6b2130c306edcae90d673432 | Shell | mvandorp/server-addons | /install-plugins.sh | UTF-8 | 2,399 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#######################################################################
### EDIT THESE PATHS FOR YOUR OWN SETUP ###
#######################################################################
# The left4dead2 directory of your server
L4D2_DIR="$HOME/Steam/steamapps/common/Left 4 De... | true |
cf181cc4b09abec20e9f09df3f885f2e9e685d4d | Shell | lennartkester/CNVanalysis | /collectNormalCountsv2.sh | UTF-8 | 1,812 | 3.421875 | 3 | [] | no_license | #!/bin/bash
## script to laucn CNV calling GATK CNV calling pipeline on tumor normal pairs in folder ##
## folder needs to be specified and two files normal.csv and tumor.csv need to be present which list the PMABM IDs of the normal and tumor samples respectively ##
## normal.csv and tumor.csv need to be in correspond... | true |
8f9c9d3bfa300e1b878a89a4cfafb6e8334fef3e | Shell | lingobug/TRmorph | /SFST/archive.sh | UTF-8 | 327 | 2.921875 | 3 | [] | no_license | #!/bin/sh
dirname=$1
mkdir -p /tmp/archive-tmp-$$/$dirname
make
rsync --exclude-from=dist-exclude -avH . /tmp/archive-tmp-$$/$dirname
rsync trmorph.a /tmp/archive-tmp-$$/$dirname/$dirname.a
cd /tmp/archive-tmp-$$
tar czvf $dirname.tar.gz $dirname
cd -
mv /tmp/archive-tmp-$$/$dirname.tar.gz .
rm -fr /tmp/archive-... | true |
18300e3dd9764c0527868c81491ec88fbe40fea9 | Shell | goelrhea1992/UsingKnowledgeGraphs | /run.sh | UTF-8 | 233 | 3.1875 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -ne 2 ] && [ "$#" -ne 6 ]; then
echo "Illegal number of parameters"
fi
if [ "$#" -eq 6 ]; then
python InfoBox.py "-$1" $2 $3 "'$4'" $5 $6
else if [ "$#" -eq 2 ]; then
python InfoBox.py "-$1" $2
fi
fi
| true |
c0a06a48d54bba4fa9d8ab34212fc7401c00e829 | Shell | AnNiran-zz/operator-v1 | /scripts/generate.sh | UTF-8 | 242 | 3.03125 | 3 | [] | no_license | #!/bin/bash
crd=$1
current_dir=$PWD
cd $GOPATH/src/k8s.io/code-generator
./generate-groups.sh all operator-v1/pkg/client/${crd} operator-v1/pkg/apis ${crd}:v1
res=$?
if [ $res -ne 0 ]; then
cd $current_dir
exit 1
fi
cd $current_dir | true |
be8375ab9fc88404b75d810151bc228c99adfef7 | Shell | vojto/stefan-server | /add_slovak_girls_to_db.sh | UTF-8 | 652 | 3.046875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
cat slovak_girls.txt | tr [:upper:] [:lower:] > zoznam_sk_dievcat.txt
for i in $( cat slovak_girls.txt ); do echo $i.jpg >> cesta_sk_dievcat.txt; done
DATE=$(date +%Y-%m-%d)
mena="zoznam_sk_dievcat.txt"
cesta="cesta_sk_dievcat.txt"
#mysql
MYSQL_SERVER="127.0.0.1"
MYSQL_USER="root"
MYSQL_PW="jahodka;"
MYS... | true |
4bfc0bbfac2e627f502e3a4bfc769b78af8856cc | Shell | apache/jena | /apache-jena/bin/tdbbackup | UTF-8 | 2,471 | 3.9375 | 4 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | #!/bin/sh
## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
resolveLink() {
local NAME=$1
if [ -L "$NAME" ]; then
case "$OSTYPE" in
darwin*|bsd*)
# BSD style readlink behaves differently to GNU readlink
# Have to manually follow links
while [ -L "$NAME" ];... | true |
397087d00a0ee7eca208ad923ef1fd021b152c3e | Shell | andrea993/UXIbot | /question | UTF-8 | 474 | 3.296875 | 3 | [] | no_license | #!/bin/bash
echo "Why hello there.
Would you like some tea (y/n)?"
read answer
[[ $answer =~ ^([yY][eE][sS]|[yY])$ ]] && echo "OK then, here you go: http://www.rivertea.com/blog/wp-content/uploads/2013/12/Green-Tea.jpg" || echo "OK then."
until [ "$SUCCESS" = "y" ] ;do
echo "Do you like Music? mykeyboardstartshere Ya... | true |
52e208dddad82c0cfede31007275354f133656ac | Shell | dukkhadevops/myrepo | /certbot/cf-update.sh | UTF-8 | 627 | 3.125 | 3 | [] | no_license | #!/bin/bash
#see api url below to see how these are used
ZONE_ID=1bee9bffffffffffffffffffffffffffff # zone id for contoso.com
RECORD_ID=3b71eeeeeeeeeeeeeeeeeeeeeeeeeeee # record id for _acme-challenge.contoso.com
echo "Update Cloudflare DNS TXT record"
curl -s -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE... | true |
ed93a53680f6844f5ccb252845ef5f4c4146f1f2 | Shell | brenard/eesyvpn | /src/etc/eesyvpn/eesyvpn.conf | UTF-8 | 1,479 | 2.703125 | 3 | [] | no_license | #!/bin/bash
VPN_NAME="eesyvpn"
VPN_PORT="1190"
# Certification Authority
CAHOME=/etc/eesyvpn/$VPN_NAME
CRT_DIR=$CAHOME/certs
CRT_REVOKED_DIR=$CRT_DIR/revoked
KEY_DIR=$CAHOME/private
KEY_REVOKED_DIR=$KEY_DIR/revoked
CSR_DIR=$CAHOME/csr
CSR_REVOKED_DIR=$CSR_DIR/revoked
PEM_DIR=$CAHOME/pem
PEM_REVOKED_DIR=$PEM_DIR/revok... | true |
49601eac8fa158b3df1effcc03c7b6bf396e86e2 | Shell | tunix/digitalocean-dyndns-armv7 | /dyndns.sh | UTF-8 | 1,517 | 4.09375 | 4 | [] | no_license | #!/bin/sh
api_host="https://api.digitalocean.com/v2"
sleep_interval=${SLEEP_INTERVAL:-300}
die() {
echo "$1"
exit 1
}
test -z $DIGITALOCEAN_TOKEN && die "DIGITALOCEAN_TOKEN not set!"
test -z $DOMAIN && die "DOMAIN not set!"
test -z $NAME && die "NAME not set!"
dns_list="$api_host/domains/$DOMAIN/records"
w... | true |
8f8e6667bb6b98dce83e17b95f1964810a5260f6 | Shell | iridium-browser/iridium-browser | /native_client/tools/create_redirectors.sh | UTF-8 | 989 | 3.9375 | 4 | [
"BSD-3-Clause",
"Zlib",
"Classpath-exception-2.0",
"BSD-Source-Code",
"LZMA-exception",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-intel-osl-1993",
"HPND-sell-var... | permissive | #!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -Ceu
prefix="$1"
if [[ ! -d "$prefix" ]]; then
echo "Usage: $0 toolchain-prefix"
exit 1
fi
# Redirectors on *nix:
# The p... | true |
171c1561eae382639c4de4e824bb742063cced95 | Shell | Ed-ITSolutions/Xen-Server-Backup | /vm_backup.sh | UTF-8 | 1,645 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#
# Citrix XenServer 5.5 VM Backup Script
# This script provides online backup for Citrix Xenserver 5.5 virtual machines
#
# @version 3.01
# @created 24/11/2009
# @lastupdated 01/12/2009
#
# @author Andy Burton
# @url http://www.andy-burton.co.uk/blog/
# @email andy@andy-burton.co.uk
#
# Get current di... | true |
c7edbcf36ba97b66b454ab3a922f7877d52ed94b | Shell | anndoan/optional_class | /chip-seq/coverage_chipseq.sh | UTF-8 | 1,373 | 3.4375 | 3 | [] | no_license | #! /usr/bin/env bash
#BSUB -J ChIP_coverage
#BSUB -o logs/chip_coverage_%J.out
#BSUB -e logs/chip_coverage_%J.err
#BSUB -R "select[mem>4] rusage[mem=4]"
#BSUB -n 1
set -u -e -x -o pipefail
# install programs if necessary (for macOSX)
# brew install meme bowtie2 samtools
# pip install macs2
# load modules if on Tes... | true |
6897c40e88bf27b181fc011d093a6296d2610496 | Shell | bikash/ScriptsDebian | /install_pylucene.sh | UTF-8 | 313 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#
source $VIRTUAL_ENV/bin/activate
mkdir tmp-lucene
pushd tmp-lucene
ROOT=$(dirname $0)
wget http://www.apache.org/dist/lucene/pylucene/pylucene-3.0.2-1-src.tar.gz
tar -xzf pylucene-3.0.2-1-src.tar.gz
pushd pylucene-3.0.2-1
cp ../../$ROOT/Makefile .
make
make install
popd
popd
rm -rf tmp-lucene | true |
bba6156144f020f426f53a48f5eb82d9a0385dea | Shell | llx2wyf/k8s | /dnsimage.sh | UTF-8 | 389 | 2.84375 | 3 | [] | no_license | #!/bin/bash
images=(k8s-dns-dnsmasq-nanny-amd64:1.14.4 k8s-dns-kube-dns-amd64:1.14.4 k8s-dns-sidecar-amd64:1.14.4)
for imageName in ${images[@]} ; do
# printf "%s\n" $imageName
#docker pull llx2wyf/$imageName
#docker tag llx2wyf/$imageName gcr.io/google_containers/$imageName
#docker rmi llx2wyf/$imageName
do... | true |
d5635a631d0d55409a1af12ae169d3b3070f05d8 | Shell | winunix/winunix-icefy | /main.sh | UTF-8 | 678 | 3.046875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
cat /etc/passwd | grep -v 'syslog' | grep /home/ | awk '{split($0,a,":"); print a[1]":"a[6]}' > /tmp/ListOfUsers.ice
for reg in $(cat /tmp/ListOfUsers.ice); do
user=$(echo $reg | cut -d ":" -f 1);
folder=$(echo $reg | cut -d ":" -f 2);
echo "Freezing user "$user
cd $folder
find . | grep -v "$(cat ... | true |
f85c695e2fefd722ce2c66fbbb162cf9d8d41ce8 | Shell | emersion/mrsh | /test/read.sh | UTF-8 | 196 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/sh -eu
printf | read a
echo $?
i=0
printf "a\nb\nc\n" | while read line; do
printf "%s\n" "${line:-blank}"
i=$((i+1))
[ $i -gt 10 ] && break
done
[ $i = 3 ] && echo "correct!"
| true |
7b3b9e66d3df7e299b3a1ea73ce7f9e63b1e9c75 | Shell | mlcommons/ck | /cm-mlops/script/get-cuda-devices/run.sh | UTF-8 | 460 | 3.09375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
# Compile
rm a.out
echo ""
echo "Checking compiler version ..."
echo ""
${CM_NVCC_BIN_WITH_PATH} -V
echo ""
echo "Compiling program ..."
echo ""
cd ${CM_TMP_CURRENT_SCRIPT_PATH}
${CM_NVCC_BIN_WITH_PATH} print_cuda_devices.cu
test $? -eq 0 || exit 1
# Return to the original path obtained in CM
echo ... | true |
50a9857d5fd2315921db73cb13dffbea553dea23 | Shell | LoveEatChicken/CrystalScrapy2 | /onlinesys/searchkit/indexupdate/bin/run.sh | UTF-8 | 500 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env bash
if [ x"$#" == x"0" ];then
echo "Usage : $0 program"
exit
fi
PROGRAM=$1
shift
RUN_PATH=`cd $(dirname $0)/..;pwd`
export RUN_PATH
echo "program home : $RUN_PATH"
mkdir -p "$RUN_PATH/tmp"
mkdir -p "$RUN_PATH/log"
mkdir -p "$RUN_PATH/data"
mkdir -p "$RUN_PATH/status"
if [ ! -f "${RUN_PATH}/... | true |
fd42b9e289b57e0a9c09af0198b898d8d454ea0a | Shell | zhengchalei/spring-boot-plus | /docs/bin/install/install-mysql.sh | UTF-8 | 1,857 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/shell
# Copyright 2019-2029 geekidea(https://github.com/geekidea)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | true |
521579aa74fa701e0df89eb545d13504821bbb1d | Shell | DreamSworK/Wakfu-Mod-Installer | /upx.sh | UTF-8 | 222 | 3.015625 | 3 | [] | no_license | #!/bin/bash
file="WakfuModInstaller"
if [ $(uname -s) == 'Darwin' ]
then
upx -9 "$file.app/Contents/MacOS/$file"
else
if [ $(uname -m) == 'x86_64' ]; then m="x86_64"; else m="i386"; fi
upx -9 "$file.$m.run"
fi
| true |
d998925f89c465b9f4e66330dba18ff31904b97f | Shell | vaeth/set_prompt | /bin/set_prompt.sh | UTF-8 | 1,186 | 3.671875 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | #!/usr/bin/env cat
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
#
# This sample script is meant to be evaluated by zsh or bash (or the script
# sourced) if in interactive mode.
# In this example, HOSTTEXT is an additional information about the HOST,
# and HOSTTEXTSAVE provides the p... | true |
ba46de2c8ec2f0c041c1d5298dffb254aa56967c | Shell | tejan74/openstack-k8s | /rabbitmq-server/data/bootstrap/bootstrap.sh | UTF-8 | 618 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
source /bootstrap/functions.sh
get_environment
echo $RABBIT_COOKIE > /var/lib/rabbitmq/.erlang.cookie
chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie
chmod 400 /var/lib/rabbitmq/.erlang.cookie
rabbitmq-server -detached
sleep 6
rabbitmqctl add_user $RABBIT_USERID $RABBIT_PASSWORD
rab... | true |
320d5cca6d9f40cf5aa61df9000157101ccd1f94 | Shell | snatella/wine-runner-sc | /wine-git.sh | UTF-8 | 3,832 | 3.953125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. $DIR/common.sh
if [[ "$wine_version" == "" ]]; then
echo "Please set wine_version to continue, e.g. export wine_version=4.21"
exit 1
fi
if [[ "$no_limit_depth" == "yes" ]]; then
echo "Not limiting depth - bewar... | true |
35dbbeaa77e18f6ada7bcb1ec31fb4cf6d5f0b75 | Shell | antoniomzrl/gitrepo3 | /simus/2011au/plothg.sh | UTF-8 | 165 | 2.953125 | 3 | [] | no_license |
mkdir -p plots
for d in $* ; do
cd $d
echo 'xxx ' $d
gnuplot ../plothg.gp
for f in *eps ; do
mv $f ../${d}_plots/${d}_$f
done
cd -
done
| true |
2283cd15a8e54eb8d0e31e097f34a1fd0256f800 | Shell | wedmonster/myconf | /install_linux.sh | UTF-8 | 332 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# set vim configuration
echo "set vim configuration"
cp -r .vim ~/
if [ -f ~/.vimrc ]; then
echo "remove existing ~/.vimrc"
rm ~/.vimrc
fi
if [ -f ~/.gvimrc ]; then
echo "remove existing ~/.gvimrc"
rm ~/.gvimrc
fi
ln -s ~/.vim/.vimrc ~/.vimrc
ln -s ~/.vim/.gvimrc ~/.gvimrc
vim +PluginIns... | true |
4a126db828c8d24ab4b5c207efdd5a209b7e7fc7 | Shell | canders1/ProSPer | /formatting/format_all.sh | UTF-8 | 2,041 | 2.875 | 3 | [
"BSD-3-Clause"
] | permissive | cat lemmalist.txt | while read lemma
do
echo $lemma;
python3 formatfile.py "../corpus_data/OANC_spoken_all/spoken_"$lemma"_all.txt" OANC_spoken $lemma gpt "../corpus_data/formatted/OANC_spoken_"$lemma".tsv";
python3 formatfile.py "../corpus_data/OANC_written_all/written_1_"$lemma"_all.txt" OANC_written $lemma gpt "... | true |
fe4475e54e8e3e65566b261aff1aa2220c52785d | Shell | LukeMathWalker/kube-rs | /examples/admission_setup.sh | UTF-8 | 1,885 | 3.453125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
# This script is loosely adapting the TLS setup described in
# https://kubernetes.io/blog/2019/03/21/a-guide-to-kubernetes-admission-controllers/#tls-certificates
# for local development
# Require: a private ip reachable from your cluster.
# If using k3d to test locally, then pro... | true |
90ae5bb88d8c48b6480cd265b1c608b55f4a270d | Shell | kaji-project/kaji-project | /tools/repo/repo-create-rpm.sh | UTF-8 | 784 | 3.75 | 4 | [] | no_license | #!/bin/bash
# DEPS
# createrepo
REPO_FOLDER=$1
DISTRO=$2
SIG_NAME=$3
# bash tools/repo-create-rpm.sh /srv/kaji-repo/ RHEL7 "Kaji Project"
DISTRO_FOLDER="${REPO_FOLDER}/${DISTRO}"
CREATEREPO=`which createrepo`
# Check reprepro
if [ "$CREATEREPO" = "" ]
then
echo "createrepo is missing"
exit 2
fi
# Check ... | true |
b6d9669dc8813ddc0131f82ee4d174bd88171b46 | Shell | Yaselley/pyVAD | /run_vad.sh | UTF-8 | 1,290 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#SBATCH -A shchowdhury@hbku.edu.qa
#SBATCH -J VADtest
#SBATCH -o vad_out.txt
#SBATCH -e vad_err.txt
#SBATCH -p gpu-all
#SBATCH --gres gpu:0
#SBATCH -c 40 #number of CPUs needed
module load cuda10.1/toolkit gcc6 slurm cmake
source ~/anaconda3/bin/activate ~/anaconda3/envs/vad
#pip install -r ./requirement... | true |
4f38da04d87a45afec131813aefd546251d1a27b | Shell | kumaraguru98/shelL_script_problems | /day6/whileloop/extension_program_to_count_head_and_tail_in_flipcoin.sh | UTF-8 | 353 | 3.296875 | 3 | [] | no_license | #!/bin/bash
while [[ $headcount -ne 11 && $tailcount -ne 11 ]]
do
coinflipped=$(( $RANDOM%2 ))
if [[ $coinflipped -eq 1 ]]
then
echo Heads
headcount=$(( $headcount+1 ))
else
echo Tails
tailcount=$(( $tailcount+1 ))
fi
done
echo headcount: $headcount and tailcount $tailcount
if [[ headcount -ge 11 ]]
then
echo he... | true |
eb9b30f997c91fb741f6cb4a8d4a55225873261a | Shell | muschellij2/greedyreg | /configure | UTF-8 | 1,161 | 3.09375 | 3 | [] | no_license | #!/bin/bash
CXX_STD=CXX11
ITKDIR=`${R_HOME}/bin/Rscript -e 'a<-ITKR:::itkDir(); cat(a)'`
# get a version of cmake
CMAKE_BUILD_TYPE=Release
# get / set up ANTs code
gh=https://github.com/pyushkevich/greedy
git clone $gh greedydir
mkdir -p src
cd ./src
echo "execs = c('greedy', 'lddmm', 'libgreedyapi.a', 'test_accum')... | true |
26cc95ad3660b18458ad4021b04d0703b8b5de22 | Shell | jvm-repo-rebuild/reproducible-central | /build_diffoscope.sh | UTF-8 | 1,122 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
# path to .buildcompare file
compare=$1
# relative path to source code, usually buildcache/${artifactId}
builddir=$2
diffoscope_file=$(dirname ${compare})/$(basename ${compare} .buildcompare).diffoscope
count="$(grep "^# diffoscope" ${compare} | wc -l)"
echo -e "saving build diffoscope file to \0... | true |
d188449c45c2bbcac40fd03190ab6cf5c3c4bf15 | Shell | linsalrob/EdwardsLab | /prophages/run_phispy_snakemakes.sh | UTF-8 | 874 | 2.578125 | 3 | [
"MIT"
] | permissive | # shell script so I can run all the snakemakes!
WD=$PWD
cd phispy_metrics
echo "Running phispy in phispy_metrics"
snakemake -s phispy_metrics.snakefile -j 12
snakemake -s phispy_no_metrics.snakefile -j 12
python3 summarize.py
cd $WD
cd phispy_tests
echo "Running phispy in phispy_tests"
snakemake -s /home3/redwards/G... | true |
92b4206633ef61bb1b93e16d5b7f2e36419f592f | Shell | soloboan/imputation | /FIMPUTE/FIminor.sh | UTF-8 | 11,516 | 3.8125 | 4 | [] | no_license | #!/bin/bash
###############################
ref=$1
outref=$2
finaloutfile=$3
outformat=$4
Allelecode=$5
Pedigree=$6
###############################
echo " "
echo " "
echo "@***********************************************************************@"
echo "@ Genotype imputation of sporadic missing alleles ... | true |
6344d0620d3b6326ea445391c00d56c1d2f537fe | Shell | faenrir/dots | /scripts/drawterm | UTF-8 | 245 | 2.90625 | 3 | [] | no_license | #!/bin/sh
# spawn a new terminal window inside a drawn rectangle
set -e
wglyph=9
hglyph=18
border=2
slop | tr 'x+' ' ' | {
read w h x y
w=$(( ( w - border ) / wglyph ))
h=$(( ( h - border ) / hglyph ))
exec st -g ${w}x${h}+${x}+${y} &
}
| true |
74d50dc4100b20570a49c4d570b708768befbdbb | Shell | ahmedcs/FLASHE | /experiments/app/standalone_install.sh | UTF-8 | 2,142 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# cannot even proceed with FATE if not having sudo privilege
echo "[INFO] Check sudo privilege..."
if ! groups | grep "\<sudo\>" &> /dev/null; then
echo "[FAILED] You need to have sudo priviledge for deploying FATE"
fi
# install anaconda if necessary
CONDA_DIR=$HOME/anaconda3
if [ ! -d $CONDA_DIR ]; th... | true |
99e7a1b61ff5b95f50ca030ce9e5af10526d6723 | Shell | jpgalmeida/bep-iot | /hlf_kafka/generateArtifacts.sh | UTF-8 | 2,692 | 3.578125 | 4 | [] | no_license | #!/bin/bash +x
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
#set -e
CHANNEL_NAME1=$1
: ${CHANNEL_NAME1:="mychannel"}
echo $CHANNEL_NAME1
export PATH=$GOPATH/src/github.com/hyperledger/fabric/build/bin:${PWD}/../bin:${PWD}:$PATH
export FABRIC_CFG_PATH=${PWD}
echo
## Genera... | true |
f6d13c0d3ff8667ec8a5e83ffb6d76bcc74e49fe | Shell | brahimrafik/bluebank-atm-server | /atm-startup.sh | UTF-8 | 278 | 2.5625 | 3 | [] | no_license | #! /bin/bash
# ATM run server
cd /tmp/ATM-SERVER/lib
runningJar=$(ls bluebank-atm-*.jar)
echo " -- launching ATM CLIENT (NGINX) : nginx"
nginx
echo " -- launching ATM SERVER : java -jar ${runningJar} org.bluebank.Application"
java -jar ${runningJar} org.bluebank.Application
| true |
d619d7d19fe3571765a53941081b40d1184f32b0 | Shell | net3f/web3-assets-chart | /rclone-container/sync.sh | UTF-8 | 1,894 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
mkdir -p /root/.config/rclone/
echo [$DRIVE_NAME] > /root/.config/rclone/rclone.conf
echo type = $DRIVE_NAME >> /root/.config/rclone/rclone.conf
echo scope = $DRIVE_NAME.$DRIVE_SCOPE >> /root/.config/rclone/rclone.conf
echo root_folder_id = $ROOT_FOLDER_ID >> /root/.config/rclone/rclone.conf
echo token = $D... | true |
f2e4400a7636c3190ee359714ad41b25886db9b2 | Shell | zhenjun85/myscript | /mymemo | UTF-8 | 1,158 | 3.703125 | 4 | [] | no_license | #!/bin/bash
memofolder=~/bin/data/memo/
addmemo() {
myecho -y "=========Enter The Memo Title========="
read _title
title=`echo $_title |sed "s/ /_/g"`
cd $memofolder
vim $title
}
showmemo() {
myecho -c "==========Select The Memo =========="
cd $memofolder
select memo in `ls`
do
... | true |
c0d10086a4ca1aa5e882acaa5ea93134fb6cc715 | Shell | knochelh/deptools | /contrib/gerrit/update-change | UTF-8 | 1,009 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Usage: update-change change_id [ref]
#
# Push a new patchset for the given change_id.
# The new ref is pushed for the code review (default: HEAD).
#
# If the gerrit remote is defined, use it, otherwise
# push directly to the server defined in config.sh.
#
# User email is excluded from the review... | true |
85a582a38cc7ddfdb5f305d16700365dee90335b | Shell | thomasrogerlux/fromwebtopdf | /fromwebtopdf.sh | UTF-8 | 1,733 | 3.9375 | 4 | [] | no_license | #!/bin/bash
cd $(dirname $0)
source ./src/config.sh
rebuild=0
clean=0
log=0
parallel_runs=$default_parallel_runs
function get_args {
while [[ $# -gt 0 ]]
do
arg=$1
case $arg in
-r|--rebuild)
rebuild=1
shift
;;
-c|--clean)
... | true |
a8b5644e44d0ba904ee08fee660a68f8a33e3bc3 | Shell | sKanoodle/ns-server | /client.sh | UTF-8 | 223 | 2.796875 | 3 | [] | no_license | #!/bin/bash
SERVER_NAME=''
SERVER_PORT='24654'
ENTRY=''
PW=''
IP=$( curl -s 'ipinfo.io' | jq -r '.ip' )
(echo -e "login: ${ENTRY}\n${PW}\n\nchange-ip: ${IP}\n"; sleep 5) | openssl s_client -connect $SERVER_NAME:$SERVER_PORT | true |
50e7c47126c15d473e59fa0e9c0a79a5327ef6f6 | Shell | brontosaurusrex/bucentaur | /.experiments/bin/wallpapers | UTF-8 | 366 | 3.34375 | 3 | [] | no_license | #!/bin/bash
# rotate wallpapers
setit (){
nitrogen --set-zoom-fill --set-color=#456 --random "$HOME/wallpapers"
}
# restart
restart() {
if pgrep -x "$1" > /dev/null
then
(echo "$1 running, restarting"
killall -w "$1"
"${1}" &) &
else
echo "$1 wasn't running"
fi
}
# main loop 4ever
while true
do
... | true |
5dd7973bd721841601701d1d66a116bc7b21e103 | Shell | aws-samples/aws-service-catalog-reference-architectures | /codepipeline/install.sh | UTF-8 | 3,895 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script will setup the Automated pipeline, IAM Roles, and a ServiceCatalog Portfolio using the
# reference architecture as example products. This will create resources in your currently active CLI account
# across three regions using CloudFormation StackSets. You will be responsible for any costs ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.