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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d3bb3270f200874b7280ad655a7bd4134f80059e | Shell | HERA-Team/hera-images | /test-librarian/launch.sh | UTF-8 | 2,161 | 3.5 | 4 | [
"MIT"
] | permissive | #! /bin/bash
# Copyright 2015-2016 the HERA Collaboration
# Licensed under the MIT License.
#
# We need to set up the runtime configuration of the Librarian server. We must
# be called with an argument giving the name of the Librarian database to use.
if [ -z "$1" ] ; then
echo >&2 "error: you must specify the nam... | true |
f57d942774bacd4b4d4b1a8a2e2633ca88092e8f | Shell | brianlan/deb-deps-downloader | /download.sh | UTF-8 | 1,225 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
ARCHIVE_DIR="/var/cache/apt/archives"
if [ $# -lt 2 ]
then
echo "Invalid number of arguments. Usage: download.sh <ubuntu_version> <package_name> [in_china]"
exit 1
fi
UBT_VER=$1; shift;
PACKAGE=$1; shift;
IN_CHINA=$1; shift;
TAR_PATH="${PACKAGE}-${UBT_VER}.tar.gz"
if [ "${IN_CHINA}" =... | true |
c112db5eb5b46d91ae45ee81fbdfefbc44c4e733 | Shell | seaglex/dots | /.bashrc | UTF-8 | 362 | 2.546875 | 3 | [] | no_license | # Useful bash script append to ~/.bashrc
# Set git autocompletion and PS1 integration
if [ -f /usr/share/doc/git-1.7.1/contrib/completion/git-completion.bash ]; then
. /usr/share/doc/git-1.7.1/contrib/completion/git-completion.bash
fi
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export... | true |
9fab5f99cdefba56907b644eda8d75631efc342a | Shell | nitinkk13/jenkins-project | /systeminfo.sh | UTF-8 | 391 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#Author: Nitin Kumar
Name=`whoami`
ID=`id -u`
Kernel=`uname`
Version=`uname -r`
current_dir=`pwd`
echo -e "************System Information*************** \n Login Name: $Name \n Login ID: $ID
Working Kernel Name: $Kernel
Working Kernel Version: $Version
Current Working Directory: $current_dir
***********... | true |
4b7797170677e812eab05416684610f79a2a3ec0 | Shell | lendup/heroku-buildpack-ironbank | /bin/release | UTF-8 | 512 | 2.609375 | 3 | [] | no_license | #!/bin/sh
BUILD_DIR="$1"
if [ ! -f "$BUILD_DIR/Procfile" ]; then
cat <<EOF
default_process_types:
web: ./apache-maven/bin/mvn -P '!local' --settings ./assets/settings.xml -Dmaven.repo.local=./.m2_repository play:run -Dplay.httpPort=\$PORT -Dplay.id=\$PLAY_ID -Dplay.serverJvmArgs="$JAVA_OPTS"
worker: ./apa... | true |
2938c983e9cc9847ab89096869ad7bd6cd70e314 | Shell | modernish/modernish | /share/doc/modernish/examples/sort-music.sh | UTF-8 | 4,116 | 3.90625 | 4 | [
"ISC",
"CC0-1.0",
"BSD-3-Clause"
] | permissive | #! /usr/bin/env modernish
#! use safe -k
#! use sys/cmd
#! use var/assign
#! use var/loop
#! use var/string
harden -p cut
harden -e '>1' ffprobe # ffprobe comes with the ffmpeg package
harden -p -t mkdir
harden -p -t ln
harden -p printf
PATH=/dev/null # more bug-proof: only allow hardened external commands
# Have a d... | true |
8d71afa3ddb80379f4ce39c7772e06f46cc76a0b | Shell | josefglatz/dotfiles | /zsh_custom/functions.zsh | UTF-8 | 6,265 | 3.8125 | 4 | [] | permissive | # Loads `.env` file from a filename passed as an argument
loadenv() {
while read line; do
if [ "${line:0:1}" = '#' ]; then
continue # comments are ignored
fi
export $line > /dev/null
done < "$1"
echo 'Loaded!'
}
# broot (brew) https://dystroy.org/broot/install-br/
# ---------------------------... | true |
3553ba500acb5614ab4ccc9b58e9fe0948762c1b | Shell | StevenWColby/scripts | /.bash_aliases | UTF-8 | 3,197 | 2.640625 | 3 | [] | no_license | # alias cls='clear'
alias csl='csmake --list-commands ; csmake --list-phases'
# alias drmc="docker rm `docker ps -a -q --filter status=exited`"
# alias drmi="docker images | awk 'NR>1 {print $3}' | xargs docker rmi"
# alias di='docker images'
# alias dla='docker ps -a; echo ''; docker images -a ; echo ----- dangling --... | true |
b644d0c9c61df45d63d51854919609b42af230f8 | Shell | antsman/rpi-jenkins | /get-versions.sh | UTF-8 | 612 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# Outputs versions found in specified container, saves same also
# in properties file for later use in Jenkinsfile
VERSIONS=version.properties
test -n "$1" && (
echo JENKINS_VERSION=\"$(docker exec -t $1 cat /data/war/META-INF/MANIFEST.MF | grep Jenkins-Version | awk '{ print $2 }' | tr -d '\r')\"
... | true |
7970b9029b69d51297d4a9754b99a28cccd56be5 | Shell | emoore24/dotfiles | /install.sh | UTF-8 | 1,853 | 3.421875 | 3 | [] | no_license | echo "PREREQUISITES: "
echo "Make sure you have installed ZSH and Neovim"
read -p "Press Enter to Continue, or Ctrl-C to exit" continuevar
BUNDLE_DIR=~/.vim/bundle
# "dirname" gives directory name of script (BASH_SOURCE). cd to directory and run pwd to get directory of this script
SCRIPT_DIR="$( cd "$( dirname "${BAS... | true |
7228a6089719649d5a1e247508352d468e11ff7e | Shell | tlockney/home | /osx_install.sh | UTF-8 | 949 | 2.875 | 3 | [] | no_license | BASE_PACKAGES=$(cat <<EOF
ansible
awscli
bash
cmake
coreutils
curl
emacs
gcc
gh
git
gnupg
gzip
htop
hugo
jq
mosh
nvm
pandoc
pipenv
pipx
pyenv
tmux
tree
unzip
wget
zsh
zsh-completions
EOF
)
CASK_PACKAGES=$(cat <<... | true |
c5fbf31a1d1983f36d5e46c40e63cd9b9661bd75 | Shell | VeritoneAlpha/zookeeper-docker | /conf/run.sh | UTF-8 | 817 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# This is the base process of the container.
init()
{
chown zookeeper:zookeeper /var/lib/zookeeper/
service zookeeper-server init
}
# Start zookeeper and tail logs to keep PID 1 going.
start_container()
{
init
start_zookeeper
sleep 5
tail -f /var/log/zookeeper/*.out
}
# Start the tomcat ser... | true |
bebd31b6a68dd5348122aae776647a367aec89c3 | Shell | endreszabo/raklap | /.raklaputils.sh | UTF-8 | 642 | 3.265625 | 3 | [] | no_license | #!/bin/bash
set -o errexit
_mount_device() {
sudo mount -v -t vfat "${RAKLAP_BLOCKDEVICE}" "${RAKLAP_MOUNTPOINT}" -o "${RAKLAP_MOUNTOPTS}"
}
_umount_device() {
sudo umount -v "${RAKLAP_BLOCKDEVICE}"
}
_format_device() {
sudo mkfs.vfat -n RAKLAP -i "${1:-00000000}" -v -- "${RAKLAP_BLOCKDEVICE}"
}
_wipe_device() ... | true |
7531f70af958fb2c619c60de869ec011945e39e7 | Shell | FabianGabor/Shell-programming | /walesiStat.sh | UTF-8 | 431 | 3.3125 | 3 | [] | no_license | #! /bin/bash
sorokSzama=`wc -l $1`
szavakSzama=`wc -w $1`
karakterekSzama=`wc -m $1`
sorokSzama=${sorokSzama:0:3}
szavakSzama=${szavakSzama:0:4}
karakterekSzama=${karakterekSzama:0:5}
echo "Sorok szama: $sorokSzama"
echo "Szavak szama: $szavakSzama"
echo "Karakterek szama: $karakterekSzama"
echo "Atlagos soronkenti... | true |
431541bada67640382cd65532759ae5414eac850 | Shell | mohitekv/ShellBasic | /sequencial/unitconverter.sh | UTF-8 | 169 | 2.734375 | 3 | [] | no_license | #!/bin/bash
ft=12
ftCon=$((ft*42))
echo 42in = $ftCon ft
w=60
l=40
area=$(($w*$l))
echo area of 60 *40 feet plot is : $area
echo area of 25 such plots are $((25*$area)) | true |
ef6e3d274e406409ea3894a14df627d03f3f2601 | Shell | mpvelarde/django-wedding-website | /deploy/gunicorn/gunicorn_start | UTF-8 | 554 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
NAME="wedding-website"
DIR=[path to project]
USER=[user]
GROUP=[group]
WORKERS=3
BIND=unix:[path to socket]
DJANGO_SETTINGS_MODULE=bigday.settings
DJANGO_WSGI_MODULE=bigday.wsgi
LOG_LEVEL=error
LOG_FILE=[path to log file]
cd $DIR
. venv/bin/activate
export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE
expo... | true |
293d0bda8de54bc9207f55f69e513f5cdcd28726 | Shell | nmzuo/Act-L-Act-network | /feat_level1_RL_fslsub.sh | UTF-8 | 339 | 3 | 3 | [] | no_license | #!/bin/bash
nSubj=30 ## total RL: 467
for sec in `seq 1 1 $nSubj`
do
sec1=${sec}
sec2=`echo "$sec+45-1"|bc -l `
if ([ $sec2 -gt $nSubj ])
then
sec2=$nSubj
fi
sec2=${sec}
echo "nStart:nEnd " $sec1 $sec2
/mnt/software/fsl5.0/bin/fsl_sub bash feat_level1_RL.sh $sec1 $sec2
do... | true |
63cd4a00a1c728150ff6f453aba64f9bcf7ae26b | Shell | VinceBarresi/random-gif | /random_gif.sh | UTF-8 | 171 | 2.8125 | 3 | [] | no_license |
function get_gif {
url="http://api.giphy.com/v1/gifs/random?&api_key=dc6zaTOxFJmzC"
gif=$(curl $url | jq -r '.data.url')
gif=$gif/fullscreen
open $gif
}
get_gif
| true |
b0beebdc27e3fe8709cbfefa5dcab172051c9da5 | Shell | Rican7/dotfiles | /local/bin/emux | UTF-8 | 3,139 | 4.28125 | 4 | [] | no_license | #! /usr/bin/env bash
#
# Script to wrap the most common "tmux" functionality. Like a super-alias.
#
#
# Define constants
readonly STARTUP_SCRIPT_DIR="$(printf "%s.d" "${BASH_SOURCE[0]}")"
# Create a function to echo out errors
function error() {
# Let's get our arguments
local message=$1
# Echo out our message
e... | true |
470113699d199f8b0b6b09c2fd3c9f8d8026f8a0 | Shell | guziy/shell_scripts_for_rpn_files | /select_fields/soumet_selection.sh | UTF-8 | 618 | 2.671875 | 3 | [] | no_license |
#!/bin/bash
# samples_dir="/gs/project/ugh-612-aa/huziy/Output/GL_Hostetler/Samples"
samples_dir="/sf1/escer/sushama/restore/huziy/Samples"
coords_file=${samples_dir}/../tictacs.rpn
#===================
. s.ssmuse.dot diagtools fulldev
# create the coords file
rm -f ${coords_file}
for f in ${samples_dir}/*/pm*; d... | true |
e7c173f15c2b7661778ba92da4df80adc8b1547b | Shell | paritytrading/philadelphia | /scripts/generate-repository | UTF-8 | 2,591 | 3.8125 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Copyright 2015 Philadelphia authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | true |
96312dd95492bc42f2a82c57f964f2a0ec90290a | Shell | GorillaFu/holberton-system_engineering-devops | /0x05-processes_and_signals/4-to_infinity_and_beyond | UTF-8 | 127 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
# print a line of text infinitely w bash
for (( ; ; ))
do
echo "To infinity and beyond"
sleep 2
done
| true |
d8cd521bc29bda0a887e92c26a9cbae8d4c7896c | Shell | exponea/pg8000 | /circleci/install-pypy3.3-5.5.sh | UTF-8 | 465 | 2.875 | 3 | [
"BSD-3-Clause"
] | permissive | set -x
set -e
BUILDROOT=$HOME/pg8000
if [[ ! -e pypy3.3-5.5-alpha-20161013-linux_x86_64-portable/bin/pypy ]]; then
wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.3-5.5-alpha-20161013-linux_x86_64-portable.tar.bz2
tar -jxf pypy3.3-5.5-alpha-20161013-linux_x86_64-portable.tar.bz2
rm -f pyp... | true |
a6c11545fa6ad18e759a03e38492d28845f56794 | Shell | timfel/dotfiles | /bin/makedeb.sh | UTF-8 | 4,020 | 3.609375 | 4 | [] | no_license | #! /bin/sh
#
# makedeb.sh - Utility for easy packaging of binaries
# Copyright (C) 2005-2006 Tommi Saviranta <wnd@iki.fi>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of ... | true |
4753affba9ae9784859d09e2baa615b9639ace9d | Shell | thehyve/ohdsi-etl-sweden | /execute_etl_mac.sh | UTF-8 | 9,152 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Created by Maxim Moinat.
# Copyright (c) 2016 The Hyve B.V.
# This code is licensed under the Apache License version 2.0
# Python 3 is required!
# Command line Variables
DATABASE_NAME="$1"
USER="$2"
ENCODING="$3"
DATABASE_SCHEMA="$4"
VOCAB_SCHEMA="$5"
# ETL parameters
DATA_START_DATE="19970101"
DATA_END_... | true |
9d226cf97ebda786a52ac826ffbe29e2e50012a9 | Shell | PapaSchlunz/swarm | /modules/bee/beeNetwork | UTF-8 | 591 | 3 | 3 | [] | no_license | #!/bin/bash
# Check if network changed
if [ "$beeNetwork" != "$currentBeeNetwork" ]; then
if [ "$beeNetwork" = "mainnet" ]; then
sudo echo "OPTIONS=\"--config config.chrysalis-mainnet.toml\"" > /etc/default/bee
fi
if [ "$beeNetwork" = "comnet" ]; then
sudo echo "OPTIONS=\"--config config.ch... | true |
e2263e2a50316c7366c94fd5b50f5100bb983747 | Shell | CDS-VRN/CDS-Assembly | /deploy.sh | UTF-8 | 7,185 | 3.9375 | 4 | [] | no_license | #!/bin/bash
set -e
if [[ $# < 3 ]]
then
echo "Insufficient arguments provided, required: <settings file> <docker host address tcp://127.0.0.1:2375> <deploy version> [<version to upgrade from if different from currently running>]"
exit 1
fi
SETTINGS_FILE=$1
DOCKER_HOST=$2
DOCKER_CMD="docker -H ${DOCKER_HOST}"... | true |
d8ca00a8279e151fadf31e2761a0a5ebdbe9a913 | Shell | greearb/lanforge-scripts | /rping.bash | UTF-8 | 2,520 | 4 | 4 | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
## ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ##
## Ping a random ip every second, indefinitely. The ping command
## has a deadline of *count* seconds and wait time of 1 second.
## This script is aware of vrf_exec.bash and LF_NO_USE_VRF.
##
## Example Usage:
##
## Ping a random ... | true |
7fe3c5577e7d115a43509ddb3cf658eaaebb3f41 | Shell | wongoo/kubernetes-installation | /etcd/etcd-install-from-binary.sh | UTF-8 | 1,998 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
export V_ETCD_VER=v3.3.2
if hash etcd 2>/dev/null; then
echo "etcd exists"
else
echo "-------> install etcd"
if [ -f etcd-${V_ETCD_VER}-linux-amd64.tar.gz ]
then
echo "etcd-${V_ETCD_VER}-linux-amd64.tar.gz exists"
else
wget https://github.com/coreos/etcd/releases/downlo... | true |
2fd2cb88f7a355fdaa6fa99741d28ba596c25bc0 | Shell | demonlibra/nemo-actions | /actions/qbittorrent.sh | UTF-8 | 1,388 | 3.28125 | 3 | [] | no_license | #!/bin/bash
FORM=`yad --borders=10 --title="qbittorent" --text="" --text-align=center --form --separator="," --item-separator="|" --field=:LBL --field="Путь для загрузки:DIR" --field="Пропустить диалоговые окна:CHK" --field="Загружать последовательно:CHK" --field="Загружать с первой и последней части:CHK" --field="Доб... | true |
126a9b7f60b55a9678de5976f97ce75b2e40146f | Shell | luningcowboy/gkEngine | /exec/tools/resource_task/osx_tga2dds_engine.sh | UTF-8 | 644 | 3.015625 | 3 | [] | no_license | cd ../global_task/
source set_global_env.sh
foreachd(){
# 遍历参数1
for file in $1/*
do
# 如果是目录就打印处理,然后继续遍历,递归调用
if [ -d $file ]
then
#echo $file"是目录"
foreachd $file
elif [ -f $file ]
then
#echo $file pvr process
if [ "${file##*.}" = "tga" ];
then
echo $file
#$GKENGINE_HOME/tools/pvrtextool -m -f a8r8g8b8 -shh -i $file -o... | true |
edb8f0104e19f50315ea51185bb1ae7d709141d0 | Shell | bsb808/linux_setup | /ubuntu/apt_18_ros.sh | UTF-8 | 1,061 | 2.5625 | 3 | [] | no_license | #!/bin/bash
# accept packages from ROS
echo Accept packages from ROS...
sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
apt update
# RO... | true |
3c3f16362fbd6bfac5ef169c20f09e402d5777ea | Shell | alexpaulzor/CursedGames | /sudoku/benchmark.sh | UTF-8 | 151 | 2.625 | 3 | [] | no_license | #!/bin/bash
for p in $(cat puzzles/top95.txt); do
(date; time ./sudoku.py solve -v $p) 2>&1 | tee -a puzzles/solvetimes/$p.log
sleep 0.1
done
| true |
da409f520a90158cadf8185e9ff630289ce9dcec | Shell | kishan811/Scripting-Assignments | /Grep, Sed, Awk and BASH programming/3_2_5.sh | UTF-8 | 842 | 2.625 | 3 | [] | no_license | awk 'BEGIN{print "\n\n*** Grade Report for the ABC course *** \n\nStudent : Gender: Grade"
max = 0;p=0;avg=0}
{ if(NR==2){total=$3+$4+$5;min=total;name=$1;max=total;i=0;}
if(NR>1) {
total=$3+$4+$5;
p=p+total;
if(max<total)
{
max=total;
name=$1;
}
min=(min>total)?total:min;
if(total>=95&&... | true |
60e75821cc0f63c27a88ff005ef35c81b56a7197 | Shell | lzpfmh/ink | /modules/build_mods.sh | UTF-8 | 260 | 3.203125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
modules=`find -maxdepth 1 -type d`
LD=${ARCH_PREFIX}ld
LDFLAGS=-shared
for mod in $modules
do
if [ ! $mod = "." ]; then
echo "find mod ${mod}"
cd $mod
make
cp build/*.so "../${mod}.so"
cp build/*.dll "../${mod}.dll"
cd ../
fi
done | true |
b3733fdf2416ca92b46725c2f14e404fa30f671c | Shell | darco2018/tutorial_ranking | /scripts/build-app-image.sh | UTF-8 | 456 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
source ./scripts/docker-config.sh
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Building ${app_image} image from Dockefile... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
# the whole image is always created anew, rather than adding new changes
echo "docker build -f ./docker/Dockerfile -t ${app_image} \
--b... | true |
c982a1f4a1213674b89692948877c948a02e7d9c | Shell | dethrophes/Experimental-Bash-Module-System | /bash/TesterFuncs.sh | UTF-8 | 9,698 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#set -o errexit
#set -o errtrace
#set -o nounset
[[ "${DEBUG:-0}" != "1" ]] || set -o xtrace
#<KHeader>
#+=========================================================================
#I Project Name: Scripts
#+=========================================================================
#I Copyright: Copyri... | true |
5db40d5ae423e5c1f5fdd339d29438237cbdcad2 | Shell | SLBogach/services | /setup.sh | UTF-8 | 2,004 | 3.140625 | 3 | [] | no_license | #!/bin/bash
#COLORS
BLUE='\033[36m'
WHITE='\033[0m'
RESET='\033[0m'
FONBLUE='\033[46m'
#STARTING PROJECT
echo -e "$BLUE ===================================== $RESET"
echo -e "$BLUE =========FT_SERVICES PROJECT========= $RESET"
echo -e "$BLUE ===================================== $RESET"
echo -e "$BLUE Starting minik... | true |
242f63caee99ffa43ae961dc90d1123286321bbb | Shell | jcm300/DotFiles | /arch_linux_installation/install.sh | UTF-8 | 3,492 | 3.703125 | 4 | [] | no_license | #!/bin/bash
klayout=pt-latin9
font=Lat2-Terminus16
wifi_interface=wlp2s0
country=Portugal
timezone=Europe/Lisbon
locale=pt_PT.UTF-8
hostname=asusS410UN
username=jcm300
cpu=intel #or amd
DIR="$(cd "$(dirname "$0")" && pwd)"
escape_text_for_sed(){
text="$1"
# escape all backslashes first
text="${text//\\/... | true |
f67c8ab2fdccd5034a6c1611b8b00324020c5442 | Shell | sweverett/Balrog-GalSim | /plots/ms_matcher | UTF-8 | 769 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Run: $chmod +x ms_matcher
in1=$1
in2=$2
out_1and2=$3
out_1not2=$4
out_2not1=$5
ra1=$6
dec1=$7
ra2=$8
dec2=$9
# Perform matches #
echo "Matching ..."
echo " "
/data/des30.a/data/kgrabow/stilts tmatch2 in1=${in1} ifmt1=fits in2=${in2} values1="${ra1} ${dec1}" values2="${ra2} ${dec2}" matcher=sky params=... | true |
b18a52198c3c685aef39fedc5894970cd65d0bf9 | Shell | m-lab/epoxy-images | /configs/stage3_ubuntu/opt/mlab/bin/write-metadata.sh | UTF-8 | 427 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# This script writes various pieces of metadata to files in a known location.
# This directory can be mounted into experiment pods so that the experiment can
# have some awareness of its environment. The experiment may optionally include
# this metadata in its test results.
METADATA_DIR=/var/local/metada... | true |
cf3c4487c2b45fc26043db2cb4a4904327d78566 | Shell | GlowMUCK/GlowMUCK | /src/upglow | UTF-8 | 279 | 2.953125 | 3 | [] | no_license | #!/bin/sh
if [ ! -x glowmuck ]; then
echo "Need to compile glowmuck first."
exit 1
fi
echo "Moving glowmuck..."
rm -f ../game/glowmuck.old
mv -f ../game/glowmuck ../game/glowmuck.old
cp -f glowmuck ../game
echo "Restarting glowmuck..."
kill -USR1 `cat ../game/glowmuck.pid`
| true |
418f8494e2ec9258626e9351c9482c72f4c38e17 | Shell | pyhero/mogodbSlowAnalysis | /mongodb | UTF-8 | 703 | 3.875 | 4 | [] | no_license | #!/bin/bash
#
#
BIN="/root/.pyenv/versions/3.5.2/bin/python3.5"
DIR=$(cd `dirname $0`;echo $PWD)
CONF="$DIR/mongodb.py"
PROG="mongodb"
PID_FILE=/tmp/${PROG}.pid
LOG_FILE=/tmp/${PROG}.log
case $1 in
start)
if [ -f $PID_FILE ];then
echo "Maybe already running...! Pid file is: $PID_FILE"
exit 2
fi
nohup... | true |
09c1dab96cf746a00b0d18aea36a2088c60da413 | Shell | clickbg/scripts | /Multiplatform/multiplatform_nfs_mon.sh | UTF-8 | 609 | 3.75 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/bash
# Author: Daniel Zhelev @ https://zhelev.biz
# USES BASH FUNCTIONALLITY RUN ONLY UNDER BASH
# Monitoring script for hung NFS shares
#
# Execution: Called by operator
NFS_MOUNTS=`grep nfs /etc/vfstab|awk '{print $3}'`
HAVE_NFS=`grep nfs /etc/vfstab | wc -l`
QUITCODE=0
if [ $HAVE_NFS -eq 0 ]
then
echo ... | true |
888070b059665370cd63bfe90816c4774a262ba3 | Shell | inferiorhumanorgans/aomi | /tests/integration/smoke.bats | UTF-8 | 1,955 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
# -*- mode: Shell-script;bash -*-
VAULT_LOG="${BATS_TMPDIR}/aomi-vault-log"
setup() {
if [ -e "${HOME}/.vault-token" ] ; then
mv "${HOME}/.vault-token" "${BATS_TMPDIR}/og-token"
fi
nohup vault server -dev &> "$VAULT_LOG" &
VAULT_PID=$!
export VAULT_ADDR='http://127.0.0.... | true |
4004b2a71059791460147964f9a3be22f7d02bf7 | Shell | keefehuang/preCICE-2DHeatSolver | /Python2D/building/elastictube_activate.sh | UTF-8 | 677 | 2.625 | 3 | [] | no_license | #!/bin/bash
source ./precice_config.sh
############
export PRECICE_ROOT
export ANACONDA_ROOT
export ELASTICTUBE_ROOT
export SCONS_PARALLELJOBS
export PRECICE_MPI_IMPLEMENTATION
CONDA_ENV=precice_tube
CONDA_ENV_ROOT=$CONDA_PREFIX
export PKG_CONFIG_PATH=$CONDA_ENV_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY... | true |
e68ca35c9d63deb7a62d9e1121bd3b47daa43da2 | Shell | crocokyle/misc-scripts | /hadoop/ramdisktest/copy2backup.sh | UTF-8 | 370 | 2.5625 | 3 | [] | no_license | #!/bin/bash
#need to be done by normal user.
if [ -e $1 ]
then
echo $1 "already exist"
exit
fi
docluster mkdir $1
time cp -a /mnt/ramdisk1/hdfs $1 &
time ssh 10.0.0.73 cp -a /mnt/ramdisk1/hdfs $1 &
time ssh 10.0.0.74 cp -a /mnt/ramdisk1/hdfs $1 &
time ssh 10.0.0.75 cp -a /mnt/ramdisk1/hdfs $1 &
time ssh 10.0.0.... | true |
2155d87080a8d799ca78460cf27f4443c94331bb | Shell | lenaschimmel/mysql-cnf-graph | /mysql-cnf-graph | UTF-8 | 2,578 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Output the README.md for conveiniance. Prepend it with slashes so that dot will ignore it
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -f $SCRIPTDIR/README.md ]; then
while IFS='' read -r line || [[ -n "$line" ]]; do
if [[ $line = "## Example" ]]; then
break
... | true |
1faa6dcde6c364971bd0af43e46f33a1f78a3e4a | Shell | peggles2/sba-eli | /config/deploy.sh | UTF-8 | 1,218 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env bash
set -ex
echo 'export TAG=$(echo ${CIRCLE_SHA1} | head -c 8)' >> $BASH_ENV
echo 'export BRANCH=$(echo ${CIRCLE_BRANCH} | sed -r 's/[_]+/-/g')' >> $BASH_ENV
echo 'export DATE=$(date '+%Y-%m-%d')' >> $BASH_ENV
source $BASH_ENV
function createCluster() {
aws ecs create-cluster --cluster ${BRANCH}
}... | true |
6653570336e016644701c2949b767887f05e220f | Shell | johnstyle/.jscripts | /bash/utils/install/apache/InstallWebsite.sh | UTF-8 | 8,159 | 3.734375 | 4 | [] | no_license | #!/bin/bash
reset='\033[0m'
black='\033[0;30m'
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
blue='\033[0;34m'
purple='\033[0;35m'
cyan='\033[0;36m'
white='\033[0;37m'
if [ "$(whoami)" = "root" ]; then
echo -en "Nom de domaine : "
read website
if [ "${website}" ]; then
defaultUser=${website%... | true |
eb00876f69a2f831a55af9497cf671345ff269a6 | Shell | secsecsec/spacefish | /tests/fileops/runtest.sh | UTF-8 | 229 | 3.125 | 3 | [] | no_license | #!/bin/sh
if [ -z "$1" ]
then
echo "No argument supplied"
exit 1
fi
PREFIX="LD_PRELOAD=../../bin/libufs.so LD_LIBRARY_PATH=../../bin/"
echo "ORIGINAL $1"
eval "./$1"
echo "USERLEVEL $1"
eval "$PREFIX ./$1"
| true |
b8da5fbff8530356e3c502aa898128c5d623f6ff | Shell | pnnlhep/osg-compute | /drain.sh | UTF-8 | 370 | 2.8125 | 3 | [] | no_license | #!/bin/bash
touch /var/lib/dirac_drain
echo START=UNDEFINED > /etc/condor/config.d/00shutdown
kill -HUP $(cat /var/run/condor_master.pid)
while true; do
L=$(ps -o pid --no-headers --ppid $(cat /var/run/condor_master.pid) | while read x; do ps -o pid --no-headers --ppid $x; done | wc -l)
[ $L -le 0 ] && break
... | true |
92919308392e7e3b9bef9b7d576dba021e018375 | Shell | anyks/backups | /anyks/modules/scp.sh | UTF-8 | 2,135 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
#
# author: Forman
# skype: efrantick
# phone: +7(920)672-33-22
#
# Выводим сообщение о существовании модуля
print_log "${c_yellow}Module ${module} - for backup remote files${c_nc}"
# Считываем параметры из конфигурационного файла
config_params="user password"
# Извлекаем данные... | true |
60f51d70fbdee3ce67216ab5d1ff6948b25554c4 | Shell | lingo/scripts | /svnwhere | UTF-8 | 122 | 2.84375 | 3 | [] | no_license | #!/bin/bash
if [ "x$1" != "x" ]; then
dir="$1"
else
dir="$PWD"
fi
(cd "$dir"; svn info | grep URL: | awk '{print $2}' )
| true |
3decfc6e2b3f8e6f8c0f1aec5f49db6fd2ada446 | Shell | YenHaoChen/my-rm | /my_rm.sh | UTF-8 | 4,282 | 3.921875 | 4 | [] | no_license | #!/bin/sh
# by vegetablebird last modified 2020.08.21
# USAGE: (1) ln -s $PWD/my_rm.sh ~/.local/bin/rm
# (2) export PATH=~/.local/bin:$PATH
# (3) which rm
#FEATURE: Try to create a new trash directory for each rm command
# but not guaranteed if two rm commands is committed at a same time
#FEATURE: If two fil... | true |
af51c3a77ab7f9094567160ca13955b97a624e08 | Shell | dqylyln/HouseMD | /bin/housemd | UTF-8 | 304 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
if [ -z $JAVA_HOME ];
then
echo "Please set JAVA_HOME to JDK 6+!"
exit 1
else
ROOT=`dirname "$0"`
if [ -f $JAVA_HOME/lib/tools.jar ];
then
BOOT_CLASSPATH=-Xbootclasspath/a:$JAVA_HOME/lib/tools.jar
fi
java $BOOT_CLASSPATH -jar $ROOT/housemd.jar "$@"
fi
| true |
0bd77ec55b26d0751cb8caedd12122971ed00ea5 | Shell | danij/Forum.WebClient | /docker/bootstrap.sh | UTF-8 | 679 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
HOSTNAME="$1"
mkdir /forum/config/Forum.WebClient
mkdir /forum/config/Forum.WebClient/doc
mkdir /forum/config/https
mkdir /forum/logs/nginx
cp -r /var/www-old/* /var/www
cp /var/www/html/config/config.js /forum/config/Forum.WebClient/config.js
sed -i 's#"google"#//"google"#' /forum/config/Forum.WebClient... | true |
6a4a4eaed13ed7479a230bf623740fa58b32712d | Shell | Gingeropolous/mos-cgi | /index.html | UTF-8 | 1,083 | 2.875 | 3 | [] | no_license | #!/bin/bash
echo "Content-type: text/html"
echo ""
echo '<html>'
echo '<head>'
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
echo '<title>Monerodo Operating System Web Interface</title>'
echo '</head>'
echo '<body>'
#make username variable global
export u="$USER" # New version attempts t... | true |
f8a58bfda50eefda51a6f2db84f46f04ce1fc29d | Shell | kapliy/hepcode | /ana/branches/dg/CommonAnalysis/RootCore/scripts/update.sh | UTF-8 | 1,924 | 3.6875 | 4 | [] | no_license | #!/bin/sh
source "`dirname $0`/preamble.sh" "$0"
VERSIONFILE="$1"
test "$VERSIONFILE" != "" && test \! -f $VERSIONFILE && echo did not find version file $VERSIONFILE && exit 2
function check_head {
test "`echo $1 | grep /tags/`" != "" && return 1
test "`echo $1 | grep /trunk/`" != "" && return 0
test "`... | true |
c56dc486df62857f01e64e407459f8d18e1c63a3 | Shell | BenUtzmich/Nautilus-Caja-Scripte | /FEScriptsNautilus/zMORE/MAPtools/00_oneKMLfile_REFORMAT-FoldLines_sed.sh | UTF-8 | 5,912 | 4.09375 | 4 | [] | no_license | #!/bin/sh
##
## Nautilus
## SCRIPT: 00_oneKMLfile_REFORMAT-FoldLines_sed.sh
##
## PURPOSE: For a user-selected KML (Keyhole Markup Language) file,
## the file contents are reformatted via the 'sed' utility
## to make sure that the lines are not extra-long.
##
## Several types of character rep... | true |
845961dce8ff0803e41057820cc760e9b3a29d96 | Shell | shored/sindan-docker | /.travis/test_building_grafana.sh | UTF-8 | 444 | 3.03125 | 3 | [
"BSD-3-Clause"
] | permissive | cd $(dirname $0)/..
IMAGE_TAG="$(grep 'image: sindan/grafana' docker-compose.yml | awk '{print $2}')"
echo $IMAGE_TAG
pushd grafana
BUILDKIT_HOST=tcp://0.0.0.0:1234 \
buildctl build --no-cache --frontend dockerfile.v0 --local context=. --local dockerfile=. --progress plain \
--output type=docker,name=$IMAGE_TA... | true |
7cbdb4a9ca800855317a4edaa0fcaa49c49773b1 | Shell | TheBottleSeller/liquefy | /setup/deploy_vbox_api.sh | UTF-8 | 211 | 2.796875 | 3 | [] | no_license | #!/bin/sh
if [ -z "$1" ]; then
MASTERHOST="vbox-master"
else
MASTERHOST="$1"
fi
API_SERVER_HOME="$GOPATH/src/bargain/web/apiserver"
cd $API_SERVER_HOME
npm install
npm start $(docker-machine ip $MASTERHOST) | true |
96d9dc77b6efd2655c23f6adf6138c5be345c54a | Shell | RosenW/training-projects-1 | /RosenW-LPI/lpi103 14-09-2018/3/validation.sh | UTF-8 | 420 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
allLines=`cat ~/Downloads/access.log | wc -l`
lineCount=0
while read p; do
if [[ $p =~ ^[a-Z0-9\.\-]+:[0-9]+" "[0-9\.]+" - - ["[0-9]+"/"[a-Z]+"/"[0-9\:]+" "[\+0-9]+"] "\"[^\"]+\"" "[0-9]+" "[0-9]+" "[0-9]+" "\"[^\"]+\"" "\"[^\"]+\"" - "[0-9]+" - "[0-9]+$ ]]; then
((lineCount++))
fi
done <~/Downloads... | true |
0077d3ab6ed08ffca34f1bea81b73885813d49a9 | Shell | shiro/dotfiles | /scripts/bin/link/ln-bin.zsh | UTF-8 | 553 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/zsh
DEST="${HOME}/bin"
SOURCES=(
"$DOTFILES/scripts/bin"
)
linkFiles(){
if [ -d "$1" ]; then
echo "# from: $1"
else
echo "# skip $1: not found"
return
fi
local files=(`find "$1" -type f`)
for file in ${files[@]}; do
if [ -f "$DEST/${file:r:t}" ] && [ ! -L "$DEST/${file:r:t}" ]; th... | true |
0e2dbfee7abf7ebe0988c2f29890c73fbf7a120d | Shell | weixingsun/ycsb-flame | /flame.mysql/mysql.sh | UTF-8 | 317 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | host=`ifconfig docker0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'`
db=ycsb
user=ycsb
pw=ws206771
rootpw=ws206771
#docker-mysql-scripts/dmysql-server $db $pw
ip=`docker inspect --format '{{ .NetworkSettings.IPAddress }}' $db`
mysql -h $ip -uroot -p$rootpw $db << EOF
select count(1) from usertable;
EOF
| true |
776baefbb16b15a96da424096055bb9b69163126 | Shell | fecgov/regulations-parser | /test-travis.sh | UTF-8 | 592 | 3.03125 | 3 | [
"CC0-1.0"
] | permissive | set -e
set -x
if [[ $INTEGRATION_TARGET = '' ]]; then
py.test --cov-report term-missing --cov regparser
flake8 .
else
if [[ $DOCKER_BUILD ]]; then
docker build . -t eregs-parser
MANAGE_CMD="docker run --rm -it -v eregs-cache:/app/cache -v output:/app/output --entrypoint ./manage.py eregs-parser"
else
... | true |
cdaccd97c531759dd1dcf0a60dc5d01b3e4216ee | Shell | sethleedy/Auto-Besside-Capturer | /find_up.sh | UTF-8 | 272 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
# Examples:
# find_up.sh some_dir -iname "foo*bar" -execdir pwd \;
# find_up.sh . -name "uni_functions.sh"
set -e
path="$1"
shift 1
while [[ "$path" != "/" ]];
do
find "$path" -maxdepth 1 -mindepth 1 "$@"
path="$(readlink -f $path/..)"
done
| true |
c34be8ebd6ef7bdcc673b703abec2e97b1cdcdc5 | Shell | qbit/dotfiles | /bin/watch | UTF-8 | 239 | 3.53125 | 4 | [
"ISC"
] | permissive | #!/bin/ksh
N=5
CMD=$@
while getopts "n:d" arg; do
case $arg in
n)
N=$OPTARG
$CMD=$( echo "$CMD" | sed -e "s/${OPTARG}//" )
;;
esac
done
while true; do
echo "doing '$CMD' every $N"
#$( $@ )
sleep $N
done
| true |
dbfb914e90565182bfcce026ed6cd49acf4b2b40 | Shell | reisub/foreground-detector | /skripta.sh | UTF-8 | 203 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
dir="*"
if [ $# -eq 1 ]
then
dir="$1"
fi
for i in $HOME/Downloads/video_zavrsni/$dir/*.avi
do
filename=$(basename "$i")
echo "$filename:"
./detector "$i"
echo "#"
done
| true |
9a0c1464dabf05be8ffa8332b603b14c24764924 | Shell | ra2003/reprocrawl-code-release | /experiment-generator/primary-experiment/launch.sh | UTF-8 | 290 | 2.671875 | 3 | [] | no_license | #!/bin/sh
read -p "are the DBs scrubbed and tubbed and adequately fed? (type 'yes' to continue)" YES
if [ "$YES" != "yes" ]; then
echo "no jobs for you!"
exit 1
fi
cd $(dirname $0)
echo "Running in $(pwd)..."
time ../mkjobs.py ../../tranco/top-1m.csv 25000 matrix.json
time ../qjobs.py
| true |
82e2430f9530f17ee12b18b3f0432252ac7deba5 | Shell | truongbb/spring-boot-ci-efk-jaeger-sentry | /stop_job.sh | UTF-8 | 268 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
# stop pipeline if QUALITY GATE is FAIL
if [[ ${QUALITY_GATE} = "NOK" ]]
then
echo "QUALITY GATE FAILED. CHECK SONAR SCANNER RESULT!"
export QUALITY_GATE="OK"
exit -1
else
echo "QUALITY GATE PASSED. SONAR SCANNER'S SUCCESSFUL!"
fi | true |
6911d2fde28e162cbddaad6ed8e4b9172e69124a | Shell | netronome-support/IVG | /aovs_2.6B/vm_creator/ubuntu/vm_scripts/5_build_pktgen.sh | UTF-8 | 1,710 | 3.15625 | 3 | [] | no_license | #!/bin/bash
export DPDK_BASE_DIR=/root
export DPDK_VERSION=dpdk-17.05
export DPDK_TARGET=x86_64-native-linuxapp-gcc
export DPDK_BUILD=$DPDK_BASE_DIR/$DPDK_VERSION/$DPDK_TARGET
export PKTGEN=pktgen-3.4.1
echo "Cleaning.."
if [ -d "$DPDK_BASE_DIR/$PKTGEN" ]; then
rm -rf $DPDK_BASE_DIR/$PKTGEN
fi
if [ ! -e "$DPDK_BAS... | true |
1f46a0ed1a26977b6c0c2565378d7f7709a5cef7 | Shell | lucifer654321/kubernetes | /ansible_deploy_k8s/roles/bootstrap/templates/bootstrap.sh.j2 | UTF-8 | 1,600 | 3.4375 | 3 | [] | no_license | #!/bin/bash
echo "#### Config Bootstrap ####"
[ -d "/root/.kube" ] || mkdir -p /root/.kube
ADMIN_CONFIG="/root/.kube/config"
[ -f ${ADMIN_CONFIG} ] || cp {{remote_k8s_conf_dir}}/admin.kubeconfig ${ADMIN_CONFIG}
ALL_NAMES=({% for ip in groups.k8s %} {{ hostvars[ip].node_name }} {% endfor %})
for all_name in ${ALL_NA... | true |
db5553568e2341b32c3005cb1b6061ba14bf2467 | Shell | MaxMax2016/ipa2kaldi | /bin/add_noise.sh | UTF-8 | 1,439 | 3.5 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# Augments an audio corpus with noise.
#
# Credit: https://github.com/gooofy/zamia-speech/blob/master/speech_gen_noisy.py
if [[ -z "$4" ]]; then
echo 'Usage: add_noise.sh input_audio fg1 fg2 bg [bg_offset] [bg_duration] [fg_offset=] [fg_duration=] [fg_level=0] [bg_level=0] [reverb=0]'
... | true |
ad46d37e998a97c59d8d7aec49e7c1e744b1cb57 | Shell | Hpmaharaja/resang_production | /machine_learning/tensorflow/python-test.sh | UTF-8 | 633 | 2.640625 | 3 | [] | no_license | #!/bin/bash
PYTHON_PATH=$(python -c "import site; print(site.getsitepackages()[0])")
CLASSIFY_IMAGE_PATH=$PYTHON_PATH"/tensorflow/models/image/imagenet/classify_image.py"
################################################
# 88931400 bytes (89 MB) needed for tensorflow #
################################################
MY... | true |
15c9691d419f95684d0b9fde899f275aa5de261b | Shell | justsowicked1/Misc-Scripts | /Revert_Chrome_Updates.sh | UTF-8 | 364 | 2.890625 | 3 | [] | no_license | #! /bin/bash
echo "Quitting Chrome"
killall "Google Chrome"
echo "Removing modified system level Google Software Update"
rm -rf /Library/Google/GoogleSoftwareUpdate
echo "Removing modified user level Google Software Update"
rm -rf ~/Library/Google/GoogleSoftwareUpdate
echo "Reopening Chrome in 5 seconds"
sleep 5
o... | true |
fd299a951ba8c5ba7a8af5bff531be94e0034e48 | Shell | gh0stwizard/staticperl-modules | /misc/solaris/staticperlrc-stableperl | UTF-8 | 4,640 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# < Optional >
# Might be useful for some modules like Feersum.
# Comment out the line below at the configure stage.
# Comment the line at the install stage.
# See details at staticperl CPAN's page.
###export PERL_LDFLAGS="-Wl,--no-gc-sections -Wl,--allow-multiple-definition"
# Solaris 10 + CSW
# $HOME/... | true |
1b31b51163a6cec889b8eb1ca4c848ba980b50f8 | Shell | Adjective-Object/mtg-cardframes | /download-cards.sh | UTF-8 | 669 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash
if [[ "$#" != "1" ]]; then
echo "usage: $0 <path/to/cards/json/list>"
exit 1
fi
QUERY_NAME=${1%.json}
mkdir -p "$QUERY_NAME"
LINES=$(cat $1 | jq '.[]|select(.image_uris.png != null)|.image_uris.png + ";" +( .name | sub( "[, '"'"'/]+" ; "-"; "g") ) + ".png"')
echo "$LINES"
for IMAGE_LIN... | true |
172f6c62748aac117667373e1e687344c1cba40f | Shell | openstreetmap/dns | /bin/update | UTF-8 | 677 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# Upload data to Bytemark Hosting's content DNS servers
#
RSYNC=/usr/bin/rsync
USER=openstreetmap
if [ ! -f $RSYNC ] ; then
echo "You need rsync installed to use this script"
if [ -f /etc/debian_version ] ; then
echo "I'll try to install it automatically."
apt-get install rsync
fi
fi
for ... | true |
5961eb31763bdb97ac3b2de404d81bd4ef352915 | Shell | 1001Pharmacies/infra | /docker/elastic/curator/docker-entrypoint.sh | UTF-8 | 441 | 3.171875 | 3 | [] | no_license | #!/bin/sh
set -euo pipefail
set -o errexit
trap 'kill -SIGQUIT $PID' INT
CRON_DAILY_COMMAND="/usr/bin/curator --config /etc/curator/config.yml /etc/curator/action.yml"
[ "${DEPLOY:-}" = "true" ] && CRON_DAILY_COMMAND="cronlock ${CRON_DAILY_COMMAND}"
cat > /etc/periodic/daily/curator <<EOF
#!/bin/sh
${CRON_DAILY_COMM... | true |
d44250e0dd682ceab1cc2a61db84c9b808f59e1b | Shell | joeytwiddle/jsh | /code/shellscript/text/html2txt.sh | UTF-8 | 285 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
if false # command -v lynx >/dev/null 2>&1
then
url="$*"
[ -z "$url" ] && url="-stdin"
lynx -dump -nolist "$url"
else
# Strips tags but does not strip CSS and does not unescape text content
cat "$@" | sed -e 's/<[^>]*>//g' | sed 's+^\s*$++'
fi
| true |
3cb890e96e597522925fd9b61ee62b56784e038e | Shell | Xarchuser/Arch-Dotfiles | /bin/i3battery | UTF-8 | 589 | 3.21875 | 3 | [] | no_license | #!/bin/bash
NUM=$(cat /sys/class/power_supply/BAT0/capacity)
STATE=$(cat /sys/class/power_supply/BAT0/status)
colorget() {
if [[ $NUM -ge 80 ]]; then
color="#AEC795"
elif [[ $NUM -ge 60 ]]; then
color="#F0C674"
elif [[ $NUM -ge 40 ]]; then
color="#C7AE95"
elif [[ $NUM -ge 20 ]]; then
color="#C75959"
else
color="#... | true |
8780dc5f31404fe492b2429a37a16c4d9fab883f | Shell | innerfunction/liquid-node | /scripts/run-tests.sh | UTF-8 | 173 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
npm test
if [ "${TRAVIS_NODE_VERSION}" = "6" ]; then
npm run coverage
npm run lint
else
echo "Not running coverage and linting..."
fi
| true |
8014e4f32deb888d23eaca23da8e53438900e4b3 | Shell | trigrass2/eview-server | /setup/arm-linux/5.postbuild.sh | GB18030 | 2,958 | 3.015625 | 3 | [] | no_license | #!/bin/sh
CURDIR=$(cd `dirname $0`; pwd)
cd ${CURDIR}
echo prepare eveiw-server directory
rm -rf ../../repo/eview-server
mkdir ../../repo/eview-server
#python plugin. linux±soչpydҪȥlibҪlibpydriver.pydlibpydriver.so,ֻҪpydriver.so
rm ../../bin/pydriver.so
mv ../../bin/libpydriver.so ../../bin/pydriver.so
rm ../../bin... | true |
9f64aa4b96540f4c36e5b1eba6f076303fa2a670 | Shell | ojosilva/baseliner | /bin/bali_web | UTF-8 | 1,126 | 3.546875 | 4 | [] | no_license | #!/bin/sh
# starts the web server
LOGDIR=$BASELINER_LOGHOME
LOGFILENAME=bali_web
NOW=`perl -MDateTime -le 'print DateTime->now()'`
LOGFILEOLD=$LOGDIR/$LOGFILENAME_$NOW.log
LOGFILE=$LOGDIR/$LOGFILENAME.log
PIDFILE=$LOGDIR/bali_web.pid
if [ "$1" != "stop" ]; then
if [ -e $PIDFILE ]; then
echo "Ser... | true |
9921a2ead395ef60c0e5ae2bba3043e796b888e4 | Shell | hortonworks/cloudbreak-images | /saltstack/base/salt/ccm-client/cdp/bin/update-reverse-tunnel-values.sh | UTF-8 | 626 | 2.671875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash -ux
CCM_TUNNEL_ROLE=$1
CCM_TUNNEL_SERVICE_PORT=$2
cat > /cdp/bin/reverse-tunnel-values-${CCM_TUNNEL_ROLE}.sh <<EOF
CCM_HOST=${CCM_HOST}
CCM_SSH_PORT=${CCM_SSH_PORT}
CCM_PUBLIC_KEY_FILE=${CCM_PUBLIC_KEY_FILE}
CCM_TUNNEL_INITIATOR_ID=${CCM_TUNNEL_INITIATOR_ID}
CCM_KEY_ID=${CCM_KEY_ID}
CCM_ENCIPHERED_PRIVATE_... | true |
a2e22fdfc04b6a78fa55946b0d4be13973579d2e | Shell | nostneji/keeleliin-server | /docker_start.sh | UTF-8 | 263 | 2.53125 | 3 | [] | no_license | #!/bin/bash
if [ ! -f /config/config.js ]; then
cp -R -u -p /src/config_dist.js /config/config.js
fi
if [ ! -f /src/config.js ]; then
ln -s /config/config.js /src/config.js
fi
forever start -l /forever.log /src/app.js
forever list
tail -f /forever.log | true |
6459a2d99b0cef10269763b147d6e207ae8d6cfa | Shell | etorres4/packaging-scripts | /misc/fqo.sh | UTF-8 | 988 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/bash
# Fuzzy find a file and then check which package owns it
declare -r scriptname="fqo"
printHelp() {
cat << helpinfo
${scriptname} - fuzzy find a file and then check which package owns it
Usage: ${scriptname} [-h] [patterns]
Options:
-h, --help print this help page
helpinfo
}
while true; do
... | true |
fa75f0b297d87c53cee24318bdea7d077444c71d | Shell | jaboca/6b-JavierBot-aCastillo | /6b-JavierBotíaCastillo/ejercicio5.sh | UTF-8 | 592 | 3.390625 | 3 | [] | no_license | IFS=$'\n'
contadorWindows=0;
contadorLinux=0
procesosWindows=0
procesosLinux=0
for i in $(cat listado.txt);do
unset IFS
read -ra E <<< "$i"
#E 0 es el usuario E1 el sistema E2 los procesos
if [[ "${E[1]}" == "Linux" ]]; then
contadorLinux=$((contadorLinux+1))
procesosLinux=$((procesosLinux+${E[2]... | true |
7f7ad899f31d6bb28489c0bc10f66846d8f40f04 | Shell | arangrhie/T2T-Polish | /winnowmap/init.sh | UTF-8 | 300 | 2.921875 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
if [[ -z $1 ]]; then
echo "Usage: ./init.sh ref.fa"
echo -e "\tCollect repetitive k=15 mers for winnowmap"
exit -1
fi
ref=$1
meryl count k=15 $ref output merylDB # add "compress" for homopolymer compression
meryl print greater-than distinct=0.9998 merylDB > repetitive_k15.txt
| true |
ea9641a836270d6454e979ca24b4eed3d926744a | Shell | mschiffm/source-sift | /source-sift.sh | UTF-8 | 571 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# source-sift: recursive find that looks through all files program-y related
# in a specified path, looking for a needle
#
# Vernon Schryver <schryver@fsi.io> Original idea
# Mike Schiffman <mschiffm@fsi.io> A few tweaks and upgrades
if [ $# != 2 ]
then
echo "Usage: source-sift needle haystack"
ec... | true |
912fb6de6d4c8aad14ce9cc2be01815cb17271d3 | Shell | i3c-cloud/dev-orientdb | /dockerfiles/orientdb/run-orientdb.sh | UTF-8 | 677 | 3 | 3 | [] | no_license | #!/bin/bash
case "$1" in
startup)
#cd $JBOSS_HOME/bin
#cp $JSRC/standalone/deployments/* $JBOSS_HOME/standalone/deployments
#if [ ! -e $JBOSS_HOME/standalone/configuration/standalone.xml ]; then
# cp -rpT $JBOSS_HOME/standalone/configuration.backup $JBOSS_HOME/standalone/configuration
#fi
#./standalone.s... | true |
4b3ad81ed9c05e32f47902ae3761a899ce6579f5 | Shell | randomnoob/windows-ova | /debian-root/installer | UTF-8 | 2,805 | 4 | 4 | [] | no_license | #!/bin/bash
set -euo pipefail
[ -d /c ] || mkdir /c
[ -d /d ] || mkdir /d
[ -d /wim ] || mkdir /wim
[ -d /iso ] || mkdir /iso
dialog(){
/usr/bin/dialog --backtitle "Windows.ova v. $(< /etc/version)" "$@"
}
version=""
localmirror=""
# Since we've been booted with a valid cdrom we should copy it to d, then
# shutdo... | true |
fa0a61717f3430bb2c29ccb274d0f2ba4f80f83f | Shell | xptsp/modify_ubuntu_kit | /files/kodi-bind.sh | UTF-8 | 305 | 3.234375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
if [[ ! -f /etc/sudoers.d/kodi-bind && ! "$1"=="-f" ]]; then
echo "ERROR: /etc/sudoers.d/kodi-bind not found! Aborting!"
elif ! mount | grep "/mnt/hdd"; then
echo "WARNING: /mnt/hdd not mounted yet!"
elif [[ -d /mnt/hdd/.kodi ]]; then
mount --bind /mnt/hdd/.kodi ${HOME}/.kodi
fi
| true |
7740035f48d0bc042bf1ba43e1d87aaacd56a612 | Shell | ChennisVang/01-31-18 | /week4.sh | UTF-8 | 343 | 3.1875 | 3 | [] | no_license | #!/bin/bash
clear
echo -n "Enter your name:"
read name
clear
echo "Hello $name.
echo "What is your Favorite Football Team?"
read Team
clear
echo "Team is a good Team"
echo "Now Saving that Info"
echo "$name favorite Team is $Team." >> Team.log
echo "Data saved."
echo "Press Enter to continue"
read
clear
echo ... | true |
c627cd5082b703445d111ec4c72579807d82c66a | Shell | hellohellenmao/Intern-Auto | /check_reports_img_end_offset.sh | UTF-8 | 634 | 2.96875 | 3 | [] | no_license | #!/bin/bash
echo "Case RHEL7-6968 begin!"
qemu-img create -f qcow2 base.qcow2 20G > /dev/null 2>&1
#check defaultly
qemu-img check base.qcow2 > check.log
grep "Image end offset" check.log > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "There is no offset info in the check log file, check please."
exit 1
fi
#Ch... | true |
b8c8ae46f14f483fd0200d16d21e5839b55b7b3a | Shell | stahta01/MINGW-opt-packages | /mingw-w64-opt-crt5-git/PKGBUILD | UTF-8 | 9,887 | 2.890625 | 3 | [] | no_license | # Maintainer: Tim Stahlhut <stahta01@gmail.com>
_pkg_prefix=${MINGW_PREFIX}/opt
_basename=crt
_realname=${_basename}
pkgbase=mingw-w64-opt-${_basename}5-git
pkgname=(
"${MINGW_PACKAGE_PREFIX}-opt-${_basename}-git"
"${MINGW_PACKAGE_PREFIX}-opt-headers-git"
"${MINGW_PACKAGE_PREFIX}-opt-pthread-stub-headers-git... | true |
aa1850e8ab75baad37400592d29818a4b17f0d72 | Shell | chriswongwk/bootcamps | /deploy/asyncdeploy.sh | UTF-8 | 966 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function remote_exec {
sshpass -p $MY_PE_PASSWORD ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null nutanix@$MY_PE_HOST "$@"
}
function send_file {
sshpass -p $MY_PE_PASSWORD scp -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHos... | true |
b6bcc1abcad3e97c8c42d68b06ad38ec2ecbe24e | Shell | Philosoft/dotfiles | /bash_aliases | UTF-8 | 1,057 | 2.796875 | 3 | [] | no_license | # включаем цвет
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias mocp='mocp -T Lianli'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias la='ls -Alh'
alias ncmpc='ncmpc -c'
alias mc='mc -S zenbu... | true |
70cacbb1578a966efbc23220eada8003d0496c18 | Shell | chazer/bash-scripts | /bin/replace-in-names | UTF-8 | 564 | 3.703125 | 4 | [] | no_license | #!/bin/bash
NC='\e[0m'
GR='\e[1;30m'
if [ -z "$3" ]; then
echo "No argument supplied">&2
cat << EOF >&2
Usage:
$0 <path> <search> <replace>
Example:
$0 ./src/ XXXX plugin
EOF
exit 1
fi
DIR="$1"
SEARCH="$2"
REPLACE="$3"
if [ ! -d "$DIR" ]; then
echo "Source path $DIR doesn't exist">&2
exi... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.