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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7ea333c4ca7688dc3677b0cee5f86fa353366090 | Shell | tonythomascn/iub | /work/deploy.sh | UTF-8 | 1,634 | 3.515625 | 4 | [] | no_license | #!/usr/bin/env bash
timestamp=$(date +"%Y%m%d%H%M%S")
. $(dirname "$_")/cloudmesh.config
#number of instances within the cluster
cluster_num=$1
log=deploy_$timestamp.log
function usage
{
echo "usage: deploy [number of instances]"
}
function generate_inventory
{
if [ "$1" -lt 1]
then
echo "Ins... | true |
b6bbc97d1fb2f97bde6e2385f17d014ede680ba4 | Shell | v-boss/dotfiles | /.scripts/mpc-bar | UTF-8 | 229 | 3.09375 | 3 | [] | no_license | #!/bin/bash
title="`mpc --format \"[%title%]\" | head -n 1`"
STATUS="`mpc status | awk '{ print $1 }' | awk -F/ '{ print $1 }' | tail -2 | head -n 1 | tr -d '[' | tr -d ']' | sed -e "s/\b\(.\)/\u\1/g"`"
echo $title "|" $STATUS | true |
0c659d2660fed2cdeedc1a5826e5df39b13d33ef | Shell | neilbmclaughlin/dotfiles | /config-vim.sh | UTF-8 | 528 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
printf "Installing Vundle\n"
if [[ ! -d ~/.vim/bundle/Vundle.vim/ ]]; then
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
# Install YouCompleteMe
~/.vim/bundle/YouCompleteMe/install.py --tern-completer
# Install Tern for Vim
(cd ~/.vim/bundle/tern_for_vim &... | true |
1754f9c3272dbb1bc6ffac8a4aa7ed400c41347e | Shell | abdulalimi/temp-repo | /scripts/generate-config-files.sh | UTF-8 | 341 | 3 | 3 | [] | no_license | #!/bin/bash
_env='dev
e2e
prd'
var="`less ./environment.properties`"
for NAME in $_env
do
env="$NAME"
echo "${var//SOURCE/$env}" > ./configs/$env-environment.cfg
done
var2="`less ./source-registration.properties`"
for NAME in $_env
do
env="$NAME"
echo "${var2//SOURCE/$env}" > ./configs/$env-source-r... | true |
146a31f9094657841841fa507ff5815ff76ec22b | Shell | slackjeff/slackbuilds-1 | /network/xaric/xaric.SlackBuild | UTF-8 | 2,582 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# Slackware build script for xaric
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20201122 bkw: BUILD=2, install icons to the right place.
PRGNAM=xaric
VERSION=${VERSION:-0.13.7}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARC... | true |
cc4440dfb077df1e340543e9cc4589694a75d1ca | Shell | pengkobe/ionic4-boilerplate | /sh/ionic-login.sh | UTF-8 | 587 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Inspired by https://github.com/devillex/wercker-ionic-login-step/blob/master/run.sh
cli="ionic"
main() {
if [ -z "$IONIC_EMAIL" ]; then
fail "ionic-login: email argument cannot be empty"
fi
if [ -z "$IONIC_PASSWORD" ]; then
fail "ionic-login: password argument cannot be empty"
fi
# Co... | true |
565866a84400707ff4ac43d3b1f9126adec1b7b9 | Shell | jazzl0ver/firecamp | /scripts/plugin-dockerfile/build-entrypoint.sh | UTF-8 | 479 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
codedir=/go/src/github.com/jazzl0ver/firecamp
ls -al /go/src/github.com/jazzl0ver/
# the build process will mount the source code dir to $codedir
if [ ! -d "$codedir" ]; then
echo "$codedir not exist"
exit 1
fi
echo "build firecamp-dockervolume"
cd $codedir/syssvc/firecamp-dockervolume
go install --ld... | true |
ed2295926eea65e2d67ca6666e4fa69970ec5767 | Shell | markplagge/omp_gpu_clang_docker | /llvm_configure.sh | UTF-8 | 1,183 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
##LLVM DOCKER BUILD SCRIPT - ENSURE CLANG is installed
mkdir llvm-work
cd llvm-work
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
mkdir install
mkdir build_bs
cd build
cmake -DLLVM_ENABLE_PROJECTS="openmp;clang;libcxx;libcxxabi;parallel-libs;lld;llvm;lldb;libclc;clang-tools-ex... | true |
bdd1024779a5767e9b4e024459ed448c3ae8f7d0 | Shell | jjvein/git-script | /git-up | UTF-8 | 418 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
# Author: Jingwei Liu <liujingwei02@meituan.com>
# Last Modified: 土 22 3月 2014 09:25:35 午後
set -e
branch=`git rev-parse --abbrev-ref HEAD`
git fetch origin
if [[ $1 == "@" ]] ; then
git pull --rebase
else
git rebase origin/master
fi
if [[ $branch == "master" ]]; then
exit 0
fi
# upd... | true |
1363db77f127cb739fcf1c2f90dd9aa62335feaf | Shell | epimorphics/org-data | /reprocessed-2013-09-30/process.sh | UTF-8 | 560 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# Processes all the original CSVs for this data set to corresponding ttl files, then builds the merge
# Assumes there is a logcal org-dc instance running on :8080
for i in csv/*-senior.csv ;
do
echo "Processing $i"
if [[ $i =~ csv/(.*)-senior.csv ]]
then
f=${BASH_REMATCH[1]}
cur... | true |
8e02da2a6057894239952ffe2f305d8f53ef5ef8 | Shell | sumitgpl/amazon_crawler | /exec_amazon.sh | UTF-8 | 455 | 3.234375 | 3 | [] | no_license | #!/bin/bash
INPUT=amazon_data.csv
OLDIFS=$IFS
logfolder=$(date +%Y_%m_%d)
mkdir $logfolder
mv *.log $logfolder
IFS=,
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
while read cat url prm pgnum
do
echo "cat : $cat"
echo "url : $url"
echo "prm : $prm"
echo "pgnum : $pgnum"
nohup scrapy crawl amazo... | true |
6704bd16ff6e5d69b131fb0e38ce6135ada0918d | Shell | NetBSD/pkgsrc | /security/munge/files/munge.sh | UTF-8 | 253 | 2.671875 | 3 | [] | no_license | #!@RCD_SCRIPTS_SHELL@
# $NetBSD: munge.sh,v 1.1 2014/09/11 16:11:46 asau Exp $
#
# PROVIDE: munge
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="munge"
rcvar=${name}
command="@PREFIX@/sbin/munged"
load_rc_config $name
run_rc_command "$1"
| true |
a615af9ecf4ed4a38cb9c4439922aea505e970ef | Shell | abbaspour/auth0-bash | /jwt/mk-id_token.sh | UTF-8 | 1,743 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
command -v curl >/dev/null || { echo >&2 "error: curl not found"; exit 3; }
command -v jq >/dev/null || { echo >&2 "error: jq not found"; exit 3; }
function usage() {
cat <<END >&2
USAGE: $0 [-t tenant] [-d domain] [-i iss] [-a audience] [-s sub] [-e exp] [-n nonce] [-o file]
... | true |
fd91c940981b9b6d369c0bd549309e1cc0dae686 | Shell | amaranabe/Scripts | /registros.sh | UTF-8 | 1,152 | 3.140625 | 3 | [] | no_license | #!/bin/bash
a=$(egrep '.*:.*:.*:.*:.*Unix' /etc/passwd | wc -l);
echo '====================================';
echo "Usuarios con la palabra Unix al principio: " $a;
b=$(egrep '.*:.*:.*:101' /etc/passwd | wc -l );
echo '====================================';
echo "Usuarios del grupo 101: " $b;
c=$(egrep ':[0-9]*:(101... | true |
80d110b30ab6f5c2510d06560d9f89efec6ffd5d | Shell | xoroz/tomcat_multi_instances | /create.sh | UTF-8 | 4,357 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# Criar nova instancia no Tomcat de maneira padronizada e automatizada
# Felipe Ferreira 09/07/14
# Versao 2.0
# 01/09/14
# update 12/08/14 Felipe - Acertos check_start, logrotate
# update 12/08/14 Felipe - add SOURCE URL, novo pacote
# update 10/09/14 Felipe - Nova estrutura no /opt, nao tenta iniciar, lim... | true |
2276d96a16cb73865284485568c506fdbb18b745 | Shell | kamick/LaTeX-beamer-themes | /scripts/generate-screenshots-GI.sh | UTF-8 | 2,200 | 3.390625 | 3 | [] | no_license | #!/bin/bash
## fichier auxiliaire pour générer les images de l'annexe de 00format-gscop
SRC=../GI-exemples
DST=Img/ # relatif à $SRC
IN=00format-gi.tex
OUT=tmp.tex
N=0
cd $SRC
#"plain" "simple,colorstyle=plain"
for OPTIONS in \
"bare" \
"plain" \
"simple" \
"fancy" \
"plain,colorstyle=... | true |
3c27c1323076da965711b23b15342bf93909ba9c | Shell | sallyom/source-to-image | /hack/rebase-to-origin.sh | UTF-8 | 1,565 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
#
# This script will create a rebase commit in the OpenShift Origin GIT repository
# based on the current HEAD.
#
# NOTE: Make sure all your changes are committed and there are no junk files
# present in the pkg/ folder.
#
source "${s2i_dir}/hack/util.sh"
# Exclude these packages from source-to-i... | true |
324081da7ee4249d5fc67a5d932e8eef173a06c8 | Shell | Spartabariallali/bash_basics | /commandsubstitution.sh | UTF-8 | 242 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# command subsitution
TODAYSDATE=`date`
echo $TODAYSDATE
USERFILES="find/home -user user"
echo "all files owned by user: $USERFILES"
A=`TODAY`
B=`UFILES`
echo "with alias, Today is: $A"
echo "with alias, UFILES is $B"
| true |
b55a39b14e1537682df76ffe25ab88348424c316 | Shell | xwzl/shell | /var/day-1/string_method.sh | UTF-8 | 1,049 | 3.703125 | 4 | [] | no_license | data="Hello World!"
# # 获取字符串长度
len=${#data}
echo "${len}"
# string 有空格,则必须加双引号
data="hello text"
len=$(expr length "${data}")
echo "${len}"
# string 有空格,则必须加双引号
data="hello qq"
len=`expr length "${data}"`
echo "${len}"
# 获取子字符串索引的位置
len=$(expr index "${data}" qq)
echo "${len}"
# 特别注意,这里不是返回子字符串的位置,而是返回子字符串第一个匹配的字... | true |
e60cf9a166a7900124d570e469dae52ec9b3e7f2 | Shell | ss1696/ShellScriptProblems | /IfElseProblems/WeekDaysIfElse.sh | UTF-8 | 483 | 3.40625 | 3 | [] | no_license | #!/bin/bash -x
echo "enter day number"
read dayNumber
if [ $dayNumber -eq 1 ]
then
echo "SunDay";
elif [ $dayNumber -eq 2 ]
then
echo "MonDay";
elif [ $dayNumber -eq 3 ]
then
echo "TuesDay";
elif [ $dayNumber -eq 4]
then
echo "WednesDay";
elif [ $dayNumber -eq 5 ]
then
echo "Thru... | true |
15d4b6cfacd69af50c90bbc2e8e4c7af412525a2 | Shell | delkyd/alfheim_linux-PKGBUILDS | /pcng-tubs/PKGBUILD | UTF-8 | 1,144 | 2.578125 | 3 | [] | no_license | # Maintainer: Maverick <basic89@gmail.com>
pkgname=pcng-tubs
pkgver=14.0
pkgrel=1
pkgdesc="TU Braunschweig printing client (Papercut NG, preconfigured)"
arch=(any)
url="https://doku.rz.tu-bs.de/doku.php?id=drucken:installation_druck-client_linux_eb_mb"
license=('custom')
groups=()
depends=('java-environment'
'sh')
ma... | true |
5fcd953d09bd27af005963fb616aa767078b6100 | Shell | cannor147/itmo-os | /lab01-basic/src/task4.sh | UTF-8 | 131 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
count=0
scan=1
while (( $scan % 2 != 0 ))
do
read scan
count=$(($count + 1))
done
echo $count
exit 0 | true |
3fe73276603d477215c8b27e607c7d0e1cb5ae36 | Shell | qaraluch/qyadr | /zsh/.plugs/install-fzf-marks.sh | UTF-8 | 1,377 | 3.40625 | 3 | [
"MIT"
] | permissive | # FZF-MARKS - install & setup
# Home URL: [urbainvaes/fzf-marks: Plugin to manage bookmarks in bash and zsh](https://github.com/urbainvaes/fzf-marks)
# Vars
plugName='fzf-marks'
plugInstallerName='fzf-marks.plugin.zsh'
plugGitURL='https://github.com/urbainvaes/fzf-marks.git'
plugCacheDirPath="${QYADR_PLUGS_ROOT}-cach... | true |
d89fcdaa5e7f85a1ff58d4b9ddc10ba327be8937 | Shell | Buzonxxxx/shell-script | /read-line.sh | UTF-8 | 79 | 2.515625 | 3 | [] | no_license | #!bin/bash
grep xfs fstab.log | while read LINE
do
echo "xfs: ${LINE}"
done | true |
a4e5a90f419fff5783a6d0669e25d816bb5b22d5 | Shell | not-bryan-cranston/.env | /bashrc | UTF-8 | 3,835 | 3.515625 | 4 | [] | no_license | [[ $- != *i* ]] && return
# settings
HISTCONTROL=ignoreboth
HISTSIZE=10000
shopt -s histappend
set -o vi
export EDITOR='vim'
export VISUAL='vim'
export PAGER="less -RS"
export LESSHISTFILE=/dev/null
# path
export PATH="$PATH:~/.env/bin"
# PS1
RST="\[\e[m\]"
BOLD="\[\e[1m\]"
GRN="\[\e[32m\]"
BLUE="\[\e[34m\]"
H... | true |
9587eaeff854443273e41874ed19ac31121023b4 | Shell | linuxmint/ubiquity | /d-i/build-manifest | UTF-8 | 217 | 3.140625 | 3 | [] | no_license | #! /bin/sh
set -e
for src in source/*; do
[ -f "$src/debian/changelog" ] || continue
printf '%s ' "${src##*/}"
dpkg-parsechangelog -l"$src/debian/changelog" | \
sed -n -e '/^Version:/s/Version: //p'
done | sort
| true |
be7bdd0b85b821f3f853c3ed2aabefcba1120c78 | Shell | utrack/dotfiles | /zsh-internal/rc/aliases.zsh | UTF-8 | 1,125 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env zsh
# run less on null read cmd
# < file.txt
export READNULLCMD=less
alias ff="fuck"
alias psa="ps aux"
alias psg="ps aux | grep "
alias gits="git status --short"
alias svim='sudoedit'
alias pacman='sudo pacman'
alias _=sudo
alias pls=sudo
alias md='mkdir -p'
alias blaze='chmod 420'
alias -r gief='y... | true |
e9443805ad4e5a5545d9c9fe09bdb5d4e7b13639 | Shell | khusseini/packager | /rootfs/usr/bin/do-build-image | UTF-8 | 2,313 | 3.734375 | 4 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "${1}"
cat "${1:-/dev/stdin}" > /tmp/conf.json
function readConf {
cat /tmp/conf.json \
| python -c \
"import sys, json;[sys.stdout.write(i + '\n') for i in json.load(sys.stdin)['${1}']]"
}
function executeCommands {
IFS=$'\n'... | true |
2aa099c77c5780ec739ced8ba1d907b250d1a141 | Shell | reinaldomendes/aspnet-goutte-client | /bin/autotest | UTF-8 | 1,454 | 3.625 | 4 | [] | no_license | #!/bin/bash
allTestsOkIcon=/usr/share/icons/Humanity/actions/48/gtk-yes.svg
allTestsOkTitle="All tests passed"
allTestsOkMessage="Arr! Ye rock mate!"
allTestsWarnIcon=/usr/share/icons/Adwaita/48x48/status/dialog-warning.png
allTestsWarnTitle="OK, but incomplete, skipped, or risky tests!"
allTestsWarnMessage="Please c... | true |
6273966d38d5c07d58225153648359fe00ebe15d | Shell | tuxillo/DPorts | /finance/trytond/files/trytond.in | UTF-8 | 1,146 | 3.3125 | 3 | [] | no_license | #!/bin/sh
# $FreeBSD: ports/finance/trytond/files/trytond.in,v 1.2 2012/09/18 00:57:12 wen Exp $
#
# PROVIDE: trytond
# REQUIRE: postgresql LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable trytond
#
#
# trytond_enable (bool): Set to "NO" by default,
# Set it to "... | true |
c74459744d0b6e410a44e24d04a5f742034d3680 | Shell | moultondigital/osx_install_config | /07_backup_and_restore_script/run_script.command | UTF-8 | 1,007 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# trapping script to kill subprocesses when script is stopped
# kill -9 can only be silenced with >/dev/null 2>&1 when wrappt into function
function kill_subprocesses()
{
# kills subprocesses only
pkill -9 -P $$
}
function kill_main_process()
{
# kills subprocesses and process itself
exec pkill -9 -P $$... | true |
d2c9a6ad2649151de1577651e739a353c44a793b | Shell | jroperto/heroku-nginx-buildpack | /bin/compile | UTF-8 | 1,316 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
set -e
# config
NGINX_VERSION="1.8.0"
# parse and derive params
BUILD_DIR=$1
CACHE_DIR=$2
echo "BUILD_DIR= $BUILD_DIR"
NGINX_PACKAGE="http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz"
# vendor directories
VENDORED_NGINX="vendor"
mkdir "$VENDO... | true |
40d895959a7ed3845ec2bc951669d4d7bd606c8c | Shell | arnautpe/minifs | /conf/board/rzn1/initramfs/etc/init.sh | UTF-8 | 613 | 3.28125 | 3 | [] | no_license | #!/bin/hush
#set -x
#echo "* Trampoline starting..."
mount -t proc /proc /proc
mount -t devtmpfs devtmpfs /dev 2>/dev/null
mount -t sysfs sysfs /sys 2>/dev/null
if ! mount -t jffs2 /dev/mtdblock17 /root -o ro ; then
echo "* Cant mount boot partition, bailing"
exec /bin/hush
fi
rootname=$(ls /root/minifs-*.img -1|ta... | true |
42bb951ad84b568bb8fd4e70d88142cdfe136b63 | Shell | kunalsharma555/kunalvks | /scripts/dwmbar | UTF-8 | 1,661 | 3.5 | 4 | [] | no_license | #!/bin/sh
# REQUIRES FONT-AWESOME PACKAGE TO WORK PROPERLY
dte(){
dte="$(date +"%a, %b %d %R")"
echo "$dte"
}
hdd(){
hdd="$(df -h /home | grep dev | awk '{print$3, " " $5}')"
echo " $hdd"
}
mem(){
mem="$(free -h | awk '/Mem:/ {printf $3 " / " $2}')"
echo " $mem"
}... | true |
661d482868da4c5bfd9bb57faa9d162e71cfd3b1 | Shell | TRON-US/go-btfs | /bin/graphmd | UTF-8 | 723 | 3.265625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/sh
if [ "$#" -ne 1 ]; then
echo "usage: $0 <btfs-path>..."
echo "output merkledag links in graphviz dot"
echo ""
echo "use it with dot:"
echo " $0 QmZPAMWUfLD95GsdorXt9hH7aVrarb2SuLDMVVe6gABYmx | dot -Tsvg"
echo " $0 QmZPAMWUfLD95GsdorXt9hH7aVrarb2SuLDMVVe6gABYmx | dot -Tpng"
echo " $0 QmZPAMWUfLD... | true |
7e545013d5c92428efa2cd8297fef30d94b83ddc | Shell | malteos/citolytics-docker | /app/scripts/cirrus2mysql.sh | UTF-8 | 3,124 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Parse CirrusSearch dump and insert pages to MediaWiki MySQL database
# USAGE: ./cirrus2mysql.sh /path/to/cirrus_dump.json
# TODO Use SQL dumps instead if source_text is used?
DB_SERVER=$MEDIAWIKI_DB_SERVER
DB_USER="mediawiki" #$MEDIAWIKI_DB_USER
DB_PASSWORD="mediawiki" #$MEDIAWIKI_DB_USER
DB_NAME=$MEDI... | true |
21bc80e5180c24580e5f1e83d95aad66ed35e13d | Shell | JasperVandenberghen/Systeembeheer | /scripts/dns_add_zone | UTF-8 | 1,047 | 2.546875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #! /bin/bash
ZONE=$1
touch /etc/bind/zones/zone.$1
echo "zone \"$1.jasper-vandenberghen.sb.uclllabs.be\" {
type master;
file \"/etc/bind/zones/zone.$1\";
};" >> /etc/bind/named.conf.mrt-zones
echo "\$TTL 360
@ IN SOA ns.$1.jasper-vandenberghen.sb.ucclllabs.be. root.ns.jasper-vandenberghen.sb.ucl... | true |
9b016db45c5938e5fb78696815c4c7472a80756f | Shell | markv58/PiCamMonitor | /Scripts/screenCtrl.sh | UTF-8 | 3,189 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
### BEGIN INIT INFO
# Provides: omxplayer
### END INIT INFO
# Camera Feeds & Positions Quad
top_left="screen -dmS stream2 sh -c 'omxplayer --win \"0 0 400 240\" "$2" -b --live; exec bash'"
top_right="screen -dmS stream3 sh -c 'omxplayer --win \"400 0 800 240\" "$3" --live; exec bash'"
bot_left="screen -dmS... | true |
e6e6dc7ec6665e9bc87accd600d2ef7180e654ba | Shell | benjick/docker | /grav/docker-entrypoint.sh | UTF-8 | 301 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
shopt -s extglob
if ! [ -e user/config/system.yaml ]; then
echo >&2 "No userfiles found - copying now..."
rsync -a /tmp/grav-$GRAV_VERSION/user/ /var/www/html/user
fi
chown -Rf www-data:www-data user || true
echo >&2 "Complete! Grav has been successfully installed"
exec "$@"
| true |
7f36489a64ea32bb695d95f3cd58365b71f01f8e | Shell | BeanGu/piratenluci | /contrib/package/asterisk-xip/files/uci/queueconf | UTF-8 | 3,396 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Queues.conf
ast_add_conf queue
init_queueconf() {
ast_add_reload queue
ast_enable_type callqueue
ast_enable_type callqueuegeneral
}
create_queueconf() {
# Construct the file
file=${DEST_DIR}/queues.conf
get_checksum queue_conf $file
local isempty=1
logdebug 0 "Generating Queues.conf: ${callqu... | true |
baa0ef398551b4d1a733840008a448d5b6aa29c9 | Shell | holtzilya2008/scripts | /vlcResume | UTF-8 | 554 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# vlc Resume
#
# For some reason you need to stop playing an interesting movie, but you want
# to continue from the same point next time.
# Write the path to the video, the video file name and the desired time bellow.
# When you want to resume watching, just run the script :)
videoPath="... /home/userna... | true |
1e69d040cf788894de75e92ac82e55013803f31f | Shell | Rob-Johnson/dotfiles | /.bashrc | UTF-8 | 1,421 | 2.890625 | 3 | [] | no_license | #add timestamps to bash history
export HISTTIMEFORMAT="%F %T "
# Specify history size, default 500
export HISTSIZE=8000
# History items to ignore
export HISTIGNORE="histor*:h"
#editor as Vi
export EDITOR=vim
#A cool $PS1
#Add bash aliases
if [ -f ~/.aliases ]; then
source ~/.aliases
fi
# Add work bash aliases.
if [ ... | true |
4376d1a2a40d86c158fe4bfa59e5409a58c630f7 | Shell | jinghuazhao/INF | /tryggve/sentinels_nold.sh | UTF-8 | 3,108 | 2.59375 | 3 | [] | no_license | # 26-8-2019 JHZ
module load bedtools/2.27.1
export tag=_nold
function pgz()
# 1. extract all significant SNPs
{
ls METAL/*-1.tbl.gz | \
sed 's|METAL/||g;s/-1.tbl.gz//g' | \
parallel -j3 -C' ' '
(
# zcat METAL/{}-1.tbl.gz | head -1
zcat METAL/{}-1.tbl.gz | awk "
function abs(x)
{
if (x<0) r... | true |
d5f7a333873d7229627c4ba623ec3e4b6320a662 | Shell | dozen/myrtc | /myrtc | UTF-8 | 439 | 4.03125 | 4 | [] | no_license | #!/bin/bash
WORK_DIR=$(cd $(dirname $0); pwd)
STORED_FILE="${WORK_DIR}/time.txt"
if [ "$1" = "store" ]; then
date -R > ${WORK_DIR}/time.txt
if [ $? = 0 ]; then
echo "時刻を保存しました"
fi
elif [ "$1" = "restore" ]; then
if [ -f ${STORED_FILE} ]; then
date -s "$(cat ${STORED_FILE})"
echo "時刻を復帰しました"
... | true |
578f85fe701f903e3f6df35c5f242f17fd6438d1 | Shell | xtornasol512/chuchodev | /bin/setup_box | UTF-8 | 513 | 3.171875 | 3 | [] | no_license | #!/usr/bin/env bash
# This file run everytime runs vagrant up!
echo "==>Checking python version:"
python --version
pip install --upgrade pip
pip --version
pip install -r /vagrant/requirements.txt
# Git
if command -v git &>/dev/null; then
echo "Git is installed"
git --version
else
echo "Installing Git"
... | true |
943738b084ad31de253f4f12eca7228152dba348 | Shell | aslok/ac2100 | /AsusWRT-Merlin/jffs/home/root/.bash_aliases | UTF-8 | 13,828 | 3.34375 | 3 | [] | no_license | color_is_on=
color_red=
color_green=
color_yellow=
color_blue=
color_white=
color_gray=
color_bg_red=
color_off=
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
color_is_on=true
color_darkgray="\[$(/usr/bin/tput setaf 0)\]"
color_red="\[$(/usr/bin/tput setaf 1)\]"
color_green="\[$(/usr/bin/tpu... | true |
8504d093e173c35df65d944e6b67a83efa7b327a | Shell | duairc/ssl | /certificate.sh | UTF-8 | 9,317 | 3.703125 | 4 | [] | no_license | show_certificate() {
if is_csr "$1"; then
openssl req -noout -text -in "$1"
else
openssl x509 -noout -text -in "$1"
fi 2>/dev/null
}
get_certificate_public_key() {
if is_csr "$1"; then
openssl req -pubkey -noout -in "$1"
else
openssl x509 -pubkey -noout -in "$1"
fi 2>/dev/null
}
get_certificate_common_n... | true |
11f522f241a3aff6274094619d6192e2add2afa2 | Shell | davidgallego/docker-gulp | /docker-set-enviroment.sh | UTF-8 | 578 | 3.875 | 4 | [] | no_license | #!/bin/sh
BASHRC=~/.bashrc
# Load current enviroment variables
source $BASHRC
# Check $USER
if [ -z ${USER} ];
then
USER=`whoami`
echo "export USER=\"$USER\"" >> $BASHRC
echo "\$USER set to '$USER'";
else
echo "\$USER already set to '$USER'";
fi
# Check $USER_ID
if [ -z ${USE... | true |
7a79e7807ee838e44f2a0458dc909de13e530b6b | Shell | chaitanyaenr/benchmark-wrapper | /snafu/scale_openshift_wrapper/ci_test.sh | UTF-8 | 253 | 2.546875 | 3 | [] | no_license | #!/bin/bash
set -x
source ci/common.sh
# Build image for ci
image_spec=$SNAFU_WRAPPER_IMAGE_PREFIX/scale_openshift:$SNAFU_IMAGE_TAG
build_and_push snafu/scale_openshift_wrapper/Dockerfile $image_spec
pushd ripsaw
source tests/test_scale_openshift.sh
| true |
73c5eb50b4253b059ff88a9d4a424057b26e9735 | Shell | JoseRafaelCarmona/promedio-bimetral-y-trimestral | /promedio.sh | UTF-8 | 2,840 | 3.5625 | 4 | [] | no_license | #!/bin/bash
con=0
tri=0;
con1=0
num=0
prom=3
resultado=0
year=1990
opcionB=""
opcionT=""
opcionH=""
opcionM=""
while getopts ":bt" opt; do
case $opt in
b)
opcionB="1"
;;
t)
opcionT="1"
;;
h)
opcionH="1"
;;
m)
opc... | true |
21ef0d09edfbcc3ec18fc82d103b35289ec757f5 | Shell | elastic/apm-agent-php | /tests/tools/syslog_clearer/clear_impl.sh | UTF-8 | 793 | 3.5 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -xe
this_script_dir="$( dirname "${BASH_SOURCE[0]}" )"
this_script_dir="$( realpath "${this_script_dir}" )"
source "${this_script_dir}/../shared.sh"
(( EUID )) && { echo 'This script should be running with root privileges'; exit 1; }
linux_distro_name=$(detect_linux_distro)
if [ "${linux_dist... | true |
1409652b71cb6cba8dc12b6f109dd2342cfe08ab | Shell | jpcolella/Peromyscus_crinitus | /mds.sh | UTF-8 | 913 | 2.96875 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=mds
#SBATCH --output=mds.log
###GOAL: Multi-dimensional scaling (MDS)
REFERENCE = "reference_genome.fasta"
OUTNAME = "output_file_MDS"
### Create a list of variable sites by extracting the first 4 columns of the a mafs file (generated in ANGSD) into a separate 'snplist' file
gunzip ang... | true |
b4248b3ebc0309020a83285ac4dc8e1ddc6fca42 | Shell | jelias00c/client-management | /student_restrictions/install_student_restrictions.sh | UTF-8 | 491 | 3.375 | 3 | [] | no_license | #!/bin/sh
PROFILE_VERSION="20170202"
PROFILE_IDENTIFIER=$(/usr/bin/profiles -L -U student | grep -i "restrictions" | cut -d "." -f6)
PROFILE_PATH="/usr/local/share/profiles/student_restrictions.mobileconfig"
USERNAME=$(logname)
if [ $USERNAME = student ]; then
if [ $PROFILE_IDENTIFIER = $PROFILE_VERSION ]; then
e... | true |
6caca31911db707b67e378611904c6fe41f19059 | Shell | KHS-Robotics/pi_h264 | /service_manager.sh | UTF-8 | 1,686 | 4.0625 | 4 | [] | no_license | #!/bin/bash
if [ "$1" = "install" ]
then
echo "Adding h264server service to systemctl..."
sudo cp h264server.service /etc/systemd/system/h264server.service
sudo systemctl enable h264server.service
echo "Done."
elif [ "$1" = "start" ]
then
echo "Starting h264server service..."
sudo systemctl sta... | true |
b249defa3a6027ad956829e320057fb6241def71 | Shell | michaelgruber/dotfiles | /.functions | UTF-8 | 2,333 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
grepl() {
if [[ "$1" == '-k' ]]; then
local killing='true'
shift
fi
local processes=$(ps -e | grep "$@" | grep -v grep)
if [[ -z $processes ]]; then
echo "No processes matching $@." >&2
return
fi
if [[ "$killing" == 'true' ]]; then
hit_list=$(echo "$processes" | a... | true |
41c59d03f97cb3aa72ad4c23659ab2a9f5b5b9ff | Shell | Cortan122/voidrice | /.local/bin/glue.sh | UTF-8 | 600 | 3.8125 | 4 | [] | no_license | #!/bin/bash
[ "$#" -lt 2 ] && (>&2 echo "Not enough arguments") && exit 1
colls="$1"
shift
let "rows = ($#+$colls-1)/$colls"
filename="$(basename -- "$1")"
extension="png" #"${filename##*.}"
arr=()
for i in $(seq 1 "$rows") ;do
temp_file=$(mktemp "tmp.$(printf "%06d" $i).XXXXXXXXXX.$extension")
arr+=("$temp_fil... | true |
f51dfcff14b90d6c14a02adca222e55202cc0df4 | Shell | ihciah/NAS-tools | /free-route/make_ipset_17mon_deprecated.sh | UTF-8 | 493 | 3.015625 | 3 | [] | no_license | #!/bin/bash
VPN_SERVER=x.x.x.x
CHN_ROUTE=china_ip_list.txt
SETNAME=chn_route
SETFILE=chnroute.ipset
if [ ! -f $CHN_ROUTE ]; then
wget "https://github.com/17mon/china_ip_list/raw/master/china_ip_list.txt" -O $CHN_ROUTE
fi
ipset create $SETNAME hash:net
while read line; do
ipset add $SETNAME $line;
done < ... | true |
c80c2bf9cfcfcf62b884271c589e0db870e2a850 | Shell | liupc/fst-bench | /setup-ec2/setup-compute-many.sh | UTF-8 | 185 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
set -e
pushd `dirname $0` > /dev/null
DIR=`pwd`
popd > /dev/null
for box in $@; do
$DIR/setup-compute.sh $box &
sleep 5s
done
for box in $@; do
wait
done
| true |
2c9388a8ccfe5202efd0367ed2938ac9be7cc72b | Shell | Zeenat100/Day-5 | /prob13.sh | UTF-8 | 407 | 3.40625 | 3 | [] | no_license | #!/bin/bash -x
echo "Enter the value for conversion"
read value
echo "Enter the conversion you want"
read conversion
case "$conversion" in
feet-inches)
Inches=$(echo "$value * 12" | bc )
;;
feet-meter)
Meter=$(echo "$value * 0.3048" | bc )
;;
inch-feet)
Feet=$(echo "$value * 0.0833" | bc )
;;
meter-feet)
... | true |
dd32540879800ba1bf90e4a8e6b56a24f0c69d41 | Shell | luhaiyong/gdtoa-desktop | /rename-functions.sh | UTF-8 | 3,730 | 2.765625 | 3 | [] | no_license | #!/bin/sh
if [ -z "$2" ]; then
echo "Usage: $0 headerIn.h headerOut.h" >&2
exit 1
fi
headerIn="$1"
headerOut="$2"
# List of candidates for renaming was obtained via the following command on original library:
# nm libgdtoa-desktop.so | sed -n "s#.* T \(.*\)# -e 's@\\\<\1\\\>@gdtoa_\1@g'\\\#p"
sed \
-e ... | true |
e5b98742a29a1276c72f294cba50dd819e09d80d | Shell | rassakhatsky/Get-and-Put-scripts-for-FTP | /fops_ftp.sh | UTF-8 | 6,654 | 4.3125 | 4 | [] | no_license | #!/bin/bash
usage()
{
cat << EOF
Usage:
$0 -c put -s conn -f local_file [-x] -d remote_dir
$0 -c get -s conn -f remote_file -d local_dir [-a archive_dir]
$0 -c list -s conn -f remote_file
$0 -c list -s conn -d remote_dir
Options:
-h Show this message
-c Command: put, get, list
... | true |
f927c0417c0a544f6530772b19ad4452c129da43 | Shell | ymxl85/MRs-based-test-suite-for-APR | /original/Angelix/schedule2/mf/copyTS.sh | UTF-8 | 343 | 2.734375 | 3 | [] | no_license | s1=/home/mingyue/Documents/0TSE/CETI/schedule2/MFCC/1repairs
s2=/home/mingyue/Documents/0TSE/CETI/schedule2/MFCC/2unRepairs
for v in {1..41..1}
do
if [ -e $s1/v$v ]
then
cp $s1/v$v/Outer.inputs.sh $v/
echo $s1"-v"$v" -> "$v
fi
if [ -e $s2/v$v ]
then
cp $s2/v$v/Outer.inputs.sh $v/
echo $s2"-v"... | true |
f7fa8dd85c0f69318e8bb11629b5f8a30f01983c | Shell | VincentRavera/docker_app | /aliases.sh | UTF-8 | 940 | 2.546875 | 3 | [] | no_license | # My scripts
alias ipython="sh ~/.docker_app/python-base/Scripts/launch_ipython_shell.sh"
alias jupyter="sh ~/.docker_app/jupyter-docker/Scripts/launch_jupyter.sh"
alias youtube-dl="sh ~/.docker_app/youtube-dl-docker/launch_youtube-dl.sh"
alias intellij="sh ~/.docker_app/intellij-docker/launch-intellij.sh"
alias ip... | true |
e2e75e2f5dbd7471e6b86940e851c7f544f581db | Shell | codybuell/dotfiles | /scripts/symlinks.sh | UTF-8 | 1,209 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#
# Paths
#
# Setup all paths and symlinks from the repository configuration file.
#
# Author(s): Cody Buell
#
# Requisite:
#
# Tasks:
#
# Usage: make paths
# scripts/paths.sh
# shellcheck source=./library.sh
source "${BASH_SOURCE%/*}/library.sh"
######################
# #
# De... | true |
cb0d3aa6c013ff11e61d0b1ba6095144f757adc7 | Shell | wking/openshift-release | /ci-operator/step-registry/ipi/conf/gcp/ipi-conf-gcp-commands.sh | UTF-8 | 1,545 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
# TODO: move to image
curl -L https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64 -o /tmp/yq && chmod +x /tmp/yq
CONFIG="${SHARED_DIR}/install-config.yaml"
GCP_BASE_DOMAIN="$(< ${CLUSTER_PROFILE_DIR}/public_hosted_zone)"
GCP_PROJECT="$(< ... | true |
d1d7f0271d19958d51b6e10559cde8504a9ee97f | Shell | caslav-ilic/divergloss | /updatewww.sh | UTF-8 | 393 | 3.171875 | 3 | [] | no_license | #!/bin/sh
#
# Updates the exported WWW directory for divergloss.
DATE="2010-12-06"
DIR=tmpwww
mkdir $DIR
ln -s ../doc/html $DIR/doc
touch -d $DATE $DIR/favicon.gif $DIR/favicon.ico
echo \
'<?php header("Location: http://divergloss.nedohodnik.net/doc/");?>' \
> $DIR/index.php
touch -d $DATE $DIR/index.php
rsync -r... | true |
ae19ee1c7fbe0941ff5080d9a5b9a014f86f51fe | Shell | kristydahl/heat_analysis | /create_one_year_chunks.sh | UTF-8 | 399 | 3.515625 | 4 | [] | no_license | # This function hyperslabs historical netcdf files, which generally contain 5 years worth of data, into 1 year chunks.
# inputs: $1 is year, $2 is input file, $3 is output file
function hyperslab_by_year(){
echo 'starting hyperslabbing'
#ncks -d time,$1-04-01,$1-10-31 $2 $3
ncks -4 -L 5 -d time,$1-04-01,$1-10-31 $2... | true |
11a2424d7309623b71e6d03d54c4d2627ac1f017 | Shell | swarminglogic/pip-screenshot | /scripts/pip-playpause | UTF-8 | 867 | 4.21875 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
function showHelp() {
echo "pip-playpause - suspesnds pip-screen capture process
Usage:
$0
"
}
function message() {
if [ -t 0 ] ; then
echo "$@"
else
notify-send "$@"
fi
}
function error() {
if [ -t 0] ; then
echo "$@" >&2
else
message "$@"
fi
}
... | true |
a0cb4e7eb5ed46b88170a8e3aee52fd60cd09dc4 | Shell | meganeshkadam/openstack-helm | /ceph/templates/bin/rgw/_start.sh.tpl | UTF-8 | 2,537 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
{{/*
Copyright 2018 The Openstack-Helm Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | true |
5ddb6ad5d4961f613db8dbaa175e89813f514d22 | Shell | radhakrishna-kamatam/bashscripts | /while.sh | UTF-8 | 74 | 2.890625 | 3 | [] | no_license | #!/bin/bash
read a
while [ $a -le 5 ]
do
echo number$a
a=$(($a + 1))
done
| true |
64eedc49042a2ee29097f843c8a1af0a613052fc | Shell | KMcGeeVillalobos/dotfiles | /git.sh | UTF-8 | 550 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
if ! type -t brew_package; then
source "$HOME/dotfiles/functions.sh"
fi
brew_package git
ln -sf "$dotfiles/git/gitignore" "$HOME/.gitignore"
git config --global user.email "tito.villalobos.1@gmail.com"
git config --global user.name "Tito Villalobos"
git config --global alias.co checkout
git con... | true |
b6019faff8f49d1aa9be14cfba3f6a49aa98bba0 | Shell | Danilolnx/kube-yamls-example | /preinstall.sh | UTF-8 | 1,768 | 3.0625 | 3 | [] | no_license | ---
- name: Instalar repositorio Epel
yum:
name: epel-release
state: present
- name: Desinstalar pacotes de docker antigos
yum:
name:
- docker
- docker-client
- docker-client-latest
- docker-common
- docker-latest
- docker-latest-logrotate
- docker-logrotate
... | true |
eef4974d69215959a5db8c66a89b184558ef168f | Shell | pli01/pi-services | /ansible/common/tests-setup/docker/docker-entrypoint.sh | UTF-8 | 317 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# Client Env Vars
set -e
if [ "$1" = 'common' ]; then
echo "******* PROCESSING POST CONFIGURATION *********"
echo "******* STARTING COMMON *********"
## Do not forget if proces is launche via service start you have to tail logs to continue PID docker process
else
exec "$@"
fi
| true |
7af0c4f7918d3f3ec0bbb7abba6811e8c7721704 | Shell | saakai-dev/HLS-StreamingServer | /scripts/install_files.sh | UTF-8 | 458 | 2.734375 | 3 | [] | no_license | mkdir /nginx
mkdir /nginx/hls
# make path /nginx accessible to client
chown -R www-data:www-data /nginx
# move video player to path
cp assets/index.html /nginx/index.html
# place server ip address in video player
IP=$(curl https://ifconfig.me)
sed -i "s/YOUR_SERVER_IP/${IP}/g" /nginx/index.html
# replace nginx conf wit... | true |
683a4321b669d040a3c71c9c32c77909378700b1 | Shell | FeelUsM/LBQ | /clear.sh | UTF-8 | 382 | 3.265625 | 3 | [] | no_license | #!/bin/sh
TASKDIR=LinuxBeginnerQuest
if [ -e $TASKDIR ]; then
if [ `uname | grep -i cygwin` ]; then
find . * 2> /dev/null | xargs chmod 777 &> /dev/null
find . * 2> /dev/null | xargs chmod 777 &> /dev/null
else
find . * 2> /dev/null | xargs chmod 700 &> /dev/null
find . * 2> /dev/null | xargs chmod 700 &> /d... | true |
2c8f0f5d20f96046a79c68e373ab886651e163d9 | Shell | mkungla/repo-starter | /rs.sh | UTF-8 | 3,661 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Why bash? Just for fun!
# [-o] prevent errors in a pipeline from being masked.
# [-u] fail if found references to any variable which was not previously defined
set -uo pipefail
################################################################################
# INIT
#######################################... | true |
6b8c5261a6b909165c7a90fcbb8bfc9d435a2497 | Shell | I82Much/Scala-Minesweeper | /build.sh | UTF-8 | 525 | 2.875 | 3 | [] | no_license | #!/bin/bash
# Modified from http://stackoverflow.com/questions/809138/creating-a-jar-file-from-a-scala-file
if [ ! $SCALA_HOME ]
then
echo ERROR: set a SCALA_HOME environment variable
exit
fi
if [ ! -f scala-library.jar ]
then
cp $SCALA_HOME/lib/scala-library.jar .
fi
if [ ! -d bin ]
then
mkdir bin
fi... | true |
462e3277bb2c6ec4e465942048baafe1551906d0 | Shell | pranjalikawale/Shell-Script | /Programconstruct/IfStatement/checkDayMonth.sh | UTF-8 | 453 | 3.484375 | 3 | [] | no_license | #!/bin/bash -x
read -p "Enter day" day
read -p "Enter month" month
if [[ "$month" == march || "$month" == april || "$month" == may || "$month" == june ]];
then
if [[ "$month" == march && $day -ge 20 ]];
then
echo "true"
elif [[ "$month" == june && $day -le 20 ]];
then
echo "true"
else
... | true |
bebda947475e920c9340dfe3b17e5a8030fc8e80 | Shell | GregSimpson/Book-app-NodeJS-PostgreSQL-Travis-Coveralls-Code-Climate | /bash/book_apis.sh | UTF-8 | 1,795 | 3.0625 | 3 | [] | no_license |
## the book_store api
books_url="http://localhost:8000"
books_endpoint="/api/v1/books"
echo call APIs on ${books_url}/${books_endpoint}
## AUDIT Section ##
function getAudit() {
echo GET 100 audit data rows...
curl -X GET -H "Content-Type: application/json" ${nodered_url}/fom/v1/audit
}
function delAudit() {
... | true |
f2ffbbd087c97ab6aed89ee718f0291d469b8674 | Shell | parrotshen/shell_script | /example/filename.sh | UTF-8 | 595 | 3.296875 | 3 | [] | no_license | #!/bin/bash
filename=/home/parrot/shell/example.tar.gz
echo "[1;36mfilename[0m=$filename"
echo
echo "[1;33mbasename[0m [1;35m\$filename[0m"
echo $(basename $filename)
echo
echo "[1;33mbasename[0m [1;35m\$filename[0m .tar.gz"
echo $(basename $filename .tar.gz)
echo
echo "[1;35m\${filename[1;33m%%[0m.*[... | true |
ab0d4b7195e22e04a63faba544e3ac6aa42dc60d | Shell | HeligPfleigh/ifg_server | /ci/bin/updateAndRestart.sh | UTF-8 | 1,051 | 4.0625 | 4 | [] | no_license | #!/bin/bash
# any future command that fails will exit the script
set -e
# access to work dir
echo "--> WORKDIR: ~/mtt-source/api-server";
echo "ARGS: $@"
######### DEPLOY PROCESS #############
deploy() {
# stop docker-compose
echo "Stop Socket Sever"
# docker cli
docker-compose stop
# remove old instanc... | true |
c3743ccf85ce306d5ccef2218955d74364487565 | Shell | JaehoonLim/CMS | /rmCrab.sh | UTF-8 | 333 | 2.609375 | 3 | [] | no_license | #!/bin/bash
# Crabjob Management Script v1.60
if [ -a TaskInfo.CMS ]; then
crab -get all
crab -clean
RH=$(sed -n 's/Remote Host://p' TaskInfo.CMS)
TN=$(sed -n 's/TaskName://p' TaskInfo.CMS)
gsissh $RH rm -rf ./$TN
fi
rm -rf nohup.out
rm -rf ./log
rm -rf ./*.log
rm -rf ./*.CMS
rm -rf crab_*
rm -rf ... | true |
6d0a2d4f5d164074cda4dce0aceea26ce015f900 | Shell | Hero2200/linux-kernel-demo | /1-Andoird_Sources/ch13/aio/build_s3c6410.sh | UTF-8 | 1,064 | 2.734375 | 3 | [] | no_license | # build_s3c6410.sh
source /root/drivers/common.sh
make -C $S3C6410_KERNEL_PATH M=${PWD}
arm-none-linux-gnueabi-gcc -static ${PWD}/test_aio_rw.c -o test_aio_rw -lrt -lpthread
arm-none-linux-gnueabi-gcc -static ${PWD}/test_read_signal.c -o test_read_signal -lrt -lpthread
arm-none-linux-gnueabi-gcc -static ${PWD}/t... | true |
d7451cba9210b8accab01cb3d4f6e771d6c8fbf6 | Shell | florent-engineering/anemomind | /k8s/gke/create-cluster.sh | UTF-8 | 4,738 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
##
# Script to deploy anemomind Kubernetes cluster with the following [To be replaced with Terraform/Skaffold in later releases]
# => 3 Node GKE cluster backed up by GCE nodes specified by --machine-type and --image-type for given project name/id
# => GCE SSD persistent disks per mongodb stateful pod
# =>... | true |
25400a4d34140f6110b2d87a087b3927f60afd7f | Shell | peter-mcconnell/jenkins-in-docker-with-docker-in-jenkins | /agents.sh | UTF-8 | 764 | 2.9375 | 3 | [] | no_license | #!/bin/bash -
# a very hacky way to show the creation of jenkins swarm agents
# there's really no value in running "agents" as containers
source variables.sh
while [ $SCALE -gt 0 ]; do
docker run \
-d \
--name "jenkins_agent${SCALE}" \
--link jenkins_master:jenkins \
-u 0 \
-e JENKIN... | true |
cbabe8307e007dda1d5818b71402de7918689730 | Shell | iongion/lua-nanovg-local | /scripts/setup.sh | UTF-8 | 990 | 3.78125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | set -e
PROJECT_HOME=$( dirname "$( cd "$( dirname "$0" )" && pwd )" )
export PATH=$HOME/.local/bin:$PATH
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=OSX;;
CYGWIN*) machine=Windows;;
MINGW*) machine=Windows;;
*) machine="UNKNOWN:${uname... | true |
0145b8bf187682ca539f0c61b8cdbb54f4e438f0 | Shell | afreisinger/dotfiles | /utils/scripts/git-branch-overview | UTF-8 | 241 | 2.734375 | 3 | [] | permissive | #!/bin/sh
# You can pass in `branch` arguments and it will be used. I.e. "-a" to see all remote branches
git branch --format='%(refname:lstrip=2)' $@ | xargs -L10 -IXX git log -n1 --pretty=format:'%ai %d %s <%an> (%cr) %n' XX -- | sort -u
| true |
78317dff3754180a2c642b37a8be07ca03d7cf9b | Shell | digitalLumberjack/docker-nginx-ssl-proxy | /start.sh | UTF-8 | 1,573 | 3.125 | 3 | [] | no_license | #!/bin/bash
[ ! -z "${VIRTUAL_HOST}" ] && sed -i "s/VIRTUAL_HOST/${VIRTUAL_HOST}/" /etc/nginx/conf.d/default.conf
[ ! -z "${APP_HOST}" ] && sed -i "s/APP_HOST/${APP_HOST}/" /etc/nginx/conf.d/default.conf
[ ! -z "${APP_PORT}" ] && sed -i "s/APP_PORT/${APP_PORT}/" /etc/nginx/conf.d/default.conf
if [[ ! -f "/root/.stamp_... | true |
1bdc8f4d9630aacb7942d9be185a3ee61a629343 | Shell | a2d8a4v/larnmvp | /tools/lower_case.sh | UTF-8 | 173 | 3.296875 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
function lower_case {
# @https://stackoverflow.com/questions/2264428/how-to-convert-a-string-to-lower-case-in-bash
printf "$1" | tr '[:upper:]' '[:lower:]'
}
| true |
b6b54bed1d6a3530e482b36e6a9f4b30b3938df2 | Shell | yulk0328/www.114rom.com | /openwrt/dnsmasq.sh | UTF-8 | 11,036 | 2.65625 | 3 | [] | no_license | #!/bin/bash
rm -rf dnsmasq.accelerated-domains.conf dnsmasq.bogus-nxdomain.conf dnsmasq.adblock-domains.conf dnsmasq.adblock-domains.nxdomain.conf ignore-ips.china.conf dnsmasq.gfw-domains.conf ignore.list unbound.gfw-domains.conf overture.gfw-domains.conf overture.accelerated-domains.conf unbound.accelerated-domains.c... | true |
cc436d3356ce90e8c9bced315aeadfbd6c414938 | Shell | wangerxin/data_warehouse | /src/main/script/import/daily_increment_and_update/import.sh | UTF-8 | 2,053 | 3.46875 | 3 | [] | no_license | #! /bin/bash
###############################
# 脚本功能: 每日将新增和修改的数据导入hdfs
# $1: 表名,默认值all
# $2: 日期,默认值执行日期减1天
###############################
source ./../mysql_to_hdfs.sh
table_name=$1
if [[ "x$table_name" = "x" ]]; then
table_name=all
fi
do_date=$2
if [[ "x$do_date" = "x" ]]; then
do_date=`date -d '-1 day' +... | true |
6cbcd3f75ef0b9c63896309ec2d0f15e7b5a6a36 | Shell | angry-tony/ksql-examples | /security/rbac/scripts/enable-rbac-control-center.sh | UTF-8 | 5,521 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
################################################################################
# Overview
################################################################################
#
################################################################################
# Source library
. ../../../utils/helper.sh
. ./r... | true |
45c358b07e7f6fbbb8bdcd2b2419b6fe508bc689 | Shell | NorthBlue333/tdscript | /youtube-dl | UTF-8 | 626 | 3.875 | 4 | [] | no_license | #!/bin/bash
checkdir() {
if ! [ -d "${HOME}/youtube-dl-musics" ] || [ -L "${HOME}/youtube-dl-musics" ] ; then
mkdir "${HOME}/youtube-dl-musics"
fi
}
movemusic() {
checkdir
cp "$1" "${HOME}/youtube-dl-musics/${2}"
rm "$1"
echo "You have downloaded ${2}"
}
findfile() {
test=$(youtube-dl -x $1 2>&1)
if ! [ ... | true |
35c86539e21a3a249ca8831541ef693550b2c0d3 | Shell | stefano-mecocci/progetto-sistemi-operativi | /export-wiki.sh | UTF-8 | 498 | 3.375 | 3 | [] | no_license | #!/bin/bash
#required packages: pandoc, texlive-xetex
#assuming cloned wiki repo in the parent folder
PROJECT=$(pwd)
REPO=$(basename $PROJECT)
WIKIREPO="$REPO.wiki"
FILES="Home.md;Richieste-di-corse.md;Taxi.md;Generazione-Report.md"
IFS=';' read -r -a array <<< "$FILES"
PANDOCINPUT="../$REPO/README.md"
for element i... | true |
49a3389d79b29bfdd2af0d78ec6b03df9670aad0 | Shell | tandyw/msaevaluation | /IntensiveMethodsRunningScripts/RunningTCoffee/ComputationNode-Runner.sh | UTF-8 | 545 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#The input arguments
dataset=$1
database=$2
#Addresses
inputdataset=input/AminoAcids/$database/$dataset.faa
outfolder=output/AminoAcids/$database/$dataset
if [ ! -d $outfolder ]; then
#creating a folder for each dataset, so that TCoffee genereates the files inside that folder.
mkdir -p $outfolder
cd... | true |
fedb092e8a95f3739bd846e4c4349db214b26340 | Shell | Juniper/contrail-server-manager | /src/contrail-server-manager-lite.start.u | UTF-8 | 410 | 2.640625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/bash
setenforce 0
echo ""
echo "Restarting Apache2"
echo ""
service apache2 restart
echo ""
echo "Restarting Xinetd"
echo ""
service xinetd restart
mkdir -p /var/run/contrail-server-manager/
echo ""
echo "Starting SMgr"
echo ""
nohup /opt/contrail/server_manager/server_mgr_main.py -c /opt/contrail/server_man... | true |
25a181d3b0a0cbc1723d012d08b08b6dc4263228 | Shell | Mari00/openwrt | /misc/install.sh | UTF-8 | 21,240 | 3.28125 | 3 | [] | no_license | #!/bin/sh
# Install or download packages and/or sysupgrade.
# Script version 1.32 Rafal Drzymala 2013
#
# Changelog
#
# 1.00 RD First stable code
# 1.04 RD Change code sequence
# 1.05 RD Code tune up
# 1.06 RD Code tune up
# 1.07 RD ExtRoot code improvements
# 1.08 RD Add image check sum control
# 1.09 RD A... | true |
35fdeb21e36d453d2bda0965e55c25b77fc45413 | Shell | derrickmccurdy/BagOfTricks | /BOT/LINUX/unclosed_leads.sh | UTF-8 | 3,947 | 2.5625 | 3 | [] | no_license | #!/bin/bash
dwhich=/usr/bin/which
ddate=`$dwhich date`
today=`$ddate +"%F"`
dscp=`$dwhich scp`
drsync=`$dwhich rsync`
dmysql=`$dwhich mysql`
dtouch=`$dwhich touch`
#$dtouch /tmp/unclosed_leads.$today
#$dmysql -e "select Email, CONV(SUBSTR(MD5(LOWER(\`Email\`)),19,32),16,10), Firstname, LastName, Employer into outfile... | true |
0ad1992fe1833e7055121ecb1c0515ba7142e654 | Shell | gorty44/bash_lesson | /Lesson8/if_then_fi | UTF-8 | 410 | 3.859375 | 4 | [] | no_license | #!/bin/bash
if [ -z $1 ]; then
echo no argument provided
exit 1
elif [ ! -e $1 ]; then
echo $1 does not exist
exit 2
elif [ -d $1 ]; then
echo $1 is a directory
elif [ ! -f $1 ]; then
echo $1 is not a directory nor a file
elif [ -x $1 ]; then
echo $1 is an executable file
elif grep '#!/bin/bash' $1 ; then
echo... | true |
7fbefb6a2dc13636eb4dad6f05737438c8215f3a | Shell | ioppermann/munin-contrib | /plugins/postfix/postfix_filtered | UTF-8 | 5,202 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#
# Plugin to monitor incoming Postfix mail.
#
# Parameters understood:
#
# config (required)
# autoconf (optional)
#
# If you are using a postfix policy daemon (such as policyd) to track certain block conditions, place a line
# in your /etc/munin/plugin-conf.d/munin-node like:
#
# [postfix*]
# env.p... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.