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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4d66f3d1e56e4cd027a0553271cb28a5824b388c | Shell | ghoulmann/Sahana-Eden-Development-Environment | /eden-dev-l/overlay/usr/local/bin/update_eden | UTF-8 | 179 | 2.65625 | 3 | [] | no_license | #! /bin/bash -ex
#pull revision specified on command line. In case no revision, pull.
cd /home/web2py/applications/eden/
if [ -z "$1" ];then
bzr pull
else
bzr pull -r $1
fi
| true |
b2c640da71e513a99fab026b3a8b1d577d44e82f | Shell | linnabraham/scripts | /notate | UTF-8 | 2,658 | 4.125 | 4 | [] | no_license | #!/bin/bash
# Author: Conner McDaniel
# https://github.com/connermcd/bin
# MIT license
# This script takes as input a pdf file
# Tries to get a doi, arxiv-id or isbn from it and checks to see if the bibliography already exists
# Either in my primary pubs database or the database for books.
# If the entry exists it ob... | true |
431535d66d744c7a9ce6d708e271ff9f4c0a9601 | Shell | aur-archive/cleps-video-player | /PKGBUILD | UTF-8 | 946 | 2.734375 | 3 | [] | no_license | #Maintainer: Eshton Robateau <eshtonrob@gmail.com>
pkgname=cleps-video-player
pkgver=0.21.3
pkgrel=1
epoch=
pkgdesc="Cleps Video Player is a lightweight media player"
arch=('i686', 'x86_64')
url="https://github.com/yungtrizzle/cleps-video-player"
license=('GPL3')
depends=('qt5-base' 'qt5-multimedia')
optdepends=("gstre... | true |
e55e80d0bf49cb966c91dc0db4a0ff681f562771 | Shell | apache/zeppelin | /bin/common.sh | UTF-8 | 5,625 | 3.484375 | 3 | [
"BSD-3-Clause",
"EPL-1.0",
"OFL-1.1",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); yo... | true |
2deadaef178c6a9ac1718266e02493d0dd99a056 | Shell | GabrielNicolasAvellaneda/boundary-api-cli | /src/main/scripts/metrics/metric-get | UTF-8 | 1,472 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
###
### Copyright 2014-2015 Boundary, Inc.
###
### 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 b... | true |
f29589ae7a9fd9b623979115198c7d9416b668d6 | Shell | ben4932042/env_setting | /vim-config/setup.sh | UTF-8 | 962 | 3.8125 | 4 | [] | no_license | #!/bin/sh
VIMRC_DIR="$HOME/.vimrc"
VUNDLE_DIR="$HOME/.vim/bundle/Vundle.vim"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if ! type vim > /dev/null; then
echo "Vim is required but it's not installed. Aborting."
fi
if [ -f "$VIMRC_DIR" ]; then
read -p "There is already have vimrc file in yo... | true |
d52a7738377a9b2c81625cad371e52c97ba1a572 | Shell | tarkus/dokku-nginx-vhosts-custom-configuration | /commands | UTF-8 | 2,021 | 3.75 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
case "$1" in
nvcc:nginx.conf)
[[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1
[[ ! -d "$DOKKU_ROOT/$2" ]] && echo "App $2 does not exist" && exit 1
APP="$2"
cat "$DOKKU_ROOT/$APP/nginx.conf"
;;
nvcc:n... | true |
f49ca8a27bad81b55f6e12015bc25c6e8d8f8639 | Shell | mrummuka/geo | /geo-coords.sh | WINDOWS-1252 | 3,329 | 3.90625 | 4 | [
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
PROGNAME="$0"
usage() {
cat <<EOF
NAME
`basename $PROGNAME` - Convert lat/lon from one format to another
SYNOPSIS
`basename $PROGNAME` [options] latitude longitude
DESCRIPTION
Convert lat/lon from one format to another.
Lat/Lon may be in DegDec, MinDec, or DMS formats.
Acceptable formats for lat/... | true |
cc88e98cb8507a28b8cac74f9f9baef55be77fdc | Shell | delkyd/alfheim_linux-PKGBUILDS | /qvdpautest-git/PKGBUILD | UTF-8 | 965 | 2.78125 | 3 | [] | no_license | # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=qvdpautest-git
pkgver=0.5.2.r29.d4396a3
pkgrel=1
pkgdesc="A VDPAU Benchmark. (GIT version)"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.nvnews.net/vbulletin/showthread.php?p=2015214"
makedepends=('cmake')
depends=('qt4' 'libvdpau')
provides=('qvdpa... | true |
75cadc2769f19376cb465563a03b80878f37e38c | Shell | bguina/quick-pastec | /server.sh | UTF-8 | 617 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
targetDir="pastec"
cd "$targetDir"/build
function installIfNotFound {
which "$1" >/dev/null
if [ $? -ne 0 ]; then
echo "$1 not found but is required" >&2
sudo apt-get install "$1"
fi
}
if [ ! -f "visualWordsORB.dat" ]; then
if [ ! -f "visu... | true |
5cc9119aea28ae467ee78befe5196f25bb711608 | Shell | zingale/classroom_scripts | /classroom_pull.sh | UTF-8 | 196 | 3.515625 | 4 | [] | no_license | #!/bin/bash
if [[ $# -ne 1 ]]; then
echo "classroom_pull.sh takes a basename as an argument"
fi
dirs=`find . -name "$1*" -type d`
for d in ${dirs}
do
cd $d
git pull
cd ..
done
| true |
3033676dcb9b8095eeaa6767c52d29f42447ffe6 | Shell | frink/indigen | /commands/init | UTF-8 | 600 | 3.71875 | 4 | [] | no_license | #!/bin/bash
#@call init [target]
#@ - initialize project directory
[ -z $VER ] && echo "$0 is a helper file" && exit 1
show_header
#@function copy_fill [source] [destination]
copy_fill() {
local SRC="$(basename $1)"
local FROM="$DIR_BASE/$SRC"
local TRGT="$(dirname $1)"
[ ! -d "$FROM" ] && " failed to copy... | true |
2cf71dbc8c4c19317ed4173849ced31ac3a8671e | Shell | getupcloud/origin-server | /cartridges/openshift-origin-cartridge-phpmyadmin/bin/install | UTF-8 | 774 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
if [[ -d /usr/lib64 ]]; then
_libdir=/usr/lib64
else
_libdir=/usr/lib
fi
source $OPENSHIFT_CARTRIDGE_SDK_BASH
case "$1" in
-v|--version)
version="$2"
esac
echo "$version" > "$OPENSHIFT_PHPMYADMIN_DIR/env/OPENSHIFT_PHPMYADMIN_VERSION"
ln -s ${_libdir}/httpd/modules ${OPENSHIFT_PHPMYADMI... | true |
75fcebb507c51ac268ddcd6d3751e9ba99e4bd2a | Shell | eden90267/reactbook | /whinepad3/scripts/deploy.sh | UTF-8 | 331 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
# 清理上一版
rm -rf __deployme
mkdir __deployme
# 建置
sh scripts/build.sh
# 壓縮 JS
uglifyjs bundle.js -o __deployme/bundle.js
# 壓縮 CSS
cssshrink bundle.css > __deployme/bundle.css
# 複製 HTML 和圖像
cp index.html __deployme/index.html
cp -r images/ __deployme/images/
# 完成
date; echo; | true |
f1cc305e2f49ef91601e264c76d4478dc9a5fe17 | Shell | zhixingheyi-tian/Automation | /scripts/deprecated_scripts/oap_release_performance_test.sh | UTF-8 | 2,509 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# This script is used to run all configurations one by one.
BEAVER_HOME=$(cd $(dirname ${BASH_SOURCE[0]})/..;pwd)
base_repo=$(cd $1; pwd)
repo=${base_repo}/output/output_workflow
if [ ! -f "${base_repo}/.base" ]; then
echo "Please define .base in your workflow! "
exit 1
fi
#generate workflow
pyth... | true |
05645f105ca4fa11a85a306d3aa0feafcddbf800 | Shell | EdwardOst/bash-explore | /scope/source_local.sh | UTF-8 | 589 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
set -u
define(){ IFS=$'\n' read -r -d '' "${1}" || true; }
init() {
local scope="${1}"
local code="${2}"
eval "source /dev/stdin <<< \"${code}\""
echo "inner: my_param=${my_param}"
}
define mycode <<EOF
\${scope:-} my_param="hello world"
EOF
echo "when scope is not set by local my_para... | true |
cece45b1295b223428c2464331b785f21ac88c58 | Shell | binsec/cav2021-artifacts | /bintest/flare-on-2015/1/analyze.sh | UTF-8 | 427 | 2.53125 | 3 | [] | no_license | #!/bin/sh
BINSEC=${BINSEC:-binsec}
BIN="i_am_happy_you_are_to_playing_the_flareon_challenge.exe"
DO_NOT_EXPLORE="0x40107b"
GOAL="0x401063"
MEMDESC="memory_desc.txt"
exec "${BINSEC:-binsec}" -sse \
-isa x86 \
-entrypoint 0x40104b \
-sse-no-explore ${DO_NOT_EXPLORE} \
-sse-explore ${GOAL} \
-sse-depth 10000 \... | true |
f777ba7fb8f947d9a6a42d704db4a245f4208fce | Shell | 7-1-M/Hive | /ilm-client/updatingCapability_v1.0/oldCode/installScript | UTF-8 | 443 | 2.921875 | 3 | [] | no_license | #!/bin/bash
fileToDelete=$0
#let i=0
#
#while [ $i -lt 10 ]
#do
# echo Hello $i 1>/dev/null 2>&1
# i=$(($i+1))
#done
#Most logic required to replace and restart hive...
/rw/pckg/busybox killall hived-mikrotik-mipsbe-PATCHED
/rw/pckg/busybox sleep 5
mv newhive hived-mikrotik-mipsbe-PATCHED
/rw/pckg/busybox sleep 5
/rw... | true |
c9b1b1eac3718349976ad38cbad6b6431e537d3f | Shell | ValerieCoding/B32-BashExamples | /03-calculs.sh | UTF-8 | 227 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo 10+10 #affiche 10+10
echo $((10+10)) #affiche 20
let resultat=10*10
echo $resultat #affiche 100
#exercice : soustraire deux valeurs passees en parametre
let soustraction=$1-$2
echo $1 - $2 = $soustraction
| true |
97f953ad45089808e5991222cadff4b335b6b056 | Shell | icentsn/move-files-into-subdirectories-in-pairs | /moveFilesInPairs.sh | UTF-8 | 463 | 3.84375 | 4 | [] | no_license | #!/bin/sh
rem=$(($# % 2))
if [ $rem -ne 0 ];
then
echo "Error: Must have an even number of arguments (2 minimum)"
exit 1
else
while [ $# -gt 0 ]
do
if [ ! -e "$1" ];
then
echo "File $1 non-existent, so it could not be moved."
exit 1
elif [ ! -d "$2" ];
then
echo "subdirectory ./$2 no... | true |
4e3a7aa91154f23a03c4cbccbb30243be8d69561 | Shell | cmehta126/chrc | /glm/fsl_glm.sh | UTF-8 | 969 | 2.59375 | 3 | [] | no_license | #!/bin/bash
#SBATCH -N 1 -c 1 -p general --mem-per-cpu=48000 -t 48:00:00 --mail-type=ALL --mail-user=chintan.mehta@yale.edu
exp=$1; meas=$2
cd /ysm-gpfs/home/cm953/scratch60/glm
[ -d _${exp}_${meas} ] && rm -rf _${exp}_${meas}
#mri_glmfit --y dwi/volumes-${exp}-${meas}-CVS.nii.gz --fwhm 5 --mask dwi/volumes-${exp}-${m... | true |
5322b2c4d7948dea31e0e5fdedf72b2f399f0215 | Shell | druplar/dotfiles | /zsh/20.android.zsh | UTF-8 | 163 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
if [[ -d /usr/local/share/android-sdk ]]; then
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
fi
export ANDROID_HOME="$HOME/.android"
| true |
99ab52b34262656564d6dc17734310724940f441 | Shell | daringanitch/rancher-tf-mc | /02-cluster-imported/apply.sh | UTF-8 | 1,317 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
pushd ./terraform/state
terraform init \
-input=false \
../root/cluster \
&& \
terraform plan \
-input=false \
-var-file=./azure-creds.tfvars \
-state=./cluster.tfstate \
-out ./cluster.plan.zip \
../root/cluster \
&& \
terraform apply \
-state=./cluster.tfstate \
./cluster.plan.zip ... | true |
2a4f3a9a4e9729856b1e6fd0bcc8fc1c84b8d58a | Shell | t-torii/pcf-pipelines | /tasks/delete-tile/task.sh | UTF-8 | 840 | 3.3125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -eu
main() {
if [ -n $OPSMAN_IP ]; then
echo "$OPSMAN_IP $OPSMAN_DOMAIN_OR_IP_ADDRESS" >> /etc/hosts
fi
# find tile version installed
echo "Retrieving current staged version of ${TILE_PRODUCT_NAME}"
product_version=$(om-linux \
--target https://$OPSMAN_DOMAIN_OR_IP_ADDRESS \
--us... | true |
e197d678ac072659b4946c0acb5083124717cec3 | Shell | theghost1980/nxs-node-installer | /Files/nodesetup.sh | UTF-8 | 1,306 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# size of swapfile in megabytes
swapsize=1024
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then
echo 'swapfile not found. Adding swapfile.'
fallocate -l ${swapsize}M /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swa... | true |
4d791a4af3f05d7f8fef55343233cd9baab45085 | Shell | kajalpani/hello-world | /greet_user.sh | UTF-8 | 154 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#This is just a demo file
if [ -z $1 ]; then
echo "Please pass your name as argument to script"
exit 1
fi
echo "Hey how are you doing?" $1
| true |
093629e66e7f7ed317eb90bbeb2cc931371a3f0d | Shell | BenLocal/FFmpeg-Builds | /scripts.d/50-vaapi/40-libdrm.sh | UTF-8 | 1,038 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
LIBDRM_REPO="https://gitlab.freedesktop.org/mesa/drm.git"
LIBDRM_COMMIT="1a4c0ec9aea13211997f982715fe5ffcf19dd067"
ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$LIBDRM_REPO" "$LIBDRM_COMMIT" libdrm
cd libdrm
mkdir build &... | true |
5ef730a293ad76d50e11426a3222eee4c6659a12 | Shell | tnakaicode/jburkardt | /fn/fn_prb.sh | UTF-8 | 463 | 2.953125 | 3 | [] | no_license | #! /bin/bash
#
g++ -c -I/$HOME/include fn_prb.cpp
if [ $? -ne 0 ]; then
echo "Errors compiling fn_prb.cpp"
exit
fi
#
g++ fn_prb.o /$HOME/libcpp/$ARCH/fn.o /$HOME/libcpp/$ARCH/test_values.o -lm
if [ $? -ne 0 ]; then
echo "Errors linking and loading fn_prb.o."
exit
fi
#
rm fn_prb.o
#
mv a.out fn_prb
./fn_prb > fn... | true |
6e0ee645d6ed63ee2398cf6988604ecc73c9df4d | Shell | jackalope33/abuseIPDB_lookup | /abuseipdb_lookup.sh | UTF-8 | 5,491 | 4.09375 | 4 | [] | no_license | #!/bin/bash
date=$(date | sed s/[" ":]/_/g | cut -c -19)
# Exit if no arguments passed
if [ -z $1 ]; then
printf "Usage:\n ./abuseipdb_lookup.sh [<ip>] [-f <file>] [--help]\n"
exit 1
fi
# Check for API key. If not present, prompt for key
if [ ! -f ".abuse_apikey" ]; then
printf "No API key found. Please enter API... | true |
c89a06e1ba896dd768c5899e146670e667d1cbb2 | Shell | durganavaneethan/RRP | /RRP/rrp-master/rrp-master/RRP/RRP/files/GitBucket_Script.sh | UTF-8 | 1,977 | 2.921875 | 3 | [] | no_license | if ! [ -f /sys/hypervisor/uuid ]; then
sudo mkdir data
sudo mkdir data/gitbucket
sudo chmod -R 777 data/gitbucket
docker -v
if [ $? -eq 127 ] ; then
sudo apt-get update
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo... | true |
82e8da6a40f64e0d5bde34eecc39e2cccbe3f3ee | Shell | flyzjhz/DWR-956_decrypted_fw | /decrypted_and_extracted/dwr956_v1.0.0.7_r02_nb_p02003/root/etc/rc.d/wave_wlan_main_modify | UTF-8 | 1,108 | 3.703125 | 4 | [] | no_license | #!/bin/sh
# Defines
if [ ! "$MTLK_INIT_PLATFORM" ]; then
. /tmp/mtlk_init_platform.sh
fi
print2log DBG "running wave_wlan_main_modify: args: $*"
# Optimization: What should be the final state of the interface: (set to IF_DOWN if another script will bring up the interface)
if_state=$3
if [ "$if_state" = "" ]
then... | true |
c6fa17bcae857d531b65da949315bd8081d29bba | Shell | naveenlj/openldap | /ldap-user.sh | UTF-8 | 2,481 | 3.484375 | 3 | [] | no_license | # extract local users and groups who have 500-999 digit UID
# replace "SUFFIX=***" to your own domain name
# this is an example
#!/bin/bash
SUFFIX='dc=server,dc=world'
LDIF='ldapuser.ldif'
echo -n > $LDIF
for line in `grep "x:[5-9][0-9][0-9]:" /etc/passwd | sed -e "s/ /%/g"`
do
LUID="`echo $line | cut -d: -f1`"
... | true |
422eb70abed82ee2988c7ebd8b139487a49803c5 | Shell | ODEX-TOS/packages | /pam/repos/core-x86_64/PKGBUILD | UTF-8 | 1,744 | 2.5625 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=pam
pkgver=1.5.0
pkgrel=2
pkgdesc="PAM (Pluggable Authentication Modules) library"
arch=('x86_64')
license=('GPL2')
url="http://linux-pam.org"
depends=('glibc' 'libtirpc' 'pambase' 'audit' 'libaudit.so' 'libxcrypt' ... | true |
049dc0feaeacefa3bc34c85d97a13ff2f49c4652 | Shell | IBM-Security/performance | /IAM/scripts/ISIM_tuning_scripts/otherTools/do_statement_monitoring.sh | UTF-8 | 1,277 | 3.609375 | 4 | [] | no_license | #!/bin/ksh
# Script to do statement monitoring
# This script writes the monitor output to the current directory
if [ `uname` = "Linux" ];then
# define a print function, since Linux doesn't seem to have one
print(){
echo "$@"
}
fi
db2 connect to itim
db2 list tables | grep EXPLAIN_ >$0.tmp
if [ "X`cat $0.tmp`" ... | true |
ed25c290659924fecc12ac06e7788f14a998b9ca | Shell | fermi-lat/repo-tools | /bin/extract_tags.sh | UTF-8 | 564 | 3.921875 | 4 | [] | no_license | #!/bin/bash
cvs_sandbox=$1
if [ "$#" -ne 1 ]; then
echo "Usage: extract_tags.sh CVS_MODULE"
exit 1;
fi
# Fix directories
cd $cvs_sandbox
cvs_repo=$(pwd)
cd - &> /dev/null
cd $cvs_sandbox
gitsha_f=".gitsha"
gitsha=$(cat $gitsha_f)
OMIT_PATTERN="HEAD\|LATEST"
status=$(cvs status -v $gitsha_f | grep -v $OMIT_... | true |
3c173e5e67d483b14738948cfc9c89687d80af6c | Shell | Jubei-Mitsuyoshi/AXE-PKGBUILDS | /AXE-EXPERIMENTAL/nemo-git/PKGBUILD | UTF-8 | 1,920 | 3.046875 | 3 | [] | no_license | # Maintainer: Ner0
# Maintainer: Jubei-Mitsuyoshi <jubei.house.of.five.masters@gmail.com>
pkgname=nemo-git
pkgver=20121106
pkgrel=99.1axe
pkgdesc="Cinnamon file manager (Nautilus fork), development version"
arch=('i686' 'x86_64')
url="https://github.com/linuxmint/nemo"
license=('GPL')
groups=("axis")
depends=('dconf' ... | true |
12b3e6bfb139c51fbe3c3bcbc5aa25d3d63b1d76 | Shell | drapadubok/dti_analyse | /dti_prepro.sh | UTF-8 | 1,730 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# DTI preprocessing
# 1) Perform eddy current correction
# 2) And extract mask from resulting file
# 3) Perform DTIFIT reconstruction
# 4) do the bedpostx
# Folder structure:
# -n.nii.gz
# -bvals
# -bvecs
# -bet.nii
# by Dima Smirnov, somewhere in 2012
n=$1 #n gets the first argument
rootpath=$2 #folder w... | true |
547f2f51ef31859ea9fc5fd3310ce0c9ebb311c9 | Shell | svolokh/FakeSoftShadows | /FakeSoftShadows/misc/make_inc.bash | UTF-8 | 245 | 2.890625 | 3 | [] | no_license | #!/bin/bash
if [[ -z $1 ]]; then
echo 'Missing argument' 1>&2
exit 1
fi
root=$(dirname $(realpath $0))
python $root/obj_to_inc.py $root/$1.obj $root/../models/$1_vertices.inc $root/../models/$1_normals.inc $root/../models/$1_indices.inc
| true |
3fe3ef6f98269859b1c2c2e8a18017d30e7f1505 | Shell | ghuntley/monorepo | /third_party/git/t/t3903-stash.sh | UTF-8 | 30,539 | 3.359375 | 3 | [
"MIT",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"GPL-3.0-only",
"GPL-2.0-only"
] | permissive | #!/bin/sh
#
# Copyright (c) 2007 Johannes E Schindelin
#
test_description='Test git stash'
. ./test-lib.sh
test_expect_success 'stash some dirty working directory' '
echo 1 >file &&
git add file &&
echo unrelated >other-file &&
git add other-file &&
test_tick &&
git commit -m initial &&
echo 2 >file &&
git a... | true |
ae3e5221db23121fcca02d8fd82426d0bfee30ab | Shell | ekarmazin/tfvars-generator | /tfvars-gen.sh | UTF-8 | 3,182 | 3.96875 | 4 | [] | no_license | #!/bin/bash
set -e
# Disclamer:
#
# cfg_parser - Parse and ini files into variables
# By Andres J. Diaz
# http://theoldschooldevops.com/2008/02/09/bash-ini-parser/
# Use pastebin link WordPress corrupts the script text
# http://pastebin.com/f61ef4979 (original)
# http://pastebin.com/m4fe6bdaf (supports spaces in valu... | true |
b299263048ba0269dbe5b1317c79cc27209bba6c | Shell | ODEX-TOS/packages | /archiso/repos/extra-any/PKGBUILD | UTF-8 | 990 | 2.578125 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Gerardo Exequiel Pozzi <djgera@archlinux.org>
pkgbase=archiso
pkgname=('archiso' 'mkinitcpio-archiso')
pkgver=50.1
pkgrel=1
pkgdesc='Tools for creating Arch Linux live and install iso images'
arch=('any')... | true |
15c44afbb761c18c87f44eac2d573012767b559d | Shell | kunalbhat/sinatra-shell | /shell_sinatra.sh | UTF-8 | 1,470 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# shell_sinatra - a shell script that generates all the folders and files
# needed for a small sinatra project
# Create the root project folder
if [ "$1" != "" ]; then
project_folder=$1
else
project_folder='new-sinatra-project'
fi
mkdir $1
cd $1
# Initialize git
git init
# Detect explicit ruby versi... | true |
ab77ff0191585964386c6ab64b81d77c372a0e1e | Shell | xwi88/go-demo-gin | /docker/docker-version.sh | UTF-8 | 293 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# image info, version may auto update
TAG=latest
USER=v8fg
NAME=go-demo-gin
REPOSITORY=${USER}/${NAME}
# image with tag, use to push image
LOCATION=${REPOSITORY}:${TAG}
# use to build container
CONTAINER_NAME=${USER}-${NAME}
# ARGS ...
DAEMON="-d"
PORT="-p 9990:9990"
| true |
5936ffdec59ad403c675d6896bf3ea423f2e1e0f | Shell | creio/dots | /.config/eww/bar/scripts/workspace | UTF-8 | 865 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
gib_workspace_names() {
wmctrl -d |
awk '{ print $1 " " $2 " " $9 }' |
grep -v NSP
}
gib_workspace_yuck() {
buffered=""
gib_workspace_names | while read -r id active name; do
name="${name#*_}"
if [ "$active" == '*' ]; then
active_class="active"
else
active_cla... | true |
e69109b825883cdf0d28ec62b3036f281b4919dc | Shell | erkiluik001/skriptimine | /praks9/yl4 | UTF-8 | 435 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#
echo -n "Sisetage ridade arv: " #kasutaja peab sisestama ridade arvu
read rida #loeb kasutaja vastust
num=1 #number algab ühest
for (( i = 1; i <= $rida; i++ ))
do #alustab do käsku
echo -n "$num." #echob numbri.
let num++ #jätkab numbri käsku
for (( j = 1; j <= $i; j++ ))
do #alustab do käsku
echo -n "* ... | true |
62b66b52d6b37a9683afc471ad8452d6e7bd39de | Shell | slack/dotfiles | /bin/core | UTF-8 | 458 | 2.953125 | 3 | [] | no_license | #!/bin/bash
set -x
if [[ -z ${CORE_TOKEN} ]]; then
echo "No CORE_TOKEN found, use 'core-login' to login"
exit 1
fi
if [[ -z ${CORE_URL} ]]; then
echo "No CORE_URL found, use 'core-login' to set"
exit 1
fi
response_body=$(curl -v -X ${CORE_METHOD:-"GET"} -H "X-EY-Token: ${CORE_TOKEN}" -H "Content-type: appli... | true |
b800e65ccf3c4782a706c5ac20b896993b663735 | Shell | orgrim/nb-utils | /pkgsrc/prepare_pkg_comp | UTF-8 | 5,605 | 3.34375 | 3 | [] | no_license | #!/bin/sh
#
# Copyright 2011 Nicolas Thauvin. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of co... | true |
903cc86d5c1db04fc34ff48835ccf6dd3b81f0e1 | Shell | Annasadra/fio.start | /scripts/claimrewards-auto.sh | UTF-8 | 1,440 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
###############################################################################
#
# FIO tools
#
# Created by CryptoLions.io; updated by ZenBlocks.io
# Git Hub: https://github.com/fioprotocol/fio.start
#
###############################################################################
v2endpoint=https://fio.e... | true |
5809379c7cc7abf200c64b03bc566e94a668e07b | Shell | kdave/xfstests | /tests/generic/496 | UTF-8 | 1,940 | 3.375 | 3 | [] | no_license | #! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2018 Oracle. All Rights Reserved.
#
# FS QA Test No. 496
#
# Test various swapfile activation oddities on filesystems that support
# fallocated swapfiles (for given fs ext4/xfs)
#
. ./common/preamble
_begin_fstest auto quick swap prealloc
# Override the ... | true |
e323faa0856ce66db4cd1031a4ed5b3f7f663984 | Shell | Tscott7/proj5-maps | /stop.sh | UTF-8 | 564 | 4.03125 | 4 | [
"Artistic-2.0"
] | permissive | #! /bin/bash
#
# Stop the service started by start.sh
# It's process ID should be in ./SERVICE_PID
#
# See design notes in start.sh
#
this=${BASH_SOURCE[0]}
here=`dirname ${this}`
pushd ${here}
pid=`cat SERVICE_PID`
numpat='^[0-9]+$'
if [[ ${pid} =~ ${numpat} ]]; then
# That looks like a process ID ...
echo "... | true |
b162c3039eee4673a47e75f7c0e6f956cf40607f | Shell | chrishagel/setup | /dotfiles/.zshrc | UTF-8 | 1,262 | 2.78125 | 3 | [] | no_license | #------------------------------
# Adopt .bash_profile config
#------------------------------
source ~/.bash_profile
#---------------------------... | true |
40754b4b9261adf599b45fc7c5537997bd104035 | Shell | trasherdk/dotfiles | /i3/temperature.sh | UTF-8 | 123 | 2.59375 | 3 | [] | no_license | #!/bin/bash
DATA="$(sensors | egrep '(Core 0|temp1)' | egrep -o '\+[0-9\. ]+' | head -2 | tr '\n' '/' )"
echo "${DATA%?} "
| true |
85b2f9c07c56051bff41fac127d6b0fa519f255e | Shell | Odoo-10-test/trucos_odoo | /odoo_calculate_workers.sh | UTF-8 | 2,964 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# CONST 1GB
CONST_1GB="1024*1024*1024"
# VARIABLE WORKERS
CMD_W=0
# VARIABLE MAX MEMORY PERCENT
CMD_M=80
# VARIABLE IS HELP
CMD_H=0
# VARIABLE IS VERBOSE
CMD_V=0
# FUNCTIONS
arithmetic() {
echo "scale=0; $1" | bc
}
calculateWorkers(){
if [ $CMD_W -gt 0 ]; then echo $CMD_W
elif [ $(calcula... | true |
7c451c5d0de12de954e750405e651949279e09ea | Shell | cloudfoundry/nats-release | /acceptance/run-fail-if-v1-happy.sh | UTF-8 | 1,294 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
TESTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
RELEASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd ../ && pwd )"
echo "-----> `date`: Delete previous deployment"
bosh -n -d nats delete-deployment --force
echo "-----> `date`: Deploy dev release"... | true |
dfe1a4ca085577791171721d8671aa33be613702 | Shell | ISI-apex/hpsc-utils | /make/env.sh | UTF-8 | 1,229 | 3.59375 | 4 | [
"BSD-3-Clause"
] | permissive | # Environment settings for working on the HPSC stack with Bash
#
# May be setup to autoload on shell startup, since it is harmless as far as
# pollution that affects non-HPSC tasks.
SELF_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
# On some build hosts, the repository is cloned from a file s... | true |
5e065e434f48b83afc91b686b933491689efccbc | Shell | nogproject/nog | /tools/bin/make-deb | UTF-8 | 5,636 | 3.640625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
# vim: sw=4
set -o errexit -o nounset -o pipefail -o noglob
# `products` will be filled in `debX()`.
declare -a products
main() {
if ! [ -d '/go' ]; then
die 'Must be run in a godev container.'
fi
mkdir -p 'product/deb'
deb nog-app-2 installNogApp2
deb nogfsoregd installNogfs... | true |
48081826066f3437ef557540a95a2ba0b4221733 | Shell | akora/vagrant-contenta-installer | /install-mysql-apache-php72.sh | UTF-8 | 1,860 | 3.375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
MySQL_config_file="/etc/mysql/my.cnf"
echo "=== Installing MySQL server and setting root password..."
debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
apt-get install -y mysql... | true |
9b92425a9bb08239907daf9603f30089dfa58cb4 | Shell | wonkiChoi/addb | /bin/addb_RR | UTF-8 | 10,487 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
. ${ADDB_HOME}/addb_RR_conf
## arg1: Option name
## arg2: GREP1
## arg3: value
function SetConfiguration_Grep1() {
OPTIONNAME=$1
GREP1=$2
VALUE=$3
for port in ${PORT_LIST[@]}
do
grep_result=$(cat ${CONF_DIR}/${CONF_PREFIX}_${port}.conf | grep "${GREP1}" )
sed -i".old" "s/${grep_result}/${OPTIONNA... | true |
94c2e3c95fda1a09b164a94ff44a863be21e95ec | Shell | crteal/zot-world | /provision.sh | UTF-8 | 1,899 | 2.671875 | 3 | [] | no_license | #!/usr/bin/env bash
RABBITMQ_USER=$(uuidgen)
RABBITMQ_PASSWORD=$(uuidgen)
POSTGRES_PASSWORD=$(uuidgen)
add-apt-repository ppa:git-core/ppa
add-apt-repository ppa:openjdk-r/ppa
add-apt-repository ppa:chris-lea/redis-server
echo 'deb http://www.rabbitmq.com/debian/ testing main' | tee /etc/apt/sources.list.d/rabbitmq.... | true |
c43e2ced24ded4b80d12c25f2818caa91fe240b5 | Shell | grabbitnu/spectral-petsc | /tests.sh | UTF-8 | 455 | 2.890625 | 3 | [] | no_license | #!/bin/sh
inc=$1
test_range () {
cos_scale=$1;
echo 'cos_scale = ' $cos_scale
for n in $(seq $2 $3 $4); do
printf "%3d: " $n
./elliptic -dim $n,$n -exact 0 -cos_scale $cos_scale -gamma 4 -ksp_rtol 1e-12 -snes_rtol 1e-12 | grep 'Norm of error'
#./elliptic -dim $n,$n -exact 0 -cos_scale $cos_scale -gamma... | true |
5094fd1867da972a743dae9dc5355e91b574669e | Shell | bsb808/linux_setup | /mrc/all_ros_remote.sh | UTF-8 | 396 | 2.546875 | 3 | [] | no_license | #!/bin/bash
for N in $(seq 0 7)
#for N in $(seq 5 5)
do
IP="192.168.11.6${N}"
ROS_MASTER_URI="http://${IP}:11311"
echo "--------"
echo ${IP}
#rosnode list
#rostopic list
rostopic echo -n 1 /my_p3at/battery_voltage
# Don't seem to be published
#rostopic echo -n 1 /my_p3at/battery_... | true |
79477ba17dd41f96b1c5763131f757e2a48fd09e | Shell | omsgunjal2003/bash2cpp | /tests/hostname0.sh | UTF-8 | 162 | 3.140625 | 3 | [
"MIT"
] | permissive | HOSTNAME=$(/bin/hostname)
if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" -o ! -z "`echo $HOSTNAME | sed -n '/^[0-9]*\.[0-9].*/p'`" ] ; then
hostname localhost
fi
| true |
e44d06ffed9131b087e2bb475e83ccfaec7732e1 | Shell | abhinavdahiya/bootkube | /hack/terraform-quickstart/start-cluster.sh | UTF-8 | 585 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
export BOOTSTRAP_IP=`terraform output bootstrap_node_ip`
export WORKER_IPS=`terraform output -json worker_ips | jq -r '.value[]'`
export MASTER_IPS=`terraform output -json master_ips | jq -r '.value[]'`
export SELF_HOST_ETCD=`terraform output self_host_etcd`
export SSH_OPTS="-o UserKnownH... | true |
93901d898e3820885bcc8b292107c874e0a2e4f3 | Shell | shinjiescorido/games | /test.sh | UTF-8 | 1,455 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# Functions
ok() { echo -e '\e[32m'$1'\e[m'; } # Green
EXPECTED_ARGS=0
E_BADARGS=65
#MYSQL=`mysql`
VUSER="webuser"
VUPASS="webuser1@"
Q1="SET NAMES utf8;SET SQL_MODE='';SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;SET @OL... | true |
23cc6f4ef16d2b0e6646f3b6786af35b9a72a1ef | Shell | eljuanchosf/terraform-aws-bosh-lite-cf-bootstrap | /shape.sh | UTF-8 | 2,448 | 4.28125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
SSH_CONFIG_FILE=~/.ssh/config
ADD_TO_SSH_CONFIG=false
MYSQL=false
LOGSEARCH=false
FORCE=false
PREFIX=""
until [[ $PREFIX =~ ^[A-Za-z_]+$ ]]; do
PREFIX=$(shuf -n 1 /usr/share/dict/words) # This line gets a random word from dictionary
done
TERRAFORM_COMMAND=$1
shift
if [[ $TERRAFORM_COMMAND = "h... | true |
cbd8f05a3c2dbd313c9e2f7546597b69bc75aa84 | Shell | patagonaa/wx-ground-station | /process_satellite.sh | UTF-8 | 2,169 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
FILEKEY=$1
START_TIME=$2
END_TIME=$3
SAT=$4
ELEVATION=$5
TLE_FILE=$6
source ./config.env
IMAGE_DIR=${OUT_DIR}/images
META_DIR=${OUT_DIR}/meta
AUDIO_DIR=${OUT_DIR}/audio
LOG_DIR=${OUT_DIR}/logs
AUDIO_FILE=${AUDIO_DIR}/${FILEKEY}.wav
MAP_FILE=${IMAGE_DIR}/${FILEKEY}-map.png
METAFILE=${META_DIR}/${FILEKEY}... | true |
65d0334c483ce8ae282764ea5f1a909fff68bcb5 | Shell | griffinbird/azure-container-labs | /scripts/create-subnet-virtual-node.sh | UTF-8 | 1,064 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
################################################################
# Parameters
################################################################
RESOURCE_GROUP="<Reousrce Group Name>"
CLUSTER_NAME="<AKS Cluster Name>"
# Service Principal
SP_CLIENT_ID="<Service Principal Client ID>"
# VNET Info
VNET_N... | true |
1d5b18fd7657a60ad8aacf86fcfca1ef1dbd376c | Shell | CraigStThomas/SEIS_764_Project | /images/compress.sh | UTF-8 | 1,981 | 2.78125 | 3 | [] | no_license | #!/bin/bash
shopt -s globstar
for file in ./A01/**; do
if [[ -f "$file" ]]; then
dirname="${file%/*}/"
basename="${file:${#dirname}}"
n=$(printf %03d "$basename" | cut -d '_' -f 1)
convert 'A01/'$basename -resize 120 'A01/'$n'_compressed.png'
fi
done
mkdir A01_compressed
mv A... | true |
4af081882569acc7cc688289afcc30f301140a37 | Shell | jester1412/YottaDB | /ydb_utilities_scripts/start_multi_site_replication | UTF-8 | 1,687 | 3.4375 | 3 | [] | no_license | #!/bin/bash
multi_site_file=${ydb_dir}/gbls/multi-site.repl
ROW=`cat ${multi_site_file} | wc -l`
. ${ydb_dir}/ydbenv
. ${UTIL_DIR}/replication_start
for i in $(eval echo {1..$ROW})
do
if [[ ! $i -eq 1 ]]
then
### Extract Multi-Site Replication data from multi-site.repl
HOST=`... | true |
084220e8f49aa00d6001b3ead5641c04c57a3537 | Shell | j842/samba | /assets/usr/local/bin/docker-smb-getshares | UTF-8 | 219 | 3.265625 | 3 | [] | no_license | #!/bin/bash
cd /etc/samba/dockershareinfo
COUNT=$(ls -1 | wc -l)
if [ $COUNT -gt 0 ]; then
echo "Found ${COUNT} shared folders." >&2
cat * | tr '\n' ' '
exit 0
fi
echo "There are no shared folders." >&2
exit 1
| true |
40af43fabca046263038731938de458b2e631b13 | Shell | insperatum/git-working | /g-update | UTF-8 | 337 | 3.484375 | 3 | [] | no_license | #!/bin/bash
cd `dirname "$0"`
git fetch
newcommits=`git rev-list HEAD..origin/master --count`
if [ "$newcommits" -gt "0" ]; then
echo
echo "g-working update available:"
git log --pretty=oneline HEAD..origin/master | cat
read -p "Install? (y/n) " yn
case $yn in
[Yy]* ) git pull origin master; exit 0
... | true |
283f66a706c14b5f6e40f91f080e1a204b58640f | Shell | flipreverse/piVCCU | /pivccu/host/detect_hardware.inc | UTF-8 | 4,838 | 3.34375 | 3 | [
"Apache-2.0",
"GPL-2.0-only"
] | permissive | #!/bin/bash
. /etc/default/pivccu
HMRF_HARDWARE=''
HMIP_HARDWARE=''
case $PIVCCU_HMRF_MODE in
"Fake-HmRF")
HMRF_HARDWARE='FAKE_HMRF'
if [ -z "$PIVCCU_FAKE_SERIAL" ]; then
PIVCCU_FAKE_SERIAL=`shuf -i 1-9999999 -n 1`
PIVCCU_FAKE_SERIAL=`printf "FKE%07d" $PIVCCU_FAKE_SERIAL`
echo "PIVCCU_FA... | true |
ed4610cb2acf6ed5102006dc9d18cff18f1a7699 | Shell | deyrajat/Test | /at-component-pcf/utilities-lib/script/capture-utils/stopErrorCapture.sh | UTF-8 | 510 | 3.15625 | 3 | [] | no_license | #!/bin/bash
kill -9 $(ps -aef | grep "tail -f /var/log/broadhop/consolidated-qns.log" | grep -v grep | awk '{print $2}')
totalException=`grep ERROR $1 | wc -l`
echo "total Excetion: $totalException"
errorType=`grep "ERROR" $1 | awk -F "ERROR" '{print $NF}' | sort -u | awk -F "-" '{print $1}' | sort -u`
for error in $... | true |
c876c047cb2e3d2d41a36f4b3530c40f4cdbc0ea | Shell | landai-n/dr-yocto | /build.sh | UTF-8 | 212 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# argument 1: Ubuntu version (e.g. 18.04) used as container tag
# argument 2: path to Dockerfile
docker build --build-arg "host_uid=$(id -u)" --build-arg "host_gid=$(id -g)" --tag "dr-yocto:$1" $2
| true |
ef88f1cfee085667ab3dbb91cc3229d1e0c4f18f | Shell | stevepartridge/baseballga.me-server-go | /_scripts/install.sh | UTF-8 | 989 | 3.890625 | 4 | [] | no_license | #!/bin/bash
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "$BASE_DIR"
SERVICE="baseballgame"
SERVICE_DIR="$BASE_DIR/../$SERVICE-service"
UPSTART="$SERVICE.conf"
if [[ ! -f "/etc/init/$UPSTART" ]]; then
echo "/etc/init/$UPSTART doesn't exist, create it"
if [[ -f "$BASE_DIR/upstart.conf" ]]; the... | true |
6962e4527ab66ab6460beed8e95bf7ef319bc22c | Shell | 578412668/test | /test | UTF-8 | 1,335 | 4.28125 | 4 | [] | no_license | #!/bin/bash
##for file zip and unzip
#date:2011/7/20
#input:current_filename
#use gunzip\bzip\tar commands to do this .
#two choices:pack||unpack
pack()
{
##use tar cmd to pack file
echo "Now will use tar to pack the file......"
echo "tar $CUR_FILE ......."
#sleep 1
tar -zcvf $CUR_FILE.tar.gz $CUR_FILE
if [ "$?... | true |
a7de8a59b7ec26039c7abd0ed650f5c365d813e8 | Shell | alldatacenter/alldata | /dts/airbyte/airbyte-commons-worker/src/main/resources/entrypoints/sync/check.sh | UTF-8 | 333 | 3.015625 | 3 | [
"MIT",
"Elastic-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | trap "touch TERMINATION_FILE_CHECK" EXIT
(set -e; while true; do curl -s HEARTBEAT_URL &> /dev/null; sleep 1; done) &
CHILD_PID=$!
(while true; do if [ -f TERMINATION_FILE_MAIN ]; then kill $CHILD_PID; exit 0; fi; sleep 1; done) &
wait $CHILD_PID
EXIT_CODE=$?
if [ -f TERMINATION_FILE_MAIN ]
then
exit 0
else
exit $... | true |
ba55858ed6329b71d8d429311151d93de3dbeeb7 | Shell | ppc64le/build-scripts | /a/awx/ansible-awx_rhel_7.7.sh | UTF-8 | 1,787 | 3.625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ----------------------------------------------------------------------------
#
# Package : ansible/awx
# Version : 9.0.1
# Source repo : https://github.com/seth-priya/awx
# Tested on : RHEL 7.7
# Script License: Apache License, Version 2 or later
# Maintainer : Sarvesh Tamba <sarvesh.tamba@ibm.com>
#
# Di... | true |
deae5cedc7bb8618105b27c3d6d31ec8468a824a | Shell | bioinformatics-lab/SPEAQeasy | /run_pipeline_local.sh | UTF-8 | 1,084 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# Script to run pipeline using local hardware resources
# After running 'install_software.sh', this should point to the directory
# where SPEAQeasy was installed, and not say "$PWD"
ORIG_DIR=$PWD
export _JAVA_OPTIONS="-Xms5g -Xmx7g"
$ORIG_DIR/Software/nextflow main.nf \
--small_test \
--sampl... | true |
203af9b4b03c5596382709308e349d2d523752cd | Shell | Lily11223344/VQA-MIB | /vis.sh | UTF-8 | 322 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ "$#" -ne 2 ]; then
echo "How to use (example):"
echo "./vis.sh ban_wa_with_fusion 12"
echo "12 is the maximum epoch number in the folder (starting from 0)"
exit 1
fi
i=0
while [ $i -le $2 ]
do
python vis.py -v $1 -e $i -n 1000 &
i=$(($i+1))
done
echo "All done... | true |
6f431fcf054228f81a64f8a1273a846fa4eb8168 | Shell | qznc/dot | /bin/fool_browser | UTF-8 | 491 | 3.234375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"ISC"
] | permissive | #!/bin/sh
set -e
# inspiration: https://github.com/wesbos/aprilFools.css
EVIL="\
/* Haha */
body { -webkit-transform: rotate(180deg); -mozilla-transform: rotate(180deg); transform: rotate(180deg); }"
do_evil() {
echo "break $1"
echo "$EVIL" >>$1
}
HOMEDIR=$1
do_evil "$HOMEDIR/.config/chromium/Default/User StyleS... | true |
e1075cb76e7682c8dd2bb14d19fb5e0aa61f3f07 | Shell | loganlinn/dotfiles-2019 | /plugins/pyenv-act/pyenv-act.plugin.zsh | UTF-8 | 787 | 3.46875 | 3 | [
"MIT"
] | permissive | alias deact="pyenv deactivate"
# @description activates a pyenv-managed virtualenv based on args, pwd, or fzf choice
act() {
local env="$1"
if [[ "$#" -ne "0" ]]; then
pyenv activate "$1"
return 0
fi
if [[ -z "${VIRTUAL_ENV:-}" ]]; then
project=$(basename $(git rev-parse --show-toplevel 2>/dev/nu... | true |
7f1c7f9743a88ad02b51e8ec1b3d0a452f78aa05 | Shell | janshi2021/cciscript | /old_script/sshlogin.sh | UTF-8 | 830 | 3.65625 | 4 | [] | no_license | #!/bin/bash
if [ $# -lt 2 ]; then
echo "Syntax: $0 IP_ADDR USER ROOT_PASSWORD"
echo "E.g. $0 192.168.1.1 root nokia123"
exit -1
fi
me=`which $0`
me=`dirname $me`
#check if remote machine has our public key
ssh -oNumberOfPasswordPrompts=0 -oPasswordAuthentication=no -oStrictHostKeyChecking=no ${2}@${1} 'echo "... | true |
247f12ef7c69a30874b24069e7650cae62692827 | Shell | Projetomoni/MKLV | /cgi-bin/remoequip.cgi | UTF-8 | 791 | 3.109375 | 3 | [] | no_license | #!/bin/bash
read VAR
echo "content-type: text/html"
echo
IP=$(echo $VAR | cut -d"&" -f1 | cut -d"=" -f2)
CIP=$(echo $VAR | cut -d"&" -f2 | cut -d"=" -f2)
echo "<script lang='javascript'>"
if [[ $IP != '' ]] ; then
if [[ $CIP != '' ]] ; then
if [[ $IP == $CIP ]] ; then
grep -v "$IP$;" registrados.csv > registr... | true |
d59aec8f37543898e51f87f85ad4a63ad7e23068 | Shell | telefonicaid/fiware-murano | /docker/dashboard/run.sh | UTF-8 | 428 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
MURANO=`docker ps -a -q --filter="name=murano"`
if [ "$MURANO" != "" ]
then
echo "stop murano"
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi murano-dashboard
docker rmi fiware-murano
fi
cd ../fiwaremurano
docker build -t fiware-murano .
cd ../dashboard... | true |
318f27bb44298a8969b11a20a6f976cd43c25fa6 | Shell | simoncarrignon/phd | /dev/addConfigLine.sh | UTF-8 | 405 | 3.34375 | 3 | [] | no_license | #Script used to add a column with some values that are in the config file of the experiment but that was not in the output
folder=$1
val=$2
for i in $folder/run_*/ ;
do
nag=`cat $i/config.xml | grep "numAgents value=" | awk 'BEGIN{FS="\""}{print $2}'`
nst=`cat $i/config.xml | grep "goods num=" | awk 'BEGIN{FS="\... | true |
3eb7390a925c0203853bd13b13633c020d429151 | Shell | Solaxun/tern | /tools/fs_hash.sh | UTF-8 | 421 | 3.71875 | 4 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
#
# Copyright (c) 2018 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
#
# Given a file path, create a list of file stats and their sha256sums
# usage: ./fs_hash.sh path/to/dir
# format: permissions|uid|gid|size in bytes|number of hard links|security context|sha256sum filepath
pushd... | true |
95a7f77ac6f05ac536b696e3d16841ac4a13cae3 | Shell | eehouse/xwords | /xwords4/linux/scripts/game_with_seed.sh | UTF-8 | 500 | 3.265625 | 3 | [] | no_license | #!/bin/sh
set -u -e
PARAMS="--curses --robot Kati --remote-player --game-dict dict.xwd --quit-after 1 --sort-tiles"
run() {
SEED=$1
LOG=LOG__${SEED}.txt
ROOM=ROOM_${SEED}
> $LOG
./obj_linux_memdbg/xwords $PARAMS --room $ROOM \
--seed $SEED >/dev/null 2>>$LOG &
sleep 1
./obj_linu... | true |
7d3279f518c7855e4c8d670d3413dc7af27cdba9 | Shell | schadley/custom-ps1 | /PS1.sh | UTF-8 | 1,669 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
BoxCornerUL='┌' #u250c
BoxCornerLL='└' #u2514
Tpipe='├' #u251c
LineHoriz='─' #u2500
Delta='Δ' #u0394
Minus='−' #u2212
Red='\e[0;31m'
Green='\e[0;32m'
NC='\e[0m'
if [ "$color_prompt" = yes ]; then
PS1='$BoxCornerUL$LineHoriz ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m... | true |
8af5ed2bd78f5421efe1b6dccea2caaf5cdc3202 | Shell | a093130/conda-recipes | /libarchive/build.sh | UTF-8 | 419 | 2.5625 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | #!/usr/bin/env bash
# Building libarchive 3.1.2 with CMake 3.3.1 doesn't get you .pc files.
# cmake "-DCMAKE_BUILD_TYPE=Release" \
# "-GUnix Makefiles" \
# "-DCMAKE_INSTALL_PREFIX=${PREFIX}"
# cmake --build . -- "-j${CPU_COUNT}"
# cmake --build . --target install
autoreconf -i
./configure --prefix=${PREFI... | true |
662b22623f1d3302f9a84f9f095cd7d75643716a | Shell | forcespikejan/Trading-Bot | /resources/scripts/ui-instance-entrypoint.sh | UTF-8 | 307 | 2.984375 | 3 | [] | no_license | #!/bin/sh
set -e
JS_FILE=$(grep -nril "window.location.origin||\"http://localhost:8080\"" /etc/nginx/html/ || echo "0")
if [ "0" != "${JS_FILE}" ]; then
sed -i 's/window.location.origin||"http:\/\/localhost:8080"/"http:\/\/'${TRADING_BOT_API_HOST}':'${TRADING_BOT_API_PORT}'"/g' $JS_FILE
fi
exec "$@"
| true |
6cc0a7380e83660658c92c3ee6df0c3b92d1c0d5 | Shell | feelssexy/audiotroll | /tui | UTF-8 | 2,820 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env bash
function menu {
local title=$1
shift
local choices=$#
trap 'echo -e "\033[u\033[${choices}B\033[0m"; cleanup; return 255' 2
stty -echo -icanon time 0 min 0
for i in $( seq $(( choices + 2 )) )
do
echo
done
echo -en "\033[$(( $choices + 2 ))A\033[J"
echo -e "\033[1m$title"
for i in $( ... | true |
ff8ff35b9c81a96cbe8173dcc0b3bd9add7bdf75 | Shell | stackpoet/clara | /build_lambda.sh | UTF-8 | 1,410 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
# 06/23/2019 - Adding new feature that creates Yara scanning lambda fucntion
#author: Abhinav Singh
lambda_output_file=/opt/app/build/lambda.zip
set -e
yum update -y
yum install -y cpio python3-pip yum-utils zip
yum -y install gcc openssl-devel bzip2-devel libffi-devel
yum install -y https://dl.f... | true |
7077f26bc4d928472b26159aa81199c59add051c | Shell | rogerbrandtdev/golang-tls | /list_crt_n_keys.sh | UTF-8 | 207 | 3.046875 | 3 | [] | no_license | #! /bin/bash -e
for f in $( echo "$( find . -name '*crt' | grep -v save ; find . -name '*key' | grep -v save )" )
do
if [[ $# -eq 0 ]]
then
echo $f
else
eval "$* $f"
fi
done
| true |
a4ee2d3db44f4016072cef146a39b5f6cdb38101 | Shell | bash-my-aws/bash-my-aws | /scripts/build | UTF-8 | 2,008 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
project_root="$(cd "$(dirname "$0")/.." && pwd)"
aliases_destination="$project_root/aliases"
funcs_destination="$project_root/functions"
completion_destination="$project_root/bash_completion.sh"
# Generate a file with all BMA function names (used in bash completion)
# functions in shell before lo... | true |
822b4e391342ebc6017220310b53c002fcab02f4 | Shell | AverageMarcus/dotfiles | /home/.bin/flux-refresh | UTF-8 | 3,810 | 3.9375 | 4 | [] | no_license | #!/usr/bin/env bash
source .utils
set -e
VERBOSE=""
TARGET_RESOURCE="all"
NAMESPACES="-A"
print_usage() {
blue "flux-refresh - Refresh all flux resources"
echo " "
underline "Usage:"
echo "flux-refresh [options]"
echo " "
underline "Options:"
echo "-t, --type the resource type to target. Va... | true |
a292213650412a8c33521e0e704e2596d767e906 | Shell | kragen/shootout | /bin/compress_ndata | UTF-8 | 186 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# compress ndata.csv in download directory
# Isaac Gouy May 10 2005, May 14 2005
NDATA=website/data/ndata.csv
Z=website/websites/download/ndata.csv.bz2
bzip2 -fc $NDATA > $Z
| true |
1e686bef4911bb656c99f79c2ce0695cf185b002 | Shell | kevinguan-glitch/Acute-Lymphoblastic-Leukemia-Classifier-2020 | /RPI4/Setup.sh | UTF-8 | 1,142 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
FMSG="- Acute Lymphoblastic Leukemia Tensorflow CNN For Raspberry Pi 4 installation terminated"
read -p "? This script will install the Acute Lymphoblastic Leukemia Tensorflow CNN For Raspberry Pi 4 required Python libraries and Tensorflow on your device. Are you ready (y/n)? " cmsg
if [ "$cmsg" = "Y" -o... | true |
01cfbc173f785ec0b42ab5a7e53c8c0b8aabeb69 | Shell | taylorrassmannlibertyits/health-apis-data-query | /data-query-tests/lab-login | UTF-8 | 836 | 3.90625 | 4 | [] | no_license | #!/usr/bin/env bash
cd $(dirname $(readlink -f $0))
usage() {
cat <<EOF
$0 [options] [email]
Performs OAuth login for lab users and prints their login ID and an access token.
Options
-h, --help Print this help and exit
$1
EOF
exit 1
}
[ "$1" == "-h" -o "$1" == "--help" ] && usage
#
# Log in a user and print it... | true |
58e145986abb0f950db15d858109b9f795e2ed17 | Shell | 410-dev/Macintosh-Packager | /bash/mpkg-manual | UTF-8 | 1,709 | 3.25 | 3 | [] | no_license | #!/bin/bash
echo "Macintosh Packager"
echo "Usage: mpkg [parameters] [subparameter] [Extra Arguments]"
echo ""
echo "Parameters: "
echo "-i: Install a package. Requires root privilage. Requires a subparameter. (--install)"
echo "-r: Removes a package. Requires root privilage. Requires a subparameter. (--remove)"
echo "... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.