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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ece21a18be38fda2f40580260f4ba3b5765bd975 | Shell | NHERI-SimCenter/PBE | /makeEXE.sh | UTF-8 | 647 | 3.609375 | 4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# create build dir if does not exist, cd to build, conan install and then qmake
#
mkdir -p build
cd build
#
# conan install
#
conan install .. --build missing
status=$?
if [[ $status != 0 ]]
then
echo "PBE: conan install failed";
exit $status;
fi
#
# qmake
#
qmake ../PBE.pro
status=$?
if [... | true |
59ce12536cfa9ce65ea4b653fa03c4665a29e373 | Shell | ipfs/go-ds-s3 | /set-target.sh | UTF-8 | 880 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
GOCC="${GOCC:-go}"
set -eo pipefail
GOPATH="$($GOCC env GOPATH)"
VERSION="$1"
PKG=github.com/ipfs/kubo
if [[ "$VERSION" == /* ]]; then
# Build against a local repo
MODFILE="$VERSION/go.mod"
$GOCC mod edit -replace "github.com/ipfs/kubo=$VERSION"
else
$GOCC mod edit -dropreplace=github.co... | true |
10069666bc6a444ace63ac704d7a15326fb155ad | Shell | ldxforstudy/shell-cookbook | /awk/auto_deploy.sh | UTF-8 | 303 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
# 自动部署redis应用
PID=`ps -e -o 'pid,command' | grep 'redis' | grep -v 'grep' | awk ' BEGIN { FS=" "; } { print $1} '`
if [ ! -z "${PID}" ]; then
echo "PID: ${PID}"
else
echo "Redis server not running!!"
exit 0
fi
echo "Before kill!!"
kill -9 ${PID}
sleep 2 | true |
76c39ba105643a583bb1236e7d7050ba5587d71f | Shell | rajithrp/nodejs | /scripts/publish-manually | UTF-8 | 1,039 | 3.859375 | 4 | [] | no_license | #!/bin/bash -e
# Ensure we are running in root directory
if [ "$(basename $(pwd))" != 'nodejs' ]; then
echo "Error: Run script in monorepo root directory with folder name 'nodejs'"
exit 1
fi
# Build to ensure we publish the latest code
npm run build
packages=()
for dir in packages/*; do
packages=(${packages[@... | true |
92ee5d4c7edcd675fd2613797336822f1a67de4b | Shell | delkyd/alfheim_linux-PKGBUILDS | /arc-dark-xfce4-terminal/PKGBUILD | UTF-8 | 490 | 2.640625 | 3 | [] | no_license | # Maintainer: zekeer <isoniasid@gmail.com>
pkgname=arc-dark-xfce4-terminal
pkgver=1
pkgrel=2
pkgdesc="Arc-Dark colorscheme for xfce4-terminal"
arch=('any')
depends=('xfce4-terminal')
url="https://manjaro.ru/"
license=('GPL3')
source=(https://manjaro.ru/aur/arc-dark-xfce4-terminal/$pkgname.tar.gz)
md5sums=('f3f72afd7b... | true |
e24b24123c6cdf2f27d64c7e5bdd9bbaa86933c6 | Shell | wesleyz/DistProcess | /tFIndex.sh | UTF-8 | 1,140 | 3.84375 | 4 | [] | no_license | #!/bin/bash
### Create a index directory with weight to each termi for one file
### Author: Delermando Branquinho Filho - delermando@gmail.com
### LCAD - Laboratório de Computação de Alto Desempenho. - UFES http://www.lcad.inf.ufes.br/
###
### MAIN ####
if [ $# -eq 0 ] ; then
echo -e "Sintax\n$0 file_name\n"
... | true |
06e4629c7bf5cc723c6d27d1eab07e6b364d8429 | Shell | tendermonster/arch-on-hetzner | /inception.sh | UTF-8 | 633 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#inception
#setup pacman-key
pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys
#mount partitions
mount /dev/md2 /mnt
mkdir /mnt/{boot,home,var}
mount /dev/md1 /mnt/boot
mount /dev/md3 /mnt/var
mount /dev/md5 /mnt/home
#have no idea why u need to do this.. debian specific
mkd... | true |
2da2770aa359bd73d5b73bfb8ea80adc2eceb658 | Shell | muhammadalbar/sisbro_backend | /soundcard.sh | UTF-8 | 1,077 | 3.1875 | 3 | [] | no_license | mocp -S
play_pause() {
clear
toggle=$(mocp -p)
echo '-----------------------------'
echo ' Play/Pause '
echo '-----------------------------'
echo 'Play pause toggle are hit'
}
volume_up() {
clear
mixer=$(amixer set Master 10%+)
echo '-----------------------------'
echo ' Volume Up ... | true |
8985de51aa594f3dcbe67d6e02566b5ac842155b | Shell | petronny/aur3-mirror | /blender-bin/PKGBUILD | UTF-8 | 1,558 | 2.921875 | 3 | [] | no_license | # Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
pkgname=blender-bin
# Please blender, stick to one way of naming your versions
pkgver=2.58a
_pkgver=2.58
pkgrel=1
pkgdesc="A fully integrated 3D graphics creation suite (binary version)"
arch=('i686' 'x86_64')
url="http://blender.org/"
license=('GPL')
depends=(... | true |
417850a943f2def6e0c129743227d282636a9876 | Shell | rsiverd/ultracool | /90_gather_target_coords.sh | UTF-8 | 756 | 3.8125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# This file contains commands to scrape name, RA, Dec from target .par files
# in order to produce targets_deg.txt.
#
# To run script, do (adjust file names as needed):
# ./90_gather_target_coords.sh --START # inspect manually
# ./90_gather_target_coords.sh --START > targets_deg.txt
if [ "$1" != "--STA... | true |
69c32097b241f1ec6549107ec6d9c8d34b7c33f0 | Shell | xif-fr/ioslavesd | /ioslavesd/PKGBUILD | UTF-8 | 2,238 | 2.65625 | 3 | [] | no_license | # Maintainer: Félix Faisant <xcodexif@xif.fr>
pkgname=ioslavesd
pkgver=3.7.3
pkgrel=1
pkgdesc='Xif Network - ioslaves control program daemon for slave side'
license=('custom')
arch=('i686' 'x86_64')
depends=('socketxx' 'libconfig' 'miniupnpc>=1.9' 'topp')
makedepends=('xifutils')
backup=('etc/ioslavesd/ioslavesd.conf'... | true |
eaf1cbacb0e35242c50337282044c3e0d6091110 | Shell | gsat-technology/aws-s3-uploader-tool | /lambda_deploy.sh | UTF-8 | 396 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#run using: ./lambda_deploy.sh <s3 bucket>
TMP_DIR=/tmp/deployment_packages
S3_BUCKET=$1
LAMBDAS=$(ls lambda_code)
APP_NAME=${PWD##*/}
mkdir -p $TMP_DIR
for lambda in $LAMBDAS
do
echo "processing $lambda"
cd ./lambda_code/$lambda
zip -r $TMP_DIR/$lambda.zip *
cd ../../
aws s3 cp $TM... | true |
964de9b55f08ef2923ebd7a988a0dafbacc179e3 | Shell | jonmorehouse/bob | /build | UTF-8 | 520 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -o pipefail
set -u
cd /src
NAME=bob
echo "building with GOOS=darwin GOARCH=386 ..."
GOOS=darwin GOARCH=386 go build -o /output/${NAME}_darwin_386
echo "building with GOOS=darwin GOARCH=amd64 ..."
GOOS=darwin GOARCH=amd64 go build -o /output/${NAME}_darwin_amd64
echo "building with G... | true |
5c9367e17538b9e8acba50e1e24b639279b6bd1a | Shell | mdippery/dotfiles | /bash/.bashrc | UTF-8 | 827 | 2.65625 | 3 | [] | no_license | export DOTBASH="${HOME}/.bash"
export DOTBASH_OS=$(uname -s | tr '[:upper:]' '[:lower:]')
export XDG_BIN_HOME=${XDG_BIN_HOME:-$HOME/.local/bin}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/Library/Caches}
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
export XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share... | true |
608e0219af1cd7a2da0e16e6a38eecfa022d61a1 | Shell | Mihail-Kostov/bash-toolbox-1 | /app/server/version/override/AppServerVersionOverride.sh | UTF-8 | 1,312 | 2.890625 | 3 | [
"MIT"
] | permissive | include app.server.version.constants.AppServerVersionConstants
include base.vars.BaseVars
include string.validator.StringValidator
@class
AppServerVersionOverride(){
getTomcatVersion(){
if [[ $(StringValidator isSubstring ${branch} 7.0) ]]; then
echo 8.0.32
elif [[ $(StringValidator isSubstring ${branch} ee-... | true |
5d1db94788c2beafe8db1f39615204a037caf15e | Shell | jdeantoni/KilnRegulator3.0 | /raspberrypi/conf/scripts/enable_watchdog.sh | UTF-8 | 500 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo "Installing, configuring and enabling watchdog"
set -x
#Watchdog
sudo apt update
sudo apt install -y watchdog
echo -e "# activating the hardware watchdog\ndtparam=watchdog=on" |sudo tee -a /boot/config.txt
cat <<EOF | sudo tee -a /etc/watchdog.conf
# rpi watchdog device
watchdog-device = /dev/watchdog
#... | true |
803db3dbbde7823b9c9a2bd1d268b94a64af242a | Shell | Kariel-Myrr/ITMO_OS_lite | /lab1/i | UTF-8 | 92 | 3.234375 | 3 | [] | no_license | #!/bin/bash
let a=$1
for i in $2 $3
do
if [[ $i -gt $a ]]
then a=$i
fi
done
echo "$a"
| true |
acf442a62169b69a16f90c639b31385d329aa262 | Shell | aimeedonahue/instant-sms-ussd | /isms-v2/sandbox/svg/convert.sh | UTF-8 | 396 | 2.5625 | 3 | [
"DOC"
] | permissive | #!/bin/sh
rm -rf drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi
mkdir drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi
for i in *.svg
do
k=${i%%.*}
inkscape -z -e drawable-xxhdpi/$k.png -d 90 $k.svg
inkscape -z -e drawable-xhdpi/$k.png -d 60 $k.svg
inkscape -z -e drawable-hdpi/$k... | true |
3768abb61317ba5ee853eff267478ce5014a6c73 | Shell | petronny/aur3-mirror | /8kingdoms/PKGBUILD | UTF-8 | 1,312 | 2.796875 | 3 | [] | no_license | # Maintainer:
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Christoph Zeiler <rabyte*gmail>
pkgname=8kingdoms
pkgver=1.1.0
pkgrel=2
pkgdesc="A 3D turn-based fantasy strategy game in which players become kings"
arch=('i686' 'x86_64')
url="http://kralovstvi.sourceforge.net/"
license=('G... | true |
26edfce53041f04f313b79c2c0885258f726c5f8 | Shell | christopherferreira19/Univ | /M1_S1/nachos/nachos/test/step2/compare-linux-nachos.sh | UTF-8 | 2,927 | 4.21875 | 4 | [
"MIT-Modern-Variant"
] | permissive | usage() {
echo "test-run.sh <step> <rs count>"
}
if [[ -z "$1" ]]; then
echo "Missing first argument"
usage
exit 1
fi
if [[ -z "$2" ]]; then
echo "Missing second argument"
usage
exit 1
fi
# Setup the managed directories
NACHOS_BIN=$(check_file -e "$CODE_DIR/build/nachos-$1")
NACHOS_OPTION... | true |
b5278a238798bec21fb50e860433af90fef4e226 | Shell | gvd0hk/mbrochh-dotfiles | /bin/resize-images.sh | UTF-8 | 233 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# Creates a folder ``resized`` and resizes all .JPG images in the
# current folder into the new folder.
#
# Usage:
#
# resize-images.sh 40
mkdir ./resized
find . -name "*.JPG" | xargs -i convert -scale $1% {} ./resized/{}
| true |
93a4514562cc417536959b2679720ad577fd5a45 | Shell | nongiga/scripts | /bash/move_raw_files.sh | UTF-8 | 1,184 | 3.359375 | 3 | [] | no_license | #!/bin/bash
############################################################################
# ARRANGE FILES
# Olga Snitser, 20 May 2020
# Modified by Noga Aharony, June 7, 2020
############################################################################
# Paths to input/output files and folders
#########################... | true |
375616083c4e3512f71057b15f39f47406f4b0ec | Shell | psexton/dockerfiles | /npm-registry/configure_registry.sh | UTF-8 | 565 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
## Start Couch
/etc/init.d/couchdb start
# Wait for it to spin up
sleep 5
# Run the npm-registry-couchapp scripts
npm start --npm-registry-couchapp:couch=http://docker:p4ssw0rd@localhost:5984/registry
npm run load --npm-registry-couchapp:couch=http://docker:p4ssw0rd@localhost:5984/registry
echo -e "yes\n... | true |
add9b0280a22f44b5d239892bba2a49f7695392c | Shell | BenYang77/TestBashShell | /Lecture/Exercises/safecopy.bash | UTF-8 | 235 | 3.578125 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
clear;
FROM=$1
TO=$2
if [ -e $TO ]; then read -p "Do you want to overwrite $TO(y:yes;n:No)?" ANSWER; fi
if [ $ANSWER == "y" ]; then
cp $FROM $TO;
Echo file copy from [$FROM] to [$TO] bye bye
else
Echo "cancel copy"
fi | true |
2b023e83caeba510b2bab085ae0b560cd9bf7c50 | Shell | fnwiya/dotfiles | /setup/zsh/.zsh.d/ranger.zsh | UTF-8 | 189 | 3.078125 | 3 | [] | no_license | if [ -x /usr/local/bin/ranger ]; then
function ranger() {
if [ -z "$RANGER_LEVEL" ]; then
/usr/local/bin/ranger $@
else
exit
fi
}
fi
| true |
fed7e6804a5079ef17ae70155ce959c331e79270 | Shell | rawmind/utils | /touchpad.sh | UTF-8 | 229 | 3.09375 | 3 | [] | no_license | #!/bin/bash
function switch(){
local device_id=14;
local state=$(xinput --list-props $device_id | grep "Device Enabled" | cut -d":" -f2)
[ $state -eq 0 ] && xinput --enable $device_id || xinput --disable $device_id
}
switch
| true |
f3d486479115f4a03d7b2403e9d8bbf7565fc6e3 | Shell | TritonDataCenter/triton-mockcloud | /boot/setup.sh | UTF-8 | 903 | 3 | 3 | [] | no_license | #!/usr/bin/bash
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2019, Joyent, Inc.
#
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0... | true |
3c8a946095ef3a3ee4b47392366b9dbb9ccc0fd5 | Shell | jbboynton/dotfiles | /zprofile | UTF-8 | 1,641 | 3.296875 | 3 | [] | no_license | # Set up the environment for the current platform and architecture
# x86-specific setup
function x86_brew_env() {
eval "$(/usr/local/bin/brew shellenv)"
export PATH="/usr/local/bin:$PATH"
}
# ARM-specific setup
function arm_brew_env() {
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="/opt/homebrew/bin... | true |
dca2b09f0946aa3ef65a62dff9ba171882c5b9c6 | Shell | dusansimic/pmf-fedora-base | /install.sh | UTF-8 | 247 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
sudo dnf install -yq ansible
TARGET="$1"
case "$TARGET" in
vm)
ansible-playbook -i localhost, -c local -t base,devel main.yml
;;
metal)
ansible-playbook -i localhost, -c local main.yml
;;
*)
echo Invalid target
;;
esac
| true |
a090f047c318e04aab0a147e4b712c76641d5c76 | Shell | imciner2/Linux-Scripts | /GitHelpers/git-div | UTF-8 | 442 | 3.578125 | 4 | [] | no_license | #!/bin/bash
USAGE(){
echo "git div <branch> <remote> <remote branch>" 1>&2
echo ""
echo "Display the divergence between the given local branch"
echo "and the given remote branch"
exit 1
}
test $# -lt 3 && USAGE
git fetch $2 > /dev/null
echo "Differences between local branch $1 and branch $3 on remote $2"
echo "... | true |
047e94117aa690df08ace23f301d05c73d1595c1 | Shell | OpenPLi/OpenPLi-1 | /cdk/cdk/allboxes/bin/cardinfo-pli.sh | UTF-8 | 2,705 | 3.40625 | 3 | [] | no_license | #!/bin/sh
VERSION=1.05
#
# Check for new version
#
if [ -x /var/bin/cardinfo-pli.sh ]; then
CURR_VERSION=`echo $VERSION | tr -d '.'`
VAR_VERSION=`grep ^VERSION= /var/bin/cardinfo-pli.sh | cut -d= -f2 | tr -d '.'`
[ "$VAR_VERSION" -gt "$CURR_VERSION" ] && exec /var/bin/cardinfo-pli.sh
fi
tf=/tmp/readme.t... | true |
39a31518655d4dd104bf1de5544902ddf42b186a | Shell | Twicer/my_project | /scripts4-9/scr7.sh | UTF-8 | 191 | 3.34375 | 3 | [] | no_license | #!/bin/bash
if [ "$3" <> 0 ]; then
${Fault?"An excess argument!"}
else
if (( "$1" > "$2" )); then
echo "The first argument is bigger"
else
echo "The second argument is bigger"
fi
fi
| true |
4b0ad3d69a18bf910db8fc3bec8b66776ea45072 | Shell | loop-dryan/HBaseSQLImport | /hbsqli.sh | UTF-8 | 153 | 2.75 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
if [ -z "$HBSQLI_HOME" ]; then
echo "HBSQLI_HOME must be set"
exit 1
fi
java -cp "$HBSQLI_HOME/dist/*" -jar $HBSQLI_HOME/dist/hbsqli.jar $@
| true |
ef45740d3091c8b17aa5e36f60b49bfe8369e0e2 | Shell | optomal7/unix-bash-dive | /command-line/ex2-2.sh | UTF-8 | 580 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#What’s the command to list all the non-hidden files and directories that start with the letter “s”?
ls s* #for some reason this won't work if you only have one empty directory that meets this condition. Use ls | grep "^s" instead.
#What is the command to list all the non-hidden files that contain the stri... | true |
c2bbb869dd6cd4dedce41e6b296bfebd197e7798 | Shell | DrMike67/exercice | /call.sh | UTF-8 | 96 | 2.984375 | 3 | [] | no_license | #!/bin/bash
if [ $# = 2 ]
then
sh ./hello.sh $1 $2
else
echo "2 arguments are needed"
fi
| true |
f3bb041e5bbb6b8cf9a99cf58a6a53153fc17a05 | Shell | NickRuiz/moses-mt-server | /code/tags4moses/test-annotate-deannotate-roundtrip.sh | UTF-8 | 461 | 3.078125 | 3 | [] | no_license | #!/bin/bash
function die() { echo "$@" >&2; exit 1; }
set -o pipefail # safer pipes
input="$1"
[ -e "$input" ] || die "usage: $0 input-file"
vimdiff "$input" \
<(cat "$input" | ./annotate_words.py \
| perl -lne 's/^(<[^>]+>)//; my $hide = $1;my $i=0; my @out = (); foreach my $tok (split / /) { push @out, "$to... | true |
a985a4ae45f1ec449f4793117ec65be82925312a | Shell | schnuerle/transportation-dockless-api | /.travis/aws-helper.sh | UTF-8 | 1,668 | 4.09375 | 4 | [] | no_license | #!/usr/bin/env bash
set -o errexit
echo "Logging in to AWS Docker Repository"
$(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
function build_dockless {
DOCKLESS_IMAGE=$1
DOCKLESS_MODE=":latest"
DOCKLESS_FILE="Dockerfile"
# First, determine if we are building the base image.
if [ "${DOCKLESS... | true |
d35b7b65f4e5eea605f87b9f343ea59f3608a645 | Shell | da-moon/core-utils | /lib/install/homebrew.sh | UTF-8 | 1,170 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# shellcheck source=./lib/install/init.sh
source "$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)/install/init.sh"
function homebrew_installer() {
if is_root; then
log_error "homebrew installer must be invoked without root.exiting..."
exit 1
fi
local -r url="h... | true |
13f73c9e430775e9414b0680de78afcb55eb454b | Shell | iotdog/bashcmd | /gitcmd.sh | UTF-8 | 377 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env sh
## Constants
CMD_GetRepoInfo="repo"
##
show_help()
{
echo "$CMD_GetRepoInfo - get repository info"
}
exec_cmd()
{
if [ $1 = $CMD_GetRepoInfo ]; then
git remote show origin
else
echo "unknown command"
fi
}
if [ $# -eq 0 ]; then
show_help
elif [ $# -gt 1 ]; then
echo "error: th... | true |
efaa4504cc23efeddcaf68b47b117b2111c9c369 | Shell | uhulinux/ub-ubk4 | /kmod/addons/usr/lib/uhu-pkg/postinst/depmod | UTF-8 | 632 | 3.28125 | 3 | [] | no_license | #!/bin/sh -e
shopt -s nullglob
if [ "$1" == "kmod" -o "$1" == "+" ]; then
find /var/lib/dpkg/info/ -name "*.list" -print0 | xargs -r0 cat --
else
cat /var/lib/dpkg/info/"$1".list
fi | grep -Ex '/lib/modules(/[^/]+)+\.ko' | cut -d/ -f4 | sort -u | while read version; do
if [ -d "/lib/modules/$version" ]; then
if ... | true |
f87ee3e8e050884a3f8378c8592a5f682318fd4a | Shell | extremeshok/docker-baseimage-alpine | /rootfs/start.sh | UTF-8 | 388 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# Begin startup sequence
/bin/bash -e /init.sh
STATUS=$? # Captures exit code from script that was run
if [[ $STATUS == $SIGNAL_BUILD_STOP ]] ; then
echo "[start] container exit requested"
exit # Exit cleanly
fi
if [[ $STATUS != 0 ]] ; then
echo "[start] failed to init"
exit $STATUS
fi
# Start... | true |
1e69d49d91cb553de4dd3b81868520f4f5230e19 | Shell | prashantpalikhe/lets-grunt | /init_project.sh | UTF-8 | 3,486 | 3.96875 | 4 | [] | no_license | #!/bin/sh
# http://www.bashguru.com/2010/01/shell-colors-colorizing-shell-scripts.html
BOILERPLATE_DIR=`pwd`
function log() {
printf "\033[32m$1\033[0m\n"
}
function error() {
printf "\033[31m$1\033[0m\n"
}
function info() {
printf "\033[36m$1\033[0m\n"
}
function welcome() {
cat << "EOF"
_ _ ... | true |
fd17603664ed8ffd79cd090bf3652da7ddaf315f | Shell | Suvitruf/docker-grafana-graphite-diamond | /diamond/set_host_name | UTF-8 | 302 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ -z "$HOST_NAME" ]; then
if [ -n "$HOST_NAME_SHORT" ]; then
HOST_NAME=`echo "$HOST_NAME_SHORT"`
fi
fi
if [ -n "$HOST_NAME" ]; then
sed 's/{{host_name_short}}/'"$HOST_NAME"'/' -i /etc/diamond/diamond.conf;
else
echo "Diamond: No HOST_NAME_SHORT defined. Aborting.";
exit 1;
fi | true |
a124ed2b9c3b0ba7675cb3b7d143c361fa28bcbe | Shell | hispsa-Infra/scripts | /quickFix/bashrcMod.sh | UTF-8 | 1,045 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#_ _ _____ ___________ _____ ___
#| | | |_ _/ ___| ___ \ / ___|/ _ \
#| |_| | | | \ `--.| |_/ / \ `--./ /_\ \
#| _ | | | `--. \ __/ `--. \ _ |
#| | | |_| |_/\__/ / | /\__/ / | | |
#\_| |_/\___/\____/\_| \____/\_| |_/
#Update the bashrc with the HISP standard
#Author : Renier Roussea... | true |
637acb93786f09ae35a085bddc0c3fe36c599b4e | Shell | goodrobots/maverick | /manifests/maverick-modules/maverick_network/files/wifibc.sh | UTF-8 | 943 | 3.53125 | 4 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash
if [ "$1" != "tx" ] && [ "$1" != "rx" ]; then
echo "wifibc.sh must be called with either tx or rx argument"
exit 1
fi
# Set defaults, can be overriden in /srv/maverick/config/network/wifibc-[tx|rx].conf
KEY=/srv/maverick/data/network/wifibc/$1.key
UDPPORT=5600
RADIOPORT=1
RSK=8
RSN=12
MAVLINKAGG=
... | true |
eb010d66ec204dee4e78ac83062a50cf436c4fe5 | Shell | mscastillo/GEOcrawler | /miscellaneous/pubmedcrawler | UTF-8 | 4,698 | 4.28125 | 4 | [] | no_license | #!/bin/bash
## VARIABLES INITIALIZATION # # # # # # # # # # # # # # # # # # # # # #
# Please, do not modify the next variables. Use -o option for custom outputs.
TODAY=$(date +%Y%m%d)
SUFFIX=$RANDOM
OUTPUTFILE='pubmedcrawler_output_'$TODAY.tsv
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #... | true |
655fdf80e3fba88a1913731e3050efacaa60da75 | Shell | ecmwf/eccodes | /tests/bufr_ecc-875.sh | UTF-8 | 2,031 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# (C) Copyright 2005- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an in... | true |
a6e45c9fa1be05f79643d637678f35add8908e3d | Shell | parwezgit/DBA_MySQL-2 | /MAINTENANCE/SETUP/001_SetupMaintenanceJob.sh | UTF-8 | 614 | 3 | 3 | [] | no_license | #!/bin/bash
set -e
# copy backup script to folder
cp /home/matt/MAINT/databaseMaintenance.sh /data/mysql/scripts/
cp /home/matt/MAINT/purgeDatabaseMaintenanceJobLog.sh /data/mysql/scripts/
# Change user to mysql and make executable
chown -R mysql:mysql /data/mysql/scripts/*
chmod +x /data/mysql/scripts/*
# Create cr... | true |
fc6cbe6a1f69fe1f84ebe1997e54dfad39d41538 | Shell | initdb/BS-Uebung | /06-shell:misc/02-scripts:rename.sh | UTF-8 | 239 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#####################################################
# 6.2 script which renames file_* to file* #
#####################################################
for i in $(seq 1 100)
do
mv file_$i file$i
done | true |
e2f448ab8143f8e53a6c4eb9084d32b0925f153f | Shell | foobar999/Wikipedia-Cluster-Analysis | /run_compare_clus_comm.sh | ISO-8859-1 | 4,124 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
if (( $# != 1 )); then
echo "Usage: $0 CONFIG"
exit 1
fi
unset DEBUG
CONFIG=$1
source $CONFIG
echo "PREFIX $PREFIX"
echo "DEBUG $DEBUG"
if [ ! -z ${DEBUG+x} ]; then # variable gesetzt?
export DEBUG=$DEBUG
fi
# zu vergleichende Parametrierungen
# Cluster-Parameter
BEST_CLUSTER_METHODS=($BES... | true |
d1870e3721ed225101020443266ec4c2d878eeb5 | Shell | wangzq96/code | /shell/Initialization/initial.sh | UTF-8 | 4,863 | 2.828125 | 3 | [] | no_license | #!/bin/bash
IP=$( ip a | grep inet|grep -v 127.0.0.1|awk '{print $2}'|tr -d "addr:" | grep -E -w "10" | awk -F '/' '{print $1}' | head -n 1 )
cat > /etc/profile.d/mtime.sh << EOF
HISTSIZE=99999999
HISTFILESIZE=500000000
HISTTIMEFORMAT="%Y/%m/%d_%H:%M:%S `whoami` :"
export TMOUT=18000
export MTIME_PROFILES_ACTI... | true |
59f5ac4730b3d1a9405f4e12aa4e7ca4ed44c2e4 | Shell | sohamsadhu/hellogit | /tscript.sh | UTF-8 | 418 | 3.203125 | 3 | [] | no_license | #!/bin/bash
puzzle=( puzzle1.txt puzzle2.txt puzzle3.txt puzzle4.txt puzzle5.txt ) # Create the array of puzzle files to be tested.
echo `touch testresults.txt` # Create the test file of results if not present.
echo `cat /dev/null > testresults.txt` # Empty the said file of any trash content.
for(( i ... | true |
f8079c7bc3df14cf6cc08b6fb6e483a131c57bd9 | Shell | shaan06/CSYE-6225---Spring-2019 | /infrastructure/aws/cloudformation/csye6225-aws-create-lambda.sh | UTF-8 | 1,358 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | echo "Please enter Serverless Stack Name:"
read appStackName
if [ -z "$appStackName" ]
then
echo "StackName error exiting!"
exit 1
fi
echo "$appStackName"
echo "Fetching domain name from Route 53"
DOMAINNAME=$(aws route53 list-hosted-zones --query HostedZones[0].Name --output text)
DOMAINNAME="${DOMAINNAME%?}"
echo "... | true |
0121da535203d991c6869ea434bc2e7a16b6080a | Shell | Macianer/bashUtils | /sub_script/exiv2_tools.sh | UTF-8 | 1,175 | 3.71875 | 4 | [] | no_license | #!/bin/sh
# exiv2_tools.sh
# Author: Ronny Meißner
# Required packages: exiv2
# Required sub script
source sub_script/text_helper.sh
source sub_script/dir_helper.sh
#IMAGETYPES=("*.jpg" "*.jpeg" "*.png" "*.tif" "*.tiff" "*.gif" "*.xcf")
#MOVIETYPES=("*.mp4" "*.mov" "*.avi" "*.mkv" "*.mpg" "*.mv4")
exivSortTargetD... | true |
d1d824e62675572d61cfc60a7bd76c58c2822311 | Shell | radding/CardTracker | /CardImageProcessor/CardImageProcessor/utils/segmentAllFiles.sh | UTF-8 | 457 | 2.96875 | 3 | [] | no_license | #!/bin/bash
FILES=./data/*.jpg
FILES1=./data/*.JPG
FILES2=./data/*.m4v
for f in $FILES
do
echo "Processing $f..."
# take action on each file. $f store current file name
./main 0 $f
done
for f in $FILES1
do
echo "Processing $f..."
# take action on each file. $f store current file name
./main 0 ... | true |
c3eddcd1efc86f22ee3fa9f5f5f63bdf5df25fb1 | Shell | xkast1/scripts | /Wordpress/databases-overview.sh | UTF-8 | 643 | 2.71875 | 3 | [] | no_license | !#/bin/bash
# Install WordPress on EC2 using RDS MySQL DB
yum update -y
amazon-linux-extras install -y php7.2
yum install -y httpd
systemctl start httpd
systemctl enable httpd
cd /var/www/html
wget https://wordpress.org/latest.tar.gz tar -xzf latest.tar.gz
cp -r wordpress/* ./
chmod -R 755 wp-content
chown -R apache:a... | true |
0b262386e52900b46f683481bb67c7988287681c | Shell | jaycribas/unix-bash | /command-line/ex4-4.sh | UTF-8 | 371 | 3.484375 | 3 | [
"MIT"
] | permissive | # Make a directory foo with a subdirectory bar, then rename the subdirectory to baz.
mkdir -p foo/bar && mv foo/bar foo/baz
# Copy all the files in text_files, with directory, into foo.
cp -r text_files foo
# Copy all the files in text_files, without directory, into bar.
cp -r text_files/* foo/baz
# Remove foo and e... | true |
104cf515725e0dd3b74c2160479837f3ac538256 | Shell | ringcentral/ringcentral-glip-errbot | /install.sh | UTF-8 | 341 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
rm -rf ./.ve
virtualenv --python `which python3` .ve
.ve/bin/pip install errbot
.ve/bin/pip install ringcentral
args=("$@")
if [ "${args[0]}" == "link" ]; then
rm -rf ./.ve/lib/python3.6/site-packages/ringcentral
ln -s "$PWD/../ringcentral-python/ringcentral" ./.ve/lib/python3.6/site-pa... | true |
b93dd6d42bbb9fe2a733173a74bc09287725f1a2 | Shell | paultag/www-bin | /status-apps | UTF-8 | 401 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# Copyright (c) Paul Tagliamonte, 2012, Expat.
while read x; do
if [ -e pids/$x.pid ]; then
PID=$(ps -ef | grep $(cat pids/$x.pid) | grep -v grep | awk '{print $2}')
echo -n "$x - "
if [ "x$PID" == "x" ]; then
echo "[ [31mFail[0m ]"
else
echo "... | true |
dd12d2a1c48ccb1a3daf61facb7b604742028396 | Shell | jsi1v4/dotfiles | /src/i3blocks/scripts/ram | UTF-8 | 163 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
RAW=$(free -h)
USAGE=$(echo "$RAW" | awk ' /Mem:/{print $3; exit;}')
FREE=$(echo "$RAW" | awk ' /Mem:/{print $NF; exit;}')
echo -e " $USAGE/$FREE"
| true |
ba388bcf9450f66fbd17ae9ecc1ebf60b6953c8e | Shell | liupu126/project | /Scripts/shell/shell_script/new_product_copy_files.sh | UTF-8 | 3,829 | 3.875 | 4 | [] | no_license | #!/bin/bash
#Program:
# Make a new "PRODUCT_COPY_FILES" file which is used to copy ".apk/.so" file to certain directory,
# that include "system/app/"、"system/lib/" and so on.
#History:
# 2015/12/05 Liu Pu(Braden Liu) 1st Release
# 2015/12/06 Liu Pu(Braden Liu) 2nd Release
# 1. add extension "allfiles" to copy dir1/x... | true |
969e048ee0e84e08344497494500a0de2c3a2c5b | Shell | taeho911/myweb | /go.sh | UTF-8 | 1,516 | 3.859375 | 4 | [] | no_license | #!/bin/bash
CMD=$1
SUBCMD=$2
[ -z ${SUBCMD} ] && SUBCMD="null"
APP="myweb"
CMDS=(build run)
CURRENTDIR=$(pwd)
errorlog() {
MSG=$1
echo "[ERROR] ${MSG}"
exit 1
}
buildback() {
# go 1.16 이전
# cd ${GOPATH} \
# && go install ${APP} \
# && cp ${GOPATH}\\bin\\${APP}.exe ${HOME}\\bin\\${... | true |
534099d55ff8d7f735a9a8b3f3964ec29bb0c2dd | Shell | Jman420/magisk_selinux_manager | /META-INF/com/google/android/update-binary | UTF-8 | 12,834 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/sbin/sh
##########################################################################################
#
# Unity Installer
# by ahrion & zackptg5
#
##########################################################################################
#################################################################################... | true |
c09826ad72dfa5c52d33505c7662f0a9ae565d91 | Shell | othermod/PSPi-1000-Version-3 | /setupoff.bash | UTF-8 | 1,122 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# This has been modified by otherMod from code written by Afafruit
# https://www.adafruit.com/
# http://www.othermod.com/
if [ $(id -u) -ne 0 ]; then
echo "Installer must be run as root."
echo "Try 'sudo bash $0'"
exit 1
fi
echo "Looking for /boot/othermodoff.py"
if [ -e /boot/othermodoff.py ]; then
e... | true |
6436f799794d9eb154f67af6cec4677db7fe3b77 | Shell | erik-forsgren/dotfiles | /home/scripts/tmux_priv | UTF-8 | 613 | 2.71875 | 3 | [] | no_license | #!/bin/bash
SESSIONNAME="inera_privportal"
WORK_DIR="~/work/inera/code/privatlakarportal"
tmux has-session -t $SESSIONNAME &> /dev/null
if [ $? != 0 ]
then
tmux new-session -d -s $SESSIONNAME -n priv
tmux new-window -t $SESSIONNAME:1 -n priv-web
tmux new-window -t $SESSIONNAME:2 -n priv-specificatio... | true |
96868b167b583a3ee5e27a92748d759a83c28273 | Shell | Dazza65/triggerQS-Lambda | /upload.sh | UTF-8 | 464 | 3.4375 | 3 | [] | no_license | while getopts p:b: flag
do
case ${flag} in
p) profile=${OPTARG};;
b) bucket=${OPTARG};;
esac
done
profile=${profile:-default}
if [ ${bucket} ]
then
echo "Copying triggerQS.zip to S3 bucket ${bucket} for ${profile} profile..."
aws s3 cp build/triggerQS.zip s3://... | true |
ce8d32f7c44a6afe3ab51adcdb658cae1b67b4e3 | Shell | peterrhysthomas/linux-kata | /word_generator.sh | UTF-8 | 142 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# Random String Generator
while [ true ]
do
cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
done | true |
54790661cdc479d815ee5034d107f10ee9c1f788 | Shell | achan-ns/mongo-swarm | /big-ingest.sh | UTF-8 | 723 | 2.984375 | 3 | [
"MIT"
] | permissive | MONGO_VERSION=3.6
NETWORK_NAME="primary_net"
MONGOS1_SRC="source-mongos1"
MONGOS1_PORT=27017
DATABASE="test_db"
COLLECTION="test_col"
AMT=10000
echo "simulating ingestion of $AMT elements" && \
docker run -d --rm --network $NETWORK_NAME mongo:$MONGO_VERSION mongo --host "$MONGOS1_SRC:$MONGOS1_PORT" $DATABASE --eval ... | true |
ec42a77cf6a3b667dcadd67d8b94e05e738bfb41 | Shell | InnovArul/personreid_normxcorr | /datasets/cuhk01_test100/execute-all.sh | UTF-8 | 488 | 2.75 | 3 | [] | no_license | # this script calls the other scripts which do folder organizing,
# random 871 - 100 train and test splits, data augmentation
# rescaling the images
echo 'Organize the images into folder names of particular identity '
matlab14a -r "run('foldering.m'); exit;"
# random 871 - 100 train and test split
echo 'Random 871 ... | true |
2fdb4c5267b4eea5b94a80bad72ee0ac5f0ca9dd | Shell | Jiteshprm/nxp-riotboard-cicd-ubuntu-image-builder | /scripts/run_nxp_bsp_build.sh | UTF-8 | 1,526 | 3.921875 | 4 | [] | no_license | #!/bin/bash
. common.env
#Log which shell we are in
echo "Shell is: ${SHELL}"
echo "Processes: $(ps ax)"
REPO_DIR="${HOME}/bin"
REPO_FILE="${REPO_DIR}/repo"
#Get Repo tool if needed
if [[ -f "${REPO_FILE}" ]]
then
echo "[EXISTS] - File ~/bin/repo already exists on your filesystem."
PATH=${PATH}:${REPO_DIR}
else... | true |
d71507ce6dc3606c23cb5d77b77ddfc2e59d9ed2 | Shell | radare/gradare2 | /grsc/Shell | UTF-8 | 144 | 2.859375 | 3 | [] | no_license | #!/bin/sh
if [ -z "$1" ]; then
while : ; do r2 -w - ; echo "..." ; sleep 1 ; done
else
while : ; do r2 "$1" ; echo "..." ; sleep 1 ; done
fi
| true |
e7d2dd6cb11501e0ac198f5fb8a0d68442ee2b93 | Shell | i22safed/AsignaturasIngenier | /PAS/practica2/ejercicio5.sh | UTF-8 | 444 | 2.90625 | 3 | [] | no_license | #!/bin/bash
echo "Descargando la web https://twitter.com/GeoPortalMityc..."
wget https://twitter.com/GeoPortalMityc &>tweets.tmp
echo "Listado de precios de GeoPortalMityc ordenados por precio del Combustible: "
cat GeoPortalMityc | grep -E -o "EcoPrecio.*<" | sed -n -r 's/^EcoPrecio[ ]([^ ]*[ ][^ ]*)[ ](.*)[ ]es[ ](... | true |
f441937a96dbf3f9bf11564e26f49ad87485aab3 | Shell | switchedonpbx/SwitchedOn-PBX | /iso/makeiso.txt | UTF-8 | 8,404 | 2.734375 | 3 | [] | no_license | #!/bin/bash
#
# .d8888b. d8b 888 888 888 .d88888b. 888b 888
# d88P Y88b Y8P 888 888 888 d88P" "Y88b 8888b 888
# Y88b. 888 888 888 888 888 88888b 888
# "Y888b. ... | true |
a9c83ee276c027ead99798ad1e3d05456b9d6b9b | Shell | pythings/PythingsCloud | /services/base/entrypoint.sh | UTF-8 | 1,111 | 3.984375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Exit on any error. More complex thing could be done in future
# (see https://stackoverflow.com/questions/4381618/exit-a-script-on-error)
set -e
echo ""
echo "[INFO] Executing entrypoint..."
#---------------------
# Prestartup scripts
#---------------------
if [ "x$SAFEMODE" == "xTrue" ]; then
ec... | true |
4fee1e63d8990a09b4ff32e783afd86ea950b6ef | Shell | signalfx/tracing-examples | /service-mesh/appmesh/config-image/startup.sh | UTF-8 | 458 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -ex
export HOST_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4)
echo $HOST_IP
echo $1
endpoint_url=$(echo $1 | sed ' s/\/\///g; s/POD_HOST_IP/'"${HOST_IP}"'/g' | awk '{split($0,a,":"); print a[2]}')
endpoint_port=$(echo $1 | awk '{split($0,a,":"); print a[3]}')
sed -i 's/SIGNALFX_ENDPOI... | true |
8b32636af4c0c1ca60b569805ead7a23d8bd6da9 | Shell | alisonwilbur/bash-config | /.aliases | UTF-8 | 1,614 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# .bashrc_aliases
### shortcuts
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias la='ls -la'
alias emoji='cd ~/Documents/slack-emoji/emoji/'
### grep
# -I skips binary files
#alias g='grep -Ir --color=always'
alias g="grep -Ir --color=always --exclude={\*.min.js,\*.log,\*.wsdl,\*.jar,main.map,e... | true |
046d2ca7df15b60b3003d4b3c8e2c16df48bca26 | Shell | NxNiki/BrainImagingAnalysisCode | /make_coefs_map.sh | UTF-8 | 1,386 | 2.96875 | 3 | [] | no_license | #!/bin/sh
# run bash **.sh rather than sh **.sh for this script or error may be enounterd
atlas_dir="aal"
file_name="multidimensional_age_prediction/out03_coefs_gmv_cluster_km44.csv"
out_img_name="brain_map_gmv_km4_4"
fslmaths $atlas_dir/aal2.nii.gz -mul 0 ${out_img_name}_sex
fslmaths $atlas_dir/aal2.nii.gz -mul 0 ... | true |
b31dee4fa809bcb881be333373bcb693dac35aa5 | Shell | btravers/snmptrans | /.utility/update-gh-pages.sh | UTF-8 | 693 | 3.234375 | 3 | [] | no_license | if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo -e "Starting to update gh-pages\n"
mkdir $HOME/gh-pages
cd target
jarname=$(ls *-jar-with-dependencies.jar)
cp $jarname $HOME/gh-pages
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis"
cd $HOME/gh-pages
e... | true |
a91f68aabcb3a38ecb307ee7d2d4ec7477a85ce3 | Shell | learning-apache-openwhisk/incubator-openwhisk-deploy-kube | /tools/travis/scancode.sh | UTF-8 | 416 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements; and to You under the Apache License, Version 2.0.
set -e
# Build script for Travis-CI.
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
ROOTDIR="$SCRIPTDIR/../.."
UTIL_DIR="$ROOTDIR/../incubator-openwhisk-utilitie... | true |
6194322b146e782033d67a61695672ddbd0fff96 | Shell | ReginaldoSantos/code-snippets | /scripts/gen_oauth_keypair.sh | UTF-8 | 2,988 | 4.15625 | 4 | [] | no_license | #!/bin/bash
##############################################################################################
# Generates private/public key pair ( RSA 2048 PKCS#8 ) and stores it in yml files.
#
# Outputs:
#
# 1. oauth_keypair.yml : private and public keys
# 2. public_key.yml : public key only
#
# Note: used in JWT ... | true |
05f4ac7b66d29fa3bc70abccd5b78974d104cb77 | Shell | mtabishk/rhel8-scripts | /yum_config.sh | UTF-8 | 903 | 3.3125 | 3 | [] | no_license | #!/bin/bash
echo "-------------YUM configuration from mounted DVD------------------"
df -hT
read -p "Copy the mount path of RHEL DVD from above ( use 'df -hT' to find it out): " mount_path
tput setaf 3
echo -e "\nStarting YUM Configuration\n"
tput setaf 7
touch /etc/yum.repos.d/rhel8dvd.repo
echo "[AppStream]"... | true |
0b4dbb29acb690148764eb582e76df4a9c982293 | Shell | gabr/bash_basics | /count_chars.sh | UTF-8 | 244 | 4.0625 | 4 | [] | no_license | #!/bin/bash
if [ "$#" != 1 ]; then
echo "usage: cout_chars.sh filename"
exit 1
else
cout=0
for i in $(cat $1); do
count=$((coutn+1))
echo "Word $coutn ($i) contains $(echo -n $i | wc -c) characters"
done
fi
| true |
575c1396a914e07a898d8302e9556745ad78747f | Shell | thiagoalessio/aos-cd-jobs | /approvers/approve.sh | UTF-8 | 587 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script will determine if a pull request of the
# given severity should be merging into a a specific
# target branch of a specific repository at this time.
if [[ $# -ne 3 ]]; then
echo "[ERROR] Usage: $0 REPO BRANCH SEVERITY"
exit 127
else
repo="$1"
branch="$2"
severity="$3"
if [[ ! -f "/var/l... | true |
62ed558e744caa35eb7af491006462dcf7704923 | Shell | vic-1998/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/2-while_holberton_school | UTF-8 | 167 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bash
# This script is displaying "Holberton School" 10 times
COUNT=1
while [ "$COUNT" -le 10 ]; do
echo "Holberton School"
COUNT=$(( COUNT+1 ))
done
| true |
5a809673532223f61f968de632c6e72bfc33e8b9 | Shell | bearlin/dotfiles | /scripts/clang_complete/get_all_h_hpp_paths.sh | UTF-8 | 1,388 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
echo "### Running $0 ###"
RESULT_PREFIX="h_hpp_paths_"
LISTNAME_H="h-list"
LISTNAME_HPP="hpp-list"
LISTNAME_MERGED="h+hpp-list"
DOT_OUT=".out"
DOT_DIRNAME=".dirname"
DOT_UNIQUE=".unique"
FILE_H_LIST=$RESULT_PREFIX$LISTNAME_H$DOT_OUT
FILE_HPP_LIST=$RESULT_PREFIX$LISTNAME_HPP$DOT_OUT
FILE_H_HPP_LIST=$RESUL... | true |
31fa15e08aa2638c1aa4f2fa11d5362411313c66 | Shell | hovinhthinh/quex | /run.sh | UTF-8 | 251 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
# run.sh <MainClass> <args...>
args="${@:2}"
export MAVEN_OPTS="-Xmx1G -XX:+UseParallelOldGC -XX:ParallelGCThreads=2 -XX:GCTimeRatio=19" && \
mvn exec:java -Dexec.classpathScope=compile -Dexec.mainClass="$1" -Dexec.args="$args"
| true |
e8b7963602c342196dc061fb409c38357ec37552 | Shell | jbernhard/ebe-osg | /submit | UTF-8 | 4,280 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
#
# settings
#
# max run time (seconds)
# jobs that run longer than this are placed on hold and subsequently restarted
# set this to a time somewhat longer than a job could reasonably run
# i.e. if it gets here, something must have gone wrong
MAX_WALL_TIME=21600 # 6 hours
# maximum number of t... | true |
358f4b2866f99e9b299a744d973d1e95473098fc | Shell | pioka/mcs-manager | /script/start.sh | UTF-8 | 442 | 3.234375 | 3 | [] | no_license | #!/bin/bash
GAME_DIR=`dirname $0`/../game
if ! screen -list | grep -q 'mcs'; then
# jar file exists
if [ -e $GAME_DIR/server.jar ]; then
pushd $GAME_DIR > /dev/null
screen -mdS mcs java -jar -Xms1G -Xmx3G -d64 $GAME_DIR/server.jar nogui
popd > /dev/null
echo ':rocket: Starting ... | true |
789a3b8abdad8f866eaab649af856ee3e476bc61 | Shell | woelke/caf-measurement | /run_benchmark_bencherl | UTF-8 | 2,425 | 3.59375 | 4 | [] | no_license | #!/bin/bash
if [[ $(id -u) != 0 ]]; then
echo "you need to be root"
exit 0
fi
CAF_HOME="/users/localadmin/woelke/actor-framework"
BENCH_USER="localadmin"
OUT_DIR="/users/localadmin/woelke/test_data"
BIN_PATH="${CAF_HOME}/build/bin"
CAF_INI_FILE="caf-application.ini"
REPITITIONS=10
# Define benchmarks to run
todo_... | true |
6f8deb9d1020d633cb429e23a8c855e534322211 | Shell | ninthday/dotfiles | /install.sh | UTF-8 | 212 | 2.625 | 3 | [] | no_license | #!/bin/bash
set -e
# Clean up targets
rm -rf $HOME/.vim* $HOME/.zsh* $HOME/.tmux* $HOME/.fonts
# Symlink files
ln -s $PWD/zshrc $HOME/.zshrc
ln -s $PWD/tmux.conf $HOME/.tmux.conf
ln -s $PWD/vimrc $HOME/.vimrc
| true |
23080c7d1fe7bc1f87eebbd0c9a3b2a38a500e74 | Shell | seniorquico/PasswdService | /shippable/build.sh | UTF-8 | 4,003 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eufo pipefail
########## Required Environment Variables ##########
if [ -z ${IS_PULL_REQUEST+x} ]
then
echo 'IS_PULL_REQUEST is undefined'
exit 1
fi
if [ -z ${SHIPPABLE_BUILD_DIR+x} ]
then
echo 'SHIPPABLE_BUILD_DIR is undefined'
exit 1
fi
########## Optional Environment Variables ##... | true |
7bf95d9c2e3de90e7e995141942697005b0030c6 | Shell | Zihaokong/GROMACS | /buildEnvGPU.sh | UTF-8 | 2,007 | 2.5625 | 3 | [] | no_license | export LC_ALL=C
# open mpi
module load mpi/impi
module load gcc-9.2.0
sudo mv /usr/bin/python /usr/bin/python-origin
sudo ln -s python2.7 /usr/bin/python
# Add software repositories
sudo yum -y install epel-release
# Install system software metapackages
sudo yum -y groupinstall "Development Tools"
sudo yum -y groupi... | true |
b211326e973a53835448589b8e5480474e185057 | Shell | malzubairy/NEMO-RELOC | /SCRIPTS/old/install_sosie.sh | UTF-8 | 934 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
:'
***********************
install_sosie.sh
***********************
The SOSIE tool is used to flood fill land before interpolating, when generating
initial conditions datasets.
'
#::
cd ~
#load modules
module swap PrgEnv-cray PrgEnv-intel
module unload nco cray-netcdf cray-hdf5
module load cr... | true |
a7639e7a3b3772feabcf6242c9e4ad531a391c2b | Shell | captdeaf/rollpoker | /rollpoker.sh | UTF-8 | 813 | 3.265625 | 3 | [] | no_license | #!/bin/bash
export PATH="$PATH:/usr/local/go/bin"
export GOROOT="/usr/local/go"
export funcs="MakeTable Poker"
set -ex
case "$1" in
gohost)
(cd gofuncs ; go build -o gfhost host/main.go) && ./gofuncs/gfhost
;;
gotest)
(cd gofuncs ; go build -o gftest test/*.go) && ./gofuncs/gftest
;;
webhost)
... | true |
44b1a59714927c20435baa5a03f2748f6e1f9df7 | Shell | asispatra/tools | /getlogs/startLogging.sh | UTF-8 | 655 | 3.28125 | 3 | [] | no_license | #!/bin/bash
CMD_INTERVAL=10 # ms
Log_header="logs"
Log_PATH=$(cat ${PWD}/Log_PATH)
mkdir -p $Log_PATH
TMP="top.log"
TF_PID=$(ps -eaf | grep "tf_cnn_benchmarks.py" | grep python | tr -s ' ' | cut -d' ' -f2)
TOP_DELAY=$(echo "scale=2; $CMD_INTERVAL / 1000" | bc)
LOG="${Log_PATH}/${Log_header}_${TMP}"
top -d $TOP_DELAY ... | true |
a8b2e3377f7e4267658bb3b932e179f20b1371cd | Shell | open-power-sdk/pveclib | /generate-changelog.sh | UTF-8 | 620 | 4.15625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Generate markdown ChangeLog files based on git history.
tmp=$(mktemp)
touch ${tmp}
prev_tag=""
echo "# ChangeLog"
for tag in $(git tag -l v[0-9]* | sort -V); do
# Prepend tags to the output because we want the ChangeLog in the
# reverse order, e.g. 2.0.0, 1.0.1 and 1.0.0.
{
date=$(git show --date... | true |
1af0369d684a18e22bfe289b9770447d16946c38 | Shell | sorah/gentoo-build | /scripts/stage3.sh | UTF-8 | 501 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -x
set -e
if [ -e "${GB_ROOT}/stage3.tar.bz2" ] ; then
echo "skipping stage3"
exit 0
fi
if [ "${GB_STAGE3}" = "latest" ]; then
wget -O "${GB_ROOT}/stage3.tar.bz2" "${GB_STAGE3_MIRROR}"'/releases/amd64/autobuilds/current-stage3-amd64-systemd/stage3-amd64-systemd-2*.tar.bz2'
else
wget -O "${GB_R... | true |
c3271fccdb1d146354db74830a7eb48ca52051d2 | Shell | Baranets/SLP | /Laboratory work 1/variant5.sh | UTF-8 | 3,553 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#Laboratory work 1;
#Baranets
#Variant 5
#[EN]Array with names of functionality /[RU]Массив хранящий в себе наименования команд
systemCall=("Напечатать имя текущего католога"
"Напечатать содержимое текущего каталога"
"Вывести текущую дату и время в формате Wed Feb 2 01:01 MSK 2015"
"... | true |
1813bfd84dbf5e73f7286310b763c13dde4edaea | Shell | Shuang777/kaldi-2016 | /egs/babel/s5c/myutils/check_data_hours.sh | UTF-8 | 236 | 3.0625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
. ./path.sh
if [ $# -ne 1 ]; then
echo ""
exit 1
fi
data=$1
if [ -f $data/vad.scp ]; then
vector-to-len scp:$data/vad.scp
else
feat-to-len scp:$data/feats.scp
fi | awk '{print $1 / 100 / 3600}' | tee $data/hours
| true |
389fc7179b2b035c0194bea91fe380cf7f7fff4e | Shell | jinghuazhao/INF | /rsid/mr.sh | UTF-8 | 56,702 | 3.046875 | 3 | [] | no_license | #!/usr/bin/bash
function setup()
{
if [ ! -f ${INF}/work/INF1.merge.genes ]; then
grep -v BDNF ${INF}/doc/olink.inf.panel.annot.tsv | \
cut -f3,8,9,10 | \
sed 's/"//g' | \
sort -k1,1 | \
join -12 ${INF}/work/inf1.tmp - > ${INF}/work/INF1.merge.genes
fi
for type in cis trans pan
do
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.