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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e824f41a9b8aae19fb38ad62f7d2eda7bb608030 | Shell | wanjing5234/study | /shell/src/main_menu.sh | UTF-8 | 2,677 | 3.765625 | 4 | [] | no_license | #!/bin/bash
############################################################
# vesion: 1.0
# Date: 2017/01/16
# Author: wj
# Email: 285477597@qq.com
# Description: menu
############################################################
#import env settings
source ./common/env_settings.sh
function initalize(){
#每次进... | true |
995286ab78335151cdf5c6624233c35bca3ee5dc | Shell | yoyoerx/fptrex | /build.sh | UTF-8 | 464 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#compile the objects
echo Building objects...
gcc -c -o fptr.o fptr.c
gcc -c -o test.o test.c
gcc -c -o test2.o test2.c
#link into executables
echo Linking Executables...
gcc -o fptr.exe fptr.o
gcc -o fptr-test.exe fptr.o test.o
gcc -o fptr-test2.exe fptr.o test2.o
#execute
echo
echo Testing no external... | true |
1b1f6d56341c61ed31de0efb0b38848066cf007c | Shell | minond/dots | /bin/colors-waterfall | UTF-8 | 105 | 2.875 | 3 | [] | no_license | #!/bin/bash
for i in {0..255}; do
echo $(tput setaf $i)########################$(tput sgr0) - $i
done
| true |
43c3c2003dedcb7fe50384a66bbf87368155d431 | Shell | PeeAke/simpl4-addons | /bin/gen-addon.sh | UTF-8 | 1,230 | 3.734375 | 4 | [] | no_license | #!/bin/sh
#########################################################
# usage
#########################################################
usage() {
echo "usage: $0"
}
usage() {
echo >&2
echo >&2 "usage: genaddon -n name"
echo >&2
echo >&2 'options:'
echo >&2 " -n : name"
echo >&2
}
####################... | true |
915f55c4f9f836417c184c30451e4455479ae0d3 | Shell | alyssagarcia/gw_workflow | /SEdiff.sh | UTF-8 | 5,856 | 3.203125 | 3 | [] | no_license | #!/bin/bash
umask 002
#######################################
### Protection against dead nodes ###
if [ ! -f /cvmfs/fermilab.opensciencegrid.org/products/common/etc/setup ]; then
echo "Unable to find fermilab CVMFS repo setup file, so I assume the whole repo is missing."
echo "I will sleep for four hours t... | true |
6d18f1f89493069e4d891a2ad42851b3b71ae01e | Shell | ishtiaqniloy/BUET-CSE-322 | /CSE_322_NS2/802.11_mobile/graph.sh | UTF-8 | 8,041 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#dir="/home/ishtiaq/ns/ns2_data/iTCP/"
dir="../../out/"
output_file_format="tcp";
under="_"
graph="GRAPH"
all="all"
nodeThr="nodeThr"
temp="temp"
var3="conges_avg"
cd out/
rm -rf graphs
mkdir graphs
cd graphs/
variation=1
while [ $variation -le 4 ]
do
if [ $variation -eq 1 ]; then
echo
echo
... | true |
a918cdda834658ba5c1aab69eb86ba0532c04a53 | Shell | johntiger1/computational-stylistic-variations | /formality/calc-formality-score.sh | UTF-8 | 2,066 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
while getopts ":i:o:slph" opt; do
case $opt in
s)
sort=True ;;
l)
lex=True ;;
p)
prep=True ;;
i)
input_file=$OPTARG ;;
o)
output_file=$OPTARG ;;
h)
echo "Usage: calc-formality-score.sh -i FILE -o FILE [-s] [-l] [-p]"
echo "-i input file (absolute path)"
echo "-o output file (absolute... | true |
779eb24de99e59c33c2ab3ffc2d1a7ccd5fbff50 | Shell | palak-jain/curriculum_learning | /cnnenc/preprocess/refine.sh | UTF-8 | 756 | 3.53125 | 4 | [] | no_license | #usage ./refine.sh path/to/dir/ filename_before_suffixlang src trgt
# eg. ./refine.sh ../data/bnhi/test test bn hi
dir=$1
file=$2
S=$3
T=$4
if [ $# -le 4 ]; then
echo "USAGE: ./refine.sh path/to/dir/ filename_before_suffixlang src trgt";
echo "EXAMPLE: ./refine.sh ../data/bnhi/test test bn hi";
exit 1;
... | true |
4ebccdd3a8725e81dc7af5b3584e1beef1a6df91 | Shell | keefeere/Traefik_for_Netology | /start.sh | UTF-8 | 1,949 | 3.25 | 3 | [] | no_license | #!/bin/bash
# ^Шебанг - указание использовать для запуска командный интерпретатор BASH
# Объявление переменной - название контейнера с приложением Flask
app="docker.flask"
# Следующие три команды необходимы для идемпотености файла подготовки
# start.sh - они убирают все образы и контейнеры чтобы процесс подготовки ... | true |
f70fdf067a3bb0c1a6a3684527719a621f6e9e38 | Shell | hw233/pet-server-lua- | /core/engine/db/install.sh | UTF-8 | 1,883 | 2.921875 | 3 | [] | no_license | #!/bin/sh
wget http://downloads.mongodb.org/src/mongodb-src-r1.8.3.tar.gz
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
wget http://sourceforge.net/projects/pcre/files/pcre/8.12/pcre-8.12.tar.bz2
rpm -ivh epel-release... | true |
4f37532a8d148e2fc2f5c2c40ae5bd3b05efdc63 | Shell | GeraltWitcher1/brood | /deploy/deploy.dev.bash | UTF-8 | 1,668 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Deployment script - intended to run on Brood development servers
# Main
APP_DIR="${APP_DIR:-/home/ubuntu/brood}"
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"
PYTHON_ENV_DIR="${PYTHON_ENV_DIR:-/home/ubuntu/brood-env}"
PYTHON="${PYTHON_ENV_DIR}/bin/python"
PIP="${PYTHON_ENV_DIR}/bin/pip"
... | true |
31afb15cdc4abe2e76c5df93150fb460730ea838 | Shell | mijdavis2/upstream | /release.sh | UTF-8 | 1,117 | 3.265625 | 3 | [
"CC-BY-3.0",
"MIT"
] | permissive | #!/bin/sh
# TODO: use cmd line args for pre-release option
VERSION=$(cat package.json | jq -r '.version')
USER=$(cat package.json | jq -r '.author')
REPO=$(cat package.json | jq -r '.name')
PRODUCT_NAME=$(cat package.json | jq -r '.build.productName')
# Release packaged application
yarn run build
# Assumes https://... | true |
f1747e2b6ed5626faa0c432cecec117477694d3c | Shell | eabyshev/base | /big-data/hadoop2/hadoop2/etc/init.d/hadoop-yarn | UTF-8 | 837 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Starts and stops hadoop JobTracker, and TaskTrackers.
hadoopVersion=2.3.0
case "$1" in
start)
start-stop-daemon --start --exec /opt/hadoop-$hadoopVersion/sbin/start-yarn.sh
;;
stop)
start-stop-daemon --start --exec /opt/hadoop-$hadoopVersion/sbin/stop-yarn.sh
;;
restart)
$0 stop
$0 start
;;
status)
... | true |
ec35507666a0c05ee281d256de6e9a3d72808114 | Shell | leowang1225/marek-build | /conf_drm.sh | UTF-8 | 547 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if test x$1 = x32; then
is64bit=false
archdir=i386-linux-gnu
export CC="gcc -m32"
export PKG_CONFIG_PATH=/usr/lib/$archdir/pkgconfig
else
is64bit=true
archdir=x86_64-linux-gnu
fi
rm -r build$1
cflags="-fno-omit-frame-pointer"
meson build$1 --prefix /usr --libdir /usr/lib/$archdir... | true |
f3149d8c69e983d3cf607de19d5485cd89c3aad9 | Shell | farid7/tesisMCC | /codes/topicos_cosSimiarity/partes_trasforma.sh | UTF-8 | 2,826 | 3.171875 | 3 | [] | no_license | #! /bin/bash
idFile=$1
textFile=$2
port=$3
output=$4
init=$5
fin=$6
re='^[0-9]+$' #encontrando id validos
declare -a modules=(1 2 3 4 5 12 13 14 16 17 19 20) #selected questions
#declare -a modules=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20) #all questions
simiarity() {
for i in $(se... | true |
bc631b9d06e08fa9dd55b6552ed66dba6a74fe92 | Shell | zyxue/pybin | /vq_pdf.sh | UTF-8 | 330 | 2.625 | 3 | [] | no_license | #!/bin/bash
# data must be in the first and second columns
# $1 is the xvg file
# $2, $3, $4 are the beg, end, step
# failed, doesn't work properly!!
# tmpfile=__________________temp___________________.xvg
# gen_hist.py $1 $2 $3 $4 > ${tmpfile}
# # # using 1st, 2nd columns
# vq_plot.sh ${tmpfile} using 1 2
# rm ... | true |
d98ab7b0a34a4732c885b0055aa1bc689513d038 | Shell | kennie98/AI-book-recommendation-system | /k8s/helper.sh | UTF-8 | 171 | 3.21875 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/bash
YELLOW='\033[1;33m'
GREEN='\033[1;32m'
NC='\033[0m' # No Color
print_header() {
echo -e "${YELLOW}$1${NC}"
}
print_info() {
echo -e "${GREEN}$1${NC}"
}
| true |
8f83906f17796eb4efce9bb6b24ee6acf888287f | Shell | alexzhangs/nginx-cache-tool | /nginx-cache-static/nginx-cache-static | UTF-8 | 1,922 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# nginx-cache-static --- A simple Bash script to show statistics for
# the Nginx cache.
# Copyright (C) 2015 Alex Zhang <alexzhangs@gmail.com>
# Author: Alex Zhang <alexzhangs@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this softw... | true |
928f27dd66ee7d635bbd95c547493988ee2fdb3e | Shell | muesli4/archlinux-packages | /gcoverfetch-git/PKGBUILD | UTF-8 | 548 | 2.640625 | 3 | [] | no_license | # Maintainer: Moritz Bruder <muesli4@gmail.com>
pkgname=gcoverfetch-git
pkgver=20160418
pkgrel=1
pkgdesc="Simple cover fetcher dialog using glyr and Gtk+."
arch=('x86_64' 'x86')
url=""
license=('GPL')
groups=()
depends=('glyr' 'taglib' 'gtkmm3')
makedepends=('make' 'glyr' 'taglib' 'gtkmm3')
provides=('gcoverfetch')
sou... | true |
49a198aeec91ed6e6158284ca3af5e09e0c42d84 | Shell | kcpt/content-scripts | /bootstrap.sh | UTF-8 | 3,023 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# bootstrap.sh
# content-scripts
#
# For details and documentation:
# http://github.com/inkling/content-scripts
#
# Copyright 2015 Inkling Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may ... | true |
dd268476a33f0301cdcd52a59dff41aff078fcbb | Shell | behboud/op-skill-sample-nodejs-howto | /hooks/post_new_hook.sh | UTF-8 | 772 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Shell script for ask-cli post-new hook for Node.js
# Script Usage: post_new_hook.sh <SKILL_NAME> <DO_DEBUG> <TARGET>
# SKILL_NAME is the preformatted name passed from the CLI, after removing special characters.
# DO_DEBUG is boolean value for debug logging
# Run this script one level outside of the sk... | true |
b7b4262726aa39e2da2577d77758638a93a7c5fe | Shell | runarfu/GuideScaff | /run.sh | UTF-8 | 4,637 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# Runar Furenes
# 2013-05-01
# Input variables
DIR=$1
NGUIDES=$2
WINDOWSIZE=$3
THRESHOLD=$4
NCUT=$5
GUIDE_DIR=$DIR/guidingGenomes
command_exists () {
type "$1" &> /dev/null ;
}
################################################################################
## MAIN PIPELINE... | true |
83f8d48bc3c71baf37d072c6e7ed2ebecca3e284 | Shell | jakelever/bio2vec | /build.sh | UTF-8 | 444 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SRC_DIR=word2vec/src
BIN_DIR=word2vec/bin
WORD2VEC_REPO=https://github.com/jakelever/word2vec.git
echo
echo "#####################"
echo "Cloning word2vec repo ($WORD2VEC_REPO)"
echo "#####################"
rm -fr word2vec
git clon... | true |
9310a4fc735da2e6087722a06d5e8ab661e7775e | Shell | robertgzr/dotfiles | /zsh/theme/simple.zsh-theme | UTF-8 | 1,477 | 3.578125 | 4 | [] | no_license | #!/bin/env zsh
local cdir=""
local git_info=""
__prompt::dir()
{
unset cdir
cdir="${PWD/#$HOME/~}"
# if (( ${#cdir} > 20 ))
# then
# cdir+="
# "
# fi
}
# __prompt::venv()
# {
# local venv=""
# # goenv
# if [ -n "$GOENV" ]; then
# venv+=" %{$FX[bold]$FG[012]%}($GOENV)%... | true |
63de8219d09337b76111e44ade40c4d6896d8174 | Shell | termux/termux-packages | /scripts/build/configure/termux_step_configure_haskell_build.sh | UTF-8 | 4,897 | 2.625 | 3 | [
"MIT",
"ISC",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Libpng",
"X11",
"BSD-3-Clause",
"Zlib",
"Apache-2.0"
] | permissive | termux_step_configure_haskell_build() {
termux_setup_ghc_cross_compiler
termux_setup_cabal
HOST_FLAG="--host=${TERMUX_HOST_PLATFORM}"
if [[ ${TERMUX_PKG_EXTRA_CONFIGURE_ARGS} != "${TERMUX_PKG_EXTRA_CONFIGURE_ARGS/--host=/}" ]]; then
HOST_FLAG=""
fi
LIBEXEC_FLAG="--libexecdir=${TERMUX_PREFIX}/libexec"
if [[ $... | true |
d46a417b911c74503183ec33d37fa7a80e33271c | Shell | UCL-RITS/rcps-buildscripts | /energyplus-8.9.0-bindist_install | UTF-8 | 1,110 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit \
-o nounset
package_name="energyplus"
package_version="8.9.0"
package_variant="bindist"
package_description="EnergyPlus™ is a whole building energy simulation program that engineers, architects, and researchers use to model both energy consumption—for heating, cooling, ventilation, lig... | true |
bc7de1773a6d90f9e6f86ff4896d85ef6e84bfa0 | Shell | humaAt/sero | /install.sh | UTF-8 | 1,110 | 3.234375 | 3 | [] | no_license | #!/bin/bash
root_path="$PWD"
bash update.sh
git_path="$root_path/src/github.com/sero-cash"
function sysname() {
SYSTEM=`uname -s |cut -f1 -d_`
if [ "Darwin" == "$SYSTEM" ];then
echo "Darwin"
elif [ "Linux" == "$SYSTEM" ];then
name=`uname -r |cut -f1 -d.`
echo Linux-V"$name"
el... | true |
c7ca8a38637e20935d32d32aaf78af159b448693 | Shell | drug2ways/drug2ways | /examples/openbiolink_network_run.sh | UTF-8 | 910 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# TODO: Download the repo https://github.com/drug2ways/results
# TODO: Set here your variables 'pkg_path' and 'output_path'
# TODO: so pkg_path points to the cloned repo in your computer
pkg_path=/Users/danieldomingo/PycharmProjects/results
output_path=/Users/danieldomingo/Downloads
lmin=4
lmax=8
... | true |
31576085a6746c3475584cdbe2291fdbb7f741e1 | Shell | importcjj/oh-my-ssh | /libexec/oh-add | UTF-8 | 907 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
server_host=""
server_host_name=""
server_user_name=""
server_identityfile="${SSH_ROOT}/id_rsa"
until [ -z "$1" ]
do
command="$1"
case "$command" in
"-h" | "--host" )
server_host="$2"
shift 2
;;
"-n" | "--host-name" )
... | true |
eca6e8e5ff659db1782890478e0716515f89cf0f | Shell | rbroemeling/SMIRC | /bootstrap-python-environment.sh | UTF-8 | 2,074 | 3.25 | 3 | [] | no_license | #!/bin/bash -e
. "${0%/*}/bootstrap.inc.sh"
# Python build-time library requirements.
aptitude install libbz2-dev libgdbm-dev libmysqlclient16-dev libreadline-dev libsqlite3-dev libssl-dev zlib1g-dev
# Add a "pythonbin" user who will be the owner/controller of our new python environment.
if ! id pythonbin >/dev/null ... | true |
3d6d1aa8c954fe3c74474545cab61b31cd2ea1f7 | Shell | foxsen/freepascal | /packages/gdbint/gen-gdblib-inc.sh | UTF-8 | 8,568 | 4.34375 | 4 | [] | no_license | #!/usr/bin/env bash
# Function to display help
usage ()
{
echo "Script used to easily create collection of libraries needed"
echo "to generate a Free Pascal IDE with debugger support."
echo "Usage: Copy this script to the directory where you just compile"
echo "a specific GNU debugger (for a specific target)"
... | true |
12314aa8a052ab94d02f7578f78648dafd47cf8b | Shell | cloudmesh/get | /deprecated/cloudmesh-master/ubuntu/futuresystems-14.04/test.sh | UTF-8 | 1,944 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o xtrace # trace output
set -o errexit # exit if a command fails
PROVISION_CMD="curl https://raw.githubusercontent.com/cloudmesh/get/master/cloudmesh/ubuntu/14.04.sh | bash"
IMAGE=futuresystems/ubuntu-14.04
FLAVOR=m1.medium
### name this test
tmpname=$(mktemp -d get-cloudmesh-test-XXXXX)
pu... | true |
4dddad8b4f514d8d08176059c221a3fd20174cb0 | Shell | contradict/cdist | /cdist/conf/type/__opencv/manifest | UTF-8 | 1,054 | 3.078125 | 3 | [] | no_license | #!/bin/bash
packages="
wget
build-essential
cmake
unzip
libqt4-dev
libjpeg-dev
libpng12-dev
libtiff4-dev
libjasper-dev
libopenexr-dev
libgtk2.0-dev
libdc1394-22-dev
libavbin-dev
libswscale-dev
libavformat-dev
libtbb-dev
libgstreamer-plugins-base0.10-dev
libv4l-dev
python-sphinx
nvidia-cuda-toolkit
nvidia-cuda-dev
"
fo... | true |
10f262e514fbca4a12932d5c1dce0e5447bd122e | Shell | anadiasmr/jenkins | /Virtual Machines/Common/bin/k | UTF-8 | 1,483 | 3.015625 | 3 | [] | no_license | #!/bin/bash
if [ "$1" = "pod" ] || [ "$1" = "pods" ]; then
echo kubectl get "$@"
kubectl get "$@"
elif [ "$1" = "pvc" ] || [ "$1" = "pvcs" ]; then
echo kubectl get "$@"
kubectl get "$@"
elif [ "$1" = "sts" ]; then
echo kubectl get "$@"
kubectl get "$@"
elif [ "$1" = "context" ] && [ -z "$2" ]; then
... | true |
a14c63280329fbd3e8b867abbac5436487d34942 | Shell | jiezi19971225/ahpuojDocker | /compose/init_slave.sh | UTF-8 | 820 | 3.265625 | 3 | [] | no_license | #!/bin/bash
set -e
# create replication user
MYSQL_ETL="mysql -hdb -P3306 -uroot -p${MYSQL_ROOT_PASSWORD} oj -s -e"
hive_table_sql="show master status;"
# File Position Binlog_Do_DB Bin_log_ignore_db
hive_table=$($MYSQL_ETL "${hive_table_sql}")
for param in $hive_table
do
params[$cnt]=$param
((cnt+=1))
done
# ... | true |
6467f643a17a35f921eb597d1cffde48ad477a14 | Shell | fungs/taxator-tk | /extended/binning-blast.bash | UTF-8 | 4,238 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
# binning-blast.bash - sample binning workflow using BLAST
#
# Written in 2014-2021 by Johannes Dröge code@fungs.de
#
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public domain
# worldwide. This ... | true |
4049aa0b4f8d3a19ffcbd8714b22b2ecccc76e77 | Shell | mauricio-figueroa/packageAndDeploy | /package-deploy.sh | UTF-8 | 3,186 | 3.796875 | 4 | [] | no_license | #!/bin/bash
ENVIRONMENT=
NOW="$(date +'%Y-%m-%d_%H'%M)"
SEPARATOR="-"
ZIP_EXTENSION=".zip"
S3_URL="s3://elasticbeanstalk-sa-east-1-980074370134/com/cash/app/"
function parseValidArguments() {
while :; do
case $1 in
-env|--environment) ENVIRONMENT="$2"; shift
;;
-h|--help) help
;;
... | true |
ad7abce9f4ab149537e6d26956db7090b4688007 | Shell | clustership/ocp4-hackfest | /ansible/baremetal-installer-libvirt/cleanup.sh | UTF-8 | 652 | 2.671875 | 3 | [] | no_license | #!/bin/bash
cluster_name=`egrep cluster_name: cluster.yml | awk '{ print $2 }'`
virsh destroy ${cluster_name}-bootstrap
virsh undefine ${cluster_name}-bootstrap
for i in $(seq 0 2)
do
virsh destroy ${cluster_name}-master-${i}
virsh undefine ${cluster_name}-master-${i}
done
for i in $(seq 0 1)
do
virsh destroy... | true |
4c2fbb242ee1b0cefdc9f595293b7942e1a85a9f | Shell | kaltepeter/docker-cicd-node | /test.sh | UTF-8 | 385 | 2.875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
[[ ${DEBUG:-} == true ]] && set -o xtrace
readonly __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
LOCAL_NAME=datasite/test-cicd-node
echo "Running tests against ${LOCAL_NAME}"
docker run --rm -v "${__dir}/test:/home/node/test:rw" -w /home/node/t... | true |
1c515c4f0795c8042954ec155ce9fef55855635b | Shell | disjunction/ludus | /reyode/java-server/QuizzerReyad/reyad_quiz | UTF-8 | 8,681 | 3.4375 | 3 | [] | no_license | #!/bin/sh
# default runtime
__jvm_default="/usr/lib/jvm/default-java"
# Sun runtimes
__jvm_sun4="/usr/lib/j2*1.4-sun"
__jvm_sun5="/usr/lib/jvm/java-1.5.0-sun /usr/lib/j2*1.5-sun"
__jvm_sun6="/usr/lib/jvm/java-6-sun /usr/lib/j2*1.6-sun"
# all sun runtimes
__jvm_sun="$__jvm_sun4 $__jvm_sun5 $__jvm_sun6"
# Sun version ... | true |
6570ebfe50dc120456c2025400ea9a5f1214827e | Shell | mygittestings/cutelittleturtle.github.io | /python-codes/build.sh | UTF-8 | 1,696 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
ALLOWEDFILES=("ybysource" "ybystream" "ybygongyanquanchang")
generate() # need 1 argument
{
if [[ $# -eq 0 ]]; then
printf "generate() expects 1 and only 1 input"
exit 1
elif [[ $# -eq 1 ]]; then
target=$1
else
printf "generate() expects 1 and only 1 in... | true |
2451dda0d21dc0d05b6948a2665f51e290ff82bf | Shell | khanith/Shell | /shell-scripting-main/Scripting/4_Loops/2d_while_loop.sh | UTF-8 | 132 | 2.875 | 3 | [] | no_license | #!/bin/bash
: '
This is an example to feed output of command to while loop
'
while read -r line
do
echo $line
done < <(ls -lt) | true |
4a57fd5f6cd78ad0d669e74ebe3d5c0743ce0e7b | Shell | mikestaub/slack-lunch-club | /scripts/post-build.sh | UTF-8 | 174 | 2.59375 | 3 | [] | no_license | #!/bin/bash
if [ "$CODEBUILD_BUILD_SUCCEEDING" = "1" ]; then
echo "Build succeeded for source version $CODEBUILD_SOURCE_VERSION"
else
echo "TODO rollback if deployed"
fi | true |
fee21c293e6975c04d24618f72795d24d22404f9 | Shell | agoose77/texat-local-cluster | /bin/texat | UTF-8 | 347 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
this_dir=$(dirname "${BASH_SOURCE}")
parent_dir=$(dirname "${this_dir}")
export SINGULARITY_CLEANENV=1
SINGULARITY_BIND="$SINGULARITY_BIND,${parent_dir}/data:/mnt/data"
SINGULARITY_BIND="$SINGULARITY_BIND,${parent_dir}/share/texat-sim-data:/opt/geant4-data"
export SINGULARITY_BIND
exec "$... | true |
1cfb605b33fa4912ef53cf8aca9473fc95afb89c | Shell | ddijk/HH50 | /HH50_fotos/hernoem.sh | UTF-8 | 227 | 3.5625 | 4 | [] | no_license | #/bin/bash
if [ -z "$1" ]; then
echo "Missing first arg: jaar";
exit 1;
fi
jaar=$1;
echo "Using jaar is $jaar";
for i in 2007*.JPG *.jpg ; do
echo "Processing: $i, rename to ${jaar}_$i" ;
mv "$i" "${jaar}_$i";
done
| true |
835206788db593237e25529f2a2e540a1fce0dcd | Shell | parkercoates/dotfiles | /.zsh/tab-on-empty-line-shows-files.zsh | UTF-8 | 711 | 3.09375 | 3 | [] | no_license | # Based on http://unix.stackexchange.com/a/32426/105025
function list-files()
{
local oldBuffer="$BUFFER"
local oldCursor="$CURSOR"
if [[ -z "$LISTINGFILES" ]]; then
BUFFER='ls '
CURSOR=3
LISTINGFILES=1
else
BUFFER='nonexistentcommand'
CURSOR=1
unset LIST... | true |
02b7e90155af6714df19b829fec1185f375eea81 | Shell | ozgurbtr/dotfiles | /linux/bin/tmux-spotify-info | UTF-8 | 648 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env sh
# Returns the current playing song in Spotify for Linux
title=`dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | awk '/title/{getline; print}' | sed 's|^[^"]*"... | true |
82e498e0e68c4d76694c1ea51659936d6360c3e3 | Shell | neosimsim/dotfiles | /install | UTF-8 | 1,693 | 4.03125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Copyright © 2018, Alexander Ben Nasrallah <me@abn.sh>
# Use of this source code is governed by a BSD 3-clause
# style license that can be found in the LICENSE file.
# Keep in mind where we where. We will need to change the directory to link to files.
CURRENT_WORKING_DIR=$PWD
cd $(dirname $0) # move to dir... | true |
4509dfc24b0ae17da68cac7eaa62a95fc868b08f | Shell | minyk/dcos-polynote | /docker/start.sh | UTF-8 | 1,347 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
CONF_DIR="/opt/polynote"
# templating polynote config with DC/OS bootstrap cli
cp -f ${CONF_DIR}/config ${MESOS_SANDBOX}/config
export CONFIG_TEMPLATE_config="config,/opt/polynote/config.yml"
/opt/mesosphere/bootstrap -resolve=false -verbose
if [ -f "${MESOS_SANDBOX}/hdfs-site.xml" ]; then
cp "${MESOS_... | true |
07f5a2e64ba40fd554b38ebc72f7bbcad7fc5f23 | Shell | vortex-rpm/php72t-pecl | /build.sh | UTF-8 | 820 | 3.484375 | 3 | [] | no_license | #!/bin/bash -e
ARTIFACTS="_ARTIFACTS"
DOCKER_REGISTRY="nonexistant.vortex-rpm.org"
if [ ! -d $ARTIFACTS ] ; then
mkdir -p $ARTIFACTS
fi
while read line
do
PECL_NAME=$(echo ${line} | awk '{print $1}')
NAME=$(echo ${line} | awk '{print $2}')
VERSION=$(echo ${line} | awk '{print $3}')
ITERATION=$(echo ${line} | aw... | true |
399bdbfa687e9f501b54f493f32e57211d08bd2d | Shell | goofyahead/concourse-ci | /load-db-run-test.sh | UTF-8 | 377 | 3.515625 | 4 | [] | no_license | #!/bin/sh
cmd="npm run integration-test"
>&2 echo "config host: $VAR_DB_HOST port: $VAR_DB_PORT user: $VAR_DB_USER"
# wait for the postgres docker to be running
while ! pg_isready -h $VAR_DB_HOST -p $VAR_DB_PORT -q -U $VAR_DB_USER ; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done
>&2 echo "Postgre... | true |
baa52b8018a651a2816f84e6bd7ae43723b0e838 | Shell | nc-lot/dotfiles | /bin/nvman | UTF-8 | 430 | 4.1875 | 4 | [] | no_license | #!/bin/sh
#
# A script to use Neovim as a man pager. It can handle the man file as
# an argument or on stdin.
page_cmd() {
exec nvim -c "set ft=man" "$@"
}
if [ -t 0 ]; then
# If stdin is a terminal, no data is being piped in, so man file
# must be an argument
if [ $# -eq 0 ]; then
echo "No ma... | true |
b629b089f97fbc7f7a771694138d02c819e879a7 | Shell | tamassh/log-retention | /puppet_module/logret/files/check_glutenvrij | UTF-8 | 505 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# Standard nagios exit codes
STAT_OK=0
STAT_WA=1
STAT_CR=2
STAT_UN=3
glutenvrij_stat="/var/lock/subsys/retention.lock"
if [ ! -f $glutenvrij_stat ];
then
echo "OK - Glutenvrij status is clean"
exit $STAT_OK
else
if [ ! -z "`find /var/lock/subsys/ -mmin +240 | grep retention.lock`" ]; then
echo "HOUS... | true |
c22fcb274f854ead8e4ef92adb055b73661fe423 | Shell | yaxife/protobuf | /csharp/generate_protos.sh | UTF-8 | 2,605 | 3.15625 | 3 | [
"LicenseRef-scancode-protobuf"
] | permissive | #!/bin/bash
# Generates C# source files from .proto files.
# You first need to make sure protoc has been built (see instructions on
# building protoc in root of this repository)
set -ex
# cd to repository root
cd $(dirname $0)/..
# Protocol buffer compiler to use. If the PROTOC variable is set,
# use that. Otherwise... | true |
eea4c938492a4c216db9c03053c6fd549d41e490 | Shell | lunchboxav/getenvoy.io | /ci/test | UTF-8 | 254 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
# Ensure CLI docs match latest GetEnvoy docs
./ci/regen
if [ "$(git status --porcelain -uno)" != "" ]; then
echo "The following CLI docs need to be regenerated:"
git status --porcelain -v -uno
git --no-pager diff
exit 1
fi
| true |
3c16594e12a7dcc55f5c6c2ae98e535035a4be55 | Shell | ml1796/functional-workshop | /code/RX_comparison/AFNI/convert_AFNItoNIFTI.sh | UTF-8 | 942 | 3.203125 | 3 | [] | no_license | #!/bin/bash
. ~/.bashrc
# Define path to AFNI results directory, model names, and contrast numbers
# ------------------------------------------------------------------------------------------
resultsDir=/Volumes/psych-cog/dsnlab/MDC/functional-workshop/results/AFNI
models=(3Ts all)
selfOther=13
age_selfOther=23
age2_s... | true |
0b493fded662b80828d3164aa06ae94c4c1aa2f4 | Shell | perekalov/wal-g | /link_libsodium.sh | UTF-8 | 546 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
readonly CWD=$PWD
readonly LIBSODIUM_VERSION="1.0.17"
test -d tmp/libsodium || mkdir -p tmp/libsodium
cd tmp/libsodium
curl --retry 5 --retry-delay 0 -sL https://github.com/jedisct1/libsodium/releases/download/$LIBSODIUM_VERSION/libsodium-$LIBSODIUM_VERSION.tar.gz -o libsodium-$LIBSODIUM_VERSION.t... | true |
db17821b52053deb200715e427b1dd3ba239a1c4 | Shell | sveronneau/openstack-cli-scripts | /Remove-OSD.sh | UTF-8 | 1,696 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Before running this, openrc must be loaded.
# > source openrc
#
clear
#
echo --- Getting list of Hosts and OSDs
echo
ceph osd tree
echo
echo "Please enter the Ceph Host Name you want to remove OSDs from: "
read host_name
#
###### Validate if node exist
echo
ok_host=$(ceph osd tree | grep -c... | true |
3ddd06135b4fda9a83b3d8ade69f8124313389c1 | Shell | lgoedde/Python | /Prelab02/.svn/text-base/yards.bash.svn-base | UTF-8 | 863 | 3.75 | 4 | [] | no_license | #! /bin/bash
#
#$Author$
#$Date$
#$HeadURL$
#$Revision$
if [[ $# != 1 ]]
then
echo "Usage: ./yards.bash <filename>"
exit 1
fi
if [[ ! -r $1 ]]
then
echo "Error: $1 is not readable"
exit 2
fi
max=0
while read line
do
conf=$(echo $line | cut -d' ' -f1)
yards=$(echo $line | cut -d' ' -f2-)
... | true |
0d95e5e072f9ba4604f95f7ef399d7bf4a60cad3 | Shell | primalcode/rundeck-buildpack | /bin/detect | UTF-8 | 252 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo "-----> START detect"
set -e
BUILD_DIR=$1
# This pack is valid for apps with sonar.properties
if [[ -f ${BUILD_DIR}/server/config/rundeck-config.properties ]]; then
echo "Rundeck!"
exit 0
else
exit 1
fi
echo "-----> END detect"
| true |
5f98cd9572872a13955712a21312bef1a9c652d1 | Shell | mmccann-mdsol/ctms_forge | /tools/data.sh | UTF-8 | 2,386 | 3.46875 | 3 | [] | no_license | # ---------------------------------------------------------------------------
# data.sh, General data functions
# CTMS Development Toolset
# ---------------------------------------------------------------------------
#
# Provides functions for working with CTMS data.
#
# WARNING: These tools are intended as development... | true |
2fca8e7e2187ee1d0d12c458f72f454e8ddb5bea | Shell | RevolutionTech/hummingbird | /go_hummingbird | UTF-8 | 1,054 | 3.84375 | 4 | [
"ISC"
] | permissive | #!/bin/bash
# This line is just here so that output from tcpdump does not conflict with entering the password for sudo
# but it also serves as a good introduction to the script
sudo echo "Go Hummingbird!"
# Determine the network interface
INTERFACE=$(echo $INTERFACE)
if [[ -z "${INTERFACE}" ]]; then
if [[ "${OSTY... | true |
67002491efe4e14029f1f8dab9c7da495cc6989e | Shell | ramnes/dotfiles | /bash/profile.bash | UTF-8 | 188 | 2.921875 | 3 | [] | no_license | #!/bin/bash
if [ -f ~/.bashrc ]; then
# shellcheck disable=SC1090
. ~/.bashrc
fi
if [[ $(tty) == /dev/tty1 && ! $DISPLAY ]]; then
exec xinit -- -ardelay 200 -arinterval 20
fi
| true |
c5694168d577054b56fb158646a7aad21f534126 | Shell | Saqibm128/tink | /tools/testing/cross_language/hybrid_encryption_test.sh | UTF-8 | 2,117 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
ROOT_DIR="$TEST_SRCDIR/__main__"
CC_ENCRYPT_CLI="$ROOT_DIR/tools/testing/cc/hybrid_encrypt_cli_cc"
CC_DECRYPT_CLI="$ROOT_DIR/tools/testing/cc/hybrid_decrypt_cli_cc"
JAVA_ENCRYPT_CLI="$ROOT_DIR/tools/testing/hybrid_encrypt_cli_java"
JAVA_DECRYPT_CLI="$ROOT_DIR/tools/testing/hybrid_decrypt_cli_java"
TEST_UTI... | true |
0975e3152028b563ba3dd310f4a6b73b498d86a9 | Shell | pharuq/dotfiles | /.zprofile | UTF-8 | 1,643 | 2.609375 | 3 | [] | no_license | export LANG=ja_JP.UTF-8
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
export ANDROID_HOME=/Users/ryomashindo/Library/Android/sdk
# 色
export LSCOLORS=gxfxcxdxbxegedabagacag
export LS_COLORS='di=36;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=3... | true |
1f650c6843ed23ae809f67c01ef9b930e261819a | Shell | hollodotme/PhProject | /dist/Skeleton/Vagrant/bootstrap.sh.skel | UTF-8 | 2,323 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
PROJECT_NAME="{%project_domain%}"
# link the uploaded nginx config to enable
echo -e "\e[0m--"
rm -rf /etc/nginx/sites-enabled/*
for name in dist doc test; do
# link
ln -sf /etc/nginx/sites-available/$name /etc/nginx/sites-enabled/020-$name
# check link
test -L /etc/nginx/sites-ena... | true |
9311ae8800ad39af44f3755cb7ad686a74a977f1 | Shell | rysgitty/apexctl | /src/genhwdb.sh | UTF-8 | 187 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -eu
: "${INPUTFILE:="$1"}"
: "${HWDB_BODY:="$2"}"
cut -f2 "${INPUTFILE}" | while read -r product
do echo 'evdev:input:b0003v1038p'"${product}"'*'
done
cat "${HWDB_BODY}"
| true |
2f9920e0a5acaa00aa1067f9be28b5133a8e316f | Shell | msp301/vimrc | /bin/install_neovim | UTF-8 | 1,105 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Neovim - https://neovim.io/
#
# Neovim is Vim for the 21st century.
# The editor is being refactored to tidy up its codebase to add some modern
# features whilst staying lightweight and true to the Vim we love.
#
# --- Install Neovim ---
#
# This script will build and install the latest Neovim release to s... | true |
0bc356f901313139f98a63aa5e7cb4831d41d0b5 | Shell | TheShellLand/exo | /readyUp/suspend-to-ram.sh | UTF-8 | 289 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Enable Ubuntu Suspend-to-RAM
# https://help.ubuntu.com/community/SuspendHowto
if [ ! $(grep apm /etc/modules) ]; then
echo "apm" >> /etc/modules
fi
# TODO: Edit /etc/defaults/grub
cat >> /etc/modprobe.d/blacklist <<EOF
blacklist shpchp
blacklist pciehp
EOF
# Reboot
| true |
e2291085cc341515393331d845edd6385e2ec206 | Shell | PriyaR-01/Bash-Practice-Problems | /Bash/p10.sh | UTF-8 | 522 | 4.28125 | 4 | [] | no_license | #!/bin/bash
#P10: Write a shell script which takes a name as an argument. If it begins with ‘f’ or ‘F’, then create a file with the input name; if it begins with ‘d’ or ‘D’, then create a directory with the input name. Otherwise, print an error message.
if [[ $1 == f* || $1 == F* ]]; then
if touch "$1"; then
... | true |
bed66160af0115473eb88f81ea7946da61b9fe61 | Shell | a-e/example-cukable | /remove_all_gems.sh | UTF-8 | 325 | 2.640625 | 3 | [] | no_license | #! /usr/bin/env bash
# Remove ALL gems without prompting
# Using xargs -L 1 to process gems one-by-one, which is slower but allows
# continuing when uninstall fails. This also helps to work around a gem 1.8.5
# bug that prevents uninstalling multiple gems at once
gem list | cut -d" " -f1 | xargs -L 1 gem uninstall -a... | true |
836eceb7066f9bc5ff66e38409bc2a8b1107472f | Shell | iorixxx/lucene-clueweb-retrieval | /scripts/knn.sh | UTF-8 | 2,079 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if [ -z "$TFD_HOME" ]; then
TFD_HOME=~/TFD_HOME
fi
for set in ROB04 GOV2 MQ09 CW09A CW09B CW12B; do
if [ -d "$TFD_HOME"/${set}/results ]; then
rm -rf "$TFD_HOME"/${set}/results
fi
mkdir -p "$TFD_HOME"/${set}/results
if [ -d "$TFD_HOME"/${set}/excels ]; then
r... | true |
36bbe862affe983e8d94c8d0cff42e3dc33f7628 | Shell | pmendelski/dotfiles | /vim/install.sh | UTF-8 | 532 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euf -o pipefail
declare -r DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && echo "$PWD")"
source "$DIR/../bash/.bash/util/terminal.sh"
installPlugins() {
mkdir -p ".vim/plugins"
curl -fLo "$HOME/.vim/plugins/vim-plug/plug.vim" --create-dirs \
https://raw.githubusercontent.com/junegunn/vi... | true |
dc79b339c9d5dc04d4d27f8d80a8f43914fc76b0 | Shell | gammay/RPA_open_source | /shell_script/networth.sh | UTF-8 | 742 | 3.53125 | 4 | [] | no_license | #!/bin/sh
# set -x
file="/d/holdings.csv"
networth=0
while IFS= read -r line
do
company=`echo "$line" | cut -d',' -f1`
if [ "$company" = "COMPANY" ]
then
continue
fi
if [ "$company" = "" ]
then
break
fi
code=`echo $line | cut -d',' -f2`
n... | true |
f23a6ae0fb2137430ed3ce721585261f13a5c213 | Shell | UCLALibrary/docker-cantaloupe | /src/main/docker/docker-entrypoint.sh | UTF-8 | 2,141 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash
# Define locations of our container's property values
PROPERTIES=/etc/cantaloupe.properties
PROPERTIES_TMPL=/etc/cantaloupe.properties.tmpl
PROPERTIES_DEFAULT=/etc/cantaloupe.properties.default
# Define location of centralized maven repository
MAVEN_REPO="https://repo1.maven.org/maven2"
# Find th... | true |
f0d39b42c459cce6a8cf4a8f9306cfcadacc3caa | Shell | doytsujin/mcp-common-scripts | /predefine-vm/define-vm.sh | UTF-8 | 1,695 | 3.6875 | 4 | [] | no_license | #!/bin/bash
set -e
functionsFile="$(pwd)/functions.sh"
if [[ ! -f ${functionsFile} ]]; then
echo "ERROR: Can not find 'functions' libfile (${functionsFile}), check your mcp/mcp-common-scripts repo."
exit 1
else
source ${functionsFile}
fi
if [[ -z ${VM_NAME} ]]; then
echo "ERROR: \$VM_NAME not set!"
exit 1... | true |
b6fdc521c2b5cadab5d546631741f71f1a1ecd1a | Shell | bitmakerlabs/legacy-front-end-development-script | /install.sh | UTF-8 | 5,763 | 3.96875 | 4 | [] | no_license | #!/bin/sh
# We wrap this whole script in a function, so that we won't execute
# until the entire script is downloaded.
# That's good because it prevents our output overlapping with curl's.
# It also means that we can't run a partially downloaded script.
# We don't indent because it would be really confusing with the h... | true |
fa1416736f0bd8cfe31e8c843adbd2ab11c108d0 | Shell | robobenklein/zinc | /tests/zincs_vcs.zsh | UTF-8 | 182 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zunit
@setup {
zinc_left=( zincs_vcs )
prompt_zinc_setup
}
@test 'VCS segment is present' {
run echo "$zinc_left"
assert "zincs_vcs" in "${(@)zinc_left}"
}
| true |
9dedea9e9de421f7e29ccd73869aed25ce01e714 | Shell | ModeladoFoundation/ocr-apps | /apps/examples/smith-waterman/prepare_inputs.sh | UTF-8 | 360 | 3.65625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
if [ $# -ne 5 ]
then
echo "Usage: ${0} <tile width> <tile height> <string1 file> <string2 file> <score file>"
exit 1
fi
# Determine the size of first file
SIZE1=`stat -c %s ${3}`
SIZE2=`stat -c %s ${4}`
SIZE3=`stat -c %s ${5}`
echo $SIZE1 $SIZE2 $SIZE3
# Concatenate both into a single file
cat ${... | true |
a968da191e92b1de43cc245faf980a505b87c33c | Shell | ajunlonglive/coroutine-benchmarks | /setup_env | UTF-8 | 444 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env sh
# put everything in go-fast mode. don't let CPUs sleep.
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
echo performance |sudo tee $i
done
# this is specific to my CPUs. 10 & 11 are hyper-threading in cores 4&5.
# so lets turn those down. (also set isolcpus=4,5,10,11 on the kerne... | true |
ab6db027b622e36d483a3ef02641d9d588435b8e | Shell | luyan0102/easywinbuilder | /download.sh | UTF-8 | 1,938 | 3.046875 | 3 | [
"MIT"
] | permissive | set -o errexit
echo Creating $DOWNLOAD directory...
if [ ! -d $DOWNLOAD ]; then
mkdir $DOWNLOAD
fi
cd $DOWNLOAD/
echo Downloading 7zip [unfortunately necessary for compiler extraction]...
wget -N --no-check-certificate http://7-zip.org/a/$SEVENZIP.zip
echo Downloading dependencies...
wget -N --no-check-certifica... | true |
938d0cfdc315909f9eee7db68f05bc8a828e0bab | Shell | greenboxal/korekube | /lib/ssl | UTF-8 | 1,925 | 3.84375 | 4 | [] | no_license | #!/bin/bash
teardown_ssl() {
if [ "$SSL_DEBUG" == "yes" ]; then
echo "[DEBUG] SSL artifacts left at $SSL_WORKING_DIR"
else
rm -rf $SSL_WORKING_DIR
fi
}
init_ssl() {
SSL_WORKING_DIR=$(mktemp -d)
SSL_CA_CERT=$SSL_WORKING_DIR/ca.pem
SSL_CA_KEY=$SSL_WORKING_DIR/ca-key.pem
# En... | true |
dd697c190db6cb4394a6d84a1011c59147fe44db | Shell | STAR-RG/shaker-artifacts-icsme | /TOSEM/evaluation/runall.sh | UTF-8 | 1,444 | 2.734375 | 3 | [] | no_license | #!/bin/bash
PID_EMULATOR=$1
### RQ1
NUM_EXECS_RQ1=$2
RUN_STATS_RQ1=$3
echo " ============================================="
echo " ================ RUNNING RQ1 ================"
echo " ============================================="
./rq1.sh $PID_EMULATOR $NUM_EXECS_RQ1 $RUN_STATS_RQ1
### RQ2
NUM_CONFIGS_RQ2=$4
NUM... | true |
79a302a67cca6d1e23a6294c95ee1b6eb4722768 | Shell | yiningzeng/ai-tools | /data-tools/rename.sh | UTF-8 | 582 | 3.75 | 4 | [] | no_license | #!/bin/bash
#$1 需要处理的文件夹路径 一定要以/结束
#$2 需要保存的文件夹路径 一定要以/结束
#$3 文件格式
SALVEIFS=$IFS
IFS=$(echo -en "\n\b")
n=1
function getdir(){
for element in `ls ${1}`
do
dir_or_file=${1}${element}
if [ -d ${dir_or_file} ]
then
getdir ${dir_or_file}
else
current=`date "+... | true |
6e7d0a136b97251bc34e83c40602453713f4da59 | Shell | delkyd/alfheim_linux-PKGBUILDS | /libmicrohttpd-git/PKGBUILD | UTF-8 | 844 | 2.515625 | 3 | [] | no_license | # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=libmicrohttpd-git
pkgver=0.9.55.r75.gc0168fde
pkgrel=1
pkgdesc="A small C library that make it easy to run an HTTP server as part of another application"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/libmicrohttpd/"
license=('LGPL')
depends=('gl... | true |
fd819b4e35667e007b964af3276c86c1dfc67c67 | Shell | targist/ardui | /arduino-library/generate-arduino-library.sh | UTF-8 | 423 | 2.828125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
set -eux
NANOPB_DIR=$1
NANOPB_CORE="${NANOPB_DIR}/pb_decode.h ${NANOPB_DIR}/pb_decode.c ${NANOPB_DIR}/pb_common.h ${NANOPB_DIR}/pb_common.c ${NANOPB_DIR}/pb.h"
GENERATED_FILES="generated/common.pb.h generated/common.pb.c"
ARDUI_FILES="ArdUI.h ArdUI.cpp"
${NANOPB_DIR}/generator/nanopb_generator.py \
-D ./... | true |
32863fc767f1820c7088483a67b5c1ba750b29b4 | Shell | c0ming/StaticFramework | /RNPatchSDK/BuildScript.md | UTF-8 | 1,275 | 2.546875 | 3 | [] | no_license | #!/bin/sh
set -e
if [ -d "${SRCROOT}/build" ]; then
rm -rf "${SRCROOT}/build"
fi
if [ -d "${SRCROOT}/${PROJECT_NAME}.framework" ]; then
rm -rf "${SRCROOT}/${PROJECT_NAME}.framework"
fi
# 需要在 Targets -> RNPatchSDK(不要选择错) -> Build Settings 里设置 MACH-O TYPE 为 Static Libraray,Other C Flags 添加-fembed-bitcode
xcodebuild -... | true |
2b94addad201f54fa63e6244467341062f807ca8 | Shell | dgrijuela/scriptator | /ubuntu_mysql.sh | UTF-8 | 1,001 | 3.46875 | 3 | [] | no_license | #!/bin/bash
dbrootpass=root
dbname=jobs_development
dbuser=development
dbpass=development
sphinx=true
printf "Installing MySQL and setting it up..."
apt-get -y install libmysqlclient-dev > /dev/null 2>&1
debconf-set-selections <<< "mysql-server mysql-server/root_password password $dbrootpass"
debconf-set-selections <... | true |
354be183a2fe702b9cb399fa75ea6c24af3b14e2 | Shell | Ponce/SBo-git | /graphics/qcomicbook/qcomicbook.SlackBuild | UTF-8 | 1,874 | 3.4375 | 3 | [] | no_license | #!/bin/sh
# Slackware build script for QComicBook:
# a program to visualize digitalized comic books
# Original version written by Amiralul - tanaselia@gmail.com
# Currently maintained by Niels Horn - niels.horn@gmail.com
# revision date 2009/12/14
PRGNAM=qcomicbook
VERSION=0.5.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
... | true |
7c3b11457f65bd596ed636de0d7165e84f0b5075 | Shell | ssorj/boneyard | /tubadev/tuba/bin/tuba-encode | UTF-8 | 1,761 | 3.390625 | 3 | [] | no_license | #!/bin/bash
shopt -s huponexit
if [[ -z $TUBA_HOME ]]
then
# XXX
TUBA_HOME="/usr/local/share/tuba"
fi
if (( $# != 3 ))
then
echo "$0: Expected 3 arguments; found $#"
exit 1
fi
file=$1
format=$2
content=$3
nice projectx -tom2p "$file"
encode="exec nice mencoder -quiet -oac copy -ovc lavc -noautoexp... | true |
337046b86a0db1a64cbf7ccbed5df4510fec67e7 | Shell | SweBarre/gbt | /sources/gbts/car/git.sh | UTF-8 | 25,435 | 3.625 | 4 | [
"MIT"
] | permissive | function GbtCarGit() {
if [[ $GBT_CAR_GIT_DISPLAY == 0 ]]; then
return
fi
local defaultRootBg=${GBT_CAR_BG:-light_gray}
local defaultRootFg=${GBT_CAR_FG:-black}
local defaultRootFm=${GBT_CAR_FM:-none}
local defaultRootFormat=${GBT_CAR_GIT_FORMAT-' {{ Icon }} {{ Head }} {{ Status }}{{ A... | true |
4ddfd75ba1cb97e346521620ee4a2d6d3951cff5 | Shell | Korinin/mediaserver_utorrent-plex_ubuntu | /ubuntu_nout_closing_the_lid.sh | UTF-8 | 1,053 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# Make sure the script is being executed with superuser privileges.
if [[ "${UID}" -ne 0 ]]
then
echo 'Please run with sudo or as root.'
exit 1
fi
#Put the following text into the file. Note that since we are going to use systemd to start uTorrent, we don’t need the -daemon option in the start comman... | true |
40552f8902b7b47ea80a9f9def0772364dc8546a | Shell | cobrajs/homebin | /umt | UTF-8 | 396 | 3.421875 | 3 | [] | no_license | #!/bin/bash
FONT="-*-mintsmild-*-*-*-*-16-*-*-*-*-*-*"
DEVICE=$(mount | grep 'vfat' | awk '{ print $3 }' | dmenu -fn "$FONT")
if [[ $DEVICE != "" ]]; then
gksudo -m "Please provide your password for umounting $DEVICE" umount $DEVICE
if [ $? -ne 0 ]; then
MESSAGE="Failed to umount $DEVICE"
else
MESSAGE=... | true |
cf4958aea28cfb3c390fd642f3fa43cab2a6c6f3 | Shell | zcchen/nas-docker-compose | /local/nextcloud/services/etc_s6/occ-command/occ-command/users.sh | UTF-8 | 2,034 | 3.8125 | 4 | [] | no_license | #!/usr/bin/env sh
occ_cmd="php /var/www/html/occ"
ocs_api_base="http://nextcloud-nginx/ocs/v1.php"
nextcloud_remote_api="http://nextcloud-nginx/remote.php"
users_homedir=/var/www/html/data/
create_users_and_shares()
{
# parameters handler
username=$1
password=$2
isUserEnable=$3
groupname=$4
sh... | true |
ed3bf9a681a234eb66e143a44aab4495b37c0f0e | Shell | CAFA1/afl | /qemu_mode/qemu-2.10.0/tests/qemu-iotests/154 | UTF-8 | 18,733 | 2.984375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"GPL-2.0-only",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# qcow2 specific bdrv_pwrite_zeroes tests with backing files (complements 034)
#
# Copyright (C) 2016-2017 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ve... | true |
f21f74596b8232b38ef49f0bf280a1f291b58d7d | Shell | aslushnikov/gonzales-pe | /scripts/build.sh | UTF-8 | 417 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
rm -rf lib
mkdir -p lib
printf "\n\
----------------------------\n\
Generating webpack modules\n\
----------------------------\n\n"
if [ $# -eq 0 ]; then
./node_modules/.bin/webpack --module-bind "json=json"
else
./node_modules/.bin/webpack --module-bind "json=json"
syntaxes=$@
for syntax in $s... | true |
7e6644d81da4082c22c0d70e543b0a4ff3db831b | Shell | roy2220/dotfiles | /local/.local/src/1-install-gocryptfs.bash | UTF-8 | 257 | 2.75 | 3 | [] | no_license | set -eu${DEBUG+x}o pipefail
TEMP_DIR=$(mktemp --directory)
git clone --depth=1 https://github.com/rfjakob/gocryptfs.git "${TEMP_DIR}"
pushd "${TEMP_DIR}"
PATH=${PATH}:/usr/local/go/bin ./build-without-openssl.bash
popd
rm --force --recursive "${TEMP_DIR}"
| true |
d4ae364ede5438b198237d4a8c1014102127fa40 | Shell | cache2k/cache2k-benchmark | /processBenchmarkResults.sh | UTF-8 | 10,439 | 3.765625 | 4 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | #!/bin/bash
# processBenchmarkResults.sh
# Copyright 2013 headissue GmbH, Jens Wilke
# This script processes the benchmark results into svg graphics. Needed tools: gnuplot and xml2.
#
# Run it with the following subcommands:
#
# copyData copy the data from the benchmark run to the target directory
# process ... | true |
eb27c08563bb4635cf635a87423981290cefd0a8 | Shell | julianpistorius/dae.archive | /bin/add_file.sh | UTF-8 | 372 | 2.828125 | 3 | [] | no_license | #!/bin/bash
echo $1 $2 $3 $4
sudo -u $3 -H sh -c "git clone /home/$3/archive.git /tmp/archive.$3.tmp"
sudo -u $3 -H sh -c "cp \"$1\" \"/tmp/archive.$3.tmp/$2\""
pushd /tmp/archive.$3.tmp
sudo -u $3 -H sh -c "git add \"$2\""
sudo -u $3 -H sh -c "git commit -am \"$4\""
sudo -u $3 -H sh -c "git push origin master"
popd... | true |
282668d522d3c3503f63be203acd34ca68a2f9e0 | Shell | Jean-Baptiste-Lasselle/elastic-stack-tuto | /exemple-1-utilisation-basique-logstash.sh | UTF-8 | 2,024 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# ----------------------------------------------------------------------------------------------------------------------
#
######### -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -
######### -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -#... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.