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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3cb80dcfe9e9625e2dab4b86a34982000fc1a577 | Shell | swordhui/xgstage0 | /scripts_tools/P030gcc | UTF-8 | 2,143 | 3.375 | 3 | [] | no_license | #!/bin/bash
. functions_pub
PackageName=gcc-4.4.3
PackageURL=http://ftp.gnu.org/gnu/gcc/$PackageName/$PackageName.tar.bz2
GMP_PACKNAME=gmp-4.3.2
GMP_URL=ftp://ftp.gnu.org/gnu/gmp/$GMP_PACKNAME.tar.bz2
MPFR_PACKNAME=mpfr-2.4.2
MPFR_URL=http://www.mpfr.org/$MPFR_PACKNAME/$MPFR_PACKNAME.tar.bz2
case "${1}" in
downloa... | true |
ac52f95eb08bd1cee410ac058f0dac6cf7338483 | Shell | lnevo/radb | /src/bin/update_ra.sh | UTF-8 | 958 | 2.921875 | 3 | [] | no_license | #!/bin/sh
RAURL="http://xena.easte.net:2000"
LABELURL="http://forum.reefangel.com/status/labels.aspx?id=lnevo"
WGET=/usr/bin/wget
cd /www/radb_data
$WGET -t3 -T3 -O r99.txt.new $RAURL/r99 && mv r99.txt.new r99.txt
$WGET -O ra_labels.txt.new $LABELURL && mv ra_labels.txt.new ra_labels.txt
$WGET -t3 -T3 -O mr_full_me... | true |
b60c6b5e5f7c57d0368ab6c10c9e9db10688b4ad | Shell | SecMeant/sets | /linux/.local/bin/godefiled | UTF-8 | 177 | 2.609375 | 3 | [] | no_license | #!/usr/bin/sh
[ -z "$DEFILED_SSH_PORT" ] && { echo "\$DEFILED_SSH_PORT var is not set. Did u initialized env correctly?"; exit 1; }
ssh -p $DEFILED_SSH_PORT defil3d@localhost
| true |
55da1348e974e74d6c237de21f3f3472fa5ccf7a | Shell | petronny/aur3-mirror | /pacman-glib-git/PKGBUILD | UTF-8 | 1,067 | 3.15625 | 3 | [] | no_license | # Maintainer: PirateJonno <j@skurvy.no-ip.org>
_pkgname=pacman-glib
pkgname="$_pkgname-git"
pkgver=20100620
pkgrel=1
pkgdesc='GLib library for Arch Linux package management'
arch=('i686' 'x86_64')
url="http://github.com/PirateJonno/pacman-glib"
license=('GPL')
depends=('pacman>=3.4.0' 'pacman<3.5.0' 'glib2')
makedepen... | true |
16eec494fc49058a1617536ea92e2e23cf006f6f | Shell | critterandguitari/Organelle_Patches_Dev | /Update-OS-v2.1/root/scripts/killpd.sh | UTF-8 | 335 | 2.59375 | 3 | [] | no_license | #!/bin/sh
# quit Pd in 3 steps
# give pd a chance to shut itself off
oscsend localhost 4000 /quitpd i 1
sleep .12
# kill pd SIGTERM
killall pd
sleep .1
# and kill SIGKILL
killall -s 9 pd
# turn off led, just to be sure
oscsend localhost 4001 /led i 0
# clean up
# remove old state directory
rm -fr /tmp/state
mkdi... | true |
76661a7e79b360450997c04617330aa460aab95b | Shell | OrdiNeu/Terminal | /qsub_manual.sh | UTF-8 | 285 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#$ -q hoffmangroup
#$ -cwd
# verbose failures
set -o nounset -o pipefail -o errexit
TSTART=$1
TEND=$2
shift
shift
set +o errexit
for i in `seq $TSTART $TEND`; do
export SGE_TASK_ID=$i
$@
if [ "$?" -ne "0" ]; then
echo "subtask $i failed"
fi
done
| true |
17026092f55e75c6bf766af193876d4175fe0173 | Shell | riwsky/mo-pomo | /deploy.sh | UTF-8 | 264 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Merge master to gh-pages, rebuild the prod cljs, and push.
set -e
git checkout gh-pages
git merge master
rm resources/public/cljs/main.js
lein cljsbuild once prod
git add -f resources/public/cljs/main.js
git commit -m "Update gh-pages js"
git push
| true |
137216a76d5070ad0ff6da9cfba40e982eecbd12 | Shell | Open-GP/opengp-distro | /docker/web/startup.sh | UTF-8 | 1,208 | 3.078125 | 3 | [] | no_license | #!/bin/bash -eux
DB_CREATE_TABLES=${DB_CREATE_TABLES:-false}
DB_AUTO_UPDATE=${DB_AUTO_UPDATE:-false}
MODULE_WEB_ADMIN=${MODULE_WEB_ADMIN:-true}
DEBUG=${DEBUG:-false}
cat > /usr/local/tomcat/openmrs-server.properties << EOF
install_method=auto
connection.url=jdbc\:mysql\://${DB_HOST}\:3306/${DB_DATABASE}?autoReconnect... | true |
34c0a9040c90f40f694adbc1c8714b3454144d47 | Shell | danjulio/lepton | /pocketbeagle/pru_rpmsg_fb/scripts/setup_pru.sh | UTF-8 | 813 | 3.046875 | 3 | [] | no_license | #!/bin/bash
#
# Script to start the PRUs running and make /dev/rpmsg_pru31 accessible
# by non-root processes. This script must be run as root and is designed
# to assist in debugging.
#
# Setup remoteproc devices for user access
chmod 666 /sys/class/remoteproc/remoteproc1/state
chmod 666 /sys/class/remoteproc/remote... | true |
57998b43f8fe751ecbb9f5f5c56faa2230cef9ee | Shell | AlexHilson/timewatch_server | /terraform/modules/node_bootstrap/files/bootstrap.tpl | UTF-8 | 477 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env bash
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y git
cd ~
wget https://nodejs.org/dist/v6.9.4/node-v6.9.4-linux-x64.tar.xz
mkdir node
tar xvf node-v*.tar.?z --strip-components=1 -C ./node
rm -rf node-v*
mkdir node/etc
echo 'prefix=/usr/local' > node/etc/npmrc
sudo mv node /o... | true |
b801b82700d53690bfbc993b234794e2fb89d4d3 | Shell | twhtanghk/server.dns | /script/afterConnected.sh | UTF-8 | 556 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
export CISCO_SPLIT_INC=0
root=/root/git/server.dns
HOSTNAME=`hostname`
cd ${root}
case "${reason}" in
connect)
script/record.coffee -u ${oauth2user} -p ${oauth2pass} --add vpn.net ${HOSTNAME} A ${INTERNAL_IP4_ADDRESS}
echo "nameserver ${INTERNAL_IP4_DNS}" |resolvconf -a tun0.vpn
;;
disco... | true |
807d309d17a5cdb8e881eafdd76ea121808423cc | Shell | scudiero/tools | /src/goto.sh | UTF-8 | 3,983 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#==================================================================================================
version=2.0.55 # -- dscudiero -- Fri 03/23/2018 @ 14:34:08.50
#==================================================================================================
TrapSigs 'on'
myIncludes=""
Import "$standardI... | true |
d7cc05f16f19d402371f417ed5c380c9f7a34a3c | Shell | battlesnake/qbasic-games | /extract.sh | UTF-8 | 167 | 3.140625 | 3 | [] | no_license | #!/bin/bash
set -eu
declare dir=
for zip in *.zip; do
dir=${zip%.zip}
(
mkdir -p "$dir"
cd "$dir"
unzip "../$zip"
)
done
find -iname phatcode.exe -delete
| true |
f6b71fec963a2217bcfaaec2ec392acc5cfd1e5c | Shell | friendlyarm/debian_nanopi2 | /build.sh | UTF-8 | 1,169 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#----------------------------------------------------------
ROOTIMGSIZE=2097152000 # 2G
BOOTIMGSIZE=67108864 # 64M
MKE4FS=./tools/make_ext4fs
OUTDIR=sd-fuse_nanopi2/debian
TOPDIR=`pwd`
ROOTDIR=rootfs
BOOTDIR=boot
IMGFILE=debian-jessie-images.tgz
[ -d ${BOOTDIR} ] || { echo "Error: ./${BOOTDIR}: not fou... | true |
0e51359d34a506df7b734fc394d67c30264ef490 | Shell | AlexKuchynskyi/Bash-Scripts | /find_IP_MAC.sh | UTF-8 | 1,300 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# script gets a directory name as an input parameter,
# then finds mentioning of IP-addresses in all the files
# (regular files only) located in the specified directory
# BTW the script checks if the file is the regular one.
# if flag --mac is specified so the script also finds
# mentioning of MAC-address... | true |
b83da67617adf658897a9768e65cad0027ebcc92 | Shell | arifsetwn/injen-cctv | /script/cekmotion.sh | UTF-8 | 154 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#Digunakan untuk mengecek proses motion berjalan atau tidak
motion=$(pgrep motion)
if [[ -z "$motion" ]];
then
echo "0"
else
echo "1"
fi | true |
3ae7bfa5b71e5cfba0438ff102767ec766347515 | Shell | enovella/hashcode2020 | /run-all | UTF-8 | 675 | 2.59375 | 3 | [] | no_license | #!/bin/bash
function start_tmux() {
set -e
tmux new-window -n 'RUN-ALL'
tmux send-keys "clear && node script input/b_read_on.txt output/b_read_on.out" C-m
tmux split-window -h
tmux send-keys "clear && node script input/c_incunabula.txt output/c_incunabula.out" C-m
tmux split-window -fv
tmux send-keys "c... | true |
581665d6a0aced6aab097a4bdba753623a86ace1 | Shell | jkbonfield/mpeg_misc | /CE5/old/loop.sh | UTF-8 | 506 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
in=$1
tok=./tokenise_name2
rm -rf $in.*
$tok $in >/dev/null
for blk in $in.blk_??????.0_0
do
b=`echo $blk | sed 's/\.0_0$//'`
./try_comp.sh $b $b.comp > /dev/null
./pack_dir $b.comp $b > $b.comp.pack
done
cat $in.blk_??????.comp.pack | wc -c
(for blk in $in.blk_??????.comp.pack
do
b=`echo $... | true |
4c10c15d205419b0348fea9b8f1313877cc1fe03 | Shell | lakomiec/random | /svc_check.sh | UTF-8 | 1,774 | 4.46875 | 4 | [] | no_license | #!/bin/bash
# (re)Start a service on a remote machine if it doesn't respond on a given list of ports
# Author: Jacek Lakomiec
# Date: 09 Nov 2014
# Version: 0.1
# Define basic variables. Make sure you replace SSH_USER and SSH_KEY values
IP="$1"
PORTS=$( echo $2 | sed -e "s#,# #g")
LOGFILE="log_svc_check-`date +%Y%m%d`... | true |
86f85daff6e8486c91d22b472a8308a0353b0237 | Shell | Myralllka/UCU_operating_systems | /lab6_myshell_3/compile.sh | UTF-8 | 256 | 2.65625 | 3 | [] | no_license | #!/bin/bash -x
set -o errexit
set -o nounset
set -o pipefail
mkdir -p bin build
(
cd build
cmake -G"Unix Makefiles" ..
make
cp ./myshell ../bin
mv ./myshell ../
mv ./programs/mycat/mycat ../bin
mv ./programs/mycp/mycp ../bin
)
#rm -r build
| true |
df3c0531d3a8b170881546cef7adb91d6c0273ef | Shell | zachwolf/circleci-docker-goss | /entrypoint.sh | UTF-8 | 1,530 | 4.1875 | 4 | [] | no_license | #!/bin/bash
#
# Any changes are written to the SCALING_FILE
#
set -euo pipefail
SCALING_FILE=$1
SCHEDULE_FILE=$2
CURRENT_HOUR=$(date +"%H") # 0-23
CURRENT_DAY=$(date +"%u") # 1-7
function update_scale_config(){
# doesnt update actual scale, but adjusts number in config file.
# Config file is read every minute by ... | true |
5c48390a21cf12800c43089e475eb42beb8c7783 | Shell | BIMIB-DISCo/SARS-CoV-2-early-detection | /1_variant_calling/variant_calling.sh | UTF-8 | 2,770 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# REQUIRED TOOLS:
# bwa 0.7.17-r1188
# ivar 1.3.1
# samtools 1.10
filename="list_samples_ids.txt"
while read line; do
echo $line
#====B0====#
echo "performing variant calling"
sampleName=$line
projectName="SARS-CoV-2"
dataDir="/data/SARS-CoV-2/raw_data/${projectName}/"
genomeFa="/data/SARS-C... | true |
791e8acba7ec76668228a55f0f48736f359577b0 | Shell | paulyc/IncludeOS | /etc/bochs_installation.sh | UTF-8 | 1,382 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | # Upgrade packages to solve dependencies
origdir=`pwd`
sudo apt-get clean
sudo apt-get dist-upgrade
bochs_version="2.6.6"
bochs_link="http://downloads.sourceforge.net/project/bochs/bochs/2.6.6/bochs-2.6.6.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fbochs%2Ffiles%2Fbochs%2F2.6.6%2F&ts=1410367455&use_mirror=hea... | true |
33dac7c355f39f8e98bd97ec556e8ee73c688566 | Shell | cloudfoundry/cf-k8s-logging | /hack/rollout.sh | UTF-8 | 475 | 3.140625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive |
#!/usr/bin/env bash
set -ex
export CF_FOR_K8s_DIR="${CF_FOR_K8s_DIR:-${HOME}/workspace/cf-for-k8s/}"
export SCRIPT_DIR="$(cd $(dirname $0) && pwd -P)"
export BASE_DIR="${SCRIPT_DIR}/.."
export CF_NAME=${CF_NAME:-$(kubectl config current-context | rev | cut -d '_' -f -1 | rev)}
$SCRIPT_DIR/../scripts/bump-cf-for-k8s.... | true |
c2912af5cd771822d3d436e7ab56634b3c683152 | Shell | wangpanqiao/VDR_CHIPEXO | /do_vcf2diploid_cluster.sh | UTF-8 | 3,513 | 3.734375 | 4 | [] | no_license | #!/bin/sh
#java -jar vcf2diploid.jar -id sample_id -chr file.fa ... [-vcf file.vcf ...]
#where sample_id is the ID of individual whose genome is being constructed
#(e.g., NA12878), file.fa is FASTA file(s) with reference sequence(s), and
#file.vcf is VCF4.0 file(s) with variants. One can specify multiple FASTA and
#V... | true |
081a5481137471a4914a0d0d61b62bc5f70055cc | Shell | toulousain79/MySB | /inc/lang/fr/Questions.lng | UTF-8 | 17,197 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ----------------------------------
# __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___
# _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_
# _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_
# _\/\\\\///\\\/\\\/_\/\\\___\... | true |
4bd5c799497073b0afbb1166bbd190cd04463361 | Shell | ralsallaq/metaTx | /scripts/jplaceStats.sh | UTF-8 | 960 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#requires python
module load python/2.7.13
if [ ! -d "analysis" ]; then
mkdir analysis
fi
files=`echo $@ | tr " " "\n"|grep '.*.jplace'`
outFs=`echo $@ | tr " " "\n"|grep '.*.csv'`
#number of sample files
nFs=`echo $files|wc -w`
echo $nFs
echo $files
##go through the sample files
function func1 {
... | true |
bc6a3665795de0f60ce483e9c3eda3b362445db1 | Shell | rdickey/aws-tools | /lib/util.bash | UTF-8 | 1,669 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash -e
###################
# ARRAY UTILITIES #
###################
function containElementInArray()
{
local element=''
for element in "${@:2}"
do
[[ "${element}" = "${1}" ]] && echo 'true' && return 0
done
echo 'false' && return 1
}
#################
# AWS UTILITIES #
##########... | true |
bfe2e9fd5d8281b5444e5994136efd3aaeef52a3 | Shell | auriocus/iNotes-exporter | /packageinotes.sh | UTF-8 | 488 | 2.796875 | 3 | [] | no_license | #!/bin/bash
target=/tmp/inotes-install
srcdir=~/bin
destdir=$(pwd)
rm -rf $target
mkdir $target
cd ~/bin
cp $srcdir/iNotes-exporter-1.8-jar-with-dependencies.jar $srcdir/webmailtrust $target
sed 's/keyStorePassword=.*/keyStorePassword=####### \\/' $srcdir/start-inotes-cert.sh > $target/start-inotes-cert.sh
chmod +x ... | true |
c527007a29e2165a92f44e6184263ae02f99bb12 | Shell | martinalberto/Projects | /HeatingSystem/utemper/software/utemper/start_rele.sh | UTF-8 | 478 | 3.015625 | 3 | [] | no_license | #!/bin/bash
echo -e "\tIniciar start_rele.sh"
count=1
while [ $count -le 15 ]
do
# si el programa esta arrancado lo cerramos.
killall rele 2>/dev/null
/home/pi/utemper/rele
x=$(( $x + 1 ))
sleep 30
echo $(date +"%F_%T")";4;start_rele.sh;salida inesperada de rele KO">>/var/utemp/logs.log
done
echo $(d... | true |
51cf420bf8bf9dbaa781dab2d82fc7b0a085126e | Shell | containers/podman | /test/system/170-run-userns.bats | UTF-8 | 5,844 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats -*- bats -*-
# shellcheck disable=SC2096
#
# Tests for podman build
#
# bats file_tags=distro-integration
#
load helpers
function _require_crun() {
runtime=$(podman_runtime)
if [[ $runtime != "crun" ]]; then
skip "runtime is $runtime; keep-groups requires crun"
fi
}
@test "p... | true |
526e599f3cec4df4f8ca65bf5eeab4fccdec997a | Shell | ESAI-CEU-UCH/kaggle-epilepsy | /test.sh | UTF-8 | 4,638 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# This file is part of ESAI-CEU-UCH/kaggle-epilepsy (https://github.com/ESAI-CEU-UCH/kaggle-epilepsy)
#
# Copyright (c) 2014, ESAI, Universidad CEU Cardenal Herrera,
# (F. Zamora-Martínez, F. Muñoz-Malmaraz, P. Botella-Rocamora, J. Pardo)
#
# Permission is hereby granted, free of charge, to any person obta... | true |
245c7a99496cea19783447adfc7f7cbfe5ed1373 | Shell | lukchen/csye6225-spring2018 | /infrastructure/aws/scripts/csye6225-aws-networking-teardown.sh | UTF-8 | 1,162 | 2.796875 | 3 | [] | no_license | #!/bin/bash
echo Deleting vpc, below is the Vpcs:
aws ec2 describe-vpcs --query 'Vpcs[*].{VpcId:VpcId,Default:IsDefault}'
read -p "Please enter the VpcId you want to delete: " vpcId
routeTable1=`aws ec2 describe-route-tables --filters "Name=vpc-id,Values=$vpcId" --query 'RouteTables[0].RouteTableId' --output text`... | true |
11d3c86fb72db16c5fb6766a58de27e8c61c8993 | Shell | petronny/aur3-mirror | /youtube2mp3/PKGBUILD | UTF-8 | 909 | 2.75 | 3 | [] | no_license | # Maintainer: Patryk Rzucidlo (@PTKDev) <ptkdev@gmail.com>
# Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
pkgname=youtube2mp3
pkgver=0.1.4
pkgrel=1
pkgdesc="A simple system to convert YouTube music videos to MP3"
arch=('any')
url="https://github.com/ur6lad/youtube2mp3"
license=('GPL3')... | true |
0569070ce9893f8228a2c6ae808d3ac6f02803cb | Shell | wesm87/dotfiles | /completions.zsh.sh | UTF-8 | 485 | 3.546875 | 4 | [
"MIT"
] | permissive | # shellcheck shell=bash disable=1090
function __dotfiles_completions_zsh() {
local -r dotfiles_completions_dir_path="${HOME}/.dotfiles/completions"
# Bail if completions folder doesn't exist
if ! [ -d "$dotfiles_completions_dir_path" ]; then
return
fi
# Load completions
for completion_file in "${dotf... | true |
e1c049067dcc85279e5ad6778b8a68e4cea773f1 | Shell | shwethasparmar/Shell-scripts | /migrationScript.sh | UTF-8 | 1,202 | 3.34375 | 3 | [] | no_license | #!/bin/bash
echo "-----------------------Enter old repo url-----------------------"
read oldRepoUrl
echo "-----------------------Enter new repo url-----------------------"
read newRepoUrl
echo "-----------------------CLONING OLD GIT REPO-----------------------"
git clone "$oldRepoUrl"
echo "-----------------------FETCH... | true |
2761b9698cdcc736dee5ead20a9efd6b998d1eb2 | Shell | simwir/Aut-LTL-Thesis | /run_benchkit.sh | UTF-8 | 824 | 2.875 | 3 | [] | no_license | #!/bin/bash
#SBATCH --time=1:15:00
#SBATCH --mail-type=FAIL,END
#SBATCH --mem=16500
# Usage: tool verifypn_binary examination [partition]
if [[ -z $SLURM_ARRAY_TASK_ID ]] ; then
SLURM_ARRAY_TASK_ID=$4
fi
export BK_TOOL=tapaal
export PREFIX="$(pwd)/scripts/$1"
export VERIFYPN="$(pwd)/parallel-bin/$2"
MODEL=$(ls ... | true |
d903b3267f557f0f4067ca60a6947318f40712d2 | Shell | YaoStriveCode/home | /bin/sshscreen | UTF-8 | 983 | 4 | 4 | [] | no_license | #!/bin/sh
# Small utility to intelligently start a (sub)screen session to a remote
NESTED_ESCAPE="^Ee"
TOP_ESCAPE="^Uu"
REMOTE=$1
if [ -z $REMOTE ]; then
echo "Missing argumet, expecting [user@]host[:port]" >&2
exit 1
fi
case $REMOTE in *@*)
USERNAME=${REMOTE%@*}
REMOTE=${REMOTE#*@}
;;
esac
case $REMOTE in *:... | true |
361e210a1c230d39752a5515381c7cf6b60000a9 | Shell | l2dy/split-cue | /split-cue-flac | UTF-8 | 1,692 | 3.984375 | 4 | [] | no_license | #!/bin/zsh
CUETAG_CMD=`dirname $0`/cuetag
ICONV_CUE_F=
ICONV_CUE_T=UTF8
while getopts 'hc:' OPTION
do
case $OPTION in
c)
ICONV_CUE_F=$OPTARG
;;
h)
printf "Usage: %s: [-c cue_encoding]\n" $(basename $0) >&2
exit 2
;;
esac
done
DISKNUM=
test_disk_image() {
D... | true |
9999ebcb1f3edd12f5acb9ae26f53eb7c065cde6 | Shell | operasoftware/ssh-key-authority | /services/init.d/keys-sync | UTF-8 | 849 | 3.546875 | 4 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/sh
### BEGIN INIT INFO
# Provides: keys-sync
# Required-Start: mysql
# Required-Stop: mysql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: SSH key synchronization daemon
### END INIT INFO
. /lib/lsb/init-functions
SCRIPT=/srv/keys/scripts/syncd.php
USER=keys-sync
... | true |
5e7ab3689583b82a4cf541237dc0654ad912d1d2 | Shell | nnalpas/Proteogenomics_reannotation | /src/Genome4Cactus.sh | UTF-8 | 4,285 | 3.09375 | 3 | [] | no_license |
# Retrieve a list of all available genome
wget ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria/assembly_summary.txt
# Filter the list of geneome based on specific taxon ID
awk -F '\t' 'FNR==NR{k[$1]=1;next;} FNR==1 || FNR==2 || k[$6] || k[$7]' taxonomy_result.txt assembly_summary.txt > assembly_summary_taxon.tx... | true |
7f9cc5ebbc1cccd30370e1914a3e9bc770d1f02e | Shell | phatblat/dotfiles | /.dotfiles/xcode/dsym.zsh | UTF-8 | 704 | 3.265625 | 3 | [
"MIT"
] | permissive | #-------------------------------------------------------------------------------
#
# xcode/dsym.zsh
# Functions for locating DWARF debug information (dSYM).
#
#-------------------------------------------------------------------------------
alias dsym_uuid="mdls -name com_apple_xcode_dsym_uuids -raw *.dSYM | grep -e \\... | true |
cdd38163143a84fc607a0246fdf2a7d0046ef337 | Shell | isabella232/vogl | /bin/ninja | UTF-8 | 643 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# toilet website: http://caca.zoy.org/wiki/toilet
# list all fonts in figlet
# for font in `ls -1 /usr/share/figlet | grep .flf | cut -d . -f 1`; do echo "$font:"; figlet -f $font Hello World; done
# time and date in terminal
# while true; do echo -e "$(date '+%D %T' | toilet -f term -F border --gay)\033... | true |
01cda3f6642464b74db888c8988c30db07e338ff | Shell | gmalysa/dotfiles | /scripts/fstr_comp | UTF-8 | 230 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
_fstr_comp()
{
local cur prev options
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
options=$(cat /tmp/fstr_options)
COMPREPLY=($(compgen -W "${options}" -- ${cur}))
}
alias fed='vim'
complete -F _fstr_comp fed
| true |
1538eba818712f7678ec37f8e3b9be9dedeef51c | Shell | ghuntley/monorepo | /third_party/git/t/perf/p0100-globbing.sh | UTF-8 | 868 | 3.5625 | 4 | [
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"GPL-3.0-only",
"GPL-2.0-only",
"MIT"
] | permissive | #!/bin/sh
test_description="Tests pathological globbing performance
Shows how Git's globbing performance performs when given the sort of
pathological patterns described in at https://research.swtch.com/glob
"
. ./perf-lib.sh
test_globs_big='10 25 50 75 100'
test_globs_small='1 2 3 4 5 6'
test_perf_fresh_repo
test... | true |
17d46411fe33c2741bdbceb1f4ff7769bd507cbd | Shell | ToQoz/bin | /ghq-git-check-all-repo | UTF-8 | 626 | 3.59375 | 4 | [] | no_license | #!/bin/bash
for repo in `ghq list --full-path`; do
cd $repo
if [ "$(git remote -v | grep origin | wc -l)" = "0" ]; then
echo "$repo: origin is not found"
continue
fi
if [ -n "$(git diff --shortstat)" ]; then
echo "$repo: repo has uncommitted files"
continue
fi
if [ -n "$(git ls-files --o... | true |
be2c0a3f7aa55b145c57d13925f97f0652cf0178 | Shell | Muuo/RPiVideoLooper | /startvideos.sh | UTF-8 | 539 | 3.34375 | 3 | [] | no_license | #!/bin/bash
declare -A vids
#Make a newline a delimiter instead of a space
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
usb=`cat /boot/looperconfig.txt | grep usb | cut -c 5- | tr -d '\r' | tr -d '\n'`
FILES=/home/pi/videos/
if [[ $usb -eq 1 ]]; then
FILES=/media/USB/videos/
fi
var_1=""
for f in `ls $FILES | grep ".mp... | true |
5c0c97791b6627e444268e193b829030f76ef411 | Shell | isabella232/reference-wallet | /scripts/run_dmw_test.sh | UTF-8 | 1,802 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (c) The Diem Core Contributors
# SPDX-License-Identifier: Apache-2.0
trap 'jobs -p | xargs kill -9' EXIT
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
output_dir="$script_dir/../output"
backend_dir="$script_dir/../backend"
if ! command -v ifconfig &> /dev/nu... | true |
0f4a286add307faac7d78be6b8f3cd7feb7959c2 | Shell | yamasampo/treeEstimator | /src/bootstrap_dnapars.sh | UTF-8 | 865 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/usr/local/bin/zsh
## Commands to run dnapars with bootstrapped data
# Specify virtual environment for BioPython
source activate biopython
# Make output directory
fasta=$1
outdir=$2
fname=`basename $fasta`
subdir="$(cut -d'.' -f1 <<<"$fname")"
dirname="$outdir/$subdir"
mkdir "$dirname"
echo "Input FASTA: $fasta"... | true |
aecc15b0e0601b2970d3118e647079a2d1190e29 | Shell | delkyd/alfheim_linux-PKGBUILDS | /kst-git/PKGBUILD | UTF-8 | 1,244 | 2.625 | 3 | [] | no_license | _pkgname="kst"
pkgname="${_pkgname}-git"
pkgrel=1
pkgver=2.0.8r3268.540a599a
pkgdesc="Fast real-time large-dataset viewing and plotting tool for KDE"
arch=('i686' 'x86_64')
url="http://kst-plot.kde.org"
license=('GPL')
depends=('gsl' 'qt5-base' 'qt5-svg' 'muparser' 'python2-scipy>=0.9' 'python2-numpy>=1.6' 'cfitsio' 'p... | true |
3017e2a66fc9357df00737ef0977a040ccf0e1ed | Shell | fffilo/gitsound | /gitsound.sh | UTF-8 | 3,519 | 4 | 4 | [] | no_license | #!/bin/bash
#echo "Config..."
TEMPLATE="${HOME}/.git_template"
SOUNDS="${HOME}/.git_sounds"
HOOKS=( "applypatch-msg" "pre-applypatch" "post-applypatch" "pre-commit" "prepare-commit-msg" "commit-msg" "post-commit" "pre-rebase" "post-checkout" "post-merge" "pre-push" "pre-receive" "update" "post-receive" "post-update" "... | true |
f1bb676ed116e6d152916b680c896f24133a8543 | Shell | venoodkhatuva12/pem_key_generator | /pemkey.sh | UTF-8 | 1,418 | 3.9375 | 4 | [] | no_license | #!/bin/bash
#author: Vinood NK
#script to Add user and generate Pem file for Login
#Usage : Adduser , generate pemfile, and add in sudoer.
#Check whether root user is running the script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
read -p "Please Enter the Username : "... | true |
5c228ef4714ecdaeebb2b879cd960d9eecbd76e0 | Shell | 1-cool/Linux | /view-connections.sh | UTF-8 | 621 | 3.671875 | 4 | [] | no_license | #!/bin/bash
############################################################################
# 查看v2ray连接列表
############################################################################
#读取v2ray端口
PORT=$(grep \"port /etc/v2ray/config.json | tr -cd "[0-9]")
#读取连接列表
LIST=$(lsof -i -n -P | grep ESTA... | true |
77df756e94a7e48e6b6ed45a1f122619fbe7b83d | Shell | Alexxfromgit/task10_12_1 | /task10_12_1.sh | UTF-8 | 6,332 | 3.28125 | 3 | [] | no_license | #!/bin/bash
######################################## PREPARE #######################################
source $(dirname $0)/config
mkdir -p networks /var/lib/libvirt/images/$VM1_NAME /var/lib/libvirt/images/$VM2_NAME config-drives/$VM1_NAME-config config-drives/$VM2_NAME-config
echo 1 > /proc/sys/net/ipv4/ip_forward
ech... | true |
31a6e4aa9602b18a08338d77bb09d362049dbc6f | Shell | couchbasedeps/erlang | /scripts/build-docker-otp | UTF-8 | 336 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage $0 32|64 [command] [arg]..."
exit 1
fi
ARCH="$1"
shift
git archive --format=tar.gz --prefix=otp/ HEAD >scripts/otp.tar.gz
docker build -t otp --file scripts/Dockerfile.$ARCH scripts
rm scripts/otp.tar.gz
docker run --volume="$PWD/logs:/buildroot/otp/logs" -i --r... | true |
8f734d1727178a7dba3b412983118d2af0cb2236 | Shell | kliment-olechnovic/voronota | /document.bash | UTF-8 | 4,668 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cd $(dirname "$0")
TMPLDIR=$(mktemp -d)
trap "rm -r $TMPLDIR" EXIT
################################################################################
{
cat ./resources/texts/intro.markdown
echo -e "# Command reference"
./voronota \
| grep 'Commands:' -A 999999 \
| sed 's/^Commands:/## List of all comma... | true |
1a121ef6ef61299c14d99d5a6c46e1528f78832d | Shell | OmeGak/dotfiles | /git/bin/git-author | UTF-8 | 448 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Prints the Git author information from context.
author_name="${GIT_AUTHOR_NAME}"
author_email="${GIT_AUTHOR_EMAIL}"
if [ -z "${author_name}" ] || [ -z "${author_email}" ]; then
author_name="$(git config --get user.name)"
author_email="$(git config --get user.email)"
fi
if [ -z "${author_name}" ] ||... | true |
6a7dc11c1faf60b67dc69d6fd5c7168a205b2cbd | Shell | lliicchh/chips | /intall_scripts/install-centos.sh | UTF-8 | 1,831 | 2.640625 | 3 | [] | no_license | #!/bin/bash
# 换成163源
yum install -y wget
sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
# 1.配置yum
yum... | true |
ef9a41fbfa5bff68e4e8cde116afdcca2b6303c5 | Shell | ShadeLab/RhizobiaPanGenome | /Plasmids/template.sb | UTF-8 | 820 | 2.625 | 3 | [] | no_license | #!/bin/bash --login
########## Define Resources Needed with SBATCH Lines ##########
#SBATCH --time=1:00:00 # limit of wall clock time - how long the jo$
#SBATCH --ntasks=1 # number of tasks - how many tasks (nodes) $
#SBATCH --cpus-per-task=4 # number of CPUs (or cores) per task ... | true |
1bd67c4749a2dfcfac6954d566064b3afe6b9c77 | Shell | civo/cli | /install.sh | UTF-8 | 4,484 | 4.25 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
# Copyright Civo Ltd 2020, all rights reserved
export VERIFY_CHECKSUM=0
export OWNER="civo"
export REPO="cli"
export SUCCESS_CMD="$OWNER version"
export BINLOCATION="/usr/local/bin"
###############################
# Get the last version #
###############################
get_last_version() {
... | true |
71108c5f61df6ba02a76108a6ffbcc4a2a89f69f | Shell | jdelStrother/BBOSC | /lib/vvosc/scripts/installSDK.sh | UTF-8 | 334 | 3.0625 | 3 | [] | no_license | if (test ! -e "${HOME}/Library/SDKs/${PRODUCT_NAME}")
then
mkdir -p "${HOME}/Library/SDKs/${PRODUCT_NAME}"
fi
# remove the existing SDK (if there is one)
rm -rf "${HOME}/Library/SDKs/${PRODUCT_NAME}"
# install the newly-compiled SDK
cp -RfH "build/${BUILD_STYLE}/SDKs/${PRODUCT_NAME}" "${HOME}/Library/SDKs/${PRODUCT_N... | true |
6e635612d2cd3e7d6b0b21c8b166eeabe6bf3e7b | Shell | fsfe/fsfe-website | /tools/update_localmenus.sh | UTF-8 | 2,814 | 4.3125 | 4 | [] | no_license | #!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Update local menus
# -----------------------------------------------------------------------------
# This script is called from the phase 1 Makefile and updates all the
# .localmenu.*.xml files containing the local men... | true |
33fd802c0e3612e5bfbca5ec48cc5eea345caf63 | Shell | perfecto25/salt_cis_centos7 | /cis/rules/files/6_2_9 | UTF-8 | 764 | 4.125 | 4 | [] | no_license | #!/bin/bash
# 6.2.9 Ensure users own their home directories
# Description:
# The user home directory is space defined for the particular user to set local environment
# variables and to store personal files.
# Rationale:
# Since the user is accountable for files stored in the user home directory, the user must be
# th... | true |
7e0e04d336e8bba2ab0361b03f407b9abd836915 | Shell | remetremet/FreeBSD-Munin-plugins | /ipfw.sh | UTF-8 | 897 | 3.234375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
#
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
if [ "$1" = "config" ]; then
echo 'graph_title IPFW routed packets per second'
echo 'graph_category security'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel Routing pps'
echo 'packets.label Packets'
echo 'packets.type DERIVE'
... | true |
1bd277c2595fbf1c8b23fcd45ff05ea1243a755c | Shell | anatol-karlinski/Studia-Linux | /bash9.sh | UTF-8 | 176 | 3.09375 | 3 | [] | no_license | #!/bin/bash
function spell()
{
flaga=0
for x in `cat /usr/share/dict/polish`
do
if [ "$1" == "$x" ]; then
flaga=1
break
fi
done
echo $flaga
}
read lolz
spell $lolz
| true |
0ec17014a9cda215142ec50e46e0161a3e652475 | Shell | jbodah/AnberPorts | /AnberPorts/scripts/streaming/Moonlight-Embedded | UTF-8 | 427 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Gamestream client for embedded systems
# Release: 2017 Genre: Streaming
printf "\e[32mDownloading Moonlight-Embedded ..." > /dev/tty1
wget -q 'https://github.com/krishenriksen/moonlight-embedded-rg351p/releases/download/1.0.0/moonlight-embedded.zip'
printf "\e[32mExtracting ..." > /dev/tty1
unzip -qq... | true |
334d93ab050ea1b560129997d97d1d3f449294ae | Shell | radical-experiments/AIMES-Swift | /Swift_Experiments/bin/test_ssh.sh | UTF-8 | 304 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
stampede="stampede.tacc.utexas.edu"
gordon="gordon.sdsc.edu"
check() {
site=$1
ssh $1 "hostname -f" &> /dev/null
if [[ "$?" != "0" ]]
then
echo "SSH: to $site [FAIL]"
else
echo "SSH: to $site [PASS]"
fi
}
check $stampede
check $gordon
| true |
fff7e0f8968e571578a5bae698f76a37097db675 | Shell | pstray/image-updaters | /install | UTF-8 | 620 | 3.984375 | 4 | [] | no_license | #! /bin/bash
cd $(dirname $0)
PREFIX=
[ -f .config ] && . .config
default_PREFIX="$HOME/images"
if [ -z "$PREFIX" ]; then
read -e -i "$default_PREFIX" -p "Install dir: " PREFIX
PREFIX=${PREFIX%/};
echo "PREFIX='$PREFIX'" >> .config
fi
shopt -s nullglob
for script in *-update; do
target="$PREFIX/$... | true |
25eb388f750711affd449dad423bb779b8881d75 | Shell | gjvanoldenborgh/climexp_data | /KNMIData/update_potwind.sh | UTF-8 | 3,343 | 3.640625 | 4 | [] | no_license | #!/bin/bash
mkdir -p tmp_potwind
DEBUG=false
if [ "$DEBUG" != true ]; then
wget=wget
unzip=unzip
else
echo "DEBUG, NO DATA RETRIEVED"
wget="echo wget"
unzip="echo unzip"
fi
# new data
base=http://projects.knmi.nl/klimatologie/onderzoeksgegevens/potentiele_wind-sigma/
$wget -O list.html $base
files=... | true |
d04b95abbfead5257e67f58ad854b316fa0767ec | Shell | hankshz/dockers | /hbase-cluster/script/build-hadoop.sh | UTF-8 | 889 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
apt-get update
apt-get install -y default-jdk openssh-server
java -version
# setup sshd and skip password
mkdir /var/run/sshd
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
cp /raw/ssh_config ~/.ssh/config
mkdir -p /build... | true |
8b41e7244c7fa975358b21452b525c2df6431567 | Shell | shubhamlokhande66/Week2 | /arry.sh | UTF-8 | 119 | 2.65625 | 3 | [] | no_license | #!/bin/bash
for ((i = 0; i < 18; i++)); do ## fill array with random values
a[i]=$(($RANDOM % 100 + 1))
done
| true |
baea9975934bf94a0dc6c4a4db2dfe4b6a417cb6 | Shell | whichrakesh/Course-Projects | /CS296-Software-Lab/scripts/g26_gen_data_csv.sh | UTF-8 | 1,123 | 3.21875 | 3 | [] | no_license | PROJECT_ROOT=.
mkdir -p $PROJECT_ROOT/data
BINDIR=$PROJECT_ROOT/mybins
DATA=$PROJECT_ROOT/data
if test -f $DATA/g26_lab05data_02.csv;
then
rm $DATA/g26_lab05data_02.csv
fi
#
#gXXout-<iteration_value>-<rerun_number>.txt
# Beginning of outer loop.
for ((itr_val=1; itr_val <= 1200 ; itr_val++)) # Dou... | true |
135c65efc054025dfd953627d680a86445d0d6c3 | Shell | plark-app/plark-website | /docker/build.sh | UTF-8 | 830 | 3.53125 | 4 | [] | no_license | #!/bin/bash
NODE_ENV=production
UN_ENV=production
##### Constants
APPLICATION_VERSION=$(jq -r ".version" package.json)
WITH_PUSH=0
for arg in "$@"
do
case $arg in
--push*)
WITH_PUSH=1
shift
;;
--version=*)
APPLICATION_VERSION="${arg#*=}"
shift
;;
esac
done
build_dock... | true |
bae3f3ef5cdd59c0cdfdd873aaebbceb6dfde5d6 | Shell | piiih/git-issues | /git-issues | UTF-8 | 2,399 | 3.75 | 4 | [] | no_license | #!/bin/bash
if [[ $1 != "list" ]] && [[ $1 != "pick" ]]
then
echo "Invalid action '$1'"
exit
fi
action=$1
shift
while getopts ":l-:" opt; do
case ${opt} in
-)
case ${OPTARG} in
"label"=*)
label=`echo ${OPTARG} | cut -d "=" -f 2`
esac
esac
done
function 256fromHex() {
hex... | true |
d5b4b4a0ab26b36c876789106569adaf7f38f0ce | Shell | Schwarzam/usvirtualobservatory | /usvao/prototype/dalserver/branches/prodv1/prototype/ensureDatabase.sh | UTF-8 | 1,057 | 3.90625 | 4 | [] | no_license | #! /bin/bash
#
# Usage: ensureDatabase.sh muser mpass [dbname] [recreate] [host]
# muser: the mysql user name
# mpass: the mysql user's password
# dbname: the name of the database to create
# recreate: if "f" or not specified, the database will not be recreated
# if it already exists
# host... | true |
4f8c977640fa2953124099264e1c40daabb05476 | Shell | tibotiber/greeny-oms | /api/policies/generate_policies.sh | UTF-8 | 820 | 3.1875 | 3 | [] | no_license | #!/bin/sh
IFS=,
{
read line;
while read policy accrec accpay documentation packing qualitycheck purchasing sales manager
do
cp p_xxx.js p_$policy.js
TEST=' if(admin'
if [ $accrec -eq 1 ]; then
TEST=${TEST}' || accounts_receivable'
fi
if [ $accpay -eq 1 ]; then
TEST=${TEST}' || accounts_pay... | true |
04e5db709d5e0ea17d5415bde61716611ecbbe59 | Shell | AdamDS/personal_helpful | /new_py | UTF-8 | 1,812 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#a bash script to create a template perl script
#20151004 Kuan Huang
usage="new_python <new python script> #number of inputs#"
#author of perl script
name=`finger $USER | grep Name | cut -f 3 -d':' | sed s'/ //'`
if [ $# -gt 0 ]; then
#"shebang" for perl
echo "#!/bin/python" > $1
#file creation & author... | true |
535bc853753210965090cf576d82f6babacaabfd | Shell | jduepmeier/scripts | /display_mode.sh | UTF-8 | 2,522 | 4.40625 | 4 | [] | no_license | #!/usr/bin/env bash
#
# display mode switches between primary and other display configurations
PRIMARY_DISPLAY="${PRIMARY_DISPLAY:-eDP-1}"
set -euo pipefail
log() {
( >&2 echo "$@" )
}
select_mode() {
wofi --show=dmenu <<-EOF
primary
secondary
extended
extended-right
extended-left
EOF
}
# Sends the c... | true |
914100935081098a7bdfe984bc47afa8416d2cee | Shell | dimitar-asenov/Envision | /misc/version-control/scripts/import_and_merge.sh | UTF-8 | 5,855 | 3.5625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# This script takes 3 java files as input: base master dev + an optional flag '-quick-match'
#
# It creates a repo in /tmp/EnvisionVC/TestMerge and merges the files using Envision.
# It does the same using the Git merge in /tmp/EnvisionVC/Git.
# If run manually, this script is intended for the files in Env... | true |
cc0e5cd04ed7f944c28a73ce8d8bc552008e3710 | Shell | ewxrjk/ljdump | /build | UTF-8 | 310 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
VERSION=`grep Version ljdump.py | cut -d' ' -f3`
DIR=ljdump-$VERSION
rm -rf $DIR
mkdir $DIR
cp ChangeLog README.txt ljdump.py ljdump.config.sample $DIR/
TARGZ=ljdump-$VERSION.tar.gz
rm $TARGZ
tar czf $TARGZ $DIR/*
ZIP=ljdump-$VERSION.zip
rm $ZIP
zip $ZIP $DIR/*
rm -rf $DIR
md5 $TARGZ
md5 $ZIP
| true |
6a69057530b29ffc732a72243898cd214258858e | Shell | xlab-si/intersight-sdk-ruby | /bin/oas_generator/regex-syntax-fix.sh | UTF-8 | 500 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# MacOS uses BSD sed which has a different CLI, so on Mac prefer gnu-sed.
# gnu-sed can be installed on MacOS with `brew install gnu-sed`
cmd="$([[ "$OSTYPE" == "darwin"* ]] && echo "gsed" || echo "sed")"
set -e
find . -name "*.rb" -exec $cmd -i -e '/Regexp.new/ s|\\\\/|\\/|g' {} +
find . -name "*.rb" ... | true |
d9d86d234b09c21a2053ad9d8ddcfebbfc9895a5 | Shell | robertkraig/Leela | /PKGBUILD | UTF-8 | 839 | 3.046875 | 3 | [] | no_license | # Maintainer: "Trilby" <jmcclure [at] cns [dot] umass [dot] edu>
pkgname=leela-git
pkgver=20120605
pkgrel=2
pkgdesc="CLI frontend to poppler-glib of PDF tools"
url="http://github.com/TrilbyWhite/leela.git"
arch=('any')
license=('GPLv3')
depends=('poppler-glib' 'ghostscript')
makedepends=('git')
_gitroot="git://github.c... | true |
a01f6e44dd6dc90e6a43ad143f663ae0cf42ae9c | Shell | bylee/cantata-jsbind | /build | UTF-8 | 2,753 | 3.015625 | 3 | [] | no_license | #!/bin/sh
SCRIPT=`readlink -f $0`
DIR_HOME=`dirname $SCRIPT`
TARGET=$DIR_HOME/target
if [ -n "$1" ];
then
TARGET=$1
fi
echo "Target: $TARGET"
#cd $DIR_HOME/src
#node-waf configure
#node-waf build
SRC_LIST=`find src -name *.cpp`
O_LIST=""
echo "NODE :$INC_NODE"
echo "NODE DEPS:$NODE_DEPS"
for SRC_NAME in $SRC_... | true |
f94164d0b2185ad7df4d081927ac51efce28a3d0 | Shell | Stavrosfil/server-dots | /.zshrc | UTF-8 | 4,617 | 2.671875 | 3 | [] | no_license | # If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
# export ZSH="$HOME/.oh-my-zsh"
source $HOME/server-dots/antigen.zsh
# Export sync script thingy
export already_setup=true
# Load the oh-my-zsh's library.
antigen use oh-my-... | true |
8b144813e3011adf45201f134af81dae7dbbdb7f | Shell | symmetryinvestments/autowrap | /examples/csharp/build.sh | UTF-8 | 334 | 2.609375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
rm -f csharp
rm -f libcsharp*.so
dub build --arch=x86 --force
mv libcsharp.so libcsharp.x86.so
dub build --arch=x86_64 --force > /dev/null 2>&1
mv libcsharp.so libcsharp.x64.so
rm -f libcsharp.so
dub run --config=emitCSharp
LD_LIBRARY_PATH=$D... | true |
94c8eb63ce42620ea0cae2d9916a4554d95886ce | Shell | xoqhdgh1002/SHELL_SCRIPT | /TEST/switch.sh | UTF-8 | 516 | 3.796875 | 4 | [] | no_license | #!/bin/bash
x_tag=0
while getopts "x" option
do
case $option in
x)
x_tag=1
;;
\?)
echo "Usage : button.sh [-x] process_name" 1>&2
exit 1
;;
esac
done
shift $... | true |
d17d96dbd99b0d1838515ea3785480503003fc1f | Shell | appfirst/poll-aroid | /check_newrelic.sh | UTF-8 | 1,158 | 3.15625 | 3 | [] | no_license | #!/bin/bash
# Include path so we can execute commands like 'python'
PATH=$PATH:/usr/bin
export PATH
# script location
AfPath=/usr/share/appfirst/plugins/libexec/poll-aroid/AfPoller
## NewRelic Specific Values
accessKey=""
## you can find you application ID at https://rpm.newrelic.com/api/explore/applications/list
ac... | true |
0de4916a5f671c067798a2a67b3f57447ab8e4a2 | Shell | tdfischer/buildenv | /lib/buildenv/fs.sh | UTF-8 | 1,481 | 4.09375 | 4 | [] | no_license | source $BUILDENV_HOME/lib/load.sh
_buildenv_lib_include buildenv/debug.sh
# Sources a file if it exists
# Usage:
# _buildenv_source_file /path/to/file
#
# Returns 0 on success, 1 on failure.
function _buildenv_source_file() {
if [ -f "$1" ];then
_buildenv_debug "Sourcing $1"
source $1
return 0
fi
re... | true |
e5da0fdd5efa7e5c15bb26f65b9ac455ebfce7b3 | Shell | geeky2/awsdev | /misc-scripts/create_key_pair.sh | UTF-8 | 310 | 3.296875 | 3 | [] | no_license | #!/bin/bash
AWS_HOME_DIR=
WORK_DIR=.
PEM_FILE=bar
KEY_PAIR_NAME=$1
function CREATE_KEY_PAIR {
NAME=$1
PEM_FILE=${NAME}.pem
aws ec2 create-key-pair --key-name ${NAME} | tee /home/mark/aws_development/lori.pem
if [ $? -ne 0 ];
then
echo "bad name"
exit 100
fi
}
CREATE_KEY_PAIR $KEY_PAIR_NAME
| true |
ce559f5edbe75cd5a11afcf5ae86880a3ba5b659 | Shell | sjapalucci/Random-GIS-Scripts | /padep-update.sh | UTF-8 | 2,845 | 4.09375 | 4 | [] | no_license | #! /bin/bash
################################################################
# Simple Utility to automate the download and reprojection
# of the PA Department of Environmental Protections locational
# data set on Oil & Gas Wells
################################################################
SELFPATH=$(readlink -f... | true |
5dc580fea2ef3ce74c64e5ef754139f80b70e524 | Shell | txemaleon/dotfiles | /install/installer.sh | UTF-8 | 1,110 | 3.171875 | 3 | [] | no_license | #!/usr/bin/env zsh
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do
sudo -n true
sleep 60
kill -0 "$$" || exit
done 2>/dev/null &
# Install dotfiles
DOTFILES=$(dirname ${0:a:h})
for FILE in $DOTFILES/config/*; do
f=$(ba... | true |
3fc0dd17b50ba6250387a2116a104cfa3d14dc4c | Shell | NeoTim/skia-buildbot | /skolo/bash/skolo.sh | UTF-8 | 1,682 | 2.71875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Utilities for accessing the skolo.
# Should be sourced from $HOME/.bashrc
alias skolo_internal='ssh chrome-bot@100.115.95.131'
alias skolo_rack1='ssh chrome-bot@100.115.95.143'
alias skolo_rack2='ssh chrome-bot@100.115.95.133'
alias skolo_rack3='ssh chrome-bot@100.115.95.134'
alias skolo_rpi='ssh chrom... | true |
106b4aab26612cd9dff0539634ce5252817ac8ee | Shell | STROMANZ/AoC | /day01/day01.sh | UTF-8 | 415 | 3.453125 | 3 | [] | no_license | #!/bin/bash
numbs=$(cat input.txt)
sum2020=$(for nr in ${numbs}
do
grep ^$(expr 2020 - ${nr})$ <<< ${numbs}
done)
a=$(echo ${sum2020} | awk '{print $1}')
b=$(echo ${sum2020} | awk '{print $2}')
echo $((a * b))
for k in ${numbs}
do
for l in ${numbs}
do
for m in ${numbs}
do
sum=$((k + l + m))
if [ ${sum}... | true |
06ef6135edc6b96e84e41e893ca1d49b7e919494 | Shell | rgabriana/Work | /old_work/svn/gems/branches/dev_branch_sppa/debs/adr/opt/enLighted/adr/adr_tracker.sh | UTF-8 | 280 | 3.03125 | 3 | [] | no_license | #!/bin/bash
{
adrProcess=$(ps -ef | grep -E "adr\.jar")
if [[ $adrProcess =~ "adr.jar" ]]
then
echo "ADR is running"
else
echo "Starting ADR job"
java -Djava.util.logging.config.file=/opt/enLighted/adr/logging.properties -jar /opt/enLighted/adr/adr.jar &
fi
}
| true |
0559099136b77e7da5ac9250a7b12a5bfbfe865e | Shell | bryanskene/sudoku | /runall | UTF-8 | 821 | 2.75 | 3 | [] | no_license | #! /bin/bash
# FUTURE: analyze output of each run, find easy/hardest, etc.
boards=$(ls boards)
#boards="
# AA-c AA-d AA-e AA-f AA-h
# Cessi-1
# F-7
# b1
# b2-symmetry
# dom dom1 dom3 dom3b
# evil
# evil2
# k2
# killer1
#"
for b in $boards; do
echo "===> DOING: $b"
./sudoku -r 3 -b $b
done
find . -nam... | true |
9f0c10d6b5c8cec7eba38c9fe5c4893111aa503c | Shell | kamala421/SignLanguageRecognition | /scripts/changePersonID.sh | UTF-8 | 1,309 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# $Id: changePersonID.sh,v 1.2 2005/10/04 09:28:21 dreuw Exp $
#
#set -xv
# cmdline input variables
PERSON_ID=$1;
NEW_PERSON_ID=$2;
if [ -z "${PERSON_ID}" ] || [ -z "${NEW_PERSON_ID}" ]; then
echo "usage: changePersonID.sh <PERSON_ID> <NEW_PERSON_ID>";
exit;
else
echo "changing ID of person nr ${... | true |
8d671d640bfcb3e754eaed4d2710b20f2a411f0c | Shell | rojinnew/alpha_yelper | /SW/import.sh | UTF-8 | 826 | 2.765625 | 3 | [] | no_license | #!/bin/sh
NEO4J_HOME=./neo4j-community-2.3.3
TARGET=$NEO4J_HOME/data/graph.db
SOURCE_DIR=$(realpath .)
$NEO4J_HOME/bin/neo4j-import \
--into $TARGET \
--multiline-fields=true \
--id-type string \
--nodes:Business $SOURCE_DIR/business.csv \
--nodes:User $SOURCE_DIR/user.csv \
--relationships:fr... | true |
c7dadbb640fa88f4d8c1734e7f3ed1c4c275eb2e | Shell | dyoungwd/ManjaroWiki | /wiki/wiki.sh | UTF-8 | 1,117 | 4.03125 | 4 | [] | no_license | #!/bin/bash
if [ "--help" == "$1" ]; then
this=`basename $0`
echo
echo "Usage: $this archwiki page name"
echo
echo " where archwiki page name is title of page on wiki.archlinux.org"
echo
echo "Examples:"
echo " $this ssh"
echo " $this the arch way"
echo " $this beginners guide"
echo
exit 0
fi
# try to... | true |
196cb6729d3d62b2f571721c25655842819a8671 | Shell | robstwd/dotfiles | /bspwm/panel | UTF-8 | 597 | 2.859375 | 3 | [] | no_license | #! /bin/sh
PANEL_HEIGHT=10
if [ $(pgrep -cx panel) -gt 1 ] ; then
printf "%s\n" "The panel is already running." >&2
exit 1
fi
# The panel can now be properly killed with `pkill -x panel`.
trap 'trap - TERM; kill 0' INT TERM QUIT EXIT
[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
mkfifo "$PANEL_FIFO"
bspc subscr... | true |
e5ff3df52e4a5fafc6a5b5723bcc03cc75434c91 | Shell | BaliStarDUT/hello-world | /code/shell/until_ping.sh | UTF-8 | 266 | 3.28125 | 3 | [] | no_license | #!/bin/bash
NETWORK=192.168.1
IP=30
until [ "$IP" -ge "130" ]
do
echo -en "Testing machine at IP address :${NETWORK}.${IP}..."
ping -c1 -w1 ${NETWORK}.${IP} > /dev/null 2>&1
if [ "$?" -eq 0 ]
then
echo "OK"
else
echo "Failed"
fi
let IP=$IP+1
done
exit 0
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.