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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a576dc54f73375bbd97c172d40e389accc0276d3 | Shell | abhishek-paliwal/Bash-Scripts-To-Make-Life-Easier | /mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/602-mggk-python-plotting/602_step0_mggk_only_run_this.sh | UTF-8 | 2,113 | 4.03125 | 4 | [] | no_license | #!/bin/bash
################################################################################
##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## CREATING SCRIPT USAGE FUNCION AND CALLING IT VIA '--help'
usage()
{
cat <<EOM
USAGE: $(basename $0)
##--------------------------------------... | true |
dd2ae1109d2819137fd4dd51b0d20d5f5ff96bc4 | Shell | ncallister/devsetup | /scripts/makecd.sh | UTF-8 | 1,766 | 3.75 | 4 | [] | no_license | #!/bin/bash
set -e
set -x
#trap read debug
if [ $# -lt 2 ]; then
echo "Usage: makecd.sh <playbook name> <version number>"
exit
fi
ORIGINAL_DIR=$(pwd)
# UBUNTU_VERSION="12.04.4"
# UBUNTU_DISTNAME="precise"
UBUNTU_VERSION="14.04.1"
UBUNTU_DISTNAME="trusty"
ARCHITECTURE="amd64"
# ARCHITECTURE="i386"
DEBIAN_PROXY... | true |
6a1d37d398500e0f0de95770dd69758a1f34524b | Shell | poplatek/shaftlog | /test/01-initial-scan.sh | UTF-8 | 1,370 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
client="$PWD"/../shaftlog-client.js
server="$PWD"/../shaftlog-server.js
tempdir=`mktemp --tmpdir -d shaftlog-test-tmp.XXXXXXXXXX`
client_pid=
server_pid=
cleanup() {
if [ "x$server_pid" != "x" ]; then
kill $server_pid || true
wait $server_pid || true
server_pid=
fi
... | true |
b81935dac2459330356e8dda2b883b404cfe444f | Shell | adrian-thurston/ragel | /test/ragel.d/gentests.sh | UTF-8 | 11,061 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Test Case Features
# ------------------
# If the test case has a directory by the same name, copy it into the
# working direcotory.
#
# @RAGEL_FILE: file name to pass on the command line instead of file created
# by extracting section. Does not work with translated test cases.
#
TRANS=./t... | true |
ef7a5b3c83ee95c547c61bf77e3f06a2b8ac8cd4 | Shell | intel/cri-resource-manager | /test/e2e/policies.test-suite/topology-aware/n4c16/test01-always-fits/code.var.sh | UTF-8 | 3,943 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | # Test that guaranteed and burstable pods get the CPUs they require
# when there are enough CPUs available.
# pod0, fits in a core
CPU=1 create guaranteed
report allowed
verify \
'node_ids(nodes["pod0c0"]) == {1}' \
'cpu_ids(cpus["pod0c0"]) == {4}'
# pod1, takes full core - from a different node than pod0
CPU... | true |
1e3a608d1d3db2e6301c67b8cb2796efeae195a1 | Shell | regolith-linux/regolith-conky-config | /regolith-ftue.sh | UTF-8 | 471 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# This script will be called after i3 starts. It's purpose is to do things
# that only make sense for the first time the user starts Regolith.
# If this involves more than conky
# in the future it should be pulled out into a separate package.
UPDATE_FLAG_DIR="$HOME/.config/regolith/flags"
UPDATE_FLAG_PATH=... | true |
71da653d2f31a0c5527b354d6ab183b71bfad2ac | Shell | gurumojo/dmc | /bin/check | UTF-8 | 474 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#
# DMC Check Script
########################################################################
BIN=$(realpath $(dirname "$0"))
BASE=$(dirname "$BIN")
CMD="$BASE/node_modules/yarn/bin/yarn"
JSON=$("$BIN/locate")
for PACKAGE in ${JSON[@]}; do
DIR=$(dirname "$PACKAGE")
echo "Working in $DIR ..."
cd "$DI... | true |
3ee66b0e19577e7bcd109c8f1818d3148a38e1fe | Shell | readex-eu/readex-ptf | /scripts/psc_generate_bare_plugin_from_skeleton.in | UTF-8 | 2,882 | 3.859375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
periscope_srcdir="@PERISCOPE_SOURCE_DIRECTORY_IN_SCRIPTS@"
version="@VERSION@"
class=
library=
help () {
cat <<EOF
usage: psc_generate_bare_plugin_from_skeleton -c <ClassName> -l <library-name>
This script generates an empty Perisocpe Tuning Framework plugin from a skeleton,
based on the desi... | true |
03e85666b1da7c1a871e15fedafaf1610682a69c | Shell | sridharanirudh/tmpFever | /src/pipeline/run_on_pipeline.sh | UTF-8 | 1,284 | 3.875 | 4 | [] | no_license | #!/bin/bash
# run_on_pipeline: prepares and sends a claim to be run on the pipeline
# created on 2 May 2020
######CONSTANTS
PIPELINE_DIR="/home/kikuchio/git_repos/635-nlp-group-project/tmpFever/src/pipeline"
PREP_SCRIPT="${PIPELINE_DIR}/prep_pipeline_data.py"
PREP_DATA="${PIPELINE_DIR}/../data/tmp/pipeline_data.jsonl... | true |
849961a39e8afe042e1608ca4f15c2c0b0783da8 | Shell | kevinmook/steam-docker | /container_files/scripts/install_app | UTF-8 | 270 | 3.015625 | 3 | [] | no_license | #!/bin/bash -e
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ ! "$APP_ID" ]; then
echo "APP_ID not set, exiting"
exit 1
fi
/root/steamcmd/steamcmd.sh \
+login anonymous \
+force_install_dir "$FORCE_INSTALL_DIR" \
+app_update "$APP_ID" \
+quit
| true |
cc67c2f6efbf64fe50a3c189ff527cbe2d86df75 | Shell | andytson-inviqa/dockerfiles | /magento2-nginx/fpm-7.0/usr/local/share/magento2/install_magento_finalise.sh | UTF-8 | 876 | 3.28125 | 3 | [] | no_license | #!/bin/sh
set -xe
source ./common_functions.sh
bin/magento setup:upgrade
# Compile the DIC if to be productionized
if [ "$PRODUCTION_ENVIRONMENT" = "1" ]; then
bin/magento setup:di:compile
fi
(bin/magento indexer:reindex || echo "Failing indexing to the end, ignoring.") && echo "Indexing successful"
# Download ... | true |
e722b2238b6013fe623133971643bc18bf1fb742 | Shell | shiwk/AElf | /scripts/aelf-node.sh | UTF-8 | 1,241 | 3.59375 | 4 | [] | no_license | #!/bin/bash
echo "Check parameter ..."
ACCOUNT=$1
if [ ! -n "$ACCOUNT" ]
then
echo "Error: No account parameter provided."
exit
fi
PORT=$2
if [ ! -n "$PORT" ]
then
PORT=6900
echo " >> Use default port value: 6900"
else
echo " >> Use input port value as: $PORT"
fi
echo "Pull latest aelf/node imag... | true |
f8c7626b4bd5aec705ebf4fec8e6ba64e8024ecb | Shell | ayechan/dotfiles | /sh/loadvms.sh | UTF-8 | 287 | 3.40625 | 3 | [] | no_license | #!/bin/sh
if [ -z "$PS1" ]; then return ; fi
export PATH
function rvm() {
unset -f rvm
echo "loading rvm ..."
source "$HOME/.rvm/scripts/rvm"
rvm $*
}
function nvm() {
export NVM_DIR=$HOME/.nvm
unset -f nvm
echo "loading nvm ..."
source "$HOME/.nvm/nvm.sh"
nvm $*
}
| true |
810e3c9eb7491bb022d61af6f6588749573dd5cf | Shell | hugohvf/Complete-Bash-Shell-Scripting | /1.Introduction/1.Document-httpd-info.sh | UTF-8 | 355 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
httpd_v=$(httpd -v 2>&1 | awk -F '/' 'NR==1{print $2}' | awk '{print $1}')
httpd_s=$(systemctl status httpd | grep Active | awk '{print $2}')
httpd_p=$(cat /etc/httpd/conf/httpd.conf | grep ^Listen | awk '{print $2}')
echo "The httpd version is: $httpd_v"
echo "The current status of httpd is: $httpd_s"
ech... | true |
282e4db11da1173ea3261255ca5239e747b7b294 | Shell | lhintzsc/appd_image_machine_agent | /machine_agent/extensions/NetVizExtension/install-extension.sh | UTF-8 | 3,080 | 4.15625 | 4 | [] | no_license | #!/bin/sh
# Setup PATH environment variable to have paths required by our scripts.
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:
SCRIPT="$0"
# SCRIPT may be an arbitrarily deep series of symlinks.
# Loop until we have the concrete path.
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
# Drop everything prior to... | true |
bf7cd1ca55b0e26411b486855eae8e197b93ce22 | Shell | liyanghua/sim_rank | /trunk/src/.svn/text-base/util.sh.svn-base | UTF-8 | 632 | 3.484375 | 3 | [] | no_license | #!/usr/local/bin/bash
CUR_DIR="`dirname $0`"
CONF_FILE=${CUR_DIR}/term_level_ctr_conf
# parse the conf file
tag=""
special_index=26
while read line
do
c=${line:0:1}
if [ $c == "#" ]; then # ignore the comments
continue
fi
arr=()
for i in $(echo $line | tr "," "\n")
do
arr+=("$i... | true |
858e0cfcca19b03eecca81cc7badad1b8e3824bb | Shell | tw-praxissemester-2019/main | /040_bash/cutter.sh | UTF-8 | 1,598 | 3.6875 | 4 | [] | no_license | #!/bin/bash
# author: TWilts
# purpose: automated cutting (only USA) and converting to ESRI shapefile
# adjust your path to gdal_polygenize eventually
pathToGDAL="/usr/local/Cellar/gdal/2.4.2/bin/"
# =====================================
# If you cloned the repository, you sholdn't need to change anything here
func... | true |
31922a9846f56dc2e21133a94d571d5a3d14a7eb | Shell | z4027163/AOD_code | /HiggsAnalysis/HiggsToZZ4Leptons/test/macros/submit_HZZ4LeptonsAnalysis_FNAL.sh | UTF-8 | 1,470 | 2.6875 | 3 | [] | no_license | #!/bin/bash
mkdir -p $_CONDOR_SCRATCH_DIR/histodir
mkdir -p /eos/uscms/store/user/ndefilip/jobdir
mkdir -p /eos/uscms/store/user/ndefilip/histodir
workdir=${PWD}
echo "Running HtoZZto4Leptons Analysis with executables RunHZZ4LeptonsAnalysis"
source /uscmst1/prod/sw/cms/bashrc prod
exedir=`echo /uscms/home/zwang4/nob... | true |
369f67a90bca404746d2f2f3cd6856b011ca84d5 | Shell | RohanAwhad/Custom-Linux-Shell-Commands | /.my_cmds.sh | UTF-8 | 846 | 2.59375 | 3 | [] | no_license | #!/bin/bash
function html(){
var1="${1}.html"
touch "$var1"
echo "<!DOCTYPE html>" >> "$var1"
echo "<html>" >> "$var1"
echo " <head>" >> "$var1"
echo " <!-- metadata goes here -->" >> "$var1"
echo " <title>" >> "$var1"
echo " </title>" >> "$var1"
echo " </head>" >> "$var1"
echo " <body>" >> "$var1"
echo... | true |
f7bd5383b3dfa6f78ba7335e2e4a310d6186f2b5 | Shell | gabrsar/projetos-graduacao | /Programação Paralela - Projeto 1/loadservers.sh | UTF-8 | 543 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#Script para execução LOCAL (testes)
echo "Matando servidores ativos..."
./killservers.sh
echo "Iniciando servidores..."
for i in $(seq 7000 100 7800)
do
./serverExe $i > /dev/null &
done
while [ true ];
do
echo 'Estatisticas dos Servidores Rodando'
echo 'PID CPU MEM PROCESSO PORTA'
ps aux | g... | true |
1b3e8196c45df41a3bcbc1cf297470c3923c02b8 | Shell | unfoldingWord-dev/tools | /uwb/usfm_from_ts.sh | UTF-8 | 3,602 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -*- coding: utf8 -*-
#
# Copyright (c) 2015 unfoldingWord
# http://creativecommons.org/licenses/MIT/
# See LICENSE file for details.
#
# Contributors:
# Richard Mahn <rich.mahn@unfoldingword.org>
set -e
: ${DEBUG:=false}
# Process command line options
while getopts l:v:b:s:o:w opt; do
... | true |
b109eebb499294362699d8616beb5a5726875f4d | Shell | madwill/horizon | /babelify.sh | UTF-8 | 231 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
dirs="server plugins router plugin-utils test"
for path in `find $dirs -name .babelrc | grep -v node_modules`; do
{
babel ${path%%.babelrc}src -d ${path%%.babelrc}dist -s true -w
} &
done
wait
| true |
0c600bc58e841c715abc553d3d3ab68ae3237fa1 | Shell | uning/docker_crmeb | /upgrade_crmeb.sh | UTF-8 | 1,049 | 3.28125 | 3 | [] | no_license | #!/bin/zsh
curdir=$(pwd)
cversion=$1
[[ $cversion == '' ]] && cversion='v1.3.0'
zipdir=$curdir/source_zip/
zipfile=crmeb_merchant-${cversion}.zip
[[ ! -f $zipdir/$zipfile ]] && echo "$zipdir/$zipfile not exist." && \
zipfile=crmeb_merchant_${cversion}.zip
[[ ! -f $zipdir/$zipfile ]] && echo "$zipdir/$zipfi... | true |
5168098c1c45cdd70f6e4da5774ba5e303ce3d8f | Shell | grant-humphries/dotfiles | /scripts/install_cx_oracle_mac.sh | UTF-8 | 2,478 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# ** Installs cx_Oracle on macOS **
# this thread is a great guide and people are keeping things up to date
# in the comments: https://gist.github.com/thom-nic/6011715
# this was also very helpful, just had to adapt it slightly:
# https://gist.github.com/mcescalante/50f1663825fea582953c187f83c8b92d... | true |
999e4ce1014401e3f5f35006e7864b8e4eca298d | Shell | alexshtin/temporal | /docker/auto-setup.sh | UTF-8 | 12,050 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -eux -o pipefail
# === Auto setup defaults ===
DB="${DB:-cassandra}"
SKIP_SCHEMA_SETUP="${SKIP_SCHEMA_SETUP:-false}"
SKIP_DB_CREATE="${SKIP_DB_CREATE:-false}"
# Cassandra
KEYSPACE="${KEYSPACE:-temporal}"
VISIBILITY_KEYSPACE="${VISIBILITY_KEYSPACE:-temporal_visibility}"
CASSANDRA_SEEDS="${CASSANDRA_... | true |
8183044075e63480f99d7cb74adc80c560704534 | Shell | CSV-Tom/os-configure-scripts | /cheat-sheets/build.sh | UTF-8 | 3,813 | 4.28125 | 4 | [] | no_license | #!/bin/sh
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
FILTER=*.md # set search criteria
EXTENSION=tex # set file extension for output files
#OUTPUTPATH=bin # set output directory for generated files
INPUTPATH="${SCRIPTPATH}/sou... | true |
bc98d14b5f625d36f4f8f36cc1601356f8579aff | Shell | yalong0424/learningShell | /www.runoob.com/command_shell/test.sh | UTF-8 | 2,182 | 4.125 | 4 | [] | no_license | #!/bin/bash
#author: jiming.wang
#url: www.runoob.com
#Shell中的test命令用于检测某个条件是否成立,它可以进行 数值、字符和文件 三个方面的测试。
#数值测试
###########################
# 参数 说明
# -eq 等于则为真
# -ne 不等于则为真
# -gt 大于则为真
# -ge 大于等于则为真
# -lt 小于则为真
# -le 小于等于则为真
###########################
num1=100
num2=10
if test $num1 -eq $num2
then
echo "相等"
else
e... | true |
1752eec0a6a7381452e756786702c79d8447b18b | Shell | thiennv93/sch-k8s-helper | /startup-infrastructure.sh | UTF-8 | 7,794 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
#######################################################################################
#
# Setup all the state
#
#
#######################################################################################
function show_usage() {
echo "Variables can be exported or set on the command line as shown... | true |
47a88201b1e6ca035daf4fe492266d74109440e7 | Shell | nnshah1/Smart-City-Sample | /deployment/kubernetes/helm/stop.sh | UTF-8 | 462 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
DIR=$(dirname $(readlink -f "$0"))
helm uninstall smtc${SCOPE}
case "N$SCOPE" in
N | Ncloud)
kubectl delete secret self-signed-certificate 2> /dev/null
;;
esac
kubectl delete configmap sensor-info 2> /dev/null
if [ -n "${CONNECTOR_CLOUD}" ]; then
case "N$SCOPE" in
Ncloud... | true |
278d559ea9085ffc5b73378fea2fbae863d60bc8 | Shell | Myralllka/UCU_CUDA_virus_evolution_simulation | /cuda_like_linear/scripts/run_n_times.sh | UTF-8 | 658 | 2.84375 | 3 | [] | no_license | #!/bin/bash
start=0
step=40000
stop=26 # num of iters
deadstart=0
deadstep=0.05
deadstop=10 #num of iters
#dir="res/res0"
#mkdir -p $dir
for deadrate in $(seq $deadstop); do
sed -i "s/patient_to_dead...*/patient_to_dead = $deadstart/g" ./simulation.conf
for cycles in $(seq $stop); do
dir="RES/res$deadstart/r... | true |
cc406fe90cc1292357e26613eb1a7dcf2fc65177 | Shell | camuso/scripts | /deprecated/scp-all-my-stuff | UTF-8 | 2,052 | 3.859375 | 4 | [] | no_license | #!/bin/bash
sPath=""
filename=""
hostname=""
username="root"
logname="$LOGNAME"
hostnumber="-0"
down=0
userhostflag=0
function usage
{
echo ""
echo "hos [-n number] [-u username] filename host"
echo " -<1..9> - host number (see list below)"
echo " -u --user - specific username (default is root)"
echo " -... | true |
6f77617ecdf40f6064f46fb6d61eb023262c1b6a | Shell | chakralinux/desktop | /libkolabxml/PKGBUILD | UTF-8 | 757 | 2.71875 | 3 | [] | no_license |
pkgname=libkolabxml
pkgver=1.1.6
pkgrel=4
pkgdesc="Kolab XML format schema definitions library"
url='http://git.kolab.org/libkolabxml/'
arch=('x86_64')
license=('GPL')
depends=('xerces-c'
'boost-libs')
makedepends=('cmake'
'boost'
'xsd'
'qt'
'swig')
source=(... | true |
1cfefb25ade4675d864c8591fd3b8f1889245168 | Shell | danrabayda/GeometryBin | /dotp | UTF-8 | 257 | 2.546875 | 3 | [] | no_license | #!/bin/bash
if [ "$3" = "" ]
then
sc=15
else
sc=$3
fi
v1=($(echo "$1" |awk '{print $2,$3,$4}'))
v2=($(echo "$2" |awk '{print $2,$3,$4}'))
dp=$(bc <<< "scale=$sc; ( ${v1[0]} * ${v2[0]} ) + ( ${v1[1]} * ${v2[1]} ) + ( ${v1[2]} * ${v2[2]} )")
echo "$dp"
| true |
062931f9e63a00f2f85b3f80aa7cd035cf56a4de | Shell | elastisys/scale.commons | /scripts/security/generate-client-cert.sh | UTF-8 | 2,677 | 4.15625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# This script generates a self-signed client SSL certificate with a private
# key and also places it in a PKCS12 key store, for later use by a Java
# HTTPS/SSL client. The script can also be told to generate a Java Key Store
# (JKS) that imports the contents of the PKCS12 key store, if a JKS keystore
#... | true |
fccdfff4bdcd48b84670da3c12ba85f91dfcab7d | Shell | atsalaudeen/appservertf-stack-sample | /certificates/createcertificate.sh | UTF-8 | 947 | 2.625 | 3 | [] | no_license | #!/bin/bash
# Generate private key
openssl genrsa 2048 > ca-test-private-key.pem
# Generate Certificate with key above
#openssl req -new -x509 -nodes -days 3650 -key ca-test-private-key.pem -out ca-test-public.crt -subj "/C=UK/ST=Greater London/L=London/O=MyTestName Ltd/CN=myCompanyTestWeb-site1.com"
# Or
openssl ... | true |
b352dc18345d1bb5b87c786b6aced998d3359182 | Shell | SUSE/cf-usb | /cf-usb-release/jobs/cf-usb/templates/cf-usb.ctl.erb | UTF-8 | 1,417 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
pidfile="/var/vcap/sys/run/cf-usb/cf-usb.pid"
function random_uuid()
{
echo -n "`cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 8 | head -n 1`-`cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 4 | head -n 1`-`cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 4 | head -n 1`-`cat /dev/urandom | tr -dc 'a-f0-9' | f... | true |
af59421348edcfd39ba5cf531ba446cbc4de8bb1 | Shell | chanshige/shellscript | /digm | UTF-8 | 331 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env bash
echo "|fqdn|type|record|"
echo "|----|----|------|"
for arg in $@;do
ANSWER_SECTION=`dig @8.8.8.8 ${arg} any +noall +ans|awk 'NR>4{printf "|" $1 "|" $4 "|"; {for(i=5; i<=NF; i++) printf $i " ";} print "|";}'`
if [ -n "${ANSWER_SECTION}" ]; then echo "${ANSWER_SECTION}" ; else echo "|${arg} | | |... | true |
ee3ea1954a52fb65f809c72966244b4ac1445962 | Shell | sansajn/android | /ndk/scripts/bullet3-2.83.6/build.sh | UTF-8 | 415 | 2.875 | 3 | [] | no_license | #!/bin/bash
if [ ! -d "build/x86" ]; then
mkdir -p build/x86
fi
PATH=~/opt/android19-x86/bin:$PATH
cd build/x86
if [ ! -f "Makefile" ]; then
cmake \
-DCMAKE_TOOLCHAIN_FILE=../../android-x86.cmake \
-DCMAKE_INSTALL_PREFIX=~/opt/android19-x86/sysroot/usr \
-DBUILD_BULLET3=off \
-DBUILD_EXTRAS=off \
-DBUILD... | true |
e335a8c5594d93aa8a5a0cec208cacf63ef0a9f5 | Shell | skoef/zfsync | /lib/ssh | UTF-8 | 683 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ -z "${LIB_SSH_INCLUDED}" ]; then
LIB_SSH_INCLUDED=1
zf_ssh_cmd() {
local cmd=$1 identity_arg user_arg
[ -z "${cmd}" ] && zf_error "zf_ssh_cmd requires cmd parameter"
[ ! -z "${ZF_IDENTITY_FILE}" ] && identity_arg="-i ${ZF_IDENTITY_FILE}"
[ ! -z "${ZF_TARGET_USER}" ] && user_arg="-l ${Z... | true |
08aecf864663e6990c63c7aa966daa60404907a1 | Shell | scottgreenup/metal | /launch | UTF-8 | 544 | 3.40625 | 3 | [] | no_license | #!/bin/bash
venv_dir="./.venv/"
if [[ ! $VIRTUAL_ENV ]]; then
echo "Activating virtual env: ${venv_dir}"
if [[ -e "${venv_dir}/bin/activate" ]]; then
if ! source "${venv_dir}/bin/activate"; then
echo "Failed to enter virtual environment."
exit
fi
else
echo ... | true |
df74b9b1b8951b98fa9b8428264091a8d402fac3 | Shell | c2v4/dotfiles | /remote-install.sh | UTF-8 | 762 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# function check_prerequisite() {
# if ! command -v $1 &>/dev/null; then
# echo "$1 is required"
# exit
# fi
# }
# # check prerequisites
# for i in git curl cc gcc make; do
# check_prerequisite $i
# done
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/inst... | true |
55e46fb095d2a58292c610a007bc112f71ce6d78 | Shell | vcatafesta/chili | /bombando/zenity/prgs/despertador.sh | UTF-8 | 5,710 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Despertador usando Shell e Zenity
# Copyright 2009 Lucas Mazzardo Veloso <lmveloso#gmail-com>
#
# This is a Free Software relized under the terms of
# the GNU-GPL: http://www.gnu.org/licenses/gpl-3.0.html
#
IMGDIR=$(dirname $0)
P_SLEEP=15
function ajuda {
echo "
Despertador usand... | true |
e0c581cb605794348066cd8c186a7a95897714c6 | Shell | Yshayy/tweek | /.github/workflows/versions_to_deploy.sh | UTF-8 | 1,814 | 2.90625 | 3 | [
"MIT"
] | permissive | echo checking api version
TWEEK_API_VERSION=$(cat ../../services/api/Tweek.ApiService/Tweek.ApiService.csproj | grep -E "VersionPrefix" | grep -Eo "[0-9.]*(-rc[0-9]*)?")
if [[ "$(git tag | grep -c tweek-api-$TWEEK_API_VERSION)" == "0" ]]; then
echo tagging $TWEEK_API_VERSION
echo "TWEEK_API_VERSION=$TWEEK_API_V... | true |
ab993fae5ee9fe92824b69b9cc255b9d850a30bb | Shell | catesandrew/dotfiles | /home/.bin/scan_preview | UTF-8 | 6,750 | 3.359375 | 3 | [] | no_license | #!/bin/bash
targetfile="scan_$( date +"%Y-%m-%d_%H-%M-%S" ).jpg"
# Get image from scanner
# B&W 600dpi
# Color 300dpi
scanimage --mode Color --source "ADF Duplex" --format=tiff --resolution 300 > /tmp/scan.tiff
scanimage --mode Gray --source "ADF Duplex" --format=tiff --resolution 600 > /tmp/scan.tiff
scanimage --mod... | true |
745ac2dbb72b2c54947bb32f9acf837ab782955c | Shell | scudiero/tools | /src/testjava | UTF-8 | 2,742 | 2.859375 | 3 | [] | no_license | #!/bin/bash
#=========================================================================================================================================================================
if [[ $1 == 'full' ]]; then
shift
myPath="$(dirname $0)"; myName="$(basename $0)";
warehouseDb='warehouse'
dbAcc='Read'; mySqlUser="l... | true |
596b36783d068db2e7f65a933bc2fd45d1411f7f | Shell | dk-proj/docker-dkdns | /container.sh | UTF-8 | 382 | 3.078125 | 3 | [] | no_license | workspace=/home/workspace/
case $1 in
build)
docker build docker/ -t dkdns
;;
run)
docker run -it -w $workspace --privileged=true -v $(pwd)/dkdns/:/home/workspace/dkdns --entrypoint /bin/bash dkdns
;;
*)
echo "usage: container.sh PARAM"
echo " PARAM:"
echo " build - build docker container"
... | true |
71c40885e808c75c1c155c9e0550b7e1f7b08f1c | Shell | vanniktech/config-home | /.prefs/ubuntu.sh | UTF-8 | 6,185 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
# Java / OpenJDK.
sudo add-apt-repository -y -u ppa:openjdk-r/ppa
sudo apt-get install openjdk-11-jdk
# Gradle.
sudo rm -rf /opt/gradle/ && \
sudo mkdir -p /opt/gradle/ && \
wget -q -O gradle.zip https://services.gradle.org/distributions/gradle-6.1-all.zip && \
unzip -q gradle.zip ... | true |
f0237955070c8f5a7e0f95cc0d6c7a323ea43836 | Shell | kompot/generator-rjanko | /generators/app/templates/dev.sh | UTF-8 | 276 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function run() {
tmux select-pane -t $1
tmux send-keys "$2" C-m
}
if [[ $TMUX ]]; then
tmux new-window
tmux splitw -v -p 30
tmux bind q kill-session
run 0 "npm run dev"
run 1 "nginx -p $(pwd) -c $(pwd)/nginx.conf"
else
tmux -CC new-session $0
fi
| true |
b44e10a20a7658af20af1a6ee51881ed2f021af3 | Shell | cichlidx/ronco_et_al | /mitochondrial_phylogenetics/src/make_mitochondrial_alignment.sh | UTF-8 | 611 | 3.140625 | 3 | [] | no_license | # m_matschiner Fri May 5 14:25:37 CEST 2017
# Load the mafft module.
module load mafft/7.300
# Make the output directory if it doesn't exist yet.
mkdir -p ../res/alignments
# Concatenate all fasta files into a single file.
echo ">orenil2" > tmp.fasta
cat ../data/reference/orenil2.NC_013663.fasta | tail -n +2 >> tmp.... | true |
f539ee69d229d9654258c1bef0e4ed0bf74d75cb | Shell | Megazig/wiipy | /cross_compile_python.sh | UTF-8 | 681 | 2.71875 | 3 | [] | no_license | # http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/
if [ ! -f Python-2.5.2.tar.bz2 ]
then
wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2
fi
rm -rf Python-2.5.2
tar xjf Python-2.5.2.tar.bz2
cd Python-2.5.2
export CC=gcc
export CXX=g++
./configure
make python Parser/pgen || e... | true |
9bd4db016990e0c7015c675e1e03c0781cfa3e4f | Shell | johnbergbom/security | /firewall/firewall | UTF-8 | 4,828 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (C) 2007 John Bergbom
#
### BEGIN INIT INFO
# Provides: custom firewall
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: firewall initscript
# Description: ... | true |
49340b74e1eb9cba387e3f3ea43fe7d4c81ed248 | Shell | Xilinx/Vitis_Libraries | /data_compression/L3/demos/libzso/scripts/xrmxclbin.sh | UTF-8 | 1,139 | 3.171875 | 3 | [
"Zlib",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | if [ -z $1 ]; then
echo "Number of devices argument missing"
exit 1
fi
if [[ -n ${1//[0-9]/} ]]; then
echo "Device count must be an integer"
exit 1
fi
if [ $1 -eq 0 ]; then
echo "No of devices must be greater than zero"
exit 1
fi
rm -rf /tmp/xrm_$USER.json
DEVICES=$1
printf "{\n" >> /tmp/xrm_$... | true |
c72437b67933de549d455b8286697b9e89ccda8d | Shell | Briix/dotfiles | /bin/caniuse | UTF-8 | 555 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# CanIUse.com Command Line Search Utility
#
# [Contributors]
# - Michael Wales, http://github.com/walesmd
# - Yoshua Wuyts, https://github.com/yoshuawuyts
#
# A basic sh function to search http://caniuse.com/
#
# Examples:
# caniuse
# caniuse border-radius
# caniuse "alpha transparency" counters "c... | true |
84b5ecf747ad2ffe5a5cb171693ee7f9f6a704f1 | Shell | sauravomar/shell-script | /aliases.sh | UTF-8 | 2,469 | 2.734375 | 3 | [] | no_license | #!/bin/bash
#----------------------------
#---------Variables----------
#----------------------------
USER=`who | cut -d ' ' -f1 | head -1`
#----------------------------
#-----Aliases----------------
#-----------------------------
alias ,="cd .."
alias ,,="cd ../../"
alias ,,,="cd ../../../"
alias ,,,,="cd ../../... | true |
1b4471a6b0c768286424deb58ab0e62633d9f44c | Shell | x2c3z4/recipes | /misc/test.sh | UTF-8 | 389 | 2.96875 | 3 | [] | no_license | #!/bin/bash
set -o nounset # Treat unset variables as an error
gcc vulnerable.c -g -fno-stack-protector -o vulnerable
gcc eggshell.c -g -fno-stack-protector -o eggshell
OFFSET=0
./eggshell -e 5000 -b 600 -o $OFFSET
OFFSET += 1000
print $BOF
./vulnerable $BOF
while [ $? neq 0 ];do
./eggshell -e 5000 -b 60... | true |
bfdc91788a4f29a9d246bbe20536e6f8262cec85 | Shell | Macaret/fabric-starter | /generate-peer.sh | UTF-8 | 896 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
source lib.sh
## Workaround until docker-compose issue 4601 is solved
# https://github.com/docker/compose/issues/4601
[ -n "${DOCKER_HOST}" ] && docker run -dit --name alpine --network fabric-overlay alpine
envSubst "templates/cryptogen-peer-template.yaml" "crypto-config/cryptogen-$ORG.yaml"
envSu... | true |
81dc20ad0e85803efb06fb5e42e5e94b20a74764 | Shell | ODEX-TOS/packages | /xfsprogs/repos/core-x86_64/PKGBUILD | UTF-8 | 971 | 2.765625 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer : Tobias Powalowski <tpowa@archlinux.org>
pkgname=xfsprogs
pkgver=5.8.0
pkgrel=1
pkgdesc="XFS filesystem utilities"
arch=('x86_64')
license=('LGPL')
url="https://xfs.org"
depends=('sh' 'libutil-linux' 'icu' 'device-mapper')
optdepends=('python: for xfs_scrub_all script'
'smtp-forwarder: for xfs... | true |
943861d936445d41fe034a776877daa5b5880ec6 | Shell | xiongqi1/web | /db_apps/sas/modem_conf_change.template | UTF-8 | 1,757 | 3.78125 | 4 | [] | no_license | #!/bin/sh
#
# Modem configuration change template
#
# Copyright (C) 2020 Casa Systems Inc.
#
nof=${0##*/} # Name of file/script.
nof=${nof%-*} # Remove mangled suffix
source /lib/utils.sh
source $($(test -n "$1") && dirname "$1" || echo .)/common
SAS_ENABLED="?<service.sas_client.enable>;"
logNotice "started... | true |
37ae3260dded2a82a6971ede389ed7ba4c63039f | Shell | darkwizard242/devopsubuntu1804 | /packer-build/mods/init_serverspec_tests.sh | UTF-8 | 806 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash -eux
serverspec_dest_dir="/opt/serverspec-tests"
## Rsync serverspec-tests directory to /opt and change ownership & permissions
## Execute ServerSpec tests for devopsubuntu1804
rsync -avzh /home/vagrant/serverspec-tests /opt/
chown -R root:root /opt/serverspec-tests
cd $serverspec_dest_dir
if [ "$PWD" = ... | true |
0b14692f1224ba448b065c12572e6265dbd48f2e | Shell | f0ghua/myPrivate | /bin/fmtcvt | UTF-8 | 1,424 | 4.5625 | 5 | [] | no_license | #!/bin/sh
# =========================================================
# This shell script convert all files in a directory
# to unix format
# =========================================================
#====================================================
usage()
{
echo "================================================... | true |
7a65286a3985100a1cb65e5513da101e70bd7e7f | Shell | prashao/aws-controllers-k8s | /scripts/lib/aws/sagemaker.sh | UTF-8 | 7,387 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive |
#!/usr/bin/env bash
set -Eeo pipefail
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT_DIR="$THIS_DIR/../../.."
SCRIPTS_DIR="$ROOT_DIR/scripts"
. $SCRIPTS_DIR/lib/common.sh
. $SCRIPTS_DIR/lib/testutil.sh
. $SCRIPTS_DIR/lib/aws.sh
#################################################
# f... | true |
f501f3144a665c575dc62b4beca2f96be872583e | Shell | desihub/desiutil | /bin/desiBootstrap.sh | UTF-8 | 3,525 | 4.125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Licensed under a 3-clause BSD style license - see LICENSE.rst
#
function usage() {
local execName=$(basename $0)
(
echo "${execName} [-a VERSION] [-b BRANCH] [-c CONFIG] [-h] [-m MODULESHOME] [-p PYTHON] [-t] [-v]"
echo ""
echo "Install desiutil on a bare system."
echo ""
ech... | true |
6c8e9852c62b1078981a98c9479a8965b53f80f1 | Shell | isabella232/speech-datasets | /swbd/asr1/run.sh | UTF-8 | 613 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Set bash to 'debug' mode, it will exit on :
# -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands',
set -e
set -u
set -o pipefail
log() {
local fname=${BASH_SOURCE[1]##*/}
echo -e "$(date '+%Y-%m-%dT%H:%M:%S') (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $*"
}
trai... | true |
1746fd88706640e268134753d25d0523442b2d20 | Shell | skilleyes/dotfiles | /.bashrc | UTF-8 | 7,684 | 3.46875 | 3 | [] | no_license | # ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# Se... | true |
0fc4f4d725a2aafd502766a60c992640631b7b64 | Shell | harisokanovic/archlinux-packages | /lokalize/repos/extra-i686/PKGBUILD | UTF-8 | 1,047 | 2.515625 | 3 | [] | no_license | # $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=lokalize
pkgver=15.08.0
pkgrel=1
pkgdesc='Computer-Aided Translation System'
url='http://kde.org/applications/development/lokalize/'
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde-... | true |
39f8d29355b524e01fccf9e7eb8daee26cb76f94 | Shell | zhuzhouliang/packer-test | /scripts/linux/RH-prepare-CSCDATA.sh | UTF-8 | 1,527 | 3.265625 | 3 | [] | no_license | #!/bin/bash
#Prepare directory and data for other scripts
echo \"****** Installing CSC SOE on AliCloud instance ******\"
echo \"Creating directory /root/csc\"
mkdir /root/csc
chmod 755 /root/csc
chown root:root /root/csc
echo \"Creating directory /root/logs/firstboot-rc_local\"
if [ ! -d /root/logs ]; then
mk... | true |
c80670f4a2c8b711f8c43d683b81352165fd026e | Shell | s0la/orw | /scripts/rofi_scripts/dmenu/select_torrent_content_with_size.sh | UTF-8 | 5,140 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function set() {
eval $1='$(sed "s/\(\\*\)\?\([][()\&]\)/\\\\\\\\\2/g" <<< "${2:-${!1}}")'
sed -i "s/\(^$1=\).*/\1\"${!1//\//\\/}\"/" $0
}
set_torrent_id() {
[[ $1 ]] && torrent_id=$1 ||
torrent_id=$(transmission-remote -l | awk '\
$1 ~ /^[0-9]+/ { ti = $1 } END { print gensub("([0-9]+).*", "\\1", ... | true |
ce2ab140d750bf3c960649c351a788ed2c3b6394 | Shell | rajansg/mediabox | /scripts/dos2unix.sh | UTF-8 | 337 | 3.578125 | 4 | [] | no_license | #!/bin/sh -e
cd $(dirname "$0")/..
if git ls-files -m | grep -q .; then
echo Fixing dos line endings is not safe with pending changes.
echo Commit pending changes first and rerun this script.
exit 1
fi
./scripts/find-dos.sh | while read path; do
echo fixing $path ...
git show HEAD:$path | tr -d '... | true |
a32b2a621712715b78c5036ecfd4bae755e2babc | Shell | cthomasdta/hidden-kosmos | /scripts/normalize.sh | UTF-8 | 469 | 2.9375 | 3 | [] | no_license | #!/bin/bash
POST_XSLT="`dirname $0`/spliced2orig+reg.xsl"
for i in $*; do
TARGET_CAB="`dirname $i`/`basename $i .orig.xml`.norm_tmp.xml"
TARGET_POST="`dirname $i`/`basename $i .orig.xml`.norm.xml"
curl -X POST -sSF "qd=@$i" -o "$TARGET_CAB" "http://www.deutschestextarchiv.de/demo/cab/query?fmt=tei"
xsltproc "... | true |
97416900d375f386165d5a7fa466773600b04fdb | Shell | MattJOlson/MattJOlson.github.io | /draft | UTF-8 | 151 | 2.921875 | 3 | [] | no_license | #!/bin/sh
DRAFT=_drafts/$1.md
if [ -e $DRAFT ];then
echo "Draft exists!"
else
echo -e "---\nlayout: post\ntitle: ####\n---" > $DRAFT
fi
| true |
5c2d5017ef0395bfdd003dbc7eff4952a7fb2def | Shell | huangw5/cheapstream | /docker/scripts/stop_acestream.sh | UTF-8 | 568 | 3.15625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin
ACEADDON=$(cd $(dirname "$0") && pwd)
ACECHROOT="androidfs"
PERMISSION=""
if [ $(id -u) != 0 ]; then
PERMISSION=$(which sudo)
fi
# kill the instance of acestream
$PERMISSION pkill -9 -f "/system/bin/acestream.sh" &>/dev/null
if mount | grep -E "( $ACEADDON/$ACECH... | true |
0531eb1ac465a47b08ba42f576842cd87750e02d | Shell | stefanpl/bash-utils | /utils/showSslCertificateInformation.sh | UTF-8 | 509 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
###
#
# Obtain information for a website's ssl certificate
# @param 1 – url where the certificate is delivered
#
###
function showSslCertificateInformation() {
if [ -z "$1" ]; then
echo "Provide a URL as the first argument"
return 1
fi
# If the URL starts with a protocol, rem... | true |
6281f5472a616b7830a5f70df433dfb7701747e0 | Shell | jupilhwang/cli-install | /guacamole-install.sh | UTF-8 | 3,612 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
GUACAMOLE_VERSION=1.2.0
GUACAMOLE_FQDN=jumpbox.kr.pivotal.io
ADMIN_PASSWORD=$(echo -n P@ssw0rd | openssl md5 | sed 's/(stdin)= //g')
LETSENCRYPT_EMAIL=jupil.hwang@gmail.com
#set -eo pipefail
sudo apt -y update && sudo apt -y upgrade && \
sudo apt -y install tomcat9 tomcat9-admin tomcat9-user ngi... | true |
97ee5b783ecb4d041e01f9ff85ffc30aee4c7559 | Shell | chakravarthyg/jenkins | /removeLogs | UTF-8 | 561 | 2.84375 | 3 | [] | no_license | #!/bin/bash
for j in $( eval dzdo echo /var /aflac );
do
for i in $( eval echo '*.log' '*.gz' '*.old');
do
echo
dzdo find $j -name $i -mtime +6 -type f -printf '%s/1000\n' | paste -sd+ - | bc
echo Kilo Bytes of space freed in $j folder with file extension $i
echo
d... | true |
d5de1900f7bba4c860e152a7fdb264bca3567199 | Shell | mavrck/dotfiles | /scripts/zsh-install.sh | UTF-8 | 695 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Installs .oh-my-zsh
if [ ! -d "$HOME/.oh-my-zsh" ]; then
# Installs Oh my ZSH with Homebrew (Mac)
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# Assumes default ZSH installation
ZSH_CUSTOM="$HOME/.oh-my-zsh/custom"
# Installs plugins
git clone https://gith... | true |
e9f9d3e638d69df97e62825aaedaa119f29162ab | Shell | PreCanMed-KI/DHR_code_share | /05_population_stratification/process_1000G_VCF.sh | UTF-8 | 1,463 | 2.96875 | 3 | [] | no_license | #!/bin/sh
# Download 1000 genomes VCF files and PED file
prefix="ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20130502/ALL.chr" ;
suffix=".phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz" ;
for chr in {1..22}; do
wget "${prefix}""${chr}""${suffix}" "${prefix}""${chr}""${suffix}".tbi ;
done
w... | true |
6b2dc6c19055110b71241da429d4cf0291b2e99e | Shell | ff3l/gluon-treatment | /files/lib/gluon/treatment/treatment | UTF-8 | 509 | 2.875 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/sh
for mac in $(ls /lib/gluon/treatment/macs); do
yes=$(ifconfig br-client | grep $mac|wc -l)
if [ $yes != 0 ]; then
if [ ! -x "/lib/gluon/treatment/macs/$mac"]
then
chmod +x "/lib/gluon/treatment/macs/$mac"
fi
/lib/gluon/treatment/macs/$mac
fi
rm /lib/gluon/treatment/macs/$mac
done
# try... | true |
eadf04be3ff454b2ab4377cf263d3072cb566bcf | Shell | ngokli/ducts | /test.sh | UTF-8 | 915 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
DUCTS_EXE=./ducts
echo "`date`"
if [ $# -eq 0 ]
then
test_files="$(ls test_cases/input* | sort -V)"
else
test_files="$@"
fi
error=0
if [[ ! -f $DUCTS_EXE ]]
then
echo "$DUCTS_EXE does not exist."
error=1
fi
for test_file in $test_files
do
if [[ ! -f $test_file ]]
then
echo "$test_file ... | true |
2d5745a0ef455746953674d0475a2c2072c7a58f | Shell | harsh-98/ctb | /ctb.sh | UTF-8 | 16,731 | 3.671875 | 4 | [] | no_license | #!/bin/bash
export PATH=${PWD}/bin:${PWD}:$PATH
export FABRIC_CFG_PATH=${PWD}
export VERBOSE=false
# Print the usage message
function printHelp() {
echo "Usage: "
echo " ctb.sh <mode> [-v]"
echo " <mode> - one of 'up', 'down', 'restart', 'generate' or 'upgrade'"
echo " - 'up' - bring up the network wi... | true |
12bcfddb502f722080ea4a6e87becbecf20630a7 | Shell | openinsight-project/grafinsight | /packaging/rpm/control/postinst | UTF-8 | 3,658 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
[ -f /etc/sysconfig/grafinsight-server ] && . /etc/sysconfig/grafinsight-server
startGrafInsight() {
if [ -x /bin/systemctl ] ; then
/bin/systemctl daemon-reload
/bin/systemctl start grafinsight-server.service
elif [ -x /etc/init.d/grafinsight-server ] ; then
/etc/init.d/grafinsight-serve... | true |
3a53f8f3f8e91074f8af9f1d7d60419e19af33a9 | Shell | Robinrrr10/shellscripts | /practiseShell/shellfiles/example3/file29.sh | UTF-8 | 212 | 3.5625 | 4 | [] | no_license | #checking whether the number of character is 1 or not
echo -e "Please enter a single character"
read num
if [ `echo $num | wc -c` -eq 2 ]
then
echo -e "This is single digit character"
else
echo -e "Invalid"
fi
| true |
bab77c6bb6abe59968f9914050a9c4e313a7c217 | Shell | wlmgithub/myrepo | /misc/beta_stg/grep_alpha.sh | UTF-8 | 304 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# lwang: grep beta boxes in alpha public log files
#
for f in `ls /export/content/*/i0[0-9][0-9]/logs/*public_access.log` ; do
#echo === $f
if test -e "$f"; then
for h in `cat hosts_beta_all`; do
#echo -e "\t${h%.stg}"
tail -1000 $f | grep -i ${h%.stg}
done
fi
done
| true |
68e517f289da4c34fcd0cb490e934b6ea829299f | Shell | Niceone9/252-nginx | /nginx-wc.sh | UTF-8 | 1,113 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#日志格式 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
#如192.168.1.6 - - [29/Oct/2020:16:23:52 +0800] "GET /favicon.ico HTTP/1.1" 200 5558 "http://www.discuz.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
L... | true |
902195f49e6ca49e68c45119ca2fd82dc2680b3d | Shell | 5l1v3r1/daal4py | /.circleci/run_and_compare.sh | UTF-8 | 652 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DAAL4PY_ROOT=$1
OUTPUT_ROOT=$2
PACKAGE=$3
OUT_FILE=$4
cd $DAAL4PY_ROOT/.circleci
touch ~/$OUT_FILE.out
export DESELECTED_TESTS=$(python deselect_tests.py ../deselected_tests.yaml --absolute --reduced)
echo "-m ${PACKAGE} -m pytest ${DESELECTED_TESTS} -q -ra --disable-warnings --pyargs sklearn"
cd && ((pytho... | true |
d59b790e8ed1c51c0f6cb0cf4215de8bbd9b4088 | Shell | smasoka/compiling | /casacore-install/compile_atlas.sh | UTF-8 | 800 | 2.578125 | 3 | [] | no_license | #!/bin/bash
#PBS -P RCHPC
#PBS -N atlas_compiling
#PBS -q serial
#PBS -l select=1:ncpus=24
#PBS -l walltime=02:00:00
#PBS -o /mnt/lustre/users/smasoka/compiling/atlas_compiling.out
#PBS -e /mnt/lustre/users/smasoka/compiling/atlas_compiling.err
#PBS -m abe
#PBS -M sakhile.harvey@gmail.com
module load chpc/astro/gcc/8... | true |
c52dfc29193b33ab8ab39f216751984c7b49ffce | Shell | easy-docker/mldonkey | /entrypoint.sh | UTF-8 | 1,522 | 2.953125 | 3 | [] | no_license | #!/bin/sh
mkdir -p /incoming/files
mkdir -p /incoming/directories
if [ ! -f /var/lib/mldonkey/downloads.ini ]; then
mldonkey &
echo "Waiting for mldonkey to start..."
sleep 5
/usr/lib/mldonkey/mldonkey_command -p "" "set allowed_ips 0.0.0.0/0" "set temp_directory /temp"
#启用网络
/usr/lib/mldonkey/m... | true |
461d0ce1365f25f22d0fa5dc6b111a4bfe03230c | Shell | galli-a/di | /di-mousepose.sh | UTF-8 | 4,172 | 3.796875 | 4 | [] | no_license | #!/usr/bin/env zsh -f
# Purpose: Download and install the latest version of Mousepose from <https://boinx.com/mousepose/overview/>
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2018-07-17
NAME="$0:t:r"
# Note: it appears in Finder as Mouseposé but in Terminal as Mousepose
INSTALL_TO='/Applicatio... | true |
5000860e40ff2ae8a11ed49680f315399cfa3dcb | Shell | MIT-LCP/physionet-build | /demo-files/static/published-projects/demoecg/10.5.24/doc/wug-src/wave/scripts/dossify-html | UTF-8 | 272 | 2.953125 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/sh
for i in $*
do
F=`basename $i .html`
G=`echo $F | sed 's/\./-/g'`
echo -n processing $F ...
sed -f fixlinks <$F.html >$G.htm
echo " done"
done
sed 's/FFFFFF/FFD0B0/' <wug.htm |
sed 's/LEFT"><SMALL>/CENTER">/' |
sed 's/<\/SMALL>//' >foo
mv foo wug.htm
| true |
6c5b7b198d4b57c0472a1ddd9f4e9fb6a018bd44 | Shell | Idlak/idlak | /idlak-egs/tts_tangle_custom/s2/local/mlsa_synthesis_pitch_mlpg.sh | UTF-8 | 10,828 | 2.75 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
#
# Copyright 2016 by CereProc LTD
#
# See the file COPYING for the licence associated with this software.
#
# Author(s):
# Blaise Potard, 2016
#
set -eo pipefail
# Allow setshell
#software=/idiap/resource/software
#source $software/initfiles/shrc $software
#win=/remote/lustre/1/temp/bpotard/src/kaldi-t... | true |
9a82acb7f70d2cafbb56be6d26502dfa03783e86 | Shell | webos-internals/tweaks | /control/prerm | UTF-8 | 916 | 3.03125 | 3 | [] | no_license | #!/bin/sh
SID="org.webosinternals.tweaks.prefs"
APPS="/media/cryptofs/apps"
SDIR="${APPS}/usr/palm/services/${SID}"
# Handle execution as pmPreRemove.script
if [ ! -d ${APPS} ]; then
echo "Requires webOS 1.3.5 or later"
exit 1
fi
if [ -z "${IPKG_OFFLINE_ROOT}" ]; then
IPKG_OFFLINE_ROOT=/media/cryptofs/apps
... | true |
fc6dc0ed1b56984e943337b60f8aaf547108c6f2 | Shell | vikeshyadav/cowin_tracker | /find.sh | UTF-8 | 841 | 3.203125 | 3 | [] | no_license |
CITY=$1
DATE=$2
AGE=$3
while [ 1 -le 2 ]
do
url_tmp=https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=$CITY\&date=$DATE
curl $url_tmp -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0' > data2.json
f... | true |
42267d601cc8b63659f28f048f52a56b0d1b1a1a | Shell | rollick/dotfiles-3 | /git/.local/bin/update-git-repos | UTF-8 | 3,397 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (C) 2016-2017 by Raphael Scholer
#
# 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,... | true |
ac09aab64dab69ee8e8628e17aad64328e24901a | Shell | projectdiscovery/nuclei | /integration_tests/debug.sh | UTF-8 | 1,263 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ $1 = "-h" ]; then
echo "Help for ./debug.sh"
printf "\n1. To run all integration tests of 'x' protocol:\n"
printf " \$ ./debug.sh http\n\n"
printf "2. To run all integration tests of 'x' protocol that contains 'y' in template name:\n"
printf " \$ ./debug.sh http self\n\n"
printf "3. To run all i... | true |
d5208361305bcb181e07d9590ec103c20aed3aa3 | Shell | cozyfex/linux-config | /ubuntu/ip.sh | UTF-8 | 704 | 3.21875 | 3 | [] | no_license | while getopts "i:g:e:" opt; do
case "$opt" in
i) IP="$OPTARG" ;;
g) GATEWAY="$OPTARG" ;;
e) ETHERNET_NAME="$OPTARG" ;;
?) helpFunction ;; # Print helpFunction in case parameter is non-existent
esac
done
echo "Change IP Configuration"
sudo cat <<EOT >/etc/netplan/00-installer-config.yaml
network:
version:... | true |
635093440e93e6638e81e114673ae6dd48995106 | Shell | jainmohit2001/cs242 | /eval_lab_2/q1.sh | UTF-8 | 489 | 3.671875 | 4 | [] | no_license | t=$1
num=$t
if [[ $t == "" ]]; then
echo "Please provide input in the command line itself"
exit
fi
len=`expr length $num`
temp=0
for (( i = 0; i < $len; i++ )); do
if [[ "${num:${i}:${i+1}}" != [0-9]* ]]; then
echo "Wrong Input. Please enter a Valid Number"
temp=1
break
fi
done
if [[ $tem... | true |
c8deb2dc915c1ef772f374b6ae1d45970f6ac436 | Shell | escenic/ece-scripts | /usr/share/escenic/build-scripts/ece-build-guide | UTF-8 | 7,501 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
ece_scripts_home=/usr/share/escenic/ece-scripts
log=~/ece-build-guide.log
conf_file=~/.build/build.conf
handbook_dir=~/handbook/
handbook_target_dir=/var/www/$USER
src_sdp_dir=${handbook_dir}sdp
##
function init
{
init_failed=0
if [ ! -d $ece_scripts_home ]; then
init_failed=1
error_m... | true |
bbdcd000828568feb028d3fab943556e219995ea | Shell | KannarFr/nunux | /zshrc | UTF-8 | 5,121 | 2.9375 | 3 | [] | no_license | autoload -Uz compinit colors vcs_info
# autojump conf
[[ -s /home/kannar/.autojump/etc/profile.d/autojump.sh ]] && source /home/kannar/.autojump/etc/profile.d/autojump.sh
compinit -u
stty start undef stop undef
# autosuggest
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# Setup GPG env
unset SSH_AGENT_P... | true |
0bf2c129da84d3cf187d7b5e88864bc967196dd6 | Shell | SantiagoGomezManrique/linux | /ex2.sh | UTF-8 | 144 | 3.375 | 3 | [] | no_license | #!/bin/bash
read -p "Enter a number: " number
if [[ $number -ge 10 ]]
then
echo "It has more than 1 digit."
else
echo "it has 1 digit."
fi
| true |
9207baf5d018eb5bd29061be5b7aecf64f55964f | Shell | naineel/cloudbreak-images | /scripts/openstack-s3-upload.sh | UTF-8 | 588 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -xe
: ${S3_TARGET:=s3://public-repo-1.hortonworks.com/HDP/cloudbreak}
: ${OS_IMAGE_ATLAS_VERSION:=latest}
: ${ATLAS_PROJECT:=cloudbreak}
OS_IMAGE_NAME=$(curl -sL https://atlas.hashicorp.com/api/v1/artifacts/hortonworks/$ATLAS_PROJECT/openstack.image/search?version=$OS_IMAGE_ATLAS_VERSION | jq '.version... | true |
edcbe4c9b2c7ab728c6d1ce2984aec182c09f89a | Shell | ringmaster/serverscripts | /spinup_ubuntu1204.sh | UTF-8 | 8,200 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Easy install:
# wget -qO- https://raw.github.com/ringmaster/serverscripts/master/spinup_ubuntu1204.sh | sudo bash
# This script is meant to configure a LNMP stack on Ubuntu 12.04 LTS
# It installs Nginx with PHP-FPM configured with a single pool
# PHP is installed with gd, mcrypt, mhash, imap, ldap, pd... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.