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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4ec0b9f35eaa5916e25194b010d1aba86bdef4f4 | Shell | omarmrivas/IsaScheme | /isabelle_build | UTF-8 | 1,013 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#
FILE=$1
INCLUDE_FROM=$2
INCLUDE_TO=$3
FILE1=`echo ${FILE%.*}`
LOGIC=`echo ${FILE1##*/}`
# LOGIC=`echo ${FILE%.*}`
TARGET="HOL"
# CDIR=`pwd`
DIR=$(dirname "$FILE")
ROOTFILE=$DIR/$LOGIC/ROOT
# creating the theory directory and isabelle make files
echo "Creating $LOGIC directory..."
mkdir -p $DIR/$LO... | true |
3c75a7a99ff6ae4ebae57b73530534f36d90d635 | Shell | EntityFX/anybench | /results/parse_results_base.sh | UTF-8 | 5,039 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
function parse_results() {
local -n results=${1}
NAME="${2}"
if [[ ! -d ${NAME} ]]; then
echo "Not a directory: ${NAME}"
exit 1
fi
EXTRA_FILTER="${3:-.*}"
FREQUENCY_FILES="$(ls "${NAME}"/*freq.log 2>&1)"
FREQ_OUTPUT=$(awk 'BEGIN{FS="="}($1 ~ /^estimated_frequency_hz_cpu/){if (!($1 in fre... | true |
f90cf3c9ddce0f0926c63cd25dc4ff5819572fe5 | Shell | davekopecek/drude-d7-starter | /.drude/commands/vhost | UTF-8 | 262 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
## Print the URL of the current project -- http://VIRTUAL_HOST
## Usage: dsh vhost
## Parameters:
## none
grep VIRTUAL_HOST "$YML_PATH"/docker-compose.yml | head -n 1 | sed 's/ - VIRTUAL_HOST=/http:\/\//g' | sed 's/,/ http:\/\//g'
| true |
7758e68844e9d351c0edcc9aff39765e0643a2d4 | Shell | sverchdotgov/zipcode-to-lat-long | /run.sh | UTF-8 | 822 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
NUM_ARGS_REQUIRED=0
if [ $# -ne "${NUM_ARGS_REQUIRED}" ]; then
cat <<EOF
Usage: $0
EOF
exit 1
fi
run() {
echo "+" "$@" 1>&2
"$@"
}
color() {
COLOR=$1
MESSAGE=$2
case "${COLOR}" in
red)
echo -e "\e[31m${MESSAGE}\e[39... | true |
f4311025f8b07387ea8f67545f94f8be21e53c4c | Shell | jvm-repo-rebuild/reproducible-central | /content/org/apache/maven/maven/analyze.sh | UTF-8 | 2,697 | 3.03125 | 3 | [] | no_license | #!/bin/bash
repo=https://repo.maven.apache.org/maven2
groupId=org.apache.maven
artifactId=maven-model # used to detect target bytecode by reading first .class
rootArtifactId=maven
modules="apache-maven maven-artifact maven-core maven-model maven-model-builder maven-settings..."
javaRootPackage=${groupId}
rootArtifactI... | true |
6b30ce067f471b0b0f226c77efed656f5d6d44d8 | Shell | korssm/tlcl_v2 | /chapter_30/tracing_with_line_numbers | UTF-8 | 247 | 3.21875 | 3 | [] | no_license | #!/bin/bash -x
# tracing_with_line_numbers: script to demonstrate common errors
number=1
oldPS4=$PS4
export PS4='$LINENO -> '
if [ $number = 1 ]; then
echo "Number is equal to 1."
else
echo "Number is not equal to 1."
fi
export PS4=$oldPS4
| true |
e32767736438fd99c9e71f0a92c0edba20f158e6 | Shell | yanyanho/Truora-Service | /docker/deploy/bin/start.sh.tpl | UTF-8 | 2,845 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# 命令返回非 0 时,就退出
set -o errexit
# 管道命令中任何一个失败,就退出
set -o pipefail
# 遇到不存在的变量就会报错,并停止执行
set -o nounset
# 在执行每一个命令之前把经过变量展开之后的命令打印出来,调试时很有用
#set -o xtrace
# 退出时,执行的命令,做一些收尾工作
trap 'echo -e "Aborted, error $? in command: $BASH_COMMAND"; trap ERR; exit 1' ERR
# source shell util file
PATH="${deploy_ro... | true |
c63f77cd6a4c451567deea64254fd34073cb816c | Shell | lyuehh/program_exercise | /shell/scripting-languae/sh2.sh | UTF-8 | 208 | 2.515625 | 3 | [] | no_license | #!/bin/sh
# 打印重复文件的sha值
# shasum *.mp3 | sort -u | awk '{a[$1]++;if(a[$1] > 1){print $0}}' | awk '{print $1}'
shasum *.mp3 | sort -u | awk '{a[$2] = $1;} END {for(i in a) {print i"\t"a[i]}}'
| true |
79c7229e7d2d541178bf8406f8d4c94b6ecd9f6d | Shell | baldulin/bashy-utils | /table | UTF-8 | 4,071 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# table -h
# Creates a little bash table from piped
printhelp(){
echo """table:
This programm will output a table fields are splitted by
spaces rows by newlines.
Usage:
table [-STYLE] [-t] [-C CORNERS] [-T TJUNCS] [-H HORIZ]
[-V VERTIC] [-X CROSS] [-F FIELD]
Parameters:
-STYLE... | true |
c07b984a8b6963471919e267b2170acef1639be5 | Shell | picolonet/picolo-examples | /bash/picoloAddUsers.sh | UTF-8 | 367 | 3.015625 | 3 | [] | no_license | #!/bin/sh
numIters=$1
host=localhost
port=32980
for ((i = 1; i <= numIters; i++)); do
user={"id":"id_$i","firsName":"first_$i","lastName":"last_$i"}
id="id_$i"
fp="INSERT INTO ipfs_users VALUES ('"
sp="', '"
tp="');"
echo $fp$id$sp$user$tp | cockroach sql --insecure --host=$host --port=$port
... | true |
70ea7c8bd389b2ef896724184470fec2a7226d66 | Shell | lizhizhong1992/reconstruct_mito_genome | /variant_calling/script/workflow.job | UTF-8 | 1,484 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#$ -S /bin/bash
#$ -N workflow
#$ -cwd
#$ -pe smp 24
#$ -o ./logfiles/workflow.out
#$ -V
#$ -m e
## ---- Variables ----
##
set -ue
CORES=24
READ=$1
OUTPATH=$2
REFERENCE=$3
## ---- Setup ----
mkdir -p ${OUTPATH}
samtools faidx ${REFERENCE} NC_037304.1 > ${OUTPATH}/mito.fa
## ---- Initial filtering ----
... | true |
0adf3470315161dcc453ba6327a51a75068b8e62 | Shell | jensp/Arch-Linux-on-i586 | /extra/pinentry/PKGBUILD | UTF-8 | 1,240 | 2.734375 | 3 | [] | no_license | # $Id: PKGBUILD 48309 2009-08-01 13:22:08Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pinentry
pkgver=0.7.6
pkgrel=1
pkgdesc="a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
arch=('i586' 'i686' 'x86_64')
license=('GPL')
url="http://www.gnupg.org/aegyp... | true |
3801340fbe5ccaa9a4a18d6de6ec0156240d460a | Shell | jraduget/kaleido-repository | /kaleido-integration-test/script/glassfish3x/start.sh | UTF-8 | 609 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ -z "$GLASSFISH_HOME" ]; then
if [ -z "$1" ]; then
echo "***************************************************************************"
echo "To start the kaleidoFoundry integration package, please:"
echo "***************************************************************************"
echo "-> def... | true |
c675ea2814fc5840959b4a91a91a0637acad1332 | Shell | H2so4/learn | /sh/tools/uimg | UTF-8 | 1,278 | 3.90625 | 4 | [
"WTFPL"
] | permissive | #!/usr/bin/env bash
#upload tmp imgs to http://imgur.com
_usage()
{
echo "Usage: `basename $0` img1 img2 imgN ..."
echo " img must be a valid image file: *.[png|jpg|..]"
exit 1
}
[ $# -eq 0 ] && _usage
upload_img()
{
for img
do
if [ -f "$img" ] ; then
case "$img" in
... | true |
24866aca68b12584c5fdea354f22e674d359f465 | Shell | dmitriy-korotayev/dotfiles | /i3/.i3/bin/post-compile-config | UTF-8 | 491 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# Dynamic output names for i3 config
# main output (monitor)
mo=$(xrandr | grep -w connected | awk -F'[ +]' 'NR==1{print $1}')
# default outputs list
declare -A outputs=( [po]="$mo" [so]="$mo" [to]="$mo" )
# actual outputs
ids=$(xrandr | grep connected | awk -F'[ +]' '{print $1}')
# merge
[ ${ids[1]+t} ] ... | true |
a439fd8c010af8ad89854c34e3668c0a15cac687 | Shell | casper-kim/services-base | /build_scripts/build_linux_getopts.sh | UTF-8 | 1,768 | 3.078125 | 3 | [] | no_license | #!/bin/bash -xe
# Copyright AllSeen Alliance. All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PRO... | true |
6e84a2ba90bb33ed82f6bf8c1a560686341b874f | Shell | rajfidel/appium_ios | /scripts/appiumInstaller.sh | UTF-8 | 1,851 | 3.125 | 3 | [] | no_license | #!/bin/sh
echo "****USER PROMPT****"
echo "Perform the following steps of they have not been performed already:"
echo "1. Install Xcode along with any additional components if prompted, login into Xcode using your Developer account"
echo "2. Download developer certificate from Apple Developer and click to install into ... | true |
cc84f331f38ee4745022785f94ae932f3cfda053 | Shell | carsontang/data_analysis | /gather_heights.sh | UTF-8 | 566 | 2.828125 | 3 | [] | no_license | #! /bin/bash
for x in {a..z}
do
curl http://www.basketball-reference.com/players/${x}/ \
| awk '/<tbody>/,/<\/tbody>/' | perl -p -e 's/<tr class="">/<tr>/g' \
| tail -n +2 | sed '$d' | sed 's/<tr>//g' | tr -s '\n' \
| sed -E -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' -e 's/<\/td>//g' -e 's/<td.*" >/... | true |
f77dfa6634d82675e722473759431f025ff5b176 | Shell | tfaoliveira/libjc | /bench/poly1305 | UTF-8 | 1,558 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# remove previous benchmarks files related to poly1305
ls data/crypto_onetimeauth_poly1305_* | xargs rm
# copy implementations and bindings into supercop-*
./sync
./sync openssl
./sync libsodium
./sync hacl_star
./sync vale
## run benchmarks... this can take some time
./bench poly1305
# move openssl sta... | true |
066965263dec7b87b66e133dda4c9c69f10e6313 | Shell | darkleon/bash-java | /package.sh | UTF-8 | 2,400 | 3.671875 | 4 | [] | no_license | #! /bin/bash
# for java
################
# package.sh
#
# Packages java code as a native OS X application
#
# - Fetches source for a Java Swing HelloWorld application from the web
# - Compiles the source
# - Packages the source into a native Mac application
# - Installs the native Mac application
# - Runs the native M... | true |
ecaed687407146b52dc7b7ed3b75e0aad47091e1 | Shell | kooroshg1/Docker_Tutorial | /installMAST | UTF-8 | 1,394 | 3.6875 | 4 | [] | no_license | #!/bin/sh
# this script designed to work on build of docker which run natively on Mac
# 1) Pull MAST from docker hub if it does not exist in local environment
# 2) create container with name mast
# NOTE: above command assume script to be placed in in home area
# Other Info :
# * This script has been te... | true |
ce0690d040f086d6e832feb47ddc4c2d6fec67d4 | Shell | artsoroka/photorama | /start.sh | UTF-8 | 180 | 2.65625 | 3 | [] | no_license | #!/bin/bash
appEnv=$(curl -XGET localhost:8000/PHOTORAMA.env);
if [ -z "$appEnv" ]
then
echo "Could not get config " && exit 1
else
echo $appEnv node app.js | bash;
fi | true |
cb5f510f89a86c333597249804a19989ceda1d99 | Shell | blukat29/libc-database | /common/libc.sh | UTF-8 | 11,006 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p db
die() {
echo >&2 $1
exit 1
}
dump_symbols() {
readelf -Ws $1 | perl -n -e '/: (\w+)\s+\w+\s+(?:FUNC|OBJECT)\s+(?:\w+\s+){3}(\w+)\b(?:@@GLIBC)?/ && print "$2 $1\n"' | sort -u
}
extract_label() {
perl -n -e '/(\w+)/ && print $1'
}
dump_libc_start_main_ret() {
local call_main=`objdum... | true |
8a30844a10b023be527a6020061153520e6a4fbd | Shell | amadeuszdrabiniok/UnixExamples | /lab3/procesy | UTF-8 | 97 | 2.703125 | 3 | [] | no_license | #!/bin/sh
who | sed 's/ .*//' | while read username
do
echo "$username"
ps -u "$username"
done
| true |
0b45f85ad49eb75c944015d4761814e43b22b71f | Shell | peakyyuter/tOdO | /.tools/todo | UTF-8 | 465 | 3.234375 | 3 | [] | no_license | #! /bin/bash
currentTodoList=$TODOPATH/$(ls $TODOPATH | grep $(date "+%m-%d-%Y"))
if [ "$1" = "add" ]
then
echo $"- "$2 >> $currentTodoList
cat $currentTodoList || echo "Error: Crontab failure, todolist not created "
elif [ "$1" = "c" ]
then
python addCompleted.py $currentTodoList "$2"
cat $currentTodoList |... | true |
7d8136337f4cc8e0d6a51bbf4b9ee846836f7de0 | Shell | jneen/config | /bash/_old/plug.sh | UTF-8 | 357 | 3.375 | 3 | [] | no_license | #!/bin/bash
PLUG_DIR="$HOME/Music/plug"
plug::get-youtube() {
local url="$1"; shift
local outfile="$1"; shift
youtube-dl -x "$url" -o "$outfile"
}
plug::get-soundcloud() {
local url="$1"; shift
local outfile="$1"; shift
scdl -l "$url" --path "$outfile"
}
plug::create-playlist() {
local name="$1"; sh... | true |
13208cc566246d224148d511af66123feb75018f | Shell | cablelabs/CcspWifiAgent | /scripts/aphealth.sh | UTF-8 | 5,711 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
######################################################################################
# If not stated otherwise in this file or this component's Licenses.txt file the
# following copyright and licenses apply:
# Copyright 2018 RDK Management
# Licensed under the Apache License, Version 2.0 (the "License");... | true |
712f5b2043c1ff096e490080951c8361fe0eff90 | Shell | seema1611/Shell_Script | /Linux commands/ConditionAndLoopCommands.sh | UTF-8 | 373 | 2.953125 | 3 | [] | no_license | touch abc.txt def.txt
ls
ls *.txt
for files in `ls *.txt`; do echo $files; done
for file in `ls *.txt`; do folderName=`echo $file | awk -F. '{print $1}'`; echo $folderName; done
for file in `ls *.txt`; do folderName=`echo $file | awk -F. '{print $1}'`; mkdir $folderName; cp $files $folderName; echo Copied $file to $fol... | true |
70c0433912e31af000554e3a388afc1e75d1ae84 | Shell | julsemaan/packetfence-monitoring-scripts | /check-innodb-file-per-table.sh | UTF-8 | 830 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#fname:check-innodb_file_per_table.sh
DB_USER=$(perl -I/usr/local/pf/lib -Mpf::db -e 'print $pf::db::DB_Config->{user}');
DB_PWD=$(perl -I/usr/local/pf/lib -Mpf::db -e 'print $pf::db::DB_Config->{pass}');
DB_NAME=$(perl -I/usr/local/pf/lib -Mpf::db -e 'print $pf::db::DB_Config->{db}');
DB_HOST=$(perl -I/us... | true |
782115803442245fdada7a953103035ecfc6f38c | Shell | LeanderLXZ/capsule-tf | /src/archive_logs.sh | UTF-8 | 630 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if [ ! -d "../archived_logs" ]; then
mkdir ../archived_logs
fi
if [ ! -d "../archived_logs/tf_logs" ]; then
mkdir ../archived_logs/tf_logs
fi
if [ ! -d "../archived_logs/train_logs" ]; then
mkdir ../archived_logs/train_logs
fi
if [ ! -d "../archived_logs/test_logs" ]; then
mkdir ... | true |
2474ed794bc1a1c5179e37b531fd849ebbe0490b | Shell | monw3c/HTML5-Clear-v2 | /build.sh | UTF-8 | 1,737 | 3.265625 | 3 | [
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/bash
BASEDIR=$(dirname $0)
#copy stuff to deploy folder
echo "\033[36m[update]\033[0m copying assets into deploy folder..."
rm -rf $BASEDIR/deploy
mkdir $BASEDIR/deploy
mkdir $BASEDIR/deploy/js
mkdir $BASEDIR/deploy/css
cp $BASEDIR/css/style.css $BASEDIR/deploy/css/style.css
cp -R $BASEDIR/img $BASEDIR/deploy... | true |
b5dd1e20286bc778629837f3e24aa3e525e55fe4 | Shell | FauxFaux/debian-control | /p/python-html2text/python3-html2text_2018.1.9-1_all/prerm | UTF-8 | 688 | 3 | 3 | [] | no_license | #!/bin/sh
set -e
case "$1" in
remove|deconfigure)
update-alternatives --remove html2markdown /usr/bin/html2markdown.py3
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Automatically added by dh_python3:
if which ... | true |
1857b8e9ff26d0643f396f9634ecf41c3af1bd63 | Shell | comkieffer/dotfiles | /installers/install-owncloud-client.sh | UTF-8 | 559 | 2.96875 | 3 | [] | no_license | #!/bin/sh
set -e
distribution=$(lsb_release -r | cut -f 2)
echo "Downloding GPG key for Owncloud repository ..."
wget -qO - https://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_${distribution}/Release.key | sudo apt-key add - > /dev/null
echo "deb http://download.opensuse.org/repositories/isv:/ownCl... | true |
8100ecc46ec9e1105b5ac2ac80aa4c887d39d6fc | Shell | ajonathan/Azure-Log-Analytics | /loganalytics_servicemap_installation.sh | UTF-8 | 743 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# install Log Analytics and Service Map on a Linux VM
# version 1.0
# Log Analytics Variables
LAWS="Workspace ID"
LAKEY="Workspace key"
###########################################
# Download and install Log Analytics
###########################################
wget https://raw.githubuserconte... | true |
bea88da1b5009c618e963e94540d557124cf6409 | Shell | narfman0/cs595-f13 | /a3/q1/download | UTF-8 | 504 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
export INPUT=$1
function downloadInput {
echo "Processing file $INPUT"
pushd "original"
for link in `cat ../$INPUT`; do
filename=`echo -n "$link" | md5sum | sed 's/[- ]//g'`
curl "$link" > "$filename"
echo "Downloaded link: $link as: $filename"
done
popd
}
function lynxLinks {
pushd "modified"
... | true |
8629fef09e4f8dcd35bc7d8b2b6f0f7178933514 | Shell | imorph/vector | /scripts/environment/bootstrap-ubuntu-20.04.sh | UTF-8 | 2,541 | 3.078125 | 3 | [
"MPL-2.0"
] | permissive | #! /usr/bin/env bash
set -e -o verbose
export DEBIAN_FRONTEND=noninteractive
export ACCEPT_EULA=Y
echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries
apt update --yes
apt install --yes \
software-properties-common \
apt-utils \
apt-transport-https
apt upgrade --yes
# Deps
apt install --yes \
... | true |
6e0688250a55169ce309432503305011bb4a7c94 | Shell | opentracking/pytrack | /install.sh | UTF-8 | 378 | 2.59375 | 3 | [] | no_license | #!/bin/bash
if [[ $1 == "rm" ]]; then
apt-get update
apt-get remove python-opencv -y
ldconfig
else
apt-get update
apt-get install python-opencv -y
apt-get install libgl1-mesa-*
ldconfig
git clone https://github.com/opentracking/pytrack.git pytrack_example
cd pytrack_example
pytho... | true |
b6e1cfb38b454198c4a3198dda3fffee28ec7af1 | Shell | kheaactua/system-setup-scripts | /install_neovim.sh | UTF-8 | 2,348 | 3.515625 | 4 | [] | no_license | #!/bin/bash
function getPriority() {
# Which alternative target name to query
local -r bin=$1
query=$(update-alternatives --display $bin | \
grep priority | \
cut -d' ' -f 4 | \
sort | \
tail -n 1 \
)
if [[ "" == "${que... | true |
05fd12c9c882b4d31e3b204d5d922a71fab6e469 | Shell | LauraTrujilloT/unican | /Modulo 1/renamed_moleculas.sh | UTF-8 | 567 | 3.421875 | 3 | [] | no_license | #!/bin/bash
datadir="data-shell/data/pdb"
# -d is an operator to test whether or not the given directory exists
NEW_DIR="renamed_molecules"
[[ -d $NEW_DIR ]] && echo $NEW_DIR already exists!, EXIT && exit
mkdir $NEW_DIR
for fname in ${datadir}/*.pdb
do
formula=$(grep ATOM ${fname} | awk '{print $3}' | sort | un... | true |
8faf75e48f4769dfdba7686601d8f4391925aebb | Shell | denser/routeros | /cleaner_wrasse/sh/wrasse.sh | UTF-8 | 1,154 | 3.578125 | 4 | [
"BSD-3-Clause"
] | permissive | ##
# This is a very simple script that works on MikroTik's limited busy box. It searches for a
# subset of things that a bad person might do:
#
# 1. Loading /rw/lib/ shared objects into rw
# 2. Use the /rw/RESET file for persistence (pre-6.40.6)
# 3. Use the /rw/DEFCONF file for persistence
# 4. Use /rw/lib for basical... | true |
d13f501cb45520e57c4fe3a2e5c390bf2c31f304 | Shell | timothymarois/env | /php7.4/testing/set.sh | UTF-8 | 6,571 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Num Colour #define R G B
# 0 black COLOR_BLACK 0,0,0
# 1 red COLOR_RED 1,0,0
# 2 green COLOR_GREEN 0,1,0
# 3 yellow COLOR_YELLOW 1,1,0
# 4 blue COLOR_BLUE 0,0,1
# 5 magenta COLOR_MAGENTA 1,0,1
# 6 cyan COLOR_CYAN 0... | true |
129b5c5e09ba564aaeabac5dd0baf4a0148c7cb2 | Shell | mskf3000/codework | /bash/snippets/usage-getopt.sh | UTF-8 | 741 | 4.15625 | 4 | [] | no_license |
ScriptVersion="1.0"
function usage() {
cat <<-CAT
Usage : ${0##/*/} [options] [--]
Options:
-h|help Display this message
-v|version Display script version
CAT
exit 1
}
### Handle command line arguments
[ -z "$1" ] && usage
while getopts ":hvf:" opt
do
case $opt in
f|file)
... | true |
5db1093bc16894d82b80189b4b97ae66bdf824f3 | Shell | jdtsg/TeamTalk | /auto_setup/nginx_php/nginx/setup.sh | UTF-8 | 2,086 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# this is a setup scripts for nginx
# author: luoning
# date: 09/05/2014
# setup nginx
NGINX_PATH_7=http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
NGINX_PATH_6=http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
print_hell... | true |
1495caae97ddfb75888b9ce63a537a9376a70aeb | Shell | jprules321/colas | /wgrib2-v0.1.9.4/pytests/grads_tests.sh | UTF-8 | 210 | 2.5625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #! /bin/sh
if [ "z$srcdir" = "z" ]; then
srcdir=.
fi
export PYTHONPATH="$srcdir/lib"
export GASCRP=$srcdir
export GADDIR=`pwd`"/$srcdir/../data"
"$srcdir/grads_tests.py" -d "$srcdir/data/" -b ../src/
| true |
007d62cf5f66d1f4de6766cc59442b0d91a0bc60 | Shell | EntePF/docker-backup | /config.sh | UTF-8 | 908 | 2.734375 | 3 | [] | no_license | #!/bin/bash
. ./src/lib.sh
# if true hard links will point to $SOURCE, otherwise to latest previous backup
startBackup "/srv/docker-backup/logs/" \
"Server Backup " \
false \
"/srv/docker-backup/" \
"/srv/docker/" \
"- 6 months";
echo;
startBackup "/srv/resilio-sync-backup/logs/" \
"Server Backup " \
true \
"... | true |
747e7a23ee7bb6a03a69f6c039beab7b0526e311 | Shell | ycouble/clk_commands | /external/notebooks.clean.sh | UTF-8 | 203 | 3.234375 | 3 | [] | no_license | #!/bin/bash
usage () {
cat<<EOF
$0
Cleans the outputs of all notebooks in the current folder
EOF
}
if [ $# -gt 0 ] && [ "$1" == "--help" ]
then
usage
exit 0
fi
nbtb clean --inplace -o ./*.ipynb
| true |
d57ed96b622ca2d8b9056354eaad4b185fcab389 | Shell | jrubyuncle/config | /hg/sql.h.sh | UTF-8 | 853 | 2.515625 | 3 | [] | no_license | #!/bin/bash
cat << EEE
% /usr/bin/sqlite3 <name.db>'
Enter SQL statements terminated with a ";"
sqlite> create table posts(
...> id integer primary key,
...> title text,
...> content text
...> );
sqlite>
drop table posts;
.help
.table // show all tables
.schema users // show table schema
.e... | true |
468b042e393790d2e820491a3ddcae81a7900090 | Shell | ramblehead/rhpm | /packages/rclone/.project/get | UTF-8 | 278 | 2.90625 | 3 | [] | no_license | #!/bin/bash
set -eu
set -o pipefail
PRJ_PATH="$(dirname "${BASH_SOURCE[0]}")"
if [[ ! -d "$PRJ_PATH" ]]; then PRJ_PATH="$PWD"; fi
PRJ_PATH="$(cd -P "$PRJ_PATH" && pwd)"
source "$PRJ_PATH/paths"
source "$PRJ_PATH/configs"
git clone https://github.com/ncw/rclone.git $SRC_PATH
| true |
5a0f120d68362b5bf4ce76ffe92f758b295b588c | Shell | go-crazy/go-crazy | /docker/yunwei/dev.sh | UTF-8 | 1,058 | 3.140625 | 3 | [] | no_license | #!/bin/sh
echo "这是本地测试脚本"
sleep 2
echo "创建日志目录"
cd ../../
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./docker/server .
cd ./docker/yunwei
# Provider
echo "启动/删除 provider"
for(( i = 80;i <= 80; i++));
do
echo "第一:删除provider: $i";
docker stop provider-$i
docker rm -f provider-$i
if [[... | true |
f327e8f3ff4ffe055c6c3b675310b3fa7c163887 | Shell | influxdata/build-scripts | /influx_builder.sh | UTF-8 | 13,253 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#Architecture vars
known_compatible_architectures=(
"X32"
"X64"
"ARM"
)
#Distros vars
known_compatible_distros=(
"DebianStable"
"DebianUnstable"
"UbuntuLTS"
... | true |
9e054473533c20a2f9ef2e7fcdb9b78af598c552 | Shell | RheaSidana/linux | /FileCreated/q39.sh | UTF-8 | 434 | 3.4375 | 3 | [] | no_license | #!/bin/bash
echo "Calculating the marks of the student"
marks=$(($1+$2+$3+$4+$5))
#echo "$marks"
marks=$((marks*100/500))
if [ $marks -ge 60 ]
then
division="First Division"
elif [ $marks -ge 50 ] # && $marks -le 59 ]
then
division="Second Division"
elif [ $marks -ge 40 ]
then
division="Third Division"
elif [ $mar... | true |
c671aed280c27c4ef3fd943fcb7abcc2318cc383 | Shell | mhull87/vman-retropie | /home/pi/RetroPie/extras+/.pb-fixes/retropiemenu/System/bgm.sh | UTF-8 | 8,101 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
infobox= ""
infobox="${infobox}\n"
infobox="${infobox}Install Background Music\n\n"
infobox="${infobox}This script will install and setup background music for you.\n"
infobox="${infobox} NOTE: Your system will reboot after removal or Install of Background Music\n"
infobox="${infobox}Just copy your ... | true |
a2b6f8361d8be3d8318fa7538e7ec71e8b9a6798 | Shell | jinwyp/nodejs-38sr | /backup.sh | UTF-8 | 770 | 2.65625 | 3 | [] | no_license | #!/bin/bash
cd /home/backupdata
rarWebName=38sr_Web_$(date +"%Y%m%d").tar.gz
rarDbName=38sr_Db_$(date +"%Y%m%d").tar.gz
oldWebName=38sr_Web_$(date -d -3day +"%Y%m%d").tar.gz
oldDbName=38sr_Db_$(date -d -3day +"%Y%m%d").tar.gz
#delete data 3 day ago
rm /home/backupdata/$oldWebName
rm /home/backupdata/$oldDbName
#co... | true |
3289deb64424077881509c28113d1be67c485a5a | Shell | Bharathkumarraju/gcp_for_fun | /2.GKE/CICD_with_GKE/demo_lab.sh | UTF-8 | 11,633 | 2.75 | 3 | [] | no_license | In this lab, you learn how to perform the following tasks:
Create Kubernetes Engine clusters
Create Cloud Source Repositories
Trigger Cloud Build from Cloud Source Repositories
Automate tests and publish a deployable container image via Cloud Build
Manage resources deployed in a Kubernetes Engine cluster via Cloud... | true |
6197ee60614b4cb65f75af1bebbb96d63b1e135d | Shell | akmorrow13/mango | /scripts/setup-python | UTF-8 | 1,154 | 3.203125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
# is a virtualenv active?
INVENV=$(python -c 'import sys; print ("1" if hasattr(sys, "real_prefix") else "0")')
if [[ "$INVENV" -ne 1 ]]; then
echo "virtualenv is not active"
exit 1
fi
# is SPARK_HOME set?
if [ -z "$SPARK_HOME" ]; then
echo "You need to set SPARK_HOME"
exit 1
fi
# i... | true |
afb67bd6ff462562ce00ec47c07c148b1caad2e7 | Shell | ravikiranmysore/Bash | /Case statement | UTF-8 | 1,272 | 3.546875 | 4 | [] | no_license | #! /bin/bash
: '
case expression in
pattern1 )
statement ;;
pattern2 )
statement ;;
...
esac
'
vehicle=$1
case $vehicle in
"car" )
echo "Rent of $vehicle is 100 dollers" ;;
"van" )
echo "Rent of $vehicle is 80 dollers" ;;
"cycle" )
echo "Rent of $vehicle is 50 dollers" ... | true |
4f56b4701458c5e15e5bbdf3cae35b9c692f9d39 | Shell | pnarvor/ubuntu-config | /install.sh | UTF-8 | 475 | 2.828125 | 3 | [] | no_license | #! /bin/bash
set -e
# Getting this script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cp $DIR/gitconfig $HOME/.gitconfig
cp $DIR/tmux.conf $HOME/.tmux.conf
cp $DIR/vimrc $HOME/.vimrc
cp -r $DIR/vim $HOME/.vim
# Keyboard layout (must be sudo) find a better wa... | true |
b72df97b7e389adf6bb9dcd3262516dc32af5f21 | Shell | WangMengxiao319/ArrowCMR | /sw/ARM/meta-cmr/recipes-hwtest/test-scripts/files/test-i2c.sh | UTF-8 | 1,887 | 4.15625 | 4 | [
"MIT"
] | permissive | #! /bin/bash
# I2C bus number on which the FMC boards are connected.
i2c_bus=1
# EEPROM I2C addresses for each FMC board.
fmc1_addr="0x50"
fmc2_addr="0x51"
fmc3_addr="0x52"
fmc4_addr="0x53"
# EEPROM address of the board ID string.
id_addr="0"
# Board ID string length.
id_len=4
# FMC board ID strings as stored in e... | true |
46c11ba1ccebe5f50805ea7af90aed6988512637 | Shell | appulse-projects/echo-service-elixir | /build.sh | UTF-8 | 220 | 2.609375 | 3 | [] | no_license | #!/bin/sh
set -e
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
( cd ${CURRENT_DIR} ; mix escript.build )
docker build --rm -t echo-service-elixir ${CURRENT_DIR}/
( cd ${CURRENT_DIR} ; mix clean )
| true |
6c858be5c6ed336896c837b63fa017ebc1cff2a3 | Shell | cgvarela/home-cluster | /pxe_boot_image/atomic_image.sh | UTF-8 | 1,327 | 2.75 | 3 | [] | no_license | # TODO make this a real script
echo "THIS IS NOT A REAL SCRIPT DO NOT RUN IT"
exit(1)
# TODO Download livecd image if no pxe bootable image already exists
# Install livecd-tools
sudo dnf install livecd-tools
mkdir pxe
cd pxe
mv ~/Downloads/CentOS-Atomic-Host-7-Installer.iso pxe/atomic.iso
# Run livecd-iso-to-pxeboot ... | true |
d07ed2a419b4b5d7a72112ed36f7f98132be1c67 | Shell | SixNOstop/shells | /22一键部署LNMP(源码安装).sh | UTF-8 | 2,864 | 3.328125 | 3 | [] | no_license | #!/bin/bash
menu(){
clear
echo "##############‐‐‐‐Menu‐‐‐‐##############"
echo "#1.Install Nginx"
echo "#2.Install MySQL"
echo "#3.Install PHP"
echo "#4.Exit Program"
echo "########################################"
}
choice(){
read -p "Please choice a menu[1-9]:" select
}
install_nginx(){
id nginx &>/dev/null
if [ ... | true |
d29d7cfb89b86710ce05e27506b4026e26833b4f | Shell | jundengdeng/dotfiles | /init-linux.sh | UTF-8 | 3,251 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# install script for setting up linux
# typicall an ubuntu / gnome distro
UNAME=`uname`
cd $HOME
rm -f .profile
ln -s dotfiles/profile .profile
ln -s ~/Documents/Sync/pass-store .password-store
mkdir ~/bin/
mkdir ~/src/
mkdir ~/tmp/
mkdir ~/Downloads/
## update & upgrade
sudo apt-get update
sudo apt-ge... | true |
92ec5901ca80f6a662ac20d97cad81d232c3ff6f | Shell | kubernetes-sigs/cloud-provider-azure | /hack/generate-release-note.sh | UTF-8 | 3,460 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2022 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | true |
aac91e71850ad79e1f6e0ef5d03ab81eeb440c09 | Shell | Modulus/k8s-core | /sa/role.sh | UTF-8 | 940 | 3.75 | 4 | [] | no_license |
#!/bin/bash
vars=("$@")
if [ ${#vars[@]} -lt 2 ]
then
echo "Usage sh roles.sh apply/delete role namespace1 namespace2"
echo "Example: sh roles.sh apply developer ai"
echo "Exmpale: sh roles.sh delete ns-admin ai"
elif [ ${vars[0]} == *"create"* ] || [[ ${vars[0]} == *"apply"* ]] || [[ ${vars[0]} == *"delet... | true |
2816b45c542aa140c59d8a24bcff20c48ee58b95 | Shell | rezaprimasatya/TrainingBTPN | /12. Greenplum/script/1-2-aws-configure.sh | UTF-8 | 484 | 3.28125 | 3 | [] | no_license | #!/bin/bash
if [ -d $HOME/.aws ]; then rm -rf $HOME/.aws; fi
mkdir $HOME/.aws
echo "[default]
aws_access_key_id="$1"
aws_secret_access_key="$2"" > $HOME/.aws/credentials
echo "[default]
region=eu-west-2
output=json" > $HOME/.aws/config
#test aws config
if [ "$(/usr/local/bin/aws s3 ls s3://amazon-reviews-pds/tsv/ ... | true |
c3ddccf1a59c4905b8c8d36e82ac57a897098533 | Shell | paes/GTK_REMD | /OLD/frompuc/noremd/as/ctremd/analyze_all_temps_no_sm.x | UTF-8 | 450 | 2.75 | 3 | [] | no_license | #!/bin/bash
TEMPLIST=`cat temperatures.dat`
for co in 001 002 003 004 005 006 ; do
for T in $TEMPLIST ; do
cpptraj $1.prmtop <<EOF
trajin remd_$co.ncdf.001 remdtraj remdtrajtemp $T
trajout remd_$co.Ttraj.$T
go
EOF
# cpptraj $1.prmtop <<EOF
# trajin remd_$co.Ttraj.$T
# parm $2
# reference $2 parm $2... | true |
84e1051e2444f0709616bccf7c04a94a7f2f4d23 | Shell | benthomasrudy/dotfiles | /bin/port-migrate | UTF-8 | 1,354 | 3.859375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
set -ue
DOTPORT=$HOME/.ports
STATUSDIR=$DOTPORT/status
mkdir -p "$STATUSDIR/"
# Record installed ports
if [ ! -f $DOTPORT/ports.txt ]; then
port -qv installed > $DOTPORT/ports.txt
fi
# Record requested ports
if [ ! -f $DOTPORT/requested.txt ]; then
port echo requested | cut -d ' ' -f 1 | uni... | true |
0ca52a2e300993e3076f613ae2e3e0c94577f18b | Shell | chrispruitt/dotfiles | /dot_bashrc.d/openvpn.sh | UTF-8 | 531 | 3.21875 | 3 | [] | no_license | function do_vpn() {
export OPENVPN_PROFILE=${OPENVPN_PROFILE:-"default"}
if [ -e "$HOME/.openvpn/${OPENVPN_PROFILE}.ovpn" ]; then
openvpncmd="--config ~/.openvpn/${OPENVPN_PROFILE}.ovpn"
else
echo "Profile ${OPENVPN_PROFILE} not found ($HOME/.openvpn/${OPENVPN_PROFILE}.ovpn)"
return 1
fi
MFA=$(... | true |
ae17f13f07e47067293c9835407e87d571508127 | Shell | stilllearningsoumya/Aloe-Source | /pinStart.sh | UTF-8 | 4,377 | 3.046875 | 3 | [] | no_license | #!/bin/bash
declare -A ips=()
eval "$(jq '.' hosts_file|sed 's/[:,]//g'| awk 'NR>2 {print last} {last=$0}'| awk '{print "ips["$2"]=" $1}')"
declare -a PIs=()
for pi in "${!ips[@]}";
do
PIs+=("$pi")
done
for pi in "${!ips[@]}";do
#sshpass -p "raspberry" scp -o StrictHostKeyChecking=no -r ~/.bashrc pi@$pi:/home... | true |
c1c084b3fa23dc8c179e24e7a43e2ace373842ac | Shell | leeonky/clayer | /clayer_port.sh | UTF-8 | 3,038 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# clayer file [v=index] [a=index] [thread=thread_count] [sub=subtitle_file] [p=position(0,0)] [s=size(1920x1080)] [vf=video_flag(full|opengl|borderless|highdpi)]
project_path="$(dirname "$0")"
. "$project_path/.clayer"
media_file=$1
DECODER_BIN="$project_path/decoder/cl_decoder"
SUBTITLE_BIN="$project_pa... | true |
43f8d04f0a9c8fc2025f3d4fd80f03ce1b69d477 | Shell | slaclab/slac-jupyterhub | /redeploy.sh | UTF-8 | 504 | 2.828125 | 3 | [] | no_license | #!/bin/bash
set -x
K8S_NAMESPACE="default"
if [ -n "${1}" ]; then
K8S_NAMESPACE="${1}"
fi
kubectl delete -n $K8S_NAMESPACE configmap hub-config
kubectl create -n $K8S_NAMESPACE configmap hub-config \
--from-file=config/jupyterhub_config.py \
--from-file=config/node-selectors.yaml \
--fro... | true |
2f4fb917a3b53cb268d41ca38b514a413d63e0f5 | Shell | bunchc/Cookbook_Razor_Chef | /chef.sh | UTF-8 | 3,538 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# iscsi.sh
# Authors: Cody Bunch (bunchc@gmail.com)
# Source in common env vars
. /vagrant/common.sh
# Install chef server
echo "Installing Chef Server..."
sudo dpkg -i /vagrant/chef-server-11.deb
sudo chef-server-ctl reconfigure
sudo chef-server-ctl test
mkdir ~/.chef
cp /etc/chef-server/admin.pem ~/... | true |
f177c05105450637c5c897d9ddac049cdc9df159 | Shell | gchudnov/bspec-cpp | /scripts/cmake-install.sh | UTF-8 | 239 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
SH_FILE='cmake-3.4.0-Linux-x86_64.sh'
wget http://www.cmake.org/files/v3.4/${SH_FILE}
chmod a+x ${SH_FILE}
sudo ./${SH_FILE} --skip-license --prefix=/usr/local
export PATH=/usr/local/bin:$PATH
cmake --version
| true |
f585da1809a9c548e54190695c3c0d10396fc0a1 | Shell | vtnair/bash_scripts | /Basic Linux Admin works/Delete_List_of_Users.sh | UTF-8 | 523 | 3.46875 | 3 | [] | no_license | #!/bin/bash
#This script to remove list of users from Local Linux Machine#
for i in `cat /tmp/userlist_to_remove`
do
grep -e "^$i" /etc/passwd >/dev/null
if [ $? -eq 0 ]
then
userdel -r $i
[ $? -eq 0 ] && echo "User $i has been removed from `uname -n` " || echo "F... | true |
9a309146c90fca71e92653a29bea994fe3ea5c8a | Shell | shmakovpn/.configs | /bash/findinhtml.sh | UTF-8 | 235 | 3.421875 | 3 | [] | no_license | #!/bin/bash
arg="$1"
do_file() {
while read fname; do
if grep -q "$arg" "$fname"; then
echo "$fname"
cat $fname | grep "$arg" | sed -re 's/^/ /' | grep "$arg"
fi
done
}
find . | grep -P '\.html$' | do_file
| true |
8d2162c852850b55ae5706cdccf3bbd26ec6033d | Shell | MDLlife/blog | /static/images/reduce.sh | UTF-8 | 303 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#sudo apt-get install imagemagick
count=0
quality=80
rm -rf $quality
mkdir $quality
for i in $(find . -type f -name '201*.*g' |sort); do
let counter++
if [[ "$counter" -gt 0 ]]; then
echo $i
convert -resize 600x400 -quality $quality $PWD/$i "$PWD/$quality/$i"
fi
done
| true |
44b6c322d2822fa9e5028c6f846b37ad2acb33bd | Shell | dblock/dotfiles | /scripts/setup.sh | UTF-8 | 895 | 3.40625 | 3 | [] | no_license | #!/bin/bash
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
echo "Setting up from $DOTFILES_DIR ..."
[[ ! -s "$HOME/.bash_aliases" ]] && ln -s "$DOTFILES_DIR/bash/.bash_aliases" "$HOME/.bash_aliases"
[[ ! -s "$HOME/.bash_profile" ]] && ln -s "$DOTFILES_DIR/bash/.bash_profile" "$HOME/.bash_profile"... | true |
8dad7ea0b18c5110f6e726b15808a0a587c3a8f1 | Shell | kobe6661/vagrant_mysql_drbd_pacemaker | /drbd-setup.sh | UTF-8 | 1,846 | 2.609375 | 3 | [] | no_license | node=$(hostname)
node=$(echo $node)
echo "$node is active."
if [[ $node = "grizzly2" ]]; then
sudo scp /vagrant/mysql.res /etc/drbd.d/mysql.res
echo "Disabling DRBD autostart"
sudo update-rc.d drbd disable
echo "Creating DRBD Metadata"
yes yes | sudo drbdadm create-md mysql
echo "Add DRBD to Kernel Modules"
sud... | true |
a6c138bcd1122b8221eb20d138bcd0dbe5afa541 | Shell | satish-zol/ApricityOS | /calamares/pkg/calamares/usr/lib/calamares/modules/hardwarecfg/mhwd.sh | UTF-8 | 1,347 | 3.546875 | 4 | [] | no_license | #!/bin/sh
kernel_cmdline ()
{
for param in $(/bin/cat /proc/cmdline); do
case "${param}" in
$1=*) echo "${param##*=}"; return 0 ;;
$1) return 0 ;;
*) continue ;;
esac
done
[ -n "${2}" ] && echo "${2}"
return 1
}
USENONFREE="$(kernel_cmdline nonfree no... | true |
29aac62a641abfdc2e6b95dd95d31d70faad17c8 | Shell | xican123/tianchi | /genJob.sh | UTF-8 | 2,296 | 2.671875 | 3 | [] | no_license | #!/bin/sh
for ver in 2
do
for mothod in 4
do
for cateNum in 3
do
for h618 in 2
do
for h9 in 0 1
do
sub=`echo _${ver}${mothod}${cateNum}${h618}${h9}`
echo $sub
rm sub${sub}.sh
... | true |
833ac568c1d64932f1788beba771fceceee1c382 | Shell | CustomROMs/android_vendor | /st-ericsson/validation/hardware/tat/tat/tatlrf/scripts/iqSampleRx2G.sh | UTF-8 | 476 | 3.28125 | 3 | [] | no_license | #! /bin/sh
if [ $# -ne 0 ]
then
echo "$0 RX2G IQ sample read: this command needs no parameter"
exit 1
fi
root=/mnt/9p/DTH/RF/Rx2G5/IQSample/Start
here=`pwd`
cd $root
cat value
echo "RF 2GRX IQ sample read"
echo "status: "`cat Status/value | dthfilter -r u16`
echo "freq: "`cat Freq/va... | true |
2452ad8e012c0ddde71bd97ae1adf3cde45ba785 | Shell | viper-hydrant/norm | /examples/data_send_recv/data_send_recv.sh | UTF-8 | 307 | 2.875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
MODE=${1:-"s"}
if [ ${MODE} = "-s" ]; then
printf "Running sender ...\n"
./data_send_recv -s -d 3 -saddr 127.0.0.1 -snodeid 6 -sport 10025 -count 100 -size 5000000
else
printf "Running receiver ...\n"
./data_send_recv -r -d 3 -raddr 127.0.0.1 -rnodeid 7 -rport 10025
fi | true |
bb622a85a29a4b016ab0c025e54842886c479ef3 | Shell | lost1227/Server-Files | /nginx/get-certs.sh | UTF-8 | 1,340 | 3.0625 | 3 | [] | no_license | #!/bin/bash
set -e -x
SCRIPT_DIR=$(dirname $(realpath $0))
cd ${SCRIPT_DIR}
runas='sudo -u #296608 -g #296608'
if [ ! -d "${SCRIPT_DIR}/data/certbot/conf" ]; then
${runas} mkdir -p ${SCRIPT_DIR}/data/certbot/conf
fi
if [ ! -e "${SCRIPT_DIR}/data/certbot/conf/options-ssl-nginx-conf" ] || [ ! -e "${SCRIPT_DIR}/da... | true |
0a04abccd7f205d8e6412e695fcc869b1ca09482 | Shell | Code360In/uclapi | /backend/uclapi/workspaces/night_cache.sh | UTF-8 | 431 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo -n "Full Redis cache of OccupEye data at: "
date
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
export ORACLE_HOME=/opt/oracle/instantclient_12_2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME
pushd /web/uclapi/backend/uclapi
. venv/bin/activate
./manage.py ... | true |
a8c8c2ea177c4e1e5eb30a21bff91f9057a4b06f | Shell | duanecawthron/rails_examples | /023_will_paginate/002_new_app.sh | UTF-8 | 909 | 2.53125 | 3 | [] | no_license | #!/bin/bash
source 000_config.sh
# ---------------- rails new app
cd $TOP/tmp
rm -rf myapp
rails new myapp
# ---------------- replace Gemfile
cd $TOP/tmp/myapp
mv Gemfile Gemfile.orig
cp ../../src/Gemfile .
# ---------------- http://guides.rubyonrails.org/getting_started.html
cd $TOP/tmp/myapp
rails generate ... | true |
1bfd9bcd9517f40ad739a5b577936965f587d44a | Shell | HuayraLinux/theftdeterrent6 | /guardian/usr/local/theftdeterrentclient/guardian/service_start | UTF-8 | 322 | 2.75 | 3 | [] | no_license | #! /bin/sh
export curdir="/usr/local/theftdeterrentclient/guardian"
export predir=""
. ${curdir}/${predir}funcdefine
fn_define
export td_log_file=service.log
. ${curdir}/${predir}funcutil
. ${curdir}/${predir}funcguardian
fn_syscreatelogdir
echo "Start guardian..." >> ${td_log_dir}/${td_log_file}
fn_guardiansta... | true |
253242845e2330288d467e477f95837f355dd3e6 | Shell | robinguill/Diaballik_FSWebApp_INSA | /4INFO-oopProject-etd/diaballik-bundle/bundleD2.sh | UTF-8 | 783 | 2.765625 | 3 | [] | no_license | #!/bin/sh
name1="Robin-GUILL"
name2="Ronan-BEBIN"
release="D2"-$name1-$name2
# cleaning the release files
rm -r $release 2> /dev/null
mkdir $release
# compiling and testing the back-end
cd ../diaballik-backend
mvn clean package
cd ..
zip -r diaballik-bundle/$release/diaballik-D2-$name1-$name2-sources.zip diaballik-do... | true |
3fc053493e33bf028fb2104daf8f8482108aec25 | Shell | admariner/madewithwagtail | /vagrant/postgres.sh | UTF-8 | 1,035 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Let us connect to the database from the localhost without credentials
su - vagrant -c "echo -n 'Changing postgres authorisation method ... ' && \
sudo sed -i 's/local\s\{1,\}all\s\{1,\}postgres\s\{1,\}peer/local all postgres trust/g' \
/etc/postgresql/9.3/ma... | true |
bb28255c7d6b12fc277ba403f2ba21135c0482a3 | Shell | ramziabbyad1/learning | /bash/first_script.sh | UTF-8 | 1,162 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#
# Flush disks if nobody on computer
#
#
# Ramzi Abbyad
# CVS: $Header$
shopt -s -o nounset
#Global Declarations
declare -rx SCRIPT=${0##*/}
declare -rx who="/usr/bin/who"
declare -rx sync="/bin/sync"
declare -rx wc="/usr/bin/wc"
echo $SCRIPT
echo $who
echo $sync
echo $wc
#The template for a usual s... | true |
0cc0bcc9a8326c76038b956a9147af3251978e02 | Shell | chikurin66/Preprocess | /sepCorpus.sh | UTF-8 | 723 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# コーパスをtraining, dev, devtest, testに分ける
CORPUS_DIR=/home/takebayashi/src/corpus/news-commentary-v11
CORPUS=$CORPUS_DIR/news-commentary-v11.de-en
DEV_FILE=$CORPUS_DIR/dev.news-v11.de-en
DEVTEST_FILE=$CORPUS_DIR/devtest.news-v11.de-en
TEST_FILE=$CORPUS_DIR/test.news-v11.de-en
TRAIN_FILE=$CORPUS_DIR/train.n... | true |
8eb7762a9a89e00f888781ae9c0b5a51f403dc2d | Shell | bmwiedemann/openSUSE | /packages/s/storeBackup/storeBackup-run-all | UTF-8 | 372 | 3.640625 | 4 | [] | no_license | #! /bin/sh -e
# run storeBackup on all files in /etc/storebackup.d/ sequentially
PATH=/bin:/sbin:/usr/bin:/usr/sbin
error=0
configs=$(find /etc/storebackup.d/ -type f \( ! -iname "*~" ! -iname "*.swp" ! -iname "*.udf" \))
for file in $configs
do
if ! nice storeBackup -f "$file"
then
echo Error running back... | true |
365ed0ff08cad71ce5cc657c3609f64788a6ada8 | Shell | crazybirdy/MBR-Manual-Method | /Q7-Update-installScript/installScript_1014update | UTF-8 | 40,369 | 4.03125 | 4 | [] | no_license | #!/bin/sh
printf '\033[8;60;165t'
clear
LocalScriptVer="v1.0.4"
RemoteScriptVer=""
RemoteScriptPath="https://raw.githubusercontent.com/crazybirdy/MBR-Manual-Method/master/Q7-Update-installScript"
LocateScriptPath="$HOME/MBR-Manual-Method/Q7-Update-installScript"
ScriptName="installScript_1014update"
FileNameArray=(
... | true |
36fc0d1ef977772f22571c67131afae850add493 | Shell | smilingsorav/bpms-dv-travel-agency-integration-demo | /init.sh | UTF-8 | 8,540 | 3.34375 | 3 | [] | no_license | #!/bin/sh
DEMO="JBoss BPM Suite & DV Travel Agency Integration Demo"
AUTHORS="Niraj Patel, Shepherd Chengeta, Van Halbert,"
AUTHORS2="Andrew Block, Eric D. Schabell"
PROJECT="git@github.com:jbossdemocentral/bpms-dv-travel-agency-integration-demo.git"
PRODUCT="JBoss BPM Suite"
JBOSS_HOME=./target/jboss-eap-7.0
SERVER_D... | true |
153c4295a9db43352bc1ede7b5143161b03121c6 | Shell | anderoav/skript | /praks4/yl3 | UTF-8 | 469 | 2.875 | 3 | [] | no_license | #!/bin/bash
#
# Ülesanne3
#
echo -n "Sisesta reisijate kogus: " #sisestad reisijate koguse
read reisijad #loeb mis oli vastus
echo -n "Kui palju on bussis istekohti?: " #sisestad istekohtade arvu
read kohad #loeb mis oli vastus
kokku=`expr $kohad - $reisijad` #arvutab palju maha jäi
taidetud=`expr $reisijad / $kohad` #... | true |
2de398b0baf6c0261483d5a25da039bd7c957365 | Shell | rqtx/Dotfiles | /bin/local/git_diff_wrapper | UTF-8 | 78 | 2.625 | 3 | [
"WTFPL"
] | permissive | #!/bin/sh
if [ "$2" = "/dev/null" ]; then
nvim $1
else
nvim -d "$1" "$2"
fi
| true |
387675b611ed5772a7aa7a6692e02d1f921211d4 | Shell | mstrandgren/boilerplate | /bin/boilerplate | UTF-8 | 5,891 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
BOILERPLATE_REPO="git@github.com:mstrandgren/boilerplate.git"
RED='\033[0;31m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
NC='\033[0m'
create_project() {
check_environment || exit 1
working_dir=$(pwd -P)
project_dir="$working_dir/$project_name"
printf "Setting up project ${CYAN}${project_name}${NC} in $... | true |
81ac5cef8abcd19551baf09a5d08a97ad905293e | Shell | Dzenik/armStrap | /lib/armbian.sh | UTF-8 | 28,041 | 3.84375 | 4 | [
"BSD-2-Clause"
] | permissive | # Usage installQEMU <ARMSTRAP_ROOT>
function installQEMU {
if [ ! -f "${1}/usr/bin/qemu-arm-static" ]; then
printStatus "installQEMU" "Installing QEMU Arm Emulator in `basename ${1}`."
cp -v "/usr/bin/qemu-arm-static" "${1}/usr/bin" >> ${ARMSTRAP_LOG_FILE} 2>&1
fi
}
# Usage removeQEMU <ARMSTRAP_ROOT> <ARCH... | true |
e8c911100c2e797dc7f88f172f359f06462a6a56 | Shell | enishant/localhost-dev-php7 | /virtualhosts/wordpressexample.com.sh | UTF-8 | 3,382 | 2.5625 | 3 | [
"MIT"
] | permissive | DOMAIN_NAME="wordpressexample.com"
DATABASE="wordpressexample"
DB_USER="root"
DB_PASS="root"
echo "-- Creating virtual host $DOMAIN_NAME --"
mkdir /vagrant/www/$DOMAIN_NAME
sudo ln -fs /vagrant/www/$DOMAIN_NAME/ /var/www/$DOMAIN_NAME
cat << EOF | sudo tee -a /etc/apache2/sites-available/default.conf
<VirtualHost *:80>... | true |
d238b47a8014cd5400461a4381714a4c2f6d0ce8 | Shell | kamigerami/packer_nomad | /scripts/ansible.sh | UTF-8 | 279 | 3.40625 | 3 | [] | no_license | #!/bin/bash
set -ex
logger() {
DT=$(date '+%Y/%m/%d %H:%M:%S')
echo "$DT ansible.sh: $1"
}
logger "Executing"
logger "Add ansible repository"
apt-add-repository ppa:ansible/ansible
logger "Install Ansible"
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y ansible=$1 | true |
72f7850dfb800e88911e67c2240e942a00430dd6 | Shell | jackrain/spbootdocker | /acs/bin/check | UTF-8 | 303 | 3.421875 | 3 | [] | no_license | #!/bin/sh
if [ -z $APP_NAME ];then
echo "not exists APP_NAME=bootapp"
APP_NAME=bootapp
else
echo "APP_NAME = $APP_NAME"
fi
tpid=`ps -ef|grep java|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then
echo "$APP_NAME is running."
else
echo "$APP_NAME is NOT running."
fi
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.