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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d66958286e6d8bae212d52773aa8f8a6216b23ed | Shell | lusssn/ecclesia | /scripts/generate-ssl-certs.sh | UTF-8 | 616 | 3.40625 | 3 | [] | no_license | #!/bin/bash
if [ ! -e server.js -a ! -e app.js ]
then
echo "Error: could not find main application server.js file"
echo "You should run the generate-ssl-certs.sh script from the main application root directory"
echo "i.e: bash scripts/generate-ssl-certs.sh"
exit -1
fi
echo "Generating self-signed certificates..."... | true |
d85a8d3e7a8a05c05e0dbb18ae93b6a61ba22c6f | Shell | stensonb/ipget | /sharness/t0020-ephemeral-node.sh | UTF-8 | 962 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
test_description="test the ipget command by spawning a shell"
. ./lib/sharness/sharness.sh
test_expect_success "retrieve a known popular single file" "
ipget --node=spawn QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF/cat.gif &&
echo 'c5ea0d6cacf1e54635685803ec4edbe0d4fe8465' > expected &&
shas... | true |
f3a492beb7ac6cae5823ceae0a6c9fca9808d99e | Shell | venkatping/chilaka | /section16/array.sh | UTF-8 | 212 | 3 | 3 | [] | no_license | #!/bin/bash
<<mycom1
echo -n "Enter array values: "
read -a my_array
echo "the given array values is: ${my_array[@]}"
mycom1
my_array=( hi hello "how are you" )
for i in "${my_array[@]}"
do
echo "${i}"
done
| true |
f41f881aafafc54da50df05bb979f82f118800f8 | Shell | barlingo-app/barlingo-be | /scripts/deploy.sh | UTF-8 | 2,267 | 3.078125 | 3 | [] | no_license | #!/bin/bash
NOW=$(date +"%Y-%m-%d")
if [ "$TRAVIS_BRANCH" == "CI" ]; then
echo "Deploying $TRAVIS_BRANCH to UAT"
mysql -u$CI_DB_USERNAME -p$CI_DB_PASSWORD -e "drop database ${CI_DB_NAME};"
mysql -u$CI_DB_USERNAME -p$CI_DB_PASSWORD -e "create database ${CI_DB_NAME};"
mv src/main/resources/import.sql src/main... | true |
ff5e3bdf84870cb593c7f7ec8c1dad25fbba9551 | Shell | nursix/sahana-setup | /prod/debian/apache-mysql-install.sh | UTF-8 | 10,173 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Script to install Sahana on a Debian Wheezy or Jessie box with Apache & MySQL
#
# License: MIT
#
# Execute like:
# bash apache-mysql-install.sh
#
# =============================================================================
# Configuration
# Stable 2.14.6
WEB2PY_COMMIT=cda35fd
# Which OS are we ... | true |
7cea01475111d3fe098363efe57ba06b1087f906 | Shell | atkuzmanov/scripts | /rename_files_and_folders_script/rename_files_and_folders_script_v1.0.sh | UTF-8 | 6,284 | 3.828125 | 4 | [] | no_license | #!/bin/bash
set -e
################################
## WORKING
##
## TODO: optimise
##
## WIP: [optimisation 1:]
## Instead of each function looping and going through all files and folders
## have one function to do the loop and pass the files and folders as arguments
## to all the other functions.
## Continue develo... | true |
2887e171a8813f1e0c7ef5444481caf8d37f08eb | Shell | flintory5/homebridge | /install.sh | UTF-8 | 1,686 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# install.sh
#
#
# Created by Flint Ory on 12/13/15.
#
#!/bin/bash
NODE_VERSION=4.2.3
NPM_VERSION=2.14.4
# Save script's current directory
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#cd "${DIR}"
#
# Check if Homebrew is installed
#
which -s brew
if [[ $? != 0 ]] ; then
# Install Homeb... | true |
b8ef860173ef0ef284fb946e94e8b675ddcb463b | Shell | mattrobenolt/prompt | /bench/old-prompt.sh | UTF-8 | 772 | 3.46875 | 3 | [
"ISC"
] | permissive | #!/usr/bin/env zsh
#fg_green=$'\e[32m'
#fg_cyan=$'\e[36m'
#fg_red_bold=$'\e[1;31m'
#fg_white_bold=$'\e[1;97m'
#reset=$'\e[0m'
prompt_pwd () {
#[ "$PWD" = "/home/${USER}" ] && wd='~' || wd="${PWD##*/}"
wd="${PWD##*/}"
#printf %s "${fg_cyan}${wd}${reset}"
printf %s "$wd"
}
prompt_git () {
cur_branc... | true |
bd0b4da9ac3d157e6387b689cbd18b8bae01388f | Shell | comsci-uwc-isak/process-journal-Shin1203 | /octbreakcountdown.sh.save | UTF-8 | 442 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#identifiers for each month
January=1
#Jan=0days
February=2
#Feb=32days
March=3
#March=60days
April=4
#April=91days
May=5
#May=121days
June=6
#June=152days
July=7
#July=182days
August=8
#August=213day
September=9
#September=244day
October=10
#October=274
#read month from user
echo "Enter month ... | true |
0340b7a5d523b7f99f6d9826720ad24f927796ef | Shell | andris9/sharded-mongodb-docker | /mongod/mongod_runextra.sh | UTF-8 | 614 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Wait until local MongoDB instance is up and running
until /usr/bin/mongo --port 27017 --quiet --eval 'db.getMongo()'; do
sleep 1
done
# Configure a MongoDB replica set (doesn't matter if each container attempts
# to run same action, first one wins, other attempts will then be ignored)
/usr/bin/mongo -... | true |
32e35f09c281b36cb089798955e47d38f1746577 | Shell | jeffski10/tvh-postprocessor | /TVH_PP.sh | UTF-8 | 2,707 | 3.609375 | 4 | [] | no_license | #!/bin/sh
#set -x #echo on
# TV Converter
# Processes recorded TV program, strips out adverts via Comskip and compresses
function pause(){
read -p "$*"
}
#Variables and paths
filename=`basename "$1"`
BaseFileName=${1%.*}
EDLFILE=$BaseFileName.edl
FFPROBE=/opt/Qffmpeg/bin/ffprobe
FFMPEG=/opt/Qffmpeg/bin/ffmpeg
COM... | true |
884b4b14187d79d4bc2fcb383c7c7f76a96130a1 | Shell | 4charles2/SHELL | /exercice/variable.sh | UTF-8 | 4,099 | 3.828125 | 4 | [] | no_license | #! /bin/bash
variable="bonjour"
suite=" monsieur"
strcat=$variable$suite
other=$variable_$suite #Cette variable va produire une erreur car le shell (/bin/bash) va chercher une premiere variable qui se nomme $variable_ alors qu'elle n'éxiste pas
autre=${variable}_${suite}
echo -n "Devrai afficher bonjour : "
echo $vari... | true |
456751fb57213db2e3696706862d83b1a64648da | Shell | B-Rich/community-mirror | /rubber/trunk/PKGBUILD | UTF-8 | 1,141 | 2.5625 | 3 | [] | no_license | # $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Baptiste Grenier <baptiste@bapt.name>
pkgname=rubber
pkgver=1.1
pkgrel=9
pkgdesc="A wrapper for LaTeX and friends"
arch=('any')
url="http://iml.univ-mrs.fr/~beffara/soft/rubber/"
license=('GPL')
depends=('python2')
makedepends=('texinfo')
so... | true |
6e9e68a443ad91202d02a205f9919329a7f2041d | Shell | ericstone57/nurun-scripts | /ddms/file-rsync-pord2uat-emag3.sh | UTF-8 | 337 | 2.53125 | 3 | [] | no_license | #!/bin/bash
set -x
PROD=192.168.10.21
PROD_USER=webown
PROD_PATH=/home/webown/sites/emag3/sites/magazine/files
LOCAL_PATH=/home/webown/sites/ddms-emag3/sites/magazine/
rsync -arv \
--delete \
--exclude=styles \
--exclude=js \
--exclude=css \
--exclude=less \
$PROD_USER@$PROD:$PROD_... | true |
a7f6d5b369d5c5646ae9770cc39db86a724d2440 | Shell | conda-forge/gflags-feedstock | /recipe/build.sh | UTF-8 | 376 | 2.734375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
mkdir build_release
cd build_release
export CXXFLAGS="-fPIC ${CXXFLAGS}"
export CFLAGS="-fPIC ${CFLAGS}"
cmake ${CMAKE_ARGS} .. \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DINSTALL_HEADERS=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=OFF \
-DBUILD_TESTING=ON
make
if [[ "${CONDA_BUILD_CR... | true |
c5662a85a4c5fa175a8dc6ccec7f7e23753673c9 | Shell | mintproject/MINT-WorkflowDomain | /WINGSWorkflowComponents/GeneralDataPreparation/pihm_cropland_to_points/run | UTF-8 | 405 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
checkExitCode() {
if [ $? -ne 0 ]; then
echo "Error"
exit 1;
fi
}
BASEDIR=`dirname $0`
. $BASEDIR/io.sh 1 0 1 "$@"
HEADER=`sed '1!d' $INPUTS1`
count=1
sed 1d $INPUTS1 | while read line
do
echo $HEADER > outfile-$count
echo $line >> outfile-$count
count=$((count+1))
done
ls -lh
count=1
f... | true |
50eb39cad014ad174478dd1277db64fde8c882f4 | Shell | BLshlomo/shell-scripting | /busybox_test.sh | UTF-8 | 935 | 3.609375 | 4 | [] | no_license | #!/bin/sh
set -x
addr=tox_lb
port=8080
t=5
# Split test file to smaller ones
mkdir -p src/test/split
cd src/test/split
split -l 10 ../e2e
cd ..
# Check if the app container is running
while [ $t -gt 0 ]; do
nc -z "$addr" $port && break || sleep 3
t=$((t-1))
done
[ $t -eq 0 ] && echo "App is not up, quitting" && exit... | true |
1cf993a71f17b7e65a90d7a3cc394642b4b0b0ac | Shell | andreology/LinuxShellScripting | /greeting.sh | UTF-8 | 106 | 2.515625 | 3 | [] | no_license | #!/usr/bin/env bash
NAME="Bob Hank"
FAVORITE_COLOR=blue
echo HI $NAME, your fav color is $FAVORITE_COLOR.
| true |
0e65228877abcfb83c45e72af5c24d3c1250993b | Shell | cheuklau/spyglass | /src/kafka/mvp/stop_kafka.sh | UTF-8 | 397 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# Stop Kafka
kafka-server-stop.sh
if [[ $? -gt 0 ]]; then
echo "WARN: Unable to stop Kafka"
fi
# Stop Zookeeper
zookeeper-server-stop.sh
if [[ $? -gt 0 ]]; then
echo "WARN: Unable to stop Zookeeper"
fi
# Remove Zookeeper and Kafka data directories
rm -rf kafka_2.12-2.0.0/data/zookeeper
rm -rf kafka_... | true |
c4239725d47f5cf2bd3ec9906998d1f918d006b3 | Shell | carlosmaniero/front-end-testing-guide | /visual-tests/set-env.sh | UTF-8 | 363 | 3.203125 | 3 | [] | no_license | unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
if [ "$machine" == "Linux" ]; then
export STORYBOOK_HOST="localhost:6006"
else
export ST... | true |
7fc2f4f5f28bba338e3da67c778931920ba6db1d | Shell | redhat-nfvpe/openshift-baremetal-ci | /ovn/upi/deploy.sh | UTF-8 | 4,940 | 3.0625 | 3 | [] | no_license | #!/bin/bash
set -e
set -x
export OPENSHIFT_MAJOR_VERSION=${OPENSHIFT_MAJOR_VERSION:-"4.3"}
export NETWORK_TYPE=${NETWORK_TYPE:-"OVNKubernetes"}
# export PULL_SECRET=${PULL_SECRET:-""}
# [ -z $PULL_SECRET ] && echo "empty pull secret, exiting" && exit 1
trap cleanup 0 1
cleanup() {
# Gather bootstrap & master logs... | true |
46098730ad35e0b6e04291892a68afa5831ee9e2 | Shell | romilsrivastava/romilss | /employeewageuc4.sh | UTF-8 | 323 | 3.15625 | 3 | [] | no_license | #!/bin/bash -x
p=$(( RANDOM%3 ))
WagePerHour=20
FullDayHour=16
PartTimeHour=8
case $p in
1)
echo "employee is present for full time"
dailywage=$(( $WagePerHour*$FullDayHour ))
;;
2)
echo "employee is present for part time"
dailywage=$(( $WagePerHour*$PartTimeHour ))
;;
*)
echo "employee is absent"
;;
es... | true |
0584a7038c9e9b160f2d327cd4d66df7425bce55 | Shell | airaup/airaup-sgi | /hack/encrypt_passwords.sh | UTF-8 | 172 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
CONTAINER=sgi_php
FILE=encrypt_passwords.php
DEST_PATH=/tmp/
docker cp $FILE $CONTAINER:$DEST_PATH
docker exec -it $CONTAINER php -f $DEST_PATH/$FILE
| true |
2f1aeca4b423110343bec1edf82bea754acce600 | Shell | johnsonyue/targets | /map.sh | UTF-8 | 1,076 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
test $# -lt 1 && exit
inter=$1
python <(
cat << "EOF"
import sys
import json
import socket
import struct
f=open(sys.argv[1])
obj=json.load(f)
f.close()
def ip_str2int(ip):
packedIP = socket.inet_aton(ip)
return struct.unpack("!L", packedIP)[0]
def hit(i,o):
if i < o[0]['ip_from']:
return Fals... | true |
481f2b4f7a0e4ebfd93b29331d08965c93aa8c44 | Shell | pabplanalp/pvmail | /production/copper/servlet/acstart.sh | UTF-8 | 633 | 2.734375 | 3 | [] | no_license | #!/bin/sh
#
# Changes also must be added to the other environments(Production/Test/ETC)
#
#parameters
JRE_HOME=/usr/java/jdk1.5.0_07
TOMCAT_HOME=/usr/local/tomcat
VMAIL_STAGE=/usr/local/vmail/stage
VMAIL_LIVE=/usr/local/vmail/live
JAVA_OPTS="-Xms768m -Xmx768m -DAppPropertyDir=$VMAIL_LIVE/resource/property -XX:+HeapDump... | true |
c0709ed94e0ff35ad9a6aa8d2603eb9ef03a34ba | Shell | ErvinCs/OS | /Shell101PentruTarani/intros/wildcards.sh | UTF-8 | 352 | 2.875 | 3 | [] | no_license | #!/bin/sh
echo "Current dir: " $PWD
cp /$PWD/tmp/a/*.c /$PWD/tmp/b
cp $PWD/tmp/a/*.html $PWD/tmp/b #Note that it works even without the first escape
#Altough i think it's better practice not to use it
#Copy all .c and .html files from a into b^
cp -a $PWD/tmp/a/* $PWD/tmp/c
#Co... | true |
454830d4d0557668035ac4583c83fe886e32613c | Shell | timattil/trytls | /stubs/bash-opensslSClient/run | UTF-8 | 529 | 3.515625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
host=$1 #e.g. localhost
port=$2
ca_bundle=$3
if [ "$#" -lt 2 ]; then
echo "UNSUPPORTED"
exit 2
fi
if [[ "$ca_bundle" ]]; then
resp=`echo "Q" | openssl s_client -CAfile $ca_bundle -servername $host -connect $host:$port 2>&1`
else
resp=`echo "Q" | openssl s_client -servername $host -connect $host:$por... | true |
9dc982e2cbcf632c965a242ef6ee0e310b7aa42c | Shell | n-johnson/bin | /docs | UTF-8 | 144 | 3.3125 | 3 | [] | no_license | #!/bin/bash
__track_usage "$(basename "$0")"
file=$1
if [ -n "$file" ]; then
less "$HOME/docs/$file"
exit 0
else
ls -al "$HOME/docs"
fi
| true |
7edb70030beead9b28328524e61047e57dd4d356 | Shell | luxe/unilang | /source/code/scratch/config/shell/bash/.bashrc_impl/prompt.sh | UTF-8 | 771 | 3.1875 | 3 | [
"MIT"
] | permissive | printf_new() {
str=$1
num=$2
v=$(printf "%-${num}s" "$str")
PS1="${v// /$str}"
}
#include the branch detection file
source ~/.bashrc_impl/git/.git-prompt.sh
#this is some built-in bash thing that will ensure the prompt is upated every time=
PROMPT_COMMAND=set_prompt
set_prompt () {
#uncomment to dra... | true |
c13ffbe8af4ae637c9492bf58c7e1a44a17299c2 | Shell | samsucik/prosodic-lid-globalphone | /egs/multi_en/s5/local/tedlium_lm_decode.sh | UTF-8 | 951 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2016 Allen Guo
# Apache 2.0
# This script decodes the tedlium test set using a tedlium LM, which is assumed
# to be prepared already using the tedlium recipe.
. ./cmd.sh
. ./path.sh
set -e
stage=0
lib=../../tedlium/s5
lang=data/lang_tedlium_tg
srilm_opts="-subset -prune-lowprobs -unk -tolow... | true |
44a77ba68132d450cc2586ac48f5d40f9a74b510 | Shell | petrelharp/popassembly | /beagle.sh | UTF-8 | 1,012 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#PBS -S /bin/bash
#PBS -q cmb
#PBS -l nodes=1:ppn=1
#PBS -l walltime=24:00:00
#PBS -l pmem=24gb
#PBS -l mem=24gb
#PBS -l vmem=24gb
# grr, java
# see http://stackoverflow.com/questions/31075761/java-8-reserves-minimum-1g-for-metaspace-despite-maxmetaspacesize
if [ -e /usr/usc/java/1.8.0_45/setup.sh ]
then... | true |
4f72d66ed8242acfb77995434f9ebb9975765f25 | Shell | oncoapop/data_reporting | /beast_scripts/check_CGs.sh | UTF-8 | 1,263 | 3.546875 | 4 | [] | no_license | #!/bin/sh
# Script to check the actual CG that matched factors to the CG that we designed for
# This will look at two levels.
# Firstly, check to see if there are exact matches (ie same breakpoints)
# Secondly, check to see if there are matches in both the conjoined gene (but maybe the breakpoints differ)
# Files
wd... | true |
13e5ede7ad421d206af7c99a954c42e12253f0e6 | Shell | bithead2k/pg_bash | /pguri2pgpass.bash | UTF-8 | 1,922 | 4.03125 | 4 | [
"PostgreSQL"
] | permissive | #!/Users/kroybal/homebrew/bin/bash
#===============================================================================
#
# FILE: pguri2pgpass.bash
#
# USAGE: ./pguri2pgpass.bash
#
# DESCRIPTION: Change a URI in the form of
# postgres://user:pw@host:port/db?options
# to
# host:port:us... | true |
a2ad1bd20cb52968e1047e801db8c81bcb2e2117 | Shell | SerenityOS/serenity | /Toolchain/BuildPython.sh | UTF-8 | 1,518 | 3.9375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
set -e
# This file will need to be run in bash, for now.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# shellcheck source=/dev/null
. "${DIR}/../Meta/shell_include.sh"
exit_if_running_as_root "Do not run BuildPython.sh as root, parts of your Toolchain directory will become root-owned"... | true |
cc020896ab873c5ff9d52a936a215881ce54dd44 | Shell | adsfgg/ModFramework | /setup | UTF-8 | 1,824 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
die() {
echo "Error: $1"
exit 1
}
usage() {
echo "Usage: setup"
echo ""
echo "./setup prjName"
echo ""
echo "Installs ModFramework"
exit 2
}
onError() {
die "Unexpected error occurred"
}
trap onError ERR
[[ $# -ne 1 ]] && usage
prjName="$1"
shift
[[ $prjName == "" ... | true |
7948082295f84446fe5ec412ba98fb6f72a11f6d | Shell | lsmolic/hangoutsrc | /Resources/Deployment/scripts/full-qa-deploy.sh | UTF-8 | 1,485 | 3.203125 | 3 | [] | no_license | #!/bin/sh
#!/bin/bash
echo " ################################# "
echo " ####### BEGINNING DEPLOY TO QA ####### "
echo " ################################# "
select_webserver_instance()
{
echo "Which QA webserver instance do you wish to deploy?"
select webInstance in hangoutqa hangoutqa2; do
if [[ -n "$webInstan... | true |
50c3b9c8785945ae3d41d17bb0d8f49126b4fa20 | Shell | Primos-tn/backend-app | /scripts/redis.installation.sh | UTF-8 | 3,672 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
rm redis-stable.tar.gz
# You need this
sudo apt-get install -y tcl
make
sudo cp src/redis-server /usr/local/bin/
sudo cp src/redis-cli /usr/local/bin/
#Running Redis from the command line is fi... | true |
3187defcc69a59eda49eb5c1c7bc80a98abac2d5 | Shell | JoyMichael7842/OS-lab | /Lab1/ex1.sh | UTF-8 | 138 | 3.203125 | 3 | [] | no_license | echo "enter number"
read number
if [ $number -lt 0 ]
then
echo "negative"
elif [ $number -gt 0 ]
then
echo "positive"
else
echo "zero"
fi
| true |
5cff42898620af2b4cc7b31135bf0477b9bc6941 | Shell | southpawgeek/perlweeklychallenge-club | /challenge-151/roger-bell-west/rust/ch-1.rs | UTF-8 | 1,414 | 2.8125 | 3 | [] | no_license | #! /bin/sh
//usr/bin/env rustc --test $0 -o ${0}x && ./${0}x --nocapture; rm -f ${0}x ; exit
#[test]
fn test_ex1() {
assert_eq!(mindepth(str2tree("1 | 2 3 | 4 5")), 2);
}
#[test]
fn test_ex2() {
assert_eq!(mindepth(str2tree("1 | 2 3 | 4 * * 5 | * 6")), 3);
}
fn str2tree(st: &str) -> Vec<u32> {
let mut o... | true |
9128a1b9791c662441ac6b2663453c43a0022e45 | Shell | sonianara/CompArch | /lab6/compile | UTF-8 | 126 | 2.625 | 3 | [] | no_license | #!/bin/bash
gcc -o load_testcase driver.c
if [[ $? == 0 ]]; then
if [[ $1 == "run" ]]; then
./load_testcase
fi
fi
| true |
1ea9446cff5129a68374db479f35d9deed732f07 | Shell | mwhahaha/cloud-images | /centos-8.stream.virt-install-cmd | UTF-8 | 803 | 2.71875 | 3 | [] | no_license | #!/bin/bash
set -ex
# --location="http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os"
WORK_DIR=$(pwd)
KS_FILE=centos-8.stream.ks
MIRROR="http://192.168.0.127/repos/centos/8-stream"
DISK_SIZE=10
virt-install \
--transient \
--name=centos-8-stream \
--ram=4096 \
--arch=x86_64 \
--cpu=host \
... | true |
212de926c91be93a326c59646239cf1b352be0e0 | Shell | noloader/Build-Scripts | /build-ncurses.sh | UTF-8 | 12,501 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
# Written and placed in public domain by Jeffrey Walton
# This script builds Ncurses from sources. We do not
# build Termcap, so there is no libtinfo{w}.
# Do NOT use Ncurses 6.2. There are too many problems with the release.
# Ncurses 6.2 does not build. It ends in a compile error. Additionally,
... | true |
cdaa5de41023fa6ae2f2a5d022a55edc85bc773f | Shell | ShapeShiftOS-Devices/device_oneplus_sm8250-common | /rootdir/bin/init.qti.chg_policy.sh | UTF-8 | 1,164 | 2.671875 | 3 | [] | no_license | #! /vendor/bin/sh
#
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2019 The Linux Foundation. All rights reserved.
#
export PATH=/vendor/bin
soc_id=`getprop ro.vendor.qti.soc_id`
if [ "$soc_id" -eq 415 ] || [... | true |
e6ab68c87a78ad87a15bba5f41b15528ae7c90c0 | Shell | umanathlanka/edgeapps | /applications/eis-experience-kit/roles/web_visualizer/deploy/templates/web_access.sh.j2 | UTF-8 | 1,751 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation
mkdir -p RootCA
mkdir -p Server
mkdir -p Client
EtcdctlPath={{ etcdctl_bin_path }}
echo "Generating RootCA Key and Cert for WebVisualizer access "
openssl ecparam -genkey -name secp384r1 -out "./RootCA/ca.key"
openssl r... | true |
195b63a900155ba6cbb5d690b430a311c4ccf30b | Shell | Plooms/bin | /easystroke-scripts | UTF-8 | 12,817 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Easystroke scripts all in one place
SCRIPT_NAME="easystroke-scripts"
PID=$$
export LANG=en_US.UTF-8
# Source the VAR MOAS
source /usr/local/bin/VAR-SCRIPT
_CHANGE_LANG_US()
{
xte 'keydown Control_R' 'keydown Alt_R' 'key 0' 'keyup Control_R' 'keyup Alt_R'
}
_MOVE_WINDOW()
{
xte "keydown Control_L" "... | true |
3021de20b6e858bb842a9afaa22c2070c164eb18 | Shell | Ron-Yang/Traffic-Econometrics-MA | /upload_otherTexDocuments.sh | UTF-8 | 970 | 3.703125 | 4 | [] | no_license |
#!/bin/bash
# Syntax:
# upload_aufgaben.sh <latexname ohne ext> <optional -edit oder -e>
####################################################
if ( (($#<1)) || (($#>2)) ); then
echo "Calling sequence:"
echo " upload_otherTexDocuments.sh <latexname ohne ext.> <optional -edit oder -e>"
exit 0
fi
sourcedir=$PWD
... | true |
127046703bfeaef44f96966d56e2b6b52968b249 | Shell | carmenxlivia/JournalCompetition-PeerReview | /script.sh | UTF-8 | 1,076 | 3.265625 | 3 | [] | no_license | #!/bin/bash -l
# Batch script to run a serial job on Legion with the upgraded
# software stack under SGE.
# 1. Force bash as the executing shell.
#$ -S /bin/bash
# 2. Request ten minutes of wallclock time (format hours:minutes:seconds).
#$ -l h_rt=23:59:0
# 3. Request 1 gigabyte of RAM (must be an integer)
#$ -l mem=1G... | true |
6dc5a29715c7993f39bdba454f581c50492cd48f | Shell | marcogaro/rasp | /permessifunzionante22082020/lauch.sh | UTF-8 | 2,532 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#if [ "$#" -ne 1 ]; then
# echo "Usage: launch_virtual_rasp.sh <virtual_rasp_name>"
# exit;
#fi
#lxd init
#echo nome della raspberry?
#read name
#echo "il nome della raspberry è $name !"
#name=$1
echo "Creating virtual rasp "test2"!"
lxc launch ubuntu:16.04 test2
MYUID=`sudo ls -l /home/ubuntu/s... | true |
6330b68d67b3b7449fce24a522b5b8cfdfd4bbe9 | Shell | taoshengxu/genome_annotation_pipeline | /scripts/train_snap_model.sh | UTF-8 | 712 | 3.21875 | 3 | [] | no_license | #!/usr/bin/bash
set -e
set -u
set -o pipefail
#module load snap
#module load maker/2.31.11
if [ $# -lt 3 ]; then
echo "$0 datastore_index.log round specie_name"
exit 1
fi
ds_index=$1
round=$2
specie=$3
mkdir -p snap && cd snap
mkdir -p round${round} && cd round${round}
gff3_merge -d $ds_index -s > maker_r... | true |
9d35f680298fa9a1c98522bc7400165bb23b0e75 | Shell | Jyny/outliner | /pkg/deployer/ssh/script/deploy.sh | UTF-8 | 376 | 3.109375 | 3 | [
"MIT"
] | permissive | function install_docker() {
curl -sS https://get.docker.com/ | sh
}
function install_outline {
bash -c "$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)"
}
function write_PID {
echo $$ > /tmp/pid
}
function main() {
... | true |
6c128ac9ea3813949eed831bdd01fbe0047348a0 | Shell | angloyna/docker-microservices | /bin/overrides.sh | UTF-8 | 246 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
OVERRIDE=""
touch ./overrides/set-overrides.sh
source ./overrides/set-overrides.sh
if [[ ${BUILD_NAME} ]];
then OVERRIDE=""; # No override for a headless build.
else echo -e "${LIGHTBLUE}OVERRIDE=${OVERRIDE}${NC}";
fi
| true |
1e7745726005d566633fca74a03d29cd24ad34ac | Shell | nickkelley42/financial-tools | /bin/setup-pre-commit | UTF-8 | 223 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#!/bin/bash
GITDIR="$(git rev-parse --git-dir)"
HOOKSDIR="$GITDIR/hooks"
cd "$HOOKSDIR"
if [ -e "pre-commit" ]; then
echo "pre-commit hook already exists; aborting"
exit 1
fi
ln -s ../../bin/pre-commit
| true |
9555392bc16a2880354439fac0fd3be5ec3966bd | Shell | groovedoggo/storage | /pg-backup-bash | UTF-8 | 336 | 2.859375 | 3 | [] | no_license | #!/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
PGPASSWORD=password
export PGPASSWORD
pathB=/backup
dbUser=dbuser
database=db
find $pathB \( -name "*-1[^5].*" -o -name "*-[023]?.*" \) -ctime +61 -delete
pg_dump -U $dbUser $database | gzip > $pathB/pgsql_$(date "+%Y-%m-%d").sql.gz
uns... | true |
bd54707c33983221c13cab3bd6e1d686f59b9c28 | Shell | labittraining/elasticsearch | /bash_setup_scripts/webserver_setup.sh | UTF-8 | 2,285 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
package_installed=(apache metricbeat filebeat auditbeat)
# add Elastic’s signing key so that the downloaded package can be verified
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
# add the repository definition to your system
echo "deb https://artifacts.elastic.co/p... | true |
ea7757b16c5c7da4f2d167a6150096720accd54f | Shell | Freeaqingme/icinga-vagrant | /icinga2x-cluster/.vagrant-puppet/manifests/finalize.sh | UTF-8 | 475 | 3.21875 | 3 | [] | no_license | #!/bin/bash
set -e
mountIcinga2webVarLog () {
# Remount /vagrant/var/log/ with appropriate permissions since the group apache is missing initially
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=775,fmode=664 /vagrant/icingaweb2/var/log/ /vagrant/icingaweb2/var/log/
}
fixIcingaWeb2Config () {... | true |
29d18cc1e1580fec9595ceafe74ab2adcb038d64 | Shell | jbcrail/dash-recipes | /dask.sh | UTF-8 | 2,134 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
SRC=https://github.com/dask/dask
NAME=$(basename ${SRC})
ENV=${NAME}-$(cat < /dev/urandom | base64 | head -c 4)
DOCSET=Dask
VERSION=0.19.0
REPO_DIR=$(pwd)/repos/${NAME}
DOCSET_DIR=$(pwd)/docsets/${NAME}
DOCS_DIR=${REPO_DIR}/docs
section()
{
GREEN='\033[0;32m'
NC='\033[0m'
printf "[%s%s%s]\\... | true |
7b05b9b0cf712db0a6c0a201cc7bfcda756e8190 | Shell | aioc/tps | /upgrade-scripts.sh | UTF-8 | 6,382 | 4.03125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -euo pipefail
source "scripts/internal/util.sh"
function usage {
errcho "Usage: upgrade-scripts.sh [options] <problem-dir>"
errcho "Options:"
errcho -e " -h, --help"
errcho -e " -d, --dry"
}
dry_run="false"
function handle_option {
shifts=0
case "${curr}" in
-h|--help)
... | true |
45023e608a915888d4b968f8f9b7707ea5f0cb16 | Shell | rgabriana/MyStuff | /nagios/em_ssh_tunnel.sh | UTF-8 | 1,098 | 3.8125 | 4 | [] | no_license | #!/bin/bash -x
if [ -z "$1" ]; then
echo "First Argument should be a valid id from the em_instance table"
exit 1
fi
EMID=$1
RDB=emscloud
PSQL="/usr/bin/psql --username=DB1 --host=DB1 --dbname=${RDB} --no-align --quiet --tuples-only"
#SSHM="/usr/bin/ssh ops@cloudui.enlightedcloud.net"
SQL="SELECT count(*) from em... | true |
4dfcc7e47fb0d5ea3310bcec7d65243b1fccfd37 | Shell | mlaanderson/homebridge-firebase-common | /build-bundle.sh | UTF-8 | 808 | 3.65625 | 4 | [
"ISC"
] | permissive | #!/bin/bash
MINIFY=1
MANGLE=1
MINCMD="uglifyjs --mangle --compress -- -"
while [[ $# -ge 1 ]]
do
key="$1"
case ${key} in
--no-min)
MINIFY=0
;;
--no-mangle)
MANGLE=0
;;
--debug)
MINIFY=0
MANGLE=0
;;
... | true |
fffb270bebe856e3fa4eb9c886cf1e8c76e2f28e | Shell | rtpwilliams/DSCI512_RNAseqAnalyzers | /execute_RNAseq_pipeline.sh | UTF-8 | 1,209 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#SBATCH --job-name=test_RNAseq_pipeline
#SBATCH --nodes=1
#SBATCH --ntasks=24 # modify this number to reflect how many cores you want to use (up to 24)
#SBATCH --partition=shas-testing #modify this to reflect which queue you want to use. Options are 'shas' and 'shas-testing'
#SBATCH --qos=te... | true |
97e966483f70c86f26f02a86fb28a99254bfca28 | Shell | petronny/aur3-mirror | /python-mongoengine-git/PKGBUILD | UTF-8 | 870 | 3.125 | 3 | [] | no_license | # Contributor: Dmitry Shapovalov <dmitry at 0fe dot ru>
pkgname=python-mongoengine-git
pkgver=20130221
pkgrel=1
pkgdesc="A Python Object-Document-Mapper for working with MongoDB, git version"
arch=(any)
url="http://hmarr.com/mongoengine/"
license=('MIT')
depends=('python-pymongo')
makedepends=('setuptools' 'git')
opti... | true |
c93c9b9287c96b7e6b1b3f8c0ddea21650b934a0 | Shell | discoverygarden/secure_drupal_file | /secure_drupal_file.sh | UTF-8 | 2,248 | 4.3125 | 4 | [] | no_license | #!/bin/bash
# This script will lock down the drupal dirs and make them secure
# {{{ set defaults
if [ -f "env.sh" ]
then
source env.sh
else
echo -e "${red}Copy default.env.sh to env.sh and set accordingly${NC}"
exit 1
fi
# }}}
# {{{ setupUsers()
setupUsers()
{
# set apache user
getent passwd www-data > /... | true |
250d1d090e6775758077968b9135d020dc4b72b8 | Shell | THAO1999/Linux | /ÔN----/Linux_2017_2018/Midterm/bai1.sh | UTF-8 | 1,008 | 3.34375 | 3 | [] | no_license | #!/bin/bash
y1(){
pwd
}
y2(){
ls *a*
#hoac
ls | grep ".*a.*"
}
y3(){
count=0
for fi in `ls`
do
count=$(($count + 1))
done
echo "So file la $count"
}
y4() {
dir="/etc/group"
cat $dir | grep -E '.*th.*'
}
y5() {
ls /etc | grep -E '.*[a|b]+.*' > outputy5.txt
}
y6() {
if [ -f /etc/passwd ]
then
head -n 3 /etc/passwd
... | true |
d9f533d2e70886c63daee602cdaa5a62ccf8108c | Shell | ro3i/dotfiles_ | /etc/init/osx/create_private.sh | UTF-8 | 686 | 3.40625 | 3 | [
"DOC",
"MIT"
] | permissive | #!/bin/bash
# Stop script if errors occur
trap 'echo Error: $0:$LINENO stopped; exit 1' ERR INT
set -eu
# Load vital library that is most important and
# constructed with many minimal functions
# For more information, see etc/README.md
. "$DOTPATH"/etc/lib/vital.sh
# This script is only supported with OS X
if ! is_o... | true |
0f6dbe46e02846238d5227be577dcddd1bec20e9 | Shell | dirigonaut/video-sync | /develop/shell/letsencrypt.sh | UTF-8 | 1,083 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DOMAIN=$1
DRY=$2
add-apt-repository ppa:certbot/certbot -y
apt-get install certbot software-properties-common -y
apt-get update
certbot certonly --staging --standalone --agree-tos --preferred-challenges http --register-unsafely-without-email --renew-by-default -d $DOMAIN
RC=$?
if [[ $RC == 0 ]]; then
i... | true |
ac36399e1a89ca64ca7235573c3fdb2f87d5e193 | Shell | tommylutz/tmux-rc-generic | /tmux-rc-generic | UTF-8 | 4,866 | 4.40625 | 4 | [] | no_license | #!/bin/bash
######## tmux-rc-generic ##########
# This script is designed to help you set up servers running inside a shared
# tmux session, started up by the init.d system. The canonical example usage
# of this script is to manage a minecraft server.
#
# To use this script, call it from your init.d script. Export the... | true |
f8df88fb967a7370b50e493ca220d636048e8543 | Shell | epochwolf/dotfiles | /zshrc | UTF-8 | 2,119 | 2.578125 | 3 | [
"MIT"
] | permissive | # Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
#ZSH_THEME="fishy"
#ZSH_THEME="nicoulaj"
ZSH_THEME="epochwolf... | true |
0a2e5e5efebe76631c7411747da04ef243b05746 | Shell | dancehair/myWork | /script/logCleaner.sh | UTF-8 | 3,120 | 3.265625 | 3 | [] | no_license | #!/bin/bash
#************************************************#
# log_cleaner.sh
# written by kh902.kim
# Jan 13, 2015
#************************************************#
targetDate=`date '+%Y%m%d' -d '1 month ago'`
defaultDir="/mnt/logs/"
auth ()
{
dirRm $defaultDir"tau... | true |
80174f749b7a8d8026dedb72b3cb8dae14762c76 | Shell | ytyaru0/RaspberryPi.Home.Root.20180318143826 | /src/script/sh/_command/mkrepo | UTF-8 | 1,986 | 4.0625 | 4 | [
"CC0-1.0"
] | permissive | #!/bin/bash
# ----------------------------------------------------------------------------
# リポジトリ作成
# リポジトリのテンプレートをコピーする。
# 出力: /tmp/work/repos/repo.yyyyMMddHHmmss/
# 作成日: 2019-02-16
# ----------------------------------------------------------------------------
# テンプレートがあるディレクトリパスを標準出力する
TplDir() {
echo "${HOM... | true |
b84db13f042b91eeee160de052b4a185fcd0b770 | Shell | teto/lib_bash | /lib_ssh.sh | UTF-8 | 144 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#
function ssh_get_client_ip()
{
if [ ! -z "$SSH_CLIENT" ]; then
local ip=$( echo "$SSH_CLIENT" | cut -d' ' -f1)
echo $ip
fi
} | true |
ca24364ad01d409d7c20dd421ad730d92e79633d | Shell | mlhackergz/torch-quiver | /configure | UTF-8 | 1,843 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
. ./auto/cmake
CUDA_HOME=/usr/local/cuda
CUDA_ARCHITECTURES="61" # FIXME: detect
HAVE_CUDA=0
if [ -f $CUDA_HOME/include/cuda_runtime.h ]; then
HAVE_CUDA=1
fi
ENABLE_CUDA=${HAVE_CUDA}
BUILD_TORCH_EXTENSION=1 # FIXME: disable by default
parse_args() {
for i in "$@"; do
case $i in
... | true |
a96449b0ead74c5beebcf0d774226213e6ed3b61 | Shell | s-shin/bach | /lib/_session.sh | UTF-8 | 427 | 3.546875 | 4 | [] | no_license | # shellcheck disable=SC2148
: ${BACH_SESSION_DIR:="${HOME}/.bach/session/$$"}
mkdir -p "$BACH_SESSION_DIR"
bach.session.set() {
key="$1"
value="${2:-}"
echo -n "$value" > "${BACH_SESSION_DIR}/${key}"
}
bach.session.get() {
key="$1"
cat "${BACH_SESSION_DIR}/${key}"
}
bach.session.isset() {
key="$1"
[[... | true |
a691323995a43783fcc20c352186ac74234f454c | Shell | urmyfaith/sinstallation | /vimwreck.sh | UTF-8 | 847 | 3.234375 | 3 | [] | no_license | source './homebrew.sh'
function install_vimwreck {
install_or_upgrade_package git
install_or_upgrade_package ctags
current_dir="$PWD"
if [ -d $HOME/.vim/.git ]; then
cd $HOME/.vim && git pull
else
git clone https://github.com/jfelchner/vim.git $HOME/.vim
fi
rm $HOME/.vimrc 2> /dev/null
rm $H... | true |
4dfb7c89145535e361341766ab81c1148d01545b | Shell | chinesedfan/jest-dash | /build.sh | UTF-8 | 1,205 | 3 | 3 | [] | no_license | # clean up previous remains, if any
rm -rf Contents/Resources
rm -rf Jest.docset
rm -rf dist
mkdir -p Contents/Resources/Documents
# create a fresh sqlite db
cd Contents/Resources
sqlite3 docSet.dsidx 'CREATE TABLE searchIndex(id INTEGER PRIMARY KEY, name TEXT, type TEXT, path TEXT)'
sqlite3 docSet.dsidx 'CREATE UNIQU... | true |
dcf572dfc562903c7840e931caf6876b68a695c8 | Shell | ververica/flink-ecosystem | /production-build.sh | UTF-8 | 324 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
echo "Running docker-compose for building and launching the backend server"
docker-compose build
docker-compose down
docker-compose up -d
echo "Building frontend"
export NODE_ENV=production
export NODE_PATH=src/
npm install
npm run build
echo "Moving build results to nginx"
sudo cp -r build/* /var/www/htm... | true |
bebd284e19aec2c1ef9cfe6b33a85497f0e7e0f6 | Shell | mpecenin/wscad-2019 | /HalideRL/run-cpu-node-6.sh | UTF-8 | 1,770 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#SBATCH -p 7d
#SBATCH --nodelist node6-ib
#SBATCH --sockets-per-node 4
#SBATCH --cores-per-socket 8
#SBATCH --threads-per-core 1
#SBATCH -o output/slurm-%j.out
module load compilers/gcc/6.4.0
module load libraries/openmpi/3.0.0-gcc-6.4.0
if [ -z "$1" ]; then
echo "Usage: $0 HalideEnv"
exit 1
... | true |
f7a9430adbe8efb96aa6559324cc953c72ae9758 | Shell | ssjokhla/Konsolidate | /oldKonsolidate/rabbitmqphp_example/rdownload.sh | UTF-8 | 588 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#Ask for listener username and IP
#read -p 'Listener (user@IP): ' listener
#Set up watcher on /uploads directory to watch for modified, created, or deleted files
echo "Listener: $1"
inotifywait -r -e modify,create,delete --format '%f' /var/lib/mysql-files | while read FILE
do
echo "File is named $FILE... | true |
40379ac6a7fa6bdb94bfa2680e733eee471a1c1c | Shell | rahulrenjeev/terraform-todeploy-wordpress | /database.sh | UTF-8 | 1,083 | 3.0625 | 3 | [] | no_license | #!/bin/sh
cd /etc/yum.repos.d/
wget https://raw.githubusercontent.com/rahulrenjeev/maria-repo/main/mariadb.repo
yum makecache
yum repolist
yum install MariaDB-server MariaDB-client -y
systemctl enable --now mariadb
systemctl status mariadb
yum install expect -y
PASSWORD=abcd1234
SECURE_... | true |
f0242c99936e856d7336999322cbdb375cdc58c7 | Shell | a3213105/occlum | /demos/redis/run_occlum_redis_glibc.sh | UTF-8 | 812 | 2.9375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
redis_dir=/usr/local/redis/
occlum_glibc=/opt/occlum/glibc/lib/
set -e
# 1. Init Occlum Workspace
rm -rf occlum_instance
occlum new occlum_instance
cd occlum_instance
new_json="$(jq '.resource_limits.user_space_size = "320MB" |
.process.default_mmap_size = "256MB"' Occlum.json)" && \
echo "... | true |
e5219e1090c47a2c417e7d19bf44e72110a4dc12 | Shell | pnandam29/new-mac-setup | /osx_m1_bootstrip.sh | UTF-8 | 7,638 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# Notes:
#
# - If installing full Xcode, it's better to install that first from the app... | true |
a5f6351b0cad585fabba17c07d2d4f48c5db6fea | Shell | AiriYokochi/setup_cube_petit | /shell_utils/udev_check.sh | UTF-8 | 1,031 | 3.25 | 3 | [] | no_license | #!/bin/bash
echo "--------------------------------"
echo "[INFO] UDEV CHECK START"
CMD1=`udevadm info -a -n /dev/ttyUSB0 | grep idVendor |sed 's/^.*"\(.*\)".*$/\1/' | awk 'NR==1'`
if [ "${CMD1}" == "0403" ]; then
echo "[INFO] ttyUSB0 is DYNAMIXEL MOTOR:[OK]"
else
echo "[WARN] ***ttyUSB0 IS NOT DYNAMICEL MOTOR PLEA... | true |
4b3925858990cffb47177227e6d5ec87ed397704 | Shell | sbrisbane/shc4hpc | /aws/aws-module-installer.sh | UTF-8 | 608 | 2.9375 | 3 | [] | no_license | #!/bin/bash
PYMINORVERS=$(python3 --version | awk '{ print $NF }' | awk -F . '{print $NF}')
if [ 6 -gt $PYMINORVERS ]; then
VENV=pyvenv
else
VENV="python3 -m venv"
fi
BUILDDIR=../.build/aws
mkdir -p $BUILDDIR
#work around broken venv in rhel7
$VENV --without-pip $BUILDDIR/python
source $BUILDDIR/python/bin/acti... | true |
95823a7017f60fa21c32f8143532a5efafcf4224 | Shell | okayanyan/DockerSet_RailsEnv5_2 | /dockerfile_boot.sh | UTF-8 | 248 | 2.78125 | 3 | [] | no_license | # prepare
cd file
# boot container
boot_container_count=$(docker-compose ps | grep Up | grep -c file)
if [ $boot_container_count = 0 ]; then
docker-compose up -d
fi
# login container
docker-compose exec app /bin/bash
# after operation
cd ../
| true |
3d31208d7477469445f447862336f6175d54528a | Shell | khale/encryption-wrappers | /gen-rsa-key.sh | UTF-8 | 463 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# $1 - length (2048 is default)
#
# NOTE: if you're using this for hybrid encryption, make sure you
# use a long enough key length to accomodate whatever you're going to encrypt (e.g.
# an AES key)
LEN=2048
if [[ -n "$1" ]]; then
echo "using length: $1"
LEN="$1"
else
echo "using default lengt... | true |
b9a71ea0decd668d8e63b226754e99348e275a16 | Shell | oracle/weblogic-kubernetes-operator | /kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/validate.sh | UTF-8 | 7,788 | 3.46875 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"UPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"Plexus",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CDDL-1.1",
"Lic... | permissive | #!/usr/bin/env bash
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
# Description
# This script is to validate if resources are ready for creating a new WebLogic domain.
# It will validate the following ... | true |
50b200450078d255ac5850349b56bedad91ed507 | Shell | Eddayy/dotfiles-wsl | /implement.sh | UTF-8 | 1,526 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
source ./functions.sh
# Main
cd "$(dirname "$0")"
while getopts ":hTiuxs:c:" opt; do
case $opt in
h)
show_help
exit
;;
T)
echo "self test" >&2
exit
;;
i)
check_repos
echo "Initiali... | true |
15af91ee3119a0fcf20e99e158fccaf519e66296 | Shell | francescofiorenza/CONCEPTtaggingWFST | /Pv1.2/scripts/trainCONCEPT/4CONCEPTtaggerUnknownTOKENCreate.sh | UTF-8 | 256 | 2.78125 | 3 | [] | no_license | #!/bin/bash
traindata='../../data/NLSPARQL.train.data'
N=$(cat $traindata | cut -f 2 |sed '/^ *$/d' |sort | uniq|wc -l)
prob=$(echo "-l(1/$N)" | bc -l)
while read concept count
do
echo -e "0\t0\t<unk>\t$concept\t$prob"
done < ../../CONCEPT.counts
echo "0"
| true |
bef3977ab0d16e03b619c09a10b7d2bd5edffdd7 | Shell | Skynet260/hsro-inf-fpk.github.io | /scripts/2pdf.sh | UTF-8 | 304 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "-> Create tmp file"
python ../../scripts/md2beamer.py $1
echo "-> tmp created!"
echo "->Create pdf"
pandoc $1.tmp --listings -H ../../scripts/listings.tex -o $2 -t beamer -V fontsize=9pt --pdf-engine=xelatex -V theme:metropolis -V colortheme=crane
rm $1.tmp
echo "->tmp deleted!"
| true |
6fe13b0180cd6042e7a13f3841b432864139e4e9 | Shell | Nicholas-Schaub/polus-plugins | /transforms/polus-recycle-vector-plugin/run-plugin.sh | UTF-8 | 636 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
version=$(<VERSION)
datapath=$(readlink --canonicalize ../../data)
# Inputs
stitchDir=/data/vector
collectionDir=/data/images/MaricRatBrain2019/fovs/intensity
filepattern=.+
# Output paths
outDir=/data/output
# Log level, must be one of ERROR, CRITICAL, WARNING, INFO, DEBUG
LOGLEVEL=INFO
docker run --m... | true |
c25462c1015c6624e99794f519607fc203561842 | Shell | cncf/devstats | /shared/top_n_companies.sh | UTF-8 | 372 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if ( [ -z "$PG_PASS" ] || [ -z "$PG_DB" ] || [ -z "$1" ] )
then
echo "$0: you need to set PG_DB and PG_PASS env variables and provide number of companies as an argument to use this script"
exit 1
fi
GHA2DB_LOCAL=1 runq metrics/shared/companies_tags.sql {{lim}} $1 ' sub.name' " string_agg(sub.name, ',')"... | true |
4e9410ae9eb40737f42a4c37ff2a30c61db1d307 | Shell | mathworks-ref-arch/matlab-on-aws | /packer/v1/build/install-glibc-ubuntu2004.sh | UTF-8 | 644 | 3.125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
#
# Copyright 2023 The MathWorks Inc.
# Exit on any failure, treat unset substitution variables as errors
set -euo pipefail
# Install patched glibc fix - See https://github.com/mathworks/build-glibc-bz-19329-patch
cd /tmp
mkdir glibc-packages && cd glibc-packages
wget --no-verbose https://github.... | true |
de59f01b861a615d7c9d2d338fb290e9b192e34c | Shell | GokGokalp/fission | /test/tests/test_backend_nd_update.sh | UTF-8 | 2,623 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
# global variables
pkg=""
http_status=""
url=""
cleanup() {
if [ -e "test-deploy-pkg.zip" ]; then
rm -rf test-deploy-pkg.zip test_dir
fi
if [ -e "/tmp/file" ]; then
rm -rf /tmp/file
fi
}
create_archive() {
log "Creating an archive"
mkdir test_dir... | true |
c643855032396c910862d904a7df832bcec838bc | Shell | artisdom/_ebDev | /scripts/imgAndVideo/SVG2img.sh | UTF-8 | 3,837 | 3.796875 | 4 | [] | no_license | # DESCRIPTION
# Creates a .jpg (by default) file from an .svg file passed as parameter $1.
# USAGE
# Run with these parameters:
# - $1 The svg file name to create an image from e.g. in.svg
# - $2 OPTIONAL. Longest side in pixels for rendered output image. Default 4280 if not given.
# - $3 OPTIONAL. Target file format ... | true |
f626a4251f852069ba592697c761d06f424c747a | Shell | javaperson/TencentSSH | /to | UTF-8 | 459 | 3.3125 | 3 | [] | no_license | #!/bin/sh
source host_addr.sh
exec=''
while getopts "h:x:t:" Option
# b and d take arguments
#
do
case $Option in
x) exec=$OPTARG;;
h) host=$(addr $OPTARG);;
t) token=$OPTARG;;
esac
done
shift $(($OPTIND - 1))
echo "HOST:$host"
echo "CMD:$exec"
if [ -z ${token} ]; then
token=`qc-cvm-token | grep '^[0-9]'`
token="`... | true |
0651eb149d8e5a8e65c92ca3fc14cdd61b812570 | Shell | satchpx/dmcache | /dumpstats | UTF-8 | 1,192 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env bash
outfile="/var/log/dumpstats"
printf '%80s\n' | tr ' ' - >> $outfile
date >> $outfile
for vol in $(pxctl v l | grep -v NAME | awk '{print $1}'); do
echo "======= $vol =======" >> $outfile
pxctl v i $vol >> $outfile
echo "========== done =========" >> $outfile
done
printf '%80s\n' | tr ' ... | true |
bc74700d63dd29042d11b1677b3e712e4f995bd7 | Shell | kazufusa/mattermost-docker | /enable_japanese_search.bash | UTF-8 | 363 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -Ceux
SQL1="ALTER TABLE Posts DROP INDEX idx_posts_message_txt;"
SQL2="ALTER TABLE Posts ADD FULLTEXT INDEX idx_posts_message_txt (\\\`Message\\\`) WITH PARSER ngram;"
docker-compose exec db bash -c " \
set -x;\
echo \"${SQL1}\" | mysql -u mmuser mattermost -pmmuser_password; \
echo \"${SQL2}\" | mysql -... | true |
96a2f9dabc1864cf76daf531381ac93ee37708d5 | Shell | wn1980/docker-snowboy-build | /run.sh | UTF-8 | 509 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
p1080=1920x1080
p720=1280x720
p169=1600x900
if [ $(uname -m) == 'x86_64' ]
then
tag=
elif [ $(uname -m) == 'aarch64' ]
then
tag=:rpi
else
echo 'not matched platform!'
exit 0
fi
if [[ -f "~/rosuser_home" ]]
then
mkdir -p "~/rosuser_home"
chmod -Rf 777 "~/rosuser_home"
fi
NAME=build-snowb... | true |
6dbdd0941551bb9e4cb69cc97bac747cb2a35a08 | Shell | paoloyx/docker-host-gateway-setup | /set-docker-routing.sh | UTF-8 | 1,861 | 4 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 3 ]; then
echo -e "Usage \n\n ./set-docker-routing.sh [DOCKER_CIDR_FROM] [OUTPUT_NIC_DEV] [OUTPUT_NIC_IP_ADDRESS] \n\n Example: ./set-docker-routing.sh 172.17.0.0/16 enp0s8 192.168.1.36"
exit 1
fi
DOCKER_CIDR_FROM=$1
OUTPUT_NIC_DEV=$2
OUTPUT_NIC_IP_ADDRESS=$3
# clean up previous res... | true |
9d0e491453a233e56cde576496af078cf14d2d55 | Shell | well-zt/tutorials | /UBend_Channel/preProcessing.sh | UTF-8 | 360 | 3.09375 | 3 | [] | no_license | #!/bin/bash
if [ -z "$WM_PROJECT" ]; then
echo "OpenFOAM environment not found, forgot to source the OpenFOAM bashrc?"
exit
fi
# pre-processing
# generate mesh
echo "Generating mesh.."
blockMesh > log.meshGeneration
renumberMesh -overwrite >> log.meshGeneration
echo "Generating mesh.. Done!"
# copy initial and ... | true |
70049a41e92cc334305dc83f55dcd518e8529209 | Shell | GSA/data.gov | /bin/disable-egress | UTF-8 | 1,364 | 3.78125 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
set -e
set -o pipefail
# for debugging
# set -x
help()
{
echo
echo "$0: disables egress proxy for a given app."
echo "Syntax: disable-egress <APP>"
echo " <APP> must be a valid cf app in the current space with egress enabled."
#echo "Options:"
#echo " --space <SPACE>: #TODO"
e... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.