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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a2a81e9cb8b1e2546e67eb7495a5c00954dd6b70 | Shell | ku-nlp/TSUBAKI | /scripts/merge-index4ntcir.sh | EUC-JP | 1,805 | 3.34375 | 3 | [] | no_license | #!/bin/sh
# 1老ȤΥǥåǡ100ñ̤˥ޡ륹ץ
# ʲͤѹ뤳
# workspace=/data2/skeiji/ntcir3/mg_syn_anchor_idx_080704
workspace=/data/local/skeiji/ntcir3/bin_idx/081109
scriptdir=$HOME/cvs/SearchEngine/scripts
N=25
id=$1
div=$2
flist=$3
dirid=$id$div
mkdir -p $workspace 2> /dev/null
cd $workspace
mkdir $dirid 2> /dev/null
cd $dirid
min=... | true |
695f56b0595469293567e1f5eb8aca73bb8d9365 | Shell | netbrain/dotfiles | /old.dockerexe/.gimp | UTF-8 | 355 | 2.828125 | 3 | [] | no_license | #!/bin/bash
export $(eval echo -e $(cat $HOME/.config/user-dirs.dirs | grep -v "#" | xargs))
if ! docker inspect gimp >& /dev/null ; then
docker run -d \
-v /etc/localtime:/etc/localtime:ro \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=unix$DISPLAY \
-v $XDG_PICTURES_DIR:/root/Pictures \
--name gimp \
jess/g... | true |
ec9b8badbb1f8e9b57be1ad53bbb0acf3d0b14ba | Shell | Offirmo/web-tech-experiments | /nodejs/xp_simpli_v2_001/pocs/bash/func_exposer.bash | UTF-8 | 369 | 3.375 | 3 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | #! /bin/bash
SIMPLI_module_provider_usage()
{
echo "Provider badly called !" 1>&2
}
func_exposer()
{
echo "Hello from func_exposer !"
while [[ $# > 0 ]]; do
case "$1" in
*) # Unknown option
echo "Unknown option : '$1' !" 1>&2
SIMPLI_module_provider_usage
return 1
;;
esac
shift || (SIMPLI_modu... | true |
a05585dc1270095ec482658f149e915ccb5ded69 | Shell | Desenvolvimento-DGI/Scripts | /envisat/estatisticas/l0_disponiveis_por_ano.sh | UTF-8 | 993 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# Parametro referente ao ano
PARANO="${1}"
TEXTOPARANO=${PARANO}
ARQUIVOSAIDA="${2}"
TAMANHOANO="${#PARANO}"
if [ ${TAMANHOANO} -ne 4 ]
then
# Ano nao informado ou incorreto
PARANO='*'
TEXTOPARANO='Todos os anos'
fi
DIRATUAL="`pwd`"
AREASCRIPTS="/home/cdsr/estatisticas/"
# Nome deste programa... | true |
d882ecb73ab7ff79c477c97bee24e6833ba80418 | Shell | coconut2015/cookjson | /tests/validate.sh | UTF-8 | 823 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
if [ $# -ne 1 ]; then
cat <<EOF
Usage:
$0 [file]
EOF
exit 0
fi
FILE=$1
# test 1
echo "-- Json output --"
../bin/convertjson -f ${FILE} -t test1.json
cat test1.json
echo
# test 2
echo "-- Pretty Json output --"
../bin/convertjson -f ${FILE} -t test2.json -p
cat test2.json
echo
# test 3
echo ... | true |
2737df87df56729c35468cbca24dbd77de57bead | Shell | Elive/elive-tools | /usr/bin/buscar | UTF-8 | 191 | 2.953125 | 3 | [] | no_license | #!/bin/bash
main(){
# pre {{{
local filename
# }}}
filename="$1"
shift
find . -iname '*'$filename'*' "$@"
}
#
# MAIN
#
main "$@"
# vim: set foldmethod=marker :
| true |
657ac3ee792ee61422d2fd6ef53e83a60ee9c36b | Shell | AtomGraph/ontop-docker | /entrypoint.sh | UTF-8 | 3,094 | 3.28125 | 3 | [] | no_license | #!/bin/sh
set -e
if [ -z "$ONTOP_JDBC_NAME" ] ; then
echo '$ONTOP_JDBC_NAME not set'
exit 1
fi
if [ -z "$ONTOP_JDBC_URL" ] ; then
echo '$ONTOP_JDBC_URL not set'
exit 1
fi
if [ -z "$ONTOP_JDBC_USER" ] ; then
echo '$ONTOP_JDBC_USER not set'
exit 1
fi
if [ -z "$ONTOP_JDBC_PASSWORD" ] ; then
... | true |
3a807e2b9a7523be93f52cc59e2ce3528ab2e0ad | Shell | RobertsLab/sams-notebook | /sbatch_scripts/20210226_pgen_methylation-machinery_BLAST-extractions.sh | UTF-8 | 6,018 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
## Job Name
#SBATCH --job-name=20210226_pgen_methylation-machinery_BLAST-extractions
## Allocation Definition
#SBATCH --account=srlab
#SBATCH --partition=srlab
## Resources
## Nodes
#SBATCH --nodes=1
## Walltime (days-hours:minutes:seconds format)
#SBATCH --time=10-00:00:00
## Memory per node
#SBATCH --mem=... | true |
b001d68ed3ee44862657625bf62e6ff91aa5b232 | Shell | dotBunny/JARVIS | /scripts/build-jarvis-helper.sh | UTF-8 | 317 | 2.59375 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "$0")"
clear
# Go back a folder
cd ..
rm -rf ./bin/helper
mkdir ./bin/helper
# Make For macOS
mkdir -p temp/macOS
cp -rf ../../macos/JARVISHelper.app temp/macOS
go build -o temp/macOS/JARVISHelper.app/Contents/MacOS/jarvisHelper ./src
cp -r temp/macOS/JARVISHelper.app ./bin
rm -rf temp/ | true |
f339cd9c1b05144e43bf34308190bab3f969a4bd | Shell | omailson/dotfiles | /etc/home/init.sh | UTF-8 | 931 | 3.984375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# Initialize those configuration files
# Example: ./init.sh gitconfig
# Will create a symlink to this 'gitconfig' at ~/.gitconfig
DESTINATION_PATH=$HOME
configure() {
# Check if a files, directory, link, etc already exists
if [ -e "$DESTINATION_PATH/$2" ]
then
echo "Cannot write to $DESTINATION_PATH... | true |
19a226db78f96e1576059bdfe88ec4fcfe2da0a8 | Shell | Constructor-io/constructorio-client-javascript | /scripts/verify-node-version.sh | UTF-8 | 271 | 3 | 3 | [
"MIT"
] | permissive | version=$(node -pe process.release.lts)
activeLTSCodename="Hydrogen"
if [ $version != $activeLTSCodename ]
then
echo "Node version is not active LTS - please install active LTS version (\"$activeLTSCodename\") before versioning this library"
exit 1
else
exit 0
fi
| true |
b79bfeb66b0476fbee57d28554a7b4494e923380 | Shell | kasilakshmankarthi/KBench | /hackbench/run_hackbench_full.sh | UTF-8 | 590 | 3 | 3 | [] | no_license | #!/bin/bash
echo "========================"
echo "Running Hackbench"
ulimit -n 65536
echo "set socket affinity firstly!"
echo "running process mode"
rm -rf log.hackbench*
for i in $(seq 4 4 64); do echo "running process $i"; ./hackbench $i process 50000 >>log.hackbench.process; done
echo "running thread mode"
for ... | true |
fa847bb79874ae9572cb9a7a5024004d8a856124 | Shell | isabella232/mdbci | /package/ruby.appimage/docker_build.sh | UTF-8 | 1,388 | 4.3125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# This script performs the creation of the AppImage inside the Docker.
# It creates the Docker build image if neccesary, then it runs the build and cleans up the created container.
# You must provide the name of the application you are building and it's version
set -xe
if [ "$#" -ne 2 ]; then
cat <<EOF... | true |
72c502201c5f840db90bd731a87a58f649f14cce | Shell | kigster/bashmatic | /test/shasum_test.bats | UTF-8 | 1,676 | 3.203125 | 3 | [
"MIT",
"DOC"
] | permissive | #!/usr/bin/env bats
#
load test_helper
source lib/bashmatic.sh
source lib/shasum.sh
source lib/array.sh
source lib/output.sh
fixtures checksum
set -e
@test "shasum.sha-only()" {
set -e
local sha1="$(shasum.sha-only test/fixtures/checksums/comedy_errors_1.adoc)"
local sha2="$(shasum.sha-only test/fixtures/chec... | true |
19e7fa6b2ba4e7d701fc8ac1892288e0001568e4 | Shell | EmmyMiao87/incubator-doris | /extension/spark-doris-connector/build.sh | UTF-8 | 1,671 | 3.21875 | 3 | [
"Apache-2.0",
"PSF-2.0",
"bzip2-1.0.6",
"BSD-3-Clause",
"Zlib",
"dtoa",
"MIT",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain"
] | permissive | #!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Lice... | true |
708f3e1be84cf631d7424c412a01284731bb4057 | Shell | jtbonhomme/dotfiles | /git-files-log.sh | UTF-8 | 231 | 3.59375 | 4 | [] | no_license | #!/bin/bash
function output_help {
echo "usage: git-files-log <sha1>"
}
sha1=$1
if [[ $sha1 ]]; then
git log --name-only --pretty=oneline --full-index $sha1..HEAD | grep -vE '^[0-9a-f]{40} ' | sort | uniq
else
output_help
fi
| true |
b5decb46ca2f3f9a9168b99184d9866d0898f9e6 | Shell | coreos/fedora-coreos-config | /tests/kola/networking/ifname-karg/data/ifname-karg-lib.sh | UTF-8 | 1,158 | 3.796875 | 4 | [
"MIT"
] | permissive | # This is a library created for our ifname-karg tests
# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"
# check IP for given NIC name
check_ip() {
# User provides the NIC name.
local nic_name=$1
# The expected IP is the first one in the range given out by QEMU
# user mode networking: https:/... | true |
2ee3a864ac9421333af925795de093502efbfc6a | Shell | billyprice1old/hecpanel | /app/Console/cake | UTF-8 | 817 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
################################################################################
# Canonicalize by following every symlink of the given name recursively
cano... | true |
b81a3d0cac882d47b048f397b3b45b82fcd5bf9e | Shell | timplab/fragillis | /atacAlign.sh | UTF-8 | 867 | 3.234375 | 3 | [] | no_license | #!/bin/bash
rawdir=/atium/Data/NGS/Aligned/170423_atacseq_JA/raw_data_renamed
outdir=/atium/Data/NGS/Aligned/170423_atacseq_JA/aligned_220
for samp in "24hrbft2" "24hrblank" "48hrbft2" "48hrblank" "time0"
do
echo $samp
read1=${rawdir}/${samp}_220_read1.fastq.gz
read2=${rawdir}/${samp}_220_read2.fastq.g... | true |
6abc1921940ea73c823f78d3ce530a16d0419249 | Shell | STAMP-project/dspot-experiments | /src/main/bash/septembre-2018/find_candidates.sh | UTF-8 | 497 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
project=${1}
owner=${2}
goal=${3}
mkdir -p september-2018/result/${project}/
log=september-2018/result/${project}/test_selection.log
echo ${log}
cmd="java -cp target/experiments-0.1-SNAPSHOT-jar-with-dependencies.jar icst.experiments.commits.ProjectJSONBuilder --path-to-repository september-2018/... | true |
2aa47428131d82b4647e796a7f50136823f68bd5 | Shell | rubixlinux/rubixlinux | /a/etc/PKGBUILD | UTF-8 | 2,068 | 2.53125 | 3 | [] | no_license | # Maintainer: Joshua Rubin <joshua@rubixlinux.org>
pkgname=etc
pkgver=1.0
pkgrel=21
pkgdesc="etc (system configuration files) System configuration files. The /etc directory is traditionally the location where configuration files are found."
url="http://www.rubixlinux.org"
source=($pkgname.tar.gz)
md5sums=('26a5d86c13... | true |
43a2139dc14545efd4fd781decf86cf1aa2d7691 | Shell | VeeraAnudeep/trinity | /extra/build_x264.sh | UTF-8 | 590 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
set -e
set -x
ARCHS_32="armeabi armeabi-v7a x86"
ARCHS_64="armeabi armeabi-v7a arm64-v8a x86 x86-64"
case "$1" in
"")
echo "$1"
sh ./build_x264_platform.sh armeabi-v7a
;;
armeabi|armeabi-v7a|arm64-v8a|x86|x86-64)
echo "platform = $1"
sh ./build_x264_platform.sh $1
;;
all... | true |
a969f78b0daaa8da77ffd56974035cae5dd34be3 | Shell | dmwm/PHEDEX | /Utilities/wrapper_rfcp | UTF-8 | 1,238 | 4.09375 | 4 | [] | no_license | #!/bin/bash
catscript="$1"; shift;
cat="$1"; shift;
src=$1
dest=$2
echo "$catscript"
echo "$cat"
#get direct (no protocol)
directory=`$catscript -catalogue $cat -pfn $dest | sed 's/^\(.*\)\/.*$/\1/'`
#check if directory exists
rfstat $directory
create_dir=${?}
if [ "$create_dir" -eq "1" ]
then
echo "Directory $d... | true |
88edcf77721abd5dd5f621df78ba2f619d7b2022 | Shell | Otus-DevOps-2020-02/gvashchenkolineate_microservices | /gitlab-ci/docker-machine/provision.sh | UTF-8 | 607 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -ex
DOCKER_MACHINE_NAME=gitlab-ci
# Install Docker-Compose
docker-machine ssh $DOCKER_MACHINE_NAME "sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
docker-machine ssh $DOCKER_MACHINE_NAME "sudo add-apt-repository \"deb https://download.docker.com/linux/ubuntu $(lsb_r... | true |
80be2cb4bf5e2a37280e3c52da03c0548f919082 | Shell | ISI-apex/sd-flex-char-scripts | /apps/hpgmg-fv-omp.sh | UTF-8 | 223 | 2.640625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
export APP_NAME="hpgmg-fv-omp"
export APP_CMD=(hpgmg-fv 7 8)
function app_pre() {
export OMP_NUM_THREADS=$1
[ -z "$OMP_PROC_BIND" ] && export OMP_PROC_BIND=TRUE || true
}
function app_post() {
:
}
| true |
cd6c8b233b870eddcc2fcc8d7579f652afcb2aac | Shell | shvherck/CAED | /0_reorient_brainextr.sh | UTF-8 | 1,464 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# Specify 'dirb' as the path under which folder the folder ds000109_R2.0.2 that contains the data is located.
dirb=/Volumes/DRIVE-N-GO/dataCAED
cd $dirb
# Re-orienting + brain extraction
# Brain extraction was checked manually for each subject
for x in $(ls ds000109_R2.0.2/sub-[0-4][0-9]/func/sub-[0-4]... | true |
481f7d692e5e1d034917c3dad1cf78c9232e83da | Shell | macneko-ayu/Hakumai | /script/disable_sparkle.sh | UTF-8 | 612 | 3.125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# we need to disable sparkle for test at travis-ci.
# if not, test app will stuck with message like below:
# "Insecure update error! For security reasons, you need to sign your updates
# with a DSA key. See Sparkle's documentation for more information."
set -x
set -e
base_dir="$(cd $(dirname $0);... | true |
7519f10d28482c04f8b54aefbcaa1cd401f8eb82 | Shell | patrickwoolf/archcrafti3dotfiles | /.config/openbox/styles/Spark.sh | UTF-8 | 8,391 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
## Dirs #############################################
polybar_path="$HOME/.config/polybar"
rofi_path="$HOME/.config/rofi"
termite_path="$HOME/.config/termite"
geany_path="$HOME/.config/geany"
openbox_path="$HOME/.config/openbox"
dunst_path="$HOME/.config/dunst"
# wallpaper ------------------------... | true |
d712c6c2262c5ceac34bde4157407f829b1b16a8 | Shell | Xeuhua/usb-live-linux | /tools/fsfw-uni-stick_system-config.sh | UTF-8 | 1,327 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#
# Skript erstellt gerdg-dd@gmx.de 2017-09-13
#
# passende System config aktivieren -
FSFW_UNI_STICK_CONFIG_DEFAULT="FSFW-Uni-Stick_KDE_jessie_amd64"
FSFW_UNI_STICK_CONFIG=$1
echo "config_links.sh FSFW-Uni-Stick config: ${FSFW_UNI_STICK_CONFIG} "
# link nach config/auto/config erstelen
rm ./auto/con... | true |
b39258a967ebfbc9a040939d256044515ab59fd6 | Shell | kn52/Shell_Script | /conditional/twoDiceSum.sh | UTF-8 | 148 | 3.03125 | 3 | [] | no_license | #!/bin/bash -x
#Taking two dice output
num1=$((RANDOM%6+1))
num2=$((RANDOM%6+1))
#Displaying sum
echo "Sum of two dice output: $(($num1+$num2))"
| true |
273b70a20b005ce6a1241166d0c3b5ee8ff6a79b | Shell | synth3sis/i2checks | /plugins/check_mdadm | UTF-8 | 935 | 3.421875 | 3 | [] | no_license | #!/bin/bash
mdadm='/proc/mdstat'
raid_devices=$(grep ^md -c $mdadm) # Quantità array raid
raid_status=$(grep "\[.*_.*\]" $mdadm -c) # Quantità array non efficienti
raid_recover=$(grep recovery $mdadm | awk '{print $4}') # In caso di recovery mode, salva la percentuale
raid_resy... | true |
fb0a695f1dbeb973e08716b30c2af635d5a9d9f7 | Shell | NathanielRose/fabrikate-kafka-sample | /test/externaltest.sh | UTF-8 | 3,042 | 3.84375 | 4 | [
"MIT"
] | permissive | #! /usr/bin/env bash
YELLOW='\033[1;33m'
RED='\033[1;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
# TODO: Pass by argument
# Get Broker LoadBalancer Address
BROKER_LB_IP=`kubectl get svc -n kafka kcluster-kafka-external-bootstrap --output jsonpath='{.status.loadBalancer.ingress[0].ip}'`
echo $BROKER_LB_IP
BROKER_... | true |
578c9bd04620c4041abe96beb2e958a5ff1b6d22 | Shell | JoseKilo/Stouts.wsgi | /templates/init-uwsgi.j2 | UTF-8 | 2,041 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# This file was generated by Ansible for {{ ansible_fqdn }}
# Do NOT modify this file by hand!
# uwsgi - Startup script for uwsgi
#
# chkconfig: - 85 15
# processname: uwsgi
# config: /etc/sysconfig/$prog
# config: /usr/local/uwsgi/conf/$prog.ini
# pidfile: /var/run/uwsgi/$prog.pid
# description: uWSGI is a... | true |
0538445845b439edb259ef997a17cb4323602f0a | Shell | jmscott/setspace | /schema/pdfbox/merge-extract_pages_utf8 | UTF-8 | 3,436 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#
# Synopsis:
# Extract all pages from pdf and merge into tables extract_page_utf8.
# Usage:
# merge-extract_pages_utf8 <pdf blob> english
# Exit Status
# 0 pages merged ok
# 1 pdf blob not found
# 2 program invocation or setup error
# 3 unexpected blobio error
# 4 java ExtractPagesUTF8.class failed
# 5 ... | true |
1a4833af35f87bce4042520d473654d11098e9e6 | Shell | mhorne/dotfiles | /bash/.bashrc | UTF-8 | 1,327 | 3.171875 | 3 | [] | no_license | #
# ~/.bashrc - Configuration file for bash
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
# History settings
HISTSIZE=1000
HISTFILESIZE=1000
HISTCONTROL=ignoreboth
shopt -s histappend
# Environment variables
export GPG_TTY=$(tty)
export PAGER=less
export MANPAGER... | true |
cd750c1a7824fd681cefad3e2e17132b0e19862d | Shell | yiransheng/jsonpp5 | /tests/cmp_json.sh | UTF-8 | 120 | 2.671875 | 3 | [] | no_license | #!/bin/bash
FILE=$1
echo -n "$FILE passed: "
jq --argfile a $FILE --argfile b "$FILE.formatted" -n '$a == $b' || false
| true |
010ea73d0560938cda3fa6b51b56c60f4750cbe3 | Shell | juandavidgc/rancher-forwarder | /scripts/build | UTF-8 | 374 | 3 | 3 | [] | no_license | #!/bin/bash
set -e
cd $(dirname $0)/..
PACKAGE=./gopath/src/$(<.package)
if [ -L "${PACKAGE}" ]; then
rm ${PACKAGE}
fi
if [ ! -e "${PACKAGE}" ]; then
mkdir -p $(dirname ${PACKAGE})
ln -s $(pwd) ${PACKAGE}
fi
export GOPATH="$(pwd)/Godeps/_workspace:$(pwd)/gopath"
mkdir -p bin
echo Building Reverse Proxy... | true |
2fb3eb9eac62469b474ab4ff570adba1f720acd2 | Shell | Akshithaaashi/Shell-Programming | /for-loop/primeNum1.sh | UTF-8 | 304 | 3.59375 | 4 | [] | no_license | #!/bin/bash
echo "Enter a num"
read num
result=1
for (( counter=2; counter<$num; counter++ ))
do
if [ $(($num%$counter)) -eq 0 ]
then
result=$(($result+1))
fi
done
if [ $result -eq 1 ]
then
echo "given number is a prime"
else
echo "given number is not a prime number"
fi
| true |
56da0b3eab4d388b0c410e2d1d2cf1d62fad478e | Shell | Zimbra/zm-pkg-tool | /e2e-tests/rel873.sh | UTF-8 | 2,633 | 2.796875 | 3 | [] | no_license | #!/bin/bash
set -e
deploy()
{
rm -rf build
PKG_SVC_VER="8.7.3"; PKG_SVC_REV="1";
PKG_ABC_BIN_VER="1.0.0+1493740105"; PKG_ABC_BIN_REV="1";
PKG_ABC_LIB_VER="1.0.0+1493740110"; PKG_ABC_LIB_REV="1";
PKG_CMN_LIB_VER="1.0.0+1493740108"; PKG_CMN_LIB_REV="1";
SVC_DEP=()
SVC_DEP+=( "--pkg-depends=zmb1-a... | true |
d3134b5f9dbe58e84c4ebc38ede3ceb7c58df3fd | Shell | KolonIoT/Pelion | /mbed-cloud-client/update-client-hub/modules/pal-linux/scripts/openwrt/arm_update_kernel.sh | UTF-8 | 2,504 | 3.515625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/sh
# ----------------------------------------------------------------------------
# Copyright 2016-2017 ARM Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#
# 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 o... | true |
d8dfe173ec86ce400f931ac844c3ee550c04a1a1 | Shell | jwilk/elvoke | /t/consistent-version.t | UTF-8 | 766 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Copyright © 2019 Jakub Wilk <jwilk@jwilk.net>
# SPDX-License-Identifier: MIT
set -e -u
echo 1..2
base="${0%/*}/.."
target="${ELVOKE_TEST_TARGET:-"$base/elvoke"}"
echo "# test target = $target"
cli_full_version=$("$target" --version)
read -r _ cli_version <<EOF
$cli_full_version
EOF
echo "# CLI version = $... | true |
c12cd84389a814977a84df08713992daf655a8a2 | Shell | demisto/content | /Tests/scripts/validate.sh | UTF-8 | 1,114 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -ex
echo "CI_COMMIT_BRANCH: $CI_COMMIT_BRANCH CI: $CI DEMISTO_README_VALIDATION: $DEMISTO_README_VALIDATION"
if [[ $CI_COMMIT_BRANCH = master ]] || [[ -n "${NIGHTLY}" ]] || [[ -n "${BUCKET_UPLOAD}" ]] || [[ -n "${DEMISTO_SDK_NIGHTLY}" ]]; then
if [[ -n "${PACKS_TO_UPLOAD}" ]]; then
... | true |
643b929d2518381bc87630684f7e262364b9d3a0 | Shell | troylee/kaldi | /egs/rm/s2/run.sh | UTF-8 | 7,873 | 3.015625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
# call the next line with the directory where the RM data is
# (the argument below is just an example). This should contain
# subdirectories named as follows:
# rm1_audio1 rm1_audio2 rm2_audio
local/rm_data_prep.sh /mnt/matylda2/data/RM || exit 1;
# local/rm_data_prep.sh /export/corpora5/LDC/LDC93S3A... | true |
18f5d21fa37245b158a198da021c2bec40085468 | Shell | curquiza/init_session | /start_init.sh | UTF-8 | 4,070 | 3.765625 | 4 | [] | no_license | #!/bin/bash
GREEN='\033[0;32m'
DEF='\033[0;0m'
CONFIG_DIR='config_files'
ALIAS_FILE=$CONFIG_DIR/aliases.txt
ENV_VAR_FILE=$CONFIG_DIR/env_var.txt
TRACE_FILE=trace.txt
NVIM_CONFIG_PATH=$HOME/.config/nvim
FISH_CONFIG=$HOME/.config/fish/config.fish
NEOVIM_CONFIG=$NVIM_CONFIG_PATH/init.vim
GIT_CONFIG=$HOME/.gitconfig
... | true |
c8df99df9dd0199d826735fc9c37509b22047514 | Shell | stsquad/dotfiles | /dotconfig/setup.sh | UTF-8 | 965 | 4.375 | 4 | [] | no_license | #!/bin/bash
#
# Alex's dotconfig setup script
#
# This symlinks all subdirectories into the ${HOME}/.config setup
#
ORIG_PATH=`pwd`
CONFIG_DIR=$HOME/.config
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd -P`
popd > /dev/null
function link_subdotdir
{
orig_dir=$1
dot_dir=$2
# If the dotfile is already lin... | true |
4703d19cb3df955bf2ca3d9f1dcbfab70c32a5cc | Shell | gokdayi/frameplayerjs | /serve.sh | UTF-8 | 182 | 2.953125 | 3 | [] | no_license | # Start server here
port=$1
if [ $# -ne 1 ]
then
port=3000
fi
if [ $(uname -s) == "Darwin" ]
then
open=open
else
open=start
fi
node init.js && $open http://localhost:$port/ | true |
79488c16e47d20422d57dcd5e5ae4e719465e89b | Shell | eric-pine/mkto_shell | /functions.sh | UTF-8 | 1,209 | 3.78125 | 4 | [] | no_license | execution_info () {
echo -e "\n\ncommand: $0 \n"
echo -e "arguments: $@ \n\n"
}
when_debug () {
if [ ${MARKETODEBUG} ] ; then
$1
fi
}
no_args_display () {
if [ $1 -eq 0 ]
then
echo -e "\n\nUsage: "${correctusage}"\n"
exit 1
fi
}
check_response () {
if [ $# -eq 0 ]
then
if [ $(cat "${MARKETOUPDA... | true |
d4f69d2aff16772cfe25781d167bc8a17461143a | Shell | prestocore/browser | /modules/scope/utils/update-homes.sh | UTF-8 | 337 | 2.65625 | 3 | [] | no_license | #!/bin/bash
#
# Update homes with new files from this 'scope' tree
# Go to modules/scope directory
cd `dirname $0`/..
ssh homes rm -f public_html/modules/scope/documentation/*
scp documentation/*.html \
documentation/*.txt \
homes:public_html/modules/scope/documentation/
scp dist/*/*.jar homes:public_html/mod... | true |
01a07b87018691db123ab82f9acac6e3f9ad804b | Shell | davidmfoley/estk | /bin/dev-setup | UTF-8 | 368 | 3.375 | 3 | [] | no_license | #! /bin/bash
DIR=$( cd "$( dirname "$0" )" && pwd )
DB_URL=${1:-$DATABASE_URL_TEST}
DB=`echo "$DB_URL" | sed 's/^.*\///'`
HOST=`echo "$DB_URL" | sed 's/\/[^\/]*$//' | sed 's/^.*\/\///'`
echo "dropping $DB"
dropdb -h $HOST $DB
set -e
echo "recreating $DB"
createdb -h $HOST $DB
psql $DB_URL -c 'drop schema public ca... | true |
db2c4ade4b397884a3d0be41cb952946091b0880 | Shell | guardian/university-guide-2016 | /data/regions.sh | UTF-8 | 615 | 3.640625 | 4 | [] | no_license | #!/bin/bash
tmp=$(mktemp)
# Get european region names
cat institutionDetails.json | jq -r '.[] | .postcode' | tr -d ' ' |
sed 's#^#http://mapit.mysociety.org/postcode/#' |
wget -i - -w1 -O - | sed 's#}{#}\n{#' |
jq '.areas | to_entries[] | select(.value.type == "EUR") | .value.name' > $tmp
# Join with in... | true |
d025a1af52e840ddecfc9ff8ec94d0fd237b0dae | Shell | 16thdoc/sift-bootstrap | /bootstrap.sh | UTF-8 | 671 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Welcome to SIFT!"
echo ""
echo "Deprecation Notice: This script is no longer supported."
echo ""
echo "If you would like to install SIFT on Ubuntu 14.04 using this legacy script, please use the following url:"
echo ""
echo " https://raw.githubusercontent.com/sans-dfir/sift-bootstrap/legacy/bootstra... | true |
7ea3099a33626ba057395f1a7aff866e4576df52 | Shell | BoriszhangSec/borisops | /Scripts&xml/Zabbix_bin/monitor_agentd.sh | UTF-8 | 1,307 | 3.96875 | 4 | [] | no_license | #!/bin/bash
set -o nounset
set +x
###################################################
# Monitoring ZABBIX running status on client side #
###################################################
# Configuration
ERR_NOT_INSTALLED="1"
ERR_ALREADY_RUNNING="2"
INIT_PATH="/etc/init.d"
ZBX_INIT_FILE="$INIT_PATH/zabbix_agentd_ct... | true |
4dfffa83db66b904ae449e96ddb7e9f43bf3aa5c | Shell | yoshuawuyts/dotfiles | /polybar/tmux.sh | UTF-8 | 589 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
clr_white='%{F#2d2d2d}'
clr_black='%{F#d3c0c8}'
clr_bg_white='%{B#2d2d2d}'
clr_bg_black='%{B#d3c0c8}'
tmux ls > /dev/null 2>&1
if [ $? -eq 0 ]; then
session_name="$(tmux display-message -p '#S')"
windows="$(tmux list-windows -F '#{window_index}')"
window_number="$(tmux display-message -p '#I')"
pri... | true |
aaebaafb00c1f14bd76b58c8d61001fab16c87b6 | Shell | MichalEgier/motion-simulation | /motion_simulation/MotionSimulation.sh | UTF-8 | 1,473 | 2.84375 | 3 | [] | no_license | #!/bin/bash
echo "Info: note that passing too big too small values of force/velocity"
echo "may result in weird animation at the end"
echo
echo "You should put values between 100 and 1000 for good animation"
echo
echo "As well note that passing initial position that is not 0"
echo "may result in throwing object out of ... | true |
79bc82dddc6b4504004b9141c0a1c83a16c65ffb | Shell | pattonjp/dotfiles | /aws/awsume.zsh | UTF-8 | 154 | 2.6875 | 3 | [
"MIT"
] | permissive | #AWSume alias to source the AWSume script
alias awsume=". awsume"
fpath=(/usr/local/share/zsh/site-functions $fpath)
aws-env () {
source awsume $1;
}
| true |
cfc04f6dcad9335f0b1b010e78a6609161b31efd | Shell | hayderimran7/dotfiles-3 | /.zsh/alias | UTF-8 | 3,254 | 3.515625 | 4 | [
"Unlicense"
] | permissive | #!/bin/zsh
# This is free and unencumbered software released into the public domain.
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
# In jurisdictions... | true |
90d4c17a6ad69205918a201c4101ae3f3ccfd8b6 | Shell | paulolvsq/2i012 | /Révisions/exam2016/corrections/histogramme.txt | UTF-8 | 427 | 3.28125 | 3 | [] | no_license | #!/bin/bash
if [[ $# -gt 1 ]]; then GRAPHICS="x"; shift; fi
cut -d';' -f4 $1 | { \
declare -A tab
while read salaire; do
d=$(((salaire/5000)*5000))
f=$((d+4999))
t="$d à $f"
tab[$t]=$((${tab[$t]}+1))
done
for t in "${!tab[@]}"; do
echo "$t;${tab[$t]}"
done... | true |
eb8a0ad031b1d02d017c5d010530d0899a07751d | Shell | alex-s-hong/rsa_implementation | /run.sh | UTF-8 | 205 | 2.921875 | 3 | [] | no_license | #! /bin/bash
cnt=1
while (("${cnt}"< 21)); do
python3 main.py > ./outputs/output${cnt}.txt
echo "output${cnt} has been created!"
((cnt="${cnt}"+1 ))
done
echo "finished"
#python main.py > test.txt
| true |
fe394bb9acd27ac86aa3933d1bc7a1440a902e50 | Shell | hpe-storage/common-host-libs | /package_tester.sh | UTF-8 | 903 | 2.953125 | 3 | [
"Apache-2.0",
"BSD-2-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"MPL-1.0",
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# (c) Copyright 2018 Hewlett Packard Enterprise Development LP
# 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 ... | true |
7561f4c68f8f11f0a8f2fe1694d23dd770c7d25e | Shell | alari453/booking-application | /clientserver.sh | UTF-8 | 434 | 2.515625 | 3 | [] | no_license | apt-get update
apt-get install -y apache2 php libapache2-mod-php php-mysql
# Change VM's clientserver's configuration to use shared folder.
cp /vagrant/bookings-client.conf /etc/apache2/sites-available/
# activate website configuration ...
a2ensite bookings-client
# ... and disable the default website provided wi... | true |
07e3f4dcf4811516ec97eaed8016511f7c7a57a1 | Shell | rbonardi-github/shell-scripts-it | /argumentos.sh | UTF-8 | 259 | 3.25 | 3 | [] | no_license | #!/bin/bash
echo "El nombre del script es $0"
echo "Argumento 1 es $1"
echo "Argumento 2 es $2"
echo "Cantidad de Argumentos $#"
echo "Argumentos pasados $*"
echo "El PID es $$"
if [ $1 == mostrar ]
then
echo $2
else
echo FUERA
exit 1
fi
exit 0 | true |
01fe8640518fc26585ec1b6ae972df48651b7651 | Shell | pereland/bash-labs | /L1a/1.sh | UTF-8 | 594 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# Включить (на время сеанса Вашей работы в системе)
# заданные директории в список директорий, где оболочка
# ищет исполнимые файлы. Параметры: имена директорий,
# число их заранее не известно. Указание: обратить
# внимание на способ выполнения скрипта.
#Запуск: source ./1.sh /var/www/
concat=""
for arg ... | true |
587a532e88650445cfc39557f806855b05551a45 | Shell | lawnjunk/dot | /os/osx/bin/vd | UTF-8 | 198 | 2.859375 | 3 | [] | no_license | #!/bin/bash
export VOL=`osascript -e "output volume of (get volume settings)"`
export VOL=`expr $VOL - 10`
[ $VOL -lt 0 ] && VOL=0
osascript -e "set volume output volume $VOL"
echo "volume: $VOL"
| true |
4db66a1c0b157b897964c66ff2e4b7f852f39091 | Shell | barrkel/barrkel | /base/posix/bin/mv-dup | UTF-8 | 810 | 4.125 | 4 | [] | no_license | #!/bin/bash
. _barrkel_utils
function usage
{
echo "usage: $(basename $0) <files...> <target>"
echo "Moves files into target directory, renaming by appending a number to avoid conflicts."
exit 1
}
test -e "$1" || usage
declare -a files
array_add files "$@"
last_index=$((${#files[@]} - 1))
target="${fi... | true |
91432721ae2c435fc2e46a677d75125be673e689 | Shell | phoronix-test-suite/test-profiles | /pts/primesieve-1.3.1/install.sh | UTF-8 | 326 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
version=5.4.2
gunzip -f primesieve-$version.tar.gz
tar xvf primesieve-$version.tar
cd primesieve-$version
./configure
make -j $NUM_CPU_JOBS
echo $? > ~/install-exit-status
cd ..
echo "#!/bin/sh
primesieve-$version/./primesieve \$@ > \$LOG_FILE 2>&1
echo \$? > ~/test-exit-status" > primesieve
chmod +x prime... | true |
31278902f537b883c4954744041ed5c9bd4a569b | Shell | paradislover/zigbeegw-luci | /init.d/zigbeegw.init | UTF-8 | 561 | 3.375 | 3 | [] | no_license | #!/bin/sh /etc/rc.common
START=70
STOP=70
APP='zigbeegw'
start() {
config_load "$APP"
local enabled device path
config_get enabled config enabled
config_get device config device
config_get path config path
[ "$enabled" = '0' ] && {
stop
r... | true |
5aa8f0fb4eaebb02947cdb70150523283dac5306 | Shell | MRCIEU/godmc_phase1_analysis | /02.extract_counts/scripts/splitcohortintoprobefiles.sh | UTF-8 | 3,598 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#PBS -N split
#PBS -o /panfs/panasas01/shared-godmc/job_report_2017/split-o
#PBS -e /panfs/panasas01/shared-godmc/job_report_2017/split-e
#PBS -l walltime=12:00:00
#PBS -t 1-23
# PBS -t 21
#PBS -l nodes=1:ppn=8
#PBS -S /bin/bash
set -e
if [ -n "${1}" ]; then
echo "${1}"
PBS_ARRAYID=${1}
fi
echo "Runn... | true |
4f4185042455c7de12bfe8089a04c842d1589e77 | Shell | domo141/ioiomxtx | /tst/test-strace-wrapper.sh | UTF-8 | 776 | 3.515625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# -*- mode: shell-script; sh-basic-offset: 8; tab-width: 8 -*-
# $ test-strace-wrapper.sh $
# copy this to ~/.local/share/mxtx/ to a name of a program you
# want to strace (before that rename the prg w/ -st suffix).
# the ':::' as first argument (look code below) does that, too...
# add options at will
set... | true |
7b42e247545aa6d82d614dfcc2d61f39432a067c | Shell | alces-software/nagios-base | /nagios-plugins/check_license-consumption | UTF-8 | 530 | 3.171875 | 3 | [] | no_license | #!/bin/bash
/opt/nagios/nagios-plugins/check_fileage.py -f /opt/site/license-monitor/abaqus-licenses.rc -w 30 -c 60 > /dev/null 2>&1
abaqusrc=$?
/opt/nagios/nagios-plugins/check_fileage.py -f /opt/site/license-monitor/ansa-licenses.rc -w 30 -c 60 > /dev/null 2>&1
ansarc=$?
if [ ${abaqusrc} -ne 0 ] || [ ${ansarc} -ne... | true |
1ded0716fdf06e2ef3fa76bf52a28e776d523b95 | Shell | saintcrossbow/USB-Swiss-Armory-Knife | /Scripts and Configurations/usr/local/bin/payld-crack | UTF-8 | 970 | 2.984375 | 3 | [] | no_license | #!/bin/bash
#Copyright(C) 2018 saintcrossbow@gmail.com
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#This program is d... | true |
fc3ffe025cb2256b7224b31cd6f6d89c4bd824c4 | Shell | lionelvillard/openwhisk-oauth | /web/common/deploy.sh | UTF-8 | 1,609 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
OS_HOME=${OS_HOME-~/git/whisk/openwhisk-objectstore}
CONTAINER=public
OS_AUTH=${OS_AUTH-`${OS_HOME}/util/getAuthToken.sh`}
if [ "$2" == "--deploy-only" ]; then
DEPLOY_ONLY=1
fi
if [ -z "$DEPLOY_ONLY" ]; then
(>&2 echo "Deploying `basename $1`")
wsk action invoke objectstore/listCon... | true |
17b17c17f488d80a12b3cd13d4e1dd164da3ffa8 | Shell | erm2wi/zoe-docker-images | /swarm_pull.sh | UTF-8 | 581 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
IMAGE_VER=`git branch | grep \* | awk '{ print $2 }'`
REGISTRY=192.168.45.252:5000
IMAGES="zoerepo/spark-master \
zoerepo/spark-worker \
zoerepo/spark-submit \
zoerepo/spark-jupyter-notebook \
zoerepo/hadoop-datanode \
zoerepo/hadoop-namenode \
zoerepo/hadoop-hdfs-nfs \
zoerepo/gu... | true |
0278ea64826e3e6ef9aa36249ce5904366d53e5b | Shell | samisalkosuo/fns-demo | /deploy.sh | UTF-8 | 559 | 3.125 | 3 | [] | no_license | #!/bin/bash
set -e
source envvar.sh
echo "Set Cloud Foundry target..."
ibmcloud target --cf
echo "Creating Functions package..."
ibmcloud fn package create ${FUNCTIONS_PKG_NAME}
echo "Creating function..."
ibmcloud fn action create ${FUNCTIONS_ACTION_NAME} demo.js --web true
__function_url=$(ibmcloud fn action ... | true |
506f47ce89e27ff78f9af9d5e047164fde9d3275 | Shell | tarmiste/lfspkg | /archcore/svnsnap/community/ripgrep/trunk/PKGBUILD | UTF-8 | 1,516 | 2.578125 | 3 | [] | no_license | # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Andrew Gallant <jamslam@gmail.com>
pkgname=ripgrep
pkgver=0.7.1
pkgrel=1
pkgdesc="A search tool that combines the usability of ag with the raw speed of grep"
arch=('x86_64')
url="https://github.com/BurntSushi/ripgrep"
license=('MIT' 'UNLICENSE')
depends... | true |
cdd49d1a35af18830eb1a58456b53d51df7f60dd | Shell | Q-Technologies/puppet-utility_scripts | /templates/promote_code/puppet_promote_code.sh.epp | UTF-8 | 3,038 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
################################################################################
#
# Script to automate the promotion of Puppet code from one environment to the
# next.
#
# Author: Matthew Mallard
# Website: www.q-technologies.com.au
# Date: 2nd September 2016
#
#############################################... | true |
5aadc3ab3d2202f2135a38c594cb997d02675e97 | Shell | NarendraRawal/Sqoop-Automation | /shell.sh | UTF-8 | 144 | 2.8125 | 3 | [] | no_license | #!/bin/bash
echo "enter 1 for import"
echo "enter 2 for export"
read narendra
case $narendra in
1) ./import.sh
;;
2) ./export.sh
;;
esac
| true |
fd114a51b9140d311032ca3ca810ad70a56d5c2e | Shell | mminichino/openshift-automation | /mirror-trident.sh | UTF-8 | 683 | 3.625 | 4 | [] | no_license | #!/bin/sh
#
REGISTRY=""
function print_usage () {
echo "$0 -r registry"
exit 1
}
while getopts r: optargs
do
case "${optargs}" in
r) REGISTRY=$OPTARG
;;
\?) print_usage
;;
esac
done
if [ -z "$REGISTRY" ]
then
print_usage
fi
echo "Registry: $REGISTRY"
export LOCA... | true |
58e06c809d12ea9294dfc90f30b6cf71a04b0ada | Shell | vsola/RA3SinglePhoton | /PhotonSusyAnalysis/SelectionAnalyzer/scripts/copyFilesFromDcache.sh | UTF-8 | 3,317 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#dirnameTrees=(SingleElectron/SEleTrigger_2012D_22Jan2013_V04)
#dirnameTrees=(SingleMu/SMuTrigger_2012D_22Jan2013_V04)
#dirnameTrees=(HT/HTTrigger_2012A_22Jan2013_V03)
#dirnameTrees=(JetHT/HTTrigger_2012D_22Jan2013_V03)
#dirnameTrees=(Photon/PhotonTrigger_2012A_22Jan2013_V04)
#dirnameTrees=(SinglePhoton/Ph... | true |
d49ed654e72c59d513e0245424a94bdf841773e7 | Shell | cunguyen-agilityio/oh-my-ops | /plugin/drone/util-api-project.sh | UTF-8 | 3,111 | 3.46875 | 3 | [
"MIT"
] | permissive | function _do_drone_util_get_project() {
local repo=${1?'repo arg required'}
local project_name=${2?'project_name arg required'}
local token=${3:-"${_DO_DRONE_USER_TOKEN}"}
local project_path
project_path=$(_do_string_to_dash "${project_name}")
local url
url=$(_do_drone_util_api_url "$repo") || return 1
... | true |
57bcff6a94841dd55fbb0c5b8454ee5bf5fa3119 | Shell | jeffturcotte/dotfiles | /scripts/upload | UTF-8 | 2,431 | 3.796875 | 4 | [] | no_license | #!/bin/bash
main() {
MODE="RSYNC"
PAUSE=0
while getopts ":srp" OPT; do
case $OPT in
s)
#echo "Forced SFTP mode.";
MODE="SFTP"
;;
r)
#echo "Forced RSYNC mode.";
MODE="RSYNC"
;;
p)
PAUSE=.5
;;
esac
done
ARGS_START=0
for ARG in "$@"; do
if [ $ARGS_START == 0 ] && [[ ${... | true |
3645234bd637b845adb0ee09f7060917cd6f3846 | Shell | fenghaozhang/toolkit | /c++/test/style/check.sh | UTF-8 | 489 | 3.40625 | 3 | [] | no_license | #!/usr/bin
set -e
CPPLINT_DIR=$(dirname $(readlink -f ${BASH_SOURCE[0]}))
CPPLINT_EXE="$CPPLINT_DIR/cpplint.py"
CPPLINT_RULE="$CPPLINT_DIR/cpplint_rule"
PROGRAM_DIR=$(cd $CPPLINT_DIR/../../../; pwd)
echo $PROGRAM_DIR/$dir
cpus=`cat /proc/cpuinfo |grep processor |wc -l`
for dir in `cat $CPPLINT_DIR/cpplint_list`; d... | true |
ffeb71d5bcba326fc6f34767217af59c021fd49c | Shell | Elive/extra-features | /tree/usr/bin/silverlight-installer | UTF-8 | 4,656 | 3.125 | 3 | [] | no_license | #!/bin/bash
SOURCE="$0"
source /usr/lib/elive-tools/functions
EL_REPORTS="1"
el_make_environment
. gettext.sh
TEXTDOMAIN="elive-extra-features"
export TEXTDOMAIN
main(){
# pre {{{
local select
guitool="/usr/bin/zenity --window-icon=/usr/share/icons/Elive/scalable/apps/logo-elive.png"
case "$( cat /e... | true |
210f7177f886bb5c90b7a8254a2c4ade807df42c | Shell | fabwu/eth-asl-project | /toggle-turbo.sh | UTF-8 | 300 | 3.15625 | 3 | [] | no_license | #!/bin/bash
TURBOFILE="/sys/devices/system/cpu/intel_pstate/no_turbo"
turbo_disabled=$(cat "$TURBOFILE")
if [ "$turbo_disabled" = "1" ];
then
echo '0' | sudo tee -a "$TURBOFILE" > /dev/null
echo "Turbo Enabled"
else
echo '1' | sudo tee -a "$TURBOFILE" > /dev/null
echo "Turbo Disabled"
fi
| true |
5ea12584bc6c959e5d4bd602bf95edc0c601e96c | Shell | tatums/in-browser-crypto | /resources/update | UTF-8 | 343 | 2.65625 | 3 | [] | no_license | #!/bin/bash
stack=in-browser-crypto
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
aws cloudformation update-stack \
--stack-name $stack \
--template-body file://$DIR/cloud.yaml \
--capabilities CAPABILITY_IAM --capabilities CAPABILITY_NAMED_IAM && \
aws cloudformation wait stack-update-complete \
... | true |
72e237ed54303f21febca466def0448b26f8838a | Shell | SONGYEONWON/lena-web-sa-buildpack | /binary/installScript/install-lena-internal.sh | UTF-8 | 10,698 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
######################################################
# Script for installation of LENA Server in container
######################################################
echo "==== Set Parameter ===="
JAVA_HOME=/tmp/app/.java-buildpack/open_jdk_jre/
LENA_HOME=/tmp/app/.java-buildpack/lenaw
LENA_SERVER_TYPE=... | true |
401c911a68a11bc5ff0392ab666580413efcd75e | Shell | verminoisebr/Udemy-Shell | /mod1/if.sh | UTF-8 | 391 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
VAR=""
VAR2=""
if [[ "$VAR" = "$VAR2" ]]; then
echo "São iguais."
fi
if [[ "$VAR" = "$VAR2" ]]
then
echo "São iguais."
fi
if test "$VAR" = "$VAR2"
then
echo "São iguais."
fi
if [ "$VAR" = "$VAR2" ]
then
echo "São iguais."
fi
#único comando, use a forma reduzida, para verdadeiro && e ... | true |
837feb6d83af1a56043543a55967e567a4583878 | Shell | liyq0307/geomesa | /geomesa-bigtable/geomesa-bigtable-tools/bin/install-hadoop-hbase.sh | UTF-8 | 2,609 | 3.375 | 3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
#
# Copyright (c) 2013-%%copyright.year%% Commonwealth Computer Research, Inc.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0 which
# accompanies this distribution and is available at
# http://www.opensource... | true |
16f57486d1603fac27dea9cd9e6c3cbeba611e86 | Shell | iamadie222/unix | /q3evenOrOdd.sh | UTF-8 | 187 | 3.6875 | 4 | [] | no_license | echo -n "Enter Number: "
read NUM
if test $NUM -eq 0
then
echo "Number is Zero"
exit
fi
M=`expr $NUM % 2`
if test $M -eq 0
then
echo "Number is Even"
else
echo "Number is Odd"
fi
| true |
52accde354315b96b1f01b6e401e8119e169748c | Shell | noriskii/wsl-dot-files | /env-update.sh | UTF-8 | 664 | 3.171875 | 3 | [] | no_license | #!/bin/bash
DOT_SCRIPTS_FOLDER=`pwd`
read -p "What's your WINDOWS User Folder Name? " WINDOWS_USER_FOLDER
PREFIX="[DOT-WSL]"
echo "$PREFIX UPDATING SOME IMPORTANT FOLDER"
tar -zxvf config/utilities.tar.gz ~/utilities
echo "$PREFIX UPDATING SOME IMPORTANT CONFIG"
tar -zxvf config/hyper.tar.gz /mnt/c/Users/$WINDOWS_US... | true |
2950c4959eb5090e53aeeab5e48f7b4c963d36ae | Shell | scenarioo/scenarioo-infrastructure | /tests/deployDemo.bats | UTF-8 | 1,834 | 2.984375 | 3 | [] | no_license | #!/usr/bin/env bats
load environment
setup() {
setup_environment
}
@test "deployDemo - it should generate a correct <demo>.config" {
result="$(./infra.sh deployDemo testBranch 900 testUser http://foobar/PR 700 | grep -v timestamp)"
expected="$(cat tests/expected/deployDemo.out | grep -v timestamp)"
#... | true |
e38901395433273dfb60fab307e30c2147c7dc49 | Shell | vesanthosh/cloudiolab | /utils/dhparam-gen | UTF-8 | 426 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
read -p "Enter the domain name that you want generate Diffie-Hellman (DH) key-exchange: " domainName
read -p "Enter Number of bits (e.g. 4096): " bits
read -p "Enter the location where you want to store the DH key-exchange (e.g. /certs/dhparam): " dhParamLocation
# Generate diffie hellman key exchange
sud... | true |
423f05d0fa9cc8747984e0336a468e75f017b583 | Shell | VandyHacks/vaken | /scripts/devEnv.sh | UTF-8 | 435 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Sets up Vaken developer environment. Please run in the top level of the Vaken repository.
ENVFILE=".env"
# check if envfile exists
if [ ! -f $ENVFILE ]; then
cp "$ENVFILE.template" "$ENVFILE"
echo "Please update $ENVFILE with valid environment variables."
fi
sh ./scripts/verifyNode.sh
npm insta... | true |
57b92c90eea45433fb41f07d97fce491e69ab01b | Shell | letharion/G.L.I.S-Gentoo-Linux-Install-Script | /old_glis/script/functions/portage_setup.sh | UTF-8 | 7,216 | 3.859375 | 4 | [] | no_license | #!/bin/bash
portage_setup() {
# Check to see if the network has been configured and is working
if [ ${networksetupstatus} -ne 0 ] ; then
dialog --title "Gentoo Linux : Installation" --backtitle "Gentoo Linux ${gentooversion} Installation" --msgbox "Your network is not configured correctly. Please configure network... | true |
53ed76928eae9822c9118b9ed87adaaa209efbf3 | Shell | tozanski/SimBaD-analyzer | /wcss-scripts/run_old_chronicler.sh | UTF-8 | 1,389 | 3.09375 | 3 | [] | no_license | #!/bin/bash
set -Eeuxo pipefail
DESC_SUFFIX="$1"
JOBDIR=`readlink -f $1`
# Do the checks before task submission
if [ ! -d $JOBDIR ]; then
echo "ERROR: directory $JOBDIR does not exists." >&2
exit 1
elif [ ! -f "$JOBDIR/stream.csv.gz" ]; then
echo "ERROR: directory $JOBDIR does not contain a stream.csv.gz"
ex... | true |
01bbb9d5be57b7a0460187861cac1436093d7336 | Shell | ddmin/dotfiles | /dotfiles/zshrc | UTF-8 | 1,876 | 3.03125 | 3 | [] | no_license | # _
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# / /\__ \ | | | | | (__
# /___|___/_| |_|_| \___|
# check if running interactively
if [[ $- =~ "i" ]]; then
neofetch;
else
return;
fi
# history
HISTSIZE=10000
SAVEHIST=10000
# aliases
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
# profil... | true |
d5d24d9b69e5ab18fe8a2bea686e59f1479e8b01 | Shell | antoniovilarinholopes/unbabel-challenge | /run-test.sh | UTF-8 | 1,879 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ "$#" -ne 1 ]
then
echo "Usage: first-step"
exit 1
fi
FIRST_STEP=$1
############################################
## Extract features, generate CSV file
############################################
if [ "$FIRST_STEP" -le 1 ]
then
mkdir -p "features"
datasets=("test/processed_dataset... | true |
80f144b875ce02afef00947d78a8fa417a0d344b | Shell | dr10n9/macpaw_init_task | /script.sh | UTF-8 | 921 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# Find 3 parts of passsword to unzip additional.zip
quantity=$(cat /app/codes | wc -l)
for((i=1;i<=quantity;i++))
do
arr[i]=$(head -$i codes | tail -1)
arr2[i]=$(cat /var/log/nginx/old.log | grep ${arr[i]} | wc -l)
done
max=${arr[1]}
for((i=1;i<=quantity;i++))
do
if((arr2[i]>$max)); then
... | true |
6e8d69efbf0998c8d297e88e4b0e3fa80f7ee5a9 | Shell | nur1985/Qweak | /beamModulationAnalysis/bmod_optics_quiet.txt | UTF-8 | 576 | 3.140625 | 3 | [] | no_license | #!/bin/bash
#
# bmod_optics - Nuruzzaman 11/10/2011
#
# Run by doing:
# ./bmod_optics run_number
cd `dirname $0`
echo "Checking for modulation data in run $1..."
./nur_script_killer/moria ${1} > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Run $1 doesn't have any modulation data. Aborting optics analysis."
... | true |
06d2f0fc16e802639557de09e1a81a33c895212c | Shell | arshadkazmi42/first-issues | /entrypoint.sh | UTF-8 | 589 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Start the run once job.
echo "Docker container has been started"
declare -p | grep -Ev 'BASHOPTS|BASH_VERSINFO|EUID|PPID|SHELLOPTS|UID' > /container.env
python3 first_timers/run.py --creds-path credentials.json --db-path data/db.json --only-save --create
python3 first_timers/run.py --creds-path credent... | true |
c57f7cf2027bbbb5188667abc4b7ee4d9448487e | Shell | MBARI-ESP/ESP2Glinux | /wpa_supplicant/arminstall | UTF-8 | 534 | 3.21875 | 3 | [] | no_license | #!/bin/sh
# build & install wpa_supplicant daemon for arm-linux -- 4/15/22 brent@mbari.org
: ${ARMGCC:=/arm}
: ${ARMSTRIP:=$ARMGCC/bin/strip}
: ${TARGETTOP:=${2-usr/sbin}}
: ${HOSTTOP:=${1-$HOME/armHost}}
: ${CC:=$ARMGCC/bin/gcc}
echo "Installing in $HOSTTOP"
echo " for execution at $TARGETTOP on the ARM target"
TOP=... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.