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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
194ee69efbc0566d1d4c95e3c19c990423e4760e | Shell | cronburg/scripts | /oneshot/fix_dropbox.sh | UTF-8 | 432 | 3.25 | 3 | [] | no_license | #!/bin/bash
IFS=$(echo -en "\n\b")
d1="$HOME/Dropbox/Camera Uploads"
d2="$HOME/Dropbox/pics"
for f1 in `ls -1 "$d1"`; do
f2=`find "$d2" -name "$f1"`
if [ "$f2" ]; then
# difference in file sizes (negative means file in Camera\ Uploads is short)
diff=$(echo $(wc -l "$d1/$f1" | awk '{print $1}' | tr -d '\n')-$(wc -... | true |
0432919286f145e194c0f549f0b1787b0d764d83 | Shell | chejunwei2/kaldo | /examples/silicon_bulk_LDA_ASE_QE_hiPhive/get_reference.sh | UTF-8 | 539 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | # get_reference.sh is used to
# obtain reference calculations
# for example silicon_bulk_LDA_QE_hiPhive
# Fetch precalculated force constants folder from remote
wget https://www.dropbox.com/s/bvxk7zkcyv8d3ak/silicon_bulk_LDA_ASE_QE_hiPhive.tar.gz?dl=0
mv silicon_bulk_LDA_ASE_QE_hiPhive.tar.gz?dl=0 silicon_bulk_LDA_AS... | true |
7e01fc7491e3db1df4423b7a71df4ccb57c7624f | Shell | afrittoli/scaling_pipelines_with_tekton | /build.sh | UTF-8 | 294 | 2.6875 | 3 | [] | no_license | #!/bin/sh
#
TEX_FILENAME=scaling_pipelines_with_tekton
# Reproducible latex builds
SOURCE_DATE_EPOCH=0 SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1 xelatex ${TEX_FILENAME}.tex &> /dev/null
if [ ! $? -eq 0 ]; then
echo ${TEX_FILENAME}.tex cannot be compiled
tail -30 ${TEX_FILENAME}.log
exit 1
fi
| true |
e75aa76f0e016e26699b39e918f288b8675d4cd5 | Shell | arcusfelis/eodbc | /tools/travis-setup-db.sh | UTF-8 | 4,328 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
# Environment variable DB is used by this script.
# If DB is undefined, than this script does nothing.
set -e
TOOLS=`dirname $0`
cd "$TOOLS/.."
# There is one odbc.ini for both mssql and pgsql
# Allows to run both in parallel
function install_odbc_ini
{
# CLIENT OS CONFIGURING STUFF
#
# Be aware... | true |
e37e3791af6189fcbee037ca3514373556227deb | Shell | Dhirajsharmain/shell-programming | /selection-statements/case-statement/prob3.sh | UTF-8 | 502 | 3.578125 | 4 | [] | no_license | #!/bin/bash -x
#Date of Creation : Sun, May 9, 2021 8:16:26 PM
#Created By : Dhiraj
read -p "Enter a number in 1, 10, 100, 1000, 10000, 100000 format : " num
if [ $num -ge 0 ] && [ $num -le 100000 ]
then
case $num in
1)
echo $num : ONE
;;
10)
echo $num : TEN
;;
100)
echo $num : HUNDRED
;;
... | true |
02e71bb0f66ea4c9d30cccf2d99a0876390dc4cc | Shell | codehz/mcpe-arch | /mcpe-sdk/PKGBUILD | UTF-8 | 440 | 2.515625 | 3 | [] | no_license | pkgname=mcpe-sdk
pkgver=0.1
pkgrel=2
pkgdesc="Android SDK custom build for minecraft pe server"
arch=('x86_64')
license=('GPL')
depends=()
makedepends=('android-ndk')
source=()
url='https://developer.android.com/ndk/'
options=(!strip)
# PKGEXT=.pkg.tar
NDK=/opt/android-ndk
package() {
mkdir -p "$pkgdir/opt/"
$NDK... | true |
7d61b1662e6c9b0c09eaee6f0ec9d2d3933cd75f | Shell | ManOfTeflon/config | /bin/run_old | UTF-8 | 9,359 | 3.828125 | 4 | [] | no_license | #!/bin/bash
usage_message='run is a bash script which manages the lifetimes of various screen sessions and processes.
Example usage:
Start memsql single box
run start memsqld
The same thing with gdb attached
run -g start memsqld
run gets a little confused by the aliases, so I have sql/mysqld symlinked to ~/bin/mems... | true |
938e471db1a1ec0d31ced7e7ba8728636fbf6b21 | Shell | ig0r/anax | /agent-install/agent-install.sh | UTF-8 | 47,908 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# The script installs Horizon agent on an edge node
set -e
SCRIPT_VERSION="1.1.0"
SUPPORTED_OS=( "macos" "linux" )
SUPPORTED_LINUX_DISTRO=( "ubuntu" "raspbian" "debian" )
SUPPORTED_LINUX_VERSION=( "bionic" "buster" "xenial" "stretch" )
SUPPORTED_ARCH=( "amd64" "arm64" "armhf" )
# Defaults
PKG_PATH="."
... | true |
e797d74b661431a6a71fe855375d533146c6e757 | Shell | myang32/basebox-slave | /bootstrap.sh | UTF-8 | 1,970 | 2.90625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
if [ ! -d resources/ ]; then
mkdir -p resources
fi
if [ ! -f resources/Vagrantfile-global ]; then
if [ -f /vagrant/resources/basebox-slave/Vagrantfile-global ]; then
echo "Deploying Vagrantfile-global from Host to vApp sync folder"
cp /vagrant/resources/basebox-slave/Vagrantfile-global resources... | true |
d9b9507540d40517cf57ff8b14738b934872d8aa | Shell | harshitgupta412/OCDE | /api/new_user.sh | UTF-8 | 319 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p "./files/${1}"
mkdir -p "./files2/${1}"
mkdir -p "./files2/${1}/${1}"
cp "./run.sh" "./files2/${1}/run.sh"
mount --bind -o ro "./files/${1}" "./files2/${1}/${1}"
for ch in "bin" "lib" "lib64" "usr"
do
mkdir -p "./files2/${1}/${ch}"
mount --bind -o ro "/${ch}" "./files2/${1}/${ch}"
done
| true |
b084edf7b1cf69a0ccca4bd866d8ec1db3ced771 | Shell | charlieporth1/ubuntu-scripts | /prog/heath-check.sh | UTF-8 | 9,151 | 3.4375 | 3 | [] | no_license | #!/bin/bash
echo "Date last open `date`"
source $PROG/all-scripts-exports.sh
CONCURRENT
LOG_FILE=$LOG/health_check.log
LOCK_FILE=/tmp/health-checks.stop.lock
echo "Date last ran `date`"
systemctl is-active --quiet ctp-dns.service && echo Service is running
if ! [[ -f $LOG_FILE ]]; then
echo "Created log file at $LOG_... | true |
e40a265d4e31ae42092f97db5997f9580d584088 | Shell | msys2/MSYS2-packages | /file/PKGBUILD | UTF-8 | 1,496 | 2.921875 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=file
pkgver=5.45
pkgrel=1
pkgdesc="File type identification utility"
arch=('i686' 'x86_64')
license=('custom')
url="https://www.darwinsys.com/file/"
depends=('gcc-libs' 'zlib' 'libbz2' 'liblzma' 'libzstd')
makedepends=('python' 'zlib-devel' 'libbz2-devel' 'liblzm... | true |
454be47fddf9d2faf617501e5bb9076b72aa51ab | Shell | ixfg9922/DP-403123 | /2-deploy-iko.sh | UTF-8 | 706 | 3.078125 | 3 | [] | no_license | #!/bin/bash
source ./utils.sh
get_intersystems_credentials
deploy_isc_reg_secret
msg "\nAdding Smart Data Services helm repository to helm...\n"
helm repo add sds https://intersystems.github.io/sds-charts
exit_if_error "Could no add smart data services repository to helm."
helm repo update
exit_if_error "Helm upda... | true |
4121e42eb460ee54c57914e98efe09a48fa8b828 | Shell | jhu-sheridan-libraries/lutece-init | /entrypoint.sh | UTF-8 | 3,214 | 4.125 | 4 | [] | no_license | #! /bin/bash
# If file exists, set fileValue to contents. Otherwise set fileValue to default value.
# Usage: get_file_value FILE DEFAULT_VALUE
fileValue=""
get_file_value() {
local file="$1"
fileValue="$2"
if [ -e "${file}" ]
then
fileValue=$(cat "${file}")
fi
}
# If needed, init MySQL db
#... | true |
0080d724797ea991c5f6e87b207408c6f4927015 | Shell | smangul1/imrep.GTEx | /validation/mixcr/reproduce.sh | UTF-8 | 362 | 2.546875 | 3 | [] | no_license | #cd intermediate.files
#while read line; do SRA=$(echo $line | awk '{print $1}'); new=$(echo $line | awk '{print $2}'); echo $SRA,$new; mv mixcr_${SRA}.txt mixcr_${new}.txt;done<../../sample_SRA_bio_new.txt
ls *txt | awk -F ".txt" '{print $1}' >samples.txt
while read line
do
python ../../code/mixcr.extract.py ${line}... | true |
38a1ce560aae166e05e7b1999088300db9014ae1 | Shell | andrewjbtw/dvcapture | /dvanalyze.sh | UTF-8 | 1,920 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# dvanalyzer analysis
capture_file=$1
log_dir=$2
# todo: validate file and folder input
if [ ! -d "$log_dir" ]
then
echo "$log_dir" not found
exit 1
fi
if ( echo "$capture_file" | grep "\.m2t$") # checks for ".m2t" extension
then
echo "This is an .m2t file. Skipping dvanalyzer." # dvanalyzer... | true |
abf8b50a1537d2c2633f93e897aea18eaa89004d | Shell | DerekMaffett/dotfiles | /link-configs.sh | UTF-8 | 1,448 | 2.765625 | 3 | [] | no_license | link () {
ln -fvs $HOME/dotfiles/configs/$1 $HOME/$2
}
mkdir -p ~/.config/projects/
mkdir -p ~/.config/brittany/
mkdir -p ~/.config/nvim/
mkdir -p ~/.config/nixpkgs/
mkdir -p ~/.config/nix/
mkdir -p ~/.config/terminator/
mkdir -p ~/.config/kitty/
mkdir -p ~/.config/qutebrowser/
mkdir -p ~/.config/qutebrowser/bookm... | true |
915fa1ae9f03d673607aba6d466f6908b40b6b76 | Shell | tmzt/androix-util-modular | /release.sh | UTF-8 | 5,585 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
announce_list="xorg-announce@lists.freedesktop.org"
xorg_list="xorg@lists.freedesktop.org"
dri_list="dri-devel@lists.sourceforge.net"
xkb_list="xkb@listserv.bat.ru"
host_people=annarchy.freedesktop.org
host_xorg=xorg.freedesktop.org
host_dri=dri.freedesktop.org
user=
remote=origin
usage()
{
cat... | true |
0f38956deb476813780adcacc49edeafd82c5222 | Shell | whatsondoc/Linux | /data_transfer/rsync_data_transfer--upload.sh | UTF-8 | 17,497 | 4.0625 | 4 | [] | no_license | #!/bin/bash
#_______________________________________________________________#
# Project: Remote file transfer using CPU affinity #
# Author: Ben Watson - @WhatsOnDoc #
# Date: December 2018 #
# LEGEND: #
# ## = Explanation #
# # = Commenting line for exclusion (as per usual... | true |
cfee8d075f7467f45ea8f5aeec3bf92c80ea4152 | Shell | AudiusProject/audius-protocol | /monitoring/grafana/bin/save-dashboards.sh | UTF-8 | 4,640 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
: "${BEARER_PATH:=grafana/bearer.env}"
set -o allexport
source ${BEARER_PATH}
set +o allexport
: "${GRAFANA_USER:=admin}"
: "${GRAFANA_PASS:=admin}"
: "${GRAFANA_API_URL:=localhost}"
: "${GRAFANA_API_PORT:=80}"
PASS_URL=http://${GRAFANA_USER}:${GRAFANA_PASS}@${GRAFANA_API_URL}:${GRAFANA_A... | true |
e32577ce28b9ac838124068b48fa52cfb46d0b18 | Shell | console-haishin-live/setup-client | /tmux/setup.sh | UTF-8 | 1,294 | 3.765625 | 4 | [] | no_license | #!/bin/bash
set -ue
SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd)
SRC_DIR="${HOME}/local/src"
LOCAL_DIR="${HOME}/local"
SERIAL="$(date +%Y%m%d%H%M%S)"
TMUX_VERSION="3.1b"
function download(){
echo "依存パッケージをインストールする。"
sudo apt install -y build-essential \
libncurses5-dev \
libevent-dev... | true |
84eda3003910f89e5161d3cb8ee94531475f304f | Shell | petriborg/uvloop | /.ci/build-manylinux-wheels.sh | UTF-8 | 1,000 | 3 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
set -e -x
yum update -y
yum install -y libtool autoconf automake
PYTHON_VERSIONS="cp35-cp35m"
# Compile wheels
for PYTHON_VERSION in ${PYTHON_VERSIONS}; do
PYTHON="/opt/python/${PYTHON_VERSION}/bin/python"
PIP="/opt/python/${PYTHON_VERSION}/bin/pip"
${PIP} install --upgrade pip wheel
${P... | true |
b56c3377e3168f4da66deb0ed374f54a81fe9328 | Shell | joshviki/mindtree_mine | /create_GKE/delete.sh | UTF-8 | 1,727 | 3.921875 | 4 | [] | no_license | #!/bin/bash
echo "Please wait... Collecting the GKE cluster list"
gcloud projects list --format="value(PROJECT_ID)" > temp_total.txt
nl -s ")" temp_total.txt > temp_ID.txt
while read line
do
for i in $line
do
gcloud config set project $i
gcloud container clusters list --format="value(name)" > ins_total.txt
echo... | true |
1a6e805c51b3d1da4e8b78a4612f9af6aa53c138 | Shell | rsau/lagoon | /.docker/images/govcms/scripts/govcms-deploy | UTF-8 | 4,474 | 3.375 | 3 | [] | permissive | #!/usr/bin/env bash
IFS=$'\n\t'
set -euo pipefail
# Ensure lagoon environment is set with the least destructive default.
LAGOON_ENVIRONMENT_TYPE=${LAGOON_ENVIRONMENT_TYPE:-production}
# @todo This strategy will be injected from .env or .lagoon.env Currently set to replicate the existing process.
# Determine the confi... | true |
f0069927bd348ec56994f97fd521cf4436651bd8 | Shell | itsabdessalam/devops-php-website | /start.sh | UTF-8 | 502 | 3.25 | 3 | [] | no_license | #!/bin/bash
# Retrieve all branches on local machine
git fetch
# Switch to v3 branch
git checkout v3
# Stop all running containers to prevent conflicts
docker stop $(docker ps -aq)
# Run containers
docker-compose up -d
# Open browser to check app
if hash xdg-open &> /dev/null
then
xdg-open http://localhost:808... | true |
aa6d39ebf6836a98fab7a66969fac0a9e4a93fd2 | Shell | readytowork/S29sPLMPWAtbN49RV | /workshop/readline.sh | UTF-8 | 796 | 3.171875 | 3 | [] | no_license | #!/bin/bash
a=0
substring="Saving results to result"
fileprint=""
space=" "
pass=" 1"
notpass=" 0"
nline=$'\n'
ispassp=0
while read line
do a=$(($a+1));
if ! [ "${line/$substring}" = "$line" ]
then
if [ "$ispassp" == "0" ]; then
fileprint=$fileprint$notpass$nline
fi
continue
fi
for word in $li... | true |
3fc4a1160f4b2a79606a7a6f7ab6795036857d65 | Shell | kaumiller-lab/qbb2019-answers | /day2-lunch/doRNA-seq.sh | UTF-8 | 498 | 3.046875 | 3 | [] | no_license | #!/bin/bash
GENOME=../day2-morning/BDGP6
ANNOTATION=../genomes/BDGP6.Ensembl.81.gtf
THREADS=4
for SAMPLE in SRR072893 SRR072903 SRR072905 SRR072915
do
echo "*** Processing $SAMPLE"
cp ../rawdata/$SAMPLE.fastq .
fastqc -t $THREADS $SAMPLE.fastq
hisat2 -p $THREADS -x $GENOME -U $SAMPLE.fastq -S $SAMPLE.sam
sa... | true |
3ed841b37643f7331a4a34b2548372203b84f6ca | Shell | gwinevia/2017development | /C_programming/c_compile.sh | UTF-8 | 364 | 3.828125 | 4 | [] | no_license | #!/bin/bash
basename=$1 #引数からファイル名を受取る
filename=${basename%.*} #拡張子を取った名前
if [ -a ${filename}.c ]; then
gcc -o ${filename} ${filename}.c -lm
if [ -a ${filename} ]; then
./${filename}
else
echo "** ${filename} do not made **"
fi
else
echo "** ${filename}.c does not exist **"
fi | true |
273ee22867028cdec80548d4208ec9f06fe075a9 | Shell | amithjkamath/codesamples | /cpp/opencv/CVbuild.sh | UTF-8 | 413 | 3.421875 | 3 | [] | no_license | #!/bin/sh
if [ ! -n "$2" ]
then
echo "Usage: Arg#1: .c filename, Arg#2: output name"
exit $E_BADARGS
fi
echo "compiling $1"
gcc -ggdb `pkg-config --cflags opencv` -o $2 $1 `pkg-config --libs opencv`;
# for C++ files, do this.
# for i in *.cpp; do
# echo "compiling $i"
# g++ -ggd... | true |
bf20915c79209c01211088926db0d7501d8c7b6c | Shell | marcopeg/humble-cli | /bin/inc/index-of.sh | UTF-8 | 169 | 3.5625 | 4 | [] | no_license |
indexOf() {
x="${1%%$2*}"
RES=$([[ $x = $1 ]] && echo -1 || echo ${#x})
if [ "$RES" == "${#1}" ]; then
echo -1
else
echo $RES
fi
}
| true |
f24b368f4b74d45846b3c88682d8668b1dc1b066 | Shell | Zniper1/Sor1TP2 | /MegaMenu.sh | UTF-8 | 4,921 | 3.828125 | 4 | [] | no_license | #!/bin/bash
#------------------------------------------------------
# PALETA DE COLORES
#------------------------------------------------------
#setaf para color de letras/setab: color de fondo
red=`tput setaf 1`;
green=`tput setaf 2`;
blue=`tput setaf 4`;
bg_blue=`tput setab 4`;
reset=`tput sgr0`;... | true |
8edee94e7b2e351c8f5d1812a635e4b0fd1c3968 | Shell | hk59775634/luci-app-mycpe | /files/etc/init.d/mycpe | UTF-8 | 201 | 2.625 | 3 | [] | no_license | #!/bin/sh /etc/rc.common
# /etc/init.d/mycpe
START=95
PID=/tmp/mycpe.pid
start(){
/etc/init.d/mycpe enable
/usr/sbin/mycpe start >/dev/null 2>&1 &
}
stop(){
kill -9 `cat $PID` >/dev/null 2>&1 &
}
| true |
b51bf812306767ec398f03caa2242c00c6501d1d | Shell | uc-cdis/cloud-automation | /gen3/bin/kube-setup-fenceshib.sh | UTF-8 | 1,377 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Deploy fenceshib into existing commons - assume configs are already configured
# for fenceshib to re-use the userapi db.
# This fragment is pasted into kube-services.sh by kube.tf.
#
source "${GEN3_HOME}/gen3/lib/utils.sh"
gen3_load "gen3/lib/kube-setup-init"
[[ -z "$GEN3_ROLL_ALL" ]] && gen3 kube-set... | true |
d80db4d6c8756b01733c823c330846937f5ec2b9 | Shell | Blazemeter/blazemeter-openshift | /.openshift/action_hooks/deploy | UTF-8 | 4,255 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# This deploy hook gets executed after dependencies are resolved and the
# build hook has been run but before the application has been started back
# up again. This script gets executed directly, so it could be python, php,
# ruby, etc.
set -e
DRUPAL_SITE_DIR=${OPENSHIFT_DATA_DIR}sites
DRUPAL_PR... | true |
ece21e0589c49618aacc779148c3ea23dbaf583b | Shell | shiguangwang/vim-setting | /prepare_common.sh | UTF-8 | 326 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# Prepare powerline fonts
echo "Prepareing powerline fonts ..."
POWERLINE_FONTS=$HOME/tmp/powerline_fonts
if [ ! -d $POWERLINE_FONTS ]; then
echo "Installing..."
mkdir -p $POWERLINE_FONTS
git clone https://github.com/powerline/fonts.git $POWERLINE_FONTS
cd $POWERLINE_FONTS
./install.sh
fi
echo "D... | true |
2335d87050168c255713fc6a1463f08e1a084429 | Shell | cabralrobert/Programacao_Script2019.2 | /atividades/atividade05/isfile.sh | UTF-8 | 308 | 3.140625 | 3 | [] | no_license | #!/bin/bash
if [ -d "$1" ]
then
echo "É um diretorio"
elif [ -f "$1" ]
then
echo "É um arquivo"
fi
if [ -r "$1" ]
then
echo "Tem permissão de leitura"
else
echo "Não tem permissão de leitura"
fi
if [ -w "$1" ]
then
echo "Tem permissão de escrita"
else
echo "Não tem permissão de escrita"
fi
| true |
5fbc8670cde44a1c8b5c4b12706b2c6873038833 | Shell | jotfs/jot | /download_jotfs_binary.sh | UTF-8 | 368 | 2.84375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | mkdir -p ./bin
tag_name=$(curl -s https://api.github.com/repos/jotfs/jotfs/releases/latest | jq -r '.tag_name')
url=https://github.com/jotfs/jotfs/releases/download/$tag_name/jotfs_linux_amd64.gz
curl -s -L --output ./bin/jotfs_linux_amd64.gz $url
gzip -dc ./bin/jotfs_linux_amd64.gz > ./bin/jotfs
chmod u+x ./bin/jotfs... | true |
e78a3265b01981ed4492abc8844637d5f4a8ea83 | Shell | kingvuplus/EG-base | /files/scripts/httpd_script.sh | UTF-8 | 1,108 | 3.703125 | 4 | [] | no_license | #!/bin/sh
NAME=httpd
DESC="Busybox HTTP Daemon"
HTTP_ON=0
HTTPROOT=/usr/www
HTTPPORT=8047
HTTPCONF=/var/etc/httpd.conf
ARGS="-h $HTTPROOT -p $HTTPPORT -c $HTTPCONF"
if [ -f /usr/sbin/httpd ]
then
DAEMON=/usr/sbin/httpd
else
DAEMON=/sbin/httpd
fi
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
if [ ! -d ... | true |
c9d5e2578d262d27e647794762485d3edc45f2bb | Shell | hossx/backcore | /coinex/shell/export.sh | UTF-8 | 1,279 | 3.84375 | 4 | [] | no_license | #!/bin/sh
#
# Copyright 2014 Coinport Inc. All Rights Reserved.
echo ================= Coinport Data Exporter =================
echo export $1 events
# data path
path=/data/export
tempFile=/tmp/export_cmd.sh
touch $tempFile
chmod +x $tempFile
# query recent snapshot
snapshotFile=${path}/lastsnapshot_${1}
lastSnapshot... | true |
77cd0b773b06132383b27bf5bc9b0b521db09047 | Shell | exoclim/socrates_tools | /gen_spec_files/sp_sw_jmdsa/mk_sp_sw_6_jm2dsa | UTF-8 | 19,500 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
NBANDS="6"
SP_ID="jm2dsa"
SP_FLDR="ga7"
SOLAR_SPEC="sun"
PT_FILE="pt663"
. ../set_paths_sw
################################################################################
# Calculate k-coefficients
################################################################################
echo "Calculating k-coef... | true |
9f250e057f35e8f7bc24a0b7c1a28e42d113f542 | Shell | dschexna/fedemo | /vm/files/mapr-warden-302-patched | UTF-8 | 8,992 | 3.21875 | 3 | [] | no_license | #! /bin/bash
###
#
# chkconfig: 35 20 40
# description: Enables MapR warden services
#
# LSB compliant service control script
#
### BEGIN INIT INFO
# Provides: mapr-warden
# Required-Start: $network
# Required-Stop: $network
# Should-Start:
# Should-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-... | true |
50ad05a0cfd6c6e6e612b73ab0ee6ddc74264460 | Shell | jsaura27/Medical-Records | /certificatesGeneration | UTF-8 | 2,781 | 3.109375 | 3 | [] | no_license | #!/bin/sh
#
# Copyright (C) 2017 by Pablo Correa Gomez
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
#... | true |
1fac52d9de5dc84a6013e08a65b1199f18754793 | Shell | veltzer/demos-bash | /src/examples/core/variables/long_variable.bash | UTF-8 | 544 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash -u
# This is an example of how to do long variables in bash
#
# References:
# - https://unix.stackexchange.com/questions/340718/how-do-i-bring-heredoc-text-into-a-shell-script-variable
read_it() {
VAR1=$(cat)
}
read_it <<EOF
first line
second line
third line
EOF
echo "$VAR1"
IFS='' read -d '' -r VAR2 <<... | true |
e6eb851082e5d2b83a22b35758ed8940645ae68a | Shell | jnewblanc/awsclitools | /ec2/add_default_volume_tags.sh | UTF-8 | 877 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Get the list of untagged volumes for this instance and then slap some default
# tags on them.
scriptdir=`(cd $(dirname $0); pwd)`
if [ ! -x "${scriptdir}/get_my_aws_info.sh" ]; then
echo "Can not find ${scriptdir}/get_my_aws_info.sh. Aborting"
exit 0
fi
role=`${scriptdir}/get_my_aws_info.sh Role`
... | true |
3f36cff6f218f2ab840a8ff7563fd9a9920ed73c | Shell | souchtal/fti | /testing/itf/engine | UTF-8 | 9,809 | 4.21875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Include all ITF variables
source '@itf_dir@/variables'
# Include all ITF Fixture-public functions
source '@itf_dir@/api'
# -------------------------- Test Runner Internals ----------------------------
itf_load_fixture() {
# Loads the function definitions in a fixture to the current context
#
... | true |
9c491a13898b3ad2cf4a877e3a70c1d8fe66bed0 | Shell | DougPaTo/kingit | /Backup/envio_67.sh | UTF-8 | 3,622 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#Marca Data e hora do inicio do backup
COMECO=`date +%F" as "%X`
#Informa onde sera armazenado o log do backup
LOG=/bkp_sql/logs/ENVIO_67_`date +%H%M-%F`.log
#Mostra a data em que foi realizado o backup para envio do assunto do email
DATA=`date +%F`
#Descrição do Backup
TIPOBKP="Banco para 10.0.99.67"
D... | true |
20c857332c8057e2a44f134369b7a23760c09639 | Shell | latifkabir/Computation_using_Fortran90 | /f90/double_complex.sh | UTF-8 | 510 | 3.09375 | 3 | [] | no_license | #!/bin/bash
#
gfortran -c -g double_complex.f90 >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling double_complex.f90"
exit
fi
rm compiler.txt
#
gfortran double_complex.o
if [ $? -ne 0 ]; then
echo "Errors linking and loading double_complex.o"
exit
fi
rm double_complex.o
#
mv a.out double_complex
./do... | true |
5d8e26e9c3e91449467c23da77db08e6e77e1293 | Shell | liucougar/quickstart | /modules/bootloader_x86.sh | UTF-8 | 2,716 | 3.359375 | 3 | [] | no_license | # $Id$
sanity_check_config_bootloader() {
if [ -z "${bootloader}" ]; then
warn "bootloader not set...assuming grub"
bootloader="grub:0"
fi
}
configure_bootloader_grub_2() {
#local boot_root="$(get_boot_and_root)"
#local boot="$(echo ${boot_root} | cut -d '|' -f1)"
[ -z "${bootloader_install_device}"... | true |
7d0c32c2e19597110877b37235bb9fd14089fbff | Shell | kdwinter/vfio-setup | /check_iommu.sh | UTF-8 | 229 | 2.859375 | 3 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
shopt -s nullglob
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;
# vim:ts=4 sw=4 sts=4 expandtab
| true |
210c370ed47ca096c54ab9ba782ff5c71ed0001b | Shell | parthg13/kube-assignment | /assignment4/file-creater-service/script.sh | UTF-8 | 345 | 3.015625 | 3 | [] | no_license | #!/bin/sh
# code goes here.
# echo "This is a script, run by cron!"
DATE=`date`
TIMESTAMP=`date +%s`
if [ `expr $TIMESTAMP % 2` == 0 ]
then
echo 'File A content.File created date: '+$DATE > /app/a.html
else
echo 'File B content.File created date: '+$DATE > /app/b.html
fi
# echo 'File created date: '+$DATE+ ... | true |
a7d3ea6d46e8e2290d7120877c087ab38da440a8 | Shell | SergioBertolinSG/performance_tests_oc_env | /run_performance_tests.sh | UTF-8 | 933 | 3.375 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ];
then
echo "This script needs the owncloud core commit which tests are running against"
exit
fi
COMMIT=$1
PORT=8080
echo $PORT
sudo php -S localhost:$PORT -t /var/www/html/oc_server &
PHPPID=$!
echo "Process of the owncloud server: $PHPPID"
sleep 2
if [ ! -d /srv/performance_tests ... | true |
35a7565d3f7897258f8bff95879912176aefbc71 | Shell | deadcrew/deadfiles | /bin/headset | UTF-8 | 356 | 2.765625 | 3 | [] | no_license | #!/bin/bash
input=${1:-alsa_input.pci-0000_00_1f.3.analog-stereo}
# disable noise
amixer -q -c PCH cset 'name=Headphone Mic Boost Volume' 1
# use headset mic for recording
pactl set-source-port "$input" analog-input-headset-mic
# max recording volume
pactl set-source-volume "$input" ${VOLUME:-65536}
notify-send " "... | true |
80eb992ded8ffb4cf25e1e1b83df7bd5deea438d | Shell | joren/my-zsh | /custom/projects.zsh | UTF-8 | 573 | 3.265625 | 3 | [] | no_license | PROJECT_PATHS=(~/Projects/Openminds ~/Projects/Openminds/iwt ~/Projects/PotatoFactory ~/Projects/Fileflambe ~/Projects/ArrrrCamp)
function project () {
cmd="cd"
file=$1
if [[ "open" == "$file" ]] then
file=$2
cmd=(${(s: :)EDITOR})
fi
for project in $PROJECT_PATHS; do
if [[ -d $project/$file ]] then
... | true |
9c378cee7b0d3cb01065b5a5b9e13672fadd056a | Shell | viking17/OS-Lab | /os1.sh | UTF-8 | 66 | 2.734375 | 3 | [] | no_license | #!/bin/bash
len=$#
for(( i=$len;i>0;i-- ))do
eval echo \$$i
done | true |
f0f1e6bf2e08fb94e5999dc0fcea4f5d285cc454 | Shell | theallen77/plugin.video.censoredtv | /src/make.sh | UTF-8 | 4,158 | 3.015625 | 3 | [
"MIT"
] | permissive | # Zip up the code to distribute to Kodi. Don't use Github's download zips, they
# don't work at all!!
# First remove any remaining data
rm -f Censored.zip
# Copy the license file
cp ../LICENSE ./plugin.video.censoredtv/LICENSE.md
# Rename the screenshot files -- their names clash in the "DOS 8.3" zipping
mv ./plugin... | true |
9d2a908b4098d09e0d6159bd1acdb992c0d9067d | Shell | YuuK10/women-in-tech-c | /scripts/editcode.sh | UTF-8 | 257 | 2.953125 | 3 | [] | no_license | #!/bin/sh
__GAME_PATH__
cd $game_path
lvl=$(cat data/current_level)
lang=$(cat data/config/language)
check_file="$(ls src | grep player_function.c)"
if [ $check_file ]
then
vim src/player_function.c
else
cp samples/$lang/$lvl.c src/player_function.c
fi
| true |
efbc50757bba25e9dbcb1a69fcd421a4156b2f08 | Shell | lydianblues/jstree-rails | /INSTALLER.sh | UTF-8 | 2,259 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Copy the images, assets, and javascripts into the rails-jquery gem.
# This is the path to the original JsTree GitHub checkout:
# git://github.com/vakata/jstree.git
SRC_DIR=/opt/gems/jstree
# Everything that we copy from the original jstree distribution goes here.
ASSET_DIR=./vendor/assets
# Addition... | true |
c5254556ad39501682a564e64503c12e326b8344 | Shell | chadchabot/dotfiles | /bootstrap.sh | UTF-8 | 3,637 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# inspired by everyone else who's ever done such a thing, but mostly Paul Vilchez
# who turned me on to this whole dotfiles thing, unbeknownst to him
source ./lib.sh
source ./osx/homebrew.sh
set -e
set -u
bot "So what are we doing today?"
echo "1) New system setup - install everything!"
echo "2) Update d... | true |
5da51108f475cc27a1434d4d55fda704fe82c117 | Shell | seifudd/scripts | /01-rnaseq/fastqc-trimmomatic-hisat2-stringtie-featurecounts.sh | UTF-8 | 18,778 | 3.359375 | 3 | [] | no_license | #!/bin/bash
set -e # stop the script if a command fails
function fail {
echo "FAIL: $@" >&2
exit 1 # signal failure
}
SAMPLE=$1
DATAPATH=$2
READ1=$3
READ2=$4
REF=$5
outdir=$6
numcpus=$7
module load hisat
module load samtools
module load trimmomatic
module load fastqc
module load stringtie
module loa... | true |
bbe6fad56369137f33da59fd73461b42e907e6ce | Shell | Sirherobrine23/Action-Debian_Package | /src/post_js.sh | UTF-8 | 321 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ $INPUT_DEBUG == 'true' ];then
env
fi
echo "Preparing to upload the file"
cd /tmp/repo
if cd $INPUT_PATH;then
echo $PWD
echo 'inside the directory'
else
echo 'Error entering the directory'
find .
exit 23
fi
cp -rfv $DEB_PATH ./
fi
#
#
exit ... | true |
6fbff906edeb06b8102bfd48b902c2b03bc61a45 | Shell | etsi-cti-admin/titan-docker | /from-sources/scripts/build_titan.bash | UTF-8 | 1,821 | 3.984375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -e
#set -vx
clear
if [ -z "${TOP}" ]
then
echo "Failed, TOP variable not defined, exit"
exit 1
fi
CURDIR=`pwd`
TITAN_DIR=${TOP}/..
# Move to the right directory
if [ ! -d ${TITAN_DIR} ]
then
echo "Titan directory does not exist, create it"
# Create TITAN directories
mkdir -p ${TI... | true |
ff56f217d13268db910c964140c20e8cae6bea7d | Shell | SouthAfricaDigitalScience/boost-deploy | /deploy.sh | UTF-8 | 3,033 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
. /etc/profile.d/modules.sh
module add deploy
# add the dependency modules for the deploy
module add bzip2
module add readline
module add gcc/${GCC_VERSION}
module add openmpi/${OPENMPI_VERSION}-gcc-${GCC_VERSION}
module add python/2.7.13-gcc-${GCC_VERSION}
module add icu/59_1-gcc-${GCC_VERSION}
REMOTE... | true |
0605ea2305ebdefed5eab934e4f794bb45e88930 | Shell | delong45/Tantan-test-go | /stop.sh | UTF-8 | 152 | 2.921875 | 3 | [] | no_license | #!/bin/bash
pid=`ps --no-headers -FC tantan | awk '{print $2}'`
kill $pid
if [ $? -ne 0 ]
then
echo "Failed to stop Tantan server"
exit 1
fi
| true |
1f184a269e6e4c05a7e8c19d394100487b437d4c | Shell | grafi-tt/portage-overlay | /app-emulation/WALinuxAgent/files/openssl-wrapper | UTF-8 | 153 | 3.0625 | 3 | [] | no_license | #!/bin/sh
if [ "$#" -eq 0 ]; then
echo "no argument?" >&2
exit 1
elif [ "$1" = "cms" ]; then
shift
"$(dirname "$0")"/cms "$@"
else
openssl "$@"
fi
| true |
5218107b7fd44e5ce448150e016f8cf08379e9b5 | Shell | SURFfplo/stack-idp | /startup.sh | UTF-8 | 1,534 | 3.234375 | 3 | [] | no_license | #!/bin/sh
set -e
# ### CONFIGURE NIGINX ###
# replace variables in default.conf
NGINX_CONF="/data/conf/default.conf"
sed -i "s~%PHP_SERVICE%~${PHP_STACK_SERVICE}_php~g" "$NGINX_CONF"
# ### CONFIGURE SIMPLESAMLPHP ###
# get admin password
MY_PASSWORD=admin
if [ -f "$SSP_ADMIN_PASS" ]
then
MY_PASSWORD=`cat $SSP_ADM... | true |
99a17ee36de4cfd9b927b47352efdb7168561396 | Shell | luckyzwei/UnityProject | /sh/personal_public.sh | UTF-8 | 530 | 3.09375 | 3 | [] | no_license | #!/bin/bash
ARGS=$1
echo "args:1 ${ARGS}"
if [ $ARGS == "大熊" ]; then
IP="127.0.0.1";
SERVER_DIR="/mnt/daxiong_share/";
SERVER_ID=101;
elif [ $ARGS == "昭齐" ]; then
IP="127.0.0.1";
SERVER_DIR="/mnt/zhaoqi_share/";
SERVER_ID=102;
elif [ $ARGS == "陈萍" ]; then
IP="127.0.0.1";
SERVER_DIR="/mnt/chenping_share/";
SERV... | true |
45a6a522d167bacad4a062e5388c9899e43d6f95 | Shell | khdevnet/git-help | /hooks/commit-msg | UTF-8 | 307 | 3.4375 | 3 | [] | no_license | #!/bin/sh
MSG="$1"
COMMIT_LENGTH=`cat $MSG | grep -E '^(issue-[0-9]|ISSUE-[0-9]+|Merge|merge|Revert|revert)' | wc -c`
if [ ${COMMIT_LENGTH} -eq 0 ] ; then
cat "$MSG"
echo "Your commit message must starts with the next words 'ISSUE-[digits]|issue-[digits]|Merge|merge|Revert|revert'"
exit 1
fi
| true |
06ff70787c6f5f5aa88f54acd72b4ee29fa90b95 | Shell | nvzard/OS-LAB | /LAB_1/variables.sh | UTF-8 | 262 | 3.046875 | 3 | [] | no_license | #Pre-defined variables
echo $HOME
echo $PWD
#Positional Variables
echo $1 $2
#change value of positional variables
set 99 $2
echo $1 $2
$1=69
echo $1 $2
#User Defined Variables
echo 'Enter two values:'
read a b
echo $a $b
echo 'Bonus variable:'
c=10
echo $c
| true |
d73f88064b0558fb6d5756315a160cc1f7df18f6 | Shell | gabrielott/dotfiles | /.local/bin/tohevc | UTF-8 | 2,247 | 3.953125 | 4 | [] | no_license | #!/usr/bin/env bash
# Bash is required because exporting functions isn't in the POSIX spec.
# Transcodes files to HEVC in order to save space. The quality should
# be noticeably worse, but acceptable. Encoding is done using nvenc
# and up to 3 videos will be transcoded concurrently.
# File sizes by resolution for a 3... | true |
333b55323c047d4ed460a29e7fb536c1800c07cd | Shell | christophert/skitter | /cache/build.sh | UTF-8 | 1,288 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
SSL_HOSTNAME="${SSL_HOSTNAME:-cache}"
# get CA Certificate
curl -XPOST -H "Content-Type: application/json" -d '{"label": "primary"}' http://ca:8888/api/v1/cfssl/info > ca.json
# get the SSL hostname from ENV
sed -i "s/cache.skitter.app/$SSL_HOSTNAME/g" csr.json
# get cert from CA
curl -X POST -H "Content... | true |
d0fea8f91292307e3667769a7a88e4e0f0a73e8f | Shell | adamfeuer/ArtOfGratitude_app | /bin/gunicorn-django-test.sh | UTF-8 | 705 | 2.546875 | 3 | [
"MIT"
] | permissive | #! /bin/bash -x
APP=gratitude
VIRTUALENV=/opt/gratitude-test
PORT=9100
LOGDIR=/var/log/gunicorn/
SETTINGS=conf.test.settings
PATH=/bin:/usr/bin
USER=www-data
GROUP=www-data
IP=127.0.0.1
WORKERS=5
NAME=django-gunicorn-test
DESC=$NAME
LOGFILE="$LOGDIR$NAME.log"
PIDFILE="$VIRTUALENV/run/$NAME.pid"
COMMAND="$VIRTUALENV/$AP... | true |
ff903bb5b8fb444543f91aec3bf0ff5a33e738c9 | Shell | Ghardo/GTK-App-Theme-Changer | /cth | UTF-8 | 840 | 3.71875 | 4 | [] | no_license | #!/bin/bash
DEFAULT_RCF="/usr/share/themes/ManjaroFlatLight/gtk-2.0/gtkrc"
DEFAULT_GTH="ManjaroFlatLight"
rcf=""
gth=""
set -- $(getopt p:n: "$@")
while [ $# -gt 0 ]
do
case "$1" in
-p)
rcf="${2}/gtk-2.0/gtkrc"; shift 2;;
-n)
gth=$2; shift 2;;
--) shift; break;;
esac
done
... | true |
b80953e27afa6c4c673845e9ff68dfb36caebebf | Shell | haniokasai/netwalker-rootfs | /var/lib/dpkg/info/bc.postrm | UTF-8 | 566 | 3.421875 | 3 | [] | no_license | #! /bin/sh
#
# This is the postrm script for the Debian GNU/Linux bc package
#
# Written by Dirk Eddelbuettel <edd@debian.org>
# Previous versions written by Bill Mitchell, Austin Donnelly and James Troup
set -e
# Automatically added by dh_installmenu
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus... | true |
44a6c6b1272259621d5548a5f40a2b2d61defb70 | Shell | daniapm/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/7-clock | UTF-8 | 250 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
# This script is displaying the time for 12 hours and 59 minutes
hours=0
while [ $hours -lt 13 ]
do
echo "Hour: $hours"
minutes=0
while (( minutes++ < 59));
do
echo $minutes
done
let hours+=1
done
| true |
194f2f23c857fb33d0517ac50fa2655c2ee31d36 | Shell | kurron/docker-clion | /clion.sh | UTF-8 | 859 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Launches CLion inside a Docker container
IMAGE=${1:-kurron/docker-clion:latest}
DOCKER_GROUP_ID=$(cut -d: -f3 < <(getent group docker))
USER_ID=$(id -u $(whoami))
GROUP_ID=$(id -g $(whoami))
# Need to give the container access to your windowing system
xhost +
CMD="docker run --group-add ${DOCKER_GROU... | true |
b970a5d3df4211bce41fb30e0958df9ae1b09027 | Shell | rene525456/bash | /tarea6.sh | UTF-8 | 139 | 2.546875 | 3 | [] | no_license | #! /bin/bash
file1=$(cat $1|wc -l)
echo "El archivo $1 tiene $file1 lineas"
file2=$(cat $2|wc -l)
echo "El archivo $2 tiene $file2 lineas"
| true |
c24053c5148768b689a8bfec8d4f3fe324649a11 | Shell | robashton/nixpkgs-nixerl | /update/release | UTF-8 | 824 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
set -x
cd "$(dirname "${BASH_SOURCE[0]}")/.."
declare commit_message=${1:-}
main() {
read -r major minor patch label <<< "$(git describe HEAD --abbrev=0 | cut -c 2- | awk 'BEGIN{FS="[.-]"} {print $1,$2,$3,$4}')"
new_patch=$((patch + 1))
new_version=v${major}.${minor}.${ne... | true |
7319f727d60817ac20afb0b098ee836802606a00 | Shell | dnuffer/setup | /remove_cuda.sh | UTF-8 | 781 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -x
set -e
set -u
if [ $UID != "0" ]; then
echo "This script must be run as root" >&2
exit 1
fi
packages=`grep ^Package: /var/lib/apt/lists/developer.download.nvidia.com_compute_cuda_repos_ubuntu1404_*_Packages | cut -f 2 -d ' '`
apt-get -y remove $packages cuda-repo-ubuntu1404
rm -f /etc/apt/sources.... | true |
6c65fdaee21c3726aca39417ce01b6121fc2bbc0 | Shell | swift-lang/swift-t | /dev/conda/clean.sh | UTF-8 | 332 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/zsh -f
set -eu
# CLEAN SH
# Clean generated files
rm0()
# File removal, ok with empty argument list
# Safer than rm -f
{
local F V
zparseopts -D -E v=V
for F in ${*}
do
if [[ -f $F ]] rm ${V} $F
done
}
# Get this directory:
THIS=${0:h:A}
cd $THIS
for D in *(/)
do
rm0 -v $D/settings.sed $D/met... | true |
63e5e8364c813ffba8b603f1a9c7d94db1c7213b | Shell | alshaboti/dam | /setup.sh | UTF-8 | 6,132 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#################################
# Start by sourceing the script #
# source zeek-test.sh #
#################################
#create faucet ovs network
#Install ovs-docker as here
#http://containertutorials.com/network/ovs_docker.html
echo ">>>>>>>>>>>>>>>Pre requisits<<<<<<<<<<<<<<<<<<<<<"
... | true |
0da5ee739a7b51a114e5a4c86fac3f59d13a3a05 | Shell | warpme/minimyth2 | /script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/extras | UTF-8 | 2,131 | 3.796875 | 4 | [] | no_license | #!/bin/sh
################################################################################
# extras
#
# This script (downloads and) mounts the extras directory tree.
################################################################################
. /etc/rc.d/functions
start() {
if [ -n "${MM_EXTRAS_URL}" ] ; then... | true |
6bc257fb25e093fb458e29449fcf82738411683b | Shell | MilesQLi/iBinHunt | /doc/install-vine.sh | UTF-8 | 2,850 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# Instructions for installing VinE on Linux
# In the form of a shell script that runs on a fresh Ubuntu 8.04
# installation. Some adaptation may be needed for other systems.
# Things that require root access are preceded with "sudo".
# See the "INSTALL" file in the VinE source for more discussion on
# wha... | true |
75ef9927f1217b5872ccccea57d492fe4be9c719 | Shell | AlexisMaximo/epa-com | /week6/instance.check.sh | UTF-8 | 215 | 3.28125 | 3 | [] | no_license | #!/bin/bash
aws ec2 describe-instance-status --instance-ids $1 > lab6.txt
output=`grep running lab6.txt | wc -l`
if [ output -gt 0 ]; then
echo "The instance is running"
else
echo "No such instance running"
fi
| true |
5a3237863621b18ed24a1250861b19c7601c0137 | Shell | WishCow/scripts | /blocklets/active_window.sh | UTF-8 | 333 | 2.921875 | 3 | [] | no_license | #!/bin/bash -eu
while read window; do
icon=""
case "$window" in
*WeeChat*)
icon=""
;;
*Firefox*)
icon=""
;;
*VIM*)
icon=""
;;
*VLC*)
icon=""
;;
esac
echo "$icon $window"
done < <(xtitle... | true |
dcebd8f9b8ce7f019f7e40e9122342026ab784e1 | Shell | Robert-96/tox-docker | /install-pypy.sh | UTF-8 | 1,402 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash
validate_python_version() {
VERSION=$1
VERSION_REGEX='^([0-9]+\.)([0-9]+)$'
if [[ ! $VERSION =~ $VERSION_REGEX ]]; then
echo "Invalid CPython version '$VERSION'."
echo "The version must use a major.minor pattern (e.g 2.7, 3.4)."
exit 1
fi
}
validate_pypy_version() ... | true |
6482f18eddec8d95b5e9ea1b75b2003350eee408 | Shell | dougyouch/shell-settings | /bash/.bash_aliases | UTF-8 | 669 | 3.03125 | 3 | [] | no_license |
LS='/bin/ls'
if ($LS --color >& /dev/null); then
alias dir="$LS --color -algF"
alias l="$LS --color -olgF"
alias la="$LS --color -a"
alias ls="$LS --color -lF"
alias lt="la --color -rt"
elif ($LS -o >& /dev/null); then
alias dir="$LS -oalgF"
alias l="$LS -olgF"
alias la="$LS -a"
alias ls="$LS -lF"
... | true |
a13fbe5f49007e1635802f7669d3972c097a7649 | Shell | kylinsystems/idempiere-installation-script | /utils/chuboe_fdw_example_read_install.sh | UTF-8 | 3,021 | 3.5625 | 4 | [] | no_license | #!/bin/bash
#The purpose of this script is to help you create a foreign data wrapper (FDW)
#connection to another postgresql server for read purposes.
#Here are the details:
#always test execution on a test server first (not production)
#this script assumes the remote server is running iDempiere (not required... | true |
4a597681ae030511d524d5d168f40253ce20cf1b | Shell | ymeur/REMAP | /RUN/job_o | UTF-8 | 1,190 | 2.796875 | 3 | [] | no_license | #!/bin/bash
##################
## CURIE CEA ##
##################
#MSUB -r remap # nom de la requete
#MSUB -o remap.out # nom du fichier de sortie
#MSUB -e remap.err
#MSUB -n 256 # reservation des processeurs pour le job
##MSUB -c 1 # reservation des processeurs pour le job
#MSUB -x ... | true |
2bb32a9b34bf696370e775eee0bffb535fcf2c19 | Shell | Danone89/install-zabbix | /scripts/install.sh | UTF-8 | 9,982 | 3.34375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
#
# Created on June 5, 2020
#
# @author: sgoldsmith
#
# Install dependencies, mysql, Zabbix Server 5.4.x and Zabbix Agent 2 on Ubuntu
# 20.04. This may work on other versions and Debian like distributions.
#
# Change variables below to suit your needs.
#
# Steven P. Goldsmith
# sgjava@gmail.com
#
# MySQL roo... | true |
cb54cec1bc96d7ac1d336279a7645c1cfeedd5ca | Shell | kinushu/dotfiles | /etc/init/init.sh | UTF-8 | 2,704 | 2.890625 | 3 | [] | no_license | #!/bin/bash
set +eu
source $HOME/.bash_profile
set -eu
echo 'touch ~/.bashrc.local'
touch ~/.bashrc.local
# 共有フォルダで .DS_Store ファイルを作成しない
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
# brew
if [[ -f /opt/homebrew/bin/brew ]] || [[ -f /usr/local/bin/brew ]]; then
echo 'brew already ins... | true |
1c76c3b79d3af2eafaf57c50104a6e6e074f08f9 | Shell | zhouxiaokai/scripts | /include/composer/redis.sh | UTF-8 | 283 | 3.078125 | 3 | [] | no_license | #!/bin/sh
nrk_predis(){
print_color "https://github.com/nrk/predis"
local wdir=$1
pushd $wdir || exit 1
require_insert $wdir "predis/predis" "1.1.*@dev"
[ -f ./composer.json ] && {
composer update
}
}
echo "Composer package:"
echo " nrk_predis: php redis"
| true |
71d36fc7b01e2e65dd2787d90903e87f96379b4f | Shell | hopefulp/sandbox | /pypbs/prockill.sh | UTF-8 | 387 | 3.453125 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 2 ]; then
echo "input two numbers: \$1 for start process \$2 for the last process"
exit 1
fi
i=$1
f=$2
for ps in `ps aux | grep python | awk '{ print $2 }'`; do
if [ $i -le $ps -a $ps -le $f ]; then
echo "kill $ps"
fi
done
#n=$(expr $2 + 1)
#while [ $i -lt $n ]; ... | true |
36d4a0189ca77b75b4e4aeefd4636a39199ca266 | Shell | iver/balance | /bash/install.sh | UTF-8 | 610 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
under_linux(){
apt-get update
apt-get -y install postgresql-client
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \
&& sudo dpkg -i erlang-solutions_1.0_all.deb
apt-get update
apt-get install esl-erlang
apt-get ... | true |
6127b3dafe4aedb97d64d565a681c0f0fa59d271 | Shell | tom-celerity/poc-play-rest-backend | /scripts/heroku-deploy-sample.sh | UTF-8 | 520 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# this is a sample script to deploy current local git repo to heroku.
# i use ClearDB (MySQL) and SendGrid (smtp service) add-ons
# This script assume that theses add-ons are already up for your app.
# db username value
heroku config:set PPRB_DB_USER=<db_username_value>
# db password value
heroku config:... | true |
6a62fad74bf0397da1099f9356a95e351ba5a43e | Shell | kaplanlior/debian-installer | /scripts/g-i/lst2rng.sh | UTF-8 | 1,431 | 3.375 | 3 | [] | no_license | #!/bin/bash
# -*-sh-*-
#
# Copyright (C) 2005 Davide Viti <zinosat@tiscali.it>
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or ... | true |
3811b7e5942ec4800bb1411b0320291e18f16971 | Shell | mauline/filestore | /install | UTF-8 | 3,131 | 3.578125 | 4 | [
"Zlib"
] | permissive | #!/bin/bash
# Target directory
TARGET=
# User/group that owns the http daemon. Values below are for centos/RHEL.
HTTPD_USR=apache
HTTPD_GRP=apache
# Safety checks
[ $(id -u) -eq 0 ] || {
echo "This script must be run as root!" >&2
exit 1
}
[ "${TARGET}" ] || {
echo "You must define the target directory b... | true |
a340e83c818829e2c7558be49bcb670308b4797b | Shell | ibizaman/rpi | /fileserver/aria2.sh | UTF-8 | 5,784 | 3.6875 | 4 | [] | no_license | #!/bin/bash
function arguments() {
if [ -z "$host" ]; then
help_args="$help_args HOST"
host="$1"
available_hosts="$(ls ~/.password-store/server-passwords)"
if [ -z "$host" ] || ! contains "$available_hosts" "$host"; then
echo "$help_args DOMAIN ARIA2_DEFAULT_DOWNLOAD_PAT... | true |
3f569a2fca54b909813507da7a8826e634663599 | Shell | beanit/iec61850bean | /asn1/replace-berboolean.sh | UTF-8 | 296 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
cd `dirname $0`
# replace BerBoolean from ASN1bean with special one for IEC 61850 so that true is coded as 0x01 instead of 0xff
find ../ -iname "*.java" | xargs sed -i 's/import com\.beanit\.asn1bean\.ber\.types\.BerBoolean/import com\.beanit\.iec61850bean\.internal\.BerBoolean/g'
| true |
b69d8df038a8e6dd05f6e03cf94dea0d0ac64a34 | Shell | Shuang777/kaldi-2016 | /egs/babel/s5c/mysteps/train_nnet.sh | UTF-8 | 21,860 | 2.703125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
# Copyright 2012/2013 Brno University of Technology (Author: Karel Vesely)
# Apache 2.0
{
set -o pipefail
# Begin configuration.
config= # config, which is also sent to all other scripts
# NETWORK INITIALIZATION
mlp_init= # select initialized MLP (override initialization)
mlp_proto= ... | true |
549198112fd07a0d77b00f533ec8513309f39672 | Shell | lvlPrImOlvl/llamadas_al_sistema | /fizzbuzz_final.sh | UTF-8 | 278 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#Torres Ortiz Luis Miguel
#Problema fizzbuzz
for i in `seq 1 30`
do
if [ `expr $i % 3` -eq 0 ]; then
echo "fizzbuzz"
elif [ `expr $i % 5` -eq 0 ]; then
echo "fizz"
elif [ `expr $i % 3` -eq 0 ] && [ `expr $i % 5` -eq 0 ];; then
echo "buzz"
else
echo $i
fi
done
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.