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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7aed79c8e70e67dab35b348e10d9712ca41dde0f | Shell | FernandoRub13/PROLIN | /ayuda.sh | UTF-8 | 2,048 | 3 | 3 | [] | no_license | #!/bin/bash
#Este script despliega una ayuda para el usuario
#Se utiliza el etiquetdo \e[1;100;33m donde
#"\e[" indica el inicio de etiquetado,
#"1" represnta letras impresas en negritas,
#"100" color de remarcado de texto,
#"Colo del texto",
echo -e "\e[1;100;33m Terminal PROLINv1.0"
echo ""
echo "Has accedido a la... | true |
4245711a66bbe63b5b1a1058527cbc2213fb5625 | Shell | sparkspay/docker-sparks-core | /0.12/docker-entrypoint.sh | UTF-8 | 512 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
if [ $(echo "$1" | cut -c1) = "-" ]; then
echo "$0: assuming arguments for sparksd"
set -- sparksd "$@"
fi
if [ $(echo "$1" | cut -c1) = "-" ] || [ "$1" = "sparksd" ]; then
mkdir -p "$SPARKS_DATA"
chmod 700 "$SPARKS_DATA"
chown -R sparks "$SPARKS_DATA"
echo "$0: setting data directory t... | true |
243380a9d648829af59a77b7959d53433d085185 | Shell | yahoo/panoptes_snmp | /src/net-snmp-5.7.3/agent/mibgroup/Rmon/test_alarm.sh | UTF-8 | 1,871 | 3.046875 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"MIT-CMU"
] | permissive | :
# Rmon Alarms/Events testing script
# $Log$
# Revision 5.0 2002/04/20 07:30:01 hardaker
# cvs file version number change
#
# Revision 1.1 2001/05/09 19:36:13 slif
# Include Alex Rozin's Rmon.
#
#
#Only parameter: number of interface (ifIndex) to be tested.
#Default: 1
TSTIF=1
COMPAR="-m ALL localhost public"
... | true |
46d6908bda345e8d05f26ba68b5d06e37fac6d98 | Shell | nickstolwijk/bash-environment | /bin/showTagHistory | UTF-8 | 212 | 3.1875 | 3 | [] | no_license | #!/bin/bash
rm /tmp/history
for tag in `git tag -l ecommerce-*`
do
git co -f $tag
DATUM=$(git log -1 --pretty=format:%ci | awk 'BEGIN { FS = " " } ; { print $1 }')
echo "$DATUM $tag" >> /tmp/history
done
| true |
9a5e88dc041e80943e3bf7fab46562be0a41d2ae | Shell | iamashwin99/Scripts | /MACHide/mac.sh | UTF-8 | 387 | 2.765625 | 3 | [] | no_license | #sudo arp-scan -l
device=$(ip link show | grep wlp | cut -d" " -f2 | tr -d :)
ip link show |tail |cat > 1.txt
nmcli con down WIFI
ip link set dev $device down
echo "Device is down :" $device
ip link set dev $device address $1
echo "Device is set :"
ip link show |tail |cat > 2.txt
diff 1.txt 2.txt
ip link se... | true |
8477991065862e4ef3be6ed4cec52b0c042308a0 | Shell | theno/tbm | /tbm | UTF-8 | 4,978 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# script per dot command aufrufen für verzeichniswechsel und ENV zu ändern!
# . ./testscript.sh cd 1
declare -A dirs
BOOKMARKS="$HOME/.bookmarks"
List ()
{
#LoadBookmarks
echo "Bookmarks:"
for dir in "${!dirs[@]}"; do echo "$dir - ${dirs["$dir"]}"; done
}
AddDir ()
{
#echo "adde $1"
key="0"
... | true |
f5ba8b8d9358958439167ba9243ad229441f4c49 | Shell | dafrito/FritoMod-Shell-Tools | /fm-xml.sh | UTF-8 | 518 | 3.453125 | 3 | [] | no_license | #!/bin/bash
if [ ! "$FM_ROOT" ]; then
echo "FM_ROOT must be defined" 1>&2
exit 1
fi
PATH=/bin:/usr/bin:$HOME/bin:$FM_ROOT
source fm-library.sh
if [ -e "$1" ]; then
path=$1
else
path=`fm-search.sh $1`
if [ ! $? ]; then
exit 1;
fi
fi
if [ ! "$path" ]; then
error "Could not find path: $1"
fi
PROJECT=${path%%_*}... | true |
a31273540432281ab92c95b3491a0313b661de3e | Shell | sophiacb/YeastStrainsStudy | /utils/prepsrc.sh | UTF-8 | 4,626 | 3.265625 | 3 | [] | no_license | #!/bin/bash
set -o errexit
set -o pipefail
thisdir=`pwd`
##########################################
####### download some utilities ##########
##########################################
cd $thisdir/utils/src
if [ ! -f locpy/bin/activate ]; then
echo; echo " creating a local python environment..."
cd $this... | true |
b9458a92692bebac503a3ca101a707484e404c8d | Shell | arzatskis/dotfiles | /ruby/install.sh | UTF-8 | 233 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if test ! $(which rbenv)
then
printf "\r \t Installing... \n"
eval "$(rbenv init -)"
rbenv install 2.7.0 --skip-existing
rbenv global 2.7.0
gem install bundler
rbenv rehash
else
printf "\r \t Skipping \n"
fi
| true |
37b017725240679a144dc6f94480e16956c3c4ff | Shell | vKnmnn/dotfiles | /.config/i3blocks/blocklets/date-cal | UTF-8 | 168 | 2.578125 | 3 | [] | no_license | #! /bin/dash
date=$(date '+%a. %d. %b. %Y')
case "$BLOCK_BUTTON" in
1|2|3) ~/.config/i3blocks/blocklets/rofi-cal.sh >/dev/null
esac
echo $date
date '+%d.%m.%Y'
| true |
e7795e28568805b6a504cd9013fabad67aaf5749 | Shell | yaolingling/shell_vagrant_install_src | /install_src.sh | UTF-8 | 3,308 | 3.03125 | 3 | [] | no_license | #!/bin/bash
PWD=$(pwd)
MYDIR=${1:-$PWD}
if [ ! -d $MYDIR ]; then
echo "[Error] working directory=$MYDIR doesn't exist"
exit -1
fi
pushd $MYDIR
WORKDIR=$(pwd) # Absolute Path
set -e
set -x
BRANCH=${2:-master} # can be a tag like 1.0.0
#RACKHD_DEP_REPOS=("on-core" "on-tasks" "di.js"... | true |
4dc7c12e17b305683a53fd2f7f115f1e9df560a6 | Shell | dreora32722/oci_cs_adb | /get_namespace.sh | UTF-8 | 253 | 3.109375 | 3 | [] | no_license | #!/bin/bash
if [ -z "$tenancy_namespace" ]
then
echo "Error: missing variable definitions"
exit 1
fi
# Get Compartment OCID
tenancy_namespace=$(oci os ns get | jq -r .data)
echo "Tenancy Namespace: " ${tenancy_namespace}
export tenancy_namespace;
| true |
10a5deb076a3f902a1882caf5e6419c3377d1da5 | Shell | PalakPartani/ShellPractice | /functions/Palindromeno.sh | UTF-8 | 296 | 3.6875 | 4 | [] | no_license | #!/bin/bash
read -p "Enter a number to check " num
temp=$num
len=${#num}
chkPalin()
{
for ((i=0;i<$len;i++))
do
r=$(($num%10));
sum=$(($((sum*10))+r));
num=$(($num/10));
done
if (( $temp==$sum ))
then
echo "$temp is palindrome"
else
echo "$temp is not Palindrome"
fi
}
chkPalin
| true |
4326dcd16fd11f29d32ac4f3e656f2285565f659 | Shell | ArneVandeBemdt/systeembeheer-configs | /var/lib/dpkg/info/pdns-backend-mysql.config | UTF-8 | 345 | 2.96875 | 3 | [] | no_license | #!/bin/sh
#
# Install / upgrade database.
set -e
# Execute dbconfig-common
. /usr/share/debconf/confmodule
if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
. /usr/share/dbconfig-common/dpkg/config.mysql
# Default values
dbc_dbuser="pdns"
dbc_dbname="pdns"
dbc_first_version="3.0-1"
dbc_go pdns-back... | true |
4dc8d52fb7f07f46ae6351f4de41ba07906b63b8 | Shell | tasukemochi/bash-config | /aliases.sh | UTF-8 | 845 | 3.046875 | 3 | [] | no_license | ###################
# handy aliases #
###################
alias ls='ls -FG' # -F add trailing / @ * -G color
alias l='ls'
alias ll='ls -al'
alias lh='ls -ahl'
alias h='history'
alias j='jobs -l'
alias c='clear'
alias o='open'
alias df='df -H' # -H use human-readable units (kB, MB, GB)
alias du='du -chd... | true |
ae1688221703f7da6f326dd359907234caff7526 | Shell | knutjelitto/LiFo | /Recipes/Core/pkg-config | UTF-8 | 363 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
Title="PkgConfig"
Home="https://www.freedesktop.org/wiki/Software/pkg-config/"
Name=pkg-config
Version=0.29.2
Supplies=(https://pkg-config.freedesktop.org/releases/pkg-config-$Version.tar.gz)
Build()
{
./configure \
--prefix=/usr \
--with-internal-glib \
--disable-... | true |
1688b4175102d9f9309edc1fe6f480ffe6223732 | Shell | spargonaut/.custom_commands | /cli.sh | UTF-8 | 4,153 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
function setup_colors() {
PBLACK=$(tput setaf 0)
PRED=$(tput setaf 1)
PGREEN=$(tput setaf 2)
PYELLOW=$(tput setaf 3)
PBLUE=$(tput setaf 4)
PMAGENTA=$(tput setaf 5)
PCYAN=$(tput setaf 6)
PWHITE=$(tput setaf 7)
PREV=$(tput rev)
PBOLD=$(tput bold)
PRESET=$(tput sgr0)
}
function ... | true |
4bf10a5359b97aad7aca90b0a3a5c39fc21b1503 | Shell | bahaeddine/kthw-vagrant | /certs/kubelet/kubelet.sh | UTF-8 | 892 | 3.5625 | 4 | [] | no_license | #!/bin/sh
set -e
# List workers hostnames
WORKERS="${WORKERS:-worker1}"
for instance in $WORKERS; do
cat > ${instance}-csr.json <<EOF
{
"CN": "system:node:${instance}",
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
"C": "US",
"L": "Portland",
"O": "system:nodes",
"O... | true |
38d6629426a3532e6b2ff03fab387917e48ad7ec | Shell | dennis77pr/dockerNodeApp | /scripts/manageContainers.sh | UTF-8 | 1,135 | 3.078125 | 3 | [] | no_license | #!/bin/bash
DATA_VOLUME_NAME="mongo_data_mstr"
#DATA_VOLUME_NAME="mongo_data_test"
DB_IMAGE_NAME="dennis/mongo_db"
DB_CONTAINER_NAME="mongo_db"
DB_CONTAINER_ALIAS="mongo_db"
NODE_IMAGE_NAME="dennis/node_server"
NODE_SERVER_NAME="nodeApp"
# Remove old Node Server container.
sh ./removeContainer.sh ${NODE_SERVER_NAME... | true |
a6e17b8a1f6d8ad6b0632c8021c5a340047312f7 | Shell | charliecalvert/elf-markdown-to-book | /copy-prog272 | UTF-8 | 1,336 | 2.890625 | 3 | [] | no_license | #! /bin/bash
CHAPTER_DIR=chapters
ROOT_DIR=$HOME/Git/CloudNotes/Assignments
REACT_DIR=$ROOT_DIR/React
JSON_DIR=$ROOT_DIR/Json
MIDTERM_DIR=$ROOT_DIR/MidtermFinal
GIT_DIR=$ROOT_DIR/Git
BROWSER=$ROOT_DIR/Browser
function copyChapter() {
cp -v $ROOT_DIR/$1 $CHAPTER_DIR/$2
}
function linkChapter() {
ln -s $3/$1 ... | true |
770ca978d2012edd3e834dff327715a69d96ce16 | Shell | tanguy2m/Scripts-ReadyNas | /scripts/install-addfromserver-plugin.sh | UTF-8 | 1,018 | 3.421875 | 3 | [] | no_license | #!/bin/sh
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: install-addfromserver-plugin VERSION INSTANCE"
echo " Version = v2.3.a, v2.3.b ... ou master"
echo " Instance = prod ou dev"
exit 1
fi
# Récupération du .tar.gz depuis le master GitHub
# https://github.com/tanguy2m/AddFromServer/ta... | true |
6032e3ce33cd1fd6619de35b0e76cc59d2c91f5d | Shell | toomel/skriptimine | /praks4/yl4 | UTF-8 | 122 | 2.671875 | 3 | [] | no_license | #! /bin/bash
read -p "Sieseta kaks arvu" one two
echo täisosa `expr $one / $two`,`expr $one % $two \* 1000000000 / $two`
| true |
a62473ac42cc1b2320024798d559b5e68fbdfec1 | Shell | polarnik/loadlab_vm | /ansible/dump_tools/export.mysql-to-pg.sh | UTF-8 | 3,744 | 2.828125 | 3 | [] | no_license | #!/bin/sh
base_path=$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )
#cat $base_path/wp_pg_schema.sql | ssh database 'cat > /tmp/wp_pg_schema.sql'
ssh database << EOF
yum -y install pgloader
dropdb wordpress2 || true
createdb wordpress2
#psql wordpress2 < /tmp/wp_pg_schema.sql
cat > /tmp/pgload.cmd << EOS
LOA... | true |
8cffb37072fa46d3efd2817e568d8b534e8c3e97 | Shell | Akatsuki-Ryu/akazsh | /init.sh | UTF-8 | 1,504 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
echo now we will install brew . press N to skip
read -rp "ok? (y/N): " yn
case "$yn" in [yY]*) /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install rcmdnk/file/brew-file
# brew install sambadevi/powerlevel9k/powerlevel9k
brew install rom... | true |
ff07c98e3694982dd1fb567bce0eac660fcbcf45 | Shell | levigroker/iOSContinuousIntegration | /Common/testflight.sh | UTF-8 | 2,385 | 3.875 | 4 | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# A script to upload an IPA and dSYM to TestFlight ( http://testflightapp.com) with
# release notes to optional distribution lists.
#
# Levi Brown
# mailto:levigroker@gmail.com
# October 5, 2011
# https://github.com/levigroker/iOSContinuousIntegration
##
function usage()
{
[[ "$@" = "" ]] || echo "$@" >... | true |
04f7f33108a5bc6c52c5ecd13e8ce408896687ef | Shell | elviswolcott/DIM | /icons/build_icons.sh | UTF-8 | 1,148 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh -ex
# Generate all our icon images from SVG. Requires a mac (or a system w/ a shell and rsvg-convert installed).
which rsvg-convert || brew install librsvg
for VERSION in release beta dev; do
rsvg-convert -w 16 -h 16 -o "$VERSION/icon16.png" "favicon-$VERSION.svg"
rsvg-convert -w 16 -h 16 -o "$VERS... | true |
444a4d8d46732a98556612d1a0c7eb225ed3b12f | Shell | cm-igarashi-ryosuke/lazy-awslogs | /shell-completion/lazy-awslogs.sh | UTF-8 | 2,546 | 3.515625 | 4 | [
"MIT"
] | permissive | _lazy-awslogs()
{
local cmd cur prev
cmd="${COMP_WORDS[1]}"
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case "${cmd}" in
config)
if [ ${COMP_CWORD} -le 2 ]; then
local opts="add list remove show set use"
COMPREPLY=($(compge... | true |
d52f96418dc6775e1232b9c74fc20a9deadbb546 | Shell | petronny/aur3-mirror | /fltk-rep/PKGBUILD | UTF-8 | 1,216 | 2.546875 | 3 | [] | no_license | # Maintainer: lspci
pkgname=fltk-rep
pkgver=1.3.2
pkgrel=5
pkgdesc="A replacement for fltk 1.3.1"
arch=('i686' 'x86_64')
license=('custom:LGPL')
url="http://www.fltk.org/"
makedepends=('mesa' 'doxygen' 'libjpeg' 'libpng' 'libxft' 'libxinerama' \
'alsa-lib' 'desktop-file-utils')
conflicts=('fltk')
source=... | true |
9515641600750510e58532f7dd954b07feb60a2a | Shell | pivotal-customer0/photon-p3-java-app-test | /deploy.sh | UTF-8 | 1,155 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
if [[ -z ${ENV_NUM} ]] ; then
>&2 echo "ENV_NUM must be set!"
fi
git clone https://github.com/pivotal-customer0/p1-photon-setup-scripts
source p1-photon-setup-scripts/env${ENV_NUM}.sh
rm -rf p1-photon-setup-scripts
for v in $CF_API $CF_USERNAME $CF_PASSWORD $CF_APPS_DOMAIN; do
if [[ -z $v ]] ; then
... | true |
4a420240164dafeb1da98501a4766164365adfb5 | Shell | jboss-fuse/fuse-karaf | /assemblies/fuse-karaf-framework/src/main/resources/resources/bin/fuse-inc | UTF-8 | 1,423 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Copyright 2005-2018 Red Hat, Inc.
#
# Red Hat licenses this file to you 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 re... | true |
e0fab31f7b5860042bf8513702fbad7057d0d9ee | Shell | tianyayoucao/dbpedia | /mwdumper/install-mysql.sh | UTF-8 | 810 | 3.9375 | 4 | [] | no_license | #!/bin/bash
set -e
MYDIR=$1
if [[ -z "$MYDIR" ]]
then
echo "usage: $0 <mysql dir>"
echo "Install MySQL databases in <mysql dir>/data.
echo "Start server listening at default port and socket <mysql dir>/mysql.sock, logging to <mysql dir>/mysql.log."
echo "Grant all privileges to anonymous user."
echo
echo " my... | true |
ef1523925573d2b9ed1b42bc448d406c93ffeb1e | Shell | dolifer/dotfiles | /.zsh/completion.sh | UTF-8 | 795 | 2.578125 | 3 | [] | no_license | #!/bin/zsh
setopt AUTO_LIST
setopt AUTO_MENU
setopt MENU_COMPLETE
zmodload -i zsh/complist
# Completion caching
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' cache-path .zcache
zstyle ':completion:*:cd:*' ignore-parents parent pwd
# Fallback to built in ls colors
zstyle ':completion... | true |
ab6afb5c395ac27f123e216adf43498003193ba8 | Shell | margenomics/smallRNAseq_analysis | /Analysis/03_ReadMapping/Stats.sh | UTF-8 | 1,206 | 3.125 | 3 | [] | no_license | #!/bin/bash
#SBATCH -p short # Partition to submit to
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu 29Gb # Memory in MB
#SBATCH -J star.stats # job name
#SBATCH -o star.stats.%j.out # File to which standard out will be written
#SBATCH -e star.stats.%j.err # File to which standard err wi... | true |
20aba40a4cd538ce7b2601099d972c927d96855f | Shell | TauWu/DST_server_config | /install_quick.sh | UTF-8 | 1,666 | 3.375 | 3 | [] | no_license | #!/bin/bash
# 安装脚本
REPO_PATH=`pwd`
echo "开始安装 Don't Starve Together 独立服务器..."
echo " "
echo "*************** 食用说明 ***************"
echo " "
echo "本安装方法为 steam 快速的安装方法,适合开箱即玩"
echo " "
echo "*********... | true |
ff454c7b9e1273c5112bcb926494de97bc0bab28 | Shell | Illia-0/task4_3 | /task4_3.sh | UTF-8 | 594 | 4.15625 | 4 | [] | no_license | #!/bin/bash
set -o errexit
target_dir="/tmp/backups"
mkdir -p -- "$target_dir"
if (( $# != 2 )); then
echo "Illegal number of parameters" >&2
exit 1
fi
backup_directory=$1
backups_number=""
if [ -n "$2" -a $2 -eq $2 2> /dev/null ]; then
backups_number=$2
else
echo "Number of backups is illegal" >&2
exit ... | true |
8d61c29cd0e061cb9dd0876d6def0a61e034dca6 | Shell | braxeatssnacks/.dotfiles | /zsh/zshrc_manager.sh | UTF-8 | 923 | 3.453125 | 3 | [] | no_license | export DOTFILES="$HOME/.dotfiles"
export XDG_CONFIG_HOME="$HOME/.config"
# Run tmux if exists
if command -v tmux>/dev/null; then
# attempt to reconnect to existing session or create new
if test -z "$TMUX"; then
session_name=$(
tmux list-sessions |
grep -v attached |
grep -oE '^(\w|\s)... | true |
2d31aa387067738acd8a46c0e7b101d82b33e48f | Shell | a2geek/minecraft-boshrelease | /jobs/minecraft/templates/post-start | UTF-8 | 221 | 2.765625 | 3 | [] | no_license | #!/bin/bash
JOB_BASE=/var/vcap/jobs/minecraft
POST_START=${JOB_BASE}/config/post-start.in
CONSOLE=/var/vcap/data/minecraft/console.in
cat ${POST_START} | while read LINE
do
printf "${LINE}\n" >> ${CONSOLE}
done
| true |
2109bd33bdba937247ff1ab0b873828cc5e183b5 | Shell | jmbreuer/multi | /selenium/server.sh | UTF-8 | 1,009 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
ROOTDIR="$( cd "$( dirname "$0")" && pwd )"
SELENIUM_VERSION=2.24.1
COMMAND=$1
#command -v firefox >/dev/null 2>&1 || { echo "Can't find firefox, please make sure it's on your PATH." >&2; exit 1; }
if [ ! -f "$ROOTDIR/selenium-server-standalone-$SELENIUM_VERSION.jar" ]; then
curl -s http://selenium.... | true |
4300fd19a2a06bf0db84cb60a10ecc7197098965 | Shell | crmejia/reactiveops-challenge | /rails_deploy.sh | UTF-8 | 1,166 | 2.875 | 3 | [] | no_license | #!/bin/bash
if [ ! $(command -v terraform) ]
then
echo Please install terraform
exit 1
fi
if [ ! -z "$AWS_ACCESS_KEY_ID" ] ; then
echo Please provide a valid AWS access key enviroment variable
echo name should be AWS_ACCESS_KEY_ID
exit 1
fi
if [ ! -z "$AWS_SECRET_ACCESS_KEY" ] ; then
echo Please pr... | true |
1aa64af6fd9ebf6482bc992d050d5d1ea9b02835 | Shell | evilsmile/scripts | /Bash/query_trade.sh | UTF-8 | 2,164 | 3.578125 | 4 | [] | no_license | #!/bin/bash
sql_cmd="mysql -u "
function usage() {
echo -e "Usage:
-t db_id
-o order_id
-p phone_num
-m mch_id"
exit
}
while getopts "p:t:o:d:m:c:h" arg ; do
case $arg in
t)
db_id=$OPTARG
;;
o)
order_id=$OPTARG
;;
p)
phone=$OPTARG
;;
m)
mch_id=$OPTARG
;;
c)
cha... | true |
48d0fe5f8f14f318a1c4663b346963a1b60706bd | Shell | joesbigidea/simple-nginx-letsencrypt-docker | /entrypoint.sh | UTF-8 | 1,005 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
call_certbot() {
if [ "$PROD" == "true" ]
then
echo "running certbot in prod mode"
else
echo "running certbot in test mode"
EXTRA_ARGS="--test-cert"
fi
certbot $EXTRA_ARGS --nginx -m $CERTBOT_EMAIL --agree-tos --eff-email --noninteractive -d $CERTBOT_DOMAIN
}
if [ -z "$CERTBOT_EMAIL" ... | true |
bf83afd73c1d4b11d7e3c5d3dbb164f370857275 | Shell | latifkabir/Computation_using_C | /fem1d_bvp_quadratic/fem1d_bvp_quadratic.sh | UTF-8 | 310 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#
cp fem1d_bvp_quadratic.h /$HOME/include
#
gcc -c -I /$HOME/include fem1d_bvp_quadratic.c
if [ $? -ne 0 ]; then
echo "Errors compiling fem1d_bvp_quadratic.c"
exit
fi
#
mv fem1d_bvp_quadratic.o ~/libc/$ARCH/fem1d_bvp_quadratic.o
#
echo "Library installed as ~/libc/$ARCH/fem1d_bvp_quadratic.o"
| true |
8c088e4b3a6325481af35413c5c42652edd1ca54 | Shell | leospol/tmt | /tests/discover/parametrize.sh | UTF-8 | 1,563 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun 'pushd data'
rlRun 'set -o pipefail'
rlPhaseEnd
plan='plan -n parametrize/noenvironment'
plan_env='plan -n parametrize/environment'
steps='discover finish'
rlPhaseStartTest 'From en... | true |
b0bd6a02bf89548927124142f528d48c18772b49 | Shell | tuxpiper/ushahidi-platform-docker | /docker/platform/docker/prepare.sh | UTF-8 | 480 | 3.25 | 3 | [] | no_license | #!/bin/sh
cat > /var/www/.env <<EOF
DB_HOST=${MYSQL_PORT_3306_TCP_ADDR}
DB_NAME=${MYSQL_ENV_MYSQL_DATABASE}
DB_PASS=${MYSQL_ENV_MYSQL_PASSWORD}
DB_TYPE=MySQLi
DB_USER=${MYSQL_ENV_MYSQL_USER}
EOF
# Wait until MySQL is up
echo -n "Checking MySQL "
k=1; while [ "$k" -lt "60" ]; do
if nc -w 1 ${MYSQL_PORT_3306_TCP_ADDR... | true |
8188e739e4e841b349de9a2a5513c2812e3efd46 | Shell | ansarigulshad/scripts | /shell/hadoop/bulk_service_check.sh | UTF-8 | 2,216 | 3.53125 | 4 | [] | no_license | #!/bin/bash
#
#
##########################################################################################################
#Script Name : bulk_service_check.sh
#Description : This Script is developed to bulk service check on HDP cluster using ambari API calls
#Author : Gulshad Ansari
#LinkedIn : https://l... | true |
97a0f68bbccea54017636ed1ada6520c0c20da25 | Shell | vinaybyrapu/Bash-Settings | /checkMySql.sh | UTF-8 | 347 | 3.1875 | 3 | [] | no_license | #!/bin/bash
UP=$(pgrep mysql | wc -l);
if [ "$UP" -ne 1 ];
then
echo "===== MySQL is down. You may need to enter admin password : ";
sudo /usr/local/mysql/support-files/mysql.server start
sudo /usr/local/mysql/support-files/mysql.server status
else
echo "================= MySQL is runni... | true |
07e2d5298bc86967025bd194c9e655d016a02cdf | Shell | jensp/Arch-Linux-on-i586 | /extra/xdg-utils/PKGBUILD | UTF-8 | 749 | 2.765625 | 3 | [] | no_license | # $Id: PKGBUILD 41780 2009-06-07 09:58:58Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=xdg-utils
pkgver=1.0.2
pkgrel=2
pkgdesc="Command line tools that assist applications with a variety of desktop integration tasks."
arch=(i586 i686 x86_64)
url="http://portland.freedesktop.org/"
depends=('sh')
licens... | true |
1a2d7deb692fce9e2751bdc0fe351d62952f1489 | Shell | ATLAS-Analytics/xAOD-analytics | /container/fix.sh | UTF-8 | 689 | 3.3125 | 3 | [] | no_license | #!/bin/bash
IND="2018-01"
for i in $(seq -f "%02g" 1 31)
do
DateToProcess="$IND-$i"
echo "Job Indexing... "${DateToProcess}
pig -4 log4j.properties -f JobIndexer.pig -param INPD=${DateToProcess} -param INDE=${IND}
rc=$?; if [[ $rc != 0 ]]; then
echo "problem with pig indexer. Exiting."
exit $rc
fi
echo "p... | true |
5aa08667e6081c602d3c99a282d0eaba49c54f7f | Shell | dspinellis/code-lifetime | /difflog.sh | UTF-8 | 1,701 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Copyright 1996-2000 Diomidis Spinellis
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | true |
f560b0518942d88af61182a77fa9d53fced76424 | Shell | wabscale/bigj.dev | /api/entrypoint.sh | UTF-8 | 976 | 3.6875 | 4 | [] | no_license | #!/bin/sh
wait_for_db() {
# ping db until we get a response
echo "waiting for db to start..."
until mysqladmin ping -h "db" -P 3306 --silent; do
sleep 1;
done
sleep 3 # give it another hot second...
echo "db started"
}
initialize_db() {
# This function will run migrations and se... | true |
1de8c231983d2063e7ce4052dbe7943ee7fd64c5 | Shell | psrb/dotfiles | /install.sh | UTF-8 | 3,243 | 4.03125 | 4 | [] | no_license | #!/bin/sh
# https://github.com/junegunn/vim-plug
PLUG_VIM_URL="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
# https://github.com/ganwell/vim-hunspell-dicts
ask() {
printf "%s [yN]: " "$1"
read -r yn
if [ "$yn" = "y" ] || [ "$yn" = "Y" ]; then
return 0
fi
return 1
}
... | true |
53366ce23cd09be364659402b51f41847a47b231 | Shell | TheDauthi/dotfiles | /init/shellrc.d/76-fzf-completion.bash | UTF-8 | 508 | 2.8125 | 3 | [
"Unlicense"
] | permissive | if [[ ! -e "${HOME}/.shellrc/plugins/fzf" ]]; then
return
fi
if ! command -v fzf >/dev/null 2>&1; then
return
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "${HOME}/.shellrc/plugins/fzf/shell/completion.bash" 2> /dev/null
# Key bindings
# ------------
source "${HOME}/.shellrc/plugins/fzf/she... | true |
d03637f7645007373c12bfac419a01197b025b5f | Shell | jtobard/rundeck-docker-update-tests | /debian-mysql/install.sh | UTF-8 | 2,129 | 3.015625 | 3 | [] | no_license |
#uncomment to use local deb file
#cp /app/rundeck.deb /tmp/rundeck.deb
#cp /app/rundeck-upd.deb /tmp/rundeck-upd.deb
echo "* installing rundeck"
dpkg -i --force-confnew /tmp/rundeck.deb
cp -r /app/etc/rundeck/rundeck-config.properties /etc/rundeck/rundeck-config.properties
sed 's,https://localhost:4443,'$SERVER_UR... | true |
ff8645002708e83298bea49ae47300beafc26447 | Shell | rafael-trevisan/mandela | /server/scripts/install-ords.sh | UTF-8 | 947 | 2.90625 | 3 | [] | no_license | #!/bin/bash
#
INSTALL_DIR=/root/install
BINARIES_DIR=$INSTALL_DIR/binaries
SCRIPTS_DIR=$INSTALL_DIR/scripts
INSTALL_FILE=$BINARIES_DIR/ords.3.0.9.348.07.16.zip
PARAMS_FILE=$SCRIPTS_DIR/ords_params.properties
ORDS_HOME=$ORACLE_BASE/ords
cd $BINARIES_DIR
mkdir -p $ORDS_HOME
cat $INSTALL_FILE.* > $INSTALL_FILE
unzip -o ... | true |
fe0df9b1bb24b40d4e797c8b0ef98828bfc7539c | Shell | dhulihan/dotfiles | /ruby/rbenv.zsh | UTF-8 | 182 | 2.515625 | 3 | [
"MIT"
] | permissive | # gimme them bins
export PATH="$HOME/.rbenv/bin:$PATH"
export RBENV_ROOT="$HOME/.rbenv"
# init according to man page
if (( $+commands[rbenv] ))
then
eval "$(rbenv init - zsh)"
fi
| true |
f092ba2ffd6c12ae0dc9eaf79d526b67cbda8f14 | Shell | jren2019/configs | /bash/setup_bashrc.sh | UTF-8 | 271 | 2.921875 | 3 | [] | no_license | #! /bin/bash
# make bash_profile if it doesn't exist
if [ ! -f "~/.bash_profile" ]; then
echo source ~/.bashrc > ~/.bash_profile
fi
# link to ~/.bashrc
ln -sf $HOME/local_install/configs/bash/bashrc ~/.bashrc
pip3 install virtualenvwrapper
source ~/.bash_profile
| true |
08fc055a8712aed2c9d195687d2170e15a06771a | Shell | mikepcw/bootstrap | /teamviewer.sh | UTF-8 | 897 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
# Ensure running as regular user
if [ $(id -u) -eq 0 ] ; then
echo "Please run as a regular user"
exit 1
fi
# Install newer version of Ansible
sudo apt-get -y install software-properties-common
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get -y install ansib... | true |
134ba2834452667afd3c03ba19689f43706fb7c8 | Shell | BackupTheBerlios/projectdev | /current/desktop/lib/libmng/PKGBUILD | UTF-8 | 611 | 2.546875 | 3 | [] | no_license | # $Id: PKGBUILD,v 1.1 2004/12/03 17:24:00 rensel Exp $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Arch Maintainer: judd <jvinet@zeroflux.org>
# Maintainer: blokkie <blokkie@burningfrog.be>
pkgname=libmng
pkgver=1.0.8
pkgrel=1
pkgdesc="A collection of routines used to create and manipulate MNG format graphics file... | true |
d2160029cc80f85dd67d99c1948fbe3843d2d1c8 | Shell | dsbaliyan/subnet-visualizer-autoConfig | /confGenerator/backUpScripts/gcloudShell.sh | UTF-8 | 511 | 2.6875 | 3 | [] | no_license | #gcloud compute networks subnets list > subnets.txt
#Fetching all the subnet details with the help of Gcloud SDK
range=($(gcloud compute networks subnets list | awk '{print $4}' | tail -n+2))
vpc=($(gcloud compute networks subnets list | awk '{print $3}' | tail -n+2))
regions=($(gcloud compute networks subnets list |... | true |
f5ba0959da6807745e80257e452e48069eb9a120 | Shell | scrosland/dotfiles | /startup | UTF-8 | 361 | 3.421875 | 3 | [] | no_license | # vim: set filetype=sh:
#
# Simply source all the individual scripts
#
for _startup_script in environment functions shrc ; do
# source the common file
. "$HOME/dotfiles/${_startup_script}"
# source the .local file for system-specific settings
lcl="$HOME/.${_startup_script}.local"
if [ -r "${lcl}"... | true |
02790d0d37ab693b390a8f803e5e2baa1b76b387 | Shell | n8felton/DeployStudio | /DeployStudio Admin.app/Contents/Frameworks/DSCore.framework/Versions/A/Resources/Tools/Common/ds_time_setup_install.sh | UTF-8 | 1,156 | 3.78125 | 4 | [] | no_license | #!/bin/sh
SCRIPT_NAME=`basename "${0}"`
SCRIPT_PATH=`dirname "${0}"`
echo "${SCRIPT_NAME} - v1.6 ("`date`")"
if [ ${#} -lt 2 ]
then
echo "Command: ${SCRIPT_NAME} ${*}"
echo "Usage: ${SCRIPT_NAME} <volume name> <timezone> [<network time server>]"
echo "RuntimeAbortWorkflow: missing arguments!"
exit 1
fi
if [... | true |
8a4ed6f72eb22717d6d73c40f6511af2dfbcc860 | Shell | useredsa/connect.kak | /rc/connect/commands/:edit | UTF-8 | 1,366 | 3.703125 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
# Open files.
#
# Usage:
#
# :edit <file>
# :edit +<line> <file>
# :edit +<line>:<column> <file>
# [files] | :edit
#
# Note: Order matters.
. "$KAKOUNE_PRELUDE"
# Read files from stdin when a terminal is available.
# Reason: kak-desktop
if [ ! -t 0 -a -t 1 ]; then
while read file; do
set -- "$file" "... | true |
f3c2ccada699f86010e6d13ce4648e345bf16fd8 | Shell | hybridgroup/gophercon-2018 | /sensor/up2/runner.sh | UTF-8 | 251 | 2.671875 | 3 | [
"MIT"
] | permissive | [ $# -eq 0 ] && { echo "Usage: $0 [stepX] [ipaddress]"; exit 1; }
echo "Compiling..."
GOARCH=amd64 GOOS=linux go build -o $1app ./$1/main.go
echo "Copying..."
scp $1app upsquared@$2:/home/upsquared/$1app
echo "Running..."
ssh -t upsquared@$2 ./$1app
| true |
49a9a1609b2d7e62697e41a7bb04f510a34a56eb | Shell | xiexuchao/VSSD | /test.sh | UTF-8 | 2,199 | 2.828125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
##########################
# VSSD disksim run 0.0
# 2012/02/17
##########################
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#read -p "make file !? (y/n) : " make_check
#read -p "run cgdb !? (y/n) : " cgdb_check
run_ssdsim_cnt="4"
check_disksim_cnt=$(ps -l... | true |
c896abfad22f9a749db50059b28869de000c3eae | Shell | shirshakmaskey/fabric-mns | /test-network/runCC.sh | UTF-8 | 1,823 | 2.921875 | 3 | [] | no_license | ARGS1="$1"
ARGS2="$2"
ARGS3="$3"
ARGS4="$4"
ARGS5="$5"
ARGS6="$6"
ARGS7="$7"
ARGS8="$8"
ARGS9="$9"
ARGS10="${10}"
ARGS11="${11}"
ORGA="${12}"
ORGB="${13}"
ORGC="${14}"
ORGD="${15}"
ORGE="${16}"
CHANNEL_NAME="mychannel"
CC_SRC_LANGUAGE="golang"
VERSION="1"
SEQUENCE="1"
DELAY="3"
MAX_RETRY="5"
VERBOSE="false"
CC_SRC_LAN... | true |
1333d6b1564d0c820dade2afdf91b88d0e7bd604 | Shell | matthew-ackerman/gsim | /analysis_pipline/mapgd_analysis.sh | UTF-8 | 1,870 | 2.53125 | 3 | [] | no_license | #!/bin/bash
cd ..
source settings.sh
cd /nfs/users/nfs_m/ma18/src/gsim/analysis_pipline
samtools view -H ../sequences/seq_000${paired}${filtered}${realign}${clipped}${bwasuffix} > ../sequences/temp-header.txt
name=$1
LD_DIST=$2
samtools mpileup -B ../sequences/*${paired}${filtered}${realign}${clipped}${bwasuffix} -... | true |
3f0731e599c1a5a11360faa551fd1d87db8b1305 | Shell | Wallkerock/X-setup | /.scripts/updates-install-i3.sh | UTF-8 | 940 | 3.46875 | 3 | [] | no_license | #! /bin/bash
### For other terminal emulators ###
# urxvt -e zsh -c
# xfce4-terminal -x bash -c
# gnome-terminal -x bash -c
### URXVT setup ###
urxvt -name float -e bash -c "echo -e '\e[1;33mSystem ready to update. Enter to run PACMAN: \e[1;30m/Ctrl+c Exit/\e[0m'; read; \
sudo pacman -Syu; \
echo -e '\n\e[1;33mDone... | true |
65a31e4ca99489eaff4977893d8cd6d9d23ed7e2 | Shell | jeffreyfox/LeetCode | /Algorithms/list_difficulty | UTF-8 | 432 | 3.875 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Please specify input file name!"
exit;
fi
file=$1
echo "$file : "
solved=0
total=0
while read N
do
cnt=`grep -c $N Summary.txt`
if [ $cnt -ne 0 ] ; then
# echo -en "X "
((solved++))
else
# echo -en "$N "
echo `grep $N Problems.csv`
fi
((total+... | true |
6cb3c5a0f2a79a306c4b179b5522e5d72b93c72a | Shell | kangas/.dotfiles | /go.sh | UTF-8 | 102 | 3.015625 | 3 | [
"MIT"
] | permissive | if [ -d "/usr/local/go/bin" ] ; then
export GOROOT=/usr/local/go
PATH="$PATH:$GOROOT/bin"
fi
| true |
26036a63f1acb43cf604dd7bcf31db189e00db7a | Shell | eosswedenorg/scripts | /delphi-price-oracle.sh | UTF-8 | 924 | 3 | 3 | [] | no_license | #!/bin/bash
ACCOUNT="ACCOUNT_NAME"
CONTRACT="delphioracle"
get_price() {
echo $(echo "$1" | jq -c ".$2") $3 | awk {'printf "%d",$1*$2'}
}
unlock_wallet() {
${CLEOS} --wallet-url ${WALLET_URL} unlock --password "PW5................"
}
URL="https://min-api.cryptocompare.com/data/price?fsym=WAX&tsyms=BTC,USD"
CLEO... | true |
8928a27c767b0205598ce8bb5c0d00bcac4dc867 | Shell | ahawthorne/bungler | /bungler | UTF-8 | 2,099 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#define commands for use with rails
#RAILS_CMDS=(rails rake rspec cucumber pickler)
function bungle_load_cmds {
if [[ -z ${BUNGLER} ]]; then
BUNGLER="rails rake"
export BUNGLER
fi
BUNGLER_RAILS_CMDS=($BUNGLER)
for i in "${BUNGLER_RAILS_CMDS[@]}"; do
eval "function $i { bunglfy $i \$@;... | true |
7bd0a33258c5b0537b3a9a5893fea0428d3324d0 | Shell | jasder/os_preparation | /functions/F_01_ENV_03_basic_02_pkgs_rails.sh | UTF-8 | 2,365 | 2.90625 | 3 | [] | no_license | local pkgs_list=""
echo "==============================="
echo " Installing basic dev packages for rails..."
echo "==============================="
#-----------------------------------------------------------------------------------------
#Package Install
#-------------------------------------------------------------... | true |
28f3b87f872a17128d411ba847cb7802f0f8ff32 | Shell | wdke/wdk-code-general | /wdk-code-general-core/src/main/docker/copy.sh | UTF-8 | 484 | 2.640625 | 3 | [] | no_license | #!/bin/bash
echo "-------开始复制文件到指定文件目录---------"
cd auto-code/springboot-demo/
echo $(mvn clean)
echo $(mvn package)
rm -rf /opt/app/auto-code/springboot-demo/
mkdir /opt/app/auto-code/springboot-demo
cp ./target/springboot-demo-0.0.1-SNAPSHOT.jar /opt/app/auto-code/springboot-demo/
cp ./src/main/docker/* /opt/app/auto... | true |
db8e056fc776d03b40f8e86f70f21eacecb8d4ef | Shell | HungHuynh/linuxConfigs | /.zsh/aliases | UTF-8 | 1,871 | 2.671875 | 3 | [] | no_license | #!/bin/zsh
#Alias
#Auto open files
alias -s {jpg,JPG,jpeg,JPEG,png,PNG,gif,GIF}='feh'
alias -s {mpg,mpeg,avi,ogm,ogv,wmv,m4v,mp4,mov,f4v,mkv}='mplayer'
alias -s {mp3,ogg,wav,flac}='ncmpcpp'
alias -s {html,php,com,net,org,gov}='chromium-browser --user-data-dir=~/.chromium &'
alias -s pdf='zathura'
alias -s chm='xchm'
al... | true |
b7609c38a392154c80bfd8bc45734e6148eadde0 | Shell | emanjavacas/spelldict | /data/scripts/process_data.sh | UTF-8 | 303 | 3.203125 | 3 | [] | no_license | IN=$1
OUT=$2
TMP=$OUT/tmp/
N=200
SPLITTA=/home/enrique/code/splitta.1.03
mkdir $TMP
echo "text-processing sentences files"
for f in ${IN}*; do
python $SPLITTA/sbd.py -m $SPLITTA/model_svm $f \
| python ./text_preprocessing.py > $OUT`basename $f`
done
echo "cleaning up"
rm -r $TMP
echo "done!"
| true |
2f5436f267dfb386dc034f2500f7a1f8132da223 | Shell | shafdanny/heat-transfer-simulator | /execute.sh | UTF-8 | 146 | 2.734375 | 3 | [] | no_license | #!/bin/bash
EXEC=./bin/main
DEFAULTOPTION="-i 10000 -e 012345 -s 024 -t 13 -m"
if [ "$#" -gt "0" ]; then
$EXEC $@
else
$EXEC $DEFAULTOPTION
fi | true |
643ea06f442b2dc20fe3d5db9614f5ead30cdd42 | Shell | jpmacveigh/WCS-MF | /getCoverage.sh | UTF-8 | 2,835 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# construit les paths et envoye les requêtes getCoverage au WCS
# $1 est le le coverageID
# $2 est la résolution du modèle AROME (0025 ou 001)
resol=$2
echo "****************************************************************************************"
echo "getCoverage du coverageID : "$1 # le coverage... | true |
feff120baccf336ce0c97a74e9385d40a53eaca6 | Shell | Shreekkanth/RedHatToolsInstaller | /Ansible_Tower/Playbook_Examples/LAPTOP/fedora-csb-automated-master/setup-machine.sh | UTF-8 | 340 | 2.53125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# TODO check that local configuration file has been adapted
# we do this here because the first upgrade might break ansible itself
sudo dnf -y upgrade
# Wait a bit to make sure dnf locks are released (had issues)
sleep 5
# And then call the right book, asking again for SUDO password
ansible-playbook -K ... | true |
00103a7a7e10310b1de7455defdde05780ca0060 | Shell | tw4452852/MyConfig | /.p9p/env | UTF-8 | 304 | 2.921875 | 3 | [] | no_license | #!/bin/sh
export PLAN9="$HOME/code/plan9port"
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"$PLAN9/bin":*)
;;
*)
# Prepending path in case a system-installed rustc needs to be overridden
export PATH="$PATH:$PLAN9/bin"
;;
esac
| true |
542188fecea5447d657715724de0586e58726993 | Shell | softbaseas/dbstart_service | /src/webnm_service.sh | UTF-8 | 1,972 | 3.671875 | 4 | [] | no_license |
# Check if script is run as root.
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root."
exit
fi
# Check if systemd is present. If not, it's an older system, and init.d has to be used instead.
if [ `ps -e|grep " 1 ?"|cut -d " " -f15` != "systemd" ]; then
echo "Systemd is not present. Use init.d scr... | true |
a0463cf4f16c73be557cbf27df419c8c30ad16a8 | Shell | Safecast/ingest | /cron/logger.bash | UTF-8 | 5,698 | 4.09375 | 4 | [
"MIT"
] | permissive | # This file should be sourced, not executed. Do not add shebang to top.
# Usage:
#
# Most users will only need to use the log(), start_perf_timer(), and
# stop_perf_timer() functions.
#
# log <LEVEL> <MESSAGE>
# start_perf_timer <TIMER NAME>
# stop_perf_timer <TIMER NAME>
source "$base_dir"/logger_presets.bash
comma... | true |
65f1bc9feb716616ff981ea98c7f7951d532d62f | Shell | samsung-cnct/cma-vmware | /tests/get-cluster.sh | UTF-8 | 468 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
CLUSTER_API=${CLUSTER_API:-cluster-manager-api.cnct.io}
CLUSTER_API_PORT=${CLUSTER_API_PORT:-443}
CLUSTER_NAME=${CLUSTER_NAME:-vmware-test-$(date +%s)}
[[ -n $DEBUG ]] && set -o xtrace
set -o errexit
set -o nounset
set -o pipefail
main() {
curl -X GET \
"https://${CLUSTER_API}:${CLUSTER_API_PORT}/a... | true |
df6a3a4f8640b0883e436f4b6b97a2cf749b9e73 | Shell | royceda/gurobi-docker | /docker-entrypoint.sh | UTF-8 | 475 | 3.390625 | 3 | [] | no_license | #!/bin/sh
set -e
#if [ "${1:0:1}" = '-' ]; then
# set -- gurobi "$@"
#fi
#if [[ "$VERBOSE" = "yes" ]]; then
# set -x
#fi
#GUROBI_LICENSE="bc813f4e-fc70-11e8-b639-02e454ff9c50"
#echo '' | grbgetkey bc813f4e-fc70-11e8-b639-02e454ff9c50
license=/home/gurobi/gurobi.lic
if [ -f $license ]; then
echo "Skippi... | true |
63f2969ae2281acbc8a61f369a5c33482cefc5e3 | Shell | biorobaw/SCS_Sample_Model | /scripts/circe_cluster/configuration_process_results.sh | UTF-8 | 444 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#SBATCH --time=0:10:00
#SBATCH --cpus-per-task 2
#SBATCH --qos=preempt
#SBATCH --mem=2000M
#SBATCH -p mri2016
processor_file=$1
baseDir=$2
configId=c$SLURM_ARRAY_TASK_ID
echo "configId " $configId
module rm apps/python/3.7.0
module add apps/python/3.7.3
PYTHONUSERBASE=/home/p/pablos/work/pythonlibs
py... | true |
38f68852ca26ccc9830b68066ffb87d777fe38e7 | Shell | substring/packages | /package/switchres/rebuild_edids.sh | UTF-8 | 2,203 | 3.21875 | 3 | [] | no_license | #!/bin/bash
source /opt/gatools/include/includes.sh
#Build various EDIDs
build_and_install_edids() {
mkdir -p /tmp/sredid
cd /tmp/sredid
for m in generic_15 arcade_15 arcade_15ex k7000 k7131 h9110 polo ; do
switchres 640 480 60 --edid --monitor "$m"
done
# 25kHz
for m in arcade_25 arcade_15_25 ; do
switchre... | true |
178951cf02403260417b6090921c220ea138bc53 | Shell | LuCh1Monster/ShellDemos | /ch_04/demo04_18.sh | UTF-8 | 165 | 2.984375 | 3 | [] | no_license | #!/bin/bash
declare -i j=33
for i in 12 34 23 44 22
do
if [ $j -lt $i ]
then
echo $i
echo
else
echo $j
echo
fi
done
| true |
addd6cf7cc84ce670749a87e243a1a3a7641c3b0 | Shell | lupeordaz/csctoss | /denoss01/jobs/sync_product_code.sh | UTF-8 | 4,734 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#
# Synchronize product code between OSS and JBilling.
# This script updates OSS database based on JBilling plan information.
#
# $Id: $
#
source /home/postgres/.bash_profile
DATE=`date +%Y%m%d`
BASEDIR=/home/postgres/dba
LOGFILE=$BASEDIR/logs/sync_product_code.$DATE
#echo "CSCTOSS LINE/CLASS REPORT FOR $... | true |
de51e920ef5e9a4dba86d300d96bcded1238abce | Shell | domo141/nottoomuch | /md5mda.sh | UTF-8 | 4,857 | 3.8125 | 4 | [] | no_license | #!/bin/sh
# $Id; md5mda.sh $
#
# Copyright (c) 2011-2014 Tomi Ollila
# All rights reserved
#
# Created: Thu Jul 28 2011 21:52:56 +0300 too
# Last modified: Wed 25 Feb 2015 16:35:48 +0200 too
set -eu
# When launched from ~/.forward, PATH not available...
PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin
... | true |
d9999a9ae3deeb56f215f7bee856e26b9a16ebeb | Shell | rcicm/Shell-Scripts | /Generic/RedisMonitor.sh | UTF-8 | 2,692 | 3.796875 | 4 | [] | no_license | #!/bin/bash
##############################################################
# Script to verify the read/write actions in a Redis instance
# and the memory usage of this instance.
# It send an alert to Nagios case the memory usage is higher
# than $WARNMEM or if it couldnt insert/read a new key.
#
# 2012/11/21 - Rafael... | true |
a86da4cca9f41e0cf14e667de06406de4aafe218 | Shell | kgyrtkirk/hive-toolbox | /dep-spider/spider.bash | UTF-8 | 830 | 3.109375 | 3 | [] | no_license | #!/bin/bash
BASE="http://savara:3200/artifactory/wonder/"
cat ${1:-_deptree} | sed 's/.* //'|grep compile$|grep -F 3.0.3.0|sort|uniq|while read l;do
#org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:3.1.1.3.0.3.0-211:provided
IFS=: read -ra parts <<< $l
echo "$l ${#parts[@]}" >&2
group=${parts[0... | true |
08197ba06a9be01ef7a8925a871910b2d16d7bea | Shell | chzchzchz/fsl | /util/plot/gen_histo.sh | UTF-8 | 883 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function set_gnuscript
{
TITLE="$1"
OUTFILE="$2"
YLABEL="$3"
XLABEL="$4"
SRCFILE="$5"
gnuscript_dat="
set terminal png transparent nocrop enhanced small
set output '$OUTFILE.png'
set datafile missing '-'
set title '$TITLE'
set auto x
set yrange [0:10]
set style data histogram
set style histogram clus... | true |
92fff36fadf39b39dd886271f583be8e86a3109b | Shell | fredericomartini-docker-libraries/environment-php7-dev | /themartec.sh | UTF-8 | 378 | 2.53125 | 3 | [] | no_license | #!/bin/bash
#turn on containers
./start-environment start
#cp virtualhost
docker cp config/apache2/sites-enabled/themartec.conf apache2-php:/etc/apache2/sites-enabled/
#replace php.ini
docker exec apache2-php sed -i "s,error_reporting =.*,error_reporting = E_ALL \& ~E_NOTICE,g" /etc/php/7.0/apache2/php.ini
#restart... | true |
3a00274b5cb1d038b9447ba2244e95ef78cce64f | Shell | edentsai/dotfiles | /src/dot-bashrc.d/bashrc.d/man-command.bashrc | UTF-8 | 2,043 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# vim: set filetype=sh
# Return if not running interactive bash.
if [[ "${BASH_VERSION:-}" == "" ]] || [[ "${PS1:-}" == "" ]]; then
return
fi
# Configure env variables and aliases for `man` command.
bashrc::configure_man_command()
{
# MANPAGER: Program used to display files.
if command... | true |
04f11355328edb717a68f0b28380aeccc070abc0 | Shell | SplitThePot/kubernetes-scripts | /wait-for-job | UTF-8 | 2,661 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Waits for a job to complete.
#
# Includes a one-step approach:
#
# 1. Wait for the nr of expected completion to be equal to nr of succeeded
#
#
set -o errexit
set -o pipefail
set -o nounset
# -m enables job control which is otherwise only enabled in interactive mode
# http://unix.stackexchange.com/a/19660... | true |
79641c3de48be3e293c1e899c0acc2d447c8cee0 | Shell | chanyaz/ewe-android-hack | /jenkins/fork.sh | UTF-8 | 1,324 | 3.703125 | 4 | [] | no_license | #!/bin/bash
export TERM=dumb
internal_artifact() {
pushd project/build/fork
tar -czvf ~/artifacts/uitests-$BUILD_NUMBER-$1.tar.gz expedia
popd
}
./gradlew --no-daemon clean --continue
./gradlew --no-daemon clean
# unistall old apks
./tools/uninstall.sh com.expedia.bookings
build() {
./gradlew --no-daemon aED... | true |
121b249619fc54e5b1afbebd68d554c296d8b5a2 | Shell | ModusCreateOrg/devops-infra-demo | /bin/codedeploy/ValidateService.sh | UTF-8 | 1,409 | 3.6875 | 4 | [
"CC-BY-3.0",
"MIT"
] | permissive | #!/usr/bin/env bash
#
# ValidateService.sh
#
# AWS CodeDeploy Validate Service hook script
# Set bash unofficial strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
# Set DEBUG to true for enhanced debugging: run prefixed with "DEBUG=true"
${DEBUG:-false} && set -vx
# ... | true |
5a0c38d9a954a0f2957c5775b60a7b89153b80af | Shell | lukaasp/devops | /kops_hook.sh | UTF-8 | 1,916 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
while true;do
if [ `sudo systemctl is-active docker` = "active" ];then
echo "Docker is running ... continuing with installation."
docker -v
break;
fi
echo "Waiting till nodeup finishes docker installation ..."
sleep 10
do... | true |
abbe2a20d538a69d956bca0c719dc114fdc8a8c4 | Shell | alexjh/opensuse-cf-stacks-ci | /tasks/create-stack-receipt/task.sh | UTF-8 | 412 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
set -x
mkdir -p receipt-artifacts
receipt_filename="receipt-artifacts/opensuse-cf-stack_receipt-$(cat version/number)"
echo "Rootfs SHA256SUM: $(sha256sum opensuse-cf-stacks-latest-image/rootfs.tar | awk '{print $1}')" > "${receipt_filename}"
echo "" > "${rec... | true |
c28fcb4bfa747603bfece0f5666542a8cd78f340 | Shell | kikorulan/HFExamples | /Example60_stochastic.bash | UTF-8 | 1,519 | 2.890625 | 3 | [] | no_license | #!/bin/bash
#================================================================================
# EXAMPLE for STOCHASTIC PDHG
# 3D domain.
# Compute the forward signal for sensors placed in the boundary of the cube
#================================================================================
# Output folder
export... | true |
1a723a9b4d45f3956511fff1b0bc9a6d22c4d916 | Shell | mastarink/masbash | /home_dots/screen_combined.20121019/.profile | UTF-8 | 1,657 | 2.5625 | 3 | [] | no_license | [[ "$MAS_TOPVARS" ]] || . $HOME/.topvars
echo -en "Sourcing ${BASH_SOURCE[0]}\e[K\r" >&2
######################################################################
declare -gx MAS_TEST_AT_PROFILE=MAS_TEST_AT_PROFILE
# declare -agx MAS_TESTAR_AT_PROFILE
# declare -Agx MAS_TESTAS_AT_PROFILE
# MAS_TESTAR_AT_PROFILE[0]=MAS_... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.