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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0a603e84551e5b2da4c88c478a498ed674f3d516 | Shell | justone/docker-tmux-static | /build.sh | UTF-8 | 772 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -x
VERSION=2.6
# based on: https://gist.github.com/pistol/5069697
# ncurses
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz
tar xvzf ncurses-6.1.tar.gz
cd ncurses-6.1
./configure --prefix=$HOME/local
make -j8
make install
cd ..
# libevent
git clone git://github.com/libevent/libeve... | true |
3808ae264b824209a3d8a30ea6bc872b8a003116 | Shell | Ericmas001/hq-hvac-api-docker | /entrypoint.sh | UTF-8 | 406 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo ""
echo ">>> VERSION"
uname -a
echo ""
echo ">>> USER GROUPS"
groups
echo "" > /exec/const.py && \
echo "KEY = \"$KEY\"" >> /exec/const.py && \
echo "PIN = $PIN" >> /exec/const.py
cp -n /default_config.json /config/last_config.json
echo ""
echo ">>> CONST"
cat /exec/const.py
echo ""
echo ">>> CON... | true |
214cecc3e339fbeb864e78bab15360fe456dccc6 | Shell | jbalsamo/upLoadLymph | /uploadLymphocyteHm.sh | UTF-8 | 1,508 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# bash uploadLymphHm.sh <options>
# Authors: Alina Jasniewski, Joseph Balsamo
# Functions
# function: usage(brief)
function usage() {
echo "Usage: $ ./uploadLymphHm.sh [options] -h <host> -f <filename>"
if [ $1 == false ]
then
echo " Options:"
echo " -f <filename>: filename of t... | true |
157c1f2539691d96c080bd837cda6313ac5c34c1 | Shell | GeorgePatsias/Remote-User-Creation | /add_user.sh | UTF-8 | 429 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# Usage: ./add_user.sh <Domain> <User Name> <Default Password> <SSH Key Path or String in quotes>
# Example: ./add_user.sh example.com john Password123 "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA879BJGYlPTLIuc9/R5MYiN4yc/YiCLcdBpSdzgK9Dt0Bkfe3rSz5cPm4wmehdE7GkVFXrBJ2YHqPLuM1yx1AUxIebpwlIl9f/aUHOts9eVnVh4NztPy0iSU... | true |
0a4f7daad0beb1ad48cc0fbd40d902467bbddccc | Shell | florent-engineering/anemomind | /www2/synctest/refresh_boxid.sh | UTF-8 | 398 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
echo "When running this script, make sure that the box is either on your local network or you are connected to the local network of the box."
echo "If 'ssh box' does not work, then this script won't work."
echo "Fetching box id..."
ssh box "ifconfig wlan0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,... | true |
d0960456a569d92db4cbeea1da6f1bdb6654f312 | Shell | rancher/image-build-base | /scripts/go-build-static.sh | UTF-8 | 342 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
export CGO_ENABLED=${CGO_ENABLED:-1}
export GOEXPERIMENT=boringcrypto
if [ "${CGO_ENABLED}" != "1" ]; then
echo "CGO_ENABLED=${CGO_ENABLED}, should be set to 1 for static goboring compilation" >&2
exit 1
fi
set -x
exec go build -ldflags "-linkmode=external -extldflags \"-static -Wl,--fatal-warnings\" ... | true |
08ed809f69a57ba187134f299a6aacdfd820f3bd | Shell | pgreze/dotfiles | /sh/gnome.sh | UTF-8 | 2,996 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | ###
### Gnome configuration
###
gnome_how_to="
List installed schemas:
> gsettings list-schemas
Explore gsettings paths:
> dconf list /org/gnome/terminal/legacy/
"
# https://unix.stackexchange.com/a/297660
# We need to define both a schema and a path:
# ```
# GSETTINGS_SCHEMA=org.gnome.Terminal.Legacy.Keybindings
# ... | true |
7dc62063e24f5fccd5d021fe02df3cae558247f7 | Shell | aaronjwood/ts_sdk | /tools/scripts/check-c-style | UTF-8 | 430 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (C) 2015 Verizon. All rights reserved.
# Run the checkpatch.pl script against all the (A)dded and (M)odified
# .c and .h files in the current repo.
gittop=$(git rev-parse --show-toplevel)
checkparse=$gittop/tools/scripts/checkpatch.pl
git status -s -uno | sed 's/^.. //' | egrep '\.c$|\.h$|... | true |
9df3870637a6035c129b65d2842d3ed92fc236a8 | Shell | jinbinhu/CAPS-Mininet | /sender.sh | UTF-8 | 853 | 2.75 | 3 | [] | no_license | #!/bin/bash
echo "Please enter ETH name: e.g. eth0"
read ETH
echo "Please enter DST_IP address: e.g. 192.168.188.133"
read DSTIP
echo "Please enter SRC_IP address: e.g. 192.168.188.136"
read SRCIP
echo "Please enter SRC_MAC address: e.g. 0x00,0x0C,0x29,0x7E,0xB1,0x35"
read SMAC
echo "Please enter DST_MAC address: e... | true |
54503d5ee19ea39dcfc14d43da03ef423cb58889 | Shell | wesbragagt/YoutubeMP3Downloader | /install | UTF-8 | 195 | 2.515625 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
set -e
rm -rf node_modules &&
npm install &&
npm run build &&
cp dist/youtube-dw /usr/local/bin/ &&
echo "Success installing youtube-dw. Run youtube-dw <url> <file_name>"
| true |
744bbe0fea407acff1a4c7d582eb1b87cd54a292 | Shell | blackb1rd/dotfiles | /shells/source/transmission.sh | UTF-8 | 783 | 3.09375 | 3 | [] | no_license | #!/bin/sh
TR_OPTS="-n transmission:transmission"
tsmdaemonstart() { sudo service transmission-daemon start;}
tsmdaemonstop() { sudo service transmission-daemon stop;}
tsmdaemonreload() { sudo service transmission-daemon reload;}
tsmstart() { transmission-remote "${TR_OPTS}" -t "$1" -s;}
tsmstop() ... | true |
ea89167c4e38ab7c3f284c40c73c3929d18bdce7 | Shell | freebsd/freebsd-ports | /x11/budgie/files/xprofile.in | UTF-8 | 2,444 | 3.09375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# Use the Xorg backend
if test "x$GDK_BACKEND" = "x"; then
GDK_BACKEND="x11"
fi
export XDG_SESSION_TYPE
# Set $XDG_MENU_PREFIX
if test "x$XDG_MENU_PREFIX" = "x" ; then
XDG_MENU_PREFIX="gnome-"
fi
export XDG_MENU_PREFIX
# Set $DESKTOP_SESSION
if test "x$DESKTOP_SESSION" = "x" ; then
DESKTOP_SESS... | true |
2b389f258e9d84b8bf74c9728bd650f73b743015 | Shell | devlights/try-linux | /basic/convert/bin_to_hex.sh | UTF-8 | 771 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# REFERENCES:
# - https://stackoverflow.com/questions/34159451/splitting-big-block-of-binary-into-8-bit-chunks-in-bash
# - https://unix.stackexchange.com/questions/65280/binary-to-hexadecimal-and-decimal-in-a-shell-script
# - https://unix.stackexchange.com/questions/464808/bc-why-does-ibase... | true |
02ae006343064723f069ae418f4f031feed61503 | Shell | doytsujin/tmux-autoreload | /tmux-autoreload.tmux | UTF-8 | 6,571 | 4.125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Automatically reloads your tmux configuration files on change.
#
# Copyright 2021 Maddison Hellstrom <github.com/b0o>, MIT License.
set -Eeuo pipefail
if [[ ${BASH_VERSINFO[0]} -ge 5 || (${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -ge 4) ]]; then
shopt -s inherit_errexit
fi
function year... | true |
12b630cd018669b137fcbd9d37ac2cc43cb040d1 | Shell | AGMahmoud/wally | /Project/toolbox/src/mergepdfs.sh | UTF-8 | 1,319 | 4.21875 | 4 | [] | no_license | #!/usr/bin/env bash
# Function: Merge PDF files with outlines
# Input:
# 1. PATH: path that contains PDF files which should be name like "1.2 Test Tile"
# Output: generate a merged PDF file with outline
# Input check
if [ $# -lt 1 ] || [ $# -gt 2 ]
then
echo "Error: wrong number of arguments"
echo "Usag... | true |
791b1500f36aafa76d6d5744b856611ef5555d48 | Shell | tiansen/kuryr-libnetwork | /contrib/vagrant/vagrant.sh | UTF-8 | 225 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
export OS_USER=vagrant
export OS_HOST_IP=172.68.5.10
# run script
bash /vagrant/devstack.sh "$1"
#set environment variables for kuryr
su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bash_profile"
| true |
5b5945f70a2759d206cf5ab6a227368c6f709a42 | Shell | repus/dot | /bundles/dsouza@work/autorandr/dist/.bash.d/bin/autorandr.sh | UTF-8 | 482 | 3.34375 | 3 | [] | no_license | #!/bin/sh
hdmi1_enabled () {
xrandr -q | grep HDMI1 | grep -qv disconnected
}
hdmi1_connect () {
xrandr --output eDP1 --auto --left-of HDMI1 --output HDMI1 --auto
}
hdmi1_disconnect () {
xrandr --output eDP1 --auto --output HDMI1 --off
}
hdmi1_state=-1
while sleep 2.5
do
if hdmi1_enabled
then
if [ "$h... | true |
856980d19e4a941dd0c3868758de377747dbac4f | Shell | andresvanegas19/AirBnB_clone_v2 | /0-setup_web_static.sh | UTF-8 | 601 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
# sets up your web servers for the deployment of web_static
if ! which nginex;
then
apt update && apt-get install -y nginx
fi
mkdir -p /data/web_static/shared/
mkdir -p /data/web_static/releases/test/
rm -rf /data/web_static/current
echo "test Nginx configuration" > /data/web_static/releases/tes... | true |
28b8734032b56c327c0576d14dd2b9356ff9d4ea | Shell | NelsonJyostna/EmpWage | /employeecheck.sh | UTF-8 | 167 | 3.03125 | 3 | [] | no_license | #!/bin/bash -x
isPresent=1
randomCheck=$(( RANDOM%2 ));
if [ $isPresent -eq $randomCheck ];
then
echo "Employee not present"
else
echo " not present"
fi
| true |
fae3b301ed7bff16150801d5a993a3dd6f834da6 | Shell | dugrema/millegrilles.consignation.grosfichiers | /docker-run.sh | UTF-8 | 970 | 2.84375 | 3 | [] | no_license | #!/bin/bash
source image_info.txt
ARCH=`uname -m`
# Override version (e.g. pour utiliser x86_64_...)
# VERSION=x86_64_1.29.3
IMAGE_DOCKER=$REPO/${NAME}:${ARCH}_${VERSION}
echo Image docker : $IMAGE_DOCKER
# MQ
export HOST=mg-dev4.maple.maceroc.com
export HOST_MQ=mg-dev4
CERT_FOLDER=/home/mathieu/mgdev/certs
export... | true |
b062346bc4f204ce44e55beda59f276d072627db | Shell | jeeb/MPGDec | /config.sh | UTF-8 | 527 | 3.796875 | 4 | [] | no_license | #!/bin/sh
version=""
clean="no"
config_h="./src/config.h"
# Check options
for opt do
case "$opt" in
--clean)
clean="yes"
;;
esac
done
# Output config.h
if test "$clean" = "yes" ; then
cat > "$config_h" << EOF
#undef DGMPGDEC_GIT_VERSION
EOF
else
if [ -d ".git" ] && [ -n "`git ta... | true |
16e140de53895874f5122dd7aa664e44d208c478 | Shell | cmccandless/ExercismSolutions-bash | /bob/bob.sh | UTF-8 | 623 | 4.125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -o errexit
set -o nounset
yelling()
{
# contains letters?
[[ "$1" =~ [[:alpha:]] ]] &&
# all uppercase?
[ "$1" == "${1^^}" ] &&
echo '!Y'
}
asking()
{
# has trailing question mark?
[ "$1" != "${1%\?}" ] &&
echo '!A'
}
main() {
input="${1:-}"
# Strip trailing whitespace
... | true |
464f3f1c1d7cb15d771d4fd7461e59bbaae6712b | Shell | matiasozdy/randomscripts | /check_solr_replica.sh | UTF-8 | 488 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#
### Check status replicas.
#
HOST="$1"
PORT="$2"
URL="http://${HOST}:${PORT}/solr/admin/replication/index.jsp"
MASTER=`curl -s ${URL} | grep "Replicatable Index Version" | awk {'print $5'}`
SLAVE=`curl -s ${URL} | grep "Index Version" | grep -v '<td>' | awk {'print $5'}`
#printf "Master ${MASTER}\n"
#pr... | true |
113f93eae77746e7b2b0c7e4846d34eae4722f0c | Shell | bendavieshe3/mac-scripts | /fby.sh | UTF-8 | 971 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#required for processing files with spaces
#change default file separator
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
if [ "$#" -gt 0 ]; then
fbypath="$1"
files="$1"
else
fbypath="./"
files="./*"
fi
regex=[12]{1}[09]{1}[0-9]{2}
for f in $files
do
#check to see if filename contains a likely year
if [[ $f... | true |
790d2842c21cfa7e91c90f57875470d366d0942d | Shell | cha63506/ATP | /scripts/localservers.sh | UTF-8 | 290 | 2.671875 | 3 | [] | no_license | #!/bin/bash
TEXT_FIRST=1298
TEXT_LAST=1300
ATP_FIRST=1301
ATP_LAST=1305
for port in $(seq $TEXT_FIRST $TEXT_LAST); do
setsid tcphub $port text </dev/null >/dev/null 2>&1 &
done
for port in $(seq $ATP_FIRST $ATP_LAST); do
setsid tcphub $port atp </dev/null >/dev/null 2>&1 &
done
| true |
c08c08cc871559b817d5dfe7e7f88717ce9ece25 | Shell | mikerovers/handydockercommands | /bash/dockerremovecontainers | UTF-8 | 761 | 4 | 4 | [] | no_license | #!/bin/bash
runningContainerCount="$(docker ps -q | wc -l)"
containerCount="$(docker ps -aq | wc -l)"
zero=0
options=("1: yes" "2: no")
if [ "$containerCount" -eq $zero ]; then
echo "There are no containers to remove."
exit;
fi
if [ "$runningContainerCount" -gt $zero ]; then
echo "There are still contai... | true |
e9e197e7c7c1023bff6a85ea99ef694c855373d6 | Shell | neobuddy89/NX-initramfs | /sbin/ext/post-init.sh | UTF-8 | 11,123 | 3.28125 | 3 | [] | no_license | #!/sbin/busybox sh
BB=/sbin/busybox
$BB mount -t rootfs -o remount,rw rootfs;
$BB mount -o remount,rw /system;
# first mod the partitions then boot
$BB sh /sbin/ext/system_tune_on_init.sh;
if [ ! -d /data/.siyah ]; then
$BB mkdir -p /data/.siyah;
fi;
# reset config-backup-restore
if [ -f /data/.siyah/restore_runn... | true |
798694341c0277e248805533805aeca2c340ec08 | Shell | maxsu/antergos-packages | /antergos/antergos-wallpapers/PKGBUILD | UTF-8 | 976 | 2.8125 | 3 | [] | no_license | # Maintainer: Alexandre Filgueira <faidoc@gmail.com>
pkgname=antergos-wallpapers
pkgver=0.7
pkgrel=1
pkgdesc='The default wallpapers for Antergos'
arch=('any')
url='http://www.antergos.com'
license=('CCPL:by-nc-sa')
source=("http://antergos.com/${pkgname}-${pkgver}.zip")
md5sums=('cd09fe9d1dd72af28ba334f9e63e6b95')
p... | true |
bf5da2e0005bae8311e09dce0a001d35dd6da718 | Shell | forty/play.it | /play.it-2/src/icons.sh | UTF-8 | 3,005 | 3.859375 | 4 | [
"BSD-2-Clause"
] | permissive | # extract .png or .ico files from given file
# USAGE: extract_icon_from $file[…]
# NEEDED VARS: PLAYIT_WORKDIR
# CALLS: liberror
extract_icon_from() {
for file in "$@"; do
local destination="$PLAYIT_WORKDIR/icons"
mkdir --parents "$destination"
case "${file##*.}" in
('exe')
if [ "$WRESTOOL_NAME" ]; then
... | true |
b31565dcc0fb1693ab72a450e3e6535a7e6b8ce2 | Shell | Vanders/borg | /script/install.sh | UTF-8 | 6,468 | 3.171875 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
#
# ___________
# /-/_'/-/_/-/| B O R G
# /'-/-_'/-_//|| << https://github.com/agh/borg >>
# /__________/|/|
# |'|_'='-]:+|/|| Sit back and relax, human. Resistance is futile.
# |-+-|.|_'-'||// This should be a painless process and before long this
# ... | true |
534e98258eeaa6fb6a41035b579523c1382d6980 | Shell | OpenMandrivaSoftware/docker-abf | /abf-genhdlists/entrypoint.sh | UTF-8 | 2,308 | 3.828125 | 4 | [] | no_license | #!/bin/sh
# Modified by tpgxyz@gmail.com
# Modified by bero@lindev.ch
# Call this script with path where createrepo_c will run
# and call with regenerate paramater to build repodata
# from scratch.
run_createrepo() {
REPOSITORY="$1"
REGENERATE="$2"
[ ! -d "${REPOSITORY}" ] && printf '%s\n' "Directory ${R... | true |
8467c1fd24a033556957e6a1520c9d82be99def3 | Shell | dtlnor/COMP3211 | /run.sh | UTF-8 | 1,034 | 3.375 | 3 | [] | no_license | #!/bin/bash
gen_gcov() {
gcc bugAlgo.c -fprofile-arcs -ftest-coverage -o bugAlgo
./bugAlgo $1 $2 $3 $4 $5 > bugAlgoFile.csv
bugVar=$(cat bugAlgoFile.csv)
gcc trueAlgo.c -o trueAlgo
./trueAlgo $1 $2 $3 $4 $5 > trueAlgoFile.csv
trueVar=$(cat trueAlgoFile.csv)
gcov bugAlgo.c
gcc gen_coverage.c ... | true |
69f0ba4ec5d547b90c6d9bd658fae184c764591d | Shell | dolsem/shell-collection | /oh-my-zsh/install.zsh | UTF-8 | 1,070 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
###########################################################################
# Script Name : install.zsh
# Description : Installs Oh My Zsh and its plugins.
# Author : Denis Semenenko
# Email : dols3m@gmail.com
# Date written: January 2019
#
# Distributed under MIT license
# Copyright (c) 2... | true |
13d01c97db2800d4e614e9fa6ecd62a52661db91 | Shell | steveyken/bash-dot-files | /prompt-nodejs/main.sh | UTF-8 | 270 | 3.0625 | 3 | [
"MIT"
] | permissive |
NPM_PACKAGES="~/.npm-packages/"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH="$NPM_PACKAGES/bin:$PATH"
unset MANPATH
MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
ORIGINAL_PATH=$PATH
function build_node_path {
export PATH=$(npm bin):$ORIGINAL_PATH
}
| true |
2eb167a5475ed970bb4de199c1cc7a37d9768bb6 | Shell | vova557/cliff | /integration-tests/openstackclient-tip.sh | UTF-8 | 599 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh -x
set -e
envdir=$1
# The source for the client library is checked out by pip because of
# the deps listed in tox.ini, so we just need to move into that
# directory.
# NOTE(tonyb): tools/tox_install.sh will place the code in 1 of 2 paths
# depending on whether zuul-cloner is used, so try each possible loca... | true |
4881baa02fe2fcf3bb3b96b9d06c29b51ecd54a0 | Shell | jmmarzolino/CCXXIRAD | /statistics/count003_trim.sh | UTF-8 | 1,694 | 3.28125 | 3 | [] | no_license | #!/bin/bash -l
#SBATCH --output=/rhome/jmarz001/bigdata/CCXXIRAD/Scripts/retained.stdout
#SBATCH --mail-user=jmarz001@ucr.edu
#SBATCH --mail-type=ALL
#SBATCH --job-name='retained'
#SBATCH --ntasks=1
#SBATCH --mem-per-cpu=10G
#SBATCH --time=1:00:00
#SBATCH -p intel
#Get the number of reads from before and after trimmi... | true |
ccddcf1bf1a51b994e8f9d661d4a4268633cc735 | Shell | scruwys/dotfiles | /install/pyenv.sh | UTF-8 | 493 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env bash
if ! is-executable curl -o ! is-executable git; then
echo "Skipped: pyenv (missing: curl and/or git)"
return
fi
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
cat <<EOT >> ~/.zshrc
# pyenv configuration
export PATH="$HOME/.pyenv/shims:$PATH"
export PATH... | true |
e5b400a5effe5fbb571c2ac5dc6dd3cd5629a892 | Shell | guadalinex-archive/guadalinex-2005 | /trunk/generation_system/live/initramfs-tools/docs/example_script | UTF-8 | 2,704 | 3.953125 | 4 | [] | no_license | #!/bin/sh
#
# This script is run inside of the initramfs environment during the
# system boot process. It is installed there by 'mkinitramfs'. The
# package that owns it may opt to install it in either an appropriate
# location under "/usr/share/initramfs-tools/scripts/", or a similar
# location under "/etc/mkinitra... | true |
0107c41d08bd4fe09705ce897f4c1bf476f43942 | Shell | suban244/dotfiles | /setup.sh | UTF-8 | 262 | 2.828125 | 3 | [] | no_license | #! /bin/zsh
# Ubuntu
# sudo apt-get install vim tmux nvim
# sudo snap install nvim
# Arch
# sudo pacman -S vim tmux nvim
for file in .vimrc .zshrc .tmux.conf
do
ln -s $file "~/${file}"
done
for folder in nvim
do
ln -s $folder "~/.config/${folder}"
done
| true |
c102ac787ac5949d8563a16e5ff86c9c98930fd9 | Shell | hikouki/private-docker-images | /ubuntu/apache-php/run.sh | UTF-8 | 530 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
chown www-data:www-data /app -R
usermod -u 1000 www-data
if [ "$ALLOW_OVERRIDE" = "**False**" ]; then
unset ALLOW_OVERRIDE
else
sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
a2enmod rewrite
fi
if [ "$DOCUMENT_ROOT" = "**False**" ]; then
unset DOCUMENT_ROOT
els... | true |
5aa855f5e09fbcbd65e4561695f4bf6b85e470f5 | Shell | ValeryEMalakhov/spark-nginx-logs-handler | /injection/cron/rename_and_move_logs.sh | UTF-8 | 472 | 3.828125 | 4 | [] | no_license | #!/bin/bash
LOG_PATH=$1
TIMESTAMP=$(date -u '+%s%N');
RAND=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1);
SHA=$(echo $RAND | sha256sum);
NEW_FILE_NAME=${TIMESTAMP}_${SHA%" -"}.log
#Rename and move log file
mv $LOG_PATH/access.log $LOG_PATH/nginx_logs_archive/${NEW_FILE_NAME}
#Re-run logs
docke... | true |
b3568dce0aa74325e8302bb0ef0c45cc1f72db9c | Shell | code4tots/jj | /x | UTF-8 | 1,435 | 3.890625 | 4 | [] | no_license | #!/bin/bash
# source this from your bashrc.
### CUSTOMIZABLE VARIABLES
PATH_TO_JJ=~/git/hub/jj
PATH_TO_ANTLR4=/usr/local/lib/antlr-4.5-complete.jar
PATH_TO_ANDROID_SDK=~/git/pkg/android-sdk-linux
### END CUSTOMIZATIONS
capitalize() {
echo $(tr '[:lower:]' '[:upper:]' <<< ${1:0:1})${1:1}
}
lowercase() {
echo $1 ... | true |
9891e77268b27c31d9390cf52b79928fce501291 | Shell | a1kaid/hunter | /docker/update_hunter.sh | UTF-8 | 1,320 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#删除正在运行的其他容器,redis,rabbitmq,mysql容器不动,因为里面保存了数据
#是否包含
contains(){
str=$1
array=$2
result=0
for item in $array; do
if [ $str == "$item" ]; then #判断字符串是否相等,注意前后要有空格,否则变为赋值语句
result=1
break
fi
done
return $result
}
#停止容器
removeContainers()... | true |
803b119a54323b511c83d4f7ac41c91cc9740aa7 | Shell | ksowmya/perfscripts | /ACS40/advanced_zone_rvr/createUserAccount.sh | UTF-8 | 1,351 | 2.640625 | 3 | [] | no_license | #
# Copyright (C) 2011 Cloud.com, Inc. All rights reserved.
#
mgmtServer=$1
count=$2
noId="9384dab9-d19d-4b2d-bf28-d545787dcaeb"
zoneid="ec7df848-5880-4b81-8e45-e2d8b8382414"
#count=$(($count+4004))
echo $count
for name in `seq 1 $count`
#for name in `seq 4001 $count`
do
account_query="GET http://$mgmtServer/clien... | true |
91efdcf351c27224fef0ed99274610031e8e3a1d | Shell | alphaemmeo/private2public | /pre-commit | UTF-8 | 533 | 3.546875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
current_branch="$(git branch | grep -e "^*" | sed -e 's/^* //')"
if [ ! -f "${GIT_DIR}/../desert.gitignore" ]; then
echo "ERROR: desert.gitignore not found!"
exit 1
fi
DIR_LIST_FROM_FILE=$(cat ${GIT_DIR}/../desert.gitignore)
if [ "${current_branch}" = "public_release" ]; then
for dir in ${DIR_LIST... | true |
b9d1a94fd662b60ebd8dcbd322798d5896464642 | Shell | gentoo/gentoo | /dev-util/nvidia-cuda-toolkit/files/cuda-config.in | UTF-8 | 407 | 3.875 | 4 | [] | no_license | #!/bin/bash
SUPPORT_GCC_VERSIONS_BY_CUDA="CUDA_SUPPORTED_GCC"
_print_help() {
cat <<- EOF
Usage:
$(basename $0) [options]
-s | --supported Returns by current CUDA supported gcc versions
-h | --help Shows this help
EOF
}
case ${1} in
-s|--supported)
echo "${SUPPORT_GCC_VERSIONS_BY_CUDA}"
exit... | true |
6707ea0f073b79cd1311b0598d310e4dcf003342 | Shell | DexterTheDragon/dotfiles | /bin/passbootstrap | UTF-8 | 592 | 3.65625 | 4 | [] | no_license | #!/bin/bash
if [ -f .passenger_port ]; then
if [ ! `which passenger` ]; then
echo 'passenger not installed'
gem install passenger
fi
passenger status -p $(cat .passenger_port) | grep 'not running' > /dev/null
if [ $? == 0 ]; then
passenger start -p $(cat .passenger_port) -d
... | true |
2c8c63305f07e0e38b56f356053a574f410e2e59 | Shell | KrivoKu/OSLabs | /calc.sh | UTF-8 | 661 | 3.828125 | 4 | [] | no_license | #!/bin/bash
calc(){
if [[ "$1" != "sum" && "$1" != "sub" && "$1" != "mul" && "$1" != "div" ]]
then
echo "Error: Wrong action tried"
exit -2
elif ! [[ $2 =~ ^[+-]?[0-9]+$ && $3 =~ ^[+-]?[0-9]+$ ]]
then
echo "Error: You need two integer numbers for program to work"
exit -1
elif [[ $1 == "div" && $3 == "0" ]]
then
echo "E... | true |
9d2d3497a2bdef63f4bbaacbf6306b9ef1b0ba9e | Shell | firewalker06/dotfiles | /bin/git-refresh | UTF-8 | 139 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# Hard reset current branch from remote
branch=$(git rev-parse --abbrev-ref HEAD)
git pull && git reset --hard origin/$branch
| true |
39cc5581deba276a4b3f6a895b9702f681a42d76 | Shell | Travis990/LiveClient | /android/Tools/download_crash_log.sh | UTF-8 | 1,503 | 3.25 | 3 | [] | no_license | #!/bin/sh
# App crash log file download and unzip script
# Author: Max.Chiu
PARAM_URL=""
if [ ! "$1" == "" ]
then
PARAM_URL="$1"
else
echo "Usage: ./download_crash_log.sh \"http://mobile.asiame.com/other/crash_file_view/usertype/?date1=2019-01-01&date2=2019-02-12&manid=&devicetype=31&deviceid=&versioncode=136&search=... | true |
4dee5bc24c845538b3a0e840796c1ccb3637fad0 | Shell | kaixinguo360/ShellScript | /cloud/owncloud.sh | UTF-8 | 3,446 | 3.921875 | 4 | [] | no_license | #!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# 检查是否为Root
[ $(id -u) != "0" ] && { echo "Error: You must be root to run this script"; exit 1; }
# 检查系统信息
if [ ! -z "`cat /etc/issue | grep 'Ubuntu 16'`" ];
then
OS='Ubuntu'
else
echo "Not support OS(Ubuntu 1... | true |
876474b8e290e3a7a2e0ae1a5201e118a54f6fb2 | Shell | roche-emmanuel/singularity | /scripts/deps/boost.sh | UTF-8 | 2,448 | 3.171875 | 3 | [] | no_license | #!/bin/sh
. `pwd`/tools.sh
flavor=$1
PACKAGENAME=$dep_boost
# VERBOSE=1
CLEAN=0
os="linux"
threadingapi=""
# linkmode=$3
# linkmode=shared
linkmode=static
# mode=$2
mode=release
comp_1="-sNO_BZIP2=0 -sNO_COMPRESSION=0 -sBZIP2_BINARY=bz2 -sBZIP2_INCLUDE=$DEPS_DIR/$flavor/$dep_bzip2/include -sBZIP2_LIBPATH=$DEPS_D... | true |
768139fb1f0dbf39b91407a30c33e8622f5aaf1a | Shell | alfpedraza-aws-devops/infrastructure | /modules/environment/scripts/metadata.sh | UTF-8 | 1,242 | 3.28125 | 3 | [] | no_license | #!/bin/bash
function get_host_name() {
curl http://169.254.169.254/latest/meta-data/hostname
}
function get_node_ip() {
curl http://169.254.169.254/latest/meta-data/local-ipv4
}
function get_account_id() {
curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | awk -F'"' '/\"accountId\... | true |
f332c195f59e4c0beca3944bbe41f22c153240bc | Shell | angry-tony/ksql-examples | /ccloud/stop-docker.sh | UTF-8 | 1,218 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Source library
. ../utils/helper.sh
. ./config.sh
check_ccloud_config $CONFIG_FILE || exit
./ccloud-generate-cp-configs.sh $CONFIG_FILE
source delta_configs/env.delta
topics_to_delete="pageviews pageviews.replica users pageviews_enriched_r8_r9 PAGEVIEWS_FEMALE PAGEVIEWS_REGIONS"
for topic in $topics_t... | true |
188569b7c471b06277fd61392c0c89455c6d7073 | Shell | syndicate-storage/syndicate | /old/google-maps-demo/google-map/demo.sh | UTF-8 | 223 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if [[ $# < 2 ]]; then
echo "Usage: $0 site mountpoint"
exit 1
fi
SITE=$1
MOUNT=$2
syndicatefs -f -c syndicate-Internet2-$SITE.conf $MOUNT > /dev/null 2>/dev/null &
./poll-file.py $SITE.coord $MOUNT/hello &
| true |
b47b69060cbef7df556ea4457fc289c671671dbd | Shell | josemarkz/create_users.sh | /create_users.sh | UTF-8 | 1,014 | 3.25 | 3 | [] | no_license | #!/bin/bash
USER1=“elena”
USER2=“jose”
USER3=“luis”
USER4=“carlos”
USER5=“carmen”
GROUP1=“contabilidad”
GROUP2=“administrador”
echo “Iniciando la creacion de usuarios”
#create el usuario elena
useradd -m -d /home/$USER1 -s /bin/bash $USER1
#create el usuario jose
useradd -m -d /home/$USER2 -s /bin/bash $USER2
#cr... | true |
0b23b92648e6fb1fdf93ba73711871aa3bd42b5d | Shell | monash-merc/ansible_cluster_in_a_box | /roles/mellanox_drivers/files/mlnx_install.sh | UTF-8 | 1,167 | 3.484375 | 3 | [] | no_license | #!/bin/sh
# A CRUDE Script to install Mellanox OFED drivers
# Philip.Chan@monash.edu
#
# TODO: check if MLNX_OFED is already installed!
# TODO: check kernel...
KERN=`uname -r`
if [ "$KERN" != "3.10.0-229.14.1.el7.x86_64" ]
then
echo "Oops! Did you forget to reboot?"
echo "Kernel version has to be 3.10.0-229.14.1.... | true |
6a9567dd71bba1d24e0894322f72b21810071913 | Shell | tspannhw/nifi-addons | /Operations/nifi-ops/core/src/test/resources/azure-gateway-init.sh | UTF-8 | 512 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
# warming up yum in the background
# yum -y makecache &
export CLOUD_PLATFORM="AZURE_RM"
export START_LABEL=98
export PLATFORM_DISK_PREFIX=sd
export LAZY_FORMAT_DISK_LIMIT=12
export IS_GATEWAY=true
export TMP_SSH_KEY="ssh-rsa test"
export PUBLIC_SSH_KEY="ssh-rsa public"
export RELOCATE_DOCKER=true
... | true |
9174bf89c73ea9e04888a61ec21880b59b3a73a6 | Shell | garlicbulb-puzhuo/ggo | /bin/application_log.sh | UTF-8 | 1,286 | 4.09375 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
set -u
# current program name
progname="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
working_dir=
working_dir_arg=0
function usage {
echo "usage: ${progname} -w directory [-h]"
echo " -w Working directory"
echo " [-h] Display usage"
exit 1
}
while getop... | true |
4f26ee9e6a2bdf4e734b0d3e301d4d02174de094 | Shell | paulomach/tool | /bin/oracle_wrapper | UTF-8 | 271 | 3.078125 | 3 | [] | no_license | #!/bin/bash
if [[ $1 = "-h" ]]; then
echo "Wrap/obfuscated Oracle procedures and functions"
echo "Call in the source dir"
exit
fi
for i in $(ls *.{prc,fnc});
do
wrap iname=$i &> /dev/null
done
rm -rf wrapped_objects
mkdir wrapped_objects
mv *.plb wrapped_objects
| true |
9acd6469ce537bb1dc8d4e371810fe9f9853cf78 | Shell | olgn/helpers | /squirt/squirt-bash.sh | UTF-8 | 1,217 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#output
OUTPUT=""
# Determine directory prefixes -
# different in git bash vs ubuntu
if [ -d "/mnt/c" ]
then
PREFIX_C="/mnt/c"
PREFIX_D="/mnt/d"
else
PREFIX_C="/c"
PREFIX_D="/d"
fi
# Interactive prompt for directory selection
PS3="Please select a directory: "
options=("C" "D" "Quit")
se... | true |
638a362b24439e55a4777565c51862c1dca99c6f | Shell | rchytas/dabblelab-youtube-channel | /2017-tutorials/2017-07-28-sessions-in-dynamodb/publish.sh | UTF-8 | 433 | 3.828125 | 4 | [] | no_license | SKILL_NAME=$1
NOW=$(date +%s)
ZIP_FILE="$SKILL_NAME-$NOW.zip"
if [ ! -f ./$ZIP_FILE ]; then
echo "$ZIP_FILE not found. Creating file..."
chmod -R +rw $SKILL_NAME
cd $SKILL_NAME
zip -r "../$ZIP_FILE" * -x "*.DS_Store"
echo "$ZIP_FILE created."
cd ..
aws lambda update-function-code --function-name $SKILL_... | true |
882afd7524546d46bc4b4d78760954a77446378a | Shell | seanbermejo/dotfiles | /.scripts/timezones | UTF-8 | 940 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# Show current time of timezones I care about
# called on click from dwm_time
# no prompt
PS1=
print_center(){
local x
local y
text="$*"
x=$(( ($(tput cols) - ${#text}) / 2))
echo -ne "\E[6n";read -sdR y; y=$(echo -ne "${y#*[}" | cut -d';' -f1)
echo -ne "\033[${y};${x}f$*"
}
#echo... | true |
7ea247ba668c8f31cb2275614c0db1c7c4263cf3 | Shell | van-namdinh/noxim-dev | /noxim_run_v8_gnuplot.sh | UTF-8 | 3,633 | 2.515625 | 3 | [] | no_license | # -----------------------------------------------------------------------------
# Project name :
# File name : gnuplot_v8_latency.sh
# Created date : Th11 28 2019
# Author : Van-Nam DINH
# Last modified : Th11 28 2019 18:32
# Guide :
# ---------------------------------------------------------... | true |
43a42192f15a87aca777412def9426b17355894a | Shell | thaabit/dotfiles | /setup/ldap.sh | UTF-8 | 3,977 | 3.28125 | 3 | [] | no_license | #!/usr/bin/bash
# https://www.server-world.info/en/note?os=CentOS_7&p=openldap
db_config="/var/lib/ldap/DB_CONFIG"
if [ ! -e $db_config ]; then
sudo cp /usr/share/openldap-servers/DB_CONFIG.example $db_config
sudo chown ldap. /var/lib/ldap/DB_CONFIG
fi
firewall-cmd --add-service=ldap --permanent > /dev/null
f... | true |
c965956fc5039c8f6b7c589379c546226bd8a761 | Shell | isudnop/util-shell-script | /one_script.sh | UTF-8 | 3,363 | 3.34375 | 3 | [] | no_license | #!/bin/bash
###output function
echo_green () {
green=`tput setaf 2`
reset=`tput sgr0`
word=$1
echo $green $word $reset
}
echo_red () {
red=`tput setaf 1`
reset=`tput sgr0`
word=$1
echo $red $word $reset
}
echo_green "### One Script Shall Install Them All ###"
echo_green "### Start A... | true |
0c13e24cdcbb07be454536cba093696c24ba1674 | Shell | lestrot/shell_linux | /compt.sh | UTF-8 | 64 | 3.03125 | 3 | [] | no_license | a=0
while [ "$a" -lt 6 ]
do
echo $a
a=`expr $a + 1`
done | true |
6a092f9f128da7ab1643e05d18cd10f4bf56a235 | Shell | federbenjamin/Autodownloader | /downloader.sh | UTF-8 | 3,991 | 3.9375 | 4 | [] | no_license | #!/bin/bash
DL_LINK=$1
NOTIFICATION_EMAIL=$2
TEMP_DIR=~/"Movies/Incomplete/"
MOVIE_DIR=~/"Movies/Movies/"
TV_DIR="/Volumes/TVShowHDD/TV_Shows/"
DL_LOG="logs/downloads/"
mkdir $TEMP_DIR $DL_LOG $MOVIE_DIR $TV_DIR
# Extract filename from download link
FILENAME=$(echo $1 | sed 's/%2F/\//g' | egrep -oe '[^\/]*$.*')
EXTEN... | true |
0d594d9079a35ef7f89808624c15b9978e6f1e87 | Shell | kubovy/oh-my-zsh | /themes/poterion-lite.zsh-theme | UTF-8 | 4,060 | 3.109375 | 3 | [] | no_license | # ------------------------------------------------------------------------
# Juan G. Hurtado oh-my-zsh theme
# (Needs Git plugin for current_branch method)
# ------------------------------------------------------------------------
# Color shortcuts
RED=$fg[red]
GREEN=$fg[green]
BLUE=$fg[blue]
CYAN=$fg[cyan]
MAGENTA=$... | true |
3c5e26cb9af2240918e45234a1a8469ec99c0263 | Shell | zakariakov/elokab | /etc/skel/.xprofile | UTF-8 | 151 | 2.640625 | 3 | [] | no_license |
export EDITOR=/usr/bin/nano
if [ "$XDG_CURRENT_DESKTOP" = "KDE" ];then
echo $XDG_CURRENT_DESKTOP
else
export QT_QPA_PLATFORMTHEME="qt5ct"
fi
| true |
9ef2e9ac84481a1be6f92f3c2ae7ba8e5226a001 | Shell | trigrass2/grisp2-rtems-toolchain | /debug/openocd/start-openocd.sh | UTF-8 | 427 | 3.234375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# be more verbose
set -x
# exit on wrong command and undefined variables
set -e -u
# find out own directory
SCRIPTPATH=$(readlink -- "$0" || echo "$0")
SCRIPTDIR=$(CDPATH= cd -- "$(dirname -- "$SCRIPTPATH")" && pwd)
PREFIX="${SCRIPTDIR}/../../rtems/5"
export PATH="${PREFIX}/bin:${PATH}"
openocd -s "${PREFI... | true |
10cac573eb6b396486cb4e97c9c16a45172a66dd | Shell | krwmilz/citrun | /tt/ccitrunrun.sh | UTF-8 | 1,852 | 2.609375 | 3 | [] | no_license | #!/bin/sh -u
#
# Test that citrun run on itself works and the resulting binaries run.
#
exit 0
if [ `uname` = "OpenBSD" ]; then
rm -rf /usr/ports/devel/ccitrunrun
cp -R distrib/openbsd/ccitrunrun /usr/ports/devel/
fi
. tt/package.subr "devel/ccitrunrun"
plan 13
enter_tmpdir
export NO_CHECKSUM=1
pkg_check_deps
pkg_... | true |
fcef3a1f26b20da2989b325fdf0131fa8eb01346 | Shell | BM1880-BIRD/bm1880-system-sdk | /ramdisk/target/overlay/bm1880/etc/step3.sh | UTF-8 | 1,673 | 3.3125 | 3 | [] | no_license | cd /data
DATA_FREE_SPACE=`df -k /data | tail -n1|awk '{print $4}'`
DATA_FREE_SPACE_MB=`expr $DATA_FREE_SPACE / 1024`
echo "Data partition free space(MB):"
echo $DATA_FREE_SPACE_MB
EMMC_TAR_GZ_SIZE_MB=`du -m emmc.tar.gz | awk '{print $1}'`
echo "emmc.tar.gz size(MB)"
echo $EMMC_TAR_GZ_SIZE_MB
DATA_NEED_SPACE_MB=`expr ... | true |
45304d16f1f3b54369d0ba824433fc147dc3cc90 | Shell | MatteoGioioso/aws-tools | /periodicCostsNotification/deploy.sh | UTF-8 | 528 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
export EMAIL=${1}
export STACK_NAME=periodic-costs-notification
export BUCKET=${STACK_NAME}
# make the deployment bucket in case it doesn't exist
aws s3 mb s3://"${BUCKET}"
aws cloudformation package \
--template-file template.yaml \
--output-template-file output.yaml \
--s3-bucket "${BUCKE... | true |
2c0e16701070ebf5282e0d65b24fcb42b803af96 | Shell | IAmBullsaw/liu-utils | /scripts/liu-search-person.sh | UTF-8 | 1,263 | 4.1875 | 4 | [
"MIT"
] | permissive | #! /bin/bash
function usage() {
echo -e "usage:\n$0 [-flags] name\nExample '$0 [-flags] marco kuhlman'"
}
function help() {
echo "Help for bash/liu-search-person.sh"
echo ""
echo "DESCRIPTION
Fetches given parameters by searching the web with the persons name"
echo "USAGE
`... | true |
869daa0ce0125e0340e1ce7959500ecd261eab90 | Shell | kirinnee/nix-ci | /scripts/ci/docker-cd.sh | UTF-8 | 2,806 | 3.59375 | 4 | [] | no_license | #! /bin/sh
# check for necessary env vars
[ "${DOMAIN}" = '' ] && echo "'DOMAIN' env var not set" && exit 1
[ "${GITHUB_REPO_REF}" = '' ] && echo "'GITHUB_REPO_REF' env var not set" && exit 1
[ "${GITHUB_TAG}" = '' ] && echo "'GITHUB_TAG' env var not set" && exit 1
[ "${CI_DOCKER_IMAGE}" = '' ] && echo "'CI_DOCKER_IM... | true |
3baa3d3f847b269f398ebc44fd4eea6df27de5a3 | Shell | onzyone/k8s-tilt | /charts/stable/ambassador-chart/ci/providers/kubernaut.sh | UTF-8 | 1,577 | 3.765625 | 4 | [] | no_license | #!/bin/bash
CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
[ -d "$CURR_DIR" ] || { echo "FATAL: no current dir (maybe running in zsh?)"; exit 1; }
TOP_DIR="$CURR_DIR/../.."
# shellcheck source=../common.sh
source "$CURR_DIR/../common.sh"
################################################... | true |
50fe234c9f938dfa19d2820ac4a9107f583053b5 | Shell | zorangagic/awsinfo | /scripts/commands/ec2/security-groups.bash | UTF-8 | 998 | 3.125 | 3 | [
"MIT"
] | permissive | FILTER_QUERY=""
PERMISSIONS_QUERY=""
PERMISSION="{\"P1.FromPort\":FromPort||'',\"P2.ToPort\":ToPort||'',\"P3.IpProtocol\":IpProtocol||'',\"P4.Ipv4Ranges\":IpRanges[].CidrIp, \"P5.Ipv6Ranges\":Ipv6Ranges[].CidrIp,\"P6.UserIdGroupPairs\":UserIdGroupPairs}"
while getopts "p" opt;
do
case "$opt" in
p) PERMISSIO... | true |
269ba945fdd2da7c292e00549209a02536ae3dea | Shell | scil/ansible-ambari-manager | /scripts/python/async-python-command.sh | UTF-8 | 789 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
: ${PYTHON_COMMAND_FILE:?"Please set the PYTHON_COMMAND_FILE variable!"}
: ${PYTHON_COMMAND_FILE_FOLDER:?"Please set the PYTHON_COMMAND_FILE_FOLDER variable!"}
: ${PYTHON_COMMAND_FILE_PARAMS:?"Please set the PYTHON_COMMAND_FILE_PARAMS variable!"}
: ${PYTHON_COMMAND_PID_FILENAME:?"Please set the PYTHON_COMM... | true |
f7dda43e409a8e536036fd8beb6a6aa2f7c4c0bf | Shell | cloudstead/cloudos | /dev_bootstrap_ubuntu.sh | UTF-8 | 2,359 | 3.6875 | 4 | [] | no_license | #!/bin/bash
function die () {
echo 2>&1 "${1}"
exit 1
}
if [ $(whoami) != "root" ] ; then
sudo $0 $@ || die "Not run as root or cannot sudo to root"
exit $?
fi
apt-get install -y memcached redis-server postgresql daemon unzip npm
# Create dev/test databases and users, set passwords
for user in $(whoami) clo... | true |
1c2b53bd24883b3beef623c177959821c0aa7258 | Shell | mosszhaodphil/QUASAR_ANALSER | /estimate_cbf_quasar.sh | UTF-8 | 2,573 | 3.453125 | 3 | [] | no_license | #!/bin/sh
# Assign arguments
file_data=$1 # ASL tag - control file
file_option=$2 # Model based analysis options file
file_aif_option=$3 # Model free analysis AIF options file
echo "Begin model based analysis..."
home_dir=`pwd`
# Get current timestamp as output directory name
current_time=$(date +%H%M%S)
out_dir_mb... | true |
1967ca8ec868cbb8f657c440148279abd363abad | Shell | Dejvino/pinephone-arch-install | /00-sanity_check.sh | UTF-8 | 2,981 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Installation Scripts Sanity Check
#
# Checks the current environment before doing any real work.
#
echo "Sanity check starting..."
[ -f common.sh ] \
&& echo "common.sh ... found" \
|| { echo "File 'common.sh' not found in this directory. Change directory and try again." ; exit 1; }
source co... | true |
a5679ab08cf43db701e59f61e6c59ce30b972a2c | Shell | jmrolsson/SUSY_EWK_Truth | /scripts/make_filelists.sh | UTF-8 | 927 | 2.625 | 3 | [] | no_license | # Truth studies for RunII SUSY EWK
# Script for creating separate file lists for each sample
# Joakim Olsson <joakim.olsson@cern.ch>
# 2017-02-07
## February truth samples
#jo_version=feb2017
#tag=20170204_30k_1
## New truth samples, same generator settings as the "February samples" just different mass points, in or... | true |
5d3353636825aede8a6331f9bd77a78bbe78b2da | Shell | uc-cdis/ohif-orthanc-app-example | /orthanc/entrypoint.sh | UTF-8 | 373 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
while ! psql -h postgres -U postgres orthanc -c 'select now()'; do sleep 1; done
COUNT=0
#
# in gen3 /data/ presents as a mount point,
# but in docker-compose it just looks like a folder
#
while ! mount | grep '/data/' && [[ "$COUNT" -lt 20 ]]; do
sleep 1
COUNT=$((COUNT + 1))
done
if [[ ! -d /data/ ]]... | true |
b70b4e442a12dc48bc0e24b0d76a2a48d7f172b5 | Shell | sergey-platonov/electrol | /earth_bg.sh | UTF-8 | 2,796 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
resolution="1920x1080"
monitor=0
data_dir=$HOME/.local/share/electrol/
de="kde"
usage=\
"Usage: $(basename $0) [-d <pictures dir>] [-r <resolution>] [-m <monitor>] [-e <desktop environment>]\n\
\tscript updates XFCE wallpaper on specified monitro\n
params:\n
\tpictures dir\t - directory where images are ... | true |
dbfe8c1d1e9a290a573b12d9140758c1f0e7b046 | Shell | magurotuna/dotfiles | /install.sh | UTF-8 | 1,753 | 4.625 | 5 | [] | no_license | #!/bin/sh
# You have to execute this script ONLY ONCE.
# This script does the following things:
# 1. Fetch this repo
# 2. Install basic dependencies
set -eu
DOTPATH=${HOME}/dotfiles
REPO_URL=https://github.com/magurotuna/dotfiles.git
REPO_TARBALL=https://github.com/magurotuna/dotfiles/archive/master.tar.gz
function... | true |
123d0977765931e55d25b1256dbdd9d83b3ac20d | Shell | goober2186/sm | /functions/getops_check.sh | UTF-8 | 775 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# Check flag item variables to make sure that they are set
getopts_validate() {
if [ -z "$HOST" ] || [ -z "$TOKEN" ] || [ -z "$FILENAME" ]; then
if [ -z "$HOST" ]; then
echo "Missing -h <closedstack url>"
echo "summon.sh -h <url> -t <closedstack api token> -f <path to server list file>"
... | true |
5a1200909609f64b481c624e7c1d37f776c75feb | Shell | micha3lbrown/.dotfiles | /zsh/functions/confirm.zsh | UTF-8 | 230 | 3.421875 | 3 | [] | no_license | confirm()
{
local resp
while true
do
echo -n "$* [y/n]"
read resp
case $resp
in
[yY])
return 0
;;
[nN])
return 1
;;
*)
echo "Please enter y or n"
esac
done
}
| true |
18fb28691d534e2e2b84e184954e91341836cb2a | Shell | xmorera/SolrNet | /pack.sh | UTF-8 | 1,625 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env nix-shell
#! nix-shell -i sh
set -e
set -o pipefail
dotnet tool restore
version_js="$(dotnet tool run nbgv get-version --format json)"
export Version=$(echo $version_js | jq -r '.AssemblyInformationalVersion')
echo Tag: $Version
export PackageVersion=$(echo $version_js | jq -r '.NuGetPackageVersion')
... | true |
c2df705dad424b28c91889c320e192bdf89cb69c | Shell | Sid2-1971/spaghetti-scripts | /issue_brander/addip2issue | UTF-8 | 321 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/sh -e
# Instalar en /etc/network/if-up.d/addip2issue
if [ "$METHOD" = loopback ]; then
exit 0
fi
# Only run from ifup.
if [ "$MODE" != start ]; then
exit 0
fi
cat /etc/issue-original > /etc/issue
/usr/local/bin/get-ip-address >> /etc/issue
echo "" >> /etc/issue... | true |
b0b2895029e2740b4f2f5444e371945d775f09e6 | Shell | duaraghav8/solidityparser | /scripts/generate-solidity-parser.sh | UTF-8 | 413 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# This setup assumes you have antlr4 installed on your system
# as described at https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
java \
-Xmx500M \
-cp "/usr/local/lib/antlr-4.8-complete.jar:$CLASSPATH" \
org.antlr.v4.Tool \
-Dlanguage=Go solidity-antlr4/Solidity.g4... | true |
c5995e57ecbcf0d852410d83f44391e07b2d022e | Shell | rmtrane/ccdprobs_771 | /scripts/shell/find_project_folder.sh | UTF-8 | 303 | 3.328125 | 3 | [] | no_license | #!/bin/bash
path=$(pwd)
found="F"
while [ $path != / ] && [ $found != T ]; do
tmp=$(find "$path" -maxdepth 1 -mindepth 1 -name ".project_folder")
n_found=$(echo $tmp | wc -w)
if [ $n_found -gt 0 ]; then
found="T"
else
path="$(dirname "$path")"
fi
done
echo "$path"
| true |
f7460b8e00aa614605de513014ff4b87d62fb6e2 | Shell | ncuesta/tesis-md | /update-readme.sh | UTF-8 | 363 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# Actualiza el README con los archivos que tenga el proyecto, para facilitar su acceso.
REPO_URL="`git remote -v | grep fetch | tr "\t" ' ' | tr -s ' ' | cut -d ' ' -f 2 | sed 's/\.git$//'`/blob/master"
echo -e "# Tesina\n\nArchivos:\n" > README.md
for file in `find * -type f -name '*.md'`; do
echo "* [... | true |
f1ce261ce654222ca80476e5517e0189281a4b66 | Shell | drnic/cf-genesis-kit | /hooks/subkit | UTF-8 | 451 | 3.265625 | 3 | [] | no_license | #!/bin/bash
for kit in $@; do
if [[ $kit == "shield" ]]; then
SHIELD_ENABLED=1
fi
if [[ $kit == "blobstore-webdav" ]]; then
BOSH_MANAGED_BLOBSTORE=1
fi
if [[ $kit == "db-internal-postgres" ]]; then
BOSH_MANAGED_POSTGRES=1
fi
echo $kit
done
if [[ $BOSH_MANAGED_POSTGRES == 1 && $SHIELD_ENABLED... | true |
8a9a222ad1fa839d1372b3ca6f65326c90bd5b22 | Shell | GsDevKit/GsDevKit_home | /bin/private/gsDevKitTodeCommandLine | UTF-8 | 579 | 2.703125 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
#=========================================================================
# Copyright (c) 2015, 2016 GemTalk Systems, LLC <dhenrich@gemtalksystems.com>.
#
# MIT license: https://github.com/GsDevKit/GsDevKit_home/blob/master/license.txt
#===========================================================... | true |
e0aa0a2d6b9c315224063c364d2bb56e838fdcdc | Shell | Karkanius/MIECT | /Ano_2/LFA/antlr4-bin-v5/bin/antlr4-run | UTF-8 | 344 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
IFS=$'\n'
count=`find . -name \*Main.class | wc -l`
if ((count == 0)); then
echo "Main file not found!"
exit 1
elif ((count > 1)); then
echo "Too many main files!"
find . -name \*Main.java -printf " %p\n"
exit 1
fi
main=`find . -name \*Main.class | sed 's/.class//g' | sed 's/^.\///1'`
c... | true |
e2ddcb856961b07268893b1d628038b47f11ca55 | Shell | FauxFaux/debian-control | /c/cvsd/cvsd_1.0.24_amd64/postinst | UTF-8 | 9,727 | 4.15625 | 4 | [] | no_license | #!/bin/sh
set -e
# source debconf library.
. /usr/share/debconf/confmodule
# location of the configfile
configfile="/etc/cvsd/cvsd.conf"
# location of the file that will be edited
# only when editing is complete will $configfile be overwritten
tmpconfigfile=`mktemp`
# location of the file that will be used tempora... | true |
897537ab5ab29233dc0eb0945164551875f132c3 | Shell | jakejarvis/dotfiles | /npm/install_globals.sh | UTF-8 | 1,068 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
# fetch and install Volta (better nvm)
if ! command -v volta &>/dev/null; then
# curl https://get.volta.sh | bash -s -- --skip-setup
brew install volta
fi
volta install node@latest # remove when LTS officially supports arm64
volta install npm@8
volta install yarn@1
volta fet... | true |
e75d360ea0117f0fb9b6a701a1ecec0c47ee8d04 | Shell | preym17/csit | /resources/tools/disk-image-builder/centos/build.sh | UTF-8 | 7,943 | 3.6875 | 4 | [
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | #!/bin/bash -e
# Copyright (c) 2016 Cisco and/or its affiliates.
# 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 |
2bd8163f5a1fcd759e6c2f1fb253eede47193ac9 | Shell | Weltraumschaf/vagrant | /_scripts/install-minikube.sh | UTF-8 | 1,772 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
# @see: http://wiki.bash-hackers.org/syntax/shellvars
[ -z "${SCRIPT_DIRECTORY:-}" ] \
&& SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
SCRIPT_DIR=$(dirname "${SCRIPT_DIRECTORY}")
PROJECT_DIR="/vagrant"
SCRIPT_DIR="${PROJECT_DIR}/_scripts"
# ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.