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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2463f839fbb743140a5f7f8bc64d7f04b152b3e4 | Shell | SAP/fosstars-rating-core | /.github/actions/project-security-report-action/cleanup_for_config_if_necessary.sh | UTF-8 | 370 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ "$CLEANUP" == "Yes" ]; then
echo "Remove the old report and data"
echo "Remove .fosstars"
rm -rf .fosstars > /dev/null 2>&1
echo "Remove Markdown files"
for file in $(find . -name "*.md")
do
rm $file > /dev/null 2>&1
done
echo "Remove JSON files"
for file in $(find . -name "*.j... | true |
3d8f513fd8b9b2284f9b0bdf2747c86e15d60688 | Shell | mpratt/dotfiles | /bash/bashrc | UTF-8 | 4,382 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# Michael Pratt
# $HOME/.bashrc
# Configuration vars
unset GREP_OPTIONS
export TERM=xterm-256color
export HISTSIZE=40000
export HISTFILESIZE=40000
export HISTTIMEFORMAT="%Y/%m/%d %H:%M "
export HISTIGNORE="&:ls:su:cat:man:cd:cp:mv:exit:clear:history"
export HISTCONTROL=ignoreboth # erasedups & ignorespace
... | true |
9165cc4382e04e696e99ce2cbffeec8e786b2e2f | Shell | roidayan/ovs-tests | /test-ovs-ct-tcp-label-reconfig.sh | UTF-8 | 1,768 | 2.890625 | 3 | [] | no_license | #!/bin/bash
#
# Test OVS CT TCP with label and reconfig flows during traffic
#
# [95966.187839] BUG: KASAN: use-after-free in rht_deferred_worker+0x14db/0x1600
my_dir="$(dirname "$0")"
. $my_dir/common.sh
require_module act_ct
echo 1 > /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal
IP1="7.7.7.1"
IP2="7.7.7.2"
... | true |
f54ae7d864ea9939683b860f48d18c003acd2d61 | Shell | qh997/a2pf_update | /tag-publish.sh | UTF-8 | 1,165 | 3.4375 | 3 | [] | no_license | #!/bin/bash -ex
svn_ser=`cat settings.conf | grep 'svn-cer' | awk -F= '{print $2}' | sed -e 's/^ *//' -e 's/ *$//'`
tag_url=`cat settings.conf | grep 'tag-url' | awk -F= '{print $2}' | sed -e 's/^ *//' -e 's/ *$//'`
tag=$(svn ls $svn_ser "${tag_url}" | sort -r | sed -n '1p' | sed 's/\///')
tag=${1-$tag}
tag_root=`c... | true |
dd24d4851fcc8e6716e511140fca31d93e73a525 | Shell | dmkskd/microservices-demo | /run_demo.sh | UTF-8 | 1,631 | 3.90625 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
function ensure_tools_are_installed
{
echo "*** Ensure tools are installed"
command -v kubectl || { echo >&2 "'kubectl' not installed"; exit 1; }
command -v gcloud || { echo >&2 "'gcloud' not installed"; exit 1; }
echo "All tools are installed !"
}
function create_k8_cluster
{
ec... | true |
35b95f8dea6561fe10826a6ca3d9ddf99dc0f740 | Shell | strategist922/Confalyzer | /dynamic_analysis/stop.sh | UTF-8 | 193 | 2.609375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
echo "--stopping--" >> /tmp/confs.out
for proc in `ps aux | grep hadoop | grep -v 'grep' | grep -v 'stop.sh' | awk '{} {print $2}'` ; do
echo "killing $proc"
kill $proc
done
| true |
312a9e51b5bacfa4f7303013398e29bd8fc3a5f6 | Shell | RezaJF/cardiometabolic_prs_plasma_proteome | /src/01_job_scripts/02_grs_preprocess.sh | UTF-8 | 746 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
grs_name=$1
grs_folder=data/GRS_resources/$grs_name
out_folder=analyses/GRS_profiles/$grs_name
# Create a strand-flipped version of the grs
zcat $grs_folder/grs_weights.txt |
sed 's/A/V/g' | sed 's/T/X/g' | sed 's/C/Y/g' | sed 's/G/Z/g' |
sed 's/V/T/g' | sed 's/X/A/g' | sed 's/Y/G/g' | sed 's/Z/C/g' \... | true |
f15f61f0ec593bbefc2fe986f143782069b4e41d | Shell | Pwn3Xpert/comcomGeLicense | /comcomLicense | UTF-8 | 20,747 | 3.328125 | 3 | [] | no_license | #!/bin/bash
mwv="\e[92m"
wtl="\e[91m"
blank="\e[39m"
echo -e $mwv "แ แแแแ แกแแแแงแแแ แฃแแ แแแชแแแแแแก แแแแแชแแแก แแแแแแแแ"
echo -e $mwv ""
echo -e $mwv "แกแฌแแ แ แแแกแฃแฎแแแแก แคแแ แแแแ แแแกแแแแจแแแ แแแฌแแ แ (true)"
echo -en $mwv "แแแ แแคแ (${wtl}*true/false${mwv})>"
read q
clear
if [[ $q == "false" ]]; then
mwv="\e[92m"
wtl=""
mwv="\e[39m"... | true |
a6ab4fe838f2e66b67880faf6cb406fcabccb805 | Shell | ewancoder/dotfiles | /.wmii-hg/wmiirc | UTF-8 | 17,527 | 3.296875 | 3 | [] | no_license | #!/bin/sh -f
# Configure wmii
wmiiscript=wmiirc # For wmii.sh
. wmii.sh
# Settings
python ~/.wmii-hg/settings.py > /tmp/settings.wmii
var(){
awk -F '|' "/$1/ {print \$2}" /tmp/settings.wmii
}
# Configuration Variables
MODKEY=`var modkey`
UP=`var up`
DOWN=`var down`
LEFT=`var left`
RIGHT=`var right`
# Bars
noticet... | true |
cc75486b96266bba3d9b629aa80466895b69a5ab | Shell | incrowdio/incrowd | /incrowd/initial_db_load.sh | UTF-8 | 375 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Check if DB has data (any user) in it.
# exit status 1 if users exist, 0 if not
echo 'from website.models import UserProfile; import sys; sys.exit(UserProfile.objects.count() > 0);' | python manage.py shell
if [ "$?" = "0" ]; then
python manage.py loaddata getting_started_data.json
else
echo "Da... | true |
43b7f021f3da3ae99ad7f84f62ca7e5bf53b0303 | Shell | jetmind/dot | /zsh/zshrc | UTF-8 | 2,529 | 2.96875 | 3 | [] | no_license | # User configuration sourced by interactive shells
# Source zim
if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then
source ${ZDOTDIR:-${HOME}}/.zim/init.zsh
fi
set +o noclobber
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export HOMEBREW_NO_AUTO_UPDATE=1
# aliases
alias o="open"
alias e="emacsclient --no-wa... | true |
89fd60c631c16abf3ab3c2615216535afba247fa | Shell | artemis-platform/artemis_dashboard | /bin/local/test | UTF-8 | 300 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -a
source .env
set +a
if [ ! -z "$1" ]; then
APP="--app $1"
fi
if [ ! -z "$2" ]; then
TEST_PATH="$2"
fi
MIX_ENV=test
mix ecto.create --quiet
mix ecto.migrate
mix cmd ${APP} mix test --color ${TEST_PATH} && exit 0
mix cmd ${APP} mix test --color --failed ${TEST_PATH}
| true |
2f4e06e01a15f2a25212bf815dc115ece1692301 | Shell | bahisec/recon_profile | /.bash_profile | UTF-8 | 2,176 | 2.953125 | 3 | [
"CC0-1.0"
] | permissive | potential(){
cat aquatone_urls.txt | grep $1 | tee -a potential.txt
}
sprofile(){
source ~/.profile
}
profile(){
nano ~/.profile
}
#----- AWS -------
s3ls(){
aws s3 ls s3://$1
}
s3cp(){
aws s3 cp $2 s3://$1
}
#---- Content discovery ----
thewadl(){ #this grabs endpoints from a application.wadl and puts them in y... | true |
039a394ec4953425310bf771740e1abf2a9373ac | Shell | PlumedBot/plumed2-fix-headers | /plumedbot | UTF-8 | 1,432 | 3.3125 | 3 | [] | no_license | #! /bin/bash
set -e
set -x
## change user
git config user.email "giovanni.bussi+plumedbot@gmail.com"
git config user.name "plumedbot"
# clone plumed repo
git clone https://github.com/plumed/plumed2.git
# go to plumed repo
cd plumed2
# add plumedbot/plumed2 fork
set +x # this is not to show the GIT_TOKEN on Travis ... | true |
a58ab7efee88fc188cc0b6a2bef46c2e138a9bdd | Shell | epigen-UCSD/SNAP-CHIP_epicypher | /test/run3.sh | UTF-8 | 635 | 2.875 | 3 | [] | no_license |
SETDIR="/home/zhc268/data/outputs/setQCs/"
export PATH=$PATH:/home/zhc268/data/software/SNAP-CHIP_epicypher
set=$1
samplenames=(`cat $SETDIR${set}.txt`)
for s in ${samplenames[@]}
do echo $s;
#rm ~/data/outputs/libQCs/${s}/${s}_R[1-2].fastq.gz.snap.log
bash epicypher.sh -i ~/data/seqdata/${s}_R1.fastq.gz -m 2 -... | true |
a2a71cd1aa7bdc4d2120634dc2425ad6f1cac773 | Shell | icanka/nexus | /nexus-uploadv2.sh | UTF-8 | 1,331 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#cd ./packages/Packages || exit
curlCommand="curl -v -u admin:armerkom --upload-file "
path_to_files=$1
file_extension=$2
repository=$3
function print_if_success {
if [[ $? -eq 0 ]];then
printf "%25s\n" "SUCCESS"
return 0
else
return 3
fi
}
function print_help_message() {
echo "Please provide... | true |
32cffc47199537d45fab1f09483b5602902bac58 | Shell | PropertyBrands/btt-drupalcamp-denver-2015-scripts | /administering/find-drupal-installs.sh | UTF-8 | 262 | 2.828125 | 3 | [] | no_license | #!/bin/bash
echo "Enter web root with out trailing slash:"
read WEBROOT
find ${WEBROOT} -maxdepth 5 -type f -wholename /var/www/\*\.com/\*/sites/default/settings.php | egrep -vi 'old|\.bak|_|drush' | grep default | sed -e 's/\/sites\/default\/settings\.php//g';
| true |
4d6e1f820db7843edc83200475db2608f4a2d226 | Shell | ZLLentz/zlentz-config | /extensions | UTF-8 | 245 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bash
THIS_DIR="$(dirname ${BASH_SOURCE})"
extensions="aliases envs env-conda env-pydev utils prompt"
for ext in $extensions
do
full_ext="${THIS_DIR}/ext/${ext}"
if [ -f "${full_ext}" ]; then
source "${full_ext}"
fi
done
| true |
b6c0552ae53e8c13671ccbbca20e2c607cbfe419 | Shell | nicolargo/debianpostinstall | /dropbox | UTF-8 | 828 | 3.546875 | 4 | [] | no_license | #!/bin/sh
### BEGIN INIT INFO
# Provides: dropboxd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Dropbox server
### END INIT INFO
set -e
DROPBOX_LOGIN=nicolargo
SYSTEM_LOGIN=nicolargo
test -x /home/$USERNAME/.dropbox-dist/dr... | true |
b900ba53ba58072c67e26f5cc2e4c4d5ed05c0fa | Shell | IllinoisAUV/builder | /install-deb.sh | UTF-8 | 675 | 3.546875 | 4 | [] | no_license | #!/bin/sh
set -e
SCRIPT_DIR=$(dirname $0)
DIR=$(mktemp -d)
# echo $DIR
SYSROOT=${SYSROOT:=/opt/install/aarch64-linux-gnu/sysroot}
# dpkg --root=${SYSROOT} -i --ignore-depends= $1
dpkg-deb -R $1 ${DIR}
rsync -ah --exclude 'DEBIAN' ${DIR}/ ${SYSROOT}/
# if [ -d "${DIR}/contents/usr" ]; then
# echo "${DIR}/content... | true |
7accdc9a7e5a7212d68a50e5b0e92400966e585a | Shell | BarcaLS/backup_Synology_NAS | /backup_home_dir.sh | UTF-8 | 895 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# backup_home_dir.sh
#
# Script backups $HOME dir to zip file.
############
# Settings #
############
BACKUP_DIR=/volume1/homes/user/backup_home/ # where backups will be stored
DAYS_KEEP=3 # script will remove backups older than $DAYS_KEEP days
DIR_TO_BACKUP=/volume1/homes/ # what to backup
FILENAME=home #... | true |
8a1997d0c6529a9b54b6a9218b8a1119f4a7e6aa | Shell | KarstenSchnitter/rasdaman_docker | /examples/MOD09Q1_EVI/createArray.sh | UTF-8 | 1,080 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# Pars:
# 1) ARRAY_NAME
# 2) TILING WIDTH
# 3) TILING HEIGHT
# 4) TILING TIME STEPS
# Example createArray MODIS 512 512 1
# MOD09Q1 array type definitions
rasdl --delmsettype "MOD09Q1_stack_set"
rasdl --delmsettype "MOD09Q1_image_set"
rasdl --delmddtype "MOD09Q1_stack"
rasdl --delmddtype "MOD09Q1_image"
... | true |
2b6089843cb2893552e88590d5a5cc3dc2c151bf | Shell | frostidaho/python-isna | /examples/new-exampl-user.sh | UTF-8 | 634 | 3.484375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
ex_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
templ_dir="$ex_dir/templates"
echo '@Listing available templates'
isna ls temp
echo '@Listing variables in template create-user.yml'
isna ls vars create-user.yml
echo '@Creating user woofdawg on localhost'
# There are three ways of passing templa... | true |
140441a745672b71948442e72fb2fa8025a32885 | Shell | kongyew/gpdb | /concourse/scripts/compile_gpdb_remote.bash | UTF-8 | 3,075 | 4.125 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"PostgreSQL",
"LicenseRef-scancode-other-copyleft",
"metamail",
"BSD-3-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-other-permissive",
"ISC",
"Python-2.0",
"bzip2-1.0.6",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scanco... | permissive | #! /bin/bash
set -eo pipefail
ROOT_DIR=`pwd`
# Get ssh private key from REMOTE_KEY, which is assumed to
# be encode in base64. We can't pass the key content directly
# since newline doesn't work well for env variable.
function setup_ssh_keys() {
# Setup ssh keys
echo -n $REMOTE_KEY | base64 -d > ~/remote.key
... | true |
193209dacf76de12e4007323db0ac643cbf50c39 | Shell | hectorhhuang/python_shell_analysis | /combine.sh | UTF-8 | 268 | 2.6875 | 3 | [] | no_license | #Add header to chromosome gene data
#Author: hector
#last modified: fri Dec 9, 2016
#for questions contact <hector.huang@ucsf.edu>
echo "starting combining script"
for file in human_chr*.txt
do
# cool trick from michelle
cat header.txt $file > processed/$file
done
echo "Done!"
| true |
e4507c4d718d39081fdf27fdde6c9700bf5410cc | Shell | Masriyan/dotfiles | /.config/i3/lock-screen.sh | UTF-8 | 639 | 3.375 | 3 | [] | no_license | #!/bin/bash
steps=50
min_brightness=2
lock_img="/tmp/i3lock.png"
src_img="/home/rebecca/Pictures/wallpapers/0089.jpg"
set_brightness() {
xbacklight -set $1
}
get_brightness() {
result=$(xbacklight -get | awk '{ if($0 < -1) printf("0"); else printf("%.f\n", $0+0.5)}')
echo $result
}
dim_brightness() {
... | true |
e5323bb92d752b003c8e2ae8ce4b2ec083571a21 | Shell | travistabbal/jpx-vibrant-kernel | /initramfs/sbin/post-init.sh | UTF-8 | 7,596 | 2.59375 | 3 | [] | no_license | #!/sbin/busybox sh
# filesystem patcher
# Copyright SztupY, Licence: GPLv3
export PATH=/sbin:/system/bin:/system/xbin
mv /system/user.log /system/user.log.old
exec >>/system/user.log
exec 2>&1
# init read-only'd the rootfs
/sbin/busybox mount -o remount,rw /
# run fs tweaks
if /sbin/busybox [ "`grep IOSCHED /system/... | true |
b43b903759d52012b6b0ed3f9f6b6303d12d827f | Shell | InformaticsMatters/trigger-awx-action | /entrypoint.sh | UTF-8 | 1,089 | 4.15625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh -l
# Given the following arguments: -
#
# - Template Name
# - Template Host
# - Template User
# - Template User Password
# - Template Variable
# - Template Variable value
#
# this script uses the tower-cli to run a template
# on an AWX server.
TEMPLATE=$1
TEMPLATE_HOST=$2
TEMPLATE_USER=$3
TEMPLATE_USER_PASS... | true |
c5fa1cb74815018252f2887cfa572f085ed74e2c | Shell | petronny/aur3-mirror | /lightum-xbacklight-git/PKGBUILD | UTF-8 | 1,006 | 3.046875 | 3 | [] | no_license | # Maintainer: Sergiy Kukunin <sergey.kukunin SPAN gmail.com>
pkgname=lightum-xbacklight-git
pkgver=20121031
pkgrel=2
pkgdesc="MacBook automatic keyboard brightness daemon with xbacklight backend (for not Gnome and KDE users)"
arch=('x86_64' 'i686')
url="https://github.com/Kukunin/lightum"
license=(GPL)
groups=()
depe... | true |
d13fd1ebf2159962c25b2ff734f1dbef1aa3df90 | Shell | devops4mecode/do4m_IaC | /Azure/AzureCLI/002_Azure Resources/App Service/AZ_AppService_Creation.sh | UTF-8 | 1,224 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
#=====================================================
#Purpose : Automation Script for AppService Creation
#Creator : Najib Radzuan
#Date Created : 19/11/2020
#=====================================================
#Resource Group
azRG='sea-do4m-client-rsg'
#Azure AppService Plan & AppService
azApp... | true |
04e6f80d1be3fa1b2d52c4dffd38261023b25636 | Shell | NVieville/secure-boot-sign-modules | /sbsm_remove_signed_modules | UTF-8 | 3,288 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# sbsm_remove_signed_modules - Helper script to remove signed kernel
# modules by the sbsm_sign_modules script for secure-boot-sign-modules.
#
# Copyright (c) 2018-2019 Nicolas Viรฉville <nicolas.vieville@uphf.fr>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this sof... | true |
259e8a52263550e81b3989b8d6459098b0811f39 | Shell | coolsnowwolf/luci | /applications/luci-app-adbyby-plus/root/etc/init.d/adbyby | UTF-8 | 6,928 | 3.390625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh /etc/rc.common
START=96
STOP=10
EXTRA_COMMANDS="add_rule del_rule reload_rule"
PROG_PATH=/usr/share/adbyby
DATA_PATH=$PROG_PATH/data
WAN_FILE=/var/etc/dnsmasq-adbyby.d/03-adbyby-ipset.conf
CRON_FILE=/etc/crontabs/root
CONFIG=adbyby
ipt_n="iptables -t nat"
uci_get_by_name() {
local ret=$(uci get $CONFIG.$... | true |
41587af4bcf5ddcc31e08199cc618114309aa1df | Shell | AnisB/VictorWillDie | /distrib/distrib.sh | UTF-8 | 626 | 2.5625 | 3 | [] | no_license | #!/bin/bash
rm vwd.love
rm -rf output/VWD.app
rm VWD_OSX.zip
cd ../Code
zip -r vwd.love .
mv vwd.love ../distrib/
cd ../distrib
# MAC App
rm -rf output/VWD.app
mkdir output/VWD.app
cp -R mac/love.app/ output/VWD.app
cp vwd.love output/VWD.app/Contents/Resources/
cd output
zip -r VWD_OSX.zip VWD.app/
cd ..
#dele... | true |
97443c46f77ec71ef34aa0daf74c475dc17e4d14 | Shell | justfdot/dotfiles-legacy | /bin/screensaver | UTF-8 | 665 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env bash
eyeskeeper_pid=$(pgrep -f eyeskeeper)
if xrandr --query | grep -q "VGA1 connected" ; then
kill -STOP "$eyeskeeper_pid"
i3lock --image "$HOME/img/lock-text.png" --nofork &
wait $! && kill -CONT "$eyeskeeper_pid"
# echo $! > /tmp/i3lock.pid
# wait $! && rm /tmp/i3lock.pid
else
... | true |
4fd25fcfaee10a6d9e7bca0dc1e9f39d8bbedf4c | Shell | castano/jiyu | /docs/setup_unix_fast.sh | UTF-8 | 1,436 | 3.71875 | 4 | [
"MIT"
] | permissive |
set -ex
LLVM_VERSION=9.0.0
# From this stackoverflow answer from paxdiablo https://stackoverflow.com/a/3466183
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:$... | true |
f86072087ded18ed20b00c2ad5a8d10619b57ed7 | Shell | mdonath/hit-icons | /hiticonen/svg/copytojoomla.sh | UTF-8 | 209 | 2.9375 | 3 | [] | no_license | #!/bin/bash
DESTDIR=~/git/hit-joomla/com_kampinfo/media/images/
for iconsize in ldpi mdpi xxxhdpi
do
echo "Copying ${iconsize}"
rm -rf $DESTDIR/${iconsize}
cp -r ${iconsize} $DESTDIR/${iconsize}
done
| true |
ea26d6ad900a8c9e5205b1f7311651c32dab4245 | Shell | luyang14/node_mqtt_server | /scripts/run-tests.sh | UTF-8 | 789 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
WAIT_SLEEP=5
MOCHA_TIMEOUT=5000
MOCHA_SLOW=100
set -e
echo "declaring environment vars to run tests in the proper way"
export NODE_ENV="test"
export PORT=3000
export MQTT_PORT=1883
echo "running server in background..."
npm start 1> /dev/null &
export APP_PID=$!
echo "waiting ${WAIT_SLEEP} seco... | true |
08a059ed86bae75069be293828ed15db84deb192 | Shell | Leningradez/landing | /run-me-after-gulp-build-to-deploy | UTF-8 | 914 | 3.34375 | 3 | [] | no_license | #! /bin/bash
# <https://gist.github.com/domenic/ec8b0fc8ab45f39403dd>.
set -e # exit with nonzero exit code if anything fails
# Go to the `build` directory and create a *new* Git repo.
cd ./build/
git init
# Inside this git repo we'll pretend to be a new user.
git config user.name "Travis CI"
git config user.email ... | true |
30ecf20f0eedb2a6a5dca8def696994d62b2babb | Shell | hgssnk/wp_dump | /bkup.sh | UTF-8 | 835 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# ๅ
ฅๅ็ฎๆ
hostname="ใใผใฟใใผในใในใๅ"
user="ใฆใผใถๅ"
dbname="ใใผใฟใใผในๅ"
password="ใใผใฟใใผในใฎใในใฏใผใ"
bkupdir="ใใใฏใขใใๅ
ใฎใใซใใน(ๆซๅฐพใซในใฉใใทใฅไธ่ฆ)"
wpdir="wp-contentใฎใใซใใน(ๆซๅฐพใซในใฉใใทใฅไธ่ฆ)"
shdir="ใทใงใซในใฏใชใใใๆ ผ็ดใใฆใใใใฃใฌใฏใใชใฎใใซใใน(ๆซๅฐพใซในใฉใใทใฅไธ่ฆ)"
daletenum="ใใใฏใขใใใใกใคใซใฎไธ้ๆฐ"
# ๅ
ฅๅไธ่ฆ
date=`date +%Y%m%d%H%M%S`
dumpdir="${bkupdir}/$date"
dbquery="/usr/bin/m... | true |
9d66f0528df58f17ca9fe5d8827b4bfcb377b788 | Shell | testingwalker/AJSC | /ajsc5/ajsc-surfsup-archetype/src/main/resources/archetype-resources/src/main/scripts/scamper.sh | UTF-8 | 3,287 | 3.109375 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/bash
echo Scamper execution for `date` > output.txt
#variable definitions
appName=demoAJSC0115
componentName=JaxrsEchoService
release=4.7.0-RC2.2
scamperServer=http://zldv3675.vci.att.com:8585
#scamperServer=http://zltv3689.vci.att.com:8585
userCredentials=jh0003:123123a
role=demoAjsc0115Admin
env=dev
LONGITUDE=... | true |
830da96b40247b85b36220ce91e72ed25c4c6ae1 | Shell | peterweissig/bash_repo | /bashrc.sh | UTF-8 | 2,416 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#***************************[check if already sourced]************************
# 2019 12 01
if [ "$SOURCED_BASH_REPO" != "" ]; then
return
exit
fi
if [ "$SOURCED_BASH_LAST" == "" ]; then
export SOURCED_BASH_LAST=1
else
export SOURCED_BASH_LAST="$(expr "$SOURCED_BASH_LAST" + 1)"
fi
expor... | true |
fa2ac080eaac664d1c0909d4864eca62f1cfe9df | Shell | digitaladapt/shell-scripts | /storage.sh | UTF-8 | 351 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
device="$1"
usage=`df --output=pcent $device | tail -n 1 | grep -oE '[0-9]+'`
open=`echo "100 - $usage" | bc`
avail=`df --output=avail -h $device | tail -n 1`
echo "Available: $avail ($open%) $device"
if (( "$#" > "1" )); then
number=`df --output=avail $device | tail -n 1`
exit `echo "$number <=... | true |
3d2dd5520a8f086b92c70918edfb0544b71d1445 | Shell | pigetnet/2b3l | /scripts/samba/check | UTF-8 | 661 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
/show/description "Check if a user is connected to samba"
/show/listecho "Yellow led connected" $WARN
lastStateUser=9
lastStateNameOnly=9
while [ 1 ]
do
#/do/samba/userConnected
stateUser=$(/do/samba/userConnected)
# echo $stateUser
if [ $lastStateUser -ne $stateUser ];then
lastStateUser=$stateUser
... | true |
0a62a0493db0af31c1158c7676a0eb4629d1ee39 | Shell | blackadress/configs | /scripts/bin/start_ssh_agent | UTF-8 | 84 | 3.046875 | 3 | [] | no_license | #!/bin/zsh
pid=$(pidof ssh-agent)
if [ -z "$pid" ]
then
eval `ssh-agent -s`
fi
| true |
f2a9983f7b9d2430fef8992ae97c9accfd7d0128 | Shell | lixiaochun/fabric-controller | /script/program/fc | UTF-8 | 7,364 | 3.53125 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
#
# fc OCF RA.
#
#######################################################################
# OCF parameters:
# OCF_RESKEY_host_0 - host_0
# OCF_RESKEY_host_1 - host_1
# OCF_RESKEY_system_xml - destination of the system.xml
# OCF_RESKEY_fc_ctl - destination of the fc_ctl.sh
# OCF_RESKEY_fc_username ... | true |
ba38f5f4cff1132373198796f1ba0e01ec0ba096 | Shell | guoxiaodongmm/shell | /install-gitlab.sh | UTF-8 | 1,285 | 2.859375 | 3 | [] | no_license | #linux gitlab
#่ฟ่กไพๅญ๏ผmkdir -p /shell && cd /shell && rm -rf install-gitlab.sh && wget --no-cache https://raw.githubusercontent.com/share-group/shell/master/install-gitlab.sh && sh install-gitlab.sh
#ๅฎไนๆฌ็จๅบ็ๅฝๅ็ฎๅฝ
base_path=$(pwd)
ntpdate ntp.api.bz
#ๅปบ็ซไธดๆถๅฎ่ฃ
็ฎๅฝ
echo 'preparing working path...'
install_path='/install'
rm -rf ... | true |
48fc3c8e1b9ab34138365f7f9b0fe952465e822f | Shell | dante73/iSBackup | /backup_my_bin.sh | UTF-8 | 281 | 2.546875 | 3 | [] | no_license | # To disable
#return;
data_type="Pasta de Projetos"
# When user call individual script
if [ -z "$local_bin_path" ];then
local_bin_path="$PWD"
fi
local_base_path="$HOME/bin"
smb_base="/Volumes/Data"
smb_base_path="$smb_base"
exclude_list=(
)
cd "$local_bin_path"
. mbs.sh
| true |
d9b526c51c31c3853e1506debe7735604ef1ea25 | Shell | LidarBu/RestSSHExecutor | /scripts/StatusAll.sh | UTF-8 | 465 | 3.6875 | 4 | [] | no_license | #!/bin/bash
GREEN=$(tput setaf 2)
RED=$(tput setaf 3)
reset=$(tput sgr0)
INSTALLED_BPMS=$(ls -d $SOA_BASE/bpm[1-9]*)
FLAG=0
for i in $(echo $INSTALLED_BPMS); do
a=$(basename $i)
ps -ef | grep java | grep random | grep $a 2>&1 >/dev/null
if [ $? -ne 0 ]; then
echo "${RED}$a IS NOT RUNNING${reset}"
FLAG=1
... | true |
1b69554daa733e31078ace3eab05cc5d6edcee16 | Shell | wyy0117/Docker | /seata/nacos/seata.sh | UTF-8 | 520 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
base_path=/Users/wyy/home/docker/data/seata
container_name=seata
port=8091
seata_ip=192.168.1.10
nacos_addr=192.168.10.11
nacos_port=8848
./nacos-config.sh -h $nacos_addr -p $nacos_port
mkdir -p $base_path/conf
cp registry.conf $base_path/conf/.
docker run --name seata-server -itd --restart=alw... | true |
9a987b71efdae5c041b82dc1c177e0a5e45cf871 | Shell | Offirmo/simpli | /modules/offirmo/oracle-jdk/oracle-jdk.apt.prepare.sh | UTF-8 | 353 | 2.921875 | 3 | [
"Unlicense"
] | permissive | ## Shell provision script for :
## Oracle Java Development Kit
## root-only script
[[ `id -u` -ne 0 ]] && return 0
## avoid repeating this install uselessly
STAMP_FILE=$ROOT_PROV_AREA_PATH/ORACLE_JDK_APT_SOURCE_INSTALLED.stamp
[[ -f "$STAMP_FILE" ]] && return 0
add-apt-repository "ppa:webupd8team/java"
## mark done... | true |
8cd045265a5aac31ca1f5430855a6f596c9b53f5 | Shell | gurka/DllInjectionSkeleton | /cmake.sh | UTF-8 | 722 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
case $1 in
'all')
mkdir -p build_release && cd build_release && cmake -G "MinGW Makefiles" .. -DCMAKE_BUILD_TYPE=release -DCMAKE_MAKE_PROGRAM=mingw32-make.exe
cd ..
mkdir -p build_debug && cd build_debug && cmake -G "MinGW Makefiles" .. -DCMAKE_BUILD_TYPE=debug -DCMAKE_MAKE_PROGRAM=mingw32-mak... | true |
9eee124307044b89131861c4e478ce9439219a7d | Shell | mk-fg/codetag | /default.do | UTF-8 | 1,592 | 3.59375 | 4 | [
"WTFPL"
] | permissive | # -*- mode: sh -*-
PROJECT=codetag
DEPS=$(find -type f -name '*.go')
redo-ifchange $DEPS
mkdir -p bin
# Local pre/post-processing, if used with git
grep -q filter=golang .gitattributes 2>/dev/null\
&& gpp=$(git config --get filter.golang.clean | cut -d' ' -f1)\
|| gpp=
err=0
[[ -z "$gpp" ]] || ls -1 $DEPS | xar... | true |
a5ea73a8a6ad11736ad6e698d6980c6f357c8cc3 | Shell | yunju/DMAnaRun2_AddModules | /prod/yuchang_lcgCopyFile.sh | UTF-8 | 985 | 3.484375 | 3 | [] | no_license | #!/bin/bash
scriptname=`basename $0`
EXPECTED_ARGS=3
userid="syu"
if [ $# -eq $(( EXPECTED_ARGS - 1 )) ]
then
echo "user ID is set to "$userid
else if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: ./$scriptname remoteDirectory string userid"
echo "Example: ./$scriptname TTJets_MassiveBinDECAY_TuneZ2star_8T... | true |
76ed8dbd576d449770009cb5a1e54812cb32a666 | Shell | BinaryScary/sslWho | /sslWhoRange.sh | UTF-8 | 307 | 3.546875 | 4 | [] | no_license | #!/bin/bash
while getopts ":f:p:" flag
do
case "${flag}" in
f) rangeFile=${OPTARG};;
p) port=${OPTARG};;
esac
done
if [ -z "${rangeFile}" ] || [ -z "${port}" ]
then
echo "Usage: $0 -f [rangeFile] -p [port]"
exit
fi
while read p; do
sslWho -p "${port}" -r "$p"
done < "${rangeFile}"
| true |
e367ed7c44548e7f8052dece6a6010f3b76530a2 | Shell | NeowayLabs/klb | /tests/azure/testdata/create_vm_snapshots.sh | UTF-8 | 827 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env nash
import klb/azure/login
import klb/azure/vm
import klb/azure/snapshot
fn addsuffix(name) {
# Providing true uniqueness with the limits on the names is pretty hard :-)
s <= head -n1 /dev/urandom | md5sum | tr -dc A-Za-z0-9 | cut -b 1-10
return $name+"-"+$s
}
resgroup = $ARGS[1]
vmname = $ARGS... | true |
17b3c35f297f44f71e1ff49d658bd22595653d35 | Shell | SimonKlyne/tsg-infrastructure | /packer/scripts/vault/consul.sh | UTF-8 | 350 | 2.8125 | 3 | [] | no_license | #!/bin/bash
set -e
export PATH='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin'
source /var/tmp/helpers/default.sh
readonly CONSUL_FILES='/var/tmp/vault/consul/server'
cp -f "${CONSUL_FILES}/config.json" \
/etc/consul/config.json
chown root: /etc/consul/config.json
chmod 644 /etc/consul/config... | true |
c43c23b7b4670d36540fc187a5e2d3f44048254b | Shell | ilventu/aur-mirror | /uhub/PKGBUILD | UTF-8 | 801 | 2.640625 | 3 | [] | no_license | # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Lex Black <autumn-wind at web dot de>
pkgname=uhub
pkgver=0.4.0
pkgrel=1
pkgdesc="A hub for the ADC network."
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.uhub.org/"
depends=('openssl')
source=("http://www.extatic.org/downloads/uhub/$pkgname... | true |
2eef4b04f9ee519cf547dbaaaab4f665360c1bb0 | Shell | liuqb566/scripts | /WES/bwa_run.sh | UTF-8 | 262 | 2.953125 | 3 | [] | no_license |
#็จๅบ
bwa=bwa
#็บฟ็จ
t=1
#็ดขๅผ
FM_index="/home/liuqb/data/genome/Cotton/HAU1.0/HAU_genome.fa"
# $bwa index genome.fa
while read id
do
RG=${id#*.}
SM=${id%.*}
$bwa mem -t $t -M -R "@RG\tID:${RG}" $FM_index ${id}_1.fastq ${id}_2.fastq >${id}.sam
done < $1
| true |
d0752790920aef06c8fc116eb92d14591bf17a76 | Shell | DEEEEEEZNUTS/Postgre | /Backup.sh | UTF-8 | 247 | 2.859375 | 3 | [] | no_license | DBNAME=appli_web
DATE=`date +"%Y-%m-%d"`
DB_BACKUP="backups/mysql_backup/`date +%Y-%m-%d`"
SQLFILE=$DBNAME-${DATE}.sql
mkdir -p $DB_BACKUP
mysqldump --opt --user=root --password=toor $DBNAME > $SQLFILE
gzip $SQLFILE
mv $SQLFILE* $DB_BACKUP/
| true |
c6d65906caa596ffa9776d36ac59298bc4f371d8 | Shell | miranj/backup | /config-helper-test.sh | UTF-8 | 2,392 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env roundup
describe "config-helper: Helper functions to read config file."
SCRIPT_BASE=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
. $SCRIPT_BASE/config-helper.sh
BACKUP_CONFIG_FILE=$SCRIPT_BASE/tests/config/config-helper-test.json
it_reads_config_file() {
test "`get_config`" = "\
/root string... | true |
417a588a1d8c93d1cca5effb62927e211bc37b7d | Shell | ericuss/netcore-boilerplate | /_run-docs.sh | UTF-8 | 304 | 2.796875 | 3 | [
"MIT"
] | permissive |
echo Executing: "$0"
concreteServices=$1
echo parameters... concreteServices: $concreteServices
docker-compose -f docker-compose-docs.yml -f docker-compose-docs.override.yml build $concreteServices && docker-compose -f docker-compose-docs.yml -f docker-compose-docs.override.yml up $concreteServices | true |
bce90072bde5ee9b996e538a9cec46d360b384e2 | Shell | petronny/aur3-mirror | /sbaz/PKGBUILD | UTF-8 | 1,104 | 2.5625 | 3 | [] | no_license | # $Id: PKGBUILD 78820 2012-10-25 06:47:28Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=sbaz
pkgver=2.1
pkgrel=2
pkgdesc="Bazaar software package manager for Scala"
arch=('any')
url="http://www.lexspoon.org/sbaz/"
license=('GPL')
depends=('java-runtime=6' 'scala' 'sh')
makedepends=('apac... | true |
c5ab106556ec61a624b60a8fddce547226a0f244 | Shell | sftcd/surveys | /install-deps.sh | UTF-8 | 4,273 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (C) 2018 Stephen Farrell, stephen.farrell@cs.tcd.ie
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# ... | true |
a53ee2ab4d6f2a69c42844785a6af50813e27fdc | Shell | dragon-riverlei/DIL | /sh/prepare_regular_report_csv_values.sh | UTF-8 | 3,185 | 3.9375 | 4 | [] | no_license | #!/usr/local/bin/bash
# For initial regular report in csv format, transpose the row and column.
# For delta regular report in json format, convert from json format to csv format.
usage(){
echo "usage:"
echo "prepare_regular_report_csv_values.sh <i|d> <bs|cfs|ps> <bank|general|securities|insurance> <year>"
... | true |
32ccc160af8598a04365400bdaaa02f906d4f465 | Shell | Leukas/LRUMT | /scripts/tokenize_truecase.sh | UTF-8 | 1,703 | 3.53125 | 4 | [] | no_license | # tokenizes and truecases a file
filepath=$1
lang=$2
N_THREADS=12
MOSES=../tools/moses
TOKENIZER=$MOSES/scripts/tokenizer/tokenizer.perl
NORM_PUNC=$MOSES/scripts/tokenizer/normalize-punctuation.perl
TRUECASE_TRAINER=$MOSES/scripts/recaser/train-truecaser.perl
TRUECASER=$MOSES/scripts/recaser/truecase.perl
tokenize ... | true |
d4837d99fc00cf79148b67c2717a72c19a13531b | Shell | frank0631/wyvern-resume | /keycloak_setup.sh | UTF-8 | 2,557 | 2.65625 | 3 | [] | no_license | #!/bin/bash
echo logging in...
login_data=$(curl -s \
-d "client_id=admin-cli" \
-d "username=admin" \
-d "password=Pa55w0rd" \
-d "grant_type=password" \
"http://keycloak:8080/auth/realms/master/protocol/openid-connect/token");
access_token=$(echo $login_data | jq --raw-output '.access_token')
access_token_... | true |
db6c8bf51fb8b5784c81525523a1a096bb2c58da | Shell | carollqp1/mid1 | /metadata.txt | UTF-8 | 1,065 | 4.25 | 4 | [] | no_license | #!/bin/bash
# assign variables
ACTION=${1}
version="1.0.1"
function delete_file() {
rm *-12345*
}
function show_version() {
echo "$version"
}
function create_file() {
touch "${1}-12345"
}
function display_help() {
cat << EOF
Usage: ${0} {-c|--create|-h|--help} <filename>
OPTIONS:
-c | --create Create a new... | true |
8e256b8c72a9f000a23b9bd620f99bc81b78ae27 | Shell | PrassanaK/Unix-and-C-Programming | /p7/allperms.sh | UTF-8 | 244 | 3.125 | 3 | [] | no_license | #!/bin/bash
for file in $(find /home/19097457/Documents/UCP/p7/*); do
if [-w $file];then
echo file is writable
else if [-r $file]
echo file is readable
else if [-x $file]
echo file is executable
fi
done
| true |
355daf455f50de77dfc3c6332e66cf7524ebba09 | Shell | Antons-Skafferi-MIUN/App | /.git-hooks/pre-push | UTF-8 | 1,257 | 3.796875 | 4 | [] | no_license | #!/bin/sh
protected_branches=( production master )
for i in "${protected_branches[@]}"
do
protected_branch=$i
policy='[Policy] Never push, force push or delete the '$protected_branch' branch! (Prevented with pre-push hook.)'
hint='[Hint] Commit and push your changes in a new feature branch! (create a pull... | true |
e07c1fa6e05e71e7d0d857ea1efee13a04b705cd | Shell | jutkko/homedir | /bin/hop-to-it | UTF-8 | 1,647 | 3.90625 | 4 | [] | no_license | #!/bin/bash
set -ex
main() {
ensure_brew_exists
update_brew_things
update_tmux_plugins
submodule_setup
ensure_git_config_set
macos_setup
echo "Finished hopping!"
}
ensure_brew_exists() {
echo "Ensuring brew exists..."
if [ ! -x /usr/local/bin/brew ] ; then
/usr/bin/ruby -e "$(curl -fsSL https:/... | true |
9361997e636c00ae6672239abdb46063192d77aa | Shell | Os1r1s-78/Blockchain_med | /solution/solution/exampleMaintenance/createChainOnAllNodes.sh | UTF-8 | 2,083 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Run this script from a personal computer, not on one of your vms.
# Change directory to where the script is stored, not where it is run from
scriptPath=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd $scriptPath
# We use a config file that has connection information for each node
# It should have the fo... | true |
9589f2021be8efa9e128fc557c66891f5af2b31c | Shell | edouardklein/pmjq | /test_cases/func_command_gen.sh | UTF-8 | 420 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -u
set -x
set -o pipefail
PLAYGROUND=/tmp
files=(
test_cases/bug_10.py
test_cases/func_error.py
test_cases/func_log.py
)
for file in "${files[@]}"
do
echo Hello $file
# Is the generated command in the corresponding test file
gen_command=$(pmjq_cmd --exec ${file... | true |
87920a3b953e680e5a2075c9726a1b9a9043983f | Shell | ewindisch/serverless-iopipe-layers | /latest-layers.sh | UTF-8 | 2,019 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
REGIONS=(
ap-northeast-1
ap-northeast-2
ap-south-1
ap-southeast-1
ap-southeast-2
ca-central-1
eu-central-1
eu-west-1
eu-west-2
eu-west-3
#sa-east-1
us-east-1
us-east-2
us-west-1
us-west-2
)
echo "const layers = {"
echo " \"nodejs10.x\": {"
for region in "${REGIONS[@]}"; ... | true |
ff2c66e0c7dc49f27ce50b3b06fe220f7460604e | Shell | thanhvo31/simonpi | /simonpiemu/runemu | UTF-8 | 2,043 | 3.578125 | 4 | [] | no_license | #!/bin/sh
. $OPT/simonpiemu/network
LOCKFILE=/tmp/simonpi.lock
ANOTHERINSTANCE=
# QEMU Variables
export QEMU_AUDIO_DRV=none
finalizeIt() {
umountParts
umountImg
checkNetwork
unlock
}
initChecks() {
checkLock
if [ $ANOTHERINSTANCE = "0" ]; then
checkQemu
checkNetwork
lock
else
echo -e "[$R-$RST] Alre... | true |
954388ee7d5fa73f38e0a6ae7068ce6ac07cf874 | Shell | zhongchanghui/cluster_md | /case1_grow_bitmap-switch.sh | UTF-8 | 1,891 | 2.625 | 3 | [] | no_license | #!/bin/bash
# Include Beaker environment
. /usr/bin/rhts-environment.sh
. /usr/lib/beakerlib/beakerlib.sh
. libcluster.sh
function runtest(){
get_disk
#############################################################
ssh node1 mdadm -CR $md -l1 -b clustered -n2 $dev0 $dev2 --assume-clean
ssh node2 mdadm -A $md $dev0 $de... | true |
d6f56e6be5791489b988a0ef32250943966e3f5c | Shell | uiuc-cs225/auto-updater | /repo/add | UTF-8 | 366 | 3.40625 | 3 | [] | no_license | #!/bin/bash
FILES=`ls ~/cs225-new`
cd ~/cs225/i686/
for i in ${FILES}; do
NAME=`echo $i | sed -rn 's/(.*)-[0-9.A-Za-z_]*-[0-9]*-[^-]*/\1/p'`
echo $NAME
STR="s/^${NAME}-[0-9A-Za-z._]*-[0-9]*-(i686|x86_64|any).pkg.tar.(gz|xz|bz2)/\0/p"
`ls . | sed -rn ${STR} | xargs rm -f`
mv ~/cs225-new/$i .
repo-add cs225.db.tar.... | true |
86a64ce4a100652c10b691b04636e0ef3c62b44f | Shell | Empia/incubator-aurora | /examples/vagrant/provision-dev-environment.sh | UTF-8 | 1,932 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | export TAG=0.15.0-rc4
apt-get update
apt-get -y install \
git automake libtool g++ java7-runtime-headless curl \
openjdk-7-jdk python-dev libsasl2-dev libcurl4-openssl-dev \
make
echo Cloning aurora repo
if [ ! -d aurora ]; then
git clone /vagrant aurora
fi
pushd aurora
mkdir -p third_party
git pul... | true |
f5f5a65dc9f7099154e3d114c996d21c5f7d5519 | Shell | tekgator/docker-mcmyadmin | /app/app.sh | UTF-8 | 4,782 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
MC_SERVICE='./MCMA2_Linux_x86_64'
MC_SESSION='minecraft'
MC_LOG_PATH="./MCMA_Logs/*.log"
function install_server {
if [ ! -f McMyAdmin.conf ]; then
echo -e "\nFirst start of the docker container start installation of McMyAdmin."
echo "Please be patient, this will only take a fe... | true |
aa023ab6a953d61802c326f9f66357d0c8dc511b | Shell | d-w-moore/irods_pattern_data_to_compute | /compute/slurmcoll.bash | UTF-8 | 755 | 3.625 | 4 | [] | no_license | #
# Configuration:
#
SLURM_COLLECTION_INIT='~/.slurm'
#
# Accessor/creator function:
#
slurm_collection ()
{
local INIT=${SLURM_COLLECTION_INIT}
local IPWD_OUT=$( # -- don't icd in current shell
if [ -n "$INIT" ]; then
if [[ $INIT = /?* ]]; then # -- absolute path
icd "$IN... | true |
0905d708cb2c02ba27dd36f5b2db392ccc863f82 | Shell | zdy023/z-nixtools | /target-pool/target | UTF-8 | 309 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# target-pool
# Author: David Chang
# Last revision: Mar 6th, 2019
case $1 in
update)
autoupdate-target-pool;;
edit)
edit-target-pool;;
init)
init-target-pool;;
select)
select-target;;
plan)
edit-plan;;
ddl)
edit-ddl;;
list-ddls)
list-ddls;;
*)
echo "Invalid command!";;
esac
| true |
5c94457ab1bb31269837582f1f65451205e4efb4 | Shell | JoelCardoso/rshCustomScripts | /catshell/wpe/pod-space.sh | UTF-8 | 783 | 3.671875 | 4 | [] | no_license | #!/bin/bash
## Check pods for available disk space before performing migrations, etc.
## Usage:
## pod-space 12345 {40000..40010} 43210
function pod-space() {
ssh_user=$(grep -v "#" ~/redshell/sshuser)
for i in $* ; do
echo -e "${i} $(ssh -l ${ssh_user} -o StrictHostKeyChecking=no -o ConnectTimeout=1 pod-... | true |
432931cde2a02b518e25d294529a3600a81e98dc | Shell | iTKunst/dts | /base/cmd/glbl/linux/gSTOP.sh | UTF-8 | 453 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# shellcheck disable=SC2086
source settings.sh
source bLOG.sh
log_enter gSTOP
log_warn "!!!!!!Warning!!!!!"
log_warn "Stops and removes all containers on your machine!"
while true; do
read -p "Do you wish to continue?" yn
case $yn in
[Yy]* ) docker ps -a -q | xargs docker stop; docker ps ... | true |
f6a369cbc5d0699d3f1cce8f807727b7e7def9de | Shell | prehensile/WeAreTheAlgorithms | /update-lambda.sh | UTF-8 | 658 | 3.75 | 4 | [] | no_license | #!/bin/bash
##
# update-lambda.sh
#
# Updates an AWS Lambda function with the contents of the ./lambda folder
# Requires that the AWS CLI Tools [https://aws.amazon.com/cli/] are available.
#
# Author: Henry Cooke <henry.cooke@bbc.co.uk>
# Version: 0.33
#
ZIPFILE="payload.zip"
SKILL_DIR="src"
# exit on errors
set -e... | true |
7ecced170f297b37c4aff9ead36beaf0d05ed94b | Shell | glabra/dotfiles | /desktop/xprofile | UTF-8 | 1,897 | 2.65625 | 3 | [
"Unlicense",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
export LANG='ja_JP.UTF-8'
case "$PATH" in
*$HOME/.local/bin*) ;;
*) export PATH="${HOME}/.local/bin:${PATH}";;
esac
# keyboard settings
xset r rate 200 45 &
setxkbmap -option ctrl:nocaps -option altwin:prtsc_rwin &
# ime
command -v fcitx-autostart >/dev/null && {
export XMODIFIERS=@im=fcitx
export QT_I... | true |
38eecacc161658b6985291c1892f3de0771aa23d | Shell | palli/dockerbuild | /bin/update_debian_repository | UTF-8 | 1,155 | 4.15625 | 4 | [] | no_license | #!/bin/sh
REMOTE_REPOSITORY="$1"
DOCKER_IMAGE=buildserver:ubuntu-12.04
PACKAGE_DIR=/var/cache/packages/
TEMPDIR=`mktemp -d`
set -e
trap "rm -rf $TEMPDIR" EXIT
#trap "echo please remember to clean up $TEMPDIR" EXIT
main() {
if [ -z $REMOTE_REPOSITORY ]; then
fail "Usage: $0 <remote repository>"
fi
get_remote_re... | true |
a763d31251a35ebe910a9836102c29bdc6707880 | Shell | atomgiant/dotfiles | /zsh/rake_completion.zsh | UTF-8 | 556 | 3.6875 | 4 | [] | no_license | # Cache rake completion
_rake_does_task_list_need_generating () {
if [ ! -f tmp/cached_rake_tasks ]; then return 0;
else
accurate=$(stat -f%m tmp/cached_rake_tasks)
changed=$(stat -f%m Rakefile)
return $(expr $accurate '>=' $changed)
fi
}
_rake () {
if [ -f Rakefile ]; then
if _rake_does_task_... | true |
47729bbb5cfe687980b3f8407c3c3bb896b72ae6 | Shell | viniciusjssouza/microchaos | /deployer/bin/deploy | UTF-8 | 972 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
function check_dir() {
# check if we are on the microchaos root dir
result=$(ls -l | grep -e "deployer$")
if [ -z "$result" ]
then
echo "Error: You should execute the deploy inside the microchaos root directory"
exit 1
fi
}
function install_python_deps() {
cd ./deployer || retu... | true |
b0e6836fe390cb79dc75f84b31704e4c17b4b601 | Shell | ChrisRx/dotfiles | /config/.zshrc | UTF-8 | 1,868 | 2.578125 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
archlinux
aws
colored-man-pages
git
history-substring-search
kubectl
vi-mode
zsh-autosuggestions
zsh-navigation-tools
zsh-syntax-highlighting
)
autoload -U compinit
zstyle ':completion:*' menu ... | true |
0a5a210c30604525935d80fff8be38c533195f32 | Shell | SliTaz-official/tazbug | /web/plugins/skel/skel.cgi | UTF-8 | 437 | 2.90625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
#
# TinyCM/TazBug Plugin - Skeleton
#
if [ "$(GET skel)" ]; then
d="Skel"
header
html_header
user_box
cat << EOT
<h2>Plugin Skel</h2>
<div id="tools">
<a href="$script?dashboard">Dashboard</a>
</div>
EOT
echo "<p>$(date)</p>"
# Say we use files in $DATA/skel, sort them by date and simply cat
# the... | true |
7324696bcdbf37a76d51b6dee66a2d25e7ea4681 | Shell | syjust/bashLib | /sbin/hubic-backup | UTF-8 | 5,409 | 3.890625 | 4 | [
"WTFPL"
] | permissive | #!/bin/bash
# make hubic backup and send email notifications with error or success
# {{{ hubic-backup usage from frachop github user
# download hubic-backup from github
# https://github.com/frachop/hubic-backup
#Usage: hubic-backup [OPTIONS]
#
#general:
# -h [ --help ] this message
# -v [ --vers... | true |
99cbd59dbefbfd7d8f4c17f5d7b76584109bb6f2 | Shell | crossroadsfpga/enso | /docs/build_docs.sh | UTF-8 | 280 | 2.875 | 3 | [
"BSD-3-Clause-Clear"
] | permissive | #!/usr/bin/env bash
# print commands
set -o xtrace
# exit when error occurs
# set -e
ORIGINAL_PWD=$(pwd)
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR="$SCRIPT_DIR/.."
cd $REPO_DIR
# ./docs/build_hw_docs.sh
mkdocs build -f mkdocs.yml
| true |
5b6265cca48fd0498b8a9a1033b3c18b6d06a374 | Shell | markbucklin/dotfiles | /shell/ls.color.rc.sh | UTF-8 | 1,456 | 3.375 | 3 | [] | no_license | # enable color support of ls and also add handy aliases
if ls --color -d . >/dev/null 2>&1; then
# is GNU ls
if [ -x /usr/bin/dircolors ]; then
eval "$(dircolors ~/.dircolors 2>/dev/null)" || eval "$(dircolors -b | tee ~/.dircolors)"
fi
# remember COLUMNS for subprocesses
export COLUMNS
# Alias for colored... | true |
cea34a786841fd62b20c61ed4e3be7285ba3e915 | Shell | gahag/reminder-bot | /reminder-bot.rc | UTF-8 | 309 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# PROVIDE: reminder-bot
# REQUIRE: NETWORKING FILESYSTEMS SERVERS DAEMON resolv syslogd
# KEYWORD:
. /etc/rc.subr
name='reminder-bot'
start_cmd='cd /root/reminder-bot && daemon -o reminder-bot.log ./reminder-bot'
stop_cmd='pkill -SIGTERM reminder-bot'
load_rc_config $name
run_rc_command "$1"
| true |
a2c157b0e7534c4f8da4966624bd55a0261019db | Shell | joeytwiddle/jsh | /code/shellscript/stream/tolinesh.sh | UTF-8 | 91 | 3.046875 | 3 | [] | no_license | while read LINE
do
if [ "$LINE" = "$*" ]
then break
else printf "%s\n" "$LINE"
fi
done
| true |
54a91c9993184887b450b84add5b793935c9f9e0 | Shell | kristapsk/bitcoin-scripts | /estimatesmartfee.sh | UTF-8 | 446 | 3.109375 | 3 | [] | no_license | #!/usr/bin/env bash
# shellcheck disable=SC1091
# shellcheck source=./inc.common.sh
. "$(dirname "$(readlink -m "$0")")/inc.common.sh"
if [ "$1" == "" ]; then
echo "Usage: $(basename "$0") [options] blocks"
exit 0
fi
feerate="$(call_bitcoin_cli estimatesmartfee "$1" | jq_btc_float ".feerate")"
if [ "$feerate... | true |
514c028773394a4a2347aedda4d7c79266732b1d | Shell | xcat2/confluent | /confluent_osdeploy/rhvh4/profiles/default/scripts/prechroot.sh | UTF-8 | 729 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# This script runs after install is complete, but inside the installer
# environment. This is useful for carrying work done in pre/during the
# installer into the installed environment.
# It is almost certainly more useful to use post.sh or firstboot.sh
# for customization, which will run in a more normal ... | true |
33d20fd2cd002db7809705b584ff2962c561019a | Shell | romankhar/transit | /run-taxi.sh | UTF-8 | 4,166 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Copyright 2016 IBM Corp. 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | true |
16c53c0d382ce867e0fa16b7478af3f08b7c995c | Shell | Boseka/dotfiles | /bin/mac_window_resize.sh | UTF-8 | 871 | 3.765625 | 4 | [] | no_license | #!/bin/bash
if [[ $(uname) != "Darwin" ]]; then
echo "This script only works on macOS"
exit 0
fi
if [[ $# -ne 3 ]]; then
echo "Usage: $0 <app> <width> <height>"
echo "Example: $0 Chrome 1200 800"
exit 0
fi
APP="$1"
WIDTH="$2"
HEIGHT="$3"
TMP_FILE="$PWD/.resize.AppleScript"
cat << END >> "$TMP_FILE"
set t... | true |
f83a68339fa33c860e36d35cd1d99719b394822b | Shell | ana-karine/trybe-exercises | /modulo_1/bloco_2/dia_2/exerciciob1.sh | UTF-8 | 283 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Shell Script que imprime as palavras
# "shell", "script", "usando", "estrutura", "repetiรงรฃo", "for", "terminal"
# na tela, uma palavra por linha.
WORDS="shell script usando estrutura repetiรงรฃo for terminal"
for WORD in $WORDS
do
echo $WORD
done | true |
71f2781f916817dea9a3563143ea13da2d893b06 | Shell | phluid61/scripts | /grp | UTF-8 | 538 | 3.84375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash --
#
# Usage: grp <pattern> [paths]
#
# A lazy `grep` script that ignores .svn, .git and _baks directories,
# and presupposes several grep parameters.
#
# Copyright (c) 2013, Matthew Kerwin
# All rights reserved.
#
# See attached README.md file for full licensing information.
#
PATTERN=$1
shift
paths="$@"
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.