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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
03bb9db05ce70d968481aead7711827b37d45c5f | Shell | desy713/learning-helm | /chapter8/plugins/helm-inspect-templates/inspect-templates.sh | UTF-8 | 944 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# First argument on the command line, a relative path to a chart directory
CHART_DIRECTORY="${1}"
# Fail if no chart directory provided or is invalid
if [[ "${CHART_DIRECTORY}" == "" ]]; then
echo "Usage: helm inspect-templates <chart_directory>"
exit 1
elif [[ ! -d "${CHART_DIRECTO... | true |
8b9663850b7f90b5797412aeb4a75eb674b6ff1e | Shell | zorx/my_config | /.config/i3/scripts/brightness | UTF-8 | 247 | 3.09375 | 3 | [] | no_license | #!/bin/bash
var=-5
if [ $1 -eq 1 ];then
var=5
fi
var=$(($var + $(cat /sys/class/backlight/nv_backlight/brightness)))
if [ $var -gt 100 ];then
var=100
fi
if [ $var -lt 0 ];then
var=0
fi
echo $var > /sys/class/backlight/nv_backlight/brightness
| true |
a06dc7a4813eda8dfc010213a9882c625cf3fd29 | Shell | vishalkarad/FellowShip | /array/FactorsInArray.sh | UTF-8 | 757 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# Read Factor number from user
echo "Enter a Factorial Number : "
read factorialNumber
count=0
# to genrate factorial in looping statement
for (( index=2; index<=$factorialNumber; index++ ))
do
if [ $(( $factorialNumber % 2 )) == 0 ]
then
array[((count++))]=2
factorialNumber=$(( $factori... | true |
dcf3734916dd8e1721cb9a9b53f7d0564d5e2fa2 | Shell | tuxofil/yabs | /opensuse/yabs.sh | UTF-8 | 3,220 | 4.125 | 4 | [] | no_license | #!/bin/sh
### Yet another build script.
###
### Chrooted binary RPM builder script.
### Builds binary RPM packages for OpenSuse Linux distribution
### in clean chrooted environment.
###
### Author: Aleksey Morarash <aleksey.morarash@gmail.com>
### Created: 12 Sep 2012
###
## ------------------------------------------... | true |
cd333e9a63f6e726b9af5af04bb46a969e263d31 | Shell | jaceju/puppet-demo-with-vagrant | /basic/scripts/server.sh | UTF-8 | 544 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env bash
# 安裝 puppetserver
wget https://apt.puppetlabs.com/puppet6-release-bionic.deb
sudo dpkg -i puppet6-release-bionic.deb
sudo apt-get update
sudo apt-get install -y puppetserver
# 修改啟動參數,這裡因為 VM 只有 1G ,所以不能改成 1g ,要用 512m
sudo sed -i 's/2g /512m /g' /etc/default/puppetserver
# 防火牆改 port 8140
sudo ufw all... | true |
22466fff7370d12784882e79275b8687189ded57 | Shell | shimarulin/automate | /scripts/uninstall/android-sdk.sh | UTF-8 | 295 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Based on https://gist.github.com/tahl/1026610
DEST=/opt
rc=/etc/profile.d/android-sdk-linux.sh;
i=$(cat /proc/$PPID/cmdline)
if [[ $UID != 0 ]]; then
echo "Please type sudo $0 $*to use this."
exit 1
fi
rm -rf $DEST/android-sdk-linux
rm $rc
echo "Android SDK uninstalled"
| true |
0873aeabe632d7755f98666cf2df554b624da221 | Shell | qiuyuehao/tmux_conf | /tmux_start.sh | UTF-8 | 2,609 | 2.65625 | 3 | [] | no_license | #!/bin/sh
#
# name : tmuxen, tmux environment made easy
# author : Xu Xiaodong xxdlhy@gmail.com
# license : GPL
# created : 2012 Jul 01
# modified : 2012 Jul 02
#
cmd=$(which tmux) # tmux path
session=dragon # session name
session2=syna_driver_only
session3=minicom
if [ -z $cmd ]; then
echo "You need t... | true |
76407d65ec7b493e5306f6aad9be5f4d8c6eb9c5 | Shell | chakralinux/desktop | /plasma-mediacenter/PKGBUILD | UTF-8 | 922 | 2.5625 | 3 | [] | no_license | #maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
pkgname=plasma-mediacenter
pkgver=1.3.0
pkgrel=1
pkgdesc="A Media Center for the KDE Software Compilation based on plasma technology"
arch=('x86_64')
url="https://projects.kde.org/projects/extragear/multimedia/plasma-mediacenter"
screenshot="https://lh4.googleuse... | true |
0a141ffd25607372c2e369f83d53aab428638c32 | Shell | charmyin/IPCTimeLapse | /timeVideoLapse.sh | UTF-8 | 1,370 | 3.421875 | 3 | [] | no_license | #!/bin/bash
#Author Charmyin
###########Auto run video capture program############
#Saved in directory like : /home/media/dkapm1/20140405-20140425-30
#Start all in ipcs.info : sudo ./timeVideoLapse.sh ; Start the specified ipc : sudo ./timeVideoLapse.sh 18
#Load config parameters
source /etc/ipcs.config
sudo mount ... | true |
7e6f3b28418e76168268d6906802051edb0afe83 | Shell | huangxiyao/casci | /ansible-rpm-build/build.sh | UTF-8 | 357 | 3.140625 | 3 | [] | no_license | #!/bin/bash
set -e
tag="$1"
git clone https://github.com/ansible/ansible.git --recursive
cd ansible
if [[ ! -z "${tag// }" ]]; then
git checkout $tag
fi
make rpm
echo
if [[ -z "${tag// }" ]]; then
echo "Build of Ansible latest git version complete:"
else
echo "Build of Ansible $tag complete:"
fi
cp rp... | true |
9373e613b52d92092ee67a9600bae49b06c3cb6a | Shell | kdheepak/Yggdrasil | /.buildkite/build.sh | UTF-8 | 400 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Fail on error
set -e
export JULIA_PROJECT="${BUILDKITE_BUILD_CHECKOUT_PATH}/.ci"
echo "--- Setup Julia packages"
julia --color=yes -e 'import Pkg; Pkg.instantiate(); Pkg.precompile()'
# Cleanup temporary things that might have been left-over
echo "--- Cleanup"
./clean_builds.sh
./clean_products.sh
ech... | true |
1aaafff51a4d1e7416b59e379506382c3a5429e5 | Shell | haiku/infrastructure | /containers/redirector/entry | UTF-8 | 1,083 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/sh
if [ -z "$CONFIG_PATH" ]; then
echo "info: CONFIG_PATH undefined, assuming /run/config"
export CONFIG_PATH=/run/config
fi
CONFIG=/etc/nginx/nginx.conf
cat <<EOF > $CONFIG
user nginx;
worker_processes 2;
error_log /dev/stdout;
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
server... | true |
9512a4739058d81e0d1ab8147ce1b2c93870c342 | Shell | devcomp/devcomp.org | /bin/clean.extra | UTF-8 | 396 | 2.9375 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
# Source https://github.com/cadorn/bash.origin
. "$HOME/.bash.origin"
function init {
eval BO_SELF_BASH_SOURCE="$BO_READ_SELF_BASH_SOURCE"
BO_deriveSelfDir ___TMP___ "$BO_SELF_BASH_SOURCE"
local __BO_DIR__="$___TMP___"
pushd "$__BO_DIR__/.." > /dev/null
rm -Rf "client/.rt" > /dev/null || true
rm ... | true |
6c82312193aa395beeee2e4ed5189ea4b14d2c2e | Shell | flappix/raspberry-looper | /bash/set_bpm.sh | UTF-8 | 550 | 3.125 | 3 | [] | no_license | #!/bin/bash
. ./init.sh
# $1 = min bpm
# $2 = max bpm
# $3 = min cntrl value
# $4 = max cntrl value
# $5 = curr cntrl value
function linear_trans()
{
printf %.0f $(echo "$1 + (($2 - $1)/($4 - $3)) * ( $5 - $3 )" | bc)
}
init=80
min=40
max=200
adj=0
while [ "$adj" == "0" ]
do
read -n 9 -d 'X' cmd < <(amidi -p $rea... | true |
0185d22c1a183a03e1f63f4e2f867d0e274c07ef | Shell | mapsa/ifcb-dashboard | /bin/ifcb-reset-password | UTF-8 | 1,458 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
export PYTHONPATH=/vagrant
export BIN_PATH=/vagrant/bin/do
function test_retval {
if (($? > 0)); then
echo "Canceled."
exit 1
fi
}
function dialog_input() {
# given a variable name and params to "dialog",
# call the dialog function and save its stderr
# output to the variable
loc... | true |
6c6bca7f0d6dd42c2a5f2f557e5f95ba8fdc8522 | Shell | melservice/ubuntu-batch-basis | /rootfs/batch/bin/start.sh | UTF-8 | 816 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#
# Der Start des Batches im Docker-Container
# ==========================================================================================================
set -o pipefail
# ---------------------------------------------------------------------------------------------------
# Die Batch-Konfiguration einles... | true |
d49598efb590c6ebc7b5dfde51784ac459f8cd18 | Shell | awgrover/LaureDrogoul_seesaw | /install/etc/network/interfaces.d/pick | UTF-8 | 449 | 4 | 4 | [] | no_license | #!/bin/bash
# puts it in place, asks to restart networking
# --- which
set -e
if [[ ! -e $1 && ! -e $1.conf ]]; then
echo "No such $1"
exit 1
fi
for x in `/bin/ls *.conf 2>/dev/null`; do
mv $x `basename $x .conf`
done
mv $1 $1.conf
echo "Using: "
/bin/ls *.conf
read -p "Restart network [no or Y]" yesm
if [ "$yesm" ... | true |
d22c534fe39cb41dca9c5c0cc655df41fd3a4743 | Shell | liwenjie119/curl_and_busybox | /build-zlib.sh | UTF-8 | 2,597 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p build/zlib
cd zlib
# arm64
export TARGET_HOST=aarch64-linux-android
export TOOLCHAIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/$HOST_TAG
PATH=$TOOLCHAIN/bin:$PATH
export AR=$TOOLCHAIN/bin/$TARGET_HOST-ar
export AS=$TOOLCHAIN/bin/$TARGET_HOST-as
export CC=$TOOLCHAIN/bin/$TARGET_HOST$MIN_SDK_VERSI... | true |
fd48d0e97192baf07fcf1575ac1bc2bd790e2cb2 | Shell | Hugodahlberg/Genome-Analysis | /genome_analysis_project/script/09_bwa_with_for_loop.sh | UTF-8 | 919 | 2.875 | 3 | [] | no_license | #!/bin/bash -l
#SBATCH -A g2021012
#SBATCH -M snowy
#SBATCH -p core
#SBATCH -n 2
#SBATCH -t 10:00:00
#SBATCH -J 08_bwa
#SBATCH --mail-type=ALL
#SBATCH --mail-user huda4885@student.uu.se
# Load modules
module load bioinfo-tools bwa samtools
# Commands
cd $SNIC_TMP
mkdir input1
mkdir input2
mkdir reference
cp ~/geno... | true |
09a5f4ecb5254b91af3d8eafa4225eff162cb2fe | Shell | petronny/aur3-mirror | /cm2020/install | UTF-8 | 2,242 | 4 | 4 | [] | no_license | #!/bin/bash
#
# Install Script for the OMNIKEY Cardman USB Smartcard reader series.
#
rel=`uname -r`
min=`uname -r | cut -f2 -d.`
moddir=${pkgdir}/lib/modules
driver_file=""
echo
echo Installing OMNIKEY Cardman USB Smartcard reader...
echo
#
# setup logfile
#
logfile=install.log
if [ -f $logfile ]; then
rm -f $log... | true |
62a97d2ffc7aa901ac4ea100602fd7fdbc0089a2 | Shell | ANikitsenka/Linux_DevOps_Lab | /Troubleshooting/config.sh | UTF-8 | 946 | 2.640625 | 3 | [] | no_license | #! /bin/bash
chattr -i /etc/sysconfig/iptables
cp -f /vagrant/files/iptables /etc/sysconfig/
cp -f /vagrant/files/httpd.conf /etc/httpd/conf/
cp -f /vagrant/files/vhost.conf /etc/httpd/conf.d/
cp -f /vagrant/files/workers.properties /etc/httpd/conf.d/
cp -f /vagrant/files/hosts ... | true |
545fb53341b94ef0707f20893274370c4e1de3ad | Shell | ietf-tools/trac-container | /docker/build | UTF-8 | 375 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
name=trac-container
image=ietf/$name
tag=$(date +%Y-%m-%d)
docker rm $(docker ps -a -f name=trac-container -q)
#docker rmi --force $(docker images $image -q)
#docker rmi $(docker images -f 'dangling=true' -q)
docker build -t $image:$tag docker/
docker tag $(docker images -q $image | head -n 1) $image:late... | true |
64709f06af622c76c76d34c782c063fd57373d49 | Shell | arundalal/Scripts | /DBScript1.sh | UTF-8 | 6,134 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# DB Refresh Script
# Copyright (C) 2013 Finxera - All Rights Reserved
# Permission to copy and modify is NOT granted !
# Created On 1 May 2015
# Author Arun Dalal <arun@bancbox.com>
# Team Network Operations(TL:Amit(amit@finxera.com)
#Commands
#Parameters
RDS_INSTANCE_ID="regressiondb"
RDS_SNAPSHOT_ID... | true |
444c31eb31ecab17bb3e06608c1a24cf5dd93b2d | Shell | CCPBioSim/qmmm-workshop | /scripts/run_adiab_all.sh | UTF-8 | 3,308 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -f
#
# Script written for the tutorial workshop "QM/MM Modelling of Enzyme Reactions"
# (C) Marc van der Kamp, 2018
#
# Add AMBERHOME to $PATH, to access the programs (assumes AMBERHHOME is set)
export PATH="$PATH:$AMBERHOME/bin"
# Prepare for adiabatic mapping
# Make directory, e.g. adiab1
# Make sure to ... | true |
b332a2e253c98cd313af42e136b1e8282b3db200 | Shell | jarko88/HackerRank-Linux-Shell-Solution | /Getting-started-with-conditionals.sh | UTF-8 | 81 | 2.921875 | 3 | [] | no_license | #!/bin/bash
read input
if [ ${input,,} == y ]
then
echo "YES"
else
echo "NO"
fi | true |
e27dd9cdf235f6a206edbd33ebabe83f64ac58b7 | Shell | LBNL-ETA/BEDES-Manager | /build/.profile.d/heroku-exec.sh | UTF-8 | 566 | 3.28125 | 3 | [
"BSD-3-Clause-LBNL"
] | permissive | set +o posix
if [ -z "$SSH_CLIENT" ]; then
# ensure $HOME is set
export HOME=/heroku
curl --fail --retry 3 -sSL "$HEROKU_EXEC_URL" -o $HOME/exec-script.sh
# remove the condition around: echo "UsePrivilegeSeparation no" >> $HOME/.ssh/sshd_config
# first get the line number that matches: if ssh -V 2>&1 | grep ... | true |
a8fa546a9a7277b80a25b6ad517f8bea445c11ac | Shell | abgoyal/pts-mini-gpl | /pts-hplj1018/fix_hplj1018.sh | UTF-8 | 9,148 | 3.3125 | 3 | [] | no_license | #! /bin/bash --
#
# fix_hplj1018.sh; fixer script for HP LaserJet 1018 printing with CUPS
# by pts@fazekas.hu for Ubuntu Hardy at Tue Dec 16 23:26:02 CET 2008
# revised for Ubuntu Karmic and Lucid at Mon Jun 14 09:41:47 CEST 2010
test "$EUID" != 0 && exec sudo -- "$0" "$@"
CUPSYS=""
for F in /etc/init.d/{cupsys,cups}... | true |
3e01a42d6d7e5036010a6892e5031cd709696d0b | Shell | WindowxDeveloper/PlayOnLinux_Tools | /PlayOnLinux_ScriptChecker/script_checker.sh | UTF-8 | 13,904 | 3.609375 | 4 | [] | no_license | #!/bin/bash
# PlayOnLinux Script checker
# Made by Quentin Pâris and SuperPlumus
output="/dev/stderr"
source ui.sh
[ "$1" == "--nocolor" ] && shift && no_color
[ "$1" == "--polsc" ] && POLSC="TRUE" && shift && polsc
file="$1"
shift
remove_gpg()
{
if [ ! "$(grep "BEGIN PGP SIGNATURE" "$file")" = "" ]
then
GP... | true |
1fe86ee51539944001a3f94305dfa55f973a0b62 | Shell | delphix/appliance-build | /upgrade/upgrade-scripts/upgrade-container | UTF-8 | 31,746 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2018 Delphix
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | true |
81d462fa5807f31aaf850a9c57eb72905e967aa5 | Shell | netgroup-polito/frog3 | /openstack-plus/Nova-prefetch/2_database.sh | UTF-8 | 3,810 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Author: Alberto Geniola
DEFAULT_DB_HOST="controller"
DEFAULT_DB_ROOT="root"
DEFAULT_DB_USER="cachemanager"
DEFAULT_DB_PASS="cacheT00R"
DEFAULT_DB_NAME="precache"
# Print info to the user
echo "**************************************************"
echo "This script will prepare the database in order to ins... | true |
7944bc32219833ae34d367170116a4ec087a8a0f | Shell | eriche2016/longcat | /dirtest.sh | UTF-8 | 154 | 2.640625 | 3 | [] | no_license | #!/bin/bash
DIRNAME=$(date +"%m-%d_%H:%M")_results
echo $DIRNAME
if [ -d "$DIRNAME" ]; then
mkdir $DIRNAME
fi
th doall.lua -save $DIRNAME -size small
| true |
2d276b812d04cec9f841fb58dad04de73eea3349 | Shell | ak352/melanomics | /genome/variants2/combine_mutect_strelka/commands.sh | UTF-8 | 1,325 | 3.296875 | 3 | [] | no_license | #!/bin/bash --login
module load Java
#module load pipeline
#module load pysam
#Merge VCF files
java=java
sed=sed
GATK=/work/projects/melanomics/tools/gatk/GenomeAnalysisTK-2.6-5-gba531bd/GenomeAnalysisTK.jar
ref=/work/projects/melanomics/data/NCBI/Homo_sapiens/NCBI/build37.2/Sequence/WholeGenomeFasta/genome.fa
dict=/w... | true |
16010a9d98423457994184175722e59b50c0e29a | Shell | rizalio/dotsh | /check-openvpn.sh | UTF-8 | 199 | 2.953125 | 3 | [] | no_license | if [[ "$(which openvpn)" != "" ]]; then
if [[ "$(netstat -ltnup | grep openvpn)" != "" ]]; then
echo "OpenVPN Running"
else
echo "OpenVPN Not Running"
fi
else
echo "OpenVPN Not Installed"
fi
| true |
a9b32c59c492d37ed2cef6460fbc491474a81249 | Shell | milliondreams/bluebird | /scripts/config/mesos.sh | UTF-8 | 496 | 3.25 | 3 | [] | no_license | #!/bin/bash
conf_local_mesos(){
if [ -z "$MESOS_HOME" ];
then
export MESOS_HOME=$BLUEBIRD/mesos
fi
echo `hostname -f` > $MESOS_HOME/var/mesos/deploy/masters
echo `hostname -f` > $MESOS_HOME/var/mesos/deploy/slaves
echo master=`hostname -f`:5050 >> $MESOS_HOME/var/mesos/conf/mesos.conf
echo log_dir=\... | true |
96451da911b041bdfcfefc3fa25c18ef361ca63a | Shell | TryItOnline/tiosetup | /languages/retina1 | UTF-8 | 398 | 2.828125 | 3 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash
err=0
trap 'err=1' ERR
rm -rf retina1
mkdir -p retina1
cd retina1
curl --location --silent --show-error "$(
curl --silent --show-error https://api.github.com/repos/m-ender/retina/releases \
| jq --raw-output '
.[0].assets[]|select(.name|test("linux-x64\\.tar\\.gz$")).browser_download_url
' \
... | true |
7c39c746035960493fbb99cbf2ff87d4e1bcd940 | Shell | cpasternack/ipx-streaming-app | /ansible/files/vgl_install.sh | UTF-8 | 307 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set +x
VGLDIR="/opt/VirtualGL/bin"
cd $HOME/vgl
dpkg -i -E --refuse-all ./turbovnc_2.2.5_amd64.deb
dpkg -i -E --refuse-all ./virtualgl_2.6.3_amd64.deb
dpkg -i -E --refuse-all ./virtualgl32_2.6.3_amd64.deb
if [ -d "$VGLDIR" ]
then
"$VGLDIR"/vglserver_config -config +s +f +t
fi
exit $?
| true |
7f04031a0a54083bdb053737c8f15039f4e361ef | Shell | VitalyRomanov/method-embedding | /scripts/datasets/source_graph/data_collection/python/000_check_pip_exist.sh | UTF-8 | 309 | 3.125 | 3 | [] | no_license | conda activate python37
#for repo in $(awk -F"\t" '{print $2}')
for repo in $(awk -F"\t" '{print $0}')
do
# var=$(conda search "$repo" | grep "^$repo .*py37")
var=$(pip search "$repo" | grep "^$repo ")
# echo $var
if [ -n "$var" ];
then
echo $repo
fi
done < "${1:-/dev/stdin}"
conda deactivate | true |
ff4c90e6d0c2598cf2cf2191799b69f2cad9301d | Shell | niemdinhtrong/thuctapsinh | /HienNT/Linux/docs/NGINX/tools/lemp_wordpress_cen8.sh | UTF-8 | 5,193 | 4.0625 | 4 | [] | no_license | #!/bin/bash
#Check user root
if(( $EUID == 0)); then
#if user is root, continue to function f_sub_main
f_sub_main
else
#if user not root, print message and exit script
echo "Please run this script by user root!"
exit
fi
#Function to disable SElinux
f_disable_selinux () {
SE=`cat /etc/selinux/config | g... | true |
616997d682e911214ea32e0cc866bd1ca3250ff8 | Shell | Cynary/debian6.01 | /pam.d/pam_exec.d/cleanUser | UTF-8 | 923 | 3.859375 | 4 | [] | no_license | #!/bin/bash
# Extraction of user properties and checking if user is active
# based heavily on https://www.howtoforge.com/encrypting_encfs_pam_script
userid=$PAM_USER
userproperties=$(getent passwd | grep -m 1 -E "^$userid")
if [ -z $userproperties ]
then
# User not found? Weird ...
exit 1
fi
homedir=$(echo $use... | true |
393be1514b8db996d4aa70b949dce6b9758e81b1 | Shell | bawah14/be-test | /SinarmasCafeA/recipeChecker.sh | UTF-8 | 996 | 3.515625 | 4 | [] | no_license | #!/bin/bash
file=$1
echo $file
declare -A stock
while read line ; do
#statements
# echo ${line^^}
txt=${line^^}
if [[ -v "stock[$txt]" ]] ; then
((stock["$txt"]++))
else
let stock["$txt"]=1
fi
# echo "jumlah $txt = ${stock[$txt]}"
done < fruitList.txt
# echo ${stock[*]}
menu=${2^^}
case $me... | true |
70756c7f0a63af85f5fbe9e49d4778085e3d661f | Shell | drbean/job | /dot/.bashrc | UTF-8 | 26,366 | 2.640625 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
alias web="cd; screen -c /home/drbean/dot/.screen/web.rc -dR web; cd -"
alias surf="cd ~/sr; screen -dR surfraw; cd -"
alias tennis="cd ~/tennis; screen -dR tennis; cd -"
alias beans="cd ~/class/... | true |
0aaca4d79ef7346a700625ee90b18a1aab19ba21 | Shell | async0x221E/scripts | /linux/tty-list.sh | UTF-8 | 1,163 | 3.4375 | 3 | [] | no_license | #!/bin/bash
echo "[+] Spawning a TTY shell [+]"
#list
if [[ $# -eq 0 ]]; then
echo "[+] Ex: ./tty <args>"
echo "[-]"
echo "[~] Args;"
echo "[~] python"
echo "[~] echo"
echo "[~] sh"
echo "[~] perl"
echo "[~] perl2"
echo "[~] ruby"
echo "[~] lua"
echo "[~] irb"
ec... | true |
95a94396c09fc49a3a7ec57b8796e55f87fa5760 | Shell | devaultcrypto/DeLight | /contrib/base.sh | UTF-8 | 3,635 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# First, some functions that build scripts may use for pretty printing
RED='\033[0;31m'
BLUE='\033[0,34m'
YELLOW='\033[0;33m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
function info {
printf "\r💬 ${BLUE}INFO:${NC} ${1}\n"
}
function fail {
printf "\r🗯 ${RED}ERROR:${NC} ${1}\n" >&2
ex... | true |
78f639e3b1fab9d193ab319dabd2c309babe2966 | Shell | daleghent/conch-agent-arista | /agent-arista | UTF-8 | 409 | 3.265625 | 3 | [] | no_license | #!/bin/sh
SWITCH_JSON="/var/tmp/switch_boot.json"
dir=$(dirname $0)
script="$dir/agent-arista.pl"
(cd $dir && carton check > /dev/null 2>&1)
if [ "$?" -ne "0" ]; then
echo "Perl modules are incomplete!"
exit 255
fi
aristas=$(jq -r '.[] | select(.vendor=="arista") | .ip_address' ${SWITCH_JSON})
if [ ! -x $script ... | true |
02a8ed901a7ed47527d031e3fc2e874ef6a60ef7 | Shell | naveenmahadevuni/incubator-trafodion | /core/mpi/zfix | UTF-8 | 1,006 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# @@@ START COPYRIGHT @@@
#
# (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
#
# 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/lic... | true |
b56b10833ccb883d0c25194552f33860bbfe456e | Shell | robboworld/robboscratch | /java/scripts/run.command | UTF-8 | 247 | 2.734375 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "$0")/lib"
jars=($(ls *.jar))
JAR_PATH=
dir=$(pwd)
for i in "${jars[@]}"; do
JAR_PATH="${JAR_PATH}:$dir/$i"
done
export CLASSPATH=$CLASSPATH:$JAR_PATH
echo $CLASSPATH
java -Xmx256m frolov.robot.Main &
killall Terminal | true |
fed6ba92f6ac3801aeffcedadb3600fb2e19ff14 | Shell | ellisvalentiner/QuantQuoteHistoricalIngest | /script.sh | UTF-8 | 758 | 3.59375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/bin/bash
export PGHOST=${PGHOST:-localhost}
export PGPORT=${PGPORT:-5432}
export PGDATABSE=${PGDATABSE:-postgres}
export PGUSER=${PGUSER:-postgres}
export DATA_SOURCE=${DATA_SOURCE:-http://quantquote.com/files/quantquote_daily_sp500_83986.zip}
# Assert database is reachable, and that schema and table exists
psql -... | true |
b6c26c79a99e46d098894be588b44556be02e7ff | Shell | herent/vagrant-bootstraps-php-clean | /system_files/utilities/secondary_languages/nodejs.sh | UTF-8 | 510 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Installs and configures nodejs. This file should only be run inside of boostrap.sh where it's
# sourced. If being called from other places, it will need to be by sourcing within a shell that
# has loaded the config.yml variables properly
# install node v5x
curl -sL https://deb.nodesource.com/se... | true |
d8ac7f4cf8922c5941c4b3a55fe560f7f96e5f41 | Shell | nraychaudhuri/hyperledger-smart-city-card | /smart-columbus-card/deploy.sh | UTF-8 | 674 | 2.71875 | 3 | [] | no_license | #!/bin/bash
rm *.bna
version=0.0.7
npm version $version
echo "###### Creating archive"
composer archive create -t dir -n .
echo "##### Install the business network"
composer network install --card PeerAdmin@hlfv1 --archiveFile smart-columbus-card@$version.bna
echo "#### Start the business network"
composer networ... | true |
9e00da84a7ac4f94e38e6c33387eab57d400d072 | Shell | concher009/enlive | /01_02_03_smallfov/brain/doit.sh | UTF-8 | 763 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
./0_prep.sh
# ENLIVE reco first:
# first param is output directory
./1_reco_enlive.sh reco_ENLIVE
# then ESPIRiT
./2_reco_espirit.sh reco_ESPIRiT
# difference images
./3_create_difference_imgs.sh reco_ENLIVE
# and individual figures
./4_create_figure.sh reco_ENLIVE
./4_create_... | true |
1ee36f4d8d6df766eac78596013e166dc95f5696 | Shell | ntaheij/itrr-ubuntu | /install.sh | UTF-8 | 672 | 2.890625 | 3 | [] | no_license | #Get Node Setup
sudo apt-get install curl -y
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
#Install Node
sudo apt-get update
sudo apt-get install nodejs git
#Install App
cd /var/
git clone https://github.com/ntaheij/itrr-ubuntu.git
rm package-lock.json
cp -a /var/itrr-ubuntu
#Create Startup File
cp... | true |
269b377bcb616cb6c7a59a7f858e158ba191d176 | Shell | giftig/gnotify | /scripts/deploy.sh | UTF-8 | 1,422 | 4.03125 | 4 | [] | no_license | #!/bin/bash
ROOTPATH=$(readlink -f "$(dirname $0)/..")
PACKAGE_NAME='gnotify'
tempdir=$(mktemp -d --tmpdir=/tmp/ ${PACKAGE_NAME}.XXXXXXXX)
cachefile="/tmp/.$PACKAGE_NAME-deploy.cache"
dump_location="giftiger_wunsch@giftig-1:/tmp/$PACKAGE_NAME-release.tar.gz"
touch $cachefile
# Build the application first
$ROOTPATH/s... | true |
3250bae29997f4bca684a075c88ea1d8f46f7bd2 | Shell | onelogin/onelogin-oidc-android | /TestRail_Scripts/AddTestCasesFromGitDiff.sh | UTF-8 | 3,237 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source ./TestRail_Scripts/TestRailFileConfig.sh
source ./TestRail_Scripts/TestRailUserConfig.sh
#Grep lists
LIST="\+[ ]*@TestRail\|\diff \-\-git\|\-[ ]*@TestRail"
AVOID="\-\-\|index"
#Get new test tags
grep -n -A 1 "$LIST" "$PATH_TO_TESTRAIL_SCRIPTS_FOLDER$GIT_DIFF_FILE" > "$PATH_TO_TESTRAIL_SCRIPTS_FOLD... | true |
e42114278e7235a91561f8a2604ac1286b285e3e | Shell | jbnv/WordLists | /scripts/minify.sh | UTF-8 | 352 | 3.515625 | 4 | [
"MIT"
] | permissive | # Minify all of the text files in the current folder.
echo -n "{"
delimiter2=""
ls -1 *.txt | cut -d'.' -f 1 | while read -r filename
do
delimiter1=""
echo -n "$delimiter2\"$filename\":["
cat $filename.txt | while read -r word
do
echo -n "$delimiter1\"$word\""
delimiter1=","
done
echo -n "]"
... | true |
1fc895808e39675ff373ada6f34e27acdf03e8ad | Shell | tjlattis/dotfiles | /.bashrc | UTF-8 | 1,305 | 2.71875 | 3 | [] | no_license | export USER="tony"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# CLI Color
export CLICOLOR=1
if [ -f ~/.bash_prompt ]; then
. ~/.bash_prompt
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Environment Variables
export LESS='-MeFRX'
export HISTI... | true |
30d606da0b262fcac73904f3612e6867dfa04435 | Shell | FauxFaux/debian-control | /t/tumgreyspf/tumgreyspf_1.36-4.1_all/postinst | UTF-8 | 1,340 | 3.84375 | 4 | [] | no_license | #!/bin/sh
set -e
GETENT=/usr/bin/getent
TUMUSER=tumgreyspf
if ${GETENT} passwd ${TUMUSER} >/dev/null ; then
echo "User ${TUMUSER} already exists: skipping creation!"
else
if [ -x `which useradd` ] ; then
useradd -m -s /bin/false -g nogroup ${TUMUSER} -r -b /var/lib
echo "Created user ${TUMUSER}"
else
echo "... | true |
02f37875402685c7e0c287da2c9dcc8c4cfb12da | Shell | necmettinolcay/bash-script | /redmine_cleaner.sh | UTF-8 | 1,211 | 3.625 | 4 | [] | no_license | #!/bin/bash
#set -x
USER=""
PASSWORD=""
HOST="localhost"
DB_NAME="redmine"
BACKUP_FILE="/srv/redmine.sql"
PLUGIN_FILE="/opt/redmine/plugins/"
MYSQL=$(which mysql)
AWK=$(which awk)
GREP=$(which grep)
function checkDatabase {
$MYSQL -u $USER -p$PASSWORD -h $HOST -e "use $DB_NAME" &>/dev/null
if [ $? -ne 0 ]
the... | true |
fe2fdd6972659ae223dc159698a64edf9bf38fa8 | Shell | Debora1996/facef-design-apis | /15-API-Gateway/scripts/kong-run.sh | UTF-8 | 2,414 | 3.5 | 4 | [] | no_license | #!/bin/sh
DECLARATIVE_CONFIG_SETUP="../01-Setup-Kong"
DECLARATIVE_CONFIG_AUTH="../02-Key-Authentication"
DECLARATIVE_CONFIG_CORRELATION_ID="../03-Correlation-ID"
DECLARATIVE_CONFIG_CACHE="../04-Cache"
DECLARATIVE_CONFIG_RESPONSE_TRANSFORMER="../05-Response-Transformer"
DECLARATIVE_CONFIG_RATE_LIMITING="../06-Rate-Limi... | true |
7b491d2523e38f05adc12022cfa733ba3f483afe | Shell | jieff/laravel6-docker | /docker/usr/local/bin/docker-laravel-entrypoint | UTF-8 | 1,467 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
cd /var/www/laravel
role=${CONTAINER_ROLE:-app}
if [[ -z "$APP_ENV" ]]; then
APP_ENV=local
echo -e "\e[33mENV undefined: APP_ENV, use default $APP_ENV\e[0m"
echo "APP_ENV=$APP_ENV" >> .env
fi
if [[ "$APP_ENV" = "local" ]]; then
cp /usr/local/etc/php/php.ini-development /usr... | true |
62b91526ce5dcdaeb11b96cf6dcf061557713670 | Shell | neoreeps/auto_crypto | /start.sh | UTF-8 | 230 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
dprint() {
echo -e "`date` ---> ${@}" 2>&1 |tee -a /var/log/crypto.log
}
dprint "Setup environment for Crypto Tools"
cat /etc/crontabs/root
dprint "Running cron in the foreground ..."
/usr/sbin/crond -f
| true |
d2d89b7379d782c5e4bba40e039b31c6211bddb1 | Shell | antenore/svntogit-community | /t1utils/repos/community-x86_64/PKGBUILD | UTF-8 | 1,104 | 2.78125 | 3 | [] | no_license | # Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Evgeniy Alekseev <arcanis at archlinux dot org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Simo Leone <neotuli@gmail.com>
pkgname=t1utils
pkgver=1.42
pkgrel=1
pkgdesc="Utilities for manupulating Adobe Type 1 font software "
arc... | true |
84c9e847273e1269d60e4b81362953fd893766f6 | Shell | AXLEproject/axle-healthcare-benchmark | /messaging/test-tools/purge-queues.sh | UTF-8 | 1,235 | 3.4375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"PostgreSQL"
] | permissive | #!/bin/bash
#
#
# Copyright (c) 2013, 2014, MGRID BV Netherlands
#
usage() {
cat << EOF
usage: $0 [OPTIONS]
This script purges the RabbitMQ queues used for tranzoom.
Requires the HTTP management plugin enabled.
OPTIONS:
-h Show this message
-n RabbitMQ hostname (default localhost)
-u RabbitMQ... | true |
40ecfeccae9c4256e8d221c59a499b1f77caab4c | Shell | jamon4j/shell_test | /shell编程实例/isValidAlphaNum.sh | UTF-8 | 594 | 3.578125 | 4 | [] | no_license | #!/bin/sh
#Author:zjj
#Date:2014/11/25 14:00
#Desc:验证用户输入是否合法,要求串由大小写字母、数字组成,无标点、特殊符号、空格
#Method:将输入的串中 非字母数字的内容删除或替换为空后若和原来输入的相同则合法,否则不合法。
checkValid()
{
#[[:alnum:]]表示所有字母和数字中的任一个字符
compressed="$(echo $1|sed 's/[^[:alnum:]]//g')"
if [ "$compressed" != "$1" ];then
echo "invalid"
return 1
else
echo "va... | true |
0fe46ead7bef6e988956a89aab1b8efe54acd256 | Shell | josegcpa/haemorasis | /scripts/bash/get-histograms.sh | UTF-8 | 1,055 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | source ./config
output_path_base=$RESULTS_DIR/histograms
output_path=$output_path_base/MLL
mkdir -p $output_path
for slide in $MLL_DIR/*$MLL_FMT
do
o=$output_path/$(basename $slide | cut -d '.' -f 1).csv
bsub \
-n 1 \
-M 1000 \
-o /dev/null -e /dev/null \
"python3 scripts/pytho... | true |
e5bbacbe924112932d7f11611c7568a6583a99af | Shell | strzibny/obs-for-fedora | /systemd/bin/obsapidelayed | UTF-8 | 2,644 | 3.015625 | 3 | [
"MIT"
] | permissive | #! /bin/sh
# Copyright (c) 2009 SUSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Adrian Schroeter
# Please send feedback to http://www.suse.de/feedback/
#
# /etc/init.d/obsapidelayed
# and its symbolic link
# /(usr/)sbin/rcobsapidelayed
#
# This program is free software; you can redistribute i... | true |
37f10110908644cc91c7cb7527e6a79d93423878 | Shell | crismunoz/PytorchModelParallel | /run_single_machine.srm | UTF-8 | 837 | 2.625 | 3 | [] | no_license | #!/bin/bash
#SBATCH --nodes=16 #Numero de Nósi
#SBATCH --ntasks-per-node=4 #Numero de tarefas por Nó
#SBATCH --ntasks=64 #Numero de tarefas
#SBATCH -p ict_gpu #Fila (partition) a ser utilizada
#SBATCH -J GF_JN #Nome job
#SBATCH --time=6-12 #Altera o tempo limite para 5 minutos
#... | true |
bd23f41d2ff270ee29461d91461b0150e960382f | Shell | windtalker/tidb | /util/testleak/check-leaktest.sh | UTF-8 | 1,159 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Copyright 2019 PingCAP, 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 by applicable law or agreed to ... | true |
fae9d9a69e9d71fc9fe4202274ce16cbf39debf3 | Shell | pixiys/tiny-utils | /servers | UTF-8 | 889 | 3.359375 | 3 | [] | no_license | #!/bin/bash
function serverInfo {
printf "\n$1:\n"
ip=$(ssh $1 ifconfig $2 | grep 'inet'| egrep -v "(inet6|127.0.0.1)" | awk '{ print $2}')
domain=$(ssh $1 ls /etc/apache2/sites-enabled | egrep -v '(default)|(ssl)' | sed -e "s/^[a-z]*\.//" -e "s/\.conf$//" | head -n 1)
uptime=$(ssh $1 uptime -p | sed -e "s/^up //")
df... | true |
371602d6e6b1318245fdcd70c5b33c579df39134 | Shell | lotem/dotfiles | /modules/ubuntu.sh | UTF-8 | 326 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
apt_get_install() {
local package="$1"
sudo apt-get install -y "$package"
}
apt_get_update() {
sudo apt-get update
}
install_ubuntu_packages() {
if [ ${#ubuntu_packages[@]} -ne 0 ]; then
apt_get_update
fancy_echo 'Installling packages ...'
map apt_get_install "${ubuntu_packages[@]}"
... | true |
94ac196f588aa9c92029fbdb04d2f61bd213437b | Shell | Kaustubh-Sable/icatproject | /ops/icat42/test421/test_all.sh | UTF-8 | 615 | 3.390625 | 3 | [] | no_license | #!/bin/sh
#
# $Id$
#
# The purpose of this script is to provide the test information in csv format
#
export pwd=`pwd`
export base=`basename $pwd`
export host=`hostname`
export example_properties=example.properties
export date_format='-u +%d/%m/%Y%t%T'
#
./change_icat.sh... | true |
125892db8c2a7c6c72bb02ef4c04ed5cba36ecd9 | Shell | petronny/aur3-mirror | /grass-manpages-it/PKGBUILD | UTF-8 | 734 | 2.75 | 3 | [] | no_license | # Maintainer: Marco Curreli <youremail@domain.com>
pkgname=grass-manpages-it
pkgver=1.1
pkgrel=1
pkgdesc="GRASS GIS 6.4 doc: html manuals and manpages in italian language"
arch=('any')
url="https://bitbucket.org/marco.it/grass64-manpages-it"
license=('GPL')
depends=(grass)
makedepends=()
install='grassdoc.install'
chan... | true |
ed3106d04add563cfa93849ed5d8d236b2093bad | Shell | atomicman57/sequelize-simple-cache | /test/integration/startPostgres.sh | UTF-8 | 477 | 2.921875 | 3 | [] | no_license | #!/bin/sh
echo "start database..."
docker run --rm --name pgitest -e POSTGRES_PASSWORD=docker -d -p 5432:5432 postgres:11
sleep 3
while ! nc -z localhost 5432; do
sleep 1
done
docker exec pgitest psql -U postgres \
-c "CREATE USER itest WITH PASSWORD 'secret'" \
-c "CREATE DATABASE itest" \
-c "\c itest" \
... | true |
eac232df27a354697e7f6cb2a5265025deda5dd0 | Shell | MichaelYoungGo/BashShellScriptPractice | /birdbook/sh02.sh | UTF-8 | 218 | 2.578125 | 3 | [] | no_license | #!/bin/bash
#Program
# User input first name and final name
#Histoy:
#2019/10/9 Michael
export PATH
read -p "first name:" firstname
read -p "final name:" finalname
echo -e "\n Your full name is: $firstname $finalname"
| true |
ce7c702e79f274176b6e001995e6490096608a11 | Shell | shubhamsathe123/Bootcamp-Bridgelabz | /Day6Assignment/Function_Que3.sh | UTF-8 | 493 | 3.8125 | 4 | [] | no_license | #!/usr/bin/bash
prime()
{
no=$1
count=0
for (( i=1; i<=$no; i++ ))
do
if [ $(($no % $i)) -eq 0 ]
then
((count=count+1))
fi
done
if [ $count -eq 2 ]
then
echo "$no is prime"
else
echo "$no is not prime"
fi
}
palindrome()
{
no=$1
rev=0
temp=$no
while [ $no -gt 0 ]
do
rem=$(($no%10))
rev=$(($rev*10+$rem))
no=$(($no/10... | true |
fa98fa587540674862e2753d4d7d54196c531c76 | Shell | jhunt/env | /bin/installto | UTF-8 | 1,097 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
setup_environment() {
local target=$1
local add=""
add="-L${target}/lib"
if [[ -z ${LDFLAGS} ]]; then
LDFLAGS=${add}
else
LDFLAGS="${LDFLAGS} ${add}"
fi
add="-I${target}/include"
if [[ -z ${CFLAGS} ]]; then
CFLAGS=${add}
else
CFLAGS="${CFLAGS} ${add}"
fi
if [[ -z ${CPPFLAGS} ]]; then
... | true |
fb016de70e1fab1c7aae814ff535aaa60e2f7ff6 | Shell | Sigsiguma/dotfiles | /lib/brew | UTF-8 | 3,839 | 3.40625 | 3 | [] | no_license | #!/bin/bash
run_brew() {
if has "brew"; then
echo "Already installed Homebrew!"
else
echo "Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if has "brew"; then
echo "Updateing Homebrew..."
... | true |
4740e6ccf711f304aba1a2af974a845b5c0d3448 | Shell | yongwww/aws-tf-examples | /utils/install/build_tf_mkl.sh | UTF-8 | 1,986 | 3.03125 | 3 | [] | no_license | # Launch a AMZ DL AMI (Ubuntu)
#Install Bazel with --user, it will be installed at /home/ubuntu/.bazel
wget https://github.com/bazelbuild/bazel/releases/download/0.13.1/bazel-0.13.1-installer-linux-x86_64.sh
chmod +x bazel-0.13.1-installer-linux-x86_64.sh
./bazel-0.13.1-installer-linux-x86_64.sh --user
source /home/ubu... | true |
692e33ad87ba450a60a4d72255f1ac3a5e34eafd | Shell | pjincz/libchromiumcontent | /script/build-bsd-gn | UTF-8 | 537 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# this script should run after electron's patch system
# because python-patch is stupid...
set -e
SCRIPT_DIR=$(readlink -f $(dirname $0))
ROOT_DIR=$(dirname $SCRIPT_DIR)
SRC_DIR=$ROOT_DIR/src
PATCH_DIR=$ROOT_DIR/tmp/bsd-patch
CHROMIUM_VERSION=$(cat "$ROOT_DIR/VERSION")
if [ ! -d $PATCH_DIR ]; then
ech... | true |
832c36be220e5e1e6949abfb4289212befed6e15 | Shell | chelseaju/Pseudogene | /correction_v2.sh | UTF-8 | 3,143 | 3.09375 | 3 | [] | no_license | #!/bin/bash
## sh evaluation.sh DIR A B BAM SUFFIX
DIR=$1
SUBDIR=$2"X_"$3"L_"$4"A"
LASSODIR=$5
TOPOUT="tophat_out"
LASSO_X="$DIR/$LASSODIR/$SUBDIR""_reconstructed_x_matrix.txt"
LASSO_Y="$DIR/$LASSODIR/$SUBDIR""_validationY_v2.txt"
CUFFLINKS="cufflinks_after"
## MAC
#PSEUDOGENE="/Users/Chelsea/Bioinformatics/CJDataba... | true |
03ded74b270d3c183dad4c514d229ed78d58c784 | Shell | icclab/rosdocked-irlab | /test/run_grasp_test_bash_k8s.sh | UTF-8 | 919 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
export IMAGE=robopaas/rosdocked-noetic-k8s:latest
export CONTAINER_NAME=grasp_test_k8s
echo $CONTAINER_NAME
docker rm -f $CONTAINER_NAME || true
docker run -d -i --rm --name $CONTAINER_NAME $IMAGE /bin/bash
# TEST #1: testing navigation stack
# test with bash
echo "Testing grasping stack..."
do... | true |
3e350fe3a15f0b90248d6f2917076b4bf6171d06 | Shell | tim-bm/kube-tools | /build-and-push.sh | UTF-8 | 197 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -eou pipefail
docker pull docker:stable
IMAGE="place1/kube-tools:$(date +%Y.%m.%d)"
docker login
docker build -t "$IMAGE" .
docker push "$IMAGE"
echo "New image pushed: $IMAGE"
| true |
c9cc54a314add1d11490fc55126b75d1bf06eeb2 | Shell | Edison-Zhou/business-function | /src/main/resources/workflow/etl/userBehavior/bin/ai_base_behavior_episode.sh | UTF-8 | 602 | 3.21875 | 3 | [] | no_license | #!/bin/bash
cd `dirname $0`
pwd=`pwd`
echo "pwd : $pwd"
source /etc/profile
startDate=$1
endDate=$2
startDate=`date -d "-1 days "$startDate +%Y%m%d`
endDate=`date -d "-1 days "$endDate +%Y%m%d`
while [[ ${startDate} -le ${endDate} ]]
do
#剧集类的数据计算
echo "execute ai_base_behavior_raw_episode $startDate ...... | true |
c7d50879c5bee7a8b2b918f44c6a9a275137b0a5 | Shell | edisongustavo/fnb | /bootstrap.bash | UTF-8 | 565 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
command -v conda >/dev/null 2>&1 || { echo >&2 "The command 'conda' is not installed. Aborting."; exit 1; }
conda env create -f environment.yml
# Install chromedriver
if ! command -v chromedriver; then
echo "'chromedriver' is not installed. Installing..."
command -v git >/dev/null 2>&1 || ... | true |
48726595731eca7f64329696415424afc094c87b | Shell | kgkoutis/IntroductionToBashScripting | /HomeStudy/L14-SelectLoop.sh | UTF-8 | 2,260 | 4.125 | 4 | [] | no_license | #!/usr/bin/env bash
### Select loop
# The select loop is used whenever you need to write a script which requires some menus to select from
# select variable in list
# do
# command1
# command2
# command3
# done
#-------------------------------------------------------------------------
# Example: uncomment to... | true |
3c7639c380ca1fef0170c8d393e099a7e5df187a | Shell | gerdansantos/DataScience_Rev1 | /scripts/ds_ipython.sh | UTF-8 | 508 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DS_DIR=/root/DataScience_Rev1
echo "Starting IPython Notebook Node..."
CID_ipython=$(docker run -d -v $DS_DIR/dockerfiles/ipython_node/notebooks:/root/notebooks --privileged --dns 8.8.8.8 -p 8888:8888 --name ipython -h ipython -i -t hwx/ipython_node)
IP_ipython=$(docker inspect --format "{{ .NetworkSetting... | true |
3c2f41d27564bc887a696ce27408e54990438552 | Shell | vkkothawale/Dockerfile- | /shell/find-string.sh | UTF-8 | 85 | 2.609375 | 3 | [] | no_license | #!/bin/sh
for file in *
do
if grep -q system $file
then
echo $file
fi
done
exit 0
| true |
174d408f3bac75b7f08c3836d01002e635b4e6e4 | Shell | hoskeri/dotfiles | /elm/bin/xelm-doc | UTF-8 | 762 | 3.171875 | 3 | [] | no_license | #!/bin/bash -eu
files=$(find "${HOME}/.elm/0.19.0/package" -type f -name docs.json)
doc_cache_file="${HOME}/.xelm-doc-cache.json"
if [ ! -f "${doc_cache_file}" ]
then
jq 'inputs
|map({filename: input_filename, name: .name, content: .})
|path(..|.name?) as $p
|{ name: getpath($p),
module: getpath(... | true |
709647b0f8263dfd769ba112629d30dee3127d5e | Shell | mryellow/debian-scripts | /post-install-odroid.sh | UTF-8 | 344 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit
set -o pipefail
RED='\033[0;31m'
YEL='\033[1;33m'
NC='\033[0m' # No Color
if ! grep swap /etc/fstab;
then
echo -e "${YEL}Configure USB swap.${NC}"
sudo sh -c 'echo "UUID=68e068ff-f919-4620-9a91-953dc1137fcb none swap sw,pri=5 0 0" >> /etc/fstab'
sudo swapon -a
fi
sudo chown -R $USER:... | true |
dc307eeeaae21894a9b60d66a8d6c8a4c805044f | Shell | codebarber/dockerfiles | /consul/consul | UTF-8 | 857 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
del_stopped consul
# check if we passed args and if consul is running
local args=$@
local state=$(docker inspect --format "{{.State.Running}}" consul 2>/dev/null)
if [[ "$state" == "true" ]] && [[ ! -z "$args" ]]; then
docker exec -it consul consul "$@"
return 0
fi
#--restart always \
docker run -... | true |
d0e03ee54b035255497f62870e60e615b77fcb3b | Shell | miguel-dev/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/7-clock | UTF-8 | 245 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
#Displays time for 12 hours and 59 minutes.
hours=0
while [ $hours -le 12 ]
do
echo "Hour: $hours"
minutes=1
while [ $minutes -le 59 ]
do
echo "$minutes"
minutes=$(( minutes + 1 ))
done
hours=$(( hours + 1))
done
| true |
859b70d01d3245fd3e2ca8cc2324d3bf5756f8a7 | Shell | ycjcl868/dotfiles | /bootstrap | UTF-8 | 1,318 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# install major applications with homebrew
if test ! $(which brew); then
echo "Installing homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# setup hostname
sudo scutil --set HostName david-macbook
# install all
set +e
b... | true |
11d374deecee4373337435d64bbc41f67d3fd764 | Shell | kbaseattic/rdptools | /service/start_service.tt | UTF-8 | 608 | 2.78125 | 3 | [] | no_license | #!/bin/sh
export KB_TOP=[% kb_top %]
export KB_RUNTIME=[% kb_runtime %]
export PATH=$KB_TOP/bin:$KB_RUNTIME/bin:$PATH
export PERL5LIB=$KB_TOP/lib
export KB_SERVICE_NAME="[% kb_service_name %]"
export KB_SERVICE_DIR=$KB_TOP/services/[% kb_service_dir %]
export KB_DEPLOYMENT_CONFIG=$KB_TOP/deployment.cfg
[% IF kb_tempdi... | true |
6757dfcbe04986ca828de33d31c5b5768da6933e | Shell | pandalowry/bashrails | /bash_aliases | UTF-8 | 778 | 2.875 | 3 | [
"MIT"
] | permissive | ##### ea - editing aliases
alias ea='vim ~/.bash_aliases; source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases sourced [ok]."'
alias rsap='sudo service apache2 restart'
alias gpom='git push origin master'
alias gphm='git push heroku master'
alias devlog='tail -f log/development.log'
alias prodlog='... | true |
51de4aa42c9f10472a33d21604fcf35eaca7a0d2 | Shell | sjc-waterloo/moshi | /Moshi Script/env_install.sh | UTF-8 | 1,721 | 2.609375 | 3 | [] | no_license | echo -e "\n---- 安裝部署環境 ----"
sudo apt-get update && sudo apt-get upgrade -y
echo "mysql-server mysql-server/root_password password Moshimoriec123" | debconf-set-selections
echo "mysql-server mysql-server/root_password_again password Moshimoriec123" | debconf-set-selections
apt-get -y install mysql-server
sudo apt-ge... | true |
d98759e3c8112e80b2dc8d47938c8afebcbbf60e | Shell | harimp/dot-files | /.zshrc | UTF-8 | 631 | 2.703125 | 3 | [] | no_license | # Load nvm.sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Avoid nice
unsetopt BG_NICE
ZSH="/home/hpark/.oh-my-zsh"
ZSH_THEME="sorin"
plugins=(
git
zsh-autosuggestions
)
autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh
# Load ls colors
eval $(dircolors -b $HOME/.dircolo... | true |
a98d0cde0ea61f4eb7edf14582406aa73be683f5 | Shell | chalisturk/bitmain_hacking | /Antminer-L3-v1.02-20180114_0-blissz/_initramfs.bin.SD.extracted/etc/init.d/network.sh | UTF-8 | 918 | 3.359375 | 3 | [] | no_license | #!/bin/sh
# gpio 23 = DHCP Static key
#ver = 1
# gpio 27 = DHCP Static key
if [ ! -f /config/network.conf ] ; then
cp /etc/network.conf.factory /config/network.conf
fi
if [ -s /config/network.conf ] ; then
. /config/network.conf
else
dhcp=true
hostname=antMiner
fi
if [ -n "$hostname" ] ; then
hostn... | true |
2a849f874813356b8a5af518aaaeb86cf596daad | Shell | electrikjesus/aosp_magisk-vendor | /common/custom_ramdisk_patch.sh | UTF-8 | 1,597 | 3.328125 | 3 | [] | no_license | #!/system/bin/sh
RAMDISK=$1
TMPDIR=/dev/tmp
MAGISKBIN=/data/magisk
[ ! -e $MAGISKBIN ] && MAGISKBIN=/cache/data_bin
[ ! -e $MAGISKBIN ] && exit 1
SYSTEMLIB=/system/lib
[ -d /system/lib64 ] && SYSTEMLIB=/system/lib64
mkdir -p $TMPDIR 2>/dev/null
cd $TMPDIR
cpio_add() {
LD_LIBRARY_PATH=$SYSTEMLIB /su/bin/sukernel -... | true |
90e784c329c286712049925b3d8843d30ee74aba | Shell | open-horizon/anax | /anax-in-k8s/script/anax.service | UTF-8 | 3,852 | 4.46875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Script to start, restart, and stop anax inside a docker container
# Note: this trap won't run while we are blocking on a foreground cmd, so when we start anax, we will have to run it in background and use wait.
trap trapHandler SIGTERM
# Note: the check for dont-unregister-on-exit is so we can do a res... | true |
bb79b0e4815fe292d4e08b70c98fd6f303f896f8 | Shell | matteocostantini/xalan-c | /xdocs/sources/make-xalan.sh | UTF-8 | 3,028 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Bourne shell script to create a single xalan-c webpage
# Parameter $1 is the basename of the page to generate.
#
#-------------------------------------------------------------
#
# Set the current path to include the "Xalan" stylesheet transformation utility
#
# $1 The document filename (with... | true |
9eaef90116a6d787f9c28de0da48e2b365e59334 | Shell | GNOME/gnome-build-meta | /files/linux/config-utils.sh | UTF-8 | 601 | 3.53125 | 4 | [
"MIT"
] | permissive | has() {
state="$(scripts/config --keep-case -s "${1}")"
case "${state}" in
undef|n)
return 1
;;
y|m)
return 0
;;
*)
echo "Wrong status for ${1}: ${state}" 1>&2
exit 1
;;
esac
}
remove() {
scripts/config --keep-case -d "${1}"
}
module() {
echo "${1}" >>expected-c... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.