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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0599690990fe991fc85eeecd30c1e43c21dde3ae | Shell | HonghaoLYU/yumi_ethz_ws | /src/yumi/setup_ws/setupWSVariables.bash | UTF-8 | 2,090 | 3.59375 | 4 | [
"MIT",
"BSD-2-Clause"
] | permissive | #!/bin/bash
# PROGRAMMER: Frederick Wachter
# DATE CREATED: 2016-05-20
# LAST MODIFIED: 2016-05-26
# PURPOSE: Create workspace variables for YuMi during initial setup
# Get the directory location of the YuMi folder
if [ -z "$1" ]; then
echo "Please input the path of where the yumi directory is located"
exit
fi
ech... | true |
2f7645bb36a8cfb0bdc321ec14693a24748a6806 | Shell | roger-mahler/sparv-pipeline | /bin/analyze_xml | UTF-8 | 467 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
usage() {
echo
echo "Usage: $0 [-h header-element] [-e encoding] [-m maxcount] sgml-files..."
echo
exit 1
}
HDR="teiheader"
ENC="UTF-8"
MAX="0"
while getopts "e:m:h:" opt
do
case $opt in
e) ENC="$OPTARG" ;;
m) MAX="$OPTARG" ;;
h) HDR="$OPTARG" ;;
esac
done
shift $((OPTIND-1))
... | true |
c26e690260bb1323c31249bb33a16f8cc21561d7 | Shell | adrianroth10/setup | /scripts/mitsuba.sh | UTF-8 | 1,230 | 2.625 | 3 | [] | no_license | #!/bin/bash
# Currently not working
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/../extras/functions.sh
# NOT WORKING
# Tips for the installation on Ubuntu 16.04 LTS
# https://cgcvtutorials.wordpress.com/2017/05/31/install-mitsuba-on-linux-16-04/
$PACKAGE_INSTALL build-essential scons qt4-dev-tools ... | true |
aab6364ca97f7d48d8e8dd302377bf7f7abfdb9b | Shell | pcdshub/pcds-envs | /scripts/update_env.sh | UTF-8 | 931 | 3.953125 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | #!/bin/bash
# Updates the previous environment to a new latest, rather than starting from scratch.
if [ -z "${1}" ]; then
echo "Usage: update_env.sh [envname] [base] [py_ver]"
exit
else
ENVNAME="${1}"
fi
if [ -z "${2}" ]; then
BASE="pcds"
else
BASE="${2}"
fi
if [ -z "${3}" ]; then
VER="3.6"
else
VER="${3}... | true |
019993099e61aea585b09df12e04a3547ff6867c | Shell | sugtao4423/docker-nginx-php | /run.sh | UTF-8 | 1,483 | 2.8125 | 3 | [] | no_license | #!/bin/bash
sed -e "s|;listen.owner\s*=.\+|listen.owner = ${PHP_FPM_USER}|g" \
-e "s|;listen.group\s*=.\+|listen.group = ${PHP_FPM_GROUP}|g" \
-e "s|;listen.mode\s*=.\+|listen.mode = ${PHP_FPM_LISTEN_MODE}|g" \
-e "s|user\s*=.\+|user = ${PHP_FPM_USER}|g" \
-e "s|group\s*=.\+|group = ${PHP_FPM_GROUP}|g"... | true |
1994a84ddb182f2b30dca8cf62438ba5c83a751e | Shell | admalledd/dotfiles | /i3bin/touchpad_toggle.sh | UTF-8 | 977 | 3.578125 | 4 | [] | no_license | #!/bin/bash
TOUCHPAD_ID=$(xinput |grep "TouchPad"|python -c "import sys;sys.stdout.write('%s'%sys.stdin.read().split('\t')[1].split('=')[1])")
TOUCH_STATE=$(xinput list-props $TOUCHPAD_ID|grep "Device Enabled"|python -c "import sys;print sys.stdin.read().split()[-1]")
#if we got a command line, force that state rather... | true |
010b7e48e10bc78f4978c0dba7729134d1bd5962 | Shell | cgiserban/Maya_ML_Texture_Stylizer | /StyleTransfer/runStyleTransfer.sh | UTF-8 | 1,839 | 3.5 | 4 | [] | no_license | clear
PROJECT_PATH=$1
STYLE_PATH=$PROJECT_PATH/StyleTransfer/style/$2
array=(${3// / })
echo "- Maya Style Transfer - "
echo "#######################################"
echo "- Creating the environment -"
echo "#######################################"
#Setup the working environment
alias mayapy='/opt/autodesk/maya/b... | true |
f2382f860b63c6ca6b60abc79ba4df672c676663 | Shell | ttranatping/pf-sp-connection-mgt | /scripts/export-sp-connection.sh | UTF-8 | 2,768 | 2.75 | 3 | [] | no_license | function prop {
grep "${1}" ../docker-compose/pf.env|cut -d'=' -f2
}
entityId=$1
bodyContent="<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">
<soapenv:Header/>
<soapenv:Body>
<getConnection>
<entityId>${entityId}</entityId>
<role>SP</role>
... | true |
9f5ac7b5e05f0038a4b27c533772b336afbdaebb | Shell | mengyou658/spark-job-rest | /spark-job-rest/src/main/scripts/start_server.sh | UTF-8 | 2,698 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Script to start the job server
# Extra arguments will be spark-submit options, for example
# ./server_start.sh --jars cassandra-spark-connector.jar
set -e
get_abs_script_path() {
pushd . >/dev/null
cd $(dirname $0)
SCRIPTS_DIR=$(pwd)
popd >/dev/null
}
get_abs_script_path
APP_DIR="$(dirname "${... | true |
9087301827546eb30c3950fdd51387b0ab189db6 | Shell | ml4ai/delphi | /scripts/install_range-v3_from_source | UTF-8 | 261 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
version=0.10.0
wget https://github.com/ericniebler/range-v3/archive/${version}.tar.gz
tar -xf ${version}.tar.gz
pushd range-v3-${version} > /dev/null
mkdir build
cd build
cmake ..
make -j install
popd > /dev/null
rm -rf range-v3-${version}
| true |
19643b42c1bc26cce309bd6fb73e7b9d5cad7c84 | Shell | moul/cattle | /scripts/ci | UTF-8 | 1,905 | 3 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
set -e
echo $(hostname)
cd $(dirname $0)
export RUNTIME_DIR=../../../runtime/ci/
export RUNTIME_DIR_CLEAN=true
export CATTLE_LOGBACK_ROOT_LEVEL=error
export CATTLE_DB_CATTLE_DATABASE=mysql
: ${CATTLE_DB_CATTLE_MYSQL_PORT:=13306}
export CATTLE_DB_CATTLE_MYSQL_PORT
# Uncomment this if you're impatient
#e... | true |
c3813e2210ceacd68f057eaca3deb7bc1aa6aed4 | Shell | XavierBerger/oe-meta-container | /scripts/create_docker_build_appliance_image.sh | UTF-8 | 333 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash -x
image_tarball="${1:-/home/vagrant/poky/build}/tmp/deploy/images/qemux86-64/container-build-appliance-qemux86-64.tar.bz2"
docker_build_dir="$(realpath $(dirname $0)/../misc/docker/build_appliance/)"
cp ${image_tarball} ${docker_build_dir} \
&& sudo docker build -t yocto-build-appliance-x86_64 ${docke... | true |
091dd5d786c6f6e19500fc064673bee931663c8e | Shell | KomplexKapharnaum/RPi-ShowPlayer | /bash/create_fake_media_dir.sh | UTF-8 | 166 | 3.015625 | 3 | [] | no_license | #!/bin/bash
cd "$2"
mkdir "$2/video"
mkdir "$2/audio"
cd "$1"
for f in $(find $1); do
#echo $f
#echo $1
f=${f#$1}
echo "$2/$f"
touch "$2/$f"
done | true |
9de4d5e0ff68d923dc1e7e100aeb0a350fba187f | Shell | PennockTech/keybase-docker | /keybase.is-up-to-date | UTF-8 | 890 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
# The page at <https://prerelease.keybase.io/> links to this:
#readonly CURRENT_LINUX_RELEASE_JSON_URL='http://prerelease.keybase.io.s3.amazonaws.com/update-linux-prod.json'
# but that hostname doesn't have a valid cert if we switch to https.
# Meanwhile, this works for https:
rea... | true |
28964e51faa74d89beab9e29303cb72001ebb705 | Shell | miguelAlcantara/odmInstall | /errorLib.sh | UTF-8 | 282 | 3.296875 | 3 | [] | no_license | #!/bin/bash
CURRENT_DIR=`pwd`
function validateExecution(){
errorCode=$1
errorText=$2
if [ ${errorCode} != 0 ]; then
echo "---------------"
echo "${errorText}"
read input
if [ "$input" == "n" ]; then
exit ${errorCode};
fi
fi
return 0;
} | true |
a8582a9af7b81426c5ba6586d664ce2e5d947e16 | Shell | josephholsten/bin | /epub-me | UTF-8 | 382 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# ===========
# = EPUB ME =
# ===========
# folder to epub + epubcheck
# $1 = epub folder path
# $2 = epub name (optional)
if [ $1 ]; then
FOLDER=$1
else
echo "The epub folder path is missing."
exit 0
fi
cd $FOLDER
if [ $2 ]; then
NAME=$2
else
NAME=${PWD##*/}
fi
zip -0Xq ../$NAME.epub mimetyp... | true |
4d84ac6a6ad4361507e7745f7ac0c57defd25e0d | Shell | yayankov/Operating-systems-FMI | /shell-script/forExam/13.sh | UTF-8 | 238 | 3.8125 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Wrong number of arguments"
exit 1
fi
if [ ! -d ${1} ]; then
echo "Argument 1 must be a directory"
exit 2
fi
DIR=${1}
find ${DIR} -type l -printf "%Y %f\n" | grep '^[NL]' | awk '{print $2}'
| true |
67592b6f3e09e12a44d1b06a3b4050eede4fe126 | Shell | abeiro/ascore-v1 | /Framework/Locale/generate.sh | UTF-8 | 140 | 2.90625 | 3 | [] | no_license | #!/bin/bash
for i in $(find -name "*.po")
do
cd $(dirname $i)
msgfmt $(basename $i) -o $(basename $i|sed s/"\.po"/"\.mo"/)
cd -
done
| true |
b9ffc43663dd242dbc692e5a1d07f2d7f4c6558e | Shell | esteba61/Hadoop-provision | /scripts/setup-node.sh | UTF-8 | 433 | 2.8125 | 3 | [] | no_license | #!/usr/bin/bash
function sudoAdmin {
sudo -i
}
function hadoopUser {
useradd hadoop
echo -e "hadoop" | (passwd --stdin hadoop)
}
function installTools {
yum install -y java-1.8.0-openjdk-devel
cat > /etc/hosts <<EOF
192.168.92.10 nodemasterx
192.168.92.11 nodea
192.168.92.12 nodeb
EOF
}
echo -e "------sudoAd... | true |
d457cc4031c732a9083ba5e37a6bf50221fb852b | Shell | SRadatz/bookStack | /mariaDB_upgrade | UTF-8 | 858 | 2.671875 | 3 | [] | no_license | #!/bin/sh
#upgrade mariadb from 10.0 to 10.1
#backup DB first
#mysqldump db_name > backup-file.sql
#mysqldump --all-databases > all_databases.sql
#stop services
sudo service nginx stop
sudo service mysql stop
#remove current version
sudo apt remove maria-db server -y
#setup mariadb repositories
sudo apt-get instal... | true |
a9efe4835ba8f5f7007eb9832b451094c111a902 | Shell | jomof/jacy | /utils/make-qc.bash | UTF-8 | 1,455 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# from the main grammar directory
unset DISPLAY;
unset LUI;
lkbdir=${LOGONROOT}/lingo/lkb;
grammardir=${LOGONROOT}/dfki/jacy;
### make input file
cut -d@ -f7 $grammardir/tsdb/skeletons/mrs/item |tail -50 > $grammardir/utils/mrs.50.txt
#
# CHEAP
#
# back up quick check file
mv $grammardir/pet/qc.tdl $gra... | true |
c01673d153d077b3ee13196666777c2305e4326f | Shell | adamluzsi/testcase | /bin/test-go | UTF-8 | 310 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
(
type go
) 1>/dev/null
main() (
set -e
shopt -s nullglob globstar
local gmpath path
for gmpath in **/go.mod; do
path=${gmpath%"go.mod"}
cd "${path}"
testCurrent "${@}"
done
)
testCurrent() {
go test ./... -race -count 1 -bench '^BenchmarkTest' "${@}"
}
main "${@}"
| true |
7233fbadda0cd8671f0b3128119beb71aac2d741 | Shell | pfenninglab/TACIT | /evaluationScriptsRetinaModels/step6a_generate_neg_seqs_mm10.sb | UTF-8 | 1,086 | 2.75 | 3 | [] | no_license | #!/bin/bash
#SBATCH -n 1
#SBATCH --partition=pfen1
#SBATCH --job-name=genNullSeq
#SBATCH --mem=10G
#SBATCH --error=logs/genNullSeq_%A_%a_out.txt
#SBATCH --output=logs/genNullSeq_%A_%a_out.txt
# generate 500 bp background repository of mm10 sequences
BGDIR="/home/csriniv1/resources/biasaway/mm10/500bp"
GENOME="/home/cs... | true |
4d81b10722d8ff55c40b73330e8505cfbac0b018 | Shell | abstrakct/terrapinstationdotfiles | /bin/udsks | UTF-8 | 5,026 | 3.890625 | 4 | [] | no_license | #!/bin/bash
# udsks: Un/mounts removable media via udisks
# Adapted by DMcFadzean from some-guy94's script at: https://bbs.archlinux.org/viewtopic.php?pid=877272#p877272
# udsks is free software: you can redistribute it and/or modify it under the terms of the
# GNU General Public License Version 3 as published by the F... | true |
92cb861e609f1be6d87aeaba0e45601ee219d429 | Shell | JonShelley/azure | /image/ubuntu_18.04_ai/setup_00.sh | UTF-8 | 3,839 | 2.625 | 3 | [] | no_license | #!/bin/bash
# Required OS: Ubuntu 18.04 LTS
# Requires the following packages to be downloaded from Nvidia's website and placed in /mnt/nvidia
# - nccl-repo-ubuntu1804-2.7.8-ga-cuda11.0_1-1_amd64.deb
# - https://developer.nvidia.com/compute/machine-learning/nccl/secure/v2.7/prod/nccl-repo-ubuntu1804-2.7.8-ga-cuda11.... | true |
e297604266a46b6388b8effe89e34e47fb5124c6 | Shell | tm-dd/MunkiManageScripts | /MunkiData/scripts_and_configs/create_new_munki_repository.sh | UTF-8 | 7,321 | 3.71875 | 4 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
#
# this script setup Munki on a lokal Mac
#
# Copyright (c) 2020 tm-dd (Thomas Mueller)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without ... | true |
2851a5339f6750003f2cd3b250860244bbb57d4e | Shell | jwiszowata/code_reaper | /code/my-app/split_on_functions.sh | UTF-8 | 665 | 3.015625 | 3 | [] | no_license | # split files on 5 groups, and run my function to every group
a=0
for file in ../../FreeCol_files/*;
do
if [ $((a%5)) -eq 0 ]
then
files1=$files1" "$file
fi
if [ $((a%5)) -eq 1 ]
then
files2=$files2" "$file
fi
if [ $((a%5)) -eq 2 ]
then
files3=$files3" "$file
... | true |
7c87c6d93dbc91db83ae0e1f89e0ff6a41ded86e | Shell | statonlab/aurora-galaxy-tools | /single-html-tools/aurora_fasta_importer/build-and-run-job-scripts.sh | UTF-8 | 534 | 3.28125 | 3 | [
"MIT"
] | permissive | # run job scripts within the tool outputs directory
cd ${REPORT_FILES_PATH}
#========== build and run job 1 script ============
cat >curl-download.sh <<EOF
if [ $(wc -l <$X_f) -gt 2 ]; then
cp $X_f $X_O
else
if [ "$X_e" = "twobit" ]; then
cp $TOOL_INSTALL_DIR/twoBitToFa twoBitToFa
chmod +x twoBitToFa
.... | true |
ff6ecff4cb2e8347b7ce5616d5434fdb97f40586 | Shell | richjoslin/bubble-shooter-vr | /release-docs.sh | UTF-8 | 738 | 3.140625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/bin/sh
set -e
# export VSINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
# export VisualStudioVersion="15.0"
docfx ./docs/docfx.json
SOURCE_DIR=$PWD
cd ..
TEMP_REPO_DIR=$PWD/bubble-shooter-vr-docfx-temp
echo "remove existing temp dir $TEMP_REPO_DIR"
rm -rf "$TEMP_REPO_DIR"
echo "create... | true |
13d5e7b6b487c772dbe96cdfa0c3ed19ce3c3337 | Shell | yroboros/pycryptoprosdk | /renew_test_signature.sh | UTF-8 | 608 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
renew_signature(){
rdn=$1
file_name=$2
dir_name=./tests/files/signatures
/opt/cprocsp/bin/amd64/cryptcp -creatcert \
-rdn "$rdn" \
-cont '\\.\HDIMAGE\cont1' \
-sg -ku -du -ca http://cryptopro.ru/certsrv
/opt/cprocsp/bin/amd64/cryptcp -signf \
... | true |
0f9645aefbe7db2da4a332ab72152969260f2fe2 | Shell | stahta01/m6809-dev | /mingw-w64-cmoc-os9/PKGBUILD | UTF-8 | 1,859 | 2.875 | 3 | [] | no_license | # Maintainer: Tim S <stahta01@gmail.com>
# Contributor: Paul Hentschel <aur at hpminc.com>
# Based on work from https://github.com/hpmachining/os9-dev
_realname=cmoc_os9
_machine=m6809
_target=${_machine}-unknown
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git"
pkgver=r85.9f9dfda
pkg... | true |
83b99ed09e462fb7350dad9fb483e7f7eafb1bf2 | Shell | polentino/awesome_terminal | /utils/helpers.sh | UTF-8 | 6,866 | 4.25 | 4 | [
"WTFPL"
] | permissive | #!/usr/bin/env bash
# Function that's responsible to detect if the current working directory is under
# (distributed) version control system and, if so, retrieves basic infos to the
# variable passed as parameter.
# Supported DVCS: Git, Mercurial (when installed)
#
# Requires:
# - `git` command installed and availab... | true |
523f0eaa19a82e0a163cb2a33933ecdadf46a0b7 | Shell | denis-beurive/docker | /lib/image.sh | UTF-8 | 473 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# Please, make sure to source the file "container.sh" first.
type __functions_container &>/dev/null
if [ $? -eq 1 ]; then
echo
echo "WARNING !!! The functions defined in this file need the ones defined in the file \"container.sh\"."
echo
fi
function delete_all_images() {
kill_c... | true |
5f0887b82ca4d674b90812cbdc061afbd06435b5 | Shell | yunionio/dashboard | /scripts/sync-modules.sh | UTF-8 | 1,015 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive |
#!/bin/bash
# set -x
# 执行 checkout
yarn checkout $@
branch=$1
currentPath=$(dirname $0)
sync(){
local moduleName=$1; shift
local path=$1; shift
{ # try
echo
cd $currentPath/$path
git fetch origin && \
git pull origin $branch && \
# 不显示输出
cd - 2>&1 >/dev/null && \
echo "\033[32m [... | true |
1aa27a4e9edcba4cf829fce6ba7cddf7eaa7bef9 | Shell | mattrobenolt/prompt | /bench/prompt-for-perf.sh | UTF-8 | 370 | 2.640625 | 3 | [
"ISC"
] | permissive | #!/bin/bash
export PROMPT_STYLE_HOSTNAME=''
export PROMPT_STYLE_BRANCH=''
export PROMPT_STYLE_WD=''
export PROMPT_STYLE_RESET=''
(
cd "${1:-.}"
for i in {1..100}; do
/home/josh/dev/projects/prompt/target/debug/prompt >/dev/null
# need to build with debug = true
# /home/josh/dev/projects/prompt/target/x86_64-un... | true |
49d4323aaa72d3b5e32e9d8c774e02f3991449c4 | Shell | belovehq/aws-repl-and-beakerx | /packer/provision | UTF-8 | 667 | 2.65625 | 3 | [
"CC-BY-4.0"
] | permissive | #!/usr/bin/env bash
# Install Java, Leiningen and download Clojure libraries
sudo yum install -y java-1.8.0-openjdk-devel.x86_64
mkdir -p /home/ec2-user/bin
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o ~/bin/lein
chmod 755 ~/bin/lein
cd ~/.packer
~/bin/lein deps
cd ~
rmdir .packer
#... | true |
0063184eb53935fc853fd4e8fef1e1f21fa1bdb5 | Shell | CuiMingFu/zumastor | /ddsnap/scripts/genallpatches.sh | UTF-8 | 172 | 2.515625 | 3 | [] | no_license | #!/bin/bash
pushd patches >/dev/null
vers=$(echo *)
popd >/dev/null
for ver in $vers
do
./scripts/genpatch.sh $ver drivers/md > patches/$ver/AUTO.ddsnap.files.patch
done
| true |
3d2c254d74dc6704fb18773c9b9e60a992b8b80e | Shell | wr-fenglei/guessinggame | /guessinggame.sh | UTF-8 | 1,133 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
function is_natural_number() {
[[ $1 =~ ^[1-9][0-9]*$|^0$ ]]
}
function is_overflow() {
# the upper limit for Bash integer is 9223372036854775807 (19 digits)
# 0 ... 9223372036854775807 is valid,
# 9223372036854775808 ... 9999999999999999999 will became a signed negative number,
... | true |
8461a342efb2c413ac28ca1e93958c28e39f20af | Shell | ClassicPress/ClassicPress | /bin/update-importer-plugin.sh | UTF-8 | 1,400 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
IMPORTER_PATH=tests/phpunit/data/plugins/wordpress-importer
IMPORTER_GITHUB_URL=https://github.com/WordPress/wordpress-importer
# This script updates the WordPress importer plugin from its latest version on
# GitHub, which is required for some of the automated tests.
# Sanity check: make ... | true |
bfce841cb41d1f614457f05978e8a8011a24e4bd | Shell | swarmstack/teampass | /teampass-docker-start.sh | UTF-8 | 566 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ ! -d ${VOL}/.git ];
then
echo "Initial setup..."
rm -Rf ${VOL}/*
git clone $REPO_URL ${VOL}
mkdir ${VOL}/sk
chown -Rf nginx:nginx ${VOL}
fi
if [ -f ${VOL}/includes/config/settings.php ] ;
then
echo "Teampass is ready."
rm -rf ${VOL}/install
else
echo "Teampass is not configured yet. Open ... | true |
0e9c127ac6c930ea76dd7357c119d29acf8451fe | Shell | mongodb/libmongocrypt | /bindings/node/.evergreen/test.sh | UTF-8 | 532 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# set -o xtrace # Write all commands first to stderr
set -o errexit # Exit the script with error if any of the commands fail
echo "Setting up environment"
export PATH="/opt/mongodbtoolchain/v2/bin:$PATH"
hash -r
NODE_LTS_VERSION=${NODE_LTS_VERSION:-16}
export NODE_LTS_VERSION=${NODE_LTS_VERSI... | true |
39c8ef44df10c0863cbca4bd3b077847395b3486 | Shell | habitat-sh/core-plans | /packer/plan.sh | UTF-8 | 734 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | pkg_name=packer
pkg_origin=core
pkg_version=1.7.8
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('MPL2')
pkg_source="https://releases.hashicorp.com/${pkg_name}/${pkg_version}/${pkg_name}_${pkg_version}_linux_amd64.zip"
pkg_shasum=8a94b84542d21b8785847f4cccc8a6da4c7be5e16d4b1a2d0a5f7ec5532faec... | true |
026fa740bf588107dd0ed336d8d5ce75a3db0089 | Shell | Mokon/mcommon | /tools/hooks/pre-commit | UTF-8 | 5,232 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Copyright (C) 2013-2016 David 'Mokon' Bond, All Rights Reserved
function main {
rc=0
exec 1>&2 # stdout to stderr
set_root
pushd $root &> /dev/null
set_against
process_files
if ! print_results ; then
rc=1
fi
git_checks
popd &> /dev/null
return $rc
}... | true |
6c4a64f24676fd2d8732841cc7609d7ef9d07a9b | Shell | apana/MyChi | /ChiAnalysis/bin/unfolding/toBatch.sh | UTF-8 | 811 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#
# echo "Number of arguments: " $#
if [ $# -lt 2 ]
then
echo "Usage: toBatch.sh [outputfile] [inputfile] "
echo ""
exit
fi
EXEC=CreateResponseMatrix.py
outfile=$1
infile=$2
Split=$3
echo
echo ">>> Beginning ${EXEC} execution on `date` <<<"
echo
cmsswDir=$LS_SUBCWD
cd $cmsswDir
echo "Cur... | true |
4a66c78ae8c6cc9008c55081de75a2eb2ba72a36 | Shell | vikekh/fantasio-torrent | /scripts/backup.sh | UTF-8 | 740 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes
if [ -z "$1" ]; then
echo "No argument"
exit 1
fi
# DATE=$(date '+%Y-%m-%d')
# BACKUP_DIR="${1}/${DATE}"
BACKUP_DIR=$1
mkdir $BACKUP_DIR
# rm -r "${BACKUP_DIR}"/*
. $2
docker stop $TRANSMISSION_CONTAINER_NAME
dock... | true |
d07ab449fd8c2b4d4e2a362cd119d239fe8c4d24 | Shell | boogeygan/sudo-dfs | /FileServer/run.sh | UTF-8 | 471 | 3.578125 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ]
then
echo -n "Invalid Number of arguments."
echo "Usage: ./run.sh <IP of RMI Registry> <Port of rmiregistry>"
exit 1;
fi
echo
if [ "$2" -le 0 ] || [ "$2" -ge 65537 ]
then
echo "Invalid Port Number"
exit 1
fi
echo
echo "***Compiling***"
javac *.java
echo
echo "***Compilation Completed***"... | true |
4b0e671d634f5942ffab022f8a1ea39e7752e835 | Shell | Boolector/boolector | /test/log/translateaxioms.sh | UTF-8 | 208 | 3.140625 | 3 | [
"MIT",
"LicenseRef-scancode-dco-1.1"
] | permissive | #!/bin/sh
for i in 1 2 3 4 5 6 7 8 16 32 64
do
for axiom in *.axiom
do
name=smtaxiom`basename $axiom .axiom`$i.smt
echo $name
rm -f $name
./translateaxiom.sh $axiom $i > $name
done
done
| true |
bb3c09a132e9d0e38d3e9f5c06c982c92a0b5e5d | Shell | gpuigros/jenkinstest | /scripts/src/main/groovy/com/hotelbeds/jenkins/scripts/ace-package.sh | UTF-8 | 347 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | RPM_DESTINATION=$1
rm -f /opt/ace/packages/RPMS/x86_64/ace-hotel-daemon*.rpm
cd /opt/ace/project/build
make dist-daemon BUILD_NUMBER=$RPM_RELEASE;
cd /opt/ace/packages/RPMS/x86_64
RPM_FILE=$(find ace-hotel-daemon*.rpm)
cp /opt/ace/packages/RPMS/x86_64/$RPM_FILE ${WORKSPACE}/$RPM_DESTINATION/ace-hotel-daemon-$BUILD_... | true |
42eab694fc57d775f5577bde789f4f212cd8b957 | Shell | xcat2/confluent | /confluent_osdeploy/suse15/profiles/server/scripts/setupssh.sh | UTF-8 | 1,647 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Carry over install-time ssh material into installed system
mkdir -p /mnt/root/.ssh/
chmod 700 /mnt/root/.ssh/
cp /root/.ssh/authorized_keys /mnt/root/.ssh/
chmd 600 /mnt/root/.ssh/authorized_keys
cp /etc/ssh/*key* /mnt/etc/ssh/
for i in /etc/ssh/*-cert.pub; do
echo HostCertificate $i >> /mnt/etc/ssh/s... | true |
4c720127018d4eb4613c77d7de9ad36093ca4265 | Shell | Ponce/slackbuilds | /development/azuredatastudio/azuredatastudio.SlackBuild | UTF-8 | 3,298 | 3.625 | 4 | [] | no_license | #!/bin/bash
# Slackware build script for azuredatastudio
# Copyright 2023 Martin Bångens Sweden
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above cop... | true |
a4229ff5b74f8fb7d04637ae401e511da43c54bf | Shell | noahmorrison/bin | /update_colors | UTF-8 | 604 | 2.875 | 3 | [] | no_license | #!/bin/sh
xrdb ~/.Xresources
# foreground
cmd="\033]10;#$(qxr foreground)\007"
# background
cmd="${cmd}\033]11;#$(qxr background)\007"
# cursor
cmd="${cmd}\033]12;#$(qxr color15)\007"
# highlight background
cmd="${cmd}\033]17;#$(qxr color15)\007"
# highlight foreground
cmd="${cmd}\033]19;#$(qxr color0)\007"
for i in... | true |
d7602f1a749b1c05c709f1be818782a21c5beb2b | Shell | gzlock/nest_nuxt_template | /build.sh | UTF-8 | 421 | 3.40625 | 3 | [] | no_license | #bin /bin/bash
DIRNAME=$0
if [ "${DIRNAME:0:1}" = "/" ];then
CURDIR=`dirname $DIRNAME`
else
CURDIR="`pwd`"/"`dirname $DIRNAME`"
fi
echo $CURDIR
# 定位到项目目录
cd $CURDIR
# 创建Docker镜像
docker-compose build nest nuxt
# 停止Docker容器
docker-compose stop nuxt nest
# 启动Docker容器
docker-compose up -d
# 删除旧的Docker镜像
docker rm... | true |
71036f7fd0b381a465e51be0d66bc41ed0ee9ff5 | Shell | psgivens/MiscellaneousLinux | /Desktop/.setup/bootstrap.sh | UTF-8 | 1,469 | 2.703125 | 3 | [] | no_license | #!/bin/bash
# Bootstrapping the environment
### Install tools
sudo apt update
sudo apt install -y git
sudo apt install -y curl
sudo apt install -y vim
sudo apt install -y tmux
### Git this repo
mkdir -p ~/Repos/psgivens
cd ~/Repos/psgivens
git clone https://github.com/psgivens/Misce... | true |
e8f0800c3a6cd878da9818c2196ef3b9789b9127 | Shell | stevenharradine/checksite | /checksite.sh | UTF-8 | 582 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# (c) 2018 Steven Harradine
site=$1
cachedHash=`cat /tmp/sitehash`
newHash=`curl $site | md5sum | cut -d' ' -f1`
email_to=$2
email_from=$3
email_config_user=$4
email_config_password=$5
email_subject="New update to the page $site"
email_body="New update to the page $site"
if [[ "$cachedHash" == "$newHash"... | true |
7f3a01299d29edde7d1bba1158b1faf8c776a2ce | Shell | spark-2020/utils | /installation/golang-dev-machine.sh | UTF-8 | 3,143 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Get the latest package list
sudo apt update
# Do the updates
sudo apt-get update
# install wget
sudo apt install -y software-properties-common apt-transport-https wget
# Download the Debian Linux Chrome Remote Desktop installation package:
wget https://dl.google.com/linux/direct/chrome-remote-desktop_cu... | true |
e87ea5fbef7a48518c3fcf26b5447968252ca3da | Shell | cloux/sin | /modules/ec2-tools/inst/ec2-benchmark-osboot.sh | UTF-8 | 3,134 | 4.15625 | 4 | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
#
# Benchmark AWS EC2 - Operating System's startup time in seconds.
# Measured as time between instance state reported as "running"
# and SSH availability.
# For higher precision, several cycles should be run and averaged.
#
# (cloux@rote.ch)
# your aws-cli profile
profile="default"
# how many boot cycles
cy... | true |
55db5dcc97943c353fef0c6a24331d3869f88ed8 | Shell | periket2000/api_gw | /scripts/git_clone.sh | UTF-8 | 347 | 2.6875 | 3 | [] | no_license | #!/bin/sh
echo "... cloning ${GIT_REPO} ..."
cd ${PROJECT_DIR}
git -c http.sslVerify=false clone ${GIT_REPO}
GIT_DIR=$(echo ${GIT_REPO##*/} | cut -d. -f1)
cd ${GIT_DIR}
. ${PROJECT_DIR}/load_venv.sh
echo "... installing requirements ..."
pip install -r requirements.txt
export PYTHONPATH=${PROJECT_DIR}/${GIT_DIR}
pytho... | true |
279654b0c9c3cb3ef8ef19f86f41701937a052f6 | Shell | szepeviktor/box | /.travis/install-ev.sh | UTF-8 | 275 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Credits: https://github.com/amphp/amp/blob/8283532/travis/install-ev.sh
#
curl -LS https://pecl.php.net/get/ev | tar -xz;
pushd ev-*;
phpize;
./configure;
make;
make install;
popd;
echo "extension=ev.so" >> "$(php -r 'echo php_ini_loaded_file();')"; | true |
097ee3fbc51f61aae3b8c4fa0ccc85ccad467a61 | Shell | glemaitre/imbalanced-learn | /build_tools/circle/push_doc.sh | UTF-8 | 1,033 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script is meant to be called in the "deploy" step defined in
# circle.yml. See https://circleci.com/docs/ for more details.
# The behavior of the script is controlled by environment variable defined
# in the circle.yml in the top level folder of the project.
if [ "$CIRCLE_BRANCH" = "master" ]
then
... | true |
f1f0617304bcd090a19765d3962980d24369b8c3 | Shell | livingbio/log-server | /process.sh | UTF-8 | 740 | 3.609375 | 4 | [] | no_license | #! /bin/bash
#
# process.sh
# Copyright (C) 2014 vagrant <vagrant@vagrant-ubuntu-trusty-64>
#
# Distributed under terms of the MIT license.
#
bucket=tagtoo_rtb_log
for file in `ls request.log.*|grep -v '.gz'`
do
i_file=$file
o_file=`echo ${file}.gz|sed 's/request.log/request.json/'`
echo "process $i_file"... | true |
4b97976799f748a02e21f81d32f0e9f18dc3fbb7 | Shell | lescpsn/lescpsn | /study-notes/qxbuild/purus-install/purus-install.sh | UTF-8 | 1,445 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env bash
PURUS_DIR=~/qxdevelop/purus
PURUS_URL=https://git.quxun.io/core/purus.git
################################################################################
function get_purus()
{
if [ -e ${PURUS_DIR} ]; then
rm -rf ${PURUS_DIR}
fi
git clone ${PURUS_URL} ${PURUS_DIR}
if [ $? ... | true |
661ee5fcd5f1ea559ea273f11ec3daec38351308 | Shell | CitronTech/metaspot | /dev/deployLambda.sh | UTF-8 | 446 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#if [ "$#" = 2 ] && [ "$2" = "--create" ]; then
#fi
cd $1
rm lambda.zip
rm -r src/node_modules/dynamo
cp -r ../../modules/dynamo src/node_modules
rm -r src/node_modules/metaspot
cp -r ../../modules/metaspot src/node_modules
rm -r src/node_modules/utils
cp -r ../../modules/utils src/node_modules
rm -r src... | true |
91f72acd61e7af36781713f870160c07ffcac7b2 | Shell | jlongstreet/glint-snes | /install.sh | UTF-8 | 1,463 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Force Google DNS for install
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf
# Set the glint-snes branch to pull from on github if it isn't already set
if [ -z "$GLINTSNESBASE" ]
then
export GLINTSNESBASE=jlongstreet/glint-snes
fi
if [ -z... | true |
ed049cbdef12ae307f91eaadd7c391e3ff8a1b07 | Shell | johnnych7027/active_liveness | /pre-commit-hook.sh | UTF-8 | 325 | 2.71875 | 3 | [] | no_license | #!/bin/bash
black 2>/dev/null || echo "you do not have black. should install: pip3 install black"
# run formater
git diff --diff-filter=d --cached --name-only | egrep '\.py$' | xargs black 2>/dev/null
# apply changes after formater
git diff --diff-filter=d --cached --name-only | egrep '\.py$' | xargs git add 2>/dev/... | true |
200094a0e3336ac3cff6092cc30367ce86e6d11c | Shell | DavidChatak/Assignment | /ASSIGNMENTS_CLARUSWAY/Assignment-case-study.sh | UTF-8 | 942 | 3.375 | 3 | [] | no_license | #!/bin/bash
clear
su
if [ $? == 0 ] ;
then
exit
echo "welcome $whoami"
else
echo "NO"
fi
control=$(find . -name AccessLog.txt | wc -l)
echo $control
if [ $control = 0 ]; then
sudo touch AccessLog.txt
sudo chmod 777 AccessLog.txt
fi
num=$(cat AccessLog.txt | wc -l )
date=$( date )
sudo echo "$(($num+1)) $USER $... | true |
3e5c3183379181b8a60a661dc0571a3b7c47af74 | Shell | jactor-rises/actions-gh-pages | /move/move.sh | UTF-8 | 1,730 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
############################################
#
# Følgende forutsetninger for dette skriptet
# - github pages befinner seg under mappa docs
# - sist genererte rapport lagges under mappe docs/latest
# - eldre genererte rapporter ligger under mappa docs/generated/<date or timestamp>
#
# Følgende skjer ... | true |
522c030b4b200927545e306a719dd9d9e7054143 | Shell | kfirlavi/bashlibs | /src/bashlibs-os-detection/test/test_os_detection.sh | UTF-8 | 3,132 | 3.328125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
$(bashlibs --load-base)
include shunit2_enhancements.sh
include directories.sh
include os_detection.sh
create_root_path() {
set_root_path /tmp
mkdir -p $(release_file_dir)
}
clean_root_path() {
safe_delete_directory_from_tmp $(release_file_dir)
unset_root_path
}
create_ubuntu_lsb_release_... | true |
0ef4b01e06419508be733c5b1e79159156f302a8 | Shell | umm-csci-3412-fall-2021/lab-4-erik-natasha | /summarize_tree/summarize_tree.sh | UTF-8 | 197 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
path=$1;
num_regular=$(find "$path" -type f | wc -l)
num_dir=$(find "$path" -type d | wc -l)
echo "There were" $num_dir "directories."
echo "There were" $num_regular "regular files."
| true |
aa2ffeb38c93cb0531466127b67ffcbee905b39b | Shell | kztool/dev-tools | /electron/build/osx-debug.sh | UTF-8 | 1,184 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
ELECTRON_REPO=https://github.com/electron/electron
# cd the root path
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname "$(realpath "$0")")
cd ${ROOT}
# clone the depot_tools repository
rm -rf ${ROOT}/depot_tools
git clone https://chromium.googlesource.com/chromium/t... | true |
13e18ddcfa3ef56a6f67c5b9a1e94f879e423a6e | Shell | Grenadingue/baluchon | /.baluchon.d/prompt.bash | UTF-8 | 664 | 3.171875 | 3 | [] | no_license | prompt_color="\[${style[reset]}${style[bold]}\]"
session_color="\[${style[reset]}${colors[light-gray]}\]"
user_color="\[${style[bold]}${colors[dark-gray]}\]"
host_color="\[${style[bold]}${colors[dark-gray]}\]"
path_color="\[${style[reset]}${colors[blue]}\]"
end_of_prompt="\[${style[reset]}\]"
if [ "$SESSION_TYPE" == "... | true |
54018674e66536c55ebf2ce488b86a6d7e1426f3 | Shell | obongo-dokwub/Bash | /scpCopyFileToRemoteDir | UTF-8 | 203 | 3.125 | 3 | [] | no_license | #!/bin/sh
while getopts f:rd: option
do
case "${option}"
in
f) LOCALFILE=${OPTARG};;
rd) REMOTEFOLDER=${OPTARG};;
esac
done
scp -P portnumber -i id_rsa $LOCALFILE username@remoteAddress:"$REMOTEFOLDER"
| true |
454c2822355152792cd94de0a757b9f1ac9d8af2 | Shell | mfdorst/scripts | /install-tailwind-cli | UTF-8 | 277 | 3.0625 | 3 | [] | no_license | #!/usr/bin/env bash
INSTALL_DIR="$HOME/.local/bin"
mkdir -p $INSTALL_DIR
pushd $INSTALL_DIR
wget -O tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
chmod +x tailwindcss
popd
echo "tailwindcss installed to $INSTALL_DIR"
| true |
5accebf54a3d1b558a1fa5f1d88d98f2b9c9e941 | Shell | henrikstengaard/hstwb-installer | /launcher/amibian/amibian.sh | UTF-8 | 987 | 3.9375 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Amibian Launcher
# ----------------
# Author: Henrik Noerfjand Stengaard
# Date: 2020-04-05
#
# bash script to show amibian launcher.
# main menu
while true; do
# show main menu
choices=$(dialog --clear --stdout \
--title "HstWB Installer for Amibian v$AMIBIAN_VERSION" \
--menu "Select option:" 0 0 ... | true |
c2f61ddee3c14760a5c9c8e7fd9d1414f07c5c94 | Shell | tiancheng91/dotfiles | /bin/justintv | UTF-8 | 833 | 3.140625 | 3 | [] | no_license | #!/bin/zsh
channel=$1
if [[ -z "$3" ]]; then
password=""
resolution=$2
else
password=$2
resolution=$3
fi
swfaddr=$(curl 2>/dev/null -I "http://www.justin.tv/widgets/live_embed_player.swf?channel=$channel&publisherGuard=$password" | grep Location | awk -F': ' '{print $2}')
embed=$(echo $swfaddr | sed ... | true |
b8d4d92b0b2a9dcc1e6ecdaf43cca9bd4075b848 | Shell | rpelisse/bug-clerk-report-job | /run.sh | UTF-8 | 853 | 2.8125 | 3 | [] | no_license | #!/bin/bash
readonly BUGCLERK_VERSION=${BUGCLERK_VERSION:-'0.8.0-SNAPSHOT'}
readonly TRACKER_PASSWORD=${TRACKER_PASSWORD}
readonly TRACKER_USERNAME=${TRACKER_USERNAME}
readonly TRACKER_TYPE=${TRACKER_TYPE:-'jira'}
if [ -z "${TRACKER_PASSWORD}" ]; then
echo "Missing Bugzilla Password for user."
exit 1
fi
readon... | true |
dcff8d50d32025ebb8386be7b4b815fd26300fbc | Shell | drisss/2016 | /code/extraction_tweets/tweets_per_event.sh | UTF-8 | 834 | 4.28125 | 4 | [] | no_license | #!/bin/bash
HELP="Syntax: $0 N path/to/train_euro2016/
For every .json.tsv file in the provided path, creates an associated
folder containing files for tweets following events after N minutes.
Syntax of the files: the first line reports the event, the following
are the tweets retrieved."
if (( $# != 2 ))
then
prin... | true |
85879446b71268775bb69f35b542a2ec61145009 | Shell | life1347/havana-auto-deploy | /all-in-one/control/diff-configs.sh | UTF-8 | 402 | 3.25 | 3 | [] | no_license | #!/bin/bash
ext=${1:-orig}
out_file=${2:-./config.diff}
> $out_file
for item in $(find /etc -name "*.${ext}" -print) ; do
path=${item%.$ext}
echo "#================================================================================" >> $out_file
diff -u $path.$ext $path >> $out_file
done
echo "#=============... | true |
c0cfe52c555b801b57a0a3918abbc26cee4831b4 | Shell | zpervan/QtVideoEditor | /Scripts/install.sh | UTF-8 | 1,243 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
echo "This script installs all needed dependencies to successfully run the QyVideoEditor application on Ubuntu 20.04!"
echo "Run this script with sudo privileges in order to install the libraries!"
if [[ $(whoami) != root ]]; then
echo -e " -- \e[31mPlease run this script as root or using sudo\e... | true |
4763aced4832673e48d10abb5386a7ea732aa296 | Shell | Team-CodeVid/Final-Project | /Jenkins/Scripts/Docker/build_images.sh | UTF-8 | 851 | 3.140625 | 3 | [] | no_license | #!/bin/bash
#Install dependencies required to build
sudo apt install openjdk-8-jre maven default-jre -y
#Go into our Docker directory
cd Docker
#Prune our system by force
docker system prune -f
#Remove any previous repos
sudo rm -r spring-petclinic-angular
sudo rm -r spring-petclinic-rest
#Clone our REST repo (con... | true |
de911b4491519d9703c988805af252ee4bfee696 | Shell | chris-barry/bin | /focus.sh | UTF-8 | 1,036 | 4.125 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
# Helps you keep track of time.
# Depends on libnotify
# TODO play a sound when time changes
# TODO argument to send signal that will close program
# Just incase you send it to bg
#trap "notify-send $APP "Timer ended"; exit 0;" SIGINT
# TODO some sort of constant notification of what mode you're in?
# Sa... | true |
5517620c5ad0a961c0d309f3c6614afde07977b6 | Shell | l0th3r/road66 | /scripts/build.sh | UTF-8 | 530 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# BUILD SCRIPT FILE
# Script to build a version of the game /
#
make build
echo
echo
echo
f_date=$(date +'%m-%d-%Y')
f_name="road66_build_${f_date}"
file_name="road66"
echo "== creating folder"
mkdir ${f_name}
echo "== importing executable"
mv make_out ./${f_name}/${file_name}
echo "== import even... | true |
615ebc680e41f4c2829d26030e48991ddaa34d21 | Shell | kaushalnavneet/cd-pipeline-kubernetes | /scripts/managedworkers/logdna_excludes.sh | UTF-8 | 505 | 2.515625 | 3 | [] | no_license | #!/bin/bash
#checks if LOGDNA_EXCLUDE has already been added and if not patches and restarts the daemon-set
kubectl get ds logdna-agent -n ibm-observe -ojson | jq -e '.spec.template.spec.containers[0].env[] | select(.name=="LOGDNA_EXCLUDE")' ||
(
kubectl patch ds logdna-agent -n ibm-observe --type "json" -p '[{"op":"a... | true |
f616a37d4cd0dae4f1ae457d86b50e736748c2cd | Shell | Acquati/shellscript-cheat-sheet | /install-homestead | UTF-8 | 1,077 | 2.953125 | 3 | [] | no_license | #!/bin/bash
echo "Installing Homestead."
echo 'deb http://download.virtualbox.org/virtualbox/debian zesty contrib' >> /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt-get -y update
sudo apt-get install -y virtualbox-5.1
sudo apt-get install -y dkm... | true |
1795a869351475d861a932639f0e6f17133153c4 | Shell | aoleary/device_lge_g4-common | /extract-files.sh | UTF-8 | 1,166 | 3.71875 | 4 | [] | no_license | #!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE_COMMON=g4-common
VENDOR=lge
# Load extractutils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
ANDR... | true |
77c45c65abf858bf4cbc5b669e37d4c6feb9b00b | Shell | davidvic99/6aDavid | /script2.sh | UTF-8 | 261 | 3.40625 | 3 | [] | no_license |
echo "Escribe un valor mayor que 0:"
read num
while [ $num -le 0 ];do
echo "Vuelve a añadir un numero, debe ser mayor de 0:"
read num
done
let resto=num%2
if [ $resto -eq 0 ];then
echo "El $num es par"
else
echo "El $num es impar"
fi
| true |
b4eb088fb764f8cc248c78c7465e052be9512f09 | Shell | TheMengLab/Si-C | /analysis/compartment/compartment/1/do.sh | UTF-8 | 789 | 2.75 | 3 | [] | no_license | #!/bin/bash
id=${1}
#grep ^chr19 ../GSM2123564_Haploid_mESC_population_hic.txt | grep -P "\t"chr19 | awk '{print $2/50000,$5/50000,$7}' > contact.dat
#grep -P ^chr${id}"\t" ../../../GSM2123564_Haploid_mESC_population_hic.txt | grep -P "\t"chr${id}"\t" | awk '{print $2,$5,$7}' > contact.dat
cp ../../${id}/matrix.dat .... | true |
69241ccd0d6ee9f68543afcf92e34ac1c16f35be | Shell | Bato/microservices-experiments | /redis/spring-cloud-demo/docker-zipkin/cassandra/install.sh | UTF-8 | 1,080 | 2.96875 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/sh
set -eu
echo "*** Installing Cassandra"
curl -SL http://downloads.datastax.com/community/dsc-cassandra-$CASSANDRA_VERSION-bin.tar.gz | tar xz
mv dsc-cassandra-$CASSANDRA_VERSION/* /cassandra/
echo "*** Installing Python"
apk add python
# TODO: Add native snappy lib. Native loader stacktraces in the cassand... | true |
fe1b4ddc0f55f41851cb1b9c26484491bdd1f323 | Shell | fhill2/dotfiles | /deprecated/dotbot/setup_mysql.sh | UTF-8 | 587 | 2.734375 | 3 | [] | no_license | #!/bin/sh
sudo pacman -S --needed mariadb
yay -S --needed mycli # autocompletion and syntax highlighting
mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl mariadb.service
mysql -u root -p
# atm I am not running mysql as a regular user
# https://dev.mysql.com/doc/mysql-security-ex... | true |
d5fd9b2f12dea4a97ee97193e01f3e69b381f81d | Shell | mcgarrigle/bin | /bashrc-os-linux | UTF-8 | 540 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# vim: set ft=bash syntax=on
alias rpm-keys="rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'"
function kto {
gdb --batch-silent --pid=$$ --eval-command='call unbind_variable("TMOUT")'
}
function td {
sudo kill $(cat /var/run/openvpn.pid)
sudo rm -f /var/run/openvpn.pid
}
funct... | true |
9ee65a56ea542b62a5fe52a2608273fb8ed8d604 | Shell | arunvel1988/k8s-operator-ansible-demo | /demo/build-push-image.sh | UTF-8 | 895 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#Shell script to build and push image for operator
#Command to build operator image
echo -n "Enter repository name "
read repo_name
echo -n "Enter Operator image name "
read image_name
#command to build image
sudo operator-sdk build $repo_name/$image_name
#Command to push operator image
sudo docker pu... | true |
da96af5fb9db17d7440a2e103442091d2ab29dae | Shell | subbus-g/shell-scripting-programs | /day-5-sequences-selections/1-sequence/5_1_unit_conversion.sh | UTF-8 | 593 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#a)
no_of_inches=42
#scale=4 fixes no of digits after . to 4
no_of_feets=$(echo "scale=4; $no_of_inches / 12" | bc -l)
echo "42 inches = $no_of_feets feets"
#b)
length_in_ft=60
breadth_in_ft=40
area_in_ft=$(( length_in_ft * breadth_in_ft ))
#scale=4 fixes no of digits after . to 4
area_in_m=$(echo " scale... | true |
963387dc41b38b13d771008b9997edfbd92fbedf | Shell | ricardomfmsousa/shell-scripts | /dev-setup-pop!_os/setup/browsers.sh | UTF-8 | 975 | 3.0625 | 3 | [] | no_license | #!/usr/bin/env bash
# Setup web browsers
source ./functions/utils.sh && no-root
# Add Brave web browser repository
# Free and open-source privacy focused web browser by Brave Software,
# founded by the creator of Javascript and former CEO of Mozilla Corporation
apt-install apt-transport-https curl
curl -s https:/... | true |
f778041245fe1fc5a9569a8f1fd655894205adad | Shell | execdf/ambari-redis-cluster | /package/scripts/upgrade_ruby.sh | UTF-8 | 332 | 2.796875 | 3 | [
"BSD-3-Clause"
] | permissive | dist=$(tr -s ' \011' '\012' < /etc/issue | head -n 1)
if [ "$dist" = "Ubuntu" ]
then
apt-get -y install ruby
gem install redis
else
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 2.3.1
... | true |
e3347bd1807ed8ba667eff9c43671ac418e51e77 | Shell | vidsy/assume-role | /terraform-wrapper.sh | UTF-8 | 771 | 3.515625 | 4 | [] | no_license | #!/bin/bash
TIME_LEFT=$(ruby -e "require 'time'; puts ((Time.parse('$AWS_EXPIRATION') - Time.now) / 60).floor")
if [ "$TIME_LEFT" -lt "0" ]; then
echo "Role has expired ($AWS_EXPIRATION), please exit this shell and start another"
exit -1
fi
function var_file_path() {
if [ -z "$VAR_FILE" ]; then
echo "-var-f... | true |
d3cb25c6619748f787780ee28f96ec7df316a174 | Shell | jdaeira/Arch-ISO-Plasma | /Scripts/145-setup-zsh.sh | UTF-8 | 793 | 3.09375 | 3 | [] | no_license | #! /bin/bash
set -e
########################################################################
# Author : John da Eira
# Email : jdaeira@gmail.com
########################################################################
## Install Necessary Files
sudo pacman -S zsh --noconfirm --needed
sudo pacman -S curl --nocon... | true |
0aca18121b86bd0d2fc37773884e35c003a5f5dc | Shell | chynten/home-setup | /apps/setup.sh | UTF-8 | 1,917 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
read -p "Node Name (If multiple, then give node name which has local storage):" NODE_NAME
export NODE_NAME=$NODE_NAME
read -p "Do you wish to install plex (y/n)?" yn
case $yn in
y )
cd plex
sh ./setup.sh
cd ..
;;
esac
read -p "Do you wish to install tautulli (y/n)?" y... | true |
ffc62cedadbbaecccfdc97b918c103424f0d0568 | Shell | sauliusg/grammatiker | /EBNF/tests/cases/lark-tree_001.sh | UTF-8 | 217 | 2.90625 | 3 | [
"MIT"
] | permissive | #! /bin/sh
SCRIPT=$(basename $0 .sh | sed 's/_[0-9][0-9]*$//')
if ./scripts/${SCRIPT} \
tests/inputs/ternary.lark \
tests/inputs/ternary_1.txt
then
echo OK
else
echo Parse error
fi
| true |
4719cc1913958ddb51b930208ad09e9b10152800 | Shell | delkyd/alfheim_linux-PKGBUILDS | /gtkplatform-git/PKGBUILD | UTF-8 | 681 | 2.75 | 3 | [] | no_license | pkgname=gtkplatform-git
pkgver=0.1.0.r8.1e6222f
pkgrel=1
pkgdesc="Run Qt applications using gtk+ as a windowing system"
arch=('i686' 'x86_64')
url="https://github.com/CrimsonAS/gtkplatform"
license=('LGPL3' 'GPL2')
depends=('gtk3' 'libnotify' 'qt5-base')
makedepends=('git')
provides=("${pkgname%-VCS}")
conflicts=("${pk... | true |
6ec23392899cff4ab77cc871c0913265e733f840 | Shell | CartoDB/mobile-sdk | /scripts/travis/prerequisites.sh | UTF-8 | 1,478 | 2.921875 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | set -e
rvm get head
echo '---- Updating submodules ----'
git submodule update --init --remote --recursive
echo '---- Downloading and setting up boost ----'
curl -o boost_1_77_0.zip -L https://sourceforge.net/projects/boost/files/boost/1.77.0/boost_1_77_0.zip/download
rm -rf boost_1_77_0
unzip boost_1_77_0.zip
cd lib... | true |
d4e16d96476c8348bbf4e5227906bf39bafd7209 | Shell | rstyczynski/umc | /tools/linux/oradb/1.0/oradb | UTF-8 | 1,998 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Tomas Vitvar, tomas@vitvar.com
# this script directory
getSensorData_bin=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# check umc was configured
if [ ! -d $umcRoot ]; then
echo >&2 "umc was not initialized!"
exit 1
fi
# configuration directory
configDir="$umcRoot/etc/tools/oradb"
args=("$@")
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.