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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5dd4f9482f6d1d25a282dfd0ff87b2c8c643282f | Shell | mdev88/choosebrowser | /choosebrowser.sh | UTF-8 | 1,496 | 3.984375 | 4 | [] | no_license | #!/bin/bash
declare -A browsers # <-- No tocar esta línea!
########################################
### LA CONFIGURACIÓN COMIENZA AQUÍ ###
# Path a yad (requerido)
YAD=/usr/bin/yad
# Habilitá tus navegadores descomentando las líneas
# y editando el path
## Firefox
FIREFOX=/usr/lib/firefox/firefox
browsers["Fir... | true |
2c76b838aa0d75dd5c3023a3c4cb679d07268fa4 | Shell | evil5hadow/pkgcenter | /Mk/git_import | UTF-8 | 1,134 | 3.46875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# -*- tab-width: 4 -*- ;; Emacs
# vi: set noexpandtab :: Vi/ViM
############################################################ IDENT(1)
#
# $Title: Script for importing current working directory to git $
# $Copyright: 1999-2017 Devin Teske. All rights reserved. $
# $FrauBSD: Mk/git_import 2017-07-23 16:16:24 -... | true |
11a869efe819e2d620164ac1a473b094e9ab7c26 | Shell | acidbourbon/mdc_simsuite | /workdir/python_modules/pasttrec_ctrl/spi | UTF-8 | 773 | 3.78125 | 4 | [] | no_license | #!/bin/bash
function usage {
echo 'usage: TDC=<TDC> CONN=<CONN> CHIP=<0|1>./spi <data_file>'
echo " CONN can be 1..16"
echo
echo 'example: TDC=0x0351 CONN=1 CHIP=0 ./spi chip0_settings.txt'
exit
}
if [ -z $CONN ]; then
echo 'error: $CONN not set'
usage
fi
if [ -z $TDC ]; then
echo... | true |
8178422cceffca88ec7ba4fab69d387874a412cd | Shell | open-estuary/appbenchmark | /apps/mysql/percona_1/scripts/start_client.sh | UTF-8 | 3,713 | 3.390625 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 4 ]; then
echo "Usage: client_start.sh <ip_address> <username> <userpassword> <action> [port]"
echo "By default, it will connect 3306 port"
exit 0
fi
BASE_DIR=$(cd ~; pwd)
PORT_ID=3306
if [ $# -ge 5 ] ; then
PORT_ID=${5}
fi
####################################################... | true |
2173edd0325a15c19678368c57d3ff6cfa6b431b | Shell | ibrahimmenem/cartodb | /script/ci/secondTry.sh | UTF-8 | 819 | 3.734375 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
# Jesus Vazquez
# secondTry
# This is a hack for those specs that failed in the parallel execution.
# Here we can check if they failed because they can't run in parallel
# or because the PR code is wrong
# Requisites
cp config/database.yml.sample config/database.yml
# Start
failedSpecs=$(cat parallel_test... | true |
ccd20d69b0598f2234c47d65e07abcaa1752183f | Shell | bopopescu/tools-2 | /linux/ssd | UTF-8 | 829 | 3.75 | 4 | [] | no_license | #!/bin/sh
port=443
passwd=''
encrypt=''
function start()
{
ssserver -p ${port} -k ${passwd} -m ${encrypt} --user nobody -d start
}
function restart()
{
ssserver -p ${port} -k ${passwd} -m ${encrypt} --user nobody -d restart
}
function stop()
{
ssserver -p ${port} -k ${passwd} -m ${encrypt} --user nobody -d sto... | true |
09a4a55af493929bdbf06078d76923471a26049b | Shell | cossacklabs/acra | /docker/_scripts/postgresql-ssl-configure.sh | UTF-8 | 478 | 3.5 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash
set -euo pipefail
for f in root.crt server.crt server.key; do
cp /tmp.ssl/${f} "${PGDATA}/"
chown postgres:postgres "${PGDATA}/${f}"
chmod 0600 "${PGDATA}/${f}"
done
set_pg_option() {
sed -i "s/^#*${1}\\s*=.*/${1} = ${2}/g" "$PGDATA/postgresql.conf"
}
set_pg_option "listen_addresses" "'*... | true |
e3622392b7207b671d416530a7cc680e2829361c | Shell | SumGuyV5/ShellScripts | /download.sh | UTF-8 | 6,593 | 4.0625 | 4 | [] | no_license | #!/bin/sh
SSHD=false
ARCHSETUP=false
FREEBSDSETUP=false
SUDOSETUP=false
BASHSETUP=false
DJANGOSETUP=false
DRUPALSETUP=false
FREEPBXSETUP=false
FUSIONPBXSETUP=false
OPT=false
HELP=false
while getopts SafsBjdpPh option
do
case "${option}"
in
S) SSHD=true;;
a) ARCHSETUP=true;;
f) FREEBSDSETUP=true;;... | true |
3c25a7f4e7c91bd3cf75b4268f8b15121940d731 | Shell | arontommi/FindSV | /launch_core_restart_failed.sh | UTF-8 | 644 | 2.71875 | 3 | [] | no_license | #!/bin/sh
#script used for automated launcing of FindSV_core.nf.
#sample["bam_call"],sample["bam_annotate"],args.config,args.output,sample["vcf"],temp_dir
FindSV_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "SAMPLE_ID":$2
nextflow $FindSV_dir/FindSV_core.nf --bam $2 -c $3 --working_dir $4 --vcf $5 -wi... | true |
3001caaed0ea4b3295215d1296beb2eadfd2e569 | Shell | littlepush/PECoAutoStage | /install_script.sh | UTF-8 | 4,966 | 3.6875 | 4 | [
"MIT"
] | permissive | #! /bin/bash
PLATFORM=`uname -m`
[[ ! ${PREFIX} ]] && {
if [ "${PLATFORM}" == "Linux" ]; then
PREFIX=/usr
elif [ "${PLATFORM}" == "Darwin" ]; then
PREFIX=/usr/local
fi
}
NOW_PATH=`pwd`
SSLCONFIG=""
TMP=`date +%s`
export LC_ALL="en_US.UTF-8"
function __OnExit() {
cd ${NOW_PATH}
r... | true |
cc72dfe7d33cdca41d8adc2239b07a1e26b47483 | Shell | mywebwork/linux-server-tools | /old/lst/backup_mysql.sh | UTF-8 | 632 | 3.390625 | 3 | [] | no_license | #!/bin/sh
#set -x
DATABASES="redmine gtp gjms"
DATE=$(date +'%d-%m-%Y')
BACKUP_PATH="/home/backup/mysql"
USER="backup"
PASSWD="uFHdSdetNTYujcvQ"
EMAIL="rwachol@lanox.pl gglinski@lanox.pl"
for DB in ${DATABASES}
do
rm -f ${BACKUP_PATH}/${DB}-${DATE}.sql.bz2
mysqldump --user=${USER} --password=${PASSWD} ${DB} > ${BAC... | true |
d3f28f09f80fc1b6395a3fd63068a22d011a4c01 | Shell | Lillianmin/learn_script | /get_opts | UTF-8 | 1,553 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# -c clear
# -d dir
# -m mc
# -e vi
#
#getopts
help_func() {
echo "Usage: $0 -c -d -m -e {editor name}";
echo "Where -c clear the screen";
echo " -d show dir";
echo " -m start midnight commander shell";
echo " -e {editor}, start {editor} of your choice";
return
}
c... | true |
d5acb3fa56b9b470a8048d6f31d66f44fc0ae69c | Shell | flexmylife/TIL_Shell | /and.sh | UTF-8 | 186 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
name="/root/a.txt"
if [ -e $name ] && [ -f $name ]; then
#if [ -e $name -a -f $name ];then #-a=and -o=or
tail -5 $name
else
echo "file no exist"
fi
exit 0
| true |
cb4f6a6eaee66bfe1dfb38b4705845e2e2301741 | Shell | Ahead180-103/study | /shell/shelldb/ipvsadm.sh | UTF-8 | 411 | 2.90625 | 3 | [] | no_license | #!/bin/bash
while :
do
for i in 192.168.4.{2,3}
do
ipvsadm -Ln | grep $i &>/dev/null
web_in_lvs=$?
curl $i &>/dev/null
web_stat=$?
if [ $web_stat -ne 0 -a $web_in_lvs -eq 0 ];then
ipvsadm -d -t 201.1.1.4:80 -r $i &>/dev/null
elif [ $web_stat -eq 0 -a $web_in_lvs -ne 0 ];then... | true |
b9abe3b321b8fd932240532b1362bcb2be63cafc | Shell | metaver5o/mssLinux | /mssutils/startvpn | UTF-8 | 449 | 3.125 | 3 | [
"WTFPL"
] | permissive | #!/bin/env bash
if [ -z "$1" ]; then echo " ! no ovpn config selected."; exit 1; fi
echo " * getting pass." &&
passboi=$(curl -s https://freevpn.me/accounts | grep -o 'Password.*' | cut -c-26 | awk '{print $2}')
echo " * setting pass." &&
sed -i "2s/.*/$passboi/" /mnt/mss/stuff/techy-bits/openvpn/auth.txt &&
echo " ... | true |
2d872332a8968194e09247c409accc3c2afec891 | Shell | sujesha/preadwritedump | /install.sh | UTF-8 | 7,165 | 3.46875 | 3 | [] | no_license | #!/bin/sh
# Some default values of parameters
UseMount=1
UseLocal=0
PrintUsage=0
ScanOnly=0
IOOnly=1
CaptureKVMOnly=0
EXP_NAME=""
# Parse command line options
while getopts ":hsim:kl:" Option
do
case $Option in
m ) UseMount=1
EXP_NAME=$OPTARG;;
l ) UseLocal=1
EXP_NAME=$OPTARG;;
h ) Print... | true |
c9e16f7eb2109958978aff32d1845f682c7da624 | Shell | mbert/kubeadm2ha | /ansible/files/clone-from-github.sh | UTF-8 | 519 | 3.984375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if [ -z "$1" -o -z "$2" ]; then
echo "Usage: $0 <repo-owner> <repo-name> [<ref>]" 1>&2
exit 1
fi
OWNER="$1"
REPO="$2"
REF="$3"
cloneFromGithub() {
if [ -d ${REPO} ]; then
cd ${REPO} || return 1
git reset --hard HEAD || return 1
git checkout master || return 1
git pull || return 1
else
git clo... | true |
1d1c1e64897aa3e5e183ec9ff11f800f844e605f | Shell | google-code/ant-manager | /ant-manager/bin/_setlib.sh | UTF-8 | 606 | 3.703125 | 4 | [] | no_license | #!/bin/sh
##
## Common script to set the ANT_MANAGER_LIB variable
## to the directory containing ant-manager.jar
##
# OS specific support. $var _must_ be set to either true or false.
if [ -z "$ANT_MANAGER_HOME" ]; then
export ANT_MANAGER_HOME=`dirname $0`/..
fi
if [ -z "$ANT_HOME" ]; then
export ANT_HOME=$ANT_MANAG... | true |
3c9e1717af9194754c14d875af71c4f320ef1803 | Shell | arcress0/ipmiutil | /test/ipmievt.sh | UTF-8 | 1,453 | 3.65625 | 4 | [
"Zlib",
"BSD-3-Clause",
"GPL-2.0-only",
"GPL-2.0-or-later",
"BSD-2-Clause",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-openssl",
"OpenSSL",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/sh
# ipmievt.sh - generate an IPMI temperature event
#
# Baseboard Temp is usually index 0d, 0e or 15, & sensor num 0x30
# Note that values displayed/used are in hex.
#
# sensor |grep -i "Baseboard Temp"
# 000d SDR Full 01 39 20 a 01 snum 30 Baseboard Temp = 2f OK 47.00 degrees C
# ^^=ibasetemp ... | true |
0a792393ccf3828ea7e8060b7ddd8f2d9b24fe31 | Shell | aquila/omf-integrates-confine | /omf-aggmgr/debian/init.d | UTF-8 | 2,463 | 3.875 | 4 | [
"MIT"
] | permissive | #! /bin/bash
#
# starts and stops the Aggregate Manager Daemon (formerly know as gridservices)
#
# Written by Maximilian Ott <max@winlab.rutgers.edu>.
# Modified by Christoph Dwertmann
#
### BEGIN INIT INFO
# Provides: omf-aggmgr
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $... | true |
ccdc6580e664f649e4340bc6f4fa4141f85a3c3d | Shell | Miller-Media/osx | /Scripts/dev.sh | UTF-8 | 347 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# DESCRIPTION
# Copies all snippets to Xcode snippet folder
# EXECUTION
echo "Copying Xcode code snippets..."
path_src=Snippets
path_dst=~/Library/Developer/Xcode/UserData/CodeSnippets
mkdir $path_dst
for file in $path_src/*.codesnippet; do
cp $file $path_dst/$(basename $file)
done
echo "Copying Xcode c... | true |
ecf85503547725fb057beb9f688a3cc29b714fdc | Shell | sushilmchaudhari/myprojects | /terraform/ms_aws/single/instances.sh | UTF-8 | 5,271 | 3.953125 | 4 | [] | no_license | #!/usr/bin/env bash
#if [[ $EUID -ne 0 ]]; then
# echo -e "\nERROR: This script must be run as root\n" 1>&2
# exit 1
#fi
BASENAME=$0
print_usage() {
ERROR_MSG="$1"
if [ "$ERROR_MSG" != "" ]; then
echo "\nERROR: $ERROR_MSG\n" 1>&2
fi
echo ""
echo "Usage:"
echo " $BASENAME prod web/app/db/le... | true |
a383bdd0b82d3ced5d7e4ba2afb61f57bc9b8be2 | Shell | saisai/easymail | /autoconfig/install.sh | UTF-8 | 650 | 2.671875 | 3 | [
"MIT"
] | permissive | # Install autoconfig and autodiscover
set -e
AUTOCONFIG_DIR="$CURRENT_DIR/autoconfig"
mkdir /usr/share/nginx/autoconfig_and_autodiscover
cp $AUTOCONFIG_DIR/autoconfig.php /usr/share/nginx/autoconfig_and_autodiscover/
cp $AUTOCONFIG_DIR/autodiscover.php /usr/share/nginx/autoconfig_and_autodiscover/
cp $AUTOCONFIG_DIR... | true |
a2b7e24fa4b1c2305fc2697715a6a8677928f7ae | Shell | kleisauke/libvips-packaging | /integrity.sh | UTF-8 | 292 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
# Calculate sha512-based checksum
integrity() {
CHECKSUM="sha512-$(shasum -a 512 $1 | cut -f1 -d' ' | xxd -r -p | base64 | tr -d '\n')"
printf "$CHECKSUM $1\n"
printf "$CHECKSUM" > $1.integrity
}
for tarball in libvips*.tar.gz; do
integrity $tarball
done
| true |
e934f44ba210252b3bfbe6494fecdf977c7634eb | Shell | connordelacruz/bash_config | /update_plugins.sh | UTF-8 | 597 | 3.25 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# ==============================================================================
# update_plugins.sh
#
# Pulls updates submodules remotes.
#
# Author: Connor de la Cruz
# Repo: https://github.com/connordelacruz/bash_config
# ===========================================================================... | true |
9200046643dc3dc95ffe3799df7bcbb7aa67ec18 | Shell | petronny/aur3-mirror | /mate-conf/PKGBUILD | UTF-8 | 1,776 | 2.75 | 3 | [] | no_license | # Maintainer: Perberos <perberos@gmail.com>
pkgname=mate-conf
pkgver=20130101
pkgrel=1
pkgdesc="A configuration database system"
url="https://github.com/mate-desktop/mate-conf"
arch=(i686 x86_64)
license=('LGPL')
depends=('mate-corba' 'libxml2' 'polkit' 'libldap' 'dbus-glib' 'gtk2')
makedepends=('git' 'pkgconfig' 'intl... | true |
ebb2e028153e0fa3f6cb375902d24da74f01c645 | Shell | jgriffiths/qubes-setup-vm | /vpn/vpn_updown.sh | UTF-8 | 3,075 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# From https://groups.google.com/forum/#!msg/qubes-users/-9gR1Va3BnY/FlKLzdOxJJkJ
UNPRIVILEGED_USER=openvpn
SPID=$(pgrep -U user -f dconf-service)
dbus=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$SPID/environ|cut -d= -f2-)
export DBUS_SESSION_BUS_ADDRESS=$dbus
vpn_up()
{
# Parses DHCP options from ope... | true |
727849b23ab2fc8f86887be4b429e28154d25d8e | Shell | c-paras/shpy | /demo02.sh | UTF-8 | 506 | 4.53125 | 5 | [] | no_license | #!/bin/sh
#This script computes the sum of even and odd numbers in its arguments
even=0
odd=0
#aborts if no parameters are supplied
if test $# -lt 1
then
echo "Usage: $0 <numbers>"
exit 1
fi
#loops through each input argument
for num in "$@"
do
parity=$(expr $num % 2) #determines parity of num
#increments appro... | true |
be708f5015c30a1eb40ac1a4bd310987e4aabea5 | Shell | Lotuslwb/signInClock | /MongoDB_bak.sh | UTF-8 | 717 | 3.625 | 4 | [] | no_license | #!/bin/bash
#backup MongoDB
#mongodump命令路径
DUMP=mongodump
#临时备份目录
OUT_DIR=/root/YingFu/now
#备份存放路径
TAR_DIR=/root/YingFu/mongodb_bak_list
#获取当前系统时间
DATE=`date +%Y_%m_%d`
#DAYS=15代表删除15天前的备份,即只保留近15天的备份
DAYS=15
#最终保存的数据库备份文件
TAR_BAK="mongodb_bak_$DATE.tar.gz"
cd $OUT_DIR
rm -rf $OUT_DIR/*
mkdir -p $OUT_DIR/$DATE
#备份全部... | true |
322f1eb26750e2cd87d26777ecdc7e814607bffb | Shell | yoppeh/minl | /1-tar.sh | UTF-8 | 432 | 3.078125 | 3 | [] | no_license | #!/bin/bash
. ./environment.sh
. ./package-versions.sh
export FORCE_UNSAFE_CONFIGURE=1
if [ -f $PROGRESS_DIR/1-tar ] ; then
exit 0
fi
echo "building tar..."
set -e
cd $MINL/sources
rm -rf tar-${tar_v}
tar xf tar-${tar_v}.tar.xz
cd tar-${tar_v}
./configure \
--prefix=/usr \
--host=$MINL_TGT \
--build... | true |
c99a7f812f44e9a686bef85979baff81996eb63d | Shell | stek29/dotfiles | /zsh/zshrc | UTF-8 | 950 | 3.015625 | 3 | [
"MIT"
] | permissive | # Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
alias sudo="sudo "
# Shortcuts
alias ls="exa"
alias vim="nvim"
# Git aliases
alias g='git'
alias ga='git add'
alias gap='git add -p'
alias gb='git branch'
alias gc='git checkout'
alias gd='git d... | true |
806042e8afda6bcecb09665ba990f90f5661e133 | Shell | d-adler/bayesx-buildbot | /vagrant/sh/vcs.sh | UTF-8 | 334 | 2.96875 | 3 | [] | no_license | case `uname` in
Linux)
if [ `command -v apt-get` ]; then
apt-get install -y subversion mercurial git
elif [ `command -v dnf` ]; then
dnf -y install subversion mercurial git
fi
;;
SunOS)
pkgutil -i -y subversion mercurial git
;;
Darwin)
port install subversion mercurial git... | true |
a295a697e5e45932029f61f824666f451216bcc7 | Shell | martin-v/btrfs-subvolume-backup | /tests/test_default.sh | UTF-8 | 807 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | . assert.sh --verbose
. assert-extras.sh
# init runs through
assert_success "btrfs-subvolume-backup --init $LIVE_DIR $BACKUP" "Create a readonly snapshot of"
assert "diff -r $LIVE_DIR $ORIGIN/live_last" ""
assert "diff -r $ORIGIN/live_last $BACKUP/live_last" ""
sleep 1
# change data
date > $LIVE_DIR/data
# normal r... | true |
b854ccfc4dbd109050c7aeb7e82522d8e695b874 | Shell | kubevirt/kubevirt-template-validator | /hack/ci/stop-cluster | UTF-8 | 354 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# usage: stop-cluster (minikube|oc_cluster) $CLUSTER_VERSION
set -e
source $(dirname $(realpath $0))/../../ci/ci/defaults
warn() { echo "WARN: $@" >&2 ; }
condarg() { [[ -n "$2" ]] && echo "$1$2"; }
_minishift() {
local CVER=$1
minishift stop
minishift delete -f
}
_${1:-$DEFAULT_PLATFORM} ${2:-$... | true |
1b4444711d55c527b5fbf3ed5099242b9a2e3cc7 | Shell | nwchemgit/nwchem | /src/nwdft/libxc/libxc_findsizenp.sh | UTF-8 | 457 | 3.453125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"ECL-2.0"
] | permissive | #!/usr/bin/env bash
npstring=$(egrep np "$1"/xc.h|head -1)
np_array=($npstring)
count=-1
sizenp_string=' '
for substring in "${np_array[@]}"; do
[[ $substring == "np," ]] && sizenp_string=${np_array[$count]} && break
((++count))
done
if [[ "$sizenp_string" == 'int' ]]; then
size_np=4
elif [[... | true |
9b52eaffdcecea6a1dcb3db4d91e50c2715efb4d | Shell | ctmathews2/P1-Tests | /14-Task-Info-2.sh | UTF-8 | 382 | 2.5625 | 3 | [] | no_license | source "${TEST_DIR}/funcs.bash"
expected_line="88888 | zombie | really_really_long_named_ | $(whoami) | 9256"
test_start "Correct Process Info, Name Truncation, and Sub-Task Count (9256)"
reported_line=$(./inspector -p "${TEST_DIR}/fakeproc" -t | grep '88888')
compare --ignore-all-space \
<(echo "${expect... | true |
46a6dd98e49323e8125335458fae3231601a2260 | Shell | ndsh/Manifest | /UDPShutdown.sh | UTF-8 | 254 | 2.984375 | 3 | [] | no_license | #!/bin/sh
nc -ulp 6000 | while read line
do
match=$(echo $line | grep -c 'Manifest,On/Off')
echo -n "$line " | nc -4u -w0 -q0 localhost 6100
if [ $match -eq 1 ]; then
echo "shutdown"
shutdown now
fi
done
| true |
54dd2eac964259032a833a0adee4b09c5a2c4790 | Shell | esdxfvgijhg/tool | /shell/desktop/dmenu/dmenu-shutdown | UTF-8 | 252 | 3.125 | 3 | [] | no_license | #!/bin/bash
MESSAGE="lock\\nexit\\nreboot\\nshutdown"
ACTION="$(printf "$MESSAGE" | $dmenu -i -p "Power Menu:")"
case "$ACTION" in
"lock") lock ;;
"exit") i3-msg exit ;;
"reboot") systemctl reboot ;;
"shutdown") systemctl poweroff -i ;;
esac
| true |
7f778cea285c1eb9ce7f174ee4d96b052b6e6181 | Shell | launchdarkly/ld-relay | /scripts/verify-release-versions.sh | UTF-8 | 3,572 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# verify-release-versions.sh (no parameters)
# This script checks all of the configuration files where a Go version and/or Alpine version is
# mentioned in the context of producing releases, and makes sure they are consistent with each other.
# Unfortunately it's not possible to have these be sourced from... | true |
36b03f2e4cb2d65fba9ae94639cc8492b757aed2 | Shell | azmathasan92/kubeadm-kubernetes-cluster | /upgrade/upgrade-worker-node.sh | UTF-8 | 1,147 | 2.875 | 3 | [] | no_license | echo "####################################################################"
echo "Release the hold on versions of kubeadm and kubelet:"
echo "####################################################################"
sudo apt-mark unhold kubeadm kubelet kubectl
echo "#######################################################... | true |
91723e9b2f9ddecc4a04953b6cef2282d975799b | Shell | bthj/volcano-webcam-to-time-lapse-video | /eldgos/resize_eldgos.sh | UTF-8 | 551 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# expects variables set: DAY, BASE_DIR, CROP
DNL_DIR="../eldgos_output/eldgos_dnl"
DATE_FULL=$(date --date=$DAY +'%A %d. %B %Y')
. eldgos_mk_base_dir_day.sh
for file in ./$DNL_DIR/$DAY/*.jpg; do
echo "cropping $file to $CROP"
FILE_NAME_BASE=$(basename $file)
HOUR=${FILE_NAME_BASE:11:2}
MINUTE=... | true |
89996d22758b18861e41c98432931ebf76b89c4f | Shell | S0U1SB4N3/RaspberryPi3HomeNetworkMonitoringTool | /removemissing.sh | UTF-8 | 107 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
for i in "${@}"
do
`sed "/\$i/d" missing.txt > missing.new`
`mv missing.new missing.txt`
done
| true |
674f73c38d8e18c154fed5178a8fddc2cd0534b4 | Shell | yiannisy/behop-misc | /utils/perf_test.sh | UTF-8 | 1,612 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
out_prefix=$1
out_tmp=".tmp_airport_output.txt"
os=`uname`
iperf -s -i 1 --reportstyle=C > ${out_prefix}_iperf.log &
echo date\|ping\|signal\|bssid\|channel\|mcs\|rate >> ${out_prefix}_wireless.log
if [ "$os" = "Darwin" ];
then
echo "Running perf test for MacOSX"
while true;
do
airport -I > $... | true |
3c089135f1c084559dd878200f332065d9c22596 | Shell | JuanDAC/test_hsh | /others_test/exit_status_at255 | UTF-8 | 440 | 3.390625 | 3 | [] | no_license | #!/bin/bash
#
# test the exit out prove with the limit number
command="exit 255"
# clean up
stop_shell
rm -f $tmp_file
# create a pseudo random file
touch $tmp_file
# run command
echo "$command" | $SHELL
echo $? > salida
# wait a little bit
$SLEEP $SLEEPSECONDS
# check the result
nmatch=`cat salida | grep 255| wc ... | true |
7242a245d8fe7291f3d07970434f2615739211cd | Shell | protoforge/docker-gcp-build-boilerplate | /build.sh | UTF-8 | 519 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
#set -x
WORKDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_ID=$(gcloud config list project | grep project | awk '{ print $3 }')
IMAGE_NAME=$(cat ${WORKDIR}/manifest.txt | awk '{print $1}')
IMAGE_TAG=$(cat ${WORKDIR}/manifest.txt | awk '{print $2}')
docker build -t us.gcr.... | true |
de066c579c72f13b419ede9592557017dfc5256d | Shell | esironal/esironal.github.io | /apps/prose/.build_scripts/deploy.sh | UTF-8 | 703 | 3.609375 | 4 | [] | no_license | #!/usr/bin/env bash
set -e # halt script on error
# If this is the deploy branch, push it up to gh-pages
echo "${DEPLOY_BRANCH}"
echo "${GH_REF}"
if [ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = ${DEPLOY_BRANCH} ]; then
echo "Get ready, we're pushing to gh-pages!"
rm -rf site
mkdir site
cp... | true |
8e90ae248c597e78f6f0eb94e892373e8f7a64ef | Shell | bkushigian/tce | /tce.sh | UTF-8 | 5,385 | 4.5 | 4 | [] | no_license | #!/usr/bin/env bash
set -uo pipefail
################################################################################
# tce.sh ROOT [SOOT]
# ROOT: Root of project
#
# This procedure does the following:
# 1. Set Up Working Directory
# (a) Create a working directory $WORK
# (b) Jar the compiled files
# (c) Crea... | true |
b6737b5991014c9c404074f5a2fa477265e03c67 | Shell | tox2ik/local-bin | /chromium-jail | UTF-8 | 919 | 3.09375 | 3 | [] | no_license | #!/bin/bash
set -e
mem=6500
swap=$mem # or more.
group=browser-jazzo2
data_dir=$HOME/.config/chromium-jazzo
if [[ $1 = plain ]]; then
chromium --user-data-dir=$data_dir
exit;
fi
sudo cgcreate -g memory:/$group #-a jaroslav:jaroslav -t jaroslav:jaroslav
sudo chown -R $USER /sys/fs/cgroup/memory/$group
if [[ $1... | true |
fb6ce9a1d82a18db398dadc9190f6f36dfd189d4 | Shell | Marwes/dotfiles | /setup.sh | UTF-8 | 3,252 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
set -eux
cp -r .config .tmux.conf ~/
git config --global user.name "Markus Westerlind"
EMAIL=$1
git config --global user.email ${EMAIL}
if [ ! -f ~/.ssh/id_rsa ]; then
(cd ~/.ssh/ && ssh-keygen -t rsa -b 4096 -C ${EMAIL})
fi
if [ "$(uname -s)" == "Darwin" ]; then
/usr/bin/ruby -e "$(cur... | true |
77e59b1228e36791028437255b5716ae3919eaf0 | Shell | interfector18/drogon | /test.sh | UTF-8 | 4,818 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "First arg:"
echo $1
os='linux'
if [ "$1" = "-w" ]; then
os='windows'
fi
src_dir=$(pwd)
echo "OS:" $os
if [ $os = "linux" ]; then
drogon_ctl_exec=$(pwd)/build/drogon_ctl/drogon_ctl
else
drogon_ctl_exec=$(pwd)/build/drogon_ctl/Debug/drogon_ctl.exe
export PATH=$PATH:$src_dir/install/... | true |
8411a17cbc01b076c48a00885f79c7ef69d0e317 | Shell | elijahlowe/paraHox_analysis | /scripts/pm_cdx.qsub | UTF-8 | 1,380 | 2.59375 | 3 | [] | no_license | #!/bin/bash -login
#PBS -l walltime=96:00:00,nodes=1:ppn=9,mem=64gb
#PBS -N pm_cdx_tophat
#PBS -A ged
#PBS -M elijahlowe@gmail.com
#PBS -m abe ... | true |
b083f515c0f088a51e8f8f3b40d4d9553b7931bb | Shell | muziejus/simple-cv | /process.sh | UTF-8 | 1,927 | 4.09375 | 4 | [] | no_license | #!/bin/sh
# Based on https://github.com/denten-bin/write-support
# This shell script processes the files in this repository to generate a few
# temporary files and a final pdf and html file for a CV.
# 1. reset tmp directory.
if [[ -d tmp ]]; then
# The directory exists, so empty its contents
rm tmp/*
else
mkdi... | true |
73b7333ed547a6654795f667afad87ec8723819c | Shell | kspviswa/puccini | /puccini-csar | UTF-8 | 2,353 | 4.28125 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash
set -e
TOOL=$(basename "$0")
TOSCA_META_FILE_VERSION=${TOSCA_META_FILE_VERSION:-1.0}
CSAR_VERSION=${CSAR_VERSION:-1.1}
CREATED_BY=${CREATED_BY:-$TOOL}
if [ "$#" -lt 2 ]; then
cat << EOT
Simple TOSCA CSAR creation tool
Usage:
$TOOL [CSAR file path] [archive directory ...]
The current directory will... | true |
2b5150f79661b7119f8ff43d921bbc75bcb7585e | Shell | bartpio/linux-scripts | /loadpfx | UTF-8 | 528 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#Accept a single command line argument: Name of pfx file WITHOUT the .pfx extension
BAS=$1
#Output three useful forms. Annoyingly, each conversion will prompt for pfx decryption key, if there is one.
#Output 1/3) PRIVATE key, plus certificate nodes
openssl pkcs12 -in $BAS.pfx -out $BAS.private.pem -nodes
... | true |
15efaf13a98384c657762a7c89c397da6f570fb3 | Shell | ipfs/kubo | /test/sharness/t0123-gateway-json-cbor.sh | UTF-8 | 20,802 | 3.28125 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/usr/bin/env bash
test_description="Test HTTP Gateway DAG-JSON (application/vnd.ipld.dag-json) and DAG-CBOR (application/vnd.ipld.dag-cbor) Support"
. lib/test-lib.sh
test_init_ipfs
test_launch_ipfs_daemon_without_network
# Import test case
# See the static fixtures in ./t0123-gateway-json-cbor/
test_expect_succe... | true |
45dbbe46a89baf5d9d917cdc4547e25cb32a58f8 | Shell | TimothyLe/server-setup | /ubuntu/wds.sh | UTF-8 | 783 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Web Services for Devices is a Microsoft API to enable programming connections to web service enabled devices
if systemctl list-units --full -all | grep -q wsdd; then
sudo systemctl restart wsdd.service
exit 1
fi
# Download the wsdd service
cd /tmp
wget https://github.com/christgau/wsdd/archive/master... | true |
361bf89f5045ba3fd218e0e576692a1e136874d5 | Shell | matthistuff/dotfiles | /osx.sh | UTF-8 | 3,237 | 2.984375 | 3 | [] | no_license | #!/usr/bin/env bash
# inspired/copied from https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# and https://github.com/herrbischoff/awesome-osx-command-line
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n tr... | true |
44210025a54fcd51a32e76f8a0f255faede26c71 | Shell | lwilletts/dots | /bin/winefps | UTF-8 | 801 | 4.09375 | 4 | [] | no_license | #!/bin/sh
#
# winefps
usage() {
base=$(basename "$0")
cat >&2 << EOF
Usage:
$base
EOF
[ $# -eq 0 ] || exit "$1"
}
main() {
if [ $# -eq 0 ] || [ "$1" = "-h" ]; then
cat<<EOF
Usage: ${0##*/} WIN_EXE PARAMS"
Run Wine application while displaying FPS onscreen.
EOF
exit
fi
if ... | true |
75934ed6b3c930bec9fdbcad11d9c53cb5c9d943 | Shell | filipecosta90/ESC_NAS | /NPB3.3-MPI/GNU ETH/create_compare.sh | UTF-8 | 668 | 3.3125 | 3 | [] | no_license | #!bin/bash
CURRENT=`pwd`
BASENAME=`basename "$CURRENT"`
mkdir __compare
rm __compare/"COMPARATION_"*
for nprocs in 8 16 32
do
for node in 431 641 652 662
do
for class in S A B C
do
for kernel in mg is cg ep
do
for file in $node"_"$kernel"_"$class"_"$nprocs*.csv
do
head -1 $file >> "COMPARATION_"$no... | true |
1e7a73f1c76a2e137fd5a54f36cc50edb122d727 | Shell | Andrew-Klaas/instruqt-tokenization-lab | /enable-the-transform-secret-engine/setup-kubernetes | UTF-8 | 4,269 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#fix path
echo "export PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /root/.bashrc
echo "alias k='kubectl'" >> ~/.bashrc
#k8s setup
echo "Setting up K8s..."
until [ -f /opt/instruqt/bootstrap/host-bootstrap-completed ]
do
sleep 1
done
echo "source /usr/share/bash-completion/bash_completion" >> ... | true |
7b5374a8e73b86136e9cdeabb16f2e6eb7eaafd4 | Shell | bschuchardt/tools | /sh/emxw | UTF-8 | 164 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if [ $mtype -eq 50 ]; then
if [ -r /usr/X11R6/lib64/libXt.so ]; then
emx64 "$@"
else
emx32 "$@"
fi
else
$localbin/emx "$@"
fi
| true |
97163a7d61d136e896b655afc3232314019d82f3 | Shell | renegpunkt/bag_data | /scripts/run-latest.sh | UTF-8 | 407 | 3.234375 | 3 | [] | no_license | #!/bin/bash
if [[ -d tmp ]] ; then
rm -r tmp
fi
out_file="bag_data.csv"
mkdir -p tmp
pushd tmp > /dev/null
wget https://www.bag.admin.ch/dam/bag/de/dokumente/mt/k-und-i/aktuelle-ausbrueche-pandemien/2019-nCoV/covid-19-lagebericht.pdf.download.pdf/COVID-19_Epidemiologische_Lage_Schweiz.pdf
for i in *.pdf ; do
pyt... | true |
27013d4e7685939c78658e7d50006228154cd6b0 | Shell | glyn/charts | /.github/workflows/stage.sh | UTF-8 | 622 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
readonly version=$(cat VERSION)
readonly git_sha=$(git rev-parse HEAD)
readonly git_timestamp=$(TZ=UTC git show --quiet --date='format-local:%Y%m%d%H%M%S' --format="%cd")
readonly slug=${version}-${git_timestamp}-${git_sha:0:16}
helm init --client-only
make c... | true |
03a3aa348d37f24e9041f9b7301eb81cfcb4dc58 | Shell | grpc/grpc-swift | /scripts/bundle-plugins-for-release.sh | UTF-8 | 1,862 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2020, gRPC Authors All rights reserved.
#
# 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 appl... | true |
382eb77830fef83d043cd21be1f62fee6666890c | Shell | CAIDA/sahara-extra | /tools/build-oozie.sh | UTF-8 | 2,381 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -eux
set -o pipefail
function usage {
echo "Usage: $(basename $0) <plugin-version>"
}
if [[ $# -ne 1 ]]; then
usage
exit 1
fi
PLUGIN_VERSION=${1}
case "${PLUGIN_VERSION}" in
"2.7.1")
OOZIE_VERSION="4.2.0"
HADOOP_VERSION="2.7.1"
BUILD_ARGS="-Puber -P hadoop-2"
... | true |
bb73d774d45f19707c3b1b7520bb598df35c0593 | Shell | parasbabbar/final | /createtravisuser.sh | UTF-8 | 836 | 3.390625 | 3 | [] | no_license | #!/bin/bash
User=$(aws iam create-user --user-name travis >> user1)
Keys=$(aws iam create-access-key --user-name travis >> key)
arn_number="arn:aws:iam::712477913881:policy/Travis-Code-Deploy"
arn_number1="arn:aws:iam::712477913881:policy/Travis-Upload-To-S3"
$(aws iam attach-user-policy --policy-arn $arn_number --use... | true |
909c6ff6a8ed807600025b5060da36f9c508872e | Shell | tjdevries/config_manager | /xdg_config/zsh/.zprofile | UTF-8 | 191 | 2.546875 | 3 | [] | no_license |
if hash nvim 2>/dev/null; then
export EDITOR=nvim
# Use nvim as manpager `:h Man`
export MANPAGER='nvim +Man!'
else
export EDITOR=vim
fi
eval "$(/opt/homebrew/bin/brew shellenv)"
| true |
4e271a3205c287a43b298fa0235e5c275e9cddd4 | Shell | q4mobile/vsm-network-test-macOS-Windows | /macos-test.sh | UTF-8 | 1,845 | 2.828125 | 3 | [] | no_license | #!/bin/bash
#This script tests the whether your MAC can connect to the Q4 VSM Platform
RED='\033[0;31m'
NC='\033[0m' # No Color
GREEN='\033[0;32m'
#Testing TCP ports
echo "######## Q4inc VSM Test for macOS ########"
echo "### All lines below should be in green ###"
nc -vz hlg.tokbox.com 443 &>/dev/null
if [ $? = 0 ]
t... | true |
6ba098e2762eee8d32a2334b040f68ff2ff0e5bd | Shell | SOUMEE2000/Heritage-CSE-Codes | /Sem4/OS_Labs/Prac1.sh | UTF-8 | 193 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
a=$1
b=$2
read a
read b
echo "$2"
echo "$1"
divide=`echo $a / $b |bc`
sum=$(($a + $b))
res=`echo $a \* $b | bc`
echo "Sum is ${sum}, multiplication is $res, division is ${divide} "
| true |
bc30b9afca4611ba094964095919f7dc1537852a | Shell | yueyang0115/fantasy-game-server-side | /scripts/test-deployment.sh | UTF-8 | 656 | 3.375 | 3 | [] | no_license | #!/bin/bash
#annoying thing about docker:
#hard to tell when service inside it is actually up and running..
#have to just try to connect.
x=""
count=0
while [ "$x" == "" ]
do
if [ "$count" == "20" ]
then
echo "Giving up after 20 attempts to connect!"
exit 1
fi
x=`netcat -N -w 1 localhos... | true |
55a565eca0f231a4040a9344c539ae30493d93b6 | Shell | samniem/Basic-BASH | /echovariables | UTF-8 | 430 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#give some input when calling: for example aa bb cc dd
#shows that function variables are not global to the script
function special {
echo $0 $1 $2 $3
local var1="in here"
echo $0 var1 $var1
}
#IFS sets default separator to -
IFS=-
echo "start 1: $*"
echo "start 2: $@"
#counts num... | true |
637c50dd2f11b2f1f2a2d4d740a1109db1666bb8 | Shell | WooNoah/LanguagePackageTool | /createSameNameMarkdownFile.sh | UTF-8 | 177 | 2.9375 | 3 | [] | no_license | #!/bin/bash
# my first shell script
A=$(ls *.txt)
# STR='hello wrold'
#echo $A
for name in $A
do
filename=${name%.txt}
#echo $filename
`touch $filename.md`
done
| true |
a49ac23eefc98e8c51bc6f76f38652559a76fd1f | Shell | georghe-crihan/kafka-docker | /k/kafka-watchdog.sh | UTF-8 | 3,135 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
function getBrokerId()
{
local RC=1
local ZK_ROOT_PATH="${1}"
local CONTAINER_ID="${2}"
local PREV_BROKER_ID="${3}"
local BROKER_ID=0
local DATE=$( /bin/date )
local stamp
stamp=$( /usr/bin/stat -c "%Y" "${KAFKA_HOME}/logs/server.log" )
if [ "${stamp}" -ne "${STAMP}" ]; then
# echo "Update"
... | true |
f1939a2478be2a5c8a67bea3479db8a63d21ede7 | Shell | noteMASTER11/azuretemplates | /tools/reass.sh | UTF-8 | 1,489 | 3.890625 | 4 | [] | no_license | #!/bin/bash
rg=$1
vmname=$2
nicname=$3
[[ -z "${rg// }" ]] && echo "Place group name as a first argument" && exit 1
if ! type jq ; then echo "Jq utility is needed for script run" && exit 1 ; fi
nics=`az vm list --resource-group $rg --query "[?provisioningState=='Succeeded'] | [?name=='$vmname'].{netprofile: networkP... | true |
2b5bd74b7a463acf02e3d68a013a0ceca748c374 | Shell | michelprojets/Ensimag1 | /Unix/Avance/tp_pas_a_pas/script_3.sh | UTF-8 | 186 | 3.265625 | 3 | [] | no_license | #!/bin/bash
if [ -d ALL ]
then
rm -R ALL
fi
mkdir ALL
for d in dir*
do
cd "$d"
for fic in *
do
mv "$fic" "../ALL/$d-$fic"
done
cd ..
rmdir "$d"
done
| true |
c32e004c66e320dac538258b2ef4477e5129a241 | Shell | con-f-use/yadmdotfiles | /.config/yadmdotfiles/bin/myterms.sh | UTF-8 | 775 | 3.0625 | 3 | [] | no_license | #! /bin/sh
# Open two maximzed side-by-side gome terminals
# Delay in ms
# Keypad number: key_value to use
# 0: 90 1: 87 2: 88
# 3: 89 4: 83 5: 84
# 6: 85 7: 79 8: 80
# 9: 81
for req in xdotool gnome-terminal; do
command -v "$req" &>/dev/null || sudo apt install -y "$req" || exit ... | true |
4ec5d5a33706afa63011f31f9525ed19c03cca5e | Shell | nanyang2016/hids | /my_hids/brute_force/bin/test.sh | UTF-8 | 97 | 2.609375 | 3 | [] | no_license | #!/bin/bash
arr=("aa")
arr[${#arr[@]}]=bbb
echo ${#arr[@]}
[[ ${arr[@]} =~ bbb ]] && echo ok
| true |
c145f5005ba71ef348cd435f7be88e4548cce140 | Shell | NAKKA-K/SubMemo | /subMemo.sh | SHIFT_JIS | 1,191 | 4.15625 | 4 | [] | no_license | #!/bin/bash
ERR_CODE=1
if [ $# -eq 0 ]; then
#t@Cw肳Ȃꍇ
echo '̐sł'
exit $ERR_CODE
fi
#w肳ꂽt@Cݒ
if [ $# -eq 1 ]; then
FILENAME="$!"
elif [ $# -eq 3 ]; then #IvVĂꍇ
FILENAME="$3"
else
echo '̐sł'
exit $SUCCESS_CODE
fi
#fBNg̑IA쐬
MKDIR="../memo"
if [ "$1" == "-d" ]; then
MKDIR="${MKDIR}/$2"
fi
[ ! -d MK... | true |
79611f2c7693a64f96d2f54073e8721d9d18dd52 | Shell | analyst1001/DataDump | /data/temp.sh | UTF-8 | 449 | 2.90625 | 3 | [] | no_license | echo '<Document>
<Style id="bluepoly">
<PolyStyle>
<color>ffff0000</color>
</PolyStyle>
</Style>' > tempfile
for file in `ls -1 states`
do
state=`echo $file |cut -d'.' -f1`
echo '<Placemark>
<name>'$state'</name>
<styleUrl>#bluepoly<... | true |
89e49e95d15372feea410b4aa35300726baee0b5 | Shell | ethercat-fpga/etherlabmaster | /scripts/etherlab_setup_clean.bash | UTF-8 | 5,571 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#
# Copyright (c) 2018 Jeong Han Lee
# Copyright (c) 2018 - 2019 European Spallation Source ERIC
#
# The program is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of the
... | true |
7c86f01bc59e9cceff7e30d4fcb005bac963a3fb | Shell | perhamm/otus-linux | /Ex08/files/watchlog.sh | UTF-8 | 3,410 | 3.953125 | 4 | [] | no_license | #!/bin/bash
WORD=""
LOGFILE=""
TAILLINE=0 #how match line to tail
no_new_content=0 #no new line in log if no_new_content=1
lockfile=watchlog_lockfile
lastlinefile=watchlog_lastline
txtoutput=""
lastdate=""
## functions
script_usage(){
echo -e "\e[31mUsage\e[0m: \e[42m`basename $0` WORD LOGFILE\e[0m"
echo "Exampl... | true |
eee1d5b5e199a65fc2d4b8061e69e69055da0ead | Shell | taemon1337/regexer | /bin/seed_database.sh | UTF-8 | 329 | 2.9375 | 3 | [] | no_license | #!/bin/bash
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
app=$dir/../app
url=${1:-http://127.0.0.1:8080/api/patterns}
resource=$(basename $url)
jsonfile=${2:-$app/src/assets/$resource.json}
echo "Seeding database $resource from $jsonfile..."
curl -k -H "Content-Type: application/json" -X POST -d "@$jsonfi... | true |
dec591b9fcdee2817e97bf542834c82cd1061ee9 | Shell | ufal/clarin-dspace | /utilities/project_helpers/scripts/stop_stack_example.old | UTF-8 | 828 | 3.65625 | 4 | [
"CC-BY-ND-4.0",
"BSD-3-Clause",
"Artistic-2.0",
"CC-BY-SA-4.0",
"CC-BY-NC-SA-3.0",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"CC-BY-NC-3.0",
"CC-BY-3.0",
"CC-BY-NC-ND-4.0",
"CC-BY-4.0",
"BSD-2-Clause-Views",
"CC-BY-SA-3.0",
"Artistic-1.0-Perl",
"CC-BY-NC-SA-4.0",
"MIT",
... | permissive | #!/bin/bash
#Put stop commands and cleanup here
### Postgres ###
echo "Stopping postgres"
/etc/init.d/postgresql stop
### Tomcat ###
echo "Stopping tomcat"
/etc/init.d/tomcat7 stop
### Handle server ###
HANDLE_SERVER=/etc/init.d/handle-server
if [[ -r $HANDLE_SERVER ]]; then
echo "Stopping handle server";
$HAND... | true |
3c71b101d2c156d966d2676083f2aec8e1466a54 | Shell | mtai/dr-git | /contrib/change-working-branch | UTF-8 | 1,013 | 4 | 4 | [] | no_license | #!/bin/bash
source ${DR_GIT_HOME}/dr-git/drgit-script-util
cd $(git_top_level)/..
above_base_dir=$(pwd)
above_base_dir_files=$(ls)
chosen_target=${1}
if [[ ! -L "$above_base_dir/current" ]]; then
error_msg "Expected DEV to be a symlink"
exit 1
fi
if [[ "$#" -gt 1 ]]; then
usage_and_die "[<branch name>]"
... | true |
119a883540de4bf46fe9d3a5f2aaa69a61d71473 | Shell | cinemapub/bf_reaction_buttons | /bflog.sh | UTF-8 | 915 | 4.34375 | 4 | [] | no_license | #/bin/bash
VERSION="0.1"
PROGNAME=$(basename $0)
TODAY=$(date +%F)
LOGDIR="log"
PREFIX="bflog"
if [ "$1" == "" ] ; then
echo "### $PROGNAME - v$VERSION" >&2
echo " Usage:" >&2
echo " $PROGNAME add [category] [text]: add text to log file" >&2
echo " $PROGNAME send person@example.com: send results of last 7... | true |
949f99d3094bea5368b4daa0649f60592e86e2cf | Shell | ansark88/dotfiles | /.zshrc | EUC-JP | 1,757 | 2.59375 | 3 | [] | no_license | #chshޥ /bin/zshѹ
#䴰ͭ,䴰˿Ĥ
autoload -U compinit && compinit
zstyle ':completion:*' list-colors ''
#cd -[tab]ǰưڥ졼γĥ(ɽäݤ)
setopt auto_pushd
setopt extended_glob
setopt nolistbeep
#ꥹȤѥȤˡޥɥߥŦ
setopt list_packed
setopt correct
#historyC-p C-nǸ
bindkey '^p' history-beginning-search-backward
bindkey '^n' history-be... | true |
590a02f5c853e69b7e844d5fed407041462bd214 | Shell | Jonathanvanhaaften/wordpress_testing | /_init/_textComplete.sh | UTF-8 | 553 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
_textComplete() {
echo
echo
echo
echo "-------------------"
printf "\e[1mCongratulations! The setup is complete.\e[0m\n"
echo "-------------------"
printf "Your orb currently lives at: \e[96m${CCI_NAMESPACE}\e[39m/\e[96m${CCI_ORBNAME}\e[39m@\e[92mdev:alpha\e[39m\n"
echo "You ... | true |
a68830865e2a2016f8ae8174043217136ba5da53 | Shell | aur-archive/birdfont-git | /PKGBUILD | UTF-8 | 1,024 | 2.984375 | 3 | [] | no_license | # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=birdfont-git
pkgver=r1714.bdab4e4
pkgrel=1
pkgdesc='Font editor that lets you create vector graphics and export TTF, EOT & SVG fonts - from git'
url='http://birdfont.org/'
arch=('i686' 'x86_64')
license=('GPL3')
depends=('webkitgtk' 'libgee')
makedepend... | true |
7bf88579d278c2123dcc8cb93a6e6a3fba5856df | Shell | truemail-rb/truemail-rack | /.circleci/scripts/changeloglint.sh | UTF-8 | 795 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
changelog=$(if [ "$1" = "" ]; then echo "CHANGELOG.md"; else echo "$1"; fi)
get_current_application_version() {
ruby -r rubygems -e "require_relative 'app/truemail_server/version'; puts TruemailServer::VERSION"
}
latest_changelog_tag() {
grep -Po "(?<=\#\# \[)[0-9]+\.[0-9]+\.[0-9]+?(?=\])" "$cha... | true |
87f5b192a8c8d1ab6e2c8ed5cd146098a2e5a895 | Shell | daraghlowe/wpelk | /projects/openweathermap/bash/2_api_example.sh | UTF-8 | 509 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Description: Move your api call into a function
#Pull our api key from
API_KEY=$(cat secrets)
#Store the ID of what we are querying
ID="2962941"
function make_api_call(){
#Make our call and store the result in a variable (-s means silent to avoid unneeded transfer stats)
RESULT=$(curl -s "http://a... | true |
7a2a491d4216183bc984cc60e77cd61ff5413ef1 | Shell | yashkhasbage25/FELIX-interpreter | /runtests.sh | UTF-8 | 3,063 | 4.03125 | 4 | [] | no_license | #!/bin/sh
cabal build
# no point if build fails
if [[ $? -ne 0 ]]; then
echo "BUILD FAILED. Testing aborted"
exit 1
fi
# all test files
declare -a FileNameArray=("env" "miscellaneous" "gcd" "ifelse" "loop" "loop" "pattern" "power" "scope" "whileloop")
TEST="test"
# check if test directory exists
if [ -d "./$T... | true |
1d84d67580233a2a8851e2517ba827dd7f9b7498 | Shell | jsarba/sources | /operac/operac/bin/svvg.sh | WINDOWS-1250 | 2,110 | 3.59375 | 4 | [] | no_license | #!/usr/bin/ksh
###################################################################
# Script: svvg.sh #
# Autor: Ariel Lombardero #
# Funcion: SAVEVG del equipo #
# Fecha: 27-11-20023 ... | true |
24f02732cdfa06347fbfd980492e531c5f656322 | Shell | oliverisaac/numeronym-generator | /main.sh | UTF-8 | 656 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
# source code generated using shource: https://github.com/oliverisaac/shource
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 ft=sh
set -e # Exit on any error. Use `COMMAND || true` to nullify
set -E # Functions inherit error trap
set -u # Error on unset variables. Use ${var:-alter... | true |
152b832bc378816c104c88f99ae900db39348ea1 | Shell | salsita/pwa-cordova-meetup-app | /scripts/export-ios-certs.sh | UTF-8 | 731 | 2.65625 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
uuid=`grep UUID -A1 -a certs/salsita.mobileprovision | grep -io "[-A-F0-9]\{36\}"`
cp certs/salsita.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/$uuid.mobileprovision
security create-keychain -p 'circleci' circleci.... | true |
7f18b23787b2ee69e73c9b1f63bd3c5c216614a3 | Shell | stefwalter/bump-memory | /video-low | UTF-8 | 626 | 3.25 | 3 | [] | no_license | #!/bin/sh -ex
while [ $# -gt 0 ]; do
input="$1"
base="${1%.*}"
suffix="${1##*.}"
output="${base}-low.${suffix}"
args=""
lines=$(ffprobe -v error -select_streams v:0 -show_entries stream=height -of csv=s=x:p=0 "$input")
if [ $lines -gt 1080 ]; then
args="$args -vf scale=1920:1080"
fi
frames=$(ffprobe -v 0 ... | true |
4ad9a9ed13a79d251578f7a6aa4504d1f69f36b1 | Shell | dbalan/Scripts | /natwp | UTF-8 | 763 | 3.65625 | 4 | [] | no_license | #!/bin/bash
CACHEDIR=~/.wall-of-day
LINK=http://photography.nationalgeographic.com/photography/photo-of-the-day/
# Get the link.
# From Jaseem
IMAGE=$(curl -s ${LINK} | grep 'Download Wallpaper' | grep -Po 'http.*.jpg')
IMAGENAME=$(echo $IMAGE| awk -F "/" '{print $NF}')
if [ -z "${IMAGENAME}" ]
then
echo "Non sha... | true |
f98e09180a1a2d47ed8a54b05655dac7fb1df772 | Shell | 7cai/GPRS_C_SDK | /build.sh | UTF-8 | 7,876 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Author: vencol,neucrack
#
####################################
# help info
function help()
{
echo "Usage:"
echo "use ./build.bat fota old.lod new.lod fota.pack"
echo "use './build.sh PROJECTNAME' to build the project in ./PROJECTNAME "
echo " eg: ./build.sh ... | true |
673effc7faae583ef5c6c39e0cff3de1995758f8 | Shell | a6232283/linux_shell_test | /shell/day02/while_demo.sh | UTF-8 | 232 | 3.484375 | 3 | [] | no_license | #!/bin/bash
num=$[RANDOM%10+1]
while :
do
read -p "input num:" guess
if [ $guess -eq $num ];then
echo "yes $num"
exit
elif [ $guess -lt $num ];then
echo "$guess<$num so smile"
else
echo "$guess>$num so big"
fi
done
| true |
509c9ca7e25b208bb82fef3691d3f8853d112924 | Shell | monacoinproject/lightning | /daemon/test/scripts/setup.sh | UTF-8 | 994 | 3.40625 | 3 | [
"MIT"
] | permissive | #! /bin/sh -e
. `dirname $0`/vars.sh
VERSION=$(`dirname $0`/../../lightning-cli --version | head -n1)
[ $VERSION = `git describe --always --dirty` ] || (echo Wrong version $VERSION >&2; exit 1)
# Start clean
rm -rf $DATADIR
mkdir $DATADIR
# Find a free port (racy, but hey)
PORT=`findport 18332 $VARIANT`
RPCPORT=`fi... | true |
01f7b8b7e0785bca10a127f05b660839179702c4 | Shell | rubiruchi/VirtualTimeForMininet | /mininet/mininet/raw_way/start_client.sh | UTF-8 | 758 | 2.734375 | 3 | [
"LicenseRef-scancode-x11-stanford"
] | permissive | #!/bin/bash
LOG=iperf.out
exec > >(tee $LOG)
BRIDGE=ovs-test
ip netns exec ns2 iperf -c 10.1.1.1 -t 10 -f m -r
# delete tc on tap1 and tap2
ip netns exec ns1 tc qdisc del dev tap1 root
ip netns exec ns2 tc qdisc del dev tap2 root
# bring all ports down
ip netns exec ns1 ip link set dev tap1 down
ip netns exec ns2... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.