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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
87e974e552feb6f0ec21d5ce961eb3e60d61506b | Shell | AlejoAsd/dotfiles | /install/install.sh | UTF-8 | 776 | 4.1875 | 4 | [] | no_license | #!/bin/bash
DIR="$(basename $(readlink -f ${0%/*}))"
FULLPATH="$(readlink -f $(dirname "$0"))"
cd $FULLPATH
# Create backup folder if it doesn't exist
[ -e "$FULLPATH/bak" ] || mkdir "$FULLPATH/bak"
# Include hidden files in results
shopt -s dotglob
# Get all files starting with . in FULLPATH
for FILE in .[^.]*; do
... | true |
f1316d2db37852b1a9f1a5a813c93b50d9d1b8ab | Shell | estadaoDados/dotfiles | /bootstrap.sh | UTF-8 | 1,814 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
echo "1 - Instalando pacotes básicos iniciais"
sudo aptitude install -y ruby rdoc irb git vim
echo "2 - Baixando RubyGems no diretório ~/tools/"
mkdir -p ~/tools
cd ~/tools
wget http://production.cf.rubygems.org/rubygems/rubygems-2.3.0.tgz
echo "3 - Extraindo o pacote RubyGems"
tar xzf rubygems-2... | true |
af39182179b1d0ed4962e13d1d267552c0b60cc0 | Shell | cchet/Docker | /JEE-7-SSO/Postgres/backup.sh | UTF-8 | 798 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# FILE_NAME the env var for the file name to import
if [ "$ACTION" == "EXPORT" ]
then
for entry in ${DB_NAMES//,/ } ; do
DB_ARR=(${entry//=/ })
pg_dump -U ${POSTGRES_USER} ${DB_ARR[0]} > /tmp/backups/${DB_ARR[0]}-$(date +"%Y%m%d_%H%M%S").backup.sql
done
elif [ "$ACTION" == "IMPORT" ]
then
for en... | true |
00ee47ac3a1d053f7b15d53417a891e73b6a9d05 | Shell | k-rister/bench-hwlatdetect | /hwlatdetect-base | UTF-8 | 1,790 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
function exit_error() {
local msg="$1"; shift
local code="$1"; shift
if [ -z "$code" ]; then
code=1
fi
echo '{"recipient":{"type":"all","id":"all"},"user-object":{"error": "'$msg'"}}' >msgs/tx/error
echo "$msg"
exit $code
}
function dump_runtime() {
echo env:
en... | true |
e6fbebd785288aecea705eb42282655777d52909 | Shell | natebosch/dotfiles | /bin/default_find_files | UTF-8 | 301 | 3.0625 | 3 | [] | no_license | #!/bin/bash
if command -v ag >/dev/null; then
ag -l --nocolor --nogroup --depth 10 --hidden --ignore .git/
else
command find -L . \
\( -name .git -o -path '*/\\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -type f -print \
-o -type l -print 2>/dev/null | sed 1d | cut -b3-
fi
| true |
685921939a3fcf4ea108b15541194c96cce3a926 | Shell | slimlime/iOS12samplecode | /10/export_to_peaks_dir | UTF-8 | 264 | 2.53125 | 3 | [] | no_license | #!/bin/sh
TARGETDIR="/Users/tokorom/develop/peaks/iOS12samplecode/10/"
pushd $TARGETDIR
git pull
popd
git checkout-index -a -f --prefix=$TARGETDIR
pushd $TARGETDIR
git add .
git commit -m "10章 tvOS12 のサンプルコードを更新"
git pull
git push
popd
| true |
c64ecad1689b161065b42b10364bb8284370474c | Shell | apatlpo/mit_equinox | /launch/launch-jlab.sh | UTF-8 | 1,885 | 4.03125 | 4 | [] | no_license | #!/bin/bash
set -e
# Usage:
# bash
# source activate equinox
# ./launch-jlab.sh (does not try connect to dashboard)
# ./launch-jlab.sh wait (wait for node file)
# ./launch-jlab.sh 1208493.datarmor0.nodefile (use a specific node file)
#
# If you want to specify an conda environment use: -e <env_name>
#... | true |
5b559103b560a5766b0410c46cd6c758ebe0ef24 | Shell | Gldkslfmsd/de-cs-NMT | /data/preprocess.sh | UTF-8 | 216 | 2.515625 | 3 | [] | no_license | if [ ! -z "$1" ]; then
BASE="$1/"
fi
MOSES=$BASE""moses/scripts/tokenizer
perl $MOSES/remove-non-printing-char.perl | \
perl $MOSES/replace-unicode-punctuation.perl | \
perl $MOSES/normalize-punctuation.perl
| true |
ea6378010e429af9447d04001828b3c3aebf56c1 | Shell | faroncoder/falcon-fly | /kills/1d7313da-6967-11e6-be7a-9708d0125dda-ff.vid.mp4.go | UTF-8 | 3,731 | 3.15625 | 3 | [] | no_license | #!/bin/bash
THISVERSION=730ebd32-d446-11e5-b1f0-7bf895f2366a
FILEGET=( $@ )
if [[ ! -d "$PWD/new-mp4" ]]; then
mkdir "$PWD/new-mp4" -p 2> /dev/null;
fi
if [[ ! -d "$PWD/mediainfo" ]]; then
mkdir "$PWD/mediainfo" -p 2> /dev/null;
fi
if [[ ! -d "$PWD/origs-trash" ]]; then
mkdir "$PWD/origs-trash" -p 2> /dev/null;
fi
... | true |
eb32c4baf13e6e2f84fe83517a582fc46d86c905 | Shell | Kurlee/DockerUnityPipeline | /ci/set_registry_variables.sh | UTF-8 | 1,174 | 2.75 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
set -ex
if [ "$CI_COMMIT_REF_NAME" = "master" ]; then
export REGISTRY=$CI_REGISTRY_IMAGE:$TAG
export BASE_IMAGE=$CI_REGISTRY_IMAGE:$VERSION$BUILD
else
export REGISTRY=$CI_REGISTRY_IMAGE:$TAG-$CI_COMMIT_REF_SLUG
export BASE_IMAGE=$CI_REGISTRY_IMAGE:$VERSION$BUILD-$CI_COMMIT_REF_SLUG
fi
export... | true |
3ec8ede6d6ab8286fe8b9835bd82c3c6dfe750b9 | Shell | rthallisey/atomic-osp-installer | /docker/nova-controller/nova-novncproxy/start.sh | UTF-8 | 869 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
. /opt/kolla/kolla-common.sh
cfg=/etc/nova/nova.conf
check_required_vars PUBLIC_IP NOVA_NOVNC_PROXY_SERVICE_HOST NOVA_NOVNC_PROXY_PORT \
NOVA_NOVNC_BASE_ADDRESS
crudini --set $cfg DEFAULT log_file "${NOVA_NOVNCPROXY_LOG_FILE}"
# Listen on all interfaces on port $NOVA_NOVNC_PRO... | true |
75bf17277bd1341f1088dfad54838b624370e5bb | Shell | nagyist/splunk-shuttl | /test/sh/build_test_it_tests/it-file-runs-ant.sh | UTF-8 | 622 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Tests whether a script runs ant without having ant in the PATH variable.
script_dir=$(dirname $0)
it_file=$1
PATH_ORIGINAL=$PATH
# Set path to be minimal and it should not contain ant
export PATH=/bin
it_file_output=$($script_dir/../../../$it_file) &> /dev/null
# Restore path
export PATH=$PATH_ORIGINA... | true |
80407fed726db31a4d84261771614c9381017b70 | Shell | esquilo-azul/redmine_with_git | /installer/tasks/gitolite_user.sh | UTF-8 | 161 | 2.921875 | 3 | [] | no_license | #!/bin/bash
set -u
set -e
function task_condition {
id -u "$gitolite_user" >/dev/null 2>&1
}
function task_fix {
sudo useradd --system "$gitolite_user"
}
| true |
6f1f5d9324f6f4efaa5103d909076632d1ff5fab | Shell | gleisonnanet/pjsip-android-builder | /openh264-build-target-archs | UTF-8 | 1,738 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
. config.conf
NDK_PATH="$DOWNLOAD_DIR/${NDK_DIR_NAME}"
SDK_TOOLS_PATH="$DOWNLOAD_DIR/${SDK_DIR_NAME}"/tools
OPENH264_PATH="$DOWNLOAD_DIR/${OPENH264_DIR_NAME}"
LIB_PATH="${OPENH264_BUILD_OUT_PATH}/libs"
LOG_PATH="${OPENH264_BUILD_OUT_PATH}/logs"
TMP_DIR="/opt/pj/tmp/openh264"
export PATH=${SDK_TOOLS_PA... | true |
f4802e2b1dc0849c06b1284c0e15d1113db7ce2d | Shell | iikirilov/besu-quickstart | /privacy/run.sh | UTF-8 | 1,687 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# Copyright 2019 ConsenSys AG.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | true |
fb472350da24e1062f6e945507ed80c3e8726325 | Shell | fredhutchio/argo-navis | /beast.sh | UTF-8 | 4,894 | 3.78125 | 4 | [] | no_license | #!/bin/bash
source $(dirname $0)/util.sh
source $1
# COMPUTE METADATA IF NEEDED!
# ===========================
if [[ $METADATA_SPECIFICATION == "regex" ]]
then
# First make sure we actually have an alignment to operate on
if [[ ${ALIGNMENT} == "" ]]
then
echo "Must have alignment in order to specify metad... | true |
a807baae8f9aa85c324e45e257c15a68c829eb30 | Shell | wjoel/nomadic-adventures | /packer/files/stop-graylog.sh | UTF-8 | 361 | 3.640625 | 4 | [] | no_license | #!/bin/sh
GRAYLOG_PID=/tmp/graylog.pi
PS=${PS:=$(which ps)}
if test -e "$GRAYLOG_PID"; then
PID=$(cat ${GRAYLOG_PID} 2>/dev/null)
echo "Stopping graylog-server ($PID) ..."
echo "Waiting for graylog-server to halt."
kill $PID
while "$PS" -p $PID > /dev/null; do sleep 1; done;
rm -f "${GRAYLOG_PI... | true |
7ed5e1ffbc16ad9fa1ed23fc316ca81999981509 | Shell | barrygu/gaovid | /xjoin.sh | UTF-8 | 471 | 3.21875 | 3 | [] | no_license | #!/bin/bash
ff_path=/cygdrive/d/Utils/ffmpeg-20141017-git-bbd8c85-win64-shared/bin
fn_in=
fn_out=
echo total input files is $#
for z in $@
do
f=${z%.mp4}
[ -n "$fn_out" ] && fn_out=$fn_out"-"
fn_out=$fn_out$f
[ -n "$fn_in" ] && fn_in=$fn_in"|"
fn_in=$fn_in$f.ts
$ff_path/ffmpeg -i $f.mp4 -vcodec copy -acodec cop... | true |
023ca35ff5e296f08600f7a8095e6fed4cde6e5b | Shell | onap/archive-dcae-demo | /dcae-demo-controller/src/main/docker-build/controller-install.sh | UTF-8 | 830 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive |
set -e
if [ ! -z ${http_proxy} ]; then echo "Acquire::http::proxy \"${http_proxy}\";" >> /etc/apt/apt.conf; fi && \
if [ ! -z ${https_proxy} ]; then echo "Acquire::https::proxy \"${https_proxy}\";" >> /etc/apt/apt.conf; fi
apt-get update ; apt-get install -y maven openjdk-7-jdk curl dnsutils zip telnet
### GROOVY
... | true |
f767b4011c9571eb84a81f6fa34bc4c120da0863 | Shell | moldyn/Clustering | /src/make_version.sh | UTF-8 | 975 | 2.765625 | 3 | [
"BSD-2-Clause"
] | permissive |
v_dir=$1
if [ ! -d $v_dir ]; then
echo "$v_dir does not exist. will create it."
mkdir $v_dir
fi
cp -r clustering.cpp\
CMakeLists.txt\
config.hpp.cmake.in\
density_clustering.cpp\
density_clustering.hpp\
density_clustering_mpi.cpp\
density_clustering_mpi.hpp\
density_clus... | true |
41972604a23e9a8e1836dbc771564f4f9c0cce16 | Shell | SpectreSecurity/SpectreSecurityCoin | /doc/spectre_install.sh | UTF-8 | 11,131 | 3.234375 | 3 | [
"OpenSSL",
"MIT"
] | permissive | #!/bin/bash
# This is the SpectreSecurityCoin Menu System v1.0
## ----------------------------------
# Define variables
# ----------------------------------
EDITOR=vim
PASSWD=/etc/passwd
RED='\033[0;41;30m'
STD='\033[0;0;39m'
# ----------------------------------
# Define System Functions
# --------------------------... | true |
7318a5c19a493b9e7318d13789da189c4f491739 | Shell | magicdude4eva/docker-smokeping | /init/01_set_tz.sh | UTF-8 | 463 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -o nounset
timezone() { timezone="${1:-"UTC"}"
[[ -e /usr/share/zoneinfo/$timezone ]] || {
echo "ERROR: invalid timezone specified: $timezone" >&2
return
}
if [[ -w /etc/timezone && $(cat /etc/timezone) != $timezone ]]; then
echo "$timezone" >/etc/timezone
ln -sf /usr/share/zoneinfo/$timezone... | true |
f8d1bc0ada248a8ddf41d9474f2919c93794a45f | Shell | scottylogan/puppet-master-docker | /start.sh | UTF-8 | 521 | 3.0625 | 3 | [] | no_license | #! /bin/bash
echo '* Working around permission errors locally by making sure that "puppet" uses the same uid and gid as the host volume'
TARGET_UID=$(stat -c "%u" /etc/puppetlabs/puppet)
echo '-- Setting puppet user to use uid '$TARGET_UID
usermod -o -u $TARGET_UID puppet || true
TARGET_GID=$(stat -c "%g" /etc/puppetl... | true |
8bc059e1af27cc8b51de296facc7b993a4e08802 | Shell | mikaylagawarecki/pytorch_dev_env_setup | /all_new_pytorch.sh | UTF-8 | 539 | 3.078125 | 3 | [] | no_license | #!/bin/bash
set -e
PY_VERSIONS=("3.6" "3.7" "3.8" "3.9")
MODES=("" "--debug")
BUILDS=("" "--binary")
for PY_VERSION in "${PY_VERSIONS[@]}"; do
for MODE in "${MODES[@]}"; do
for BUILD in "${BUILDS[@]}"; do
if [ "${MODE}" == "--debug" ]; then
if [ "${BUILD}" == "--binary" ]; the... | true |
4680ac888579e67ed2626bcfac3ba7b7278a64d2 | Shell | adeelkazmi/bash-examples | /echo-new-line-control | UTF-8 | 996 | 3.5 | 4 | [] | no_license | #!/bin/bash
echo -n "\"-n\" means no new line at the end."
echo " The next echo continues on same line"
echo
echo "Using the Enter/Return key will move on to the next line so please avoid that to see what the special characters will do"
echo
echo -n "This text will be overwritten. Continue? "
read -p "" -n 1
echo -e "... | true |
5ac62e03c888a733251e0e13f97bc96d2de1291f | Shell | Warbo/desktop-scripts | /for_laptop/run_tunnel | UTF-8 | 224 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
BASE=$(dirname "$(readlink -f "$0")")
D=$(cut -f1 < "$BASE/details")
P=$(cut -f3 < "$BASE/details")
while true
do
ssh -N -T -R"$P":localhost:22 "$D"
echo "Disconnected"
sleep 10
done
| true |
643982f7d8c2d02fa2e2bf38d641542ad5e67ed3 | Shell | gchq/stroom-resources | /dev-resources/certs/ssl_poke.sh | UTF-8 | 902 | 3.1875 | 3 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | #!/bin/bash
host=${1:-localhost}
port=${2:-443}
if [ ! -f /tmp/SSLPoke.class ]; then
pushd /tmp > /dev/null
# see https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html
wget https://confluence.atlassian.com/kb/files/779355358/779355357/1/14418... | true |
214c10588ec6a185a3ba087a9c3617975e55b632 | Shell | fengjixuchui/iOS-Reverse | /Tools/theos/theos/extras/ci/cygwin-setup.sh | UTF-8 | 1,003 | 3.546875 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"GPL-3.0-only",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"GPL-3.0-or-later",
"MIT"
] | permissive | #!/bin/bash
# exit if anything fails
set -e
# source our common script
source "$(dirname "$0")"/common.sh
# ensure this is only used in appveyor
if [[ -z $CI || -z $APPVEYOR ]]; then
echo "This script is for use in an AppVeyor CI environment." >&2
exit 1
fi
# check our arguments are there
if [[ -z $THEOS ]]; then
... | true |
fb3067562294e8c7c658dc71e84c461058b77bbc | Shell | DedoGamingONE/tp | /tools/clang-format-all.sh | UTF-8 | 376 | 3.140625 | 3 | [] | no_license | #!/bin/bash
if [[ -z "${CLANG_FORMAT_EXE}" ]]; then
CF="clang-format-10"
else
CF="${CLANG_FORMAT_EXE}"
fi
echo "formatting src/*"
find ./src -iname "*.h" -o -iname "*.cpp" | xargs $CF -i
echo "formatting libs/*"
find ./libs -iname "*.h" -o -iname "*.cpp" | xargs $CF -i
echo "formatting include/*"
find ./include -i... | true |
4e2600060136b9316b0befa138a2b6cdd2dc8f38 | Shell | amangupta0297/emptyfile | /emptyfile.sh | UTF-8 | 807 | 3.9375 | 4 | [] | no_license | #!/bin/bash
#an empty file was created
#further modifications were done i.e..user entered directory name file name
#then condition were inserted if directory name exist then create directory and if directory exist then notifies directory already exist.
#then condition were inserted if file doesnt exist then create f... | true |
a1cfa15a9cd62fe80e7858ed71589db6d2a7ad3a | Shell | darrinholst/little-league | /bin/db-up | UTF-8 | 887 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
PORT=5455
CONTAINER_NAME="little-league-pg";
DB_LOG=tmp/db.log
function create_pg_data {
docker run -v /var/lib/postgresql -v /run/postgresql --name=${CONTAINER_NAME}-data busybox true &> ${DB_LOG} &> ${DB_LOG}
}
function has_postgres_image {
docker images postgres | grep -c 9\.5 > ${DB_LOG}
... | true |
d3e580f5bdef6d8e5284b088f8fbbbbb66271cba | Shell | kingsalman99/Proxyngentotvip | /vips.sh | UTF-8 | 4,055 | 3.140625 | 3 | [] | no_license | #!/bin/bash
cyan='\e[0;36m'
green='\e[0;34m'
okegreen='\033[92m'
lightgreen='\e[1;32m'
white='\e[1;37m'
red='\e[1;31m'
yellow='\e[1;33m'
BlueF='\e[1;34m'
http(){
read -p " Country Code : " -e country
read -p " Limit : " -e limit
A="proxybroker find --types HTTP --lvl High Anonymous --countries "$cou... | true |
dc83417a018a431514e7ef403d1a651ea4ff7c10 | Shell | kulltaa/masterCondo | /scripts/deploy_hooks/before_install.sh | UTF-8 | 139 | 2.5625 | 3 | [] | no_license | #!/bin/bash
tmpdir="/tmp"
codedir="/home/ec2-user/api/condo_admin"
if [ ! -d $codedir ]; then
exit 0
fi
cp $codedir/.env $tmpdir/.env
| true |
b66b250785b2e59d716d42bb5231b836808e78e4 | Shell | aquatix/qik | /release | UTF-8 | 1,228 | 3.4375 | 3 | [] | no_license | #!/bin/bash
if [ "$1" = "" ]
then
echo "Usage:"
echo " release <version>"
echo ""
else
if [ ! -e qik_root ];
then
mkdir qik_root
fi
if [ ! -d qik_root ];
then
echo "qik_root is not a directory! Please remove it"
else
echo "Normal version:"
rm -r qik_root/* 2> /dev/null
cp -a core/* qik_root/ 2> /dev... | true |
cb2cd4d4f8faf7606958737f63172b1d55ae8ca8 | Shell | Serverless-Devs/serverless-devs-initialization-action | /dev/config.sh | UTF-8 | 2,066 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
access=default
if [ -n "$INPUT_ACCESS" ]; then
access="$INPUT_ACCESS"
fi
# Configuration
if [ -n "$INPUT_ACCESS_KEY_ID" ] && [ -n "$INPUT_ACCESS_KEY_SECRET" ] && [ -n "$INPUT_ACCOUNT_ID" ]; then
# alibaba
s config add -a "$access" --AccessKeyID "$INPUT_ACCESS_KEY_ID" \
--AccessKey... | true |
902efc1c515654c1219c2541381b0ba2974c96c7 | Shell | j5bot/gumbode | /app/gumbode/gumbode/startavd | UTF-8 | 1,205 | 3.796875 | 4 | [] | no_license | #!/bin/bash
PWD="$(pwd)"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$HOME/.android/avd"
if [ $# -eq 0 ]; then
"$DIR/getavdinfo"
echo
read -e -p "Enter the name of the AVD to start: " AVDNAME
echo
if [ -f "${AVDNAME%.*}.ini" ]; then
echo Starting $(basename $AVDNAME) ...
echo
echo Using... | true |
25d6bb4f1a79d437cca143926ba7d46e0c2e6182 | Shell | devdnl/dnx-rtos | /tools/adddriver.sh | UTF-8 | 21,936 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
cd $(dirname $0)
DRVNAME=$(echo "$1" | sed 's/[-+/*,."!\@#$%^&*()+-]/_/g')
DRVNAME=${DRVNAME,,}
ARCH=$2
ARCH=${ARCH,,}
BRIEF=$3
AUTHOR=$4
EMAIL=$5
if [[ "$*" < "3" ]]; then
echo "Usage: $(basename $0) <driver-name> <architecture> [brief] [author] [email]"
exit 1
else
cd ../src... | true |
56e7707fed69cb73507c6c49f1afb38dc43a2a5a | Shell | lsst-dm/db_tests_kpm20 | /scripts/dump_duplicate.bash | UTF-8 | 517 | 3.53125 | 4 | [] | no_license | #!/bin/bash
#
# The driver script for initiating the first two stages of
# processing all chunks associated with the local worker node.
# Subseries of chunks will be processed asynchriously.
set -e
SCRIPT=`realpath $0`
SCRIPTS=`dirname $SCRIPT`
source $SCRIPTS/env.bash
cd $QSERV_DATA_DIR/chunks
for chunks in `ls -... | true |
75e83f4bb070f0f3e9a0e09e9287bced2951ee07 | Shell | rdzhao/bigbang | /script/run_proj_dyn.sh | UTF-8 | 405 | 2.78125 | 3 | [] | no_license | #!/bin/bash
EXE=../build/bin/test_proj_dyn
MESH=../dat/plane.obj
CONS=../dat/plane_fixed_2.fv
FRAMES=300
METHOD=0
TIMESTEP=0.033
WS=1e3
WB=1e-2
MAXITER=5000
OUTDIR=../result/projective/ms-method$METHOD-t$TIMESTEP-ws$WS-wb$WB
if [ ! -d "$OUTDIR" ]; then
mkdir -p $OUTDIR
fi
$EXE -i $MESH -c $CONS -o $OUTDIR -t $TIME... | true |
b4fcadb48d61983bd76f0bddc02ed5f29c6ec46a | Shell | Debanjana27/shell-script | /leap_year.sh | UTF-8 | 206 | 3.125 | 3 | [] | no_license | echo "Enter year"
read year
if [ `expr $year % 4` -eq 0 -a `expr $year % 100` -ne 0 -o `expr $year % 400` -eq 0 ]
then
echo "The year $year is leap year"
else
echo "The year $year is not"
fi
| true |
12c72dff5facf2ebce0cf2e8a0f6c66551a8637c | Shell | sanyaade-embedded-systems/homefiles | /git_hooks/post-checkout/pyc | UTF-8 | 300 | 3.234375 | 3 | [] | no_license | #!/bin/sh
case "$1" in
--about)
echo "Remove .pyc and .pyo files"
;;
*)
if [ "$3" -eq 1 -a "$1" != "$2" ]; then
find . \( -name '*.pyc' -o -name '*.pyo' \) -print -delete | \
sed 's|^|[post-checkout] Deleting |'
fi
;;
esac
| true |
0520a03917bdac025bf1600a6689131b54b6ba97 | Shell | cloudfoundry/garden-windows-ci | /dotfiles/bash_profile | UTF-8 | 18,017 | 3.046875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
export HISTSIZE='32768'
export HISTFILESIZE=$HISTSIZE
export HISTCONTROL='ignoredups'
shopt -s histappend
export GIT_DUET_GLOBAL=true
export GIT_DUET_ROTATE_AUTHOR=1
export GIT_DUET_CO_AUTHORED_BY=1
export BOSH_USE_GEMFILE=1
export GEM_HOME=~/.gems
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH:$HOME... | true |
ecc1a6c51324504a168c60bd1e3bfb0650eda573 | Shell | harryi3t/.setupShell | /lib/docker.sh | UTF-8 | 721 | 3.609375 | 4 | [
"MIT"
] | permissive | dTail() {
component=$1
docker logs -f --tail=100 `docker ps | grep $component | awk {'print $1'}`
}
dStop() {
component=$1
componentID=`docker ps | grep $component | awk {'print $1'}`
# non empty
if [ ! -z $componentID ]
then
docker stop -t=0 $componentID
else
echo 'No container found with name $... | true |
367dc1ecd227b2954bdae2d40fea4fa1257282f3 | Shell | IKATS/hbase | /assets/inject_configuration.sh | UTF-8 | 2,235 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/sh -
sed -i 's:</configuration>::' "${HBASE_HOME}/conf/hbase-site.xml"
[[ -z "${HDFS_URI}" ]] && echo "Missing required HDFS_URI variable" && exit 1
[[ -z "${ZK_QUORUM_URI}" ]] && echo "Missing required ZK_QUORUM_URI variable" && exit 1
[[ ! -f /root/.ssh_keys/id_rsa ]] && echo "SSH key missing, please mount ... | true |
9dbba64f6e882519b94fbad420d75d164cff01fd | Shell | BackupTheBerlios/ptm-svn | /trunk/release.sh | UTF-8 | 1,072 | 3.4375 | 3 | [] | no_license | #!/bin/bash
VER=$1
SVNDIR=`pwd`
mkdir ~/man-pages-pl
for i in `echo {1..9}`;
do mkdir -p ~/man-pages-pl/man$i;
done
cd man-pages
for i in *; do
cd $i
for j in *; do
cp $j ~/man-pages-pl/man`echo $j | sed -e 's/.*\([0-9]$\)/\1/'`&>/dev/null;
done
cd ..;
done
for i in FAQ Makefile.am autogen.sh configur... | true |
29d809bd098e94171924e432d44895e7a44a57c1 | Shell | KatieMishra/VoiceClassification | /sphinxbase/autoconf-2.69/automake-1.14/t/check-tests-in-builddir.sh | UTF-8 | 2,356 | 3.28125 | 3 | [
"BSD-2-Clause",
"MIT",
"GPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"GPL-3.0-only",
"FSFAP",
"GPL-3.0-or-later",
"Autoconf-exception-3.0",
"LicenseRef-scancode-other-copyleft"
] | permissive | #! /bin/sh
# Copyright (C) 2011-2013 Free Software Foundation, 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 version 2, or (at your option)
# any later version.
#
# This program ... | true |
f7354602b2416917c912584444b6fbecf4f87f09 | Shell | 1024sparrow/player | /build.sh | UTF-8 | 2,856 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
appname=player
apppath=ru/traliva/player
#==========================
RED='\033[0;31m'
YEL='\033[1;33m'
NC='\033[0m'
function error_quite {
echo -e "${RED}Сборка прервана из-за возникшей ошибки${NC}"
exit 1
}
rm -rf build keystore.jks
#echo -e "${YEL}${NC}"
echo -e "${YEL}Создаём директории, ку... | true |
f0aece42eacd7a42eebd52e79dda827d75009319 | Shell | g0d/crazy-code | /easyDockerDeploy/runme.sh | UTF-8 | 1,581 | 3.921875 | 4 | [] | no_license | #!/bin/bash
###########################################
# Main Script #
# Coded by George Delaportas (g0d) #
# Copyright (C) 2017 #
###########################################
echo "Deploying..."
# Build new image
sudo docker build -t easy_deploy_img .
# Get list of run... | true |
5a56e0f449873523832e85c17a3a2b877f542e19 | Shell | chr15m/nextcloud-installer-script | /install-nextcloud.sh | UTF-8 | 2,049 | 3.859375 | 4 | [] | no_license | #!/bin/sh
# This script is based on the Digital Ocean tutorials:
# https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04
# https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-20-04
# bail on any error
set -e
if [ "$3" = "" ]
then
ip=`d... | true |
0b45b528904b96de1669bd84d0378752ccec87a7 | Shell | Xiongxuejiang/batb | /batb.sh | UTF-8 | 2,806 | 3.90625 | 4 | [] | no_license |
#!/bin/bash
##############################################################################
### 没有任何修饰符参数 : 原生参数
### <> : 占位参数
### [] : 可选组合
### () : 必选组合
### | : 互斥参数
### ... : 可重复指定前一个参数
### -- : 标记后续参数类型
##############################################################################
#####... | true |
063409e008a4faa8743cdb2d99e0ae945d48df30 | Shell | donsror0226/books | /books_scripts/z_tb_create_all_ruby-xx.sh | UTF-8 | 11,371 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#
# This will create the empty migration file to all 5 tables.
# and all of it's fields in the database book_development.
# Then run the migration files to create the 4 tables.
#
# ----------------------------------------------------------------- #
# System : Centos 7.7 ... | true |
1743bcbffcbebcd40c97f4e2305b23c9538d6594 | Shell | hfyan0/dataProcScripts | /extract_recent_allinone.sh | UTF-8 | 523 | 3.265625 | 3 | [] | no_license | #!/bin/bash
DATAFOLDER=/mnt/d/data/blmg/
for ADJUNADJ in 1 2
do
if [[ $ADJUNADJ -eq 1 ]]
then
ALLINONEFILE=$DATAFOLDER/usequities_adj_allinone.csv
ALLINONEFILERECENT=$DATAFOLDER/usequities_adj_allinone_recent.csv
else
ALLINONEFILE=$DATAFOLDER/usequities_unadj_allinone.csv
A... | true |
654a6ed68413f7b908a4c23e5d97df937e6d80fb | Shell | ngeor/dotfiles | /bin/self-sign-cert.sh | UTF-8 | 1,228 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
DOMAIN=$1
if [[ -z "$DOMAIN" ]]; then
echo "Please give the domain as the first parameter"
exit 1
fi
if [[ "$2" == "delete" ]]; then
certutil -delstore -user "My" $DOMAIN
certutil -delstore -user "Root" issuer-$DOMAIN
exit 0
fi
export MSYS_NO_PATHCONV=1
ROOT_CRT="$DOMAIN-root.crt"
ROOT_KE... | true |
e5385a6b4d922ee2eab7dd1246f2e86a18bcee44 | Shell | jatin7/scalardb | /scripts/setup/config_cassandra_for_dlt.sh | UTF-8 | 2,713 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Support only Cassandra 3.11.x.
cd $(dirname $0)
YAML_FILE=cassandra.yaml
ENV_FILE=cassandra-env.sh
LOGBACK_FILE=logback.xml
DEFAULT_YAML=default/$YAML_FILE
DEFAULT_ENV=default/$ENV_FILE
DEFAULT_LOGBACK=default/$LOGBACK_FILE
CASSANDRA_CMD="sudo /etc/init.d/cassandra start"
# check node_params
while read ... | true |
060e022b01445bee6eb7da05f266777ded00e572 | Shell | pbswengineering/La-storia-in-giallo | /src/make-binary-package.sh | UTF-8 | 429 | 2.96875 | 3 | [] | no_license | #!/bin/bash
V="$(head -n 1 ../VERSIONI.txt | cut -d' ' -f1)"
echo "Versione: $V"
TARBALL="la-storia-in-giallo_${V}_eseguibili_linux.tar.bz2"
echo "Tarball: $TARBALL"
cd ..
make
mkdir la-storia-in-giallo
cp src/lstg.exe la-storia-in-giallo/'La storia in giallo.exe'
cp *.dll la-storia-in-giallo
cp -fr doc la-storia-i... | true |
6c6ccadb4236c14ae6868bc82329e388f78cc790 | Shell | hallelujahdrive/Capricorn | /icons/icongen.sh | UTF-8 | 550 | 3.140625 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
path=`dirname $0`
sizes_mini=(16 22 24)
sizes=(32 48 64 128 256)
for size in ${sizes_mini[@]}
do
if [ ! -a ${path}/${size}x${size}/apps ];then
mkdir -p ${path}/${size}x${size}/apps
fi
rsvg-convert ${path}/capricorn_mini.svg -h $size -w $size -f png -o ${path}/${size}x${size}/apps/capricorn.png
done
... | true |
bd8643c2ecfae37e3288f3f6ab925d7f7aa7c81b | Shell | frankfanslc/ciao | /testutil/singlevm/setup.sh | UTF-8 | 6,039 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
ciao_host=$(hostname)
ciao_ip=$(hostname -i)
ext_int=$(ip -o route get 8.8.8.8 | cut -d ' ' -f 5)
ciao_bridge=ciao_br
ciao_vlan_ip=198.51.100.1
ciao_vlan_subnet=${ciao_vlan_ip}/24
ciao_vlan_brdcast=198.51.100.255
ciao_bin="$HOME/local"
https_key="$ciao_bin"/https_key.pem
https_cert="$ciao_bin"/https_cert.pe... | true |
40330bc42343a2bf5f959091680bebe6f621f8a2 | Shell | mkantor/color-id | /util/random-colors | UTF-8 | 302 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
# Usage: random-colors NUM
# Output NUM random hex colors.
set -o errexit
set -o nounset
trap 'echo "$0: line $LINENO: exit status of last command: $?" 1>&2' ERR
count="$1"
characters=$((count * 6))
LC_CTYPE=C tr -dc 'a-f0-9' < /dev/urandom | head -c"$characters" | fold -w6
echo
| true |
edb92bfd267110f0ed8ba20ba712ef0d6c005aa7 | Shell | ppc64le/build-scripts | /c/copy/copy_ubi_8.5.sh | UTF-8 | 2,217 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# ----------------------------------------------------------------------------
#
# Package : copy
# Version : v1.7.0,v1.0.2,v1.2.0
# Source repo : https://github.com/otiai10/copy
# Tested on : UBI: 8.5
# Language : GO
# Travis-Check : True
# Script License: Apache License 2.0
# Ma... | true |
8814602b9a5737dbc890f90c117235b0ec6948de | Shell | pandadady/xflow_demo | /work.sh | UTF-8 | 520 | 3.1875 | 3 | [] | no_license | if [ -z $1 ]
then
echo " please input command "
exit -1
fi
if [ $1 == 'deploy' ]
then
mkdir -p ../run/data
mkdir -p ../run/model
cp -r scripts ../run
cp mapfeat.py ../run/mapfeat.py
cp run* ../run
cp kill.sh ../run
cp -r data ../run
else
if [ $1 == 'make' ]
then
mkdir -p ..... | true |
feed97ff61f87ede442706163169a1732b1480d2 | Shell | naveen234muppala/platform-ops | /java/install-oracle-java-9.sh | UTF-8 | 457 | 3.234375 | 3 | [] | no_license | #!/bin/bash
sudo apt-get install oracle-java9-installer
echo "GET THE PATH OF JAVA-8"
sudo update-alternatives --config java
echo "=========================== SET JAVA_HOME =============================="
echo "Follow below steps"
echo "copy the java-8 path"
echo "RUN following"
echo "sudo nano /etc/environment... | true |
67db2737bc07ead2278198b45e6ae0643a5c9e90 | Shell | igalonso/devrel | /tools/apigee-analytics-load-generator-demo/v2/init.sh | UTF-8 | 3,212 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
--action)
ACTION="$2"
shift # past argument
shift # past value
;;
--apigee-token)
GCLOUD_APIGEE_TOKEN="$2"
shift # past argument
shift # past value
;;
--apigee-org)
APIGEE_ORG="$2"
shift # past ar... | true |
cf0a7a695a7acc6b31126ff465ab083d7b4a2e4a | Shell | vladspirin/bash | /courselnkd/hello_world_with_time.sh | UTF-8 | 505 | 3.625 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
# Standard Greeting
echo 'Hello, World!'
# print current date and time
echo 'Today is:'
date
# Create an empty text file on the current users desktop
touch ~/Desktop/mytextfile.txt
# Copy the emty text file to another folder
cp "~/Desktop/mytextfile.txt" ~/Documents/Exercise\ Files/
# print current date... | true |
b59921272b41b048225ccb3fa1767f0b3bf14cb1 | Shell | endland/libpanda | /scripts/installVandertestRosPackages.sh | UTF-8 | 2,208 | 3.21875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
# Author: Matt Bunting
echo "----------------------------"
if [[ $EUID == 0 ]];
then echo "Do NOT run this script as root"
exit
fi
echo "Installing/Updating Vandertest ROS packages"
source ~/.bashrc
cd ~
if [ ! -d catkin_ws/src ]; then
mkdir -p catkin_ws/src
fi
cd catkin_ws/src
# The following are... | true |
132f902b1ba9ae262837b8a74b12312d632b4ce0 | Shell | nacs-lab/nacs-pkgs | /windows/mingw-w64-sleef-git/PKGBUILD | UTF-8 | 1,722 | 2.71875 | 3 | [] | no_license | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
# Contributor: Jürgen Pfeifer <juergen@familiepfeifer.de>
pkgbase=mingw-w64-sleef-git
pkgname="${MINGW_PACKAGE_PREFIX}-sleef-git"
pkgrel=1
pkgver=3.3.1.47.g5d84bbf
pkgdesc="SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT (mingw-w64)"
provides=("... | true |
7317c529183bf210d28ff307b93802c18b8f0b0a | Shell | bettio/stream-qt5-test | /docker-entrypoint.sh | UTF-8 | 311 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
# Configure the device directory
mkdir astarte-device-$DEVICE_ID-conf
cat > astarte-device-$DEVICE_ID-conf/transport-astarte.conf <<EOF
[AstarteTransport]
agentKey=$AGENT_KEY
endpoint=$PAIRING_HOST/v1/$REALM
persistencyDir=$PERSISTENCY_DIR
ignoreSslErrors=$IGNORE_SSL_ERRORS
EOF
exec "$@"
| true |
74dec8e9cdc8caa6d1bd0954b2c26882b66279d2 | Shell | bgstack15/bgscripts | /usr/share/bgscripts/gui/monitor-resize.sh | UTF-8 | 14,507 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# Filename: monitor-resize.sh
# Location:
# Author: bgstack15@gmail.com
# Startdate: 2017-08-23 08:00:11
# Title: Daemon that Checks for Updated Virtual Display Size and Requests a Resize
# Purpose: Automatically resizes spice and vnc virtual displays
# Package: bgscripts
# History:
# 2017-09-16 Very min... | true |
1341619692c0757a7f764eb681373735ae21ac05 | Shell | tornewuff/dotfiles | /home/dot_bashrc.d/45-screen.sh | UTF-8 | 222 | 3.140625 | 3 | [] | no_license | # restore DISPLAY and SSH_AUTH_SOCK from those saved before entering screen
if [ -n "$STY" ]; then
export DISPLAY=`cat ~/.current_display 2>/dev/null`
export SSH_AUTH_SOCK=`cat ~/.current_ssh_auth_sock 2>/dev/null`
fi
| true |
28e3572671ba037c492a693e55fa7c6990b34fd7 | Shell | 180254/cee | /hadoop/prehadoop/shells/gethadoop.sh | UTF-8 | 1,225 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "------- shell gethadoop -------"
if [[ $(hostname) == "hadoop-master" ]]; then
rm -rf /usr/local/hadoop
if [ -f /home/vagrant/resources/hadoop-2.6.4.tar.gz ]; then
mv /home/vagrant/resources/hadoop-2.6.4.tar.gz /usr/local/
else
wget "http://ftp.piotrkosoft.net/pub/mirrors/... | true |
6bb7f0a5a0c6ed56b3846409add61957c8e63e6f | Shell | OhadRau/cs4240-middle-end | /run.sh | UTF-8 | 151 | 2.921875 | 3 | [] | no_license | #!/bin/bash
set -e
IN=examples/*ir
mkdir -p out
for f in $IN
do
BASENAME=$(basename $f)
dune exec src/optimize.exe -- -i $f -o out/$BASENAME
done
| true |
913a0d8408e54cba52e488444ad70f2778de4af8 | Shell | heckj/CRDT | /docbuild.bash | UTF-8 | 2,064 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Make sure you've rebased over the current HEAD branch:"
echo "git rebase -i origin/main docs"
set -e # exit on a non-zero return code from a command
set -x # print a trace of commands as they execute
#rm -rf .build
#mkdir -p .build/symbol-graphs
#
#$(xcrun --find swift) build --target CRDT \
# ... | true |
a13a8068a0d6a84f97b2df4d90776a99ba0a3e6f | Shell | ryanvade/kiss-script | /build-2.sh | UTF-8 | 11,424 | 4.15625 | 4 | [] | no_license | #!/bin/bash
# ------------------------------------------------------------------------------------------------------------------------------------------------
# This script should help facilitate the building of the KISS IDE on Linux Systems. Unfortunately due to the complexity of linux package managers
# this script... | true |
bf9e8e330c5f94ac0df002818b1d793a1390947f | Shell | potzpf/bandcamp-theft | /script.sh | UTF-8 | 1,092 | 3.5 | 4 | [] | no_license | #!/bin/bash
# About this script
#
# Bandcamp is an online platform to promote and sell music. Kindly they let us
# listen to all tracks, even without having bought them. So we are able to
# download all tracks published for .
# Bandcamp is aware of this "feature":
# http://bandcamp.com/help/audio_basics#steal
#downl... | true |
1ccaa1f0fc2d39fb864f46a0825f23d913a74f95 | Shell | widdowquinn/SI_Hugouvieux-Cotte-Pattat_2021 | /scripts/run_anim.sh | UTF-8 | 537 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# run_ANIm.sh
#
# Run ANIm analysis (using pyani v0.3) on downloaded genomes
# Create database
pyani createdb -l logs/pyani_01_createdb.log
# Index genomes
pyani index genomes -l logs/pyani_02_index.log
# Run ANIm analysis
pyani anim -l logs/pyani_03_anim.log \
genomes \
anim_output \
--n... | true |
da538e5f343fcfd201e5dff937016afb0819b33e | Shell | atareao/dialogos | /whiptail/ejemplo_11.sh | UTF-8 | 481 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
ans=$(whiptail --title "https://www.atareao.es" \
--menu "Elige una opción" 10 80 2 \
"Añadir" "Añadir un usuario" \
"Modificar" "Modificar un usuario" \
"Eliminar" "Eliminar un usuario" \
"Listar" "Listar los usuarios" \
... | true |
627acb5d0911655f85b58f191e67b8a7602ccdd2 | Shell | hlecuanda/zconf | /bin.d/screenshot.zsh | UTF-8 | 822 | 3 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env zsh
# _ _
# ___ ___ _ __ ___ ___ _ __ ___| |__ ___ | |_
# / __|/ __| '__/ _ \/ _ \ '_ \/ __| '_ \ / _ \| __|
# \__ \ (__| | | __/ __/ | | \__ \ | | | (_) | |_
# |___/\___|_| \___|\___|_| |_|___/_| |_|\___/ \__|
# h@h-lo.me 20190922 181554 -0700 PDT 156... | true |
1c457d4bf5ce5fba05b5bb7c31c94c3eae485acf | Shell | moopet/dotfiles | /git/bin/fp | UTF-8 | 323 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# fp: "Feature Push".
# Push the current feature branch.
git status >/dev/null || exit
branch=$(git rev-parse --abbrev-ref HEAD)
if ! grep -q "^feature/" <<< "$branch"; then
printf "Not a feature branch.\n"
exit 1
fi
if [ "$1" = "-f" ]; then
git push origin ":$branch"
fi
git push origin "$branch... | true |
559b5996a25d00e445ba354d7fdccc129afaa654 | Shell | DataResponsibly/CIFRank | /src/ranklib/run-LTR-model.sh | UTF-8 | 5,695 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#################################################
# #
# Properties for complete routine #
# #
#################################################
#################################################
# #
# Functions for complete routine #
# #
#################################################... | true |
5cb25853f41933d70b79bcf2e5c9e36ca938ebaa | Shell | arunksingh16/devops | /aws/awsuser.sh | UTF-8 | 893 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
aws iam create-user --user-name arun
aws iam add-user-to-group --group-name FullAdministrator --user-name arun
aws iam create-login-profile --user-name arun --password <pass> --password-reset-required
aws iam create-access-key --user-name arun
######### Another way #########
read -p ''Enter the username for t... | true |
2570ae8ea5b4c79d428bd7aa75ba5c5d3b096b51 | Shell | Pwr-W4-Student/SO2-lab | /lab2_popr/zad5/plik1.txt.0 | UTF-8 | 167 | 3.171875 | 3 | [] | no_license | #!/bin/bash
dir=*
func=$(find $dir ! -executable)
count=$(echo $func | wc -l)
echo $count
for x in $(cat $plik)
do
echo $x >> plik.txt
cat $x >> plik.txt
done
| true |
f6d568c0cf0ce9214e37278bc9968d8088f47613 | Shell | chatid/terraform-jenkins | /bin/jenkins-init.sh | UTF-8 | 395 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# jenkins-init.sh: install, configure, and start the Jenkins server
JENKINS_HOME=/var/lib/jenkins
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
#sud... | true |
62d00e2b5c902958204553864c6d504dc950aa60 | Shell | leinardi/JDInstaller | /jdi_jaunty.sh | UTF-8 | 10,132 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# JDInstall
# TODO:
# *) Scrivere una breve descrizione del programma al posto del commento #JD
# *) Installazione selettiva dei repository esterni e delle applicazioni a essi legate
# *) Prevedere un "dpkg --config -a" in caso di problemi
# *) Dare un qualche tipo di ordine alla lista dei pacchetti
#
# Cha... | true |
ca9b563c75b0bf745502556c593790aad93f49ce | Shell | euank/dockerfiles | /ngrok/docker_entrypoint.sh | UTF-8 | 334 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
config_data=""
# Only supported env var for now
if [[ "${NGROK_AUTH_TOKEN-}" != "" ]]; then
config_data=$(cat <<EOF
$config_data
authtoken: "${NGROK_AUTH_TOKEN}"
EOF
)
fi
if [[ "$config_data" != "" ]]; then
mkdir -p "$HOME/.ngrok2"
echo "$config_data" > $HOME/.ngrok2/ngrok.yml
fi
ex... | true |
818b3218661b0ef53b5814d311a9ffbff0588999 | Shell | richoakley/pi-media-center | /startups/sickbeard.sh | UTF-8 | 981 | 3.46875 | 3 | [] | no_license | #!/bin/sh
### BEGIN INIT INFO
# Provides: SickBeard
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start SickBeard at boot time
# Description: Start SickBeard.
### END INIT INFO... | true |
66207fed7c82e2955373352d4edfee9063814faa | Shell | dsikar/bash-scripts | /pyspark/pyspark_install.sh | UTF-8 | 955 | 2.765625 | 3 | [] | no_license | #!/usr/bin/bash
##########################
# pyspark ubuntu install #
##########################
# TODO JAVA INSTALL
# install python 3.6
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
# change symlink
sudo rm /usr/bin/py... | true |
4a6d1f4cb7588f2aa4980d69563c56009aa4faad | Shell | GazeCoin/FxxxLandRush | /rates/updateGzeEth.sh | UTF-8 | 3,218 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ----------------------------------------------------------------------------------------------
# BokkyPooBah's Rate Updater
#
# Enjoy. (c) BokkyPooBah / Bok Consulting Pty Ltd 2018. The MIT Licence.
# ----------------------------------------------------------------------------------------------
. setting... | true |
0ec6aba190827023707f3a377e8449b849826c0a | Shell | vijevira/UNIX | /CSE552/Assignment2/first.sh | UTF-8 | 115 | 3.1875 | 3 | [] | no_license | echo "enter two numbers"
read a
read b
if test $a -gt $b
then
echo "$a is greater"
else
echo "$b is greater"
fi
| true |
90ba121aefcabe63975f28d29fa71c34a4366e2a | Shell | zezax/one | /quol/sbin/cyrus-backup | UTF-8 | 926 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Back up Cyrus mail spool using LVM snapshot and brief stop-start of Cyrus.
# Run daily.
#
set -x
PATH=/usr/sbin:/usr/bin:/sbin:/bin
# cyrus backup script
NOW=$(date '+%Y%m%d%H%M%S')
SVC=cyrus-imapd.service
VG=vg1
LV=cyrus
SNAP=cyrussnap$NOW
DSTDIR=/data/cyrusback
echo -n "Stopping $SVC "
date '+%Y%... | true |
d407e18151eca9473aab1cb08f35dd4e3cc6fe2e | Shell | pryv-test/open-pryv.io | /build-local.sh | UTF-8 | 1,235 | 3.625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env sh
# quit if fail
set -e
if [ ! -d "var-pryv/mongodb" ]; then `mkdir -p var-pryv/mongodb`; fi
if [ ! -d "var-pryv/logs" ]; then `mkdir -p var-pryv/logs`; fi
# download git dependencies (so there would be no need to github authentication inside docker container)
APP_WEB_AUTH_FOLDER="app-web-auth3"
if [... | true |
71a2148e5f5731aebca26a00a20eecbbc894b683 | Shell | CESNET/glite-testsuites | /CANL-C/tests/canl-autonomous-test.sh | UTF-8 | 5,435 | 3.53125 | 4 | [] | no_license | #!/bin/bash
#
# Copyright (c) Members of the EGEE Collaboration. 2004-2010.
# See http://www.eu-egee.org/partners for details on the copyright holders.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the L... | true |
63fa326ac0a921590a280fc0268429da19961201 | Shell | tetherless-world/twks | /docker/image/agraph/entrypoint.sh | UTF-8 | 1,000 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# Make sure shared memory requirements are met.
shm_size=$(df -P /dev/shm | grep -v Filesystem | awk '{print $2}')
if [ "$shm_size" -lt 1048576 ]; then
cat <<EOF
The container for AllegroGraph must be started with the following
option in order to operate correctly:
--shm-size 1g
EOF
exit 1
fi
func... | true |
98b07112e40f4a08cace47c790409797d8e70f44 | Shell | sgrove/solo5 | /kernel/gen_interrupts.bash | UTF-8 | 986 | 2.5625 | 3 | [
"ISC"
] | permissive | #!/bin/bash
# Copyright (c) 2015, IBM
# Author(s): Dan Williams <djwillia@us.ibm.com>
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all
# copies.
#
# THE SOFTW... | true |
1adbdde7b24fd02bff495fc388a17841b85acc54 | Shell | prodriguezsosa/Text-Data | /Huffington/HPC/helper_loop.sh | UTF-8 | 165 | 2.609375 | 3 | [] | no_license | #!/bin/bash
set -e
for i in $(seq 1 ${1})
do
cat LinkScraper.txt | sed "s/SEGMENT/$i/g" > LinkScraper.$i.txt
sbatch LinkScraper.$i.txt
rm LinkScraper.$i.txt
done
| true |
d7278e4949c481d65fa1321dcf88e66bcccbe94e | Shell | 102757017/basic | /shell/linux/cmake_compile_hello/交叉编译.sh | UTF-8 | 790 | 3.1875 | 3 | [] | no_license | sudo apt-get upgrade
sudo apt-get install mingw-w64 mingw-w64-tools mingw-w64-i686-dev mingw-w64-x86-64-dev zlib1g-dev libsdl2-dev libjpeg-dev
echo cmake不支持中文路径,该文件需要放到英文路径下运行
echo 切换到当前脚本所在的目录
script_dir=$(cd $(dirname $0) && pwd)
echo "$script_dir"
cd "$script_dir"
# cmake命令生成makefile文件,也可以用cmake-gui生成
# -B 指定编译文件的... | true |
a899e09bacfa46d2cb186b91977f5bc8f7b67276 | Shell | PocketCluster/pc-osx-manager | /PC-APP-V2/PC-CORE/static/build.sh | UTF-8 | 2,680 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Exit if any command fails
set -e
# Figure out where things are coming from and going to
export GOROOT="/opt/go-1.7.6"
export GOREPO=${GOREPO:-"${HOME}/Workspace/POCKETPKG"}
export GOWORKPLACE=${GOWORKPLACE:-"${HOME}/Workspace/GOPLACE"}
export GOPATH="${GOREPO}:${GOWORKPLACE}"
export GO=${GOROOT}/bin/go
... | true |
ed6d465c03f7f529bb0785f497263e1c789ac7b9 | Shell | pradeepa-s/sys_confguration | /work_pc/work_setup.sh | UTF-8 | 1,847 | 2.875 | 3 | [] | no_license | #! /bin/bash
echo "Setting up work environment"
CURRENT_DIR=$(pwd)
# MAIN_DIR=/cygdrive/c/src
MAIN_DIR=~/fgrepo
MY_HOME=~
echo "Using $MAIN_DIR as the main directory"
cd $MY_HOME
touch .bashrc
echo "Backing up current .bashrc file in .bashrc.pradeepa.backup"
cp .bashrc .bashrc.pradeepa.backup
cat <<EOT >> .bashrc... | true |
8703f203abc9f94ac36e7a13cbccebc8acf53f17 | Shell | lozanotux/portfolio | /Linux/Oracle/Forms/formsctl11g.sh | UTF-8 | 12,335 | 3.515625 | 4 | [] | no_license | #!/bin/bash
####################################
# Autor : Lozano Juan Pablo #
# Fecha : 19/02/2019 #
# Special Edition for Solaris OS #
####################################
#Variables
DOMAIN_HOME=/path/to/Oracle/Middleware/user_projects/domains/<domain_name>
HOST="127.0.0.1"
PORT="7001"
OHS_POR... | true |
e3ab8f78202649ed11268f8194b0fcc531715b3a | Shell | lisanhuarchive/uwlax-cs441-project-5 | /given-tests/setup-level4.sh | UTF-8 | 1,242 | 3.515625 | 4 | [] | no_license | #!/bin/bash
LEVELDIR=level4
if [ -e $LEVELDIR ] ; then
echo "The Level Directory already exists: $LEVELDIR"
exit -1
fi
mkdir -m 755 $LEVELDIR
cd $LEVELDIR
#
# Create a welcoming file
#
echo "These test you ability to deal with links. Have fun" > welcome.txt
chmod 777 welcome.txt
#
# Create some directories
... | true |
b688468e96d8e705445fda60fb5b674adc1d432a | Shell | wenshunbiao/docker | /mysql/entrypoint.sh | UTF-8 | 1,612 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
if [ "${1:0:1}" = '-' ]; then
set -- mysqld "$@"
fi
if [ "$1" = 'mysqld' ]; then
DATADIR="$("$@" --verbose --help 2>/dev/null | awk '$1 == "datadir" { print $2; exit }')"
if [ ! -d "$DATADIR/mysql" ]; then
if [ -z "$MYSQL_ROOT_PASSWORD" -a -z "$MYSQL_ALLOW_EMPTY_PASSWORD" ]; then
ech... | true |
8a85a29a879123f71d5c46d9d7d571b6ccaae7c7 | Shell | Potpourri/media-scripts | /m4a-to-mp3 | UTF-8 | 618 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
error() {
local msg="$1"
echo "$(tput setaf 1)ERROR:$(tput sgr0) $msg" >&2
exit 1
}
main() {
local USAGE="usage: $0 -i AUDIO.m4a -o OUTPUT.mp3"
local audio output
if (( "$EUID" == 0 )); then
error "This script must be run as regular user (non-root)"
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.