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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bd6dcfb67fdad9edd760a0af5d60d2b0efec19de | Shell | vsajip/kscript | /misc/boostrap_header.sh | UTF-8 | 707 | 3.1875 | 3 | [
"MIT"
] | permissive | function _in_path() { command -v "$1" >/dev/null 2>&1; }
_in_path kscript && echo "kscript is already installed at $(which kscript)" 1>&2 || {
function echo_and_eval() { echo "$ $@" 1>&2; eval "$@" 1>&2; }
_in_path sdk || {
export SDKMAN_DIR="$HOME/.sdkman" && curl "https://get.sdkman.io" | bash 1>&2 &&... | true |
8aee512d0b223d0cda815ad6745346dd5d37fa93 | Shell | siauPatrick/seimur | /provision.sh | UTF-8 | 2,064 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
VAGRANT_HOME_PATH='/home/vagrant'
PRJ_NAME=$1
function startup()
{
# postgreSQL
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key ... | true |
831cc34f2c6060befea35bc6da14b440cb99b628 | Shell | Ponce/slackbuilds | /system/clamav/doinst.sh | UTF-8 | 1,011 | 3.703125 | 4 | [] | no_license | config() {
for infile in $1; do
NEW="$infile"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
... | true |
1a4f1d9b1c7ba099ff1e9fb692c50dc070bdbf9e | Shell | uli-heller/uli-javawrapper | /bin/ant.sh | UTF-8 | 188 | 3 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
D="$(dirname "$0")"
D="$(cd "${D}"; pwd)"
if [ ! -d "${D}/groovy" ]; then
"${D}/prepare.sh"
fi
ANT_DIR="${D}/groovy"
java -jar "${ANT_DIR}/lib/ant-launcher-1.8.4.jar" "$@"
| true |
91f5aaa2084c44b9057b78f1d37f1d12dfb2a5b7 | Shell | sebsel/dotfiles | /tools/aliases.zsh | UTF-8 | 386 | 2.671875 | 3 | [] | no_license | alias dotenv="env \$(cat .env | xargs) "
alias miex="iex -S mix"
alias b64="cat | base64 -D"
alias toolbox="node ~/code/compose/toolbox/toolbox.js"
function woorden {
# Download from https://www.opentaal.org/bestanden/file/2-woordenlijst-v-2-10g-bronbestanden
cat ~/Documents/OpenTaal-210G-woordenlijsten/OpenTaal-2... | true |
f00a43a7b5f7c97af733230cc238fa9a3ff6071a | Shell | fossabot/BrainSTEM | /tools/bash/convert2DCM_common.bash | UTF-8 | 2,278 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
#
# This script contains common functions for scripts to convert NIfTI or image files back to DICOM
#
# Function to get the accession number from DICOM (or handle non-existant accession numbers)
function getAccNo {
# Reference DICOM file (to copy DICOM values from)
local ref_dcm="${1}"
# Get... | true |
1589731e22ec2d7503fa41214595ea3ae964c859 | Shell | impks27/scripts | /links/print_num_hl | UTF-8 | 74 | 2.796875 | 3 | [] | no_license | #!/bin/bash
num=10
for i in 1 2 3 4 5
do
echo "Looping number $i"
done
| true |
fe116fe66a5eebed91a5c524eaa8e8f02dadd874 | Shell | wcarhart/koi | /tests/scripts/workflow_example.sh | UTF-8 | 1,292 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
: <<- COMMENT
To use koi:
1. source the koi script
2. override the 'koiname' variable with the name of your script
3. override the 'koidescription' variable with the description of your script
To add arguments:
1. add arguments to each function with __addarg
2. parse the arguments with __... | true |
8261a4d95fa9118f64ddf11196fca0bee455341c | Shell | SHUO-HUAI/gap_sdk | /configs/gap8.sh | UTF-8 | 343 | 2.765625 | 3 | [] | no_license | #!/bin/bash -ex
export GAP_SDK_HOME="$(dirname $(dirname "$(readlink -f "${BASH_SOURCE[0]}")"))"
export TARGET_CHIP="GAP8"
export TARGET_NAME="gap"
export PULP_CURRENT_CONFIG=gap@config_file=chips/gap/gap.json
if [ -z "$BOARD_NAME" ]; then
export BOARD_NAME="gapuino"
fi
export GVSOC_CONFIG=$BOARD_NAME
. $GAP_SDK... | true |
b61d33397932ba36419557b36ceef6d96da2b6f1 | Shell | anupama-sinha/unix-repo | /fileCheckAllDir.sh | UTF-8 | 148 | 3.4375 | 3 | [] | no_license | m=$1
find /home -name $m
if [ $? -ne 0 ]
then
echo "Exists"
else
touch cal.sh
echo "$m has been created in the current working directory"
fi
| true |
1f0c8e74255f8f9b13e04a362101b23a16e00fd5 | Shell | pronabananda/javaone14_handsonhadoop | /hive.sh | UTF-8 | 583 | 3.046875 | 3 | [] | no_license | #!/bin/sh
grep hive.aux.jars.path /usr/lib/hive/conf/hive-site.xml >/dev/null 2>&1
if [ $? = 1 ]; then
sed -e '\#</configuration># i\
\
<property>\
<name>hive.aux.jars.path</name>\
<value>file:////usr/lib/hive/lib/hive-contrib.jar</value>\
<description>Add the Hive contrib JAR to Hive</description>\
... | true |
c9f0e6c877e494f8b5d6391942ee9d914983981c | Shell | CosmicQ/AWS-Scripts | /set_log_retention.sh | UTF-8 | 2,549 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Simple script to set the log retention in cloudwatch to other
# than "forever". The first part is to collect the tokens for paging
# through the lists of logs. Once we have that, we can update each
# log to expire at a reasonable date.
#
################################################
PROFILE=""
RETE... | true |
6c0d22bca05e803b0ba4125ad749dd5dfb681c41 | Shell | snowphone/dotfiles | /sshd.sh | UTF-8 | 819 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
## Check for accessibility
if [[ $(whoami) == "root" ]]; then
sudo=""
else
sudo="sudo"
fi
folder=$(dirname $0 | xargs realpath)
# Main phase
$sudo apt install -y openssh-server net-tools
$sudo ssh-keygen -A
#.bashrc 설정
#ssh server 설정
echo "Change port address to 61022"
$sudo sed -i 's/#\?Port... | true |
7ce31cf9b50a99245863029265863ea57ed1ea61 | Shell | RobertSandiford/video-site-docker | /mongo-db/init-mongo-2.sh | UTF-8 | 456 | 2.96875 | 3 | [] | no_license | #!/bin/bash
set -e;
"${mongo[@]}" "$MONGO_INITDB_DATABASE" <<-EOJS
db.placeholder.insert({ 'placeholder' : '' })
EOJS
if [ -n "${mongo_db_user:-}" ] && [ -n "${mongo_db_pass:-}" ]; then
"${mongo[@]}" "$MONGO_INITDB_DATABASE" <<-EOJS
db.createUser({
user: $(_js_escape "$mongo_db_user"),
pwd: $(_js_escape ... | true |
e10b15c7b0e89764d2a3c8089ea60d574d66ca29 | Shell | kinopyo/.dotfiles | /bin/gbrr | UTF-8 | 1,226 | 4.5 | 4 | [] | no_license | #!/bin/bash
# Show a menu of your recently used Git branches, allowing for a quick branch
# switch.
#
# Usage: gbrr [COUNT]
# COUNT is the number of recently used branches to show. Defaults to 10.
#
# Example:
# $ gbrr
# 0) f_test-1
# 1) f_test-whatever
# 2) master
# Switch to which branch? 1
#
# + git c... | true |
3519c9c21057e9d5e53a01c8ed498a49e35d81e2 | Shell | adamci/.adamci | /install.sh | UTF-8 | 1,626 | 3.4375 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ "$DIR" != ~/.adamci ]; then
echo "Repo .adamci must be installed in home directory!"
exit
fi
# Validate OS
source ./identify_os.sh
if [ "$DIST" = "0" ]; then
echo $'Unsupported OS\nAborting install_packages.sh!\n'
exit 1
fi
if [... | true |
749790e01d234cd24926e726b6ee99ec74a196e8 | Shell | dubee/test-infra | /tools/cleanup/cleanup-functions.sh | UTF-8 | 2,640 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2018 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | true |
15f596fe328a3b850caa3a1e45e7262c41d3a266 | Shell | lgannoaa/global-workflow | /util/ush/xlf_links.sh | UTF-8 | 276 | 3.09375 | 3 | [] | no_license | set -a
num=1;>xlflnk
while [ $num -le 99 ]
do
echo "[ -n \"\$XLFUNIT_$num\" ] && ln -sf \$XLFUNIT_$num fort.$num" >>xlflnk
num=`expr $num + 1`
done
chmod +x xlflnk; ./xlflnk; rm xlflnk
echo; echo `date` links.sh produced the following soft links:
echo; ls -ln fort.*; echo
| true |
29a2ae2ab24da1221c4bcc5d2258c54fd30c8c2d | Shell | bergware/dynamix | /source/cache-dirs/scripts/cache_dirs | UTF-8 | 52,891 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# Using '/bin/bash' instead of '/usr/bin/env bash' means process gets listed in ps and pstree as cache_dirs instead of bash cache_dirs
#Programmer notes
# Check with https://www.shellcheck.net/
####################################################################################
# cache_dirs
# A utility to... | true |
4dbe321bd2f8305eed9d5a116fd575e45fe6445d | Shell | OwlinOhana/OperatingSystem | /Lab1/lab.sh | UTF-8 | 4,155 | 3.921875 | 4 | [] | no_license | #!/bin/bash
#В проекте должен обрабатываться аргумент "--help|-h" для вывода справки, в которой отображаются:
#Авторы;
#Все доступные аргументы;
#Краткое описание проекта;
#Примеры запуска.
IFS=$'\n'
echo "Доступные функции программы
-h - получить справку
-I - вывод сетевых интерфейсов
-U - отключение/включение инт... | true |
0f4f30fcd7d7553691571992b2b07331e1bae616 | Shell | mhmtkptn/bashExamples | /src/processes/findProcessBeacon.sh | UTF-8 | 800 | 3.828125 | 4 | [] | no_license | #!/usr/bin/env bash
# $1: a string in the form of key=value
function dothis() {
for _env in $( ls /proc/*/environ )
do
if [ -r $_env ]
then
if ( grep "$1" $_env >/dev/null )
then
echo $_env | awk 'BEGIN {FS = "/"} {print $3}'
fi
fi
... | true |
ea2cdcbb5e46077e6b0f3c38c55569234020eca7 | Shell | ghoso/linux-intro-sample | /sh/file_test.sh | UTF-8 | 186 | 3.09375 | 3 | [] | no_license | #!/bin/sh
if [ -f ./sed_text.txt ]
then
echo "sed_text.txt found!"
fi
if [ -x ./sed_text.txt ]
then
echo "sed_text.txt is executable!"
else
echo "sed_text.txt is not executable!"
fi
| true |
c759ff03667da063382f5f2e9ad244a7a6fda9b8 | Shell | towardsautonomy/install_instructions | /setup_ceres_solver.bash | UTF-8 | 1,244 | 3.203125 | 3 | [] | no_license | #!/bin/bash
# Install all the dependencies
# CMake
sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev
# BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# SuiteSparse and CXSparse (optional)
# - If you want to build Ceres as a *stat... | true |
0c6eec810ed9ae02cd3ac9218547537a8e0352cd | Shell | erkl-old/env | /arch/setup.sh | UTF-8 | 2,106 | 3.375 | 3 | [] | no_license | #!/usr/bin/env sh
set -ex
# Upgrade existing packages, then make sure we have everything we need.
sudo pacman -Syu
sudo pacman -S --needed --noconfirm \
libva \
libva-intel-driver \
mesa-libgl \
xf86-video-intel \
... | true |
37145688d35d05b586599bdf560946eaf3db3ece | Shell | ilventu/aur-mirror | /bombono-dvd-git/PKGBUILD | UTF-8 | 754 | 2.984375 | 3 | [] | no_license | # Maintainer: archtux <antonio.arias99999@gmail.com>
pkgname=bombono-dvd-git
pkgver=20110226
pkgrel=1
pkgdesc="DVD authoring program with a nice and clean GUI."
url="http://www.bombono.org"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('boost' 'dvd+rw-tools' 'dvdauthor' 'gtk2' 'gtkmm' 'graphicsmagick' 'libdvdread' ... | true |
edb71ea5302513409b3953003bb2f2e6df5c512d | Shell | yevheniiii/front-end-training | /js_edu/how_to_use_git/.bash_profile | UTF-8 | 851 | 2.71875 | 3 | [] | no_license | # Enable tab completion
source ~/git-completion.bash
# colors!
green="\[\033[0;32m\]"
blue="\[\033[0;34m\]"
purple="\[\033[0;35m\]"
reset="\[\033[0m\]"
# Change command prompt
source ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# '\u' adds the name of the current user to the prompt
# '\$(__git_ps1)' adds git-relat... | true |
bdd0f566b1acd7c083fbfbfec71ea647ee76e1f7 | Shell | 6Nokturnal6/novathesis | /Scripts/update-to-overleaf.sh | UTF-8 | 16,158 | 4.15625 | 4 | [
"LPPL-1.3c"
] | permissive | #!/bin/bash
####################################################################
# UPDATE NOVATHESIS IN GIT REPOSITORY
####################################################################
#===================================================================
# CHECK FOR NECESSARY COMMANDS
#=============================... | true |
b7cefe72f65a9a12707fda7703bb497d13591fb1 | Shell | HuijingHei/jenkinsHenryWang | /ProvisionVM/build.sh | UTF-8 | 2,399 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function GetInfo()
{
local ci=$1
local taskUrl=$2
local brewAPI=$3
# get package name
_PKG_NAME=$(echo ${ci} | jq -r '.info.request[0]')
PKG_NAME=$(basename $_PKG_NAME | awk -F'#' '{print $1}')
# get task id
TASK_ID=$(echo ${ci} | jq -r '.info.id')
[ "x$TASK_ID" == "x" ... | true |
61ef8345e4be89e3ff036b54078f16b51c2410f5 | Shell | Mondobot/Post_office | /testgen/test.sh | UTF-8 | 337 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# Se ruleza asa:
# sh test.sh <nume_executabil> <nr_de_teste>
# numele executabilului (main / tema1 / a.out etc.)
EXEC=$1
# numarul de teste
N_TESTS=$2
# Se ruleaza executabilul si se genereaza fisierele de output
# test1.out, test2.out etc.
for i in $(seq 1 $N_TESTS)
do
./$EXEC "test"$i".in" > "test... | true |
ae011f483038cb681d8932ae9ec8de66acff84bb | Shell | jiro4989/dotfiles | /bin/mp42gif | UTF-8 | 865 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -eu
type ffmpeg > /dev/null 2>&1
ret=$?
if [ $ret -ne 0 ]; then
cat << EOS >&2
Need ffmpeg command in PATH
How to install on Ubuntu.
$ sudo apt install -y ffmpeg
EOS
exit 1
fi
usage() {
cat << EOS
a
EOS
}
input_file=$1
out_file="$(dirname "$input_file")/$(basename "$input_file" .mp4).gif... | true |
c5fe605300a02ba7083005e945898aa13b49a4f0 | Shell | grycap/HPCmeetsDocker | /mcc-setup/removenode.d/01slurm | UTF-8 | 279 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
CONTAINERNAME="$1"
IPADDR="$2"
shift
shift
while [ $# -gt 0 ]; do
NODENAME="$1"
shift
scontrol update NodeName=$NODENAME state=down reason="powered off by HPCmeetsDocker"
if (($?==0)); then
exit 0
fi
done
exit 1 | true |
77c45ddeef3de4572cfe1b1561c5c71ce5d6b7f2 | Shell | ThomasKeralla/Algorithms | /runsort/solution/RunSortTester.sh | UTF-8 | 409 | 3.671875 | 4 | [] | no_license | #!/bin/bash
set -e
filename=RunSort
if [[ $filename.java -ot $filename.class ]];
then echo -e "Already compiled $filename ...";
else
echo -e "Compiling $filename: ..."
javac $filename.java
fi
testFiles="tiny.txt tibny2.txt words3.txt"
for inputFile in $testFiles; do
echo -e "\nExecuting: java $filename < $inp... | true |
208eaba8868405332478d917ef73194071e57839 | Shell | weidagang/tips | /tips.sh | UTF-8 | 741 | 4.25 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
PROG_DIR=$(dirname $0)
PROG_NAME=$(basename $0)
function usage {
echo "Usage: $PROG_NAME [category...] <name>"
echo "Example:"
echo " 1) $PROG_NAME cal"
echo " 2) $PROG_NAME git checkout"
exit 1;
}
function no_tips {
echo "No tips found for \"$@\""
exit 2
}
# ... | true |
f4133a6e7925b3a8be5d93e84dab29bac38aa05a | Shell | Niil78/CajaDeMarrones | /Paquetes BlackArch/cewl/PKGBUILD | UTF-8 | 1,239 | 2.6875 | 3 | [] | no_license | # This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=cewl
pkgver=61.4bec19b
pkgrel=1
groups=('blackarch' 'blackarch-automation' 'blackarch-cracker')
pkgdesc='A custom word list generator'
arch=('any')
url="http://www.digininja.org/projects/cewl.php"
license=... | true |
3929efa122818d2e10dac2121df76b0905e86f0e | Shell | 0x238e/SysY-2020-Compiler-For-Rpi4 | /test/c-testsuite.sh | UTF-8 | 142 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -d "c-testsuite" ]; then
echo "c-testsuite exists"
else
git clone https://github.com/c-testsuite/c-testsuite.git
fi
| true |
dcb7e202a79a5ea1b2149ecdb46948a42a72eb8e | Shell | Rahlir/dotfiles | /bash/.bashrc | UTF-8 | 2,535 | 3.75 | 4 | [] | no_license | # BASHRC
#
# Basic bashrc with slightly modified prompt, XDG Base Dir
# setup, sane history setup, colors, and few extra options
#
# by Tadeas Uhlir <tadeas.uhlir@gmail.com>
############################################################
### Basic Checks ###
#######################... | true |
cb93af56e8f77dbf974f23932fadf434fe2cb4d7 | Shell | TrellixVulnTeam/proto-quic_1V94 | /depot_tools/git-bash | UTF-8 | 516 | 2.875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This apparently useless file enables windows users to get access to
# depot_tools' built-in bash.exe. When git executes this file... | true |
8573a24b3d932cc2c374472c5b7ccce7ebb886f6 | Shell | roflcopter4/PersonalDotFiles | /Scripts/misc/make.sh | UTF-8 | 206 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
_numMakeProcesses=$(($(nproc --all)+1))
#_numMakeProcesses=$(nproc --all)
if [ "$#" -gt 0 ]; then
/usr/bin/make -j "$_numMakeProcesses" "$@"
else
/usr/bin/make -j "$_numMakeProcesses"
fi
| true |
8ccd8be9933b01fad1d3f863e90db7cec48e4ee3 | Shell | jffpviana/aggression_RRBS | /scripts/preprocessing/CTT/HPT/1.0.combine_sequencing_runs_CTT_HPT_BEAR.sh | UTF-8 | 1,773 | 3.28125 | 3 | [] | no_license | module load slurm-interactive #load module
fisbatch_screen --ntasks 1 --time 12:0:0
#These samples were sequenced twice. After inspecting the raw reads of both runs separately (FACTQC) and check their quality I decided to combine both for further analysis
cd /rds/projects/v/vianaj-genomics-brain-development/MATRICS... | true |
1cf43542d3a773a457d1890177eebe3dfdb8ed1e | Shell | weijl6819/httpolice | /tools/vnu.sh | UTF-8 | 741 | 3.8125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
# Download and run a local copy of the `Nu Html Checker`__.
# We do this (rather than simply upload to the online public instance)
# in order to pin down the version of the checker
# and thus ensure reproducibility.
#
# __ https://validator.github.io/validator/
set -e
RELEASES=https://github.com/validator/... | true |
3de47c992b028354843806e7d763af1ac0e9e1c9 | Shell | hlkiltas/examples | /multiregion/scripts/jmx_metrics.sh | UTF-8 | 1,453 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
for metric in ReplicasCount InSyncReplicasCount CaughtUpReplicasCount
do
echo -e "\n\n==> Monitor $metric \n"
for topic in single-region multi-region-sync multi-region-async multi-region-default
do
BW1=$(docker-compose exec broker-west-1 kafka-run-class kafka.tools.JmxTool --jmx-url service:jmx... | true |
aa54bcc74816da014c731496458e7f417019f15d | Shell | BerkeleyLab/Bedrock | /badger/tests/teststand_ac701.sh | UTF-8 | 462 | 2.546875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | #!/bin/sh
#
# Loads a bitfile onto an AC701 and runs a basic check that it "works".
# Tested useful for the CI test stand (mohs) at LBNL.
# Can also act as a template for other use cases.
set -e
xc3sprog -c jtaghs1_fast ac701_rgmii_vtest.bit
echo "So far so good"
sleep 8
echo "Hope links are up"
# IP address must match... | true |
f29d7824ae22194f9fe0605873889097fc8a7518 | Shell | SarvagyaVaish/cache-simulator | /Memory Hierarchy Design/two_level_cache/two_level_cachesim_sh_files/simulations_all_11.sh | UTF-8 | 439,847 | 2.640625 | 3 | [] | no_license | TRACES=`ls trace.$1*`
for t in $TRACES; do
echo -n "$t 16 131072 2 128 16384 16 - 1330176 - " > ./results/cachesim_result_27501_$t.txt
./cachesim $t 16 131072 2 128 16384 16 >> ./results/cachesim_result_27501_$t.txt &
echo -n "$t 16 131072 2 256 16384 16 - 1328640 - " > ./results/cachesim_result_27502_$t.txt
./cach... | true |
523e3002e5a3daeb655c580d0eeac833a5e2b674 | Shell | opendevstack/ods-core | /create-projects/create-projects.sh | UTF-8 | 5,263 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
# As this script is executed within the context of Jenkins, which has some
# env vars exposed (via the DeploymentConfig, but also from inside the image).
# It might be surprising to have them alter what the script does without seeing
# them passed/set in the Jenkinsfile_createBuildBot. That'... | true |
0465f2fc470657cd9c45d7950d0e95b7d2b4b117 | Shell | Santana90/SHELL | /ejercicio11.sh | UTF-8 | 227 | 3.28125 | 3 | [] | no_license | #!/bin/bash
if [ $# -eq 0 ]
then
echo "Forma de uso: $0 <fichero o ficheros, de los que quiera saber el numero de lineas que contengasn la al menos 4 veces> "
exit 1
fi
for i in $*
do
grep '\(.* la .*\)\{4\}' $i
done
| true |
7cf4c9d371e3dfc067aedd2b1d5c1b0f0ee4b08c | Shell | derekdon/angular.js | /scripts/jenkins/master.sh | UTF-8 | 292 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e # fail if any command fails
cd `dirname $0`/../..
# Build
./jenkins_build.sh
# Update code.angularjs.org
VERSION=`cat build/version.txt`
curl -G --data-urlencode 'ver=$VERSION' http://code.angularjs.org/fetchLatestSnapshot.php
# Push to bower
./scripts/bower/publish.sh | true |
25ab7f3a92c01f8cb4c9f228734f3bad4fbd4e62 | Shell | pazjacket/sue445-_-sebastian-badge | /script/notify_to_slack.sh | UTF-8 | 216 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
NAME=$1
MESSAGE=$2
if [ -n "${SLACK_TOKEN}" ]; then
curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#sebastian' -d "text=${MESSAGE}" -d "username=${NAME}" -d "token=${SLACK_TOKEN}"
fi
| true |
1cd6380d7328bd47a683e03628291fda7fbb550e | Shell | schnurps/scripps_college_scripts | /edu.ohio.scripps.mdia.unity_permissions_fix/unity_permissions_fix.sh | UTF-8 | 796 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# Copy AngryBots project to $HOME/Documents/Unity/AngryBots
# if it doesn't already exist
# This fixes a problem where Unity will ask for an admin
# to "Set Permissions" for each standard user
if [ ! -d "$HOME/Documents/Unity/AngryBots" ]; then
#Make directory and then unzip AngryBots into the users Docu... | true |
27094eedf82ce7c2e6c4dc80d7060ce862ad3852 | Shell | wilhuff/git-scripts | /bin/git-current-branch | UTF-8 | 276 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Output the current branch on stdout
# The output of git branch should look like:
# feature1
# * feature2
# master
#
# Indicating that of the three available branches, feature2 is current.
git branch --no-color 2> /dev/null \
| sed '/^[^*]/d; s/^\* //'
| true |
9a2c37167ec77a0d5ee920618fd5c14d64e58615 | Shell | mkotsur/restito | /script/javadoc.sh | UTF-8 | 1,014 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
PAGES_BRANCH="gh-pages"
PAGES_JAVADOC_PATH="javadoc/current"
BUILD_JAVADOC_PATH="build/docs/javadoc"
gradle javadoc
if [[ ! -d "${BUILD_JAVADOC_PATH}" ]]; then echo "Could not find generated javadoc."; exit 30; fi
if [[ ! -d "./src" ]]; then echo "Should be started from the project root."; exit 10; fi
i... | true |
1fd32b51d97766489aea4d730873b8522ad90837 | Shell | fidian/bin | /telnets | UTF-8 | 108 | 2.59375 | 3 | [] | no_license | #!/bin/bash
if [ ! -z "$2" ]; then
openssl s_client -host $1 -port $2
else
openssl s_client -host $1
fi
| true |
529c5641c79aafb3d2c6f430bf6daf0bf70e2321 | Shell | AloveIs/AccentComparison | /statistics.sh | UTF-8 | 664 | 3.421875 | 3 | [] | no_license | #!/bin/bash
echo "# Data Statistics"
echo "## Total Statistics"
echo "Number of recordings $(ls -w1 ./*/*.wav | wc -l)"
echo "Total duration of data $(soxi -Td ./*/*.wav)"
echo "Size of data (numpy files only) $(du -hc ./*/*.npy | tail -1| head -c4)"
echo "Size of recordings $(du -hc ./*/*.wav|tail -1| head -c4)"
fo... | true |
0887ae45a72b40885b020ead2a9ff7fa53b9619b | Shell | chrisslupi/xf | /installation/icons-surfn-v3.sh | UTF-8 | 814 | 2.9375 | 3 | [] | no_license | #!/bin/bash
#
##################################################################################################################
##################################################################################################################
# cleaning tmp
[ -d /tmp/Surfn ] && rm -rf /tmp/Surfn
# if there is no hi... | true |
e8a71b1f3c6f8e14100f7362becf047db546182c | Shell | udoyen/askubuntu | /color.sh~ | UTF-8 | 360 | 2.6875 | 3 | [] | no_license | #!/bin/bash
red="\033[31m"
green="\033[32m"
yellow="\033[33m"
blue="\033[34m"
pink="\033[35m"
cyan="\033[36m"
white="\033[37m"
echo ""
echo -e "${green} _ __ ___ ___ "
echo -e "${green} | '_ \/ __/ __|"
echo -e "${green} | | | \__ \__ \\"
echo -e "${green} |_| |_|___/___/"
echo -e "${blue} ... | true |
16df27ca59d4622fa5ec44cb941b578a9476439e | Shell | miminashi/cloud-startupscripts | /publicscript/larabel/larabel.sh | UTF-8 | 2,760 | 3.515625 | 4 | [] | no_license | #!/bin/bash
#
# @sacloud-once
# @sacloud-name Laravel
# @sacloud-desc PHP5.6 Apache MariaDB Composer Laravel をインストールします。
# @sacloud-desc プロジェクトは"/var/www/html/"配下に作成され、
# @sacloud-desc スタートアップスクリプト終了後、ブラウザから80番でアクセス可能です。
# @sacloud-desc MariaDBのパスワードは自動生成され、"/root/.my.cnf"で確認可能です。
#
# @sacloud-require-archive distro-ce... | true |
0af2b5fcebe7b64ea3b7486fbdf5039fce08472e | Shell | ygt-luca/dotfiles | /scripts/check_ssh_auth | UTF-8 | 720 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash
REMOTE_USER=$1
if [[ -z "${REMOTE_USER}" ]]; then
echo "Usage: $0 <your-remote-user-name>"
exit
fi
# Example:
declare -a servers=(
"someuser@example.com"
"${REMOTE_USER}@spin-staging.yourgolftravel.com"
)
for server in ${servers[@]}; do
# More info about this solution:
# - http://sta... | true |
86b17bb6c0ecd2e976c1ecf485894f8aaf24184f | Shell | mdanilchenko/test-automation-pack | /TA/run-behat | UTF-8 | 433 | 2.6875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e # Fail on errors
# Run behat commands in a running behat container
docker exec $(docker-compose ps -q behat) behat --colors --format=pretty --out=std --format=html --out=html_report --format=junit --out=html_report/junit "$@"
echo "To view HTML report visit: http://<your-docker-host-ip>:8... | true |
067e07579e399a13416be54a5c3d97bf332ea82f | Shell | amateurhuman/dotfiles | /ruby/setup.sh | UTF-8 | 384 | 3.5 | 4 | [
"MIT"
] | permissive | RUBY_VERSIONS=( "2.6.5" )
if rbenv -v &>/dev/null; then
log "-- Using $(rbenv -v)"
eval "$(rbenv init -)"
for version in "${RUBY_VERSIONS[@]}"; do
if rbenv prefix $version &>/dev/null; then
logn "-- Ruby $version already installed"
else
rbenv install $version
fi
done
# gem install ... | true |
f6f4f2bb2305fe0c9337f74621b3ff9d34f90fc4 | Shell | wsu-fnal-ci-analysis/zprime-histograms | /submit_ZprimeMuMuAnalysis_BARI.sh | UTF-8 | 1,111 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p /lustre/cms/store/user/defilip/ZprimeAnalysis/80X/jobdir
mkdir -p /lustre/cms/store/user/defilip/ZprimeAnalysis/80X/histodir
echo "Running ZprimeMuMu Analysis with executables RunZprimeMuMuAnalysis"
source /cvmfs/cms.cern.ch/cmsset_default.sh
export LD_LIBRARY_PATH=lib:$LD_LIBRARY_PATH
export P... | true |
670850ed8d61cd98b9b75f373fa57224f67319b2 | Shell | yuanying/k8s-env | /tools/node-down.sh | UTF-8 | 316 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
export LC_ALL=C
NODE_ENV=${1:-""}
script_dir=$(dirname "${BASH_SOURCE}")
if [[ ${NODE_ENV} != '' ]]; then
source ${NODE_ENV}
fi
NODE_ROOT=${NODE_ROOT:-'/var/vms'}
sudo virsh destroy ${NODE_HOSTNAME}
sudo virsh undefine ${NODE_HOSTNAME}
sudo sh -c "rm -rf ${NODE_ROOT}/${NODE_HOSTNAME}*"
| true |
72eb8e363a7b62493cd64e72d65ca4bc2163751b | Shell | gordonmurray/learn_sysops | /chapter_8/packer/files/prometheus.sh | UTF-8 | 1,229 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
set -xe
sudo su -
export RELEASE="2.2.1"
wget https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz
tar xvf prometheus-${RELEASE}.linux-amd64.tar.gz
cd prometheus-${RELEASE}.linux-amd64/
# Create Prometheus system group
groupadd --syst... | true |
45bc1dfacecea49a58e16fa80479c4005c37887e | Shell | bargassa/Stop4Body | /Macros/Step4_ApplyMVA.sh | UTF-8 | 318 | 2.921875 | 3 | [] | no_license | #!/bin/bash
. setupJSONs.sh
. setupPaths.sh
#INPUT=${NTUPLE_DIR}
#INPUT=${TRAIN_DIR}
INPUT=${TEST_DIR}
OUTPUT=${INPUT}_bdt
if [[ -d ${INPUT} ]] ; then
if [[ ! -d ${OUTPUT} ]] ; then
mkdir -p ${OUTPUT}
fi
applyMVA --json ${JSON_PATH}/allSamples.json --method BDT --inDir ${INPUT}/ --outDir ${OUTPUT}/
fi
| true |
0d5bff4d338ab3c76c427356663a93d9971393ad | Shell | grtlinux/TAIN_IB2 | /TAIN_IB2/ib2/shl/log_dec.sh | UHC | 194 | 2.53125 | 3 | [] | no_license | Str1=${1}
Str2=${Str1%.enc}
# ȣ
echo "[41m < ȣ : [${Str1}] >[0m\n"
log_sec DEC ${Str1}
#
echo "[41m < : [${Str1}] >[0m\n"
gzip -d ${Str2} | true |
a17bae4cb180105ce1979aab85f50021b4cafa36 | Shell | OHDSI/Vocab-download | /public_html/include/s3upload.sh | UTF-8 | 1,012 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
##########################################################################
# upload the zip file to the OHDSI cloud inbound vocab data feed s3 bucket
##########################################################################
source "${BASH_SOURCE%/*}/app-config.sh"
PATH=/usr/local/sbin:/usr/local/bin:/sbin:... | true |
037c9c5e1070a0d9341ac7abe07cffa47bf2d5d5 | Shell | TRANS-Develop/TRANS | /trans/shell/Optimus.sh | UTF-8 | 897 | 3.3125 | 3 | [] | no_license | #/bin/bash
OPTIMUS_HOME=${OPTIMUS_HOME}
OPTIMUS_CONF=${OPTIMUS_CONF}
JAVA_CMD=java
CMD=$1
shift
args=$@
#find class path
for f in $OPTIMUS_HOME/*.jar; do
CLASSPATH=${CLASSPATH}:$f;
done
for f in $OPTIMUS_HOME/lib/*jar; do
CLASSPATH=${CLASSPATH}:$f;
done
if [ "$CMD" = "datanode" ];then
CLASS='TRANS.OptimusNode'... | true |
4c741947cd3df344c91a8f22d207998e94e9b6d5 | Shell | nomalab/libmxf | /test/test_primer.test | UTF-8 | 192 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
temp=/tmp/libmxf_test_$$.mxf
./test_primer $temp && \
./file_md5 < $temp > $temp.md5 && \
diff $temp.md5 ${srcdir}/test_primer.md5
res=$?
rm -f $temp $temp.md5
exit $res
| true |
9d0b343296e6bf909061b4e93ef9e78dcb3d395e | Shell | fangfeixiang/fang | /lnmp.sh | UTF-8 | 1,336 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#本脚本用于一键安装lnmp并启动服务,后续补充优化
#1.安装nginx
yum -y install wget
[ ! -d /root/data ] && mkdir /root/data
cd data
wget ftp://192.168.4.254/soft/lnmp_soft.tar.gz
tar -xf lnmp_soft.tar.gz
cd lnmp_soft && tar -xf nginx-1.12.2.tar.gz && cd nginx-1.12.2
yum -y install gcc pcre pcre-devel openssl openssl-devel make
user... | true |
a6e4380bea9ff37d10962f3dc18e3c41baf17dd2 | Shell | piratelinux/piratepack | /remove_piratepack.sh | UTF-8 | 672 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -e
basedir="$1"
if [[ "$basedir" == "" ]]
then
basedir="/opt/piratepack"
fi
if [[ "$basedir" != "/" ]]
then
set +e
rm -r "$basedir"
set -e
fi
rm -f /usr/bin/piratepack
rm -f /usr/bin/piratepack-refresh
grep -v "$basedir" /etc/profile > /etc/profile_tmp
mv -f /etc/profile_tmp /etc/p... | true |
ae22f627ffdafedc14ca2d5943ee0a632c19441a | Shell | martell/ellcc | /bin-extra/ecc-getsubarch | UTF-8 | 248 | 3.421875 | 3 | [
"MIT"
] | permissive | #! /bin/sh
# This script returns the arch for a tuple.
#
case "$1" in
arm*v6*) ARCH=armv6 ;;
arm64*) ARCH=arm64 ;;
arm*sf) ARCH=armsf ;;
arm*) ARCH=armhf ;;
mips*sf) ARCH=mipssf ;;
mips*) ARCH=mipshf ;;
*) echo unknown && exit 1 ;;
esac
echo $ARCH
| true |
f01415c64da37f03d76ddab4edfb0ecd9fe80c13 | Shell | liqsword/2016-Oct-L2 | /Data/Module2-GainInsights/Setup/initial_setup/cli/setup.sh | UTF-8 | 2,404 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
clear
startTime=$(date)
declare resourceGroupName=""
declare location=""
pathToTemplate="./parameters.json"
pathToParameterFile="./azuredeploy.json"
deploymentName="deploy$resourceGroupName"
while getopts ":g:l:" arg; do
case "${arg}" in
g)
resourceGroupName=${OPTARG}
;;
... | true |
24ece3749feb31fb217ac40a53746fde4651cb1a | Shell | tomichj/bash_dotfiles | /bash/config.bash | UTF-8 | 1,510 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# fix spell... | true |
470c424c3982f3b469193f39dd35e618c562a2dc | Shell | rshwet14/Real-Life-Script | /checkfiles | UTF-8 | 595 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Author: Shwet Raj
# Date: 22/10/20
# Descripton: Script to check given files are available in the system or not
# Modified: 22/10/20
# Sometimes we need to verify that certain files or essential files are availabe on the system or not especially
# if we are working on different system.
# So it's a alw... | true |
c226cf27598d306473a4e40c2b84565a332f5fcc | Shell | ohmyzsh/ohmyzsh | /themes/agnoster.zsh-theme | UTF-8 | 8,374 | 3.40625 | 3 | [
"MIT"
] | permissive | # vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code ... | true |
51b0bc1c207f856dc4562e3e0c1e2c95f61c28e3 | Shell | bertyno/buildpack-sample | /bin/compile | UTF-8 | 1,641 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Running cache test..."
BUILD_DIR=$1
CACHE_DIR=$2
BUILD_PACK_DIR=$(dirname $(dirname $0))
ls $BUILD_DIR
echo "JAVA_HOME " $JAVA_HOME
echo "Version Java "
java -version
if [ ! -d "$BUILD_DIR" ]; then
echo "Build directory [$BUILD_DIR] does not exist, creating"
mkdir -p "$BUILD_DIR"
els... | true |
aa4e6a8e625c40e3c978e4e92d64974c614161ab | Shell | brownman/docker-selenium | /xvfb/bin/wait-xvfb.sh | UTF-8 | 226 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Exit immediately if a command exits with a non-zero status
set -e
echo "Waiting for Xvfb to be ready..."
while ! xdpyinfo -display ${DISPLAY}; do
echo -n ''
sleep 0.1
done
echo "Done wait-xvfb.sh"
| true |
7e88618f92a7b2a9ffd3c05cdf750fc9ef38ad6c | Shell | jitsi/jitsi-meet | /doc/jaas/update-asap-daily.sh | UTF-8 | 520 | 2.515625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | JWT_KID=$(cat /etc/jitsi/token-generator/config | grep SYSTEM_ASAP_BASE_URL_MAPPINGS | cut -d= -f2- | jq -r .[].kid)
JWT_DATE=$(echo -n $JWT_KID | cut -d/ -f2-)
JWT_DATE=${JWT_DATE#jwt-}
KEY_FILE=/etc/jitsi/token-generator/daily-key
echo -n "set \$jaas_asap_key " > ${KEY_FILE}
ASAP_KEY=$(ASAP_SIGNING_KEY_FILE=/etc/jit... | true |
4c04c90d214cac3c56bde5226e6c6c4b3df5615a | Shell | rushton/dot-files | /.bash_aliases | UTF-8 | 5,689 | 3.640625 | 4 | [] | no_license | #Make some possibly destructive commands more interactive.
alias rm='rm -rf'
alias mv='mv -f'
alias cp='cp -rf'
alias la='ls -la -h'
# Most computers have a reasonable amount of RAM, this will make
# sort rely less on caching results to disk and use memory instead.
alias sort='sort --buffer-size=1024M'
# git alias
a... | true |
d3d09ca92f2d18eb5ba6d7aded476c4748db5bd0 | Shell | tumd/dotfiles | /.zsh/rc/dynenv.zsh | UTF-8 | 1,011 | 3.765625 | 4 | [] | no_license | # Function to automatically update your environment in all open shells based on
# the content of the file the symlink ~/.dynenv is pointing at.
function -update-dynamic-environment-preexec() {
builtin emulate -L zsh -o no_aliases -o no_unset -o err_return -o pipe_fail -o extended_glob
local _envlink=${ZDOTDIR:-$H... | true |
c8d5a37e1b6844b7ccbb0d2ff93041ba7708a743 | Shell | rajashree/Catalog | /Dell_Mercurial/mv_dell_acs/chef/cookbooks/content-server/files/default/chef-deploy.sh | UTF-8 | 391 | 2.953125 | 3 | [] | no_license | #!/bin/bash
echo "Executing deploy.sh"
sh /etc/marketvine/deploy.sh
if [ $? -ne 0 ]
then
echo "Rolling back"
/etc/marketvine/rollback.sh
if [ $? -ne 0 ] ; then
echo "Rollback failed"
#echo 'Two errors'
#Two errors. Deploy failed and rollback failed
exit 2
else
echo "Rollback successful"
#echo 'One err... | true |
f397cb0a0692e0068c69ae53434c5f60d1a149c4 | Shell | snizovtsev/compdb | /contrib/zsh/check-all-helps | UTF-8 | 642 | 3.75 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -o errexit
cd $(dirname "${BASH_SOURCE[0]}")
compdb --help > all-helps.txt.new
compdb help | grep "^ [a-z]" | while read command descr; do
echo
echo
echo "# $command"
echo
compdb $command --help
done >> all-helps.txt.new
if ! diff -u all-helps.txt{,.new}; then
cat <<EOF
------------... | true |
7cef4e103580e6d10f6ff37845bc6bd03967207d | Shell | totherme/tiny-bash-calc | /integration/test.bash | UTF-8 | 1,426 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
[[ -z "${DEBUG:-""}" ]] || set -x
T_calc_evaluates_an_expression() {
local expr="8 + 3\nq" result i=0
for line in $(echo -e "$expr" | ./calc) ; do
result[i]="$line"
i=$(( i + 1 ))
done
if [[ ! "${result[1]}" == "11" ]] ; then
# shellcheck disable=SC2154
$T_... | true |
71a017739d3d27f4b0c0d3a57a5eaaa4b58bbeeb | Shell | nipan09/sturdy-telegram | /bash.sh | UTF-8 | 493 | 3.703125 | 4 | [] | no_license | #!/bin/bash
echo Welcome to arithmetic
read -p "username: "
read -sp "password: " pass
echo
if [ $pass == "abcd" ] #space bw brackets and text
then
echo You are signed in.
for value in {1..3} #two dots
do
echo Input your number
read -p "a: " a #space betwee... | true |
6c623c239142249da2310c84656e319318beb65e | Shell | simonsan/dinero-rs | /scripts/publish_tag.sh | UTF-8 | 1,296 | 3.78125 | 4 | [] | no_license | set -e
function bump_version() {
local RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)'
major=`echo $1 | sed -e "s#$RE#\1#"`
minor=`echo $1 | sed -e "s#$RE#\2#"`
release=`echo $1 | sed -e "s#$RE#\3#"`
# patch=`echo $1 | sed -e "s#$RE#\4#"`
release=0
minor=$((minor+1))... | true |
b37fcbdb4aa159c8e3643b044abdfc76021f76ea | Shell | Plankton86/Kernel_Builder | /kernelbuild.sh | UTF-8 | 4,605 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Copyright (C) 2021 a xyzprjkt property
#
# Needed Secret Variable
# KERNEL_NAME | Your kernel name
# KERNEL_SOURCE | Your kernel link source
# KERNEL_BRANCH | Your needed kernel branch if needed with -b. eg -b eleven_eas
# DEVICE_CODENAME | Your device codename
# DEVICE_DEFCONFIG | Your device... | true |
9375d4acdbb508577e2683136ab6f7a85c8f80c0 | Shell | WISEPLAT/binance-bot | /scripts/setup.sh | UTF-8 | 258 | 2.59375 | 3 | [] | no_license | #!/bin/sh
echo "Welcome to binance bot manager!"
echo "First, copy settings_tpl.py to settings.py..."
cp settings_tpl.py settings.py
echo "Second, edit settings.py to tuning parameters..."
echo "./start.sh to bootstrap the bot service..."
echo "Done!"
| true |
3e1b6aa26d4947926aaf1ee4d94b725e61282269 | Shell | cloudcontrollers/bootstrap.cloudcontrollers.com | /alfresco/alfresco/alfresco_public_bootstrap_dev.sh | UTF-8 | 2,545 | 3.453125 | 3 | [] | no_license | #!/bin/bash
exec > >(tee -a /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
echo "$(date) downloading the current versions of our Downloading bootstrap scripts"
perl -MIO::Socket::INET -e '
until(new IO::Socket::INET("169.254.169.254:80")){print"Waiting for network...\n";sleep 1}
' | logger -t ec2... | true |
9e954caad1d1dfd62ec6b3512319fa9c2506fada | Shell | sachingaikwad123/tmux-powerline | /segments/date_full.sh | UTF-8 | 91 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env sh
# Print the current date in '1 Jan 2012' format
date +"%d %b %Y"
exit 0
| true |
f970ae0565d61fdc8b284d9ab797c42638649e5c | Shell | bertvv/scripts | /src/cd2img.sh | UTF-8 | 731 | 3.875 | 4 | [] | no_license | #! /usr/bin/env bash
#
# Author: Bert Van Vreckem <bert.vanvreckem@gmail.com>
#
# Read an Audio CD and create an image using cdrdao
# {{{Preamble
set -e # abort on nonzero exitstatus
set -u # abort on unbound variable
# {{{ Functions
usage() {
cat << _EOF_
Usage: ${0} TITLE
Reads an audio cd in disc-at-once mode... | true |
4ebb32a3d27fe7f994c79d352016a1b798fc117e | Shell | 7Ji/auto-whu-standard | /auto-whu.sh | UTF-8 | 5,275 | 3.890625 | 4 | [] | no_license | #!/bin/bash
# Online check
check_online() {
ping -w1 -W1 -c 1 baidu.com 1>/dev/null 2>&1
[[ $? = 0 ]] && echo "Network is already up" && return 0
return 1
}
# Check online and immediately exit if is running by systemd
check_online && [[ $? = 0 ]] && [[ ! -z "$INVOCATION_ID" ]] && exit
echo "Warning: runnin... | true |
762bb8fae5c1c8c192f047b054ff30a3b9c2e103 | Shell | EricZBL/ClusterBuildScripts | /local/install/kafka_local.sh | UTF-8 | 6,628 | 3.640625 | 4 | [] | no_license | #!/bin/bash
################################################################################
## Copyright: HZGOSUN Tech. Co, BigData
## Filename: kafka_local.sh
## Description: kafka 安装
## Version: 2.4
## Author: yinhang
## Created: 2018-07-28
##########################################################... | true |
c70abcc7e3392a5e59c1527f944ac7339b69c765 | Shell | gjvanoldenborgh/climexp_data | /KNMIData/update_hourly.sh | UTF-8 | 2,329 | 3.390625 | 3 | [] | no_license | #!/bin/bash
method=old
if [ $method = 'old' ]; then
# from the source code of http://projects.knmi.nl/klimatologie/uurgegevens/selectie.cgi
base=http://projects.knmi.nl/klimatologie/uurgegevens
yrnow=`date +%Y`
if [ -s yr_hourly.txt ]; then
yr=`cat yr_hourly.txt`
else
yr=$yrnow
... | true |
9df73ed7250f7ede5dee9037e6ff36fc54c65b06 | Shell | ChenBaiYii/ShellExample | /for/test4.sh | UTF-8 | 140 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# using a variable to hold the list
list='a b c d e'
list=$list" f"
for i in $list
do
echo "have you ever visted $i"
done
| true |
e37e1a936aaa502e200018f5dd08dc4bec94d16f | Shell | trgibbons/bsrTools | /test/cegma/consolidate_test_blastp_files.sh | UTF-8 | 4,717 | 3.453125 | 3 | [] | no_license | #!/bin/bash
inDir=~/Dropbox/github/bsrTools/test/cegma/by_org/blastp
outDir=~/Dropbox/github/bsrTools/test/cegma
e=5
consolidate() {
orgs=("${@}")
outFile=${outDir}/$(printf "%s" "${orgs[@]}")_1e-${e}.blastp
> $outFile
for org1 in ${orgs[@]}
do
for org2 in ${orgs[@]}
do
cat ${inDir}/${org1}-v-... | true |
dcedbf2c826239b7651634775ce7a6f8cad06d61 | Shell | manandoshi/HPSC | /hw2/mpi/conv.sh | UTF-8 | 304 | 2.65625 | 3 | [] | no_license | mpicc -o main main.c -lm
rm conv.csv
touch conv.csv
for i in {1..30}
do
mpirun -np 4 main 'T' $(( 12 * $i * $i)) >> conv.csv
done
for i in {1..30}
do
counter=1
while [ $counter -le 50 ]
do
mpirun -np 4 main 'M' $(( 12 * $i * $i)) >> conv.csv
((counter++))
done
done
| true |
81cf1663f776586fa9d38365474ddc501b5abcb7 | Shell | ema/dotfiles | /bin/openstack-createimg | UTF-8 | 1,316 | 3.421875 | 3 | [] | no_license | #!/bin/sh
sudo bash
DEBIAN_MIRROR='http://192.168.122.1:3142/debian/'
# Choose your image OS
OS=wheezy
KERNEL=linux-image-3.2.0-4-amd64
# Create a (sparse) 8 gig image
dd if=/dev/null bs=1M seek=8192 of=disk.raw
#Create partitions
parted -s disk.raw mklabel msdos
parted -s disk.raw mkpart primary 0% 100%
parted -s... | true |
b43ea1e9cf9208ca9f5b2f17afaedf799e079c26 | Shell | 5GenCrypto/circ-obfuscation | /scripts/prg-info.sh | UTF-8 | 1,856 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
fname=${1:-kappas.csv}
source "$(dirname "$0")/utils.sh"
count=0
curname=
curmode=
getname () {
if [[ $1 =~ linear ]]; then
echo "linear"
elif [[ $1 =~ xor-and ]]; then
echo "xor-and"
elif [[ $1 =~ xor-maj ]]; then
echo "xor-maj"
fi
}
printline () ... | true |
20f9b2ebfae49774be29df98e8955bf6a6848738 | Shell | nnkogift/dhis2-tools-ng | /setup/parse_config.sh | UTF-8 | 1,174 | 3.515625 | 4 | [] | no_license | # Parse the contents of containers.json into bash variables
CONFIG=$(cat configs/containers.json)
# Abort script on errors
#set -o errexit
# test for a valid json config
TESTCONFIG=$(echo $CONFIG |jq .) || { echo "Invalid containers.json"; exit 1; }
FQDN=$(echo $CONFIG | jq -r .fqdn)
EMAIL=$(echo $CONFIG | jq -r .ema... | true |
6717759fb79102f70b58d0380095f4405385499e | Shell | Sunitha-Gouda/hello-world | /Functions/Employeewage.sh | UTF-8 | 741 | 3.359375 | 3 | [] | no_license | #!/bin/bash -x
numOfWrkDays=20
empRatePerHours=20
isPartTimeEmp=1
isFullTimeEmp=2
randomCheck=$((RANDOM%3))
maxHrsinMonth=20
totalWrkDays=0
totalEmpHrs=0
function getWorkHrs() {
local $randomCheck=$1
case $randomCheck in
$isFullTimeEmp)
empHrs=8 ;;
$isPartTimeEmp)
... | true |
ac31fcc15069eddac3f7129161711340a604508d | Shell | satanasov/phpbbgallery | /travis/run-slow-tests.sh | UTF-8 | 527 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#
# Collapsible Categories extension for the phpBB Forum Software package.
#
# @copyright (c) 2015 phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
set -e
set -x
DB=$1
TRAVIS_PHP_VERSION=$2
EXTNAME=$3
SLOW=$4
if [ "$TRAVIS_PHP_VERSION" == "7.1" ] && [ "$DB... | true |
90da02c2e3f7bddf1ecf2b413e64b0e07b98bfdd | Shell | oWretch/RandomScripts | /Synology/LetsEncrypt.sh | UTF-8 | 2,058 | 3.09375 | 3 | [] | no_license | # Generate Lets Encrypt wildcard certificate.
# Based on https://github.com/acmesh-official/acme.sh/wiki/Synology-NAS-Guide
# Run under sudo su -
# Install acme.sh
cd ~
wget https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
tar xvf master.tar.gz
cd acme.sh-master/
./acme.sh --install --nocron --home /u... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.