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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
21b4a931a2542c6f4ab647809627c559dd0ec63f | Shell | mustafaiman/epfl-dbs-assignment3 | /test_submission.sh | UTF-8 | 222 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
GASPAR="iman"
SUBMISSION_DIR="submission/$GASPAR/exercise3"
javac $SUBMISSION_DIR/task1/*.java
if [ $? -ne 0 ]
then
exit 1
fi
javac $SUBMISSION_DIR/task2/*.java
if [ $? -ne 0 ]
then
exit 1
fi
| true |
1ce90ec838900ddc4937a5700fdb501d59f4a4f8 | Shell | ineat/ocelot | /docker/entrypoint.sh | UTF-8 | 289 | 2.8125 | 3 | [] | no_license | #!/bin/sh
if [ "$CONFIG_HTTP_URL" == "" ]
then
echo "CONFIG_HTTP_URL is empty"
else
dockerize -wait "$CONFIG_HTTP_URL"
sleep 60
java -javaagent:"inspectit-ocelot-agent-0.4.jar" -Dinspectit.config.http.attributes.service=$1 -Dinspectit.config.http.url="$CONFIG_HTTP_URL" -jar $2
fi
| true |
9c041e92e370e746975099e1da9d5d4e0877d278 | Shell | nictrix/perfect-mon | /perfect-mon.sh | UTF-8 | 1,350 | 3.625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# https://goo.gl/mdc2k7
function cpu_percent_used {
printf %.0f $(echo "100 - $(mpstat | grep -Po 'all.* \K[^ ]+$')" | bc)
}
# https://goo.gl/NMLeIb
function mem_percent_used {
printf %.0f $(free | grep Mem | awk '{print $3/$2 * 100}')
}
# https://goo.gl/iihlP4
function disk_percent_used {
... | true |
9acc2f126010284ff9d36fc7dcfad96e642e0eb9 | Shell | tyz1030/SLAMBotCtr | /touch.sh | UTF-8 | 149 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# echo "This is a shell script"
find . -exec touch {} \;
echo "I am touching all files"
# SOMEVAR='text stuff'
# echo "$SOMEVAR"
| true |
710eb134f4f2d0ca71102bdb93130e78272fefd1 | Shell | a-h/vagrant-playground | /mysql.sh | UTF-8 | 637 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
# Create repo file.
echo "[mariadb]" > /etc/yum.repos.d/MariaDB.repo
echo "name = MariaDB" >> /etc/yum.repos.d/MariaDB.repo
echo "baseurl = http://yum.mariadb.org/10.0/centos6-amd64" >> /etc/yum.repos.d/MariaDB.repo
echo "gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB" >> /etc/yum.repos.d/Maria... | true |
a850af0241c804486df924f3044a1ec3831f53b7 | Shell | JeffersonLab/QwAnalysis | /Extensions/Regression/QwBeamModulation/scripts/bash/bmod_jsub.bash | UTF-8 | 2,342 | 3.4375 | 3 | [] | no_license | #!/bin/bash -u
#
# User should set final copy directory to personal directory
#
umask 002
USER=`whoami`
if [ -n "$2" ]; then
export QWANALYSIS=${2}
else
export QWANALYSIS=/u/home/jhoskins/QwAnalysis/
fi
echo "using $QWANALYSIS for analyzer directory."
cd $QWANALYSIS
. $QWANALYSIS/SetupFiles/SET_ME_UP.bash
... | true |
5983eb87ee022b63c1f590fd13119fb387bc3e3e | Shell | ling32945/linux-configuration | /server-setup.sh | UTF-8 | 4,770 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#
# Description: Auto config you server script
#
# Copyright (C) 2017 Jae Liu <jae.liu11@gmail.com>
#
OSVersion=("Ubuntu" "Debian" "CentOS");
curUser=`who am i | awk '{print $1}'`
echo "Info: Current User: "$curUser
if [ `whoami` != "root" ]; then
echo "Error: This script must run with Administrat... | true |
583a4443f94741650d69b78f7cf2260130924ad8 | Shell | giancastro/ddpt | /{{cookiecutter.django_project_name}}/deployment/django/django-healthcheck.sh | UTF-8 | 636 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Local and production health checks.
# https://docs.docker.com/compose/compose-file/#healthcheck
set -o errexit
set -o pipefail
# Just checking if our homepage is 200
# So, if you plan to never have a view for /, just change
# localhost:5000/ to some available endpoint, otherwise the health check will fai... | true |
9e4ab9b8e8341cc9ca4bda9aeba225af1282e190 | Shell | pedrochons/evaluacionUD | /start_vm.sh | UTF-8 | 439 | 2.9375 | 3 | [] | no_license | #!/bin/bash
echo "Nombre del disco "
read name_img
echo "Tamano del disco(G)? "
read size_img
echo "Nombre de la maquina virtual? "
read name_vm
echo "Tamano de RAM(INCLUYE M o G)? "
read ram_vm
echo "Path del ISO (INCLUYE '.iso') "
read path_iso
qemu-img create -f qcow2 ~/images/$name_img.img "$size_img"G
qemu-syste... | true |
064f50cb4bcfbc921786e6ebd6044b337de20991 | Shell | luzidchris/rtems-testing | /gcc/testsuite/ada/acats/rtems_acats_status | UTF-8 | 799 | 3.984375 | 4 | [] | no_license | #! /bin/sh
#
# Report ACATS status summary
#
if [ $# -ne 2 -a $# -ne 3 ] ; then
echo Usage $0: CPU BSP [seconds]
exit 1
fi
vfile=`dirname $0`/../../../../VERSIONS
if [ ! -r ${vfile} ] ; then
echo VERSIONS file not found
exit 1
fi
source ${vfile}
CPU=$1
BSP=$2
if [ $# -eq 3 ] ; then
seconds=$3
else
seco... | true |
8d04056eacab1b6e5f7a38fd20b0d051415b5211 | Shell | latifkabir/Computation_using_C | /heated_plate_openmp/heated_plate_local_gcc.sh | UTF-8 | 598 | 2.90625 | 3 | [] | no_license | #!/bin/bash
#
# Compile the program with gcc
#
/usr/local/bin/gcc -fopenmp heated_plate_openmp.c -lm
#
mv a.out heated_plate
#
# Run with 1, 2, and 4 threads.
#
echo "Run with 1 thread."
export OMP_NUM_THREADS=1
./heated_plate > heated_plate_local_gcc_output.txt
#
echo "Run with 2 threads."
export OMP_NUM_THREADS=2
.... | true |
34898f0ffb7246b9a9e6a84b034e1c680218973d | Shell | KevinPatist/EOS-ShellScripting | /telBestandTypes | UTF-8 | 816 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
files=$(find $1 -maxdepth 1 -type f)
type1Count=0
type2Count=0
type3Count=0
type4Count=0
for file in $files; do
case $file in
*$2)
((type1Count+=1))
;;
*$3)
((type2Count+=1))
;;
*$4)
((type3Count+=1))
;;
*$5)
((type4Count+=1))
;;
*)
echo "Geef niet meer dan 4 bestandstypen mee"
... | true |
24736fc21ba36f65d3b583a0be64d6ffd7bc839a | Shell | b-saideepak/Cross-core-covert-channel | /C-Box/src/start.sh | UTF-8 | 1,023 | 2.578125 | 3 | [] | no_license | #!/bin/bash
MSR_TOOLS_PATH=/path
SRC_PATH=/path
# SRC_PATH is the path to the src folder
# Values for Sandy Bridge architecture
MSR_UNC_PERF_GLOBAL_CTRL="0x391"
MSR_UNC_CBO_0_PERFEVTSEL0="0x700"
MSR_UNC_CBO_1_PERFEVTSEL0="0x710"
MSR_UNC_CBO_2_PERFEVTSEL0="0x720"
MSR_UNC_CBO_3_PERFEVTSEL0="0x730"
MSR_UNC_CBO_0_PERFCTR... | true |
4a695aefa987f6872814af7dce043af363fe00ce | Shell | stefanovualto/circleci-packages-bump | /info.sh | UTF-8 | 247 | 2.8125 | 3 | [] | no_license | #!/bin/bash
BUMPED_PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| awk -F '.' '{ print $1,$2,$3+1 }' \
| sed 's/^ //' \
| sed 's/ /./g')
echo "${PACKAGE_VERSION}" | true |
2a81d3d8e0c03e5f75d60f60e7520ea123464129 | Shell | SStauden/adversarial-squad | /generate_add_sent2.sh | UTF-8 | 566 | 2.53125 | 3 | [
"MIT"
] | permissive | # CREATES ADVERSARIAL SAMPLES FOR SQUAD DEV
mkdir out
# Precompute nearby words in word vector space; takes roughly 1 hour
python src/py/find_squad_nearby_words.py \
glove/glove.6B.100d.txt \
-n 100 \
-f data/squad/dev-v1.1.json > out/nearby_n100_glove_6B_100d.json
# Run CoreNLP on the SQuAD traini... | true |
1b645e7284051d5a0dfea033a191b8bb3bde08d3 | Shell | smartpcr/auth-benchmark | /deploy/scripts/setup-devbox.sh | UTF-8 | 3,969 | 2.875 | 3 | [] | no_license | #!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes
sudo apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
openssl \
apt-utils \
apt-transport-https \
git \
iputils-ping \
... | true |
7b446c47d89b3125bcfbd364e0fe4c8f88719b52 | Shell | ivancho/riverboard | /uninstall | UTF-8 | 217 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# Remove the self-update cronjob and the local repo
cd $( dirname "${BASH_SOURCE[0]}" )
INSTALL="$( pwd )"
DEPLOY="${INSTALL}/deploy"
(crontab -l | grep -v "$DEPLOY" | crontab -)
cd ..
rm -rf $INSTALL
| true |
008b16772373e06a92b34fff7d70cfbc07c014b2 | Shell | yinghai9989/OpenStackDeploy | /DeployScripts/run-post-install-script.sh | UTF-8 | 2,392 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
CMD_PATH=.
DST_PATH=./conf_orig
CONF_DEPLOY_DIR=./conf_deploy
RUN_DATE=$1
MY_LOCALE=$($CMD_PATH/get-conf-data.sh ./locale.txt LOCALE)
if [ $MY_LOCALE = 'CN' ]; then
source ./locale_cn.txt
else
source ./locale_en.txt
fi
#If use ceph
PREFIX_STORAGE=$($CMD_PATH/get-max-prefix.sh $DST_PATH Storage.t... | true |
088999fe74e8a19e5b79c62eed9df140ad4c0b59 | Shell | blade2005/gameserver_admin | /check-newest-build | UTF-8 | 1,828 | 3.75 | 4 | [] | no_license | #!/bin/bash
gameid=$1
gamename=$2
function usage {
echo "Usage $0 <gameid> <gamename>"
exit 1
}
test -n "$gameid" || usage
test -n "$gamename" || usage
filecount=$(find ~/gameservers/$gamename -name "appmanifest_${gameid}.acf" | wc -l)
files=$(find ~/gameservers/$gamename -name "appmanifest_${gameid}.acf")
... | true |
bdc2667f0f275f57f078f929abbf7519e9848d8d | Shell | h1994st/Athena | /oh-my-zsh.sh | UTF-8 | 1,096 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# init
: ${SYSTEM:=`uname -s`}
if [ "$SYSTEM"x = "Linux"x ] ; then
# Check zsh
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
echo 'Install zsh ...'
sudo apt-get install zsh
fi
unset CHECK_ZSH_INSTALLED
fi
if [ ! -n "$ZSH... | true |
16001478940d497cde6fb3ca0996e35050e4a8ff | Shell | h01ger/piuparts | /custom-scripts/scripts/pre_remove_50_find_bad_permissions | UTF-8 | 2,043 | 3.265625 | 3 | [] | no_license | #!/bin/sh
set -e
case "$PIUPARTS_DISTRIBUTION" in
lenny)
case ${PIUPARTS_OBJECTS%%=*} in
linpopup)
# package removed after lenny
for file in /var/lib/linpopup/messages.dat
do
test ! -f "$file" || chmod -c o-w "$file"
done
;;
esac
;;
esac
case "$PIUPARTS_DISTRIBUTION" in
lenny|squeeze*)
ca... | true |
a2c471cb0a2b93131ddd095e38897a3880e6d5c0 | Shell | JXia7/linux-shell | /3_Flow_Control_Loops_and_Documentation/test.sh | UTF-8 | 1,788 | 4.53125 | 5 | [] | no_license | #!/bin/bash
# Juanjuan Xia #
# Test for existence of a file
if [ -f "hwtest" ]; then
echo "the file name is: " hwtest
fi
# Check if a particular directory exists.ls
if [ -d "DIRECTORY" ]; then
echo "the directory exists."
else
mkdir DIRECTORY
fi
# Use if/elif statement to test input from the user
echo -n "Tas... | true |
08c07f70ee591814db70d0b9b40f55f1005c7219 | Shell | ozercimilli/petclinic-microservices | /jenkins/build-and-deploy-petclinic-on-qa-env-manually.sh | UTF-8 | 961 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | PATH="$PATH:/usr/local/bin"
APP_NAME="petclinic"
APP_REPO_NAME="muratcw-repo/petclinic-app-qa"
APP_STACK_NAME="Murat1-petclinic-App-QA-1"
CFN_KEYPAIR="murat-petclinic-qa.key"
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
AWS_REGION="us-east-1"
ECR_REGISTRY="${AWS_ACCOUNT_ID}.dkr.ecr... | true |
b4c2b7d6624c1f8942e6e4c1dc11280002663991 | Shell | agowa/html-inliner | /inline.sh | UTF-8 | 1,506 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Call tidy for sanitizing
cp main/index.html main/index.ea742abd-3300-47dc-ae64-3157acdc917f.html
tidy --doctype html5 -asxhtml -indent --show-warnings no main/index.ea742abd-3300-47dc-ae64-3157acdc917f.html > main/index.html || if [ $? -ne 1 ]; then exit 100; fi
rm -f main/index.ea742abd-3300-47dc-ae64-315... | true |
3e4db180a10dc69b925646ac6671ff349954c14b | Shell | swizzley/vagrant-kibi | /provision.sh | UTF-8 | 2,981 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
case "$1" in
reinstall)
case "$2" in
lite)
KIBI="kibi-4-4-2-linux-x64-demo-lite-zip"
;;
full)
KIBI="kibi-4-4-2-linux-x64-demo-full-zip"
;;
*)
echo "Must specify kibi to res... | true |
3c656ce6de0a9f1c1f208c1a9d9f18a285834709 | Shell | xfantasy/dotfiles | /zshrc | UTF-8 | 2,096 | 2.734375 | 3 | [] | no_license | # 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.
export ZSH_THEME="wedisagree"
# Set to this to use case-sensitive completion
# CASE_SE... | true |
00c09a1e95d6fea7e26eb33e17bdc43e2be66a29 | Shell | RabadanLab/melamed_comorbidity | /code/setup_cancer_data.sh | UTF-8 | 1,216 | 3.171875 | 3 | [] | no_license | #!/bin/bash
firehose=analyses__2013_09_23/*/20130923 ## CHANGE THIS LINE FOR DIFFERENT FIREHOSE DOWNLOAD
cancer_links=data_source/cancer_alterations
mkdir $cancer_links
cn_suffix=CopyNumber_Gistic2.Level_4.*
del_table=table_del.conf_99.txt
amp_table=table_amp.conf_99.txt
cn_genes=all_data_by_genes.txt
cn_thres=all_thre... | true |
1d8445e13bdf493e9ed4f66a3c7909aa40449a61 | Shell | sarry007/coat | /autocomplete/sqlmap.completion.bash | UTF-8 | 6,505 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ---------------------------------------------------------------------------+
# |
# Thanks to Alexander Korznikov |
# http://www.korznikov.com/2014/12/bash-tab-complet... | true |
eee005a44b0f385c3f3b5a2e05805d7b66c5696d | Shell | shodi/PI-V | /ffmpeg_verify.sh | UTF-8 | 109 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [$(command -v ffmpeg) == ''];then
sudo apt-get update
sudo apt-get install ffmpeg -y
fi
| true |
3c8ecfa33593809098f215e3841ebd73ff0f6d6e | Shell | stevenhoneyman/buildstuff | /buildstuff.sh | UTF-8 | 35,565 | 3.765625 | 4 | [] | no_license | #!/bin/bash -e
#
# buildstuff.sh - Compile musl libc, then busybox & some libs
# 2014-10-02 Steven Honeyman <stevenhoneyman at gmail com>
#
##
if [ $UID -eq 0 ]; then
echo "Don't run this as root; are you crazy?!"
exit 64
fi
## destination prefix for musl libc
export _pfx=/musl
## destination for compiles using glib... | true |
6628801e2279825bd9f568c9f4599eb1ccf277eb | Shell | freeioe/freeioe | /openwrt/init.d/skynet | UTF-8 | 889 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/sh /etc/rc.common
# Copyright (C) 2017-2023 kooiot.com
USE_PROCD=1
START=96
STOP=1
BASE_DIR=/usr/ioe
SKYNET_DIR=$BASE_DIR/skynet
FREEIOE_DIR=$SKYNET_DIR/ioe
PM_BIN=process-monitor
SKYNET_BIN=$SKYNET_DIR/skynet
STARTUP_SH=$FREEIOE_DIR/startup.sh
if [ -f /etc/os-release ]
then
source /etc/os-release
VERSION... | true |
dfb28b8c7765862d6d26706190faed913223d688 | Shell | romuald-r/livebox | /Livebox 2/sagem/normal/usr/lib/wwan/connect.sh | UTF-8 | 753 | 3.140625 | 3 | [] | no_license | #!/bin/sh
WWAN_PID_FILE="/var/run/ppp-wwan.pid"
logger -t wwan "connect.sh called with ACTION=$ACTION"
if [ ! -e /var/run/wwan_connect.pid ] ; then
echo $$ > /var/run/wwan_connect.pid
case $ACTION in
add)
[ -e $WWAN_PID_FILE ] && kill `head -n 1 $WWAN_PID_FILE`
[ -e /var/lib/nemo/wwan/options.3g ] && p... | true |
ff0c9b1eb7c034170ff7949906ec6d951a62df1e | Shell | wNakiami/env_init | /bootstrap.sh | UTF-8 | 504 | 3.234375 | 3 | [] | no_license | #! /usr/bin/env bash
#set -x
set -e
ENV=$HOME/.env_init
if [ ! -d $ENV ]
then
git clone https://github.com/wNakiami/env_init.git $ENV
fi
cd $ENV
bash update.sh
bash git.sh
INIT=$HOME/.local/etc/init.sh
if [ -f "$HOME/.bashrc" ]
then
echo "source $INIT" >> $HOME/.bashrc
echo "umask 023" >> $HOME/.bashrc... | true |
3a73bc77e0ab73f1eb11d2d33aabaa7fc9a9d5fb | Shell | pk-codebox-evo/android-apps-BioWiki | /tools/release-checks.sh | UTF-8 | 1,424 | 3.65625 | 4 | [] | no_license | #!/bin/sh
function checkDeviceToTest() {
lines=$(adb devices -l|wc -l)
if [ $lines -le 2 ]; then
echo You need a device connected or an emulator running
exit 2
fi
}
function runConnectedTests() {
echo Tests will be run on following devices:
adb devices -l
echo -----------
./gradlew cIT
}
function pOk() {
... | true |
d2b2464643b5abd66cfd8588bb3141605e090648 | Shell | phil-nye/HMP_2015 | /Odroid_Scripts/list_cpus.sh | UTF-8 | 2,125 | 3.84375 | 4 | [] | no_license | #!/bin/bash
# Text Styles
norm="\e[0m" # default bash text settings
bold="\e[38;5;227m\e[1m" # bold and hex (color) code #227
numcores=$(cat /proc/cpuinfo | grep processor) # command to get cpu information
#echo -n "String: ${numcores}"
cores=(${numcores}) # put cpu information into a list
#echo -e "Length: ${#c... | true |
f5bdac030a76ff055581a8be589b279e9488cdae | Shell | aldrich/typinggenius | /Resources/Textorize/for-blocks/genfont.sh | UTF-8 | 546 | 3.6875 | 4 | [] | no_license | #!/bin/bash
FONT_PARAM="-f\"Avenir Next Regular\""
SIZE_PARAM="-s128"
OTHER_PARAMS="-cwhite -gtransparent -a2"
STRING="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
generate()
{
CHAR=$1
FILE=$2
command="textorize $SIZE_PARAM $OTHER_PARAMS $FONT_PARAM $CHAR -o\"./out/$FILE.png\""
echo 'executing command:' $command
eval $co... | true |
fde4b4a2f5a83cb6c676f82978fa0177737a6635 | Shell | OnyxAI/onyx-installer | /make_host_win.sh | UTF-8 | 1,716 | 3.609375 | 4 | [] | no_license | # Run make win from MSYS
#!/bin/bash
echo Building host installer for Windows via MSYS
QT_VER="4.8.6"
QT_PATH="/c/MinGW/qt/qt-everywhere-opensource-src-4.8.6/bin"
SDK_PATH="/c/Program Files/Microsoft SDKs/Windows/v7.1/Bin"
RAR_PATH="/c/Program Files/WinRAR/"
MINGW_PATH="/c/MinGW/bin"
echo -e "Updating PATH"
PATH="${PAT... | true |
f034961b9580e7cd95c70dbcb9a3d9601876a97d | Shell | dyanakiev/MinecraftUbuntuFastServer | /FastMCServer-java-and-screen.sh | UTF-8 | 885 | 3.3125 | 3 | [] | no_license | #/bin/sh
echo "---------------------------------------"
echo "Добре дошли в инсталатора FastMCServer java8 и screen, инсталатора е за Ubuntu 14.04-16.04!!!"
echo "Инсталатора инсталира java и screen"
echo "Видео урок:"
echo "---------------------------------------"
echo " "
while true; do
read -p "Желаете ли да зап... | true |
87e4c590aa73bac6c2e93c88409e3cf09d1dac05 | Shell | quirkasaurus/xterm-256 | /pouncy | UTF-8 | 6,718 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#----------------------------------------------------------------------#
# FILE: pouncy #
# AUTHOR: Douglas Roberts -- droberts #
# CREATED: Thu Nov 5 20:25:21 EST 2020 #
# PURPOSE: new p... | true |
81d87dc545a94ffb9d8dcce424cc255c390eccf4 | Shell | beeender/openmediavault-remotedesktop | /usr/share/openmediavault/mkconf/remotedesktop | UTF-8 | 1,913 | 2.8125 | 3 | [] | no_license | #!/bin/sh
#
# @author Volker Theile <volker.theile@openmediavault.org>
# @author OpenMediaVault Plugin Developers <plugins@omv-extras.org>
# @copyright Copyright (c) 2009-2013 Volker Theile
# @copyright Copyright (c) 2015-2016 OpenMediaVault Plugin Developers
#
# This program is free software: you can redistribut... | true |
ca2b4be04bee481b15ece7fd7be8223060bef984 | Shell | jensp/Arch-Linux-on-i586 | /extra/fam/fam | UTF-8 | 901 | 3.640625 | 4 | [] | no_license | #!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/famd`
case "$1" in
start)
#Check for running portmap, start when not running
ck_daemon rpcbind && /etc/rc.d/rpcbind start
stat_busy "Starting File Alteration Monitor"
if [ ! -f /var/run/daemons/rpcbind ]; then
stat_... | true |
952c8c43ea43fb435be2f27a81740921ff01a5b5 | Shell | OrpingtonClose/daily | /bash/kubernetes_exercises_3.sh | UTF-8 | 4,344 | 2.578125 | 3 | [] | no_license | gcloud auth login
gcloud config set project $(gcloud projects list | awk '/avid/ {print $1}')
gcloud config set compute/zone europe-west1
gcloud container clusters create kubia --num-nodes 5 --machine-type f1-micro
#possible probes:
#tcp
#http
#exec - don't use with Java
cat <<EOF | kubectl create -f -
apiVersion: v1... | true |
576459e7607e7190949c687b14c20e052528c28e | Shell | hebr3/wasm_game_of_life | /.devcontainer/postCreateCommand.sh | UTF-8 | 448 | 2.75 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | echo "Installing Cargo Requirements"
cargo install cargo-generate
echo "Installing wasm-pack"
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
echo "Installing node-14"
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
echo "Build the wasm-pack"
wa... | true |
d5b85b5e5a75301f52b7ba33884aa147f1f80da6 | Shell | solosTec/cyng | /build_src_archive.sh | UTF-8 | 851 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh
outputPath="outdir"
if [ ! -z ${1} ]; then
outputPath="outdir"
fi
# Tools directory for utility scripts relative to the current directory
export TOOLS_DIR="tools"
echo "[INFO] >>smf<< Creating project source archives for buildsystem integration"
export REV=$(${TOOLS_DIR}/get_branch_rev.sh)
echo "[INFO] R... | true |
77b86cca13f0a3010f19f7b0e89c99a8bf355ae7 | Shell | xinwendewen/adb-workshop | /adb-functions.sh | UTF-8 | 471 | 3.625 | 4 | [] | no_license | #!/bin/bash
#
#
current_package() {
adb shell dumpsys activity recents | grep -w "Recent #0" | cut -d '=' -f 2 | cut -d ' ' -f 1
}
pull() {
adb pull "$1"
}
clear_dir() {
adb shell rm -rf "$1/*"
}
remotable_adb() {
set -u
local cmd=$1
set +u
if [[ -n ${HOST} && -n ${PORT} ]];
then
... | true |
f46e3cbce268f3159c62c46ef10a606961d45e88 | Shell | nulogy/branj | /branj | UTF-8 | 5,102 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
BRANJ_CONFIG_DIR="${HOME}/.config/branj"
BRANJ_CONFIG_FILEPATH="${BRANJ_CONFIG_DIR}/.jiratoken"
print_usage_doc() {
cat <<USAGE_DOC
Usage: `basename ${0}`[-m] [-s BRANCH_SUFFIX] JIRA_TICKET_NUMBER [BASE_BRANCH]
Automatically generates a branch name given a JIRA ticket number.
Command line opti... | true |
c06433b3596ce85e1bec8e57c6e4e9e5892c4bf9 | Shell | pseudoPixels/SciWorCS | /app_collaborative_sci_workflow/External_Libraries/NiCad-4.0/scripts/Rename | UTF-8 | 3,402 | 3.78125 | 4 | [
"LicenseRef-scancode-txl-10.5",
"MIT"
] | permissive | #!/bin/bash
# Generic NiCad renaming script
#
# Usage: Rename granularity language pcfile.xml renaming
# where granularity is one of: { functions blocks ... }
# and language is one of: { c java cs py ... }
# and pcfile.xml is an edtracted potential clones file
# an... | true |
822ba85f7d3ce9150366850e0494945eb18b00fc | Shell | korostelevm/ExpressLambda | /deploy.sh | UTF-8 | 1,684 | 3.3125 | 3 | [] | no_license | #! /usr/bin/env bash
set -e
version=$(git rev-parse HEAD | cut -c1-8)
version=xxxxxxx
app_name=${PWD##*/}
bucket=$1
echo "
Deploying -
bucket: ${bucket}
version: ${version}
app_name: ${app_name}
"
# echo -n "you down with that? (y/n)? "
# read answer
# if [ "$answer" != "${answer#[Yy]}" ] ;then
# ... | true |
ad908e1372611d60c95d9a91b79c0228a93dfc5f | Shell | nvm-sh/nvm | /test/installation_node/install hook | UTF-8 | 1,404 | 3.8125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
die () { echo "$@" ; exit 1; }
. ../../nvm.sh
VERSION='v0.11.0'
VERSION_PATH="$(nvm_version_path "${VERSION}")"
succeed() {
nvm_echo "$@"
NVM_INSTALL_THIRD_PARTY_HOOK= nvm install "${VERSION}"
}
fail() {
succeed "$@"
return 11
}
! nvm_is_version_installed "${VERSION}" || nvm uninstall "${VERSION... | true |
491c0e943ecbdcf1f6005590081cfb056be475b2 | Shell | bryanrossUK/dotfiles | /dot_config/bin/executable_hidefiles | UTF-8 | 173 | 2.546875 | 3 | [] | no_license | #!/bin/bash
# Show/hide hidden files in the Finder
function hidefiles()
{
defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder
}
hidefiles
| true |
9b06b55d0b45e78a3d1370350daac71c694050b4 | Shell | staswiner/bash_scripts | /Logger/logger | UTF-8 | 1,011 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Logger levels, set global variable LOGGER_LEVEL={0,1,2,3}
# Silent 0
# Info, Error 1
# Warn 2
# Debug 3
logger.base() {
LOGGER_LEVEL=`./getLoggerLevel`
logger.setDefaultLevel $LOGGER_LEVEL
function_logger_level=$1; shift;
if [[ $LOGGER_LEVEL -lt $function_logger_level ]]
then
return 1
fi
colo... | true |
aaed17aa4be20d2dc1ce39f96048f38938b46ecf | Shell | 1nam/List-of-bash-files | /terminal-curser-position.sh | UTF-8 | 287 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# 1nam Testing tput cup terminal curser postion.
clear
tput cup 10 5 # setting postion tput cup x, y
read -p 'Enter Name: ' raw
if [[ $raw -eq $raw ]]
then
clear && echo "Good Evening $raw." && tput cup 0 20 # setting postion tput cup x, y
sleep 2
clear
fi
| true |
f108090b0dabc471e85bbe992760783a741e24c3 | Shell | paulojeronimo/dotfiles | /.scripts/docker/docker-termux | UTF-8 | 1,310 | 4.34375 | 4 | [] | no_license | #!/usr/bin/env bash
#
# Base for this script: https://github.com/termux/termux-docker/blob/master/run.sh
set -eou pipefail
docker_log=$(mktemp)
default_container_name=${0##*/}
ok() { echo ok; }
fail() { echo fail!; cat $docker_log; }
f=.${0##*/}
if ! [ -f $f ]
then
container_name=${f#\.}
else
source "$PWD/$f"
fi
... | true |
02ab8769b897cdbf0abc402eaae9840d8e177de8 | Shell | gsisson/bin | /aws-keys-to-creds-file.sh | UTF-8 | 1,841 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
pbpaste | grep -i AWS_SESSION_TOKEN >/dev/null
if [ $? != 0 ] ; then
if [[ "$1" =~ [0-9]* ]]; then
echo $1 has digits
:
else
echo "clipboard doesn't appear to contain credentials!"
exit 1
fi
fi
if [ "$AWS_REGION" = "" ]; then
echo "AWS_REGION is not set in the environment!"... | true |
a86b74f9946fe4bfae9247a5ed77d24d462e40eb | Shell | coltonjgerber/bin-ghamton | /auto/auto_bader_crontab.sh | UTF-8 | 1,631 | 3.671875 | 4 | [] | no_license | #!/bin/bash
set -e
source rerunVASP_functions.sh
if ! [ $# -eq 0 ]; then
# Options must be included separately, e.g. -c -v, and NOT -cv
while :; do
case $1 in
(-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
;;
(--) # End of all options.
shift
break
;;
(-?*)
printf 'WARN: Unkno... | true |
eb2fc427196e76711b95d6d77f0a301e3cede4e7 | Shell | qyouurcs/ncut | /image_quantization/scolorq/rename_prefix.sh | UTF-8 | 132 | 3.296875 | 3 | [] | no_license | #!/usr/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $0 <dst_dir>"
exit
fi
for a in `ls $1`
do
mv $1/$a $1/o_${a}
done
| true |
c826b8a8feb38e5dd489d21eb4e8a30ef5a2e0a2 | Shell | karlbates/dotfiles | /bashrc | UTF-8 | 10,114 | 3.34375 | 3 | [] | no_license | # ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# Se... | true |
1dff211b5e7a719bc6ec998684df1574b493e316 | Shell | gmaclennan/dotfiles | /functions.zsh | UTF-8 | 3,620 | 3.671875 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | # Force SD card to be re-mounted
function mountsd() {
sudo kextunload -b com.apple.driver.AppleSDXC;
sudo kextload -b com.apple.driver.AppleSDXC;
}
# Open Android avd in emulator
function avd() {
cd ~/Library/Android/sdk/emulator
emulator -avd $(emulator -list-avds | head -n 1)
}
# weather forecast
weather() { cu... | true |
4196de2ee4693ed318489b3550eadc0d2767b34f | Shell | excaliburQc/L4T-Megascript | /scripts/games_and_emulators/SRB2Kart.sh | UTF-8 | 1,934 | 3.046875 | 3 | [] | no_license | #!/bin/bash
cd ~
clear -x
echo "SRB2 Kart script started!"
echo "Downloading the files, and installing needed dependencies..."
sleep 2
sudo rm -r /usr/share/SRB2Kart
cd ~/.srb2kart
#rm kartconfig.cfg
cd /usr/share/applications
sudo rm "SRB2 Kart.desktop"
cd
sudo apt install wget curl libsdl2-dev libsdl2-mixer-dev cm... | true |
ff714c6994ec481243c33e42fc8b39af11f86d4b | Shell | Niranjan-Ananth/Operating-Systems-Lab | /UNIX/prog1.sh | UTF-8 | 144 | 3.3125 | 3 | [] | no_license | #!/bin/sh
if [ $# -gt 0 ]
then
while [ $# -gt 0 ]
do
rev="$1 $rev"
shift
done
echo "$rev"
else
echo "Invalid number of arguments"
fi
| true |
b0a2e541e40125f9a9f85c8a921594b7d7bf6f34 | Shell | bdonne/ACIT3900_ISSP | /Kiosk_config/kiosk_setup_1.sh | UTF-8 | 2,330 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Config current Ubuntu into a Kiosk System
# Author: Jun.C
# download all necessary files from git
sudo wget https://raw.githubusercontent.com/bdonne/ACIT3900_ISSP/master/Kiosk_config/custom.conf
sudo wget https://raw.githubusercontent.com/bdonne/ACIT3900_ISSP/master/Kiosk_config/firefoxKiosk.sh
sudo wget... | true |
8dfb06188de6de0523bd69d442b02f5b2e98626a | Shell | billy-mosse/jconsume | /java-project/bin/tools/instrumentationJPF.sh | UTF-8 | 604 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# Descripcion:
# ------------
#
# Este script permite instrumentar el codigo para luego ser ejecutado y obtener metricas sobre el consumo asumiendo un esquema por scopes.
# PARAMETROS:
#
# 1: Nombre de la clase que queremos procesar. Ejemplo: ar.uba.dc.simple.EjemploSimple
# 2: Configuracion a utilizar ... | true |
622e5563955d9b09e009d913e16bb23bd77302d3 | Shell | kpensec/zsh-config | /.zshrc | UTF-8 | 2,506 | 3.234375 | 3 | [] | no_license | # Additional user paths
user_paths=(
"${HOME}/.local/usr/bin"
"${HOME}/.local/bin"
"${HOME}/.cargo/bin"
"${HOME}/.yarn/bin"
)
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Node Version Manager base directory.
export NVM_DIR="$HOME/.nvm"
# Additional sourced file
sourced_file=(
"${ZS... | true |
b80c155391bced88ac2b93976f23c7ffa8bbb19b | Shell | Zocalo-ICT/modsecurity-docker | /build.sh | UTF-8 | 1,119 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Prerequisites:
# - Set DOCKER_USER environment variable: export DOCKER_USER='[MY_USER_NAME]'
# - Make sure buildx builder has been set to active before running this
# docker buildx use [MY_BUILDER_NAME]
# - Log in to dockerhub with docker login -u "$DOCKER_USER"
export VERSION=$(./version.sh v3-ngi... | true |
783aadec86b22f4b39f21b9af5a32d6b368df54e | Shell | ViktorNova/tornado-skeleton | /tests/test_readfile_func.sh | UTF-8 | 644 | 3.59375 | 4 | [] | no_license | #!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function readTmplFile {
# echo $1
if [ -f "$2" ];
then
# use the local copy
# echo "Use local file: $1"
# echo $("$1")
echo ""
echo "printing string"
cat $2 > temp_test/webapp.py
else
echo $1
# fail over t... | true |
1cefd6b2b7a546305779641bd160df74eecc1325 | Shell | photon-platform/.photon | /.config/sxiv/exec/key-handler | UTF-8 | 1,440 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# Example for $XDG_CONFIG_HOME/sxiv/exec/key-handler
# Called by sxiv(1) after the external prefix key (C-x by default) is pressed.
# The next key combo is passed as its first argument. Passed via stdin are the
# images to act upon, one path per line: all marked images, if in thumbnail
# mode and at least on... | true |
4ad11f997b20d08fa4bbc51d71c92950ebf785b4 | Shell | BelfodilAimene/semanticWebProject4IFGuide | /dbpediaSPARQL.sh | UTF-8 | 321 | 2.796875 | 3 | [] | no_license | #!/bin/bash
: ${SPARQL_QUERY_PATH?"Please precise SPARQL_QUERY file path by adding SPARQL_QUERY=your_sparql_query_path"}
OUTPUT_FORMAT=${OUTPUT_FORMAT:-json}
curl -H "Accept: application/$OUTPUT_FORMAT" -g --data-urlencode query@$SPARQL_QUERY_PATH http://dbpedia.org/sparql 2>/dev/null |\
jq '.["results"]["bindings"]'... | true |
55533fcd187f70837d544876f6940e5dddd96815 | Shell | ilyapirogovs/csmc-horizon | /setup-env.sh | UTF-8 | 594 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e -o xtrace
VERSION=$MINECRAFT_VERSION-$FORGE_VERSION-$MINECRAFT_VERSION
FORGE_INSTALLER=forge-$VERSION-installer.jar
FORGE_UNIVERSAL=forge-$VERSION-universal.jar
echo eula=true > eula.txt
if [[ ! -f ./server.properties ]]; then
echo level-type=$PROPERTY_LEVEL_TYPE > server.properties
f... | true |
ae7781e648a62a99e8cffe70cd173a3bc6c3b24b | Shell | sychiao/CountingCoin | /test.sh | UTF-8 | 522 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env bash
exe=orgin/CountingCoin_CU_LLVM
total=.total
bd=.breakdown
out=out.csv
count=5
set -x
echo "Hello User please enter the title name of the data"
read title
echo $title >> $out
echo "Overhead,Erode,Dilate,Canny,Hough,cleanup,Total" >> $out
while [ $count -gt 0 ];
do
count=$(($count-1))
/usr/bin/tim... | true |
daca1656a1514c510ee97f1a257b265036f23b75 | Shell | Echo199801/nCovMemory | /archive/convertPngToJpg.bash | UTF-8 | 271 | 3.375 | 3 | [] | no_license | for file in png/*
do
if [ ! -d jpg ];then
mkdir jpg
fi
id=`echo "$file" | cut -c 5- | cut -d'.' -f1`
if [ -f "jpg/$id.jpg" ];then
echo "$file.jpg already exist, skip!"
else
echo Converting $file ...
gm convert -compress BZip "$file" "jpg/$id.jpg"
fi
done | true |
af6c7ed45b84b7d836b7bdfb12cf43317a863f63 | Shell | nandub/RemoteMaster | /km/setup.sh | UTF-8 | 3,969 | 4.15625 | 4 | [] | no_license | #!/bin/sh
#
# Script to create .desktop files for RMIR and RM in their installation directory. This script must itself be
# in the installation directory to identify correctly the resources to which it links.
#
# For more information on .desktop files, see for example
# https://xpressrazor.wordpress.com/2013/07/07/play... | true |
015d3489500e2be47c2f42f587c672589a487ce7 | Shell | VladlenaSkubi-du/DevOps_42school | /inception-of-things/p1/scripts/prepare_master_vm.sh | UTF-8 | 1,119 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Arguments: [K3S_SERVER_IP]
echo "[INFO] Update packages on $1"
sudo yum update -y
ifconfig=$(which ifconfig)
if [ -z "$ifconfig" ]
then
echo "[INFO] Install net-tools on $1"
sudo yum install net-tools -y # download ifconfig
fi
k3s=$(which k3s)
if [ -z "$k3s" ]
then
echo "[INFO] Install k3s... | true |
9b327c08c5c8f09e96493995038307023e42f5dc | Shell | Jorgeromeu/dotfiles | /.aliases.sh | UTF-8 | 979 | 2.671875 | 3 | [
"MIT"
] | permissive | alias sudo='sudo '
# python...
alias ipy='ipython'
alias pypy='pypy3'
alias py='python'
alias py39='python3.9'
alias ipy39='ipython3.9'
alias py36='python3.6'
alias ipy36='ipython3.6'
# shorteneed commands
alias v='nvim'
alias g='git'
alias pm='pacman'
alias spm='sudo pacman'
alias ytdl='youtube-dl'
alias cl='clear'
... | true |
cd530a1eea21369b34a2e217277ec71a638eba35 | Shell | liusongsir/shell | /fun.sh | UTF-8 | 591 | 3.578125 | 4 | [] | no_license | #!/bin/bash
echo "本节演示函数的使用"
echo "首先定义一个加函数"
fun(){
echo "请输入第一个数"
read a
echo "请输入第二个数"
read b
return $(($a + $b))
}
fun
echo "两个数求和得:$?"
echo "函数中输出参数"
funP(){
echo "第一个参数$1"
echo "第二个参数$2"
echo "第十个参数${10}" #从第10个参数开始,需要使用{}才能获取到参数
echo "第十一个参数${11}"
echo "总参数个数为:$#"
echo "全部参数:$*"
echo "... | true |
892963a0c8e6354b822c5fbf45e3de85cb6bf122 | Shell | tolmalev/SPM | /install | UTF-8 | 14,224 | 3.515625 | 4 | [] | no_license | #!/bin/bash
#
# if this is a request for the latim_pp module,
# do nothing and switch to latim_pp/install
#
[[ $1 == latim ]] && {
shift 1
(cd latim_pp && ./install $*) || {
echo "Load of latim_pp module failed."
exit -1
}
exit
}
echo "
*
* spm - An Open Source package for digita... | true |
9218034d5b59253f0c76dd4ebcadc29bd1d195c1 | Shell | gkouassi/hello-world | /install-bw6.sh | UTF-8 | 6,163 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#set -x
#-----------------------------------------
# Installation script BW 5 & 6(.x) for Linux/AIX
# Author : GERARD KOUASSI
#-----------------------------------------
#-----------------------------------------------------
# failInstall
#-----------------------------------------------------
failInstall... | true |
f062f6e21269ff5fc64e410432fa6a3ec110ea33 | Shell | ebo/netcdf-c | /nc_perf/run_knmi_bm.sh | UTF-8 | 602 | 3.890625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# This shell gets some files from the netCDF ftp site for testing,
# then runs the tst_knmi benchmarking program.
# Ed Hartnett
# Load common values for netCDF shell script tests.
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
# Get files if needed.
echo ""
file_list="MSGCPP_CWP_NC3.nc ... | true |
f9b2a64caeba582ffb2a6d0d9fba9db9f409ff09 | Shell | jtallar/game-of-life | /rule-multianalysis.sh | UTF-8 | 1,427 | 3.5625 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 4 ]; then
echo "Illegal number of parameters."
echo "Run with ./rule-multianalysis.sh rule_num fill_start fill_step repetitions"
exit 1
fi
case $1 in
1)
RULE="=.2.|.=.3/=.3"; DIM=2; MOORE=1;;
2)
RULE=">.8.&.<.11/>.0.&.<.5"; DIM=2; MOORE=2;;
3)
RULE="<.3/=.3"; DI... | true |
1429ff0fde923b09e147ada32cc63a4260858217 | Shell | Hsuing/shelll_script | /shell/judge.sh | UTF-8 | 436 | 3.46875 | 3 | [] | no_license | is_int() { #? Check if value(s) is integer
local param
for param; do
if [[ ! $param =~ ^[\-]?[0-9]+$ ]]; then return 1; fi
done
}
is_float() { #? Check if value(s) is floating point
local param
for param; do
if [[ ! $param =~ ^[\-]?[0-9]*[,.][0-9]+$ ]]; then return 1; fi
done
}
is_hex() { #? Check if value(... | true |
343cf40e42a836722bb8d26075788cf900daa1d2 | Shell | Interlisp/maiko | /bin/machinetype | UTF-8 | 916 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#########################################################################
# #
# M A C H I N E T Y P E #
# #
# Compute the hardware architecture we're running on. #
# #
# (C) Copyright 2001 Venue. All Rights Reserved #
# #
###########################... | true |
795f66e0fb559d1460240658704d5d674ed0c50c | Shell | mrlesmithjr/dotfiles | /setup.sh | UTF-8 | 6,982 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -x
# Check for install type to ensure proper setup
if [ -f "$HOME/.minimal-install" ]; then
INSTALL_TYPE="minimal"
else
INSTALL_TYPE="full"
fi
if [[ $(uname) == "Linux" ]]; then
# Arch
if [ -f /etc/arch-release ]; then
codename="$(awk </etc/arch-release '{print $1}')"
if [[ $codename ==... | true |
dced91f8ea6e60d729183377f5220b9ddf4ece34 | Shell | takd/remotepi-init2 | /boot/run-once.sh | UTF-8 | 3,453 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
## Usage: This script will run once after systemd brings up the network and
# then get moved into /boot/run-once.d/completed which will be created for
# you. This script is in this project to serve as an demo of how you might use
# it. There are several distinct tasks in commented blocks. The recomm... | true |
b6e4afd6c156893107d1b45ca4ea591376ef755c | Shell | mathieurodic/cpptrading | /run | UTF-8 | 759 | 3.375 | 3 | [] | no_license | #!/bin/bash
DEBUG=false
# COMPILER="g++ --short-enums -std=c++17"
COMPILER="clang++-5.0 -std=c++17"
INPUT_PATH="$1"
OUTPUT_PATH="bin/${INPUT_PATH}"
OUTPUT_PATH="${OUTPUT_PATH%.*}"
OUTPUT_DIR="$(dirname "${OUTPUT_PATH}")"
if [ "${DEBUG}" = true ] ; then
EXECUTION_PRECOMMAND="valgrind"
else
EXECUTION_PRECOMMAND... | true |
a91215c7ab459a1438af4fea0a6584c6ddc3d692 | Shell | ccFiona/data-analyse | /5.104 xiaofei/getExpmLics.sh | UTF-8 | 738 | 2.734375 | 3 | [] | no_license | ############################################################################
##
## Copyright (c) 2013 hunantv.com, Inc. All Rights Reserved
## $Id: getExpmOpenStat.sh,v 0.0 2016年05月26日 星期四 10时50分10秒 <tangye> Exp $
##
############################################################################
#
###
# # @file getE... | true |
6f972aad293e437461b7c53541a554a259371da1 | Shell | crowbar/crowbar-core | /chef/cookbooks/provisioner/templates/suse/crowbar_register.erb | UTF-8 | 13,389 | 3.5625 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #! /bin/bash -e
# vim: sw=4 et
#
# Copyright 2013, SUSE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | true |
ec3bc6c2c16073e290849cd5838cfeeb2e2409a1 | Shell | osfove2021asix2/asix2_fortea_oscar_m06uf2pr3 | /url.sh | UTF-8 | 354 | 3.78125 | 4 | [] | no_license | #!/bin/bash
function AÑADE(){
echo -n "URL: "
read URL
}
function COMPROBAR(){
curl --connect-timeout 5 $URL > /dev/null 2>&1
if [[ "$?" -eq 0 ]]; then
echo "CORRECTA"
else
echo "INCORRECTO"
exit 1;
fi
}
function NAVEGADOR(){
echo "Abriendo $URL en el navegador"
firefox $URL
}
function FUN(){
AÑ... | true |
3dc3ee23f2c1eb577e11ae9f050e4a7793558f6e | Shell | blueyed/dotfiles | /usr/bin/awesome-restart | UTF-8 | 1,239 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Restart awesome by signalling the session runner to restart it.
# This loads a new binary.
# The session runner is ./usr/bin/session-run-awesome.sh.
awesome_pid=
for p in $(pgrep -x awesome); do
if grep -q "^DISPLAY=$DISPLAY$" "/proc/$p/environ"; then
echo "Found pid $p for DISPLAY=$DISPLAY."
if... | true |
332a9bff8acff60a9154bbe8663b67005e24407b | Shell | zlzlife/config | /zsh/.zsh/git.zsh | UTF-8 | 1,875 | 3.328125 | 3 | [] | no_license |
# git 命令相关的函数
_current_branch() {
# git symbolic-ref --short -q HEAD
br=$(git branch | grep "*")
echo ${br/* /}
}
# git提交信息
_gac() {
commit_info=$1
if [ -z ${commit_info} ]
then
commit_info=$(date "+%Y-%m-%d %H:%M:%S")
fi
git add .
git commit -m ${commit_info... | true |
61c53f85803b801b528a887a4b681f6abfc74df9 | Shell | adityalstkp/docker-playground | /frontend/scripts/run.sh | UTF-8 | 695 | 3.359375 | 3 | [] | no_license | #!/bin/bash
(/scripts/wait-for-it.sh -t 15 consul.play.local:8500)
WAIT_STATUS=$?
if [ "$WAIT_STATUS" -ne 0 ]; then
echo "Failed waiting consul ready"
exit "$WAIT_STATUS"
fi
NAME="play-frontend"
PORT=3001
# add service json consul agent
mkdir -p /etc/consul/consul.d/
/scripts/consul.service.node.template.sh $N... | true |
5e58f53354296caee6031308b36f47acf2d77aba | Shell | serifyesil/PMOD | /sssp.sh | UTF-8 | 2,202 | 2.984375 | 3 | [] | no_license |
# GALOIS_HOME=
# SOC_DATA=./datasets
# ROAD_DATA=./datasets
THREADS=( 1 5 10 20 30 40 )
NUM_TRY=5
LOG_DIR=sssp-logs
mkdir $LOG_DIR
for t in "${THREADS[@]}"
do
count=0
while [ $count -lt $NUM_TRY ]
do
wl=obim
$GALOIS_HOME/sssp/sssp -t $t -wl $wl -delta 0 -startNode 12 $SOC_DATA/tw... | true |
102d642cb83956bd927244da53015b0f5d5e3e97 | Shell | JUrban/BliStr | /setupdirs.sh | UTF-8 | 800 | 2.765625 | 3 | [] | no_license | #!/bin/bash
# run as ./setupdirs.sh /home/mptp/big/blistr2
if [ -z "$1" ]; then echo "install dir required"; exit 1; fi
distrdir=`pwd`
mkdir $1; mkdir $1/bin
tar xzf trainingproblems.tar.gz -C$1
tar xzf initialresults.tar.gz -C$1
cp -a BliStr.pl $1/bin/BliStr.pl
cp -a prmils/params2str.pl $1/bin/params2str.pl
cd $1 ... | true |
bdf7887aa0e78921b743cc4b7be3973032932c4b | Shell | PMc84/vncBlanking | /vncBlanking.sh | UTF-8 | 2,234 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# Declare variables
export DISPLAY=:0
VNCACTIVE="no"
VNCPORT=":5900"
SLEEP="3"
ADMINIP="192.168.99.50 192.168.99.54"
BRIGHTNESS=1
CONNECTEDDISPLAYS=$(xrandr | grep " connected" | cut -f1 -d " ")
VNCCONNECTED=$(ss -H -t4 state established sport = $VNCPORT | grep -c $VNCPORT)
MOUSEID=$(xinput --list --long | ... | true |
807055dd2244ee8da5a3582f6e7db57dfe47fa2c | Shell | lukealbao/dotfiles | /shell/.bash_profile | UTF-8 | 250 | 2.53125 | 3 | [] | no_license | #! /usr/bin/env bash
# Load Aliases
[[ -f "$HOME/.aliases" ]] && source "$HOME/.aliases"
# Load Prompt
[[ -f "$HOME/.bash_prompt" ]] && source "$HOME/.bash_prompt"
# .bashrc has most everything
[[ -f "$HOME/.bashrc" ]] && source "$HOME/.bashrc"
| true |
61347daa5666b95033abdd58eea97655628296a3 | Shell | Network-verification/batfish | /projects/allinone/allinone | UTF-8 | 398 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
ALLINONE=${BASH_SOURCE[0]}
ALLINONE_PATH=$(dirname $ALLINONE)
ALLINONE_JAR=$ALLINONE_PATH/out/allinone.jar
ALLINONE_JAVA_ARGS=
if batfish_cygwin; then
ALLINONE_JAR="$(cygpath -w $ALLINONE_JAR)"
ALLINONE_JAVA_ARGS="-Djline.terminal=jline.UnixTerminal"
stty -icanon min 1 -echo
fi
java $ALLINONE_JAVA_... | true |
703135a2e9e5de65ff3340773749aa44a526bc99 | Shell | scylladb/scylla-monitoring | /start-datadog.sh | UTF-8 | 3,005 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if [ -f env.sh ]; then
. env.sh
fi
usage="$(basename "$0") [-h] [-A DD_API_KEY ][-p ip:port address of prometheus ] [-d configuration directory] [-e enviroment variable, multiple params are supported] [-D encapsulate docker param] -- Start a datadog agent inside a container"
while getopts ':hA... | true |
709e2bfb9c0aad171ee37dcd8408f750ee0d95fa | Shell | Cour-de-cassation/judilibre-ops | /scripts/check_install.sh | UTF-8 | 1,479 | 3.375 | 3 | [] | no_license | #!/bin/bash
export OS_TYPE=$(cat /etc/os-release | grep -E '^NAME=' | sed 's/^.*debian.*$/DEB/I;s/^.*ubuntu.*$/DEB/I;s/^.*fedora.*$/RPM/I;s/.*centos.*$/RPM/I;')
if ! (which envsubst > /dev/null 2>&1); then
if [ "${OS_TYPE}" = "DEB" ]; then
sudo apt-get install -yqq gettext;
fi;
... | true |
87bf5f7701d9bd8d749986fe2485da4f9ca8d85e | Shell | KebinuChiousu/ddns-powerdns | /stop.sh | UTF-8 | 137 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -e ddns.pid ]
then
echo "stopping: ddns..."
kill `cat ddns.pid`
rm ddns.pid
else
echo "ddns is not running."
fi
| true |
194a06898244c1b666c65638955697221ae1e83b | Shell | glxe/glxe.github.io | /commit.sh | UTF-8 | 261 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#如果是mac
git status
read -p "Press ctrl-c exit. Any key to continue! "
git pull
git add .
read -p "Please enter git commit message: " c
if [ " $c " ]; then
git commit -m " $c "
git push
echo go on ...
fi
#git push -u origin master -f | true |
eff1008675051901a62df6513d3ebd213bbb231b | Shell | valtaz/ansible-aws-squid | /templates/squid_monitor.sh | UTF-8 | 16,891 | 3.875 | 4 | [] | no_license | #!/bin/bash
#
# DESCRIPTION:
# ============
# NAT self-monitoring script for a simple HA hot fail-over NAT
# based on the AWS [HA NAT](https://aws.amazon.com/articles/2781451301784570)
# Should be run on each of the **two** NAT instances
#
# OUTPUT:
# =======
#
# REQUIREMENTS:
# =============
# AWS CLI versio... | true |
b05144e4a3a13ba2d7dcdb518b7ab2073eec469b | Shell | C-Coupler-Group/c-coupler-doc | /examples/demo_coupler/model_platform/config/cesm/cesm1_2_1/build.sh | UTF-8 | 2,257 | 3.171875 | 3 | [] | no_license | #!/bin/bash
function dump_Macros
{
cat > /tmp/makefile << EOF
include $2
all:
@echo "CPPDEFS += \${CPPDEFS}"
@echo
@echo "SLIBS += \${SLIBS}"
@echo
@echo "CFLAGS := \${CFLAGS}"
@echo
@echo "CXX_LDFLAGS := \${CXX_LDFLAGS}"
@echo
@echo "CXX_LINKER := \${CXX_LINKER}"
@echo
@echo "FC_AUTO_R8 := \${FC_AUTO_... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.