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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f8c39a40200bf88a66b4ce79d9b0790d9a595003 | Shell | SBU-BMI/quip_classification | /u24_lymphocyte/additional_code/get_ground_truth/draw_patches.sh | UTF-8 | 723 | 3.421875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
source ../../conf/variables.sh
SLIDES=../../data/svs/
mkdir -p patches
PAR=30
N=0
for files in ./patch_coordinates/*.txt; do
SVS=`echo ${files} | awk -F'/' '{print $NF}' | awk -F '.' '{print $1}'`
FULL_SVS_PATH=`ls -1 ${SLIDES}/${SVS}*.svs | head -n 1`
if [ ! -f "${FULL_SVS_PATH}" ]; then
... | true |
d597483ba42efec39c66be7299cf3ad71e14af6a | Shell | delkyd/alfheim_linux-PKGBUILDS | /guile-reader/PKGBUILD | UTF-8 | 1,059 | 2.78125 | 3 | [] | no_license | # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=guile-reader
_gitname=guile-reader
pkgver=0.6.2
pkgrel=1
pkgdesc="a simple framework for building readers for GNU Guile"
url="http://www.nongnu.org/guile-reader"
arch=('i686' 'x86_64')
license=('GPL')
depends=('guile')
makedepends=('gperf' 'git')
source... | true |
a0c86aeb72275c513c589ff9404d334d672a4c9d | Shell | Agriad/devops-course | /attic/2019/contributions-2019/demo/ajjo/k8s/kube_enable.sh | UTF-8 | 1,255 | 3.015625 | 3 | [
"MIT"
] | permissive | # Set VAULT_SA_NAME to the service account you created earlier
export VAULT_SA_NAME=$(kubectl get sa vault-auth -o jsonpath="{.secrets[*]['name']}")
# Set SA_JWT_TOKEN value to the service account JWT used to access the TokenReview API
export SA_JWT_TOKEN=$(kubectl get secret $VAULT_SA_NAME -o jsonpath="{.data.token}"... | true |
a400cb1df1af3a152d1151325996eb6e40e617aa | Shell | dmi7ry/SimpleVFS | /ci.sh | UTF-8 | 447 | 3 | 3 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -e -x -o pipefail
DC=${DC:-dmd}
# test for successful release build
dub build -b release --compiler=$DC
dub clean --all-packages -q
# test for successful 32-bit build
if [ "$DC" == "dmd" ]; then
dub build -b release --compiler=$DC --arch=x86
dub clean --all-packages -q
fi
# Run unit tests
d... | true |
e5ffe2d5b1b463b01d6fad2e622f5f2a35e56ed4 | Shell | mtdev2/MacGPG2 | /check_for_new_versions (FTP).sh | UTF-8 | 1,573 | 4.09375 | 4 | [] | no_license | #!/bin/bash
BASE_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P)
# Helper functions.
function doFail {
msg="\n** ERROR at $* ** - build failed (${BASH_SOURCE[1]##*/}: line ${BASH_LINENO[0]})"
if [[ "$HAVE_TERMINAL" == "1" ]] ;then
echo -e "\033[1;31m$msg\033[0m" >&2
else
echo -e "$msg" >&2
fi
exit 1
}
fun... | true |
d72d66b06cb5c669fc7717dda900651400f6bf0e | Shell | JulienLeleu/Projet5BDD | /createFournisseurs.sh | UTF-8 | 296 | 3.046875 | 3 | [] | no_license | #!/bin/bash
LIGNEMAX=1000;
tableau_villes=(Lille Marseille Paris Lyon Monaco Perenchies Bruxelles);
min=0;
max=${#tableau_villes[*]};
max=$(($max-1))
for i in $(seq 1 $LIGNEMAX)
do
numeroVille=$[($RANDOM % ($[$max - $min] + 1)) + $min]
echo "$i;nom_$i;${tableau_villes[$numeroVille]}";
done | true |
963ea1dc4807630011dcb35ead2461bc18c553ef | Shell | battlesnake/d-slap | /test.sh | UTF-8 | 306 | 2.953125 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
declare -r out='test-results'
mocha tests
mkdir -p -- "${out}"
if ! mocha tests -R doc > "${out}/tests.html"; then
rm -- "${out}/tests.html"
false
fi
if ! mocha --require blanket tests -R html-cov > "${out}/coverage.html"; then
rm -- "${out}/coverage.html"
false
fi
| true |
34e83daba73d3cf72c6869e16024eddffe01975d | Shell | amyq7526110/ebook | /chapter3/3_!.sh | UTF-8 | 442 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# ! 取反操作符,将反转"退出状态"结果,(见 Example 6-2).也会反转 test 操作符的意义.比
# 如修改=为!=.!操作是 Bash 的一个关键字.
# 在一个不同的上下文中,!也会出现在"间接变量引用"见 Example 9-22.
# 在另一种上下文中,!还能反转 bash 的"history mechanism"(见附录 J 历史命令)
# 需要注意的是,在一个脚本中,"history mechanism"是被禁用的.
| true |
efa6d62448104d01dd2f5bebe983939a6a1760f8 | Shell | corcra/feabhsa-here | /pipeline/get_covariates.sh | UTF-8 | 3,714 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# The purpose of this is to - given a list of genes with associated transition point info (thus timepoint), etc.
suffix=40m_SVM
THRE_high=0.8
THRE_low=0.5
promoter_size=1000
time_region=$1
version=C
# --- datasets yo --- #
covar_folder=/Users/stephanie/ll/results/rate_analysis/$time_region
genes=/Users/s... | true |
1fa7fd5767ed59b4c2a116ccb37631160d1c8aa9 | Shell | beichengwencun/docker | /delete_harbor_image.sh | UTF-8 | 4,605 | 3.375 | 3 | [] | no_license | #! /bin/bash
# 通过Harbor提供的API来批量删除镜像,人工删除费时费力
# 经过测试发现,通过接口去删除时提供的是的标签,但实际上删除的时候通过的是镜像的IMAGE_ID,也就是说
# 如果我把同一个镜像tag多次上传到harbor,通过借口删除时,只需要提供其中一个标签,那么和这个镜像的IMAGE_ID相同的镜像都会删除
#### 项目个数
lines=`curl -s -u "admin:Harbor12345" -X GET -H "Content-Type: application/json" "https://harbor.k8stest.com/api/projects?" |grep "\"na... | true |
950ec1324aa8b63582c4122a20efe8689be4c83e | Shell | IMULMUL/recog | /tools/dev/hooks/pre-commit | UTF-8 | 764 | 3.671875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
#
# Hook script to verify changes about to be committed.
# The hook should exit with non-zero status after issuing an appropriate
# message if it wants to stop the commit.
# Verify that each fingerprint asserts known identifiers.
git diff --cached --name-only --diff-filter=ACM -z xml/*.xml | xargs -0 ./bin/r... | true |
117d0a560ebb04a8ebecb6118ca0f6912d98fbc4 | Shell | johnyin123/private_documents | /custom_os/debian_tuning.sh | UTF-8 | 3,317 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
readonly DIRNAME="$(readlink -f "$(dirname "$0")")"
readonly SCRIPTNAME=${0##*/}
if [[ ${DEBUG-} =~ ^1|yes|true$ ]]; then
exec 5> "${DIRNAME}/$(date '+%Y%m%d%H%M%S').${SCRIPTNAME}.debug.log"
BASH_XTRACEFD="5"
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]... | true |
da7682d4ef17fd115a30ae56ad46ba52137eb159 | Shell | bcowgill/bsac-linux-cfg | /bin/random-text.sh | UTF-8 | 3,522 | 3.25 | 3 | [] | no_license | #!/bin/bash
# BSACSYS Part of Brent S.A. Cowgill's System Toolkit
# choose a random fortune generating program
MIX="
50% clean-code
20% simple-design
15% javascript-good-parts
5% emacs
lean
starwars
"
if [ "$COMPANY" == "" ]; then
# clean-code
# emacs
# javascript-good-parts
# simple-design
MIX="
25% non... | true |
ef5b23fdd544b3c1110e8b52fc44ad7e9b26c6c1 | Shell | OneMainF/hdfs-over-ftp | /stop-server.sh | UTF-8 | 326 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
pid=/tmp/hdfs-over-ftp.pid
command="hdfs-over-ftp"
usage="Usage: stop-server.sh"
cmd=stop
case $cmd in
(stop)
if [ -f $pid ]; then
echo stopping $command
kill `cat $pid`
rm $pid
else
echo no $command to stop
fi
;;
(*)
echo $usage
exit 1
;;... | true |
38ae2dcdef74c21ef719f1c804b064475404cf33 | Shell | zlosure/invoker | /bin/logging | UTF-8 | 1,156 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Terminal text colors
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(t... | true |
4eec1eeb231e529bdc6bc5e696acf210ff29ee0f | Shell | averell23/zsh_averell | /S60_prompt | UTF-8 | 2,502 | 3.296875 | 3 | [] | no_license | #!/bin/zsh
#
# vi-mode colour changing
# http://www.zsh.org/mla/users/2006/msg01196.html
setopt prompt_subst
autoload colors
colors
rst="%{%b%s%u$reset_color%}"
bgc="%{%(?.$rst.%S)%}"
function lprompt {
local col1 col2 ch1 ch2
col1="%{%b$fg[$2]%}"
col2="%{$4$fg[$3]%}"
ch1=$col1${1[1]}
ch2=$col1... | true |
e4d60082420bc78919bd5ffd30c26535f44deb47 | Shell | ExplorViz-Archive/reverse-proxy | /.travis/docker_push.sh | UTF-8 | 1,016 | 3 | 3 | [] | no_license | #!/bin/bash
echo "Building Docker image"
echo $DOCKER_PW | docker login -u $DOCKER_LOGIN --password-stdin
if [[ "$TRAVIS_BRANCH" == 'dev-1' ]]; then
docker build -t reverse-proxy .
docker tag reverse-proxy explorviz/reverse-proxy:dev-$TRAVIS_COMMIT
docker tag reverse-proxy explorviz/reverse-proxy:dev
docker... | true |
058900ce6304f28757d41d5c2d5192b7a6387e45 | Shell | davidmintz/court-interpreters-office | /bin/sdny/get-judges-directory.sh | UTF-8 | 1,640 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Download the current SDNY judges' directory (PDF) from the internal website
# (even though they change the filename with each new update)
# This will only work inside the SDNY network, and even there
# it is subject to breakage if certain things change.
# where to put the PDF
dir="/opt/www/court-interp... | true |
0e6ee9b6f77a1d3beccb3f5fe109b1badf43de0d | Shell | chef/chef-analyze | /.studiorc | UTF-8 | 3,561 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# This is the place you can extend the funcitonality of the studio
hab pkg install chef/studio-common >/dev/null
source "$(hab pkg path chef/studio-common)/bin/studio-common"
# when updating these output files, update 'scripts/code_coverage.sh' as well
coverage_out="coverage/coverage.raw"
coverage_txt="... | true |
7941195e4b8a7296f2708de25bad5fbebb0f5557 | Shell | mircealungu/Softwarenaut | /tools/dist-scripts/create-image-distribution | UTF-8 | 703 | 3.84375 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ]
then
echo "Usage: $0 {image-name} {version}"
exit $E_BADARGS
fi
distbase="../dist-base"
distimage="../dist/image"
zipfile="Softwarenaut-VWImage.zip"
mkdir -p $distimage/softwarenaut
rm -rf $distimage/softwarenaut/*
cp -R $distbase/tools $distimage/softwarenaut/
cp $distbase/$1.im $dist... | true |
5f6e8c9b5b6e0a4f9c2f635cd57362a86dc238c9 | Shell | CyberSys/bifrost-build | /all/zip30-1/Fetch-source.sh | UTF-8 | 833 | 2.703125 | 3 | [] | no_license | #!/bin/bash
SRC=zip30.tgz
DST=/var/spool/src/"${SRC}"
MD5=7b74551e63f8ee6aab6fbc86676c0d37
[ -s "${DST}" ] || ../../wget-finder --checksum "${MD5}" -O "${DST}" ftp://ftp.info-zip.org/pub/infozip/src/"${SRC}" \
|| ../../wget-finder --checksum "${MD5}" -O "${DST}" http://distro.ibiblio.org/slitaz/source... | true |
f2b359075ed345557ba6226ac9d90ab717560c57 | Shell | ajmazurie/oh-my-dir | /modules/use_jvm.sh | UTF-8 | 1,088 | 3.96875 | 4 | [] | no_license | # use_jvm: Ensure that a JVM environment is installed and enabled (stable)
# Syntax: use jvm <package_name> [package_version]
# package_name: name of the SDKMAN! package (required)
# package_version: version of the SDKMAN! package (optional)
# Notes:
# - powered by SDKMAN!, see http://sdkman.io/
use_sdkman(... | true |
6ca3221b88c6d0354e64e8d934352697ccc0fc69 | Shell | phlizik/Linux_Shell_Scripting_Cookbook | /sha1/sha1.sh | UTF-8 | 401 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#生成单独的md5
sha1sum sha1.sh > sha1.sha1
#查看md5文件结构
cat -n sha1.sha1 > sha1sum.output
#检验单独的md5
echo `sha1sum -c sha1sum.sha1` >> sha1sum.output
#生成多文件md5
sha1sum *.txt > *.sha1sum
#查看多文件生成的md5文件结构
cat -n *.sha1sum >> sha1sum.output
#检验多文件md5
echo `sha1sum -c *.sha1sum` >> sha1sum.output
cat -n sha1sum.ou... | true |
43531494c4af8865cacc6050aa0726e293db7fbc | Shell | unixorn/git-extra-commands | /bin/git-gitlab-mr | UTF-8 | 2,787 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2018 Noel Cower
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, p... | true |
e81beb53a9fd67c37123379f2ecf75bdb1fe86cf | Shell | jonathanmarquezj/script_dhcp | /funciones.sh | UTF-8 | 3,875 | 3.640625 | 4 | [] | no_license | #! /usr/bin/env bash
function comprobar_mac {
#MIRAR SI UNA VARIABLE ES UNA MAC
#METODO DE EJECUCION
#mac=$(comprobar_mac "texto del read" $mac)
local mac=$2
#MIRAMOS SI EL NUMERO ES ENTERO
while [[ `echo $mac | grep -oE "\b[0-9a-zA-Z]{1,2}:[0-9a-zA-Z]{1,2}:[0-9a-zA-Z]{1,2}:[0-9a-zA-Z]{1,2}:[0-9a-... | true |
47b53b053f47b355ae50b3e35358e529dc112db2 | Shell | Xx-KaAzZ-xX/Perso | /Bash/Pentest/testShellshock.sh | UTF-8 | 853 | 4.125 | 4 | [] | no_license | #!/bin/bash
#. Description: Script to test if a web server is vulnerable to Shellshock vulnerability
#. Author: Aurélien DUBUS
#. Version : 1.0
usage() {
script_name=$(basename $0)
echo -e "This is the list of available options: "
echo -e "\t -r : Remote mode."
echo -e "\t -l : Local mode."
echo "Exa... | true |
ba2ab3132632453f583248b1064d54e7943f7d2a | Shell | SocialGouv/sre-scripts | /src/helm_to_kube_workflow/migrate.sh | UTF-8 | 894 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -u
set -x
set -o pipefail
WORKING_DIR=$(pwd)
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo "---- Starting migration in dir $WORKING_DIR"
git checkout -b sre/migrate-to-kube-workflow
mkdir -p .kube-workflow/common/templates
for e in dev preprod prod
do
m... | true |
1248e34fb806ef4967f4c4118682af91abf5095b | Shell | mjwang1010/FLUXNET2015_data | /src/clean_up_wrapper.sh | UTF-8 | 1,308 | 3.5625 | 4 | [] | no_license | #!/bin/bash
#
# Get rid of files from the full archive we don't need for now to save some
# space, we can always go back to the original zips if we need to.
#
# Martin De Kauwe, 19 APR 2017
#
FLUX_ZIP_DIR=raw_data_tier_1_zip
FLUX_DIR=raw_data_tier_1
if [ ! -d $FLUX_DIR ]
then
mkdir $FLUX_DIR
cp $FLUX_ZIP_DIR/*... | true |
dc7b4dba72ffc03beb1f5d2dc354e732c0263e88 | Shell | jsk-ros-pkg/jsk_common | /jsk_tools/src/mjpeg_capture.sh | UTF-8 | 1,026 | 3.9375 | 4 | [] | no_license | #!/bin/bash
usage_exit() {
echo "Usage : $0 <stream_url> <output.mp4> [-p PORT(8080)] [--gtest_output file] [-t TIME(20sec)]" 1>&2
exit 1
}
INPUT=$1
OUTPUT=$2
PORT=8080
TIME=20
TIMEOUT=30
if [ -z $INPUT -o -z $OUTPUT ] ; then
usage_exit
fi
GETOPT=`getopt -o t:p: -l gtest_output: -- "$@"` ; [ $? != 0 ] && ... | true |
d9e6b3db517c146a1893ccac1b626e9ac30d0447 | Shell | haniokasai/netwalker-rootfs | /usr/share/checkbox/patches/0.1-ubuntu13 | UTF-8 | 457 | 3.4375 | 3 | [] | no_license | #!/bin/sh
package_old=`echo $1 | sed 's|checkbox|hwtest|'`
config_old="/etc/hwtest.d/$package_old.ini"
config_new="/etc/checkbox.d/$1.ini"
sed -e 's|hwtest|checkbox|g' -e 's|Hardware|System|' < $config_old > $config_new
if [ "$1" = "checkbox" ]; then
cat <<'EOF' >>$config_new
[checkbox/plugins/boot_prompt]
enabl... | true |
4650ce728b0284af63563ffd49c663f363bb14f9 | Shell | JackChuang/utilities | /my_uti/nsdi_uti/jack_nsdi_proc.sh | UTF-8 | 483 | 3.140625 | 3 | [] | no_license | #! /bin/bash
#
# jack_nsdi_proc.sh
# Copyright (C) 2017 jackchuang <jackchuang@echo1>
#
# Distributed under terms of the MIT license.
#
BASE=/home/jackchuang
echo "Input counts: $#"
echo "First arg: $1"
if [ "$#" != "1" ];
then
echo "bad argu"
exit
fi
while [ 1 ];
do
for i in {1..4..1}
do
ssh echo$i "cat /... | true |
d1dd8ecc4e86ab2ab70a119a2543de8e053db053 | Shell | lsst-dm/db_tests_summer15 | /scripts/index.bash | UTF-8 | 773 | 3.25 | 3 | [] | no_license | #! /bin/bash
set -e
if [ $# -ne 1 -o -z "$1" ]
then
echo "Please supply a table name"
exit 1
fi
TABLE=$1
CFG_DIR=/sps/lsst/Qserv/smm/db_tests_summer15/conf
INDEX_DIR=/qserv/data_generation/index
DUMP_DIR=/qserv/data_generation/dump
source /qserv/stack/loadLSST.bash
setup partition
mkdir -p $INDEX_DIR
sph-h... | true |
fdf5f281dce047f0b6e7ad0b51d1dee430e74178 | Shell | pasemes/nanopubstudies-supplementary | /botstudy/make_testset.sh | UTF-8 | 391 | 2.515625 | 3 | [] | no_license | #------------------------------------------------------------------------------
# This script generates the test set, i.e. the new GeneRIF entries of 26 Nov
# 2012 as compared to 20 Sep 2012.
#------------------------------------------------------------------------------
diff generifs_basic_2012-09-20 generifs_basic_2... | true |
733fd79f5afe211db701fa86c7aee67b665110d1 | Shell | freebsd/freebsd-ports-haskell | /multimedia/ringrtc/webrtc_fetch.sh | UTF-8 | 5,687 | 2.796875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
WEBRTC_REV=4896g
base_url="https://chromium.googlesource.com/chromium/src/base.git/+archive/"
boringssl_url="https://boringssl.googlesource.com/boringssl.git/+archive/"
build_url="https://chromium.googlesource.com/chromium/src/build.git/+archive/"
buildtools_url="https://chromium.googlesource.com/chromium/s... | true |
ca3c59cac665d369dc6b97a3ff731f0108144486 | Shell | gabrielDonnantuoni/msc-api-boilerplate | /msc-api-models/js-mcs-mongodb.sh | UTF-8 | 8,148 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
UNIT_TESTS_DIR="./tests/unit"
# Create models tests
MODEL=$UNIT_TESTS_DIR/models/General
mkdir $MODEL
## Create models connectionMock file
cat > ./tests/connectionMock.js << EOF
const { MongoClient } = require('mongodb');
const { MongoMemoryServer } = require('mongodb-memory-server');
let connectionMock... | true |
a4f61ebec80dc3553404071f82f11b34fe83b0de | Shell | antontest/tools | /conf/vsftpd-conf/tools/install | UTF-8 | 286 | 2.71875 | 3 | [] | no_license | #! /bin/bash
# Name : install
# Func : install vsftpd
# Time : 2015-10-22 13:18:11
sudo apt-get install vsftpd
test ! -d ../etc/ && echo "vsftpd conf directroy does not exists!" && exit 1
sudo cp -vrf ../etc/ /
sudo sudo useradd -d /home/anton/ftp -M anton
sudo service vsftpd restart
| true |
fdfad84759d5510f021b2e821ebfc3b4433fb4d9 | Shell | mseltahir/scripts | /clear_executables.sh | UTF-8 | 701 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Used to clear binaries and local output files before committing files to git.
RED="\e[31m"
GREEN="\e[32m"
YELLOW="\e[33m"
CYAN="\e[36m"
GRAY="\e[90m"
ENDCOLOR="\e[0m"
CURRENT_DIR=$PWD
EXECUTABLES=$(find $CURRENT_DIR -executable -type f)
if [ "$EXECUTABLES" != "" ]
then
rm $EXECUTABLES
... | true |
04f60a6e874e4085086e9a13a3352e959586b148 | Shell | cyber-dojo/start-points-base | /test_script/test_hidden_filenames.sh | UTF-8 | 4,437 | 2.953125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
readonly error_code=40
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
test_success()
{
local -r image_name="${FUNCNAME[0]}"
local -r tmp_url=$(git_repo_url_in_TMP_DIR_from languages_manifest_hidden_filenames_success)
build_start_points_image_languages "${image_name}" ... | true |
1f3b6dc8c128f045a036ce9e8cac0b913367f749 | Shell | twistedvines/bootstrap | /util.sh | UTF-8 | 1,088 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# This function exits on any exit code other than 0.
exit_on_error() {
local exit_code=$1
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
}
script_dir() {
if [[ "$0" =~ '-bash' ]]; then
echo "$(pwd)"
return 0
fi
cd $(dirname "$0")
pwd
}
refresh_sudo() {
sudo -v
}
distro() {
... | true |
97cd68701574c59f20fb0276365e048e110ed143 | Shell | EtienneM/dotfiles | /packages/apt/pre_install_hook.sh | UTF-8 | 484 | 3.328125 | 3 | [] | no_license | #!/bin/bash
export PROJECT_ROOT=$1
source $PROJECT_ROOT/libraries/bootstrap.sh
load $PROJECT_ROOT/libraries
apt-get update | identOutput
apt-get install -y apt-transport-https ca-certificates curl software-properties-common | identOutput
failFast $? "Unable to install needed apt tools"
info "Running apt hooks"
for... | true |
786e3f529d869155412609dcc1b38c93c74c8065 | Shell | muccc/iridium-toolkit | /tools/view_baudline | UTF-8 | 1,312 | 3.6875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
base=""
while true
do
case $1 in
-r) # set sample rate
r=$2
shift; shift
;;
-b) # set base freq
f=$2
base=yes
shift; shift
;;
-1) # Stage 1 file (detector output)
file="*/*-$2.det"
base=yes
shift; shift
;;
-2) # Stage 2... | true |
ab079cad7f0e8703b9c9a05640bd891116532a90 | Shell | hades13/apv5sdk-v15 | /apv5sdk-v15/autelan/base-files/files_XJ9344/usr/sbin/temp_control | UTF-8 | 414 | 3.1875 | 3 | [] | no_license | #!/bin/sh
while :
do
Temperature="`pro_ctl_util -M | awk -F "=" '{print $2}'`"
#echo $Temperature
if [ -f /jffs/.temp_value ];then
base_temp="`cat /jffs/.temp_value`"
#echo $base_temp
if [ $Temperature -gt $base_temp ]; then
/usr/bin/pro_ctl_util -y
else
/usr/bin/pro_ctl_util -x
fi
else
if [ $Temperature -g... | true |
1e187df0b4187b5d7fc0c7281b0c885cd0f9ef0c | Shell | sergekravchenko/incentroshop | /projects/incentrodemoshop/microservices/src/initscript/linuxStart.sh | UTF-8 | 3,064 | 4.0625 | 4 | [] | no_license | #!/bin/bash
#
# chkconfig: 345 80 20
# description: Start and stop script for gradle created java application startup
#
# This is a generic file that can be used by any distribution from gradle ("gradle distZip").
# Link this file to the name of the process you want to run.
# e.g.
# ln -s /path/to/gradle-init-start-s... | true |
3b3291bb9c0dedf858e6df75a9909b644bd9180d | Shell | metsa/uh-ceph | /files/cluster-deploy.sh | UTF-8 | 4,226 | 2.6875 | 3 | [] | no_license | #!/bin/bash
DEPLOY_LOG=ceph-deploy-ceph.log
cd my-cluster
echo >> $DEPLOY_LOG
date >> $DEPLOY_LOG
echo "###############################################" >> $DEPLOY_LOG
echo "# ceph-deploy new node1 #" >> $DEPLOY_LOG
echo "###############################################" >> $DEPLOY_LOG
ceph-deplo... | true |
1e952e9dd76b6b511614b245a2971bbf562ed3c6 | Shell | m42a/inaequalem | /filter.sh | UTF-8 | 707 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Only accept 2 or more arguments
if [[ $# -lt 3 ]]; then
exec false
fi
# Name our variables
objfile=$1
mtlfile=$2
outfile=$3
declare -A colors
index="none"
# parse the mtl file
while read -r name val; do
if [[ "$name" == newmtl ]]; then
# Prefix index with _ to avoid parameter substitution and confli... | true |
21814c60bca0d3310bcf8bad06a298dc76b737d8 | Shell | 00010111/lnkfile_check | /lnkfile_check.sh | UTF-8 | 4,066 | 3.75 | 4 | [] | no_license | #!/bin/bash
# author: @b00010111
# Inspired by https://www.us-cert.gov/ncas/alerts/TA18-074A and the usage of remote IconLocation within windows shortcut files.
# exiftool needs to be installed, as it is needed to parase out the metadata from the .lnk files.
# to install exiftool running "sudo apt install libimage-ex... | true |
729530b0bcdd53a88243ab66332818303ef7df91 | Shell | MitMaro/dotfiles | /dotprofile/dots.sh | UTF-8 | 1,953 | 3.5625 | 4 | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive |
# this file is expected to be sourced from `dots.zsh` or `bash.zsh`
# reset a few things
export PROMPT_COMMAND=""
export PATH="$(getconf PATH)"
[[ -e "${__DOTS_DIR}/config.sh" ]] && source "${__DOTS_DIR}/config.sh"
source "${__DOTS_DIR}/dotprofile/lib/debug-log.sh"
__DEBUG_MESSAGE "Dots Directory: ${__DOTS_DIR}"
_... | true |
f6944f637bf0849fb18e19ecbd0add4af800c2d3 | Shell | yujiye/cargosmart | /partition_docker/src/main/resources/get_compose.sh | UTF-8 | 411 | 2.984375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Copyright (c) 2017 TIBCO Software Inc.
#
COMPOSE_VERSION=1.9.0
COMPOSE_INSTALL_PATH=/usr/local/bin
COMPOSE_SRC_URL=https://github.com/docker/compose/releases/download
if [ ! -f $COMPOSE_INSTALL_PATH/docker-compose ]; then
curl -L $COMPOSE_SRC_URL/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`unam... | true |
5bc8a247a609c768d2e9dd322847da47658ed856 | Shell | rmnckv/wikipedia | /bash/src/Disambiguations/data_preparator.sh | UTF-8 | 1,084 | 3.234375 | 3 | [] | no_license | #! /bin/bash
echo ""
echo "- - - - -"
echo ""
echo "Welcome to Disambiguation parser data preparation"
echo ""
echo "... working ..."
## IMPORTANT - change to your input filename
FILE="insert-filename-here.xml.bz2"
#unpack and replace separate tags each on new line
bzip2 -dc $FILE | tr "\n" "~" > rawdata
cat rawdata... | true |
d0df60623e169d40a50fede41e8d642d7be637ca | Shell | JadeCNX/dotfiles | /install.sh | UTF-8 | 2,069 | 3.28125 | 3 | [] | no_license | #!/bin/bash
specific_config=$1
if [[ -n "$specific_config" ]]; then
echo "specific config: $specific_config"
fi
backup() {
file=$1
if [[ -e $file ]] && [[ ! -L $file ]]; then
mv -iv "$file"{,.old}
fi
}
link() {
config=$1
source=$2
destination=$3
if [[ -n "$specific_config" ]] && [[ "$specific_config" ... | true |
cc2c7d9844af54fc643cf403b336fcd3d1c235ad | Shell | kathgironpe/unix-shell-scripts-for-developers | /linux/backup_postgresqldb.sh | UTF-8 | 1,316 | 3.84375 | 4 | [] | no_license | #!/bin/bash
domains=(yourdomain.com)
sqldbs=(database_production)
usernames=(root)
passwords=(password)
backup_user=(root2)
backup_server=(backup.somewhere.com)
opath=$HOME/backups/database/
postgresqlhost=localhost
suffix=$(date +%m-%d-%Y-%H-%M)
current_month=$(date +%m)
for (( i = 0 ; i < ${#domains[@]} ; i++... | true |
db2790d23f834ab2a9b7ddcfd8995ff67c14895d | Shell | mkrystofiak1/COSC350-1 | /Lab02/submission/task6c.sh | UTF-8 | 973 | 3.859375 | 4 | [] | no_license | #!/bin/bash
# Jacob Duncan
# Lab 02
# task6c.sh
prompt="Enter a number between 5 and 9: "
echo -n "$prompt"
read input
# Check if the number entered is between 5 and 9
while [ $input -lt 5 ] || [ $input -gt 9 ]; do
echo "Invalid entry [5-9 only]!"
echo -n "$prompt"
read input
done
# If we got past the while l... | true |
b17027371f77feb3a0c4d129a022bdf91be610e5 | Shell | HeinrichHartmann/bin | /bootstrap | UTF-8 | 302 | 3.5 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
LIMIT=-1
while [[ $# > 0 ]]
do
key="$1"
case $key in
-n)
LIMIT="$2"
shift
;;
*)
FILE="$1"
;;
esac
shift
done
COUNTER=0
while [ $COUNTER -ne $LIMIT ];
do
let COUNTER=COUNTER+1
shuf -n 1 $FILE
done
| true |
f8ecbeee101bddce8a620de539d113f1a759150f | Shell | qunying/ada-4-slackware | /gnat-env/gnat-env.SlackBuild | UTF-8 | 1,567 | 3.03125 | 3 | [] | no_license | #!/bin/sh
# GCC GNAT environment setup package
# Copyright 2016-2022 Zhu Qun-Ying
#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# no... | true |
8db554c812295580491112c7e665ed5ddd1528f0 | Shell | JXCoin/JXCoin | /contrib/initscripts/bsd/novacoin | UTF-8 | 1,713 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# PROVIDE: JXCoin
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# JXCoin_enable (bool): Set to NO by default. Set this variable to YES if you want to enable JXCoin service.
# JXCoin_config (path): Set to /usr/local/etc/JXCo... | true |
5d9c4add78a09003c9bfbd3dd43776e597456106 | Shell | jkeroes/dotfiles-dotbot | /install | UTF-8 | 1,671 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
CONFIG_SUFFIX=".yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CONFDIR="$BASEDIR/meta/profiles"
INDEX_CONFIG_PREFIX="index"
INDEX_CONFIG="${CONFDIR}/${INDEX_CONFIG_PREFIX}${CONFIG_SUFFIX}"
cd "${BASEDIR}"
git -C "${DOTBOT_DIR}" su... | true |
8721a6d8caa4356aec394c740361d9ba19105bb7 | Shell | i2r/yandexHCI | /script/printargs_pl.sh | UTF-8 | 1,035 | 3.671875 | 4 | [] | no_license | #!/usr/bin/env perl
use strict;
use Getopt::Long;
use Pod::Usage;
my $help;
my $message = '';
my $verbose;
@ARGV and GetOptions(
"h" => \$help,
"m:s" => \$message,
# TODO: add '-v' option for verbose mode
"v"=>\$verbose
) or pod2usage(1);
pod2usage(-verbose => 2, -exitval => 2) if $help;
my $count = 0;... | true |
65e5efa269cdd872699267cbc402ac001eb9cc39 | Shell | tarmiste/lfspkg | /archcore/svnsnap/community/gopass/trunk/PKGBUILD | UTF-8 | 1,055 | 2.796875 | 3 | [] | no_license | # Maintainer: Morten Linderud <foxboron@archlinux.org>
pkgname=gopass
pkgver=1.6.10
pkgrel=1
pkgdesc="The slightly more awesome standard unix password manager for teams."
arch=('x86_64')
url="https://github.com/justwatchcom/gopass"
license=('MIT')
depends=('gnupg' 'git')
makedepends=('go-pie')
optdepends=('xdotool: for... | true |
d2828a11306ef58c03612bcc44c1cc3ab1af4cc6 | Shell | pruny/rpi-valse-home | /bin/storage/old_1wire/temp_log#6/OLD/Graph.sh.test | UTF-8 | 4,445 | 2.578125 | 3 | [] | no_license | #!/bin/bash
INCOLOUR="#FF0000"
OUTCOLOUR="#0000FF"
TRENDCOLOUR="#000000"
############################
#
# Parameters to adjust
#
############################
# location (my home) valse
LAT="45.1722867N"
LON="24.7955867E"
# graph folder (volatile, in RAM)
DIR="/var/www/files/data/TMPFS/PNG/"
mkdir -p $DIR
# sensor ... | true |
0a4239ebd8dc4348917f6ba723e9c59276ad2ade | Shell | jingw/MathematicaScience | /uninstall.sh | UTF-8 | 105 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source files.properties
echo "Removing $files from $directory"
cd ~/$directory && rm $files
| true |
1f11566cf9a415534f2daeab2aebd4c2ca22b7f8 | Shell | cxed/FAERSFix | /faersfix-2-unpack | UTF-8 | 2,775 | 4.34375 | 4 | [] | no_license | #!/bin/bash
# faers_unpack - Chris Edwards - 2016-08-17
#
# This program will take as arguments a list of unmodified original
# zip files that were downloaded from the FDA and unpack them.
# For example, this will unpack all data received by `faers_acquire`.
# faers_unpack /data/faers/all/dw/*aers_2*.zip
# The orig... | true |
daca4e2b83e58d729f4c2692e896489812079aa6 | Shell | percona/pmm-demo | /loader/deadlock_requestor | UTF-8 | 329 | 2.671875 | 3 | [] | no_license | #!/bin/sh
set -o xtrace
DBNAME=deadlock
SOCKET=${1:-/var/lib/mysql/mysql.sock}
while true; do
mysql \
--socket=$SOCKET \
--user=sbtest \
--password=sbtest \
--database=${DBNAME} \
-e "
START TRANSACTION;
DELETE FROM deadlock where pk = 1;
"
... | true |
057b4e0269436593a5fab1be701cd9cce0fe6528 | Shell | WeWebsterchen/WeEvent-build | /package.sh | UTF-8 | 11,651 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
broker_git_address="https://github.com/WeBankFinTech/WeEvent.git"
broker_tag=""
broker_project_name=""
governance_git_address="https://github.com/WeBankFinTech/WeEvent-governance.git"
governance_tag=""
governance_project_name=""
nginx_tag=""
version=""
top_path=`pwd`
function usage(){
echo "Usage:"
... | true |
9d2bc66bf2c19cc13bccb97eb9ca7c6cb48f391e | Shell | zacherytcox/Useful-Utilities | /Bash/AMITransfer.sh | UTF-8 | 7,456 | 3.234375 | 3 | [] | no_license | #!/bin/bash
# params: src profile, dest profile, region, ami-id, name
echo "Please remember to run this in a linux/Mac machine terminal. Git Bash fails. No more than 5 snapshot limit for AMI"
jq --version
if [[ $? == 0 ]]
then
echo "package present"
else
echo "Please install jq for bash"
... | true |
0f67e150720835a977ffdf9a2d43c60c1be3117f | Shell | bellmit/pmc-repo | /FinPreMerge/bin/finEnumScan.sh | UTF-8 | 1,523 | 3.515625 | 4 | [] | no_license | #!/bin/sh
if [ $debug -eq 1 ];then
set -x
fi
tstart_enum="$(date +%s)"
#txn=`ade pwv|grep VIEW_TXN_NAME |cut -d: -f2|tr -d [\ ]`
#destdir=$ADE_VIEW_ROOT/fusionapps
enumoutfileformail="$destdir"/"$txn"_enum.out
errCd12=0
enumoutfile="enum_violations.csv"
echo -e "" > $enumoutfileformail
echo -e "Enum Scan O... | true |
fa289d0f1c41123086750b523ad99d110707a40d | Shell | derlaft/vvsh | /obj.sh | UTF-8 | 3,322 | 3.65625 | 4 | [] | no_license | #!/bin/bash
source $DIR/utils.sh
source $DIR/sqlite.sh
declare -A http_params
declare -A http_cookies
declare -A http_files
wsh_init() {
#define vars
local name
local line
local value
local pair
local post
if [ "$REQUEST_METHOD" == 'POST' ] && echo "$CONTENT_TYPE" | grep -q 'multipart/form-data'; t... | true |
506f0c415a3711663abbff032b6b22249ddbf2fa | Shell | bossjones/salt-dev | /master_setup.sh | UTF-8 | 313 | 2.59375 | 3 | [] | no_license | #!/bin/bash
echo 'Setting up Salt Master'
sudo wget -O - http://bootstrap.saltstack.org | sudo sh -s -- -M
echo 'Copying Salt Master config file to VM'
sudo cp /vagrant/master.conf /etc/salt/master
echo 'Restarting Salt Master process...'
sudo service salt-master restart
echo 'Salt Master process restarted.'
| true |
1adc3a5b8cc9ca188a535b849799b92164901c77 | Shell | nstitely/Car_Audio | /init_old/poweroff-test.sh | UTF-8 | 283 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Power Detect
v1=`cat /sys/class/gpio/gpio17/value`
# Power Enabled
v2=`cat /sys/class/gpio/gpio27/value`
# Make sure we are applying power to the main relay - I.E. fully booted
# If so, check if ignition is cut
if [ "$v2" == "1" -a "$v1" == "0" ]
then
poweroff
fi
| true |
b8cd34d5faa5805cdc92f216c0b65db77d64a3cc | Shell | meicm-cc/bookmanager_201920 | /provisioning/production/aws/tools/push_container_registry_cloud_frontend.sh | UTF-8 | 2,653 | 2.625 | 3 | [] | no_license | #!/bin/bash
VERSION="1.0.4"
SERVICE_IMAGE_GATEWAY="bookmanager_gateway_service:$VERSION"
SERVICE_IMAGE_AUTHENTICATION="bookmanager_authentication_service:$VERSION"
SERVICE_IMAGE_DATA_GATHERER="bookmanager_data_gatherer_service:$VERSION"
SERVICE_IMAGE_HISTORY="bookmanager_history_service:$VERSION"
SERVICE_IMAGE_SEARCH... | true |
59f4a6070425b5e798b2511616b8ec919cac177b | Shell | VSETH-GECO/csgo-ebot | /start2WM.sh | UTF-8 | 534 | 3.34375 | 3 | [] | no_license | #!/bin/bash
if [[ $1 =~ ^[5-8]{1}$ ]]
then
if ! screen -list | grep -q csMatch$1 ; then
HOSTNAME=$(hostname)
IP=$(hostname -I | awk '{print substr($1,1) }')
PORT=$(( 27020+$1 ))
TVPORT=$(( 27120+$1 ))
screen -d -m -S csMatch$1 ~/csgoebotserver/srcds_run -game csgo -console -usercon -tickrate 128 +exec preW... | true |
674a1d394e0c1ac6a96cefebad0372bbb8e1de1e | Shell | eran505/track_racing | /update_all.sh | UTF-8 | 212 | 2.96875 | 3 | [] | no_license | #!/usr/bin/env bash
if [ $# -eq 0 ]
then
eacho "--push--"
git add .
git commit -m "$(date +"%m/%d %H:%M:%S")"
git push
exit
fi
eacho "--pull--"
git pull
cmake --build . --config Release
| true |
1d6f00ab3ef673b44b45604a253289783cae8eb3 | Shell | nervousapps/NsynthSuperHard | /setup_install_all.sh | UTF-8 | 1,435 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | setup_audio() {
if grep -q '^dtparam=audio=on' /boot/config.txt
then
echo 'Disabling on board audio'
sed -i -e 's/dtparam=audio=on/#dtparam=audio=on/' /boot/config.txt
fi
if ! grep -q "^dtoverlay=iqaudio-dac" /boot/config.txt
then
echo 'Enabling I2S + I2C audio'
prin... | true |
a42c6bce7b5d6ca423e8f0390bc7ec1fbf13aff8 | Shell | devlato/bashdoc | /bashdoc | UTF-8 | 3,844 | 3.953125 | 4 | [] | no_license | #! /bin/bash
# Copyright (c) 2007 Andrés J. Díaz <ajdiaz@connectical.net>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to u... | true |
baa8d0f77f70afeab1a40abdd908976f1c6941c3 | Shell | rjsocha/v8-php-docker | /make-me-v8-lib | UTF-8 | 572 | 2.953125 | 3 | [] | no_license | #!/bin/bash
_repo="wyga/v8-lib-buster"
# Only this version conmpile cleanly...
for _b in 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8
do
docker build --build-arg branch="${_b}" -t "wyga/v8-lib-buster:${_b}" -f Dockerfile.v8.branch . 2>&1 | tee "${_b}.log"
[[ $? -ne 0 ]] && continue
_full=$(grep -o -P "(?<=(Version ))${_b}[0-9.]+... | true |
26084064220e201f6ecd6007ea993bd8af278646 | Shell | tjma12/adc-overflow | /dev/gen_overflows_condor.sh | UTF-8 | 2,718 | 3.640625 | 4 | [] | no_license | #!/bin/bash
start_time=$1
end_time=$2
ifo=$3
outdir=$4
model_info=$5
basedir="${outdir}/${start_time}_${end_time}"
echo "Building directory structure at ${basedir}"
mkdir -p ${basedir}
mkdir -p ${basedir}/condor_dag
mkdir -p ${basedir}/condor_dag/log_${start_time}_ADC
source /home/detchar/opt/gwpysoft/etc/gwpy-use... | true |
ccaaa4931dccd3a502c70f88fadbd23e6b2d46e6 | Shell | menduz/wrangler-action | /entrypoint.sh | UTF-8 | 852 | 3.515625 | 4 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
export HOME="/github/workspace"
export NVM_DIR="/github/workspace/nvm"
export WRANGLER_HOME="/github/workspace"
# h/t https://github.com/elgohr/Publish-Docker-Github-Action
sanitize() {
if [ -z "${1}" ]
then
>&2 echo "Unable to find ${2}. Did you add a GitHub secret called key ${2}, and pass... | true |
2d97cc3ce0a198dd288a57c5e890b677522e531d | Shell | kofonfor/ansible-role-restic | /templates/restic.sh | UTF-8 | 1,937 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
{% if restic_use_zfs %}
zfs snapshot {{ restic_zfs_pool }}/{{ restic_zfs_dataset }}@{{ restic_zfs_snapshot_name }}
zfs clone {{ restic_zfs_pool }}/{{ restic_zfs_dataset }}@{{ restic_zfs_snapshot_name }} {{ restic_zfs_pool }}/{{ restic_zfs_snapshot_name }}
{% endif %}
RESTIC_REPOSITORY={{ restic_repository }... | true |
9800026b3ae49a29887a39cb153dfaef2127cd08 | Shell | conraythefirst/Triggerfs | /mount.triggerfs | UTF-8 | 2,855 | 3.875 | 4 | [] | no_license | #!/bin/sh
#
# Copyright (c) 2019 conray https://github.com/conraythefirst
#
# This file is part of TriggerFS
. /etc/profile
triggerfs_bin="/usr/bin/triggerfs"
triggerfs_opts=""
runas=$USER
cmd_line=$triggerfs_bin
log="/dev/null"
get_options ()
{
local optarg=${1}
for pair in $(echo ${optarg}|sed 's/,/ /g'); do
... | true |
6d7709f4e9a80030d81edf1c2d1f2ac177917303 | Shell | shravanchippa/Linux_Internals | /Day1/scripts/stringcomp.sh | UTF-8 | 138 | 3.1875 | 3 | [] | no_license | #!/bin/bash
echo "enter two strings"
read var1 var2
if test $var1 == $var2
then
echo " they are equal"
else
echo " thet are not equal"
fi
| true |
38dd6db39d33537a3473b6ac71abf277350ea776 | Shell | CircleCI-Public/cimg-python | /python-hashes.sh | UTF-8 | 244 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
dURL="https://www.python.org/ftp/python/${1}/Python-${1}"
echo -e "Python v${1} sha256 hashes\n"
echo "XZ tarball:"
curl -sSL "${dURL}.tar.xz" | sha256sum
echo ""
echo "Gzip tarball:"
curl -sSL "${dURL}.tgz" | sha256sum
| true |
0a511cb01ef501b83a54cb6cea73376c561a03ab | Shell | NetBSD/pkgsrc-wip | /nncp/files/nncp-toss.sh | UTF-8 | 548 | 2.78125 | 3 | [] | no_license | #!/bin/sh
#
# $NetBSD: nncp-toss.sh,v 0.2 2022/02/02 dvol Exp $
#
# PROVIDE: nncp_toss
# REQUIRE: DAEMON
. /etc/rc.subr
name="nncp_toss"
nncp_toss_rcname="nncp-toss"
rcvar="nncp_toss"
command="@PREFIX@/libexec/nncp-toss"
procname="@PREFIX@/bin/nncp-toss"
conf_file="@PKG_SYSCONFDIR@/nncp/nncp.hjson"
required_files="$... | true |
da20d7dc849ebcd4e156f80b858973b839e6542f | Shell | PASSIONLab/DEDUKT | /scripts/qsub_scaling.sh | UTF-8 | 893 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#
# References:
# [1] https://www.olcf.ornl.gov/for-users/system-user-guides/titan/running-jobs/#titan-batch-queues
# [2] https://www.olcf.ornl.gov/for-users/system-user-guides/titan/running-jobs/#job-priority-by-processor-count
#
# CAN'T REQUEST MORE THAN 12 HRS FOR JOBS WITH <3750 NODES [2]
# CAN'T REQUE... | true |
9be51b94cf39f7bc72e6e862c5aecd1ea10ce96a | Shell | fellowseb/sandbox-llss | /2_ProcessMngnt.sh | UTF-8 | 995 | 2.765625 | 3 | [] | no_license | #! /bin/bash
exit
# List processes
ps -ef
# Show process tree
pstree
ps -lf
# Kill processes by id
kill num_pid
kill -9 num_pid #9 = SIGKILL
# Kill processes by name
pkill proc_name
pkill -9 proc_name
# Start process in the background
sleep 10000 &
# Show processes running in the background
jobs -l # [jobID]
# + => cur... | true |
4b359e9f9be542a9ec20b26d7e43441a544a5f9f | Shell | uofthr/physicslab | /makesudonopw.bash | UTF-8 | 142 | 2.515625 | 3 | [] | no_license | #!/bin/bash
for i in `seq -f "%02g" 1 44`; do
ssh -t research@physics-lab${i}.utsc-labs.utoronto.ca "sudo sh -c 'echo \"%wheel ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers'"
done
| true |
34af679665a8e82050ca106658beb66743bf39c2 | Shell | mwvaughn/Foundation_API_apps | /bx_refseq_pipeline/BlastPipeline_top_TACC.sh | UTF-8 | 1,493 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#$ -N bx_refseq_pipeline
#$ -pe 8way 16
#$ -q development
#$ -j y
#$ -o sge-log/bx_refseq_pipeline.o$JOB_ID
#$ -l h_rt=1:00:00
#$ -V
#$ -A TG-MCB110022
#$ -cwd
## This pipeline runs the following steps
##
## 1- preprocess the fasta file(s) to create job array input file
## 2- run the blast alignments... | true |
1a517c40d69f729ad82cda9da5a087c0eec0e61b | Shell | thetrav/kolla | /docker/fedora-rdo-base/wait_for | UTF-8 | 2,885 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Based on
# https://raw.githubusercontent.com/openstack/tripleo-incubator/6931c1fc7ed98ce36998c5b82750a880b0365445/scripts/wait_for
#
# Copyright 2013 Red Hat
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | true |
ddb7a732de4ea0b1e16e312277375ddb6569c453 | Shell | guaponi/ppmi | /scripts/shell/dicom_to_nifti.bash | UTF-8 | 1,536 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#set -x
PROGRAM_NAME=$0
INPUT_DIR=$1
OUTPUT_DIR=$2
function usage {
echo "usage: $PROGRAM_NAME inputdir outputdir"
echo " inputdir : specify input directory (must contain dcm.zip)"
echo " outputdir : specify output directory"
}
if [ ! -d "${INPUT_DIR}" ]; then
echo "Error: Input Direc... | true |
135e2c737a8518a377a534c96ae27518d2945d95 | Shell | citrit/ECSE4750 | /ClassPrevious/Spring97/HW1/27.shar | UTF-8 | 29,413 | 3.625 | 4 | [] | no_license | #!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1997-02-08 23:57 EST by <youngs3@jec321>.
# Source directory was `/afs/rpi.edu/home/33/youngs3... | true |
bfa9944d150d766f9f3158a371841c95c57e8fab | Shell | souvikhaldar/Mingo | /captureImageAndSend.sh | UTF-8 | 315 | 2.890625 | 3 | [] | no_license | #!/bin/sh
cd ~/Pictures/
raspistill -o "$(date +"%Y_%m_%d_%I_%M_%p").jpg"
if [ $? -eq 0 ]
then
echo "Captured image " "$(date +"%Y_%m_%d_%I_%M_%p").jpg"
echo "Sending to Joey"
rsync -avP "$(date +"%Y_%m_%d_%I_%M_%p").jpg" joey@192.168.0.107:~/Pictures/pi/
else
echo "Capture failed!"
fi
| true |
6dc685d8c906a8ac10e7f67c52bec91e990cbad3 | Shell | michaelmusick/devel-settings | /bash/bashrc | UTF-8 | 1,128 | 3.25 | 3 | [] | no_license | # Bash settings
# M. Musick
#
# To install, add to '~/.' and prepend the file with a '.'
# History of commands
export HISTFILESIZE=3000 # The bash histroy should have 3000 commands
export HISTCONTROL=ignoredups # Don't put duplicate lines in the history
alias hist='history | grep $1' # Requires one input str... | true |
a7cece58fae729217e3171c753cd67c52495eb74 | Shell | inv4d3r/scripts | /git-make-pull.sh | UTF-8 | 910 | 3.296875 | 3 | [] | no_license | #!/bin/bash
tag=$(git describe --tags --abbrev=0)
branch=$(git rev-parse --abbrev-ref HEAD)
reqfile=./"$branch"-pull-request
remoteurl=$(git config --get remote.origin.url)
echo "remote url is "$remoteurl""
echo "last tag is "$tag", branch is "$branch""
if [ -f $reqfile ]; then
if [ -f $reqfile.bak ]; then
i=0... | true |
c7399e436255136ce035251d36cf036547e13bde | Shell | wangmt2000/snc | /createdisk-library.sh | UTF-8 | 12,016 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -exuo pipefail
function get_dest_dir {
if [ "${OPENSHIFT_VERSION-}" != "" ]; then
DEST_DIR=$OPENSHIFT_VERSION
else
DEST_DIR=${PULL_NUMBER}
if [ -z ${DEST_DIR} ]; then
DEST_DIR="$(date --iso-8601)"
fi
fi
}
function sparsify {
local baseDir=$... | true |
73fa1ad7cfaf21abd2d232261f0a1caf9d2b07a2 | Shell | adsy411/aws-route53-demo | /auto/setup-dns | UTF-8 | 1,211 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash -e
cd $(dirname $0)/..
_usage() {
echo "No enough args!!!"
echo "Usage: ./$0 ENV [AWS_REGION]"
exit 1
}
[[ $# -lt 1 ]] && _usage && exit 1
ENV=${1,,}
AWS_REGION=${2:-ap-southeast-2}
STACK_NAME=test-dns-stack
STACK_PARAM="deployment/route53/${ENV}.json"
if [ ! -e ${STACK_PARAM} ]; then
echo ... | true |
51d3428d3fdd40ff4c33d6df3be29493d4ad475d | Shell | takenoko-str/ec2-cost-reduction | /update-timeline.sh | UTF-8 | 547 | 2.625 | 3 | [] | no_license | #!/bin/bash
# Data Insert
sqlite3 awscli.sqlite3 'drop table timeline;'
echo "InstanceType,InstanceId,InstanceCost" > cost-schema.csv
aws ec2 describe-instances \
| jq -r -c '.Reservations[].Instances[] | select(.State.Name == "running") | [.InstanceType, .InstanceId] | @csv' \
| awk -F',' '{print $1","$2","}' \
... | true |
43c9d00f4b6424b54933f4adf3ecc1ff67ce461d | Shell | bryantrobbins/umd-dozen | /common/util.sh | UTF-8 | 5,469 | 4.28125 | 4 | [] | no_license | #!/bin/bash
#
# This script contain utility functions common used across scripts
#
# readlink or equivalent
function abspath {
ABSPATH=""
hostos=`uname`
if [ "$hostos" == "Linux" ]
then
# Linux
ABSPATH=$(readlink -f $1)
else
# Mac OS
ABSPATH=$(perl -MCwd=realpath -e "print rea... | true |
24040e6f0de9b66ea467eecad26f45c59b5985e0 | Shell | ravindraindia4u/Blz-fellowship | /Week-1_Shell_Script/06.for-loop_Repetition/6.primeFactorization.sh | UTF-8 | 337 | 3.5 | 4 | [] | no_license | #!/bin/bash
read -p "Enter a number : " num;
#x=$(( $num % 2 ));
while [ $num%2 == 0 ]
do
echo "2 ";
num=$(( $num / 2 ));
done
sqrt=$(echo "sqrt($num)" | bc );
for (( i=3; i<=$sqrt; i+=2 ))
do
#y=$(( $num % $i ));
while [ $num % $i == 0 ]
do
echo "$i ";
num=$(( $num / $i ));
done
done
if [ $num -ge 2 ]
then
... | true |
2a04eaa22b9bcd35018e3434fc3d86d488b5843a | Shell | CarlosLopezElorduy1250/FGP | /scripts/get_refFASTAs.sh | UTF-8 | 145 | 2.734375 | 3 | [] | no_license | for family in `ls ..|grep fam_`; do
python3 get_refFASTAs.py "../"$family"/"${family:4}"_ref.vie" "../"$family"/"${family:4}"_ref.fasta"
done | true |
62db57d5e321c033e1bcca375b45be0b65f507c9 | Shell | eghijs/cinnamon | /install/install_conky.sh | UTF-8 | 1,600 | 3.3125 | 3 | [] | no_license | #!/bin/bash
##############################################################################################
###
##############################################################################################
# Instalando pacote conky
apt-get install conky conky-all -y
echo "Pacotes conky e conky-all instalados com suces... | true |
c380358616be774acd4d2cfabd1ea90607f83cd4 | Shell | tox2ik/local-bin | /ls-md | UTF-8 | 450 | 2.953125 | 3 | [] | no_license | #!/bin/bash
declare -a mm=( )
for i in /sys/devices/virtual/block/md*; do
if [[ -d $i ]]; then
mm+=( $(< $i/dev) )
for ii in $(find $i/slaves -type l); do
echo $(basename $i) $(basename $ii)
mm+=( $(< $ii/dev) )
done
echo
fi
done
#| column -t | sort -k3b,3 --
pat=${mm[@]}
pat="(${pat// /|})"
lsb... | true |
d06eef23a378956d1e596b85d866128159d32266 | Shell | pranaliandre/Shell-Scripting | /SelectionProblem/forloop_statement/factorization.sh | UTF-8 | 212 | 3.59375 | 4 | [] | no_license | #!/bin/bash -x
read -p "Enter the number: " number
for (( i=2;number!=1;i++ ))
do
while [ $((number%i)) -eq 0 ]
do
echo $i
number=$((number/i))
count=1
done
done
if [ $count -eq 1 ];
then
(( i-- ))
fi
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.