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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
908bfcb5c378d86b199387aaab664ed50894f074 | Shell | keets2012/syncer | /test/setupEnv.sh | UTF-8 | 2,716 | 3.796875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
set -e
source ${LOG_LIB}
function generateMysqlTestData() {
logi "---------------------"
logi "generateMysqlTestData"
logi "---------------------"
cd generator
docker build . -f DataGenerator.Dockerfile -t generator:test
cd ..
start=0
for (( i = 0; i < ${MYSQL_INS... | true |
372c31e31f4479021a43d520f7da2f22aaf85c88 | Shell | apiz19/konfiq | /.config/nnn/config.zsh | UTF-8 | 1,144 | 2.796875 | 3 | [] | no_license | n ()
{
# Block nesting of nnn in subshells
if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then
echo "nnn is already running"
return
fi
# The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set)
# To cd on quit only on ^G, remove the "export" as in:
# NNN_TMP... | true |
af4132d255becdbb1dc7f29f8b26021aa574dced | Shell | Meshl-555/FrameworkBenchmarks | /toolset/setup/linux/languages/racket.sh | UTF-8 | 351 | 3.09375 | 3 | [] | permissive | #!/bin/bash
RET=$(fw_exists ${IROOT}/racket.installed)
if [ "$RET" == 0 ]; then
return 0;
fi
fw_get http://mirror.racket-lang.org/installers/recent/racket-src.tgz -O racket-src.tar.gz
fw_untar racket-src.tar.gz
mv racket racket-install
cd racket-install/src
./configure --prefix=${IROOT}/racket
make
make install
... | true |
c85e997eab4d5c9ec8abfd4024326573ab6dbc7e | Shell | ashwindasr/college | /unix_lab/code/2.sh | UTF-8 | 133 | 3.03125 | 3 | [] | no_license | #Question: Add unspecified number of command line arguments(numbers)
#!/bin/sh
s=0
for x in $*
do
s=$(($x+$s))
done
echo $s
| true |
64a356985d73c3ad286831f1e89d6690dbe661da | Shell | cma0014/awl-dissertation | /Programs/ul-gate/opensolaris.sh | UTF-8 | 7,359 | 2.828125 | 3 | [
"CC0-1.0"
] | permissive | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | true |
09a57c0e080d9a5e86177072a89f3d4c23664d75 | Shell | ogarcia/pkgbuilds | /lesspass-client/PKGBUILD | UTF-8 | 884 | 2.859375 | 3 | [
"Unlicense"
] | permissive | # Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
pkgname=lesspass-client
pkgver=0.7.0
pkgrel=1
pkgdesc='LessPass API server client library and CLI written in Rust'
arch=('arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64')
url='https://gitlab.com/ogarcia/lesspass-client'
license=('GPL3')
depends=('gcc-l... | true |
4b42978cc742b7f71fe8ad924e9469e6b0ef2bc2 | Shell | drrosa/42_piscine | /d09/ex09/where_am_i.sh | UTF-8 | 136 | 2.953125 | 3 | [
"Unlicense"
] | permissive | cmd=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d \ -f2);
if [ -z "$cmd" ]
then
echo "Je suis perdu!"
else
echo "$cmd"
fi
| true |
cec08f8043b133cd58aa90c3593183c7a897a286 | Shell | chdiethelm/ansible-example | /playbooks/roles/clamav/templates/hourly.j2 | UTF-8 | 424 | 3.375 | 3 | [] | no_license | #!/bin/bash
EMAIL="{{ admin_email }}"
LOG=/var/log/clamav/scan.log
HOST=`hostname`
TEMPORARY_FILE=`mktemp /tmp/virus-alert.XXXXX`
clamscan --remove --recursive --suppress-ok-results --infected --log=$LOG "{{ nfs_shared_path }}" > $TEMPORARY_FILE
if [ `grep Infected $TEMPORARY_FILE | grep -v 0 | wc -l` != 0 ]; then
... | true |
03ef4effeca90ef0a2286bd3de5bf5b3907885e8 | Shell | marsgpl/leetnews-backend | /deploy/restart.sh | UTF-8 | 196 | 2.8125 | 3 | [] | no_license | #!/bin/zsh
SSH_USERNAME="leetnews"
SERVICE="$1"
echo "Restarting ${SERVICE} ..."
ssh "${SSH_USERNAME}@marsgpl" "docker-compose up -d --build --force-recreate ${SERVICE}" || exit 1
echo "OK"
| true |
4d061ad463c3102219d3687e64361a922cba7149 | Shell | ilventu/aur-mirror | /tigervnc-svn/PKGBUILD | UTF-8 | 2,387 | 2.6875 | 3 | [] | no_license | # Maintainer: Uroš Vampl <mobile.leecher at gmail dot com>
pkgname=tigervnc-svn
pkgver=5002
pkgrel=1
_xorgver=1.13.0
pkgdesc="suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC."
arch=('i686' 'x86_64')
url="http://www.tigervnc.org"
license=('GPL')
depends=('fltk-snapshot' 'pam' 'gnutls' 'libxtst' ... | true |
95e9c8f7015795e99aed2349ae4de0053fedb927 | Shell | rosierui/hrank | /shellscript/bash/array/arr1_read_an_array.sh | UTF-8 | 462 | 3.328125 | 3 | [] | no_license | # https://www.hackerrank.com/challenges/bash-tutorials-read-in-an-array/problem
# Input Format
# A list of country names. The only characters present in the country names will be upper or lower case characters and hyphens.
# Output Format
# Display the entire array of country names, with a space between each of th... | true |
7ca9303ead11bd246237b7718ed97039a69066f9 | Shell | NganarembaShija/devLab | /shell/Q3.sh | UTF-8 | 255 | 3.453125 | 3 | [] | no_license | echo -n "Enter any three numbers: "
read num1 num2 num3
if [ $num1 -gt $num2 ] && [ $num1 -gt $num3 ]; then
echo $num1 is the greatest
elif [ $num2 -gt $num1 ] && [ $num2 -gt $num3 ]; then
echo $num2 is the greatest
else
echo $num3 is the greatest
fi
| true |
37edc755943916203108cea4aefa61b35902c964 | Shell | BioAlgs/MetaGen | /script/bowtie2-align.sh | UTF-8 | 2,342 | 3.78125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
HELPDOC=$( cat <<EOF
Usage:
bash `basename $0` [options] <ref> <outdir> <reads-dir> <reads-name>
Options:
-s Single-end reads
-p Paired-ends reads
-q For fastq files
-a For fasta files
-h This help documentation.
EOF
)
#options
while getopts "sphqa" opt; do... | true |
285a570099d80903d7ab4b0cd74c9214a3ab3527 | Shell | shatacloud/keyserver | /pkg/centos/before-install.sh | UTF-8 | 253 | 3.171875 | 3 | [] | no_license | # create keyless group
if ! getent group keyless >/dev/null; then
groupadd -r keyless
fi
# create keyless user
if ! getent passwd keyless >/dev/null; then
useradd -r -g keyless \
-s /sbin/nologin -c "ShataCloud Keyless Service User" keyless
fi
| true |
fd0413d7e0313576d112e42ca5ceb0568c0698ac | Shell | samba2/stow-manager | /stow_manager.sh | UTF-8 | 23,718 | 4.4375 | 4 | [] | no_license | #/bin/bash
########################################################################
#
# Stow-Manager
#
# Working prototype of a simple package manager based on symbolic links.
# The core functionality (installing, removing... ) is provided by
# the GNU tool 'stow'.
#
# "Informational commands" as well as support... | true |
a559a866c211718e353bb1c8cd4e7997c0445954 | Shell | BusterNeece/dotfiles | /setup.sh | UTF-8 | 547 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
export USERNAME=`whoami`
# Configure Git
git config --global user.name "Buster \"Silver Eagle\" Neece"
git config --global user.email loobalightdark@gmail.com
git config --global init.defaultBranch main
git config --global commit.gpgsign true
# Update and ins... | true |
f1d8b937261f5e3622194022f172b6490f8f2a85 | Shell | aaronmccall/git-multi-tools | /bin/git-dir-update | UTF-8 | 1,843 | 3.921875 | 4 | [] | no_license | #!/bin/bash
reset=$(tput sgr0)
red=$(tput setaf 1)
green=$(tput setaf 2)
magenta=$(tput setaf 5)
dirty="**dirty** Not updated."
current="Up to date!"
target=false
update_dirty=false
while (( $# )); do
if [ "$1" == "-f" ]; then
update_dirty=true
else
target=$(realpath $1)
fi
shift
done
... | true |
1c215193bffabf6c181ea98ff6c47b9817bcccd0 | Shell | em-gei/project-qas | /integrity.sh | UTF-8 | 1,447 | 3.8125 | 4 | [] | no_license | #! /bin/sh
echo "##################################"
echo "Files in directory:"
echo
ls
search=true
echo
while $search
do
echo "##################################"
echo "Want to move from this directory? (yes/no)"
read -r
choiche=$REPLY
if [ $choiche = "yes" ]
then
echo "###############... | true |
4814ccc9a6996ca74e2ff1dd531d1316a17e6503 | Shell | Xmetalfanx/website | /sass.sh | UTF-8 | 592 | 3.5625 | 4 | [] | no_license | #!/bin/bash
function cleanCSSFolder() {
clear && echo "Clearing out CSS folder"
rm css/*.css
rm css/*.css.map
}
function userPrompt() {
read -rp "Press any key to continue"
}
cleanCSSFolder
clear && echo "Running scss check/fix THEN Compile Sass to a raw CSS file"
npm run fix:scss
#userPrompt
npm run comp... | true |
9c666f17491733e2ec35bf389f546cb42be75ebc | Shell | ruRust/rust_book_ru | /script/convert.sh | UTF-8 | 446 | 2.921875 | 3 | [] | no_license | #!/bin/sh
ROOT=$(pwd)
BOOK_DIR=${ROOT}/_book
CONVERTED_DIR=${BOOK_DIR}/converted
mkdir -p $CONVERTED_DIR
cd $BOOK_DIR
cp ${ROOT}/static/css/rust-book-pdf.min.css rustbook.css
sed -i "s/@import url('..\/rust.css');/@import url('.\/rust.css');/g" rustbook.css
cp ${ROOT}/static/css/rust.css rust.css
parallel ::: "${R... | true |
17d9fcd4646669bf50f6576dbb46436e1f8e2cfd | Shell | patrickpierson/snyk | /test/smoke/spec/sanity_spec.sh | UTF-8 | 1,315 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #shellcheck shell=sh
: '
Since we are dealing with multiple utilities and environments
we should have a sanity test in place to test them
'
Describe "Snyk CLI"
It "have Snyk CLI available"
When run which snyk
The output should include "/snyk"
The status should be success
The stderr should equal ... | true |
f4c696d2da3d3fc2c0a29739bf7782c735983255 | Shell | JohannHansing/scripts | /get_planeHistoGrid.sh | UTF-8 | 1,541 | 3.890625 | 4 | [] | no_license | #!/bin/sh
# get_planeHistoGrid.sh
#
#
# Created by Johann on 1/8/13.
#
# Use like: sh get_planeHistoGrid.sh directory plane z
# z should be between 1 and 100 (1 is z=0 and 100 is z=boxsize)
if [ $# -eq 0 ]
then
echo "$0:Error command arguments missing!"
echo "Usage: sh get_planeHistoGrid.sh directory plane... | true |
ac2aac333fe8e3f8286ae82404779270fab7b9bf | Shell | extremecode/redis-cache | /build/install/boot.d/101-start-redis.sh | UTF-8 | 313 | 3.125 | 3 | [] | no_license | #!/bin/bash
echo " creating redis cluster"
mkdir -p /opt/redis-cluster
for port in 6001 6002 6003 6004 6005 6006
do
echo "creating redis for $port"
mkdir -p /opt/redis-cluster/$port
cp -R /tmp/redis /opt/redis-cluster/$port
sed -i 's/6001/'$port'/g' /opt/redis-cluster/$port/redis/src/redis.conf
done
| true |
8ed390219743d8e79d99944de6b9782106a8fb92 | Shell | zxcseraph/- | /数据库综合监控脚本/old/顺扫/seqscan.sqlite3.sh | GB18030 | 4,141 | 3.109375 | 3 | [] | no_license | #!/bin/sh
#2018-05-10 ʽ
DIR=/home/gealarm/genalarm/idsbin
log=$DIR/unload.log
TAGLOG=$DIR/taglog.log
XITONGTEMP=`uname`
XITONG=`echo $XITONGTEMP|tr '[a-z]' '[A-Z]'`
time=`date +"%Y%m%d%H%M%S"`
timenowUTC=`date +%s`
dt=`date +"%Y%m%d"`
dH=`date +"%Y%m%d%H"`
dM=`date +"%Y%m%d%H%M"`
dS=`date +"%Y%m%d%H%M%S"`
dN=`date +"%H... | true |
5d7203fe212d45f3320d5d9ff489400cdbe04958 | Shell | JakKowalCzyk/scripts | /start_instance.sh | UTF-8 | 1,115 | 2.546875 | 3 | [] | no_license | HOST=$1
ID_GROUP_SSH22=$(aws ec2 describe-security-groups --profile kubaCli --query 'SecurityGroups[?GroupName==`ssh22`].GroupId' --output text)
ID_CENTOS_AMI=$(aws ec2 describe-images --owners 'aws-marketplace' --filters 'Name=product-code,Values=aw0evgkw8e5c1q413zgy5pjce' --query 'sort_by(Images, &CreationDate)[-1].... | true |
37b8aa25f207ae4fa470a29cea065a649c302fbf | Shell | zeel-dev/ng-inx | /.cicd/build-push.sh | UTF-8 | 231 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
for TAG in $(echo $TAGS | jq -r .[]);
do
IMAGE_NAME="$DOCKERHUB_USERNAME/ng-inx:$TAG"
docker build -t "$IMAGE_NAME" "./versions/python-buster/$PYTHON_VERSION"
docker push "$IMAGE_NAME"
done
| true |
79ddd532424372ffc07403c8b48502c6c9d19f18 | Shell | subhamproject/shell_script_repo | /docker.sh | UTF-8 | 1,488 | 3.875 | 4 | [] | no_license | export BEFORE_DATETIME=$(date --date='10 weeks ago' +"%Y-%m-%dT%H:%M:%S.%NZ")
docker images -q | while read IMAGE_ID; do
export IMAGE_CTIME=$(docker inspect --format='{{.Created}}' --type=image ${IMAGE_ID})
if [[ "${BEFORE_DATETIME}" > "${IMAGE_CTIME}" ]]; then
echo "Removing ${IMAGE_ID}, ${BEFORE_DATET... | true |
af2c36067e47ed5c7e429fa431b583c8c3ee08fb | Shell | pio127/cpp-optimization | /all_build_windows_MinGW.sh | UTF-8 | 337 | 3.171875 | 3 | [] | no_license | #!/bin/bash
if [ ! -e build ]; then
mkdir build
fi
cd build
#rm -rf *
cmake .. -G "MinGW Makefiles"
cmake --build .
cd ../bin
echo
for filename in $(ls *exe); do
echo ------------------------------------------
echo " Running" $filename
echo ------------------------------------------
./$fi... | true |
e2a9e2720c2554755281ea549305b78d8e003ace | Shell | Venomen/syncdir | /syncdir.sh | UTF-8 | 2,043 | 4.375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Copyright (c) 2019 - Dawid Deręgowski - MIT
#
# Script to detect new files in directory
# And send changes to git repo
#
# PLEASE CHANGE $WATCH_DIR TO YOUR DIR!
# DEFAULT $TMP_DIR IS IN ROOT - if you change it,
# Rembember to edit last lines!
#
# SIMPLE SYNCDIR APP
# VERSION 1.0.0
source $HOME/scripts... | true |
4c012c9f00dd063d935bb86ca74743548fe84114 | Shell | abalone2000/rkp-build | /script/sdk_mount.zsh | UTF-8 | 397 | 3.484375 | 3 | [] | no_license | #!/bin/zsh
cd $(dirname $0:A)
mkdir sdk
cd sdk
if [ -n "$@" ]
then
sdks="$@"
else
sdks=$(ls ../../sdk | sed 's/\(.*\)\.img/\1/g')
fi
for sdk in $sdks
do
mkdir $sdk
mkdir $sdk.upper
mkdir $sdk.lower
mkdir $sdk.work
sudo mount -o ro ../../sdk/$sdk.img $sdk.lower
sudo mount -t overlay ov... | true |
533ebc1d2d1cda43abc27f4bd52c7ebd074c6f15 | Shell | NBY/tools | /tools/lnp.sh | UTF-8 | 6,809 | 2.96875 | 3 | [] | no_license | #!/bin/bash
echo -e "\033[46m set hostname \033[0m"
read newhostname
hostname $newhostname
echo "$newhostname" > /proc/sys/kernel/hostname
sysctl kernel.hostname=$newhostname
sed -i "\$a HOSTNAME=$newhostname" /etc/sysconfig/network
hostnamectl --static set-hostname $newhostname
echo -e "\033[46m input mysql keys (wri... | true |
e323d99be793df0be11d214bcb5c9d7166dc502d | Shell | rpio/base-images | /buildpack-deps/generate-dockerfile.sh | UTF-8 | 1,238 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
devices='raspberrypi raspberrypi2 beaglebone edison nuc vab820-quad zc702-zynq7 odroid-c1 odroid-ux3 parallella-hdmi-resin nitrogen6x cubox-i ts4900 colibri-imx6 apalis-imx6'
suites='jessie wheezy'
for device in $devices; do
if [ $device == 'raspberrypi' ]; then
baseImage="$device-systemd"
els... | true |
221c5d788ce2f8fa6ec67c0a768492c0a54fe667 | Shell | Bjay1435/capstone | /rootfs/var/lib/dpkg/info/libnewt0.52:armhf.postinst | UTF-8 | 389 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
case "$1" in
configure)
# Install alternatives
update-alternatives --install /etc/newt/palette newt-palette /etc/newt/palette.ubuntu 50
update-alternatives --install /etc/new... | true |
b3271819b225b8f209957f5572eda5050ef380d3 | Shell | drbentley/MastersThesis | /src/kops/tasks | UTF-8 | 9,145 | 3.8125 | 4 | [] | no_license | #!/bin/bash
set -e
# any environment variable containing non-numeric characters should be unset,
# because it impedes the "kops create cluster" command
unset OS_PASSWORD
export K8S_EXP_REGION="eu-west-1"
# there will be 1 s3 bucket to keep k8s clusters config, for many clusters
# (for many environments)
export K8S_E... | true |
56a0060d6371f64a0fd7d8ca05278abf92d551b8 | Shell | jonalv/cloud-deploy-kubenow | /test_env_vars_for_embassy.sh | UTF-8 | 1,593 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #
# These vars are expected to be set in web-ui (specified via manifest.sh)
#
#
# All credentials env vars from openstack are expected
#
# OS_AUTH_URL
# OS_TENANT_ID
# OS_TENANT_NAME
# OS_USERNAME
# OS_PASSWORD
# OS_REGION_NAME
# OS_USER_DOMAIN_ID
# OS_DOMAIN_ID
# OS_PROJECT_ID
# OS_AUTH_VERSION
#
# Speciffic for Emb... | true |
43341954e078c9c204c2b43076124ccdb5294790 | Shell | sdothum/dotfiles | /herbstluftwm/.config/herbstluftwm/autostart | UTF-8 | 4,059 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/dash
# sdothum - 2016 (c) wtfpl
[ $TRACE ] && CHILD="autostart $@" . $PARENT
# herbstluftwm
# ══════════════════════════════════════════════════════════════════════════════
HLWMTRACE=$SESSION/trace
CONKY=$SESSION/conky
hook=1 # emit_hook initialization window
# chain herbstclient commands (note: keybind ... | true |
0deb7e5a10609f865455233dbaa6590649162e63 | Shell | wangke19910912/usedShell | /ad/train_hadoop_whole_save_all_model.sh | UTF-8 | 2,196 | 3.515625 | 4 | [] | no_license | #/bin/sh
data_path=$1
loop_days=$2
loop_start=$3
old_model_name=$4
dir=`echo $data_path | rev | cut -d / -f 1 | rev`
process_id=ftrl_"$dir".id
prefix="_CPC_behavior"
echo $$ > log/$process_id
echo dir:$dir
echo data_path:$data_path
echo old_model_name:$old_model_name
echo loop_days:$loop_days
echo loop_start:$loop_s... | true |
87675b19618cb2ab86ed453ca67efbfcd8377f31 | Shell | netravnen/my-lnx-cfg | /home/user/bin/kill-dead-processes.sh | UTF-8 | 240 | 3.1875 | 3 | [] | no_license | # /bin/sh
# script to kill all dead processes with <defunct> in process name
PID="$(ps aux | grep ztd-log | grep -v grep | awk '{print $2}')"
echo ${PID}
if [ x"${PID}" != x"" ]; then
kill -9 ${PID} &>/dev/null
sleep 1
fi
echo "done"
| true |
a05eaac84de9147229518279cfe371a0ded1fffa | Shell | naturalnumber/CS361A2 | /fix_runs | UTF-8 | 936 | 2.84375 | 3 | [] | no_license | #!/bin/bash
#for i in {1..4}; # low print
#do
# ./do_all $i 42;
#done
#for i in 5;
#do
# ./do_all $i 32;
#done
for i in {1..2};
do
list="${i}x32"
#for t in {0..5};
#do
for v in {0..7}; #1 2 5 7;
do
echo "command: do_all "$list" 66 $v" # $t"
./do_all "$li... | true |
b863830e47931a4b99c9830ab6942398396e3967 | Shell | BorisWilhelms/custom-installers | /install-azuredatastudio.sh | UTF-8 | 461 | 3.921875 | 4 | [] | no_license | #!/bin/bash
if [ "$(id -u)" -ne 0 ]; then
echo "Must be run as root."
exit
fi
TARGET=/var/tmp/azuredatastudio.deb
REGEX="\[linux-deb\]: ([a-z0-9:?=\.\/]*)\\\r"
CONTENT=$(curl -s https://api.github.com/repos/microsoft/azuredatastudio/releases/latest)
if [[ $CONTENT =~ $REGEX ]]; then
echo "Downloading deb ... | true |
41e64d89f2e43a272b8a59c1c99960a9f0abba56 | Shell | teamwork523/Cross-layer-tool | /scripts/verify_rlc_fast_retx.sh | UTF-8 | 494 | 2.78125 | 3 | [] | no_license | #!/bin/bash
dir=$1
srv_ip=141.212.113.208
model=$2
dup_ack_num=$3
draw_percent=$4
for rss in high low; do
for i in 3 3.5 4 4.5 5; do
echo "#############################################"
echo "Running $dir $i $rss..."
src/traceAnalyzer.py --retx_analysis --cross_analysis --dup_ack_threshold ... | true |
e8925aa1f259b9c5459830ee7bc64a98454a4ba2 | Shell | chaabni/components | /vaadin-components-package/src/scripts/create_zip.sh | UTF-8 | 2,351 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
package=com.vaadin.prototype.wc
[ -n "$1" ] && version=$1 || version=1.0-SNAPSHOT
client=wc-client
gwtapicomponents=wc-polymer-demo
gwtapi=wc-gwt-api
m2repo=~/.m2/repository/`echo $package | tr "." "/"`
pkgName=vaadin-components
jarName=$pkgName-$version.jar
jsName=$pkgName.js
pwd=`pwd`
set -xe
setVersio... | true |
b7f581587f7202977fdb9720b2445bdbba6a40ae | Shell | neulab/lrlm | /preprocess/scripts/preprocess_wikitext.sh | UTF-8 | 1,969 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
############################ MODIFY THESE ACCORDINGLY #################################
WIKITEXT_DIR= # Path to the unzipped wikitext-raw dataset.
WIKIDATA_DUMP_DIR= # Path to the directory containing `latest-truthy.nt` file.
ALIGNED_DATA_DIR='./dataset'... | true |
557ca2fd67c63e62fed35e6292c1d8267f3c054e | Shell | ranjithmani/bash-hub | /createuser.sh | UTF-8 | 678 | 3.765625 | 4 | [] | no_license | #!/bin/bash
#---------------------------------------------------------------------------
#This script is to create group of users and assign them a common password
#prerequests: chpasswd utility should be available in your system
#USAGE : ./createuser.sh
#----------------------------------------------------------------... | true |
1eeb471c3f7d656397bc38e049deaf4908000998 | Shell | kimhou/ideConfigs | /pushConfig.sh | UTF-8 | 698 | 3.28125 | 3 | [] | no_license | echo "git pull start";
git pull origin master
echo "git pull complete";
version=$1;
if [ "${version}x" = "x" ]; then
version=15;
fi
echo "start copy version ${version} config files";
preferenceDir="$HOME/Library/Preferences/IntelliJIdea${version}";
pluginDir="$HOME/Library/Application Support/IntelliJIdea${version}";... | true |
e18a8681811f57703d3c8360bd35bd80fc00e5d5 | Shell | MaximilianoCaba/YoutubeDownloaderBash | /scripts/dependencies.sh | UTF-8 | 1,124 | 3.390625 | 3 | [] | no_license | #!/bin/bash
youtubedlBoolean=false
echo
echo "///////////////////////////////////////////////////////////"
echo "/////////////// corroborando dependencias /////////////////"
{
YOUTUBEDL_SEARCH_DEPENDENCY=$(dpkg -s youtube-dl 2>&1)
} &> /dev/null
#si no existe la dependencia Youtube-dl la instala
if [[ $YOUTUBED... | true |
167d9b4de9411619849fe5076f9f4c4a0a787337 | Shell | shkpk/varnish-tools | /netstats2.sh | UTF-8 | 277 | 2.640625 | 3 | [] | no_license | #!/bin/bash
total_conn=$(netstat -alntp | grep ':80' | wc -l)
echo "total Number of connections to Varnish are:- " $total_conn
total_esta_conn=$(netstat -alntp | grep ':80' | grep ESTA | wc -l)
echo "total Number of ESTABLISHED connections to Varnish are:- " $total_esta_conn
| true |
f861f8d88f51c73163dd2f4e7db8c6732ce692d4 | Shell | aa989190f363e46d/rcethRegsSpiders | /scripts/mntg.sh | UTF-8 | 3,988 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#C=17
dvsrs=(8 4 2 1)
#============
dpi=150
tmp_dir=tmp
fl_dir=/home/muzzy/Documents/py_pract/rcethRegsSpiders/data/jpg/dpi-150/10000_12_i
a4_150_dpi_lng=1754
a4_150_dpi_shrt=1240
a4_150_dpi_port=${a4_150_dpi_shrt}x${a4_150_dpi_lng}
a4_300_dpi_lng=3508
a4_300_dpi_shrt=2480
a4_300_dpi_port=${a4_3... | true |
18c7ad1fc32b27e37807d1e5c85ecad084e06d93 | Shell | shgalus/shg | /tools/install-gcc.sh | UTF-8 | 1,161 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# install-gcc.sh: install gcc${VERSION} on Debian Linux 9 (stretch)
#
# Change VERSION below to what is needed.
#
# If g++-6-multilib package is not already installed,
# --disable-multilib should be added to configure.
#
# Stanislaw Galus
# Sun Apr 21 19:57:41 CEST 2019
VERSION=-8.3.0
wget ftp://ftp.gnu.org... | true |
b8830a9726ee1136aeed43fa5d9f60b63894f141 | Shell | manuel-192/m-m | /PKGBUILDs/sudo-like-for-all/PKGBUILD | UTF-8 | 486 | 2.609375 | 3 | [] | no_license | #!/bin/bash
# Maintainer: manuel (see forum.endeavouros.com)
pkgname=optionless-sudo-for-all
pkgdesc="Optionless 'sudo' command for all users."
url="https://github.com/manuel-192/m-m/raw/master/PKGBUILDs/$pkgname"
pkgver=23
pkgrel=1
arch=(any)
license=(GPL)
source=(sudo)
sha512sums=('c93a1c745d15799da99a3c9f595dc4d... | true |
a0ceee3a26c9c2c7cb13c2b416c479f14fbb33ce | Shell | skeptycal/.dotfiles | /zshrc_inc/functions/func_repo.zsh | UTF-8 | 2,070 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
# -*- coding: utf-8 -*-
# shellcheck shell=bash
# shellcheck source=/dev/null
# shellcheck disable=2178,2128,2206,2034
#? ################# .functions - functions for macOS with zsh ###############
#* copyright (c) 2019 Michael Treanor ----- MIT License
#* should not be run dire... | true |
9280cd7dec3d1e924a660d1ca4404be02af14b60 | Shell | gmontoya/fedra | /scripts/startProxies.sh | UTF-8 | 962 | 3.375 | 3 | [] | no_license | #!/bin/bash
firstPort=$1
lastPort=$2
firstProxyPort=$3
pePort=$4
peProxyPort=$5
proxyFolder=$6
addressA=$7
peGraph="${8}"
graphPrefix="${9}"
graphIndex="${10}"
last=$(($lastPort-$firstPort))
tmpFile=`mktemp`
p=`pwd`
echo "tmpFile: $tmpFile"
cd $proxyFolder
for i in `seq 0 $last`; do
localPort=$(($firstPort+$i)... | true |
ca7f75ca89eeae69aad7e4acf3da49044ccac501 | Shell | Rockwc/book | /zsh/fast/.bin/pkgc | UTF-8 | 410 | 2.734375 | 3 | [
"ISC"
] | permissive | #!/bin/zsh
(($+commands[pacman])) && {
for i ($(pacman -Qeq)) {
if (! pacman -Qi $i | grep -q 'Required By.*None') {
sudo pacman -D --asdeps $i
}
}
}
(($+commands[apt])) && {
for i ($(apt-mark showmanual)) {
grep Depends: ~/../usr/var/lib/dpkg/status \
| gre... | true |
72e75cf9d9c5e54ad0ca2a7f4f9416ffc6b16222 | Shell | ochafik/ai-playground | /parsey_universal.sh | UTF-8 | 496 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -eu
cd "${0%/*}"
readonly language="${1:-English}"
if [[ ! -d "models/parsey_universal/$language" ]]; then
(
mkdir -p models/parsey_universal
cd models/parsey_universal
wget "http://download.tensorflow.org/models/parsey_universal/$language.zip" >&2
unzip "$language.zip" >&2
rm "$l... | true |
909245232faa5cb7aaf72c8dbc86f6e714d335dc | Shell | jdorfman/curiefense | /deploy/curiefense-helm/deploy.sh | UTF-8 | 876 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ -z "$DOCKER_TAG" ]; then
if ! GITTAG="$(git describe --tag --long --exact-match 2> /dev/null)"; then
GITTAG="$(git describe --tag --long --dirty)"
echo "This commit is not tagged; use this for testing only"
fi
DOCKER_DIR_HASH="$(git rev-parse --short=12 HEAD:curiefense)"
... | true |
060c6bd6487abe5ab22be87b9a61c721997693ac | Shell | e-carlin/home-env | /bin/_bivio_pyenv_install | UTF-8 | 937 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Wraps pyenv install
# usage: . $0
#
if [[ ! $PYENV_ROOT ]]; then
echo 'You must set PYENV_ROOT in bashrc before calling' 1>&2
exit 1
fi
if [[ ! -d $PYENV_ROOT ]]; then
# works with pyenv 2+
bivio_path_insert "$PYENV_ROOT"/bin 1
bivio_path_insert "$PYENV_ROOT"/shims 1
curl... | true |
5af1c5914167630d8d30eb73d3dfe1f5786167d4 | Shell | rlesouef/dedibox | /secure-01.sh | UTF-8 | 3,922 | 3.875 | 4 | [] | no_license | #!/bin/bash
# Post installation dedibox
# Sécurisation
# Open Source Services - 01/2015
# GPL
#
# Syntaxe: # su - -c "./secure-01.sh"
# Syntaxe: or # sudo ./secure-01.sh
#
# Doit etre lance en root
if [ $EUID -ne 0 ]; then
echo "Le script doit être lancé en root: # sudo $0" 1>&2
exit 1
fi
# Fonctions
#----------... | true |
857411bbc55a47d743d4d23257f6a5797889fe43 | Shell | EkainAgirrezabal/vagrant-machines | /dev/install_jaspersoft_studio.sh | UTF-8 | 1,232 | 2.65625 | 3 | [] | no_license | #!/bin/bash
# Jaspersoft Studio 6.5.0
sudo mkdir /tmp/jaspersoft && cd "$_"
sudo wget https://downloads.sourceforge.net/project/jasperstudio/JaspersoftStudio-6.5.0/TIB_js-studiocomm_6.5.0.final_linux_amd64.deb
sudo dpkg -i TIB_js-studiocomm_6.5.0.final_linux_amd64.deb
# Jaspersoft Studio 6.4.3
#sudo mkdir /usr/local/... | true |
7ada79c5ee8b78ed255c5988d325b5eafe1dae17 | Shell | xwt-benchmarks/rapidoid | /bin/loop-tests.sh | UTF-8 | 189 | 2.59375 | 3 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
for i in $(seq 1 10000000)
do
printf "\n\n============================== $i ==============================\n\n"
mvn clean verify
done
| true |
60837a086a95b6c4615df7b08760c9f2b9d901ea | Shell | SevanthGH/tier-3-ROS | /tests/07_launch_files.sh | UTF-8 | 657 | 3.546875 | 4 | [] | no_license | #!/bin/bash -e
if rospack list | grep "ex07_launch_file";then
echo "package found"
else
echo "package not found"
exit 1
fi
roslaunch goal_publisher goal_publisher.launch&
pid=$!
sleep 5
timeout 5 roslaunch ex07_launch_file goalPrint.launch > output
kill -s TERM $pid
wait $pid
regex="\s*[-+]?(... | true |
9762d71c986024ed7730379ced0602dfdc748895 | Shell | niemdinhtrong/thuctapsinh | /HienNT/Linux/docs/NGINX/tools/CentOS-7/wp_cen7.sh | UTF-8 | 2,055 | 4.21875 | 4 | [] | no_license | #!/bin/bash
##### Script install Wordpress
### Variable default
dbname=wordpress
dbuser=wordpress
dbpass=wordpress
path=/usr/share/nginx/html
# Function check user root
f_check_root () {
if(( $EUID == 0)); then
return 0
else
return 1
fi
}
# Function download Wordpress
f_download_wordpress () {
yum ins... | true |
88d6d5e69351f62a3946b8bf0734ba6a076dd8f8 | Shell | aryarm/motif_check | /run.bash | UTF-8 | 1,322 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# An example bash script demonstrating how to run the entire snakemake pipeline
# This script creates two separate log files:
# 1) log - the basic snakemake log of completed rules
# 2) qlog - a more detailed log of the progress of each rule and any errors
# Before running the snakemake pipeline,... | true |
2ed29b8a584e76f7955e4ece861510f62e2b6c13 | Shell | aboudiop/cmsc773 | /scripts/run_maxent.sh | UTF-8 | 861 | 3.046875 | 3 | [] | no_license | #!/bin/sh
PROJ_PATH="$HOME/Dev/773proj"
export PATH="$PROJ_PATH/maxent:$PROJ_PATH/feateng:$PROJ_PATH/eval:$PATH"
export PYTHONPATH="$PROJ_PATH:$PYTHONPATH"
# prepare input
tmp="megam.run"
cp train.megam "$tmp"
echo "DEV" >> "$tmp"
cat dev.megam >> "$tmp"
# training
maxent_train 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7... | true |
065dbfd23b14f94ee8991b0ed0056fff6c14be08 | Shell | kataki/Root-Me-6 | /PID.sh | UTF-8 | 352 | 3.203125 | 3 | [] | no_license | #!/bin/bash
WIP=/tmp/arthour
mkdir $WIP
cd $WIP
NAME=test.c
cat >$NAME <<EOF
#include <string.h>
#include <crypt.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
char pid[16];
snprintf(pid, sizeof(pid), "%i", getpid() + 1);
printf("%s", crypt(pid, "\$1\$awesome"));
return 0;
}
EOF
gcc $NAME -lcrypt -o... | true |
c681b96c61d1686641dce85a029fc17f6f86de6e | Shell | raptowl/dotfiles | /conf/.bashrc | UTF-8 | 3,833 | 3.3125 | 3 | [
"Unlicense"
] | permissive | ######################################################################
# functions
######################################################################
# load the functions as common settings for bash/zsh
. "$HOME/.shrc_common"
load_default_settings() {
# Load settings from the default file
# Globals:
# N... | true |
7caf93847760da9deeedf0d4381f594d84a2c86e | Shell | anthony-khong/simulation_methods | /clojure/run | UTF-8 | 403 | 2.921875 | 3 | [] | no_license | #! /bin/bash
export TAG_NAME="monte-carlo-clojure"
function build-docker() {
docker build -f Dockerfile -t $TAG_NAME . $@
}
function dock() {
docker run \
-v $PWD:"/root/simulation_methods" \
-w "/root/simulation_methods" \
-p 10666:10666 \
--rm -it $TAG_NAME $@
}
function re... | true |
260b721e1f7fe533da29536e4f2894756310445c | Shell | snassef/aqueduct | /civis/start.sh | UTF-8 | 674 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Run the aws-configure script to try to detect AWS credentials from the environment
aws-configure || true
# Test if CIVIS_SERVICE_ID is defined. If so, we are likely in a deployed
# service, so start voila. If not, we are likely in a Civis Jupyter notebook
# context, so start that.
if [[ -z $CIVIS_SERVIC... | true |
a16f0c052f4b2da992f15f79deda9622c30d7f35 | Shell | davedoesdev/dxf | /test/cli_example.sh | UTF-8 | 634 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
HERE="$(cd $(dirname "$0"); echo "$PWD")"
cd /tmp
dxf() {
PYTHONPATH="$HERE/.." python -m dxf "$@"
}
cleanup() {
trap - EXIT
"$HERE/remove_container.sh" dxf_registry
}
trap cleanup EXIT
docker run -d -p 5000:5000 --name dxf_registry registry:2
export DXF_HOST=localhost:5000
export DXF_IN... | true |
272161741f6cdeaec3fa1363bdfbec2dc0cc6d7e | Shell | mgmeier/haskell-relational-record | /travis-CI/multi-ghc/sh-defs | UTF-8 | 331 | 2.84375 | 3 | [] | no_license | # -*- sh -*-
subdirs='
names-th
sql-words
persistable-record
relational-query
relational-schemas
HDBC-session
relational-query-HDBC
text-postgresql
persistable-types-HDBC-pg
'
check_dir() {
name="$1"
[ x$name != x ] || exit 1
if [ ! -d $name ]; then
echo "Directory not found: $name"
exit ... | true |
311d911b69e4e8c8a4e09ed469568a0f67a69ab0 | Shell | ros-planning/moveit_ci | /travis.sh | UTF-8 | 17,543 | 3.703125 | 4 | [] | no_license | #!/bin/bash -u
# -*- indent-tabs-mode: nil -*-
# Software License Agreement - BSD License
#
# Inspired by MoveIt travis https://github.com/ros-planning/moveit_core/blob/09bbc196dd4388ac8d81171620c239673b624cc4/.travis.yml
# Inspired by JSK travis https://github.com/jsk-ros-pkg/jsk_travis
# Inspired by ROS Industrial ... | true |
aeaf12cd3eddcdf6adf7b9149258f34455206a9f | Shell | srikanthhubli/shell_script | /shellscip/loop.sh | UTF-8 | 117 | 2.640625 | 3 | [] | no_license | #!/bin/sh
# for var in w1 w2 ... wN
#do
# statement
#done
for var in 0 1 2 3 4 5 6 7 8 9
do
echo $var
done
| true |
fe81cd0626e77d17d1bf0475e2e9457f9fc0d94a | Shell | RootKitDev/AthenaIHM | /web/file/scripts_sh/manuel_export.sh | UTF-8 | 1,329 | 3.0625 | 3 | [] | no_license | #! /bin/bash
######################################
# Manuel_Export.sh
# Utilité:
# Auteur: RootKitDev <RootKit.Dev@gmail.com>
# Mise à jour le:
######################################
# Define PATH
SUB_LOG=""
HOME_PATH="/home/athena/Core"
LIB_PATH="$HOME_PATH/Libs.d"
COMMON_LIB="$LIB_PATH/Common"
DATA_LIB="$LIB_P... | true |
9a13ae8ee478987c128a3c98764dd62ac21c67fc | Shell | bopopescu/UnitedSafety | /apps/tools/iridium-emulator/send-iridium-email.sh | UTF-8 | 1,249 | 3.578125 | 4 | [] | no_license | #!/bin/sh
WORKDIR="/tmp/email/$$"
mkdir -p "$WORKDIR"
MSG="$WORKDIR/msg"
if [ '' = "$RECIPIENT" ];then
echo "RECIPIENT is not set" >&2
exit 1
fi
SUBJECT=$1
MSG_BODY=$2
ATTACH=$3
mkdir -p /tmp/.maildir
if [ -s /mnt/nvram/rom/UnitID.txt ];then
UNIT_ID=`cat /mnt/nvram/rom/UnitID.txt|tr -d '\r'|tr -d '\n'`
else... | true |
c74e81eba6d225034ab1f84effbd57a953737e19 | Shell | leads-project/Leads-deployment | /scripts/bk-client/deploy.sh | UTF-8 | 313 | 3.109375 | 3 | [] | no_license | #!/bin/bash
source configuration.sh
NAME="bk-client"
NCLIENTS="20"
scp ${TMPL_FILE} ${USER}@${CLUSTER}:~/tmp
${SSHCMDHEAD} onetemplate update ${TMPL_ID} tmp
for i in `seq 1 ${NCLIENTS}`
do
echo "Instanciating client ${i}"
${SSHCMDHEAD} onetemplate instantiate ${TMPL_ID} --name ${NAME}
done
rm -f tmp
| true |
1198de279837d7c369ac8f6cf7574623426ef6eb | Shell | yatsuki/aliyunddns | /aliddns.sh | UTF-8 | 14,835 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# +------------------------------------
# | AliyunDDns Script v0.1
# +------------------------------------
# | 阿里云DDNS解析脚本版 V0.1
# | 一键将DNS解析到指定位置,方便非固定ip实现动态解析.
# | 一键DDNS用法:
# | export Ali_Key=xxx
# | export Ali_Secret=xxx
# | export Ali_Domain=example.com
# | aliddns.sh -m --record blog --value ... | true |
273addf36980e798002a8e58880959c74522fa2b | Shell | amrit2211/ipv4calc | /IPv4calculator.sh | UTF-8 | 7,729 | 3.25 | 3 | [] | no_license | #!/bin/bash
#Function1
whatisclass(){
if [ "$ip1" -le "127" ]; then
class=$(echo '''A''')
usedfor=$(echo '''Very large networks''')
elif [ "$ip1" -le "191" ]; then
class=$(echo '''B''')
usedfor=$(echo '''Medium networks''')
elif [ "$ip1" -le "223" ]; then
class=$(echo '''C''')
... | true |
c2441ab797a1c1f9aade33e9bfdf105cf4bb2437 | Shell | ooreilly/vecpy | /benchmarks/plot_all_benchmarks.sh | UTF-8 | 248 | 2.734375 | 3 | [] | no_license | benchmarks="sum geometric-series trig array-sum"
for dtype in float64 float32;
do
for benchmark in $benchmarks;
do
make plot outputdir=data/${benchmark}_${dtype} dtype=${dtype} benchmark=$benchmark
done
done
| true |
a55004dcd45ae5dca51244f70e77d765b01d8988 | Shell | MIT-LCP/physionet-build | /deploy/test-server/kvm-pntest-create | UTF-8 | 2,205 | 4.15625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Create disk image for a virtual machine, with a basic Debian system
# suitable for installing the PhysioNet test server
set -e
IMAGE=physionet-test.img
IMAGE_SIZE=20G
IMAGE_FORMAT=qcow2
INSTALLER_IMAGE=$(ls -v debian-11.*.*-amd64-netinst.iso | tail -1)
INSTALLER_KERNEL=install.amd/vmlinuz
INSTALLER_INITR... | true |
386c6be430604b12f9af5018e13a4a4be1599a20 | Shell | howardhuang03/Auto-emc_go | /run.sh | UTF-8 | 482 | 3.265625 | 3 | [] | no_license | #!/bin/bash
MAC_TARGET=server
WIN_TARGET=server.exe
rm -vr $MAC_TARGET $WIN_TARGET EMC*
export GOOS=windows
export GOARCH=386
while [ ! -f "$WIN_TARGET" ]
do
go build -o $WIN_TARGET
done
echo "WIN $WIN_TARGET build success, next step..."
cp $WIN_TARGET ~/Dropbox/tmp/server/
export GOOS=darwin
export GOARCH=amd64
g... | true |
015104086b8fdb74dc13ac2c0808db95f887719a | Shell | KdeOs/main | /djvulibre/PKGBUILD | UTF-8 | 904 | 2.734375 | 3 | [] | no_license |
pkgname=djvulibre
pkgver=3.5.25.3
pkgrel=2
pkgdesc="Suite to create, manipulate and view DjVu ('déjà vu') documents"
arch=("x86_64")
license=('GPL')
url="http://djvu.sourceforge.net/"
depends=('gcc-libs' 'libtiff' 'bash' 'hicolor-icon-theme')
makedepends=('librsvg')
options=('!libtool')
source=("http://downloads.sourc... | true |
d9819df2d2a52b36d0c6c78f0929e57baeb778c8 | Shell | naver/arcus-memcached | /config/autorun.sh | UTF-8 | 2,590 | 4.0625 | 4 | [
"FSFAP",
"Apache-2.0"
] | permissive | #!/bin/bash
die() { echo "$@"; exit 1; }
# --force means overwrite ltmain.sh script if it already exists
LIBTOOLIZE_FLAGS=" --automake --copy --force"
# --add-missing instructs automake to install missing auxiliary files
# and --force to overwrite them if they already exist
AUTOMAKE_FLAGS="--add-missing --copy --forc... | true |
c6210725427cd1edbafa79aa355f7ef7a26f362b | Shell | union-software-cooperative/churnometer_base | /scripts/db/remote_clone.sh | UTF-8 | 299 | 3.140625 | 3 | [] | no_license | #!/bin/bash
GT_HOST=${1:-$GT_PRODUCTION_HOST}
GT_PATH=${2:-$GT_PRODUCTION_PATH}
BKP_NAME=${3:-$(date -I)}
# Set working dir relative to script's location
cd "${0%/*}/../.."
ssh $GT_HOST $GT_PATH/scripts/db/backup.sh $BKP_NAME
scp "${GT_HOST}:${GT_PATH}/app/backup/${BKP_NAME}.sql.gz" ./app/backup/
| true |
5c04732e7da2396cbf04e6c024c753866de217af | Shell | rcmdnk/scripts | /bin/makeEpsTex | UTF-8 | 3,150 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# parameters
remaintex=1
output=summary
exclude=()
# help
HELP="Usage: $0 [-r] [-f <filename>] [-e <excludename>]
-r remain tex file
-f set output file name (default: $output)
-e exclude word (can use multiple time)
-h print this help
"
while getopts rf:e:h OPT;do
((OPTNUM++))
... | true |
1f623192fe5b849d66dc5648612f5fc57ed911fb | Shell | precocity/gcp-retail-workshop-2018 | /airflow/runtime/scripts/bash_loads.sh | UTF-8 | 974 | 3.53125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/bash
export PROJECT_NAME={GOOGLE_CLOUD_PROJECT}
export BUCKET_NAME={GOOGLE_CLOUD_PROJECT}-dataflow
submitBatchJob () {
FEED=$1
BQ_TABLE=`echo $FEED | sed 's/-/_/g'`
ID_SUFFIX=`date +%Y-%m-%d_%H:%M:%S`
JOB_ID=${FEED}Load_${ID_SUFFIX}
echo "Submitting $FEED batch load Dataflow job to load the $BQ_TABL... | true |
7e5e664286587567c3818f3961d98114fb508c97 | Shell | son20112074/oracle-stream-analytics-docker | /v18.1/osa/entrypoint.sh | UTF-8 | 668 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/env bash
# setup & entry script
# @sblack4 2018
cat /etc/passwd
chmod +x /home/install-osa.sh
echo "--- RUNNING OSA INSTALL SCRIPT ---"
source /home/install-osa.sh
chmod +x /home/install-kafka.sh
echo "--- RUNNING KAFKA INSTALL SCRIPT ---"
source /home/install-kafka.sh
echo --- UPDATEING PASSWORD IN DB --- ... | true |
391182e94eeb4e8116007d6b62b565a5579293c0 | Shell | inexio/snmpclitools | /runtests.sh | UTF-8 | 1,977 | 2.6875 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
set -e
for cred in "-v3 -u usr-none-none -l noAuthNoPriv demo-snmp.thola.io" \
"-v3 -u usr-md5-none -l authNoPriv -A authkey1 demo-snmp.thola.io" \
"-v3 -u usr-sha-aes -a SHA -x AES -l authPriv -A authkey1 -X privkey1 demo-snmp.thola.io" \
"-v3 -u usr-md5-aes -x... | true |
ceb03aea2528f6aaeacc0ccd3b38183d02b25c14 | Shell | niks/WorkspaceStatus | /workspaceStatus.sh | UTF-8 | 5,706 | 3.75 | 4 | [] | no_license | #!/bin/bash
clean="\e[0;32m[clean]\e[m"
dirty="\e[1;31m[dirty]\e[m"
localStatusUnknown=" "
committed="\e[0;32m[ committed ]\e[m"
uncommitted="\e[1;31m[uncommitted]\e[m"
serverStatusUnknown=" "
colorNONE="0;33"
colorSVN="1;35"
colorGIT="1;36"
colorGIT_SVN="1;36"
colorCurrentBranc... | true |
67f8334ae7ea8f90a79c621f7027aae8bf237a08 | Shell | bsc-dom/dataclay-demos | /federation/federation-security-python/clean.sh | UTF-8 | 1,126 | 3.25 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
#-----------------------------------------------------------------------
# Helper functions (miscellaneous)
#-----------------------------------------------------------------------
CONSOLE_CYAN="\033[1m\033[36m"; CONSOLE_NORMAL="\033[0m"
CONSOLE_YELLOW="\033[1m\033[33m"
printMsg() {
printf "${CONSOLE_CYAN}#... | true |
12bfefcbc762720497bea0c25a7c67cadbc4a8bf | Shell | shtwzrd/no-wm | /lsw-disp | UTF-8 | 279 | 3.109375 | 3 | [] | no_license | #!/bin/sh
#
# warreq - 2016 (c) UNLICENSE
# list windows only for the current display (the one with the $(pfw))
# depends on: current-disp
CUR_DISP=$(current-disp $(pfw))
for wid in $(lsw); do
if [ "$CUR_DISP" = "$(current-disp $wid)" ]; then
echo $wid
fi
done
| true |
605376e3a5877313363bfde4484eb08149982135 | Shell | leeyoungseung/shell_practice | /param_process/013_expr-match.sh | UTF-8 | 572 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# html에서 특정 속성값을 가져오기(변수내부 문자열에서 특정패턴 추출하기)
# 실행명령 : ./013_expr-match.sh
quote="[\"']" # 작은 따옴표를 이스케이프 표시해서 저장한 변수 선언
match="[^\"']*" # ^(부정표현:뒤의문자를 제외한 문자를 출력) 하는 변수 선언
while read line
do
# expr 명령어를 사용해서 패턴에 해당하는 값을 가져오기
href=$(expr "$line" : ".*href=${quote}\(${match}\)${quote}.*")
if [ $? -eq 0... | true |
8c028bbd3be64f41a7819727d1e412ee199f8713 | Shell | darey-io/globomantics-vagrant | /roles/master-nodes/templates/setup-kubectl.sh.j2 | UTF-8 | 660 | 2.796875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# update the system and install pre-requisites
sudo apt-get update && sudo apt-get install -y apt-transport-https
# Add the GPG key for the kubectl repository to the system
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
#Update file /etc/apt/sources.list kebectl and in... | true |
7b14936c18e5ed6f7c6ca1cffa97f802aec9c716 | Shell | WombatLinux/CreateBootCD | /LFSScripts/ShowSystemData | UTF-8 | 816 | 3.140625 | 3 | [] | no_license | #!/bin/bash -e
#©keithhedger Mon 2 Feb 13:04:50 GMT 2015 kdhedger68713@gmail.com
if [ -e ./SystemData ];then
. ./SystemData
else
echo "No SystemData file found ..."
exit 1
fi
echo "LFS location:" $LFS
echo "LFS version:" $LFSVERSION
echo "LFS Hostname:" $LFSNAME
echo "Kernel version:" $KERNELVERSION
echo "INIT ty... | true |
0ed416d624702c6b153e02b802f2c0126b866c8b | Shell | simonlynen/zanata-tests | /concordion/txt2html.sh | UTF-8 | 1,377 | 4.46875 | 4 | [] | no_license | #!/bin/sh
function print_usage(){
cat <<END
$0 - Convert asciidoc to concordion html
SYNOPSIS
$0 [-f] <TxtFile> <htmlDir|htmlFile>
DESCRIPTION
This program convert an asciidoc text file to concodion
instrumented html file. For example:
$0 TestCase1.txt TestCases/
will convert TestCase1.tx... | true |
d4d762a22e14b3d1b7aadc46b8a4eb08051b3b1b | Shell | alejandroSuch/docker-kafka | /start-kafka.sh | UTF-8 | 913 | 2.59375 | 3 | [] | no_license | #!/bin/bash
cp config/server.properties.bak config/server.properties
sed -i -E "s/(broker\.id=).*/\1$KAFKA_BROKER_ID/" config/server.properties
sed -i -E "s/(log\.dirs=).*/\1$(echo $KAFKA_LOG_DIRS | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/" config/server.properties
sed -i -E "s/(num\.partitions=).*/\1$KAFKA_NU... | true |
a4856ce78ff0fea303f72d073a9c3dbdd59b057e | Shell | ABJARNAIR/sample | /odev.sh | UTF-8 | 95 | 3.15625 | 3 | [] | no_license | echo "enter the number"
read n
s=$((n%2))
if [ $s -eq 0 ]
then
echo "even"
else
echo "odd"
fi
| true |
079e821c4d4b181b9f55f2760eab0a8fe2be08c0 | Shell | flavio-fernandes/bedclock | /bedclock/bin/stop_bedclock.sh | UTF-8 | 165 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#set -o errexit
#set -x
cd "$(dirname $0)"
BIN_DIR="${PWD}"
PROG_DIR="${BIN_DIR%/*}"
TOP_DIR="${PROG_DIR%/*}"
echo "$0 service is now stopped"
exit 0
| true |
8b02660d8d548c06b19da005c9ff2f4527e2351a | Shell | pfultz2/cppcheck-fuzzer | /verify.sh | UTF-8 | 404 | 3.5625 | 4 | [] | no_license | #!/bin/bash
CPPCHECK=${CPPCHECK:-cppcheck}
CXX=${CXX:-c++}
$CXX -std=gnu++14 -fsyntax-only $1
RES=$?
if [ $RES -ne "0" ]; then
exit 0
fi
TMPFILE=$(mktemp)
$CPPCHECK --enable=all $1 |& tee $TMPFILE
RES=$?
if [ $RES -ne "0" ]; then
rm $TMPFILE
exit 1
fi
grep -q -E "internalAstError|syntaxError" $TMPFILE... | true |
c68dc12b636d319d5198679ac8f18c6666ba2d74 | Shell | ClearBlade/cb-cli | /testing/clitesting | UTF-8 | 2,290 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Init the test system
echo -e "\nINITIALIZING SYSTEM FOR TESTING...\n"
sleep 2
cb-cli init -url=http://127.0.0.1:9000 -messaging-url= -system-key=d4a8a4c60b86d3c79bf889b796ff01 -email=a@a.com -password=b
# Change directory to init'd system
cd CBCliRegressionTesting/
# Export system
echo -e "\nEXPORTING ... | true |
29f19229f8af1bbe8d1c7a83dcba5c694fc8a691 | Shell | thomas-moulard/launch_ros_sandbox | /test/test_docker_policy_local_image.sh | UTF-8 | 719 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# pull the image now so that we don't have to guess/query when its done in the script
docker build -t ros-dashing-dummy -f test/dummy-dashing.Dockerfile .
echo "Running './examples/local_image.launch.py' for 10 seconds"
output=$(timeout -s INT 10s ./examples/local_image.launch.py)
if [[ $output == *"[ta... | true |
7ad4ee65f0988a23f698d1bdad04c0ffe353f268 | Shell | dothq/packages | /appimage/build.sh | UTF-8 | 1,528 | 3.34375 | 3 | [] | no_license | cd appimage
if [ ! -f "linuxdeploy.AppImage" ]; then
echo "Downloading linuxdeploy"
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -O linuxdeploy.AppImage -q
chmod +x ./linuxdeploy.AppImage
fi
if [ ! -f "dot.tar.bz2" ]; then
echo "Downloading l... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.