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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
298486583f66fdd0dae83160ad135e89469411c1 | Shell | haniokasai/docker-minecraft | /resources/run-PC-vanilla.sh | UTF-8 | 589 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "run vanilla...." >&1
sh /minecraft/resources/setPerm.sh
sh /minecraft/resources/blockUDP.sh
cd /minecraft/server
chmod 755 /minecraft/bin -R
chown root:root /minecraft/bin -R
echo "残念ながら、Java版の提供を停止します"
#echo "if you do not agree eura, please stop now...." >&1
#echo "eula=true" > eula.txt
#i=(`awk '... | true |
6dcce95be4f1ed5c1f7015e7ce3dc82ac22ccd63 | Shell | isabella232/k8s-kpi-scripts | /src/files/thirdparty/k8s-live-stats | UTF-8 | 1,849 | 2.9375 | 3 | [] | no_license | #!/bin/bash
set -ex
ITEMS=180
MAXITEMS=183
mkdir -p /var/tmp/logs/api/1
mkdir -p /var/tmp/logs/api/2
source ~/.nova
echo "Removing old log files"
swift list production-juju-ps45-cdo-jujucharms-machine-1.canonical.com | grep 201 | grep api.jujucharms.com.log | grep '\.anon\.gz$' | tail -n $MAXITEMS > /var/tmp/logs/... | true |
10d5fe4d0a5f95fea153456607bc0bc9692e5e2f | Shell | montxero/xero_configs | /.bash_profile | UTF-8 | 217 | 3.140625 | 3 | [] | no_license | # shellcheck source=/dev/null
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
if [ -f "$HOME/.bash_aliases" ]; then
. "$HOME/.bash_aliases"
fi
if [ -f "$HOME/.profile" ]; then
. "$HOME/.profile"
fi
| true |
4d1ad2489d1861276d1819bbbe9a705a8faa2613 | Shell | hochraldo/dotfiles | /home/.bash_profile | UTF-8 | 652 | 3.015625 | 3 | [] | no_license | if [ -e "${HOME}/.homesick/repos/homeshick/homeshick.sh" ] ; then
source "${HOME}/.homesick/repos/homeshick/homeshick.sh"
source "$HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash"
fi
if [ -e "${HOME}/.git-completion.bash" ] ; then
source "${HOME}/.git-completion.bash"
fi
if [ -e "${HOME}/.ba... | true |
de5f64c64db242bd6ec86e088ca79bba80dad899 | Shell | kamath/ANTsDoc | /Tex2/examplesandtests/testEx7.sh | UTF-8 | 139 | 3.15625 | 3 | [] | no_license | op=$1
# now run a test and store its success/failure
testresult=0
if [[ ${#op} -gt 2 ]] ; then
rm ${op}* # cleanup
fi
exit $testresult
| true |
79dff566d3f20d3e5dc2d81aa73fc283f142dba5 | Shell | JochenHayek/misc | /renaming_files_with_timestamps/PHOTO.rename.sh | UTF-8 | 329 | 2.875 | 3 | [] | no_license | :
# e.g.
#
# PHOTO-2020-03-22-15-24-43.jpg
shopt -s nullglob
set -x
~/bin/rename -v </dev/null \
\
's/^ (PHOTO)- (?<YYYY>....)-(?<mm>..)-(?<dd>..)-(?<HH>..)-(?<MM>..)-(?<SS>..) \.(?<suffix>jpeg|jpg|mp4)
$/999990-000--$+{YYYY}$+{mm}$+{dd}$+{HH}$+{MM}$+{SS}--___.$+{suffix}/x' \
\
"$@"... | true |
aaacc5a929e5b75d385e2e81bc63b538a38b0fb2 | Shell | b0ltn/PlexGuide.com-The-Awesome-Plex-Server | /scripts/menus/backup-restore/restore/restore.sh | UTF-8 | 2,389 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
clear
while [ 1 ]
do
CHOICE=$(
whiptail --title "Restore Menu" --menu "Make your choice" 19 25 12 \
"1 )" "CouchPotato" \
"2 )" "Deluge" \
"3 )" "Emby" \
"4 )" "Heimdall" \
"5 )" "HTPCManager" \
"6 )" "Jackett" \
"7 )" "Lidarr" \
"8 )" "Medusa" \
"9)" "Myler" \... | true |
bcce8e24d2c0b4823491a7ee8480cf62f7e49e6f | Shell | Anil1111/WebAPI | /pack.sh | UTF-8 | 298 | 2.703125 | 3 | [] | no_license | #!/bin/bash
FNAME="`date '+%Y%m%d_%H%M'`_WebAPI.tgz"
EX="--exclude=WebAPI/obj "
EX="${EX} --exclude=WebAPI/bin "
#EX="${EX} --exclude=WebAPI.Tests/bin "
#EX="${EX} --exclude=WebAPI.Tests/obj "
set -x
tar -czf $FNAME $EX .vs WebAPI WebAPI.sln pack.sh browsing.sh .gitignore .gitattributes
set +x
| true |
9a0bbf7f61898530919ba78fa730cbbd6fd07c00 | Shell | cloudwm/installer | /tweaks/enable-ssl-ubuntu20 | UTF-8 | 1,355 | 2.9375 | 3 | [] | no_license | #!/bin/bash
# Add this at the begining of all scripts.
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
systemctl stop apache2.service
execSpecial 3 '(fail|error)' certbot certonly -n --standalone --preferred-challenges http --agree... | true |
243ea8c161dfd8ef872c781ec982515612b8f00e | Shell | Diesmaster/smartchain-node-for-customers | /jobs.sh | UTF-8 | 19,157 | 3.046875 | 3 | [] | no_license | #!/bin/bash
rpcuser=$(env | grep IJUICE_KOMODO_NODE_USERNAME | cut -d '=' -f2-)
rpcpassword=$(env | grep IJUICE_KOMODO_NODE_PASSWORD | cut -d '=' -f2-)
rpcport=$(env | grep IJUICE_KOMODO_NODE_RPC_PORT | cut -d '=' -f2-)
komodo_node_ip=127.0.0.1
# TODO modulo 100 blocks
# echo "Using $komodo_node_ip:$rpcport with $... | true |
33d0cb662fc2a63ea4b106b206fb3377b29ef980 | Shell | nagyist/eivind88.master_code | /runAllPylearn2.sh | UTF-8 | 453 | 3.734375 | 4 | [] | permissive | #!/usr/bin/env bash
function message {
echo "This script takes one arg ("Converted"), which is the folder in which it can find other folder containing .names and .files -files it will upload to the server."
exit
}
if [[ !($1) ]]; then
message
fi
FOLDER=$(shopt -s extglob; echo "${1%%+(/)}")
cd $FOLDER
... | true |
f43b110888464823b47a26afb3ee22887427d8a0 | Shell | Smk1989/dark_multitool1.0 | /Cyanogenmod_scripts/import_libraries/import_deviceblobs | UTF-8 | 810 | 3.421875 | 3 | [] | no_license | #!/bin/bash
clear
echo "=============================================================================================="
echo "Please connect your phone via USB to your computer"
echo "Enter the correct name of device manufacturer(for eg. for nozomi i.e xperia s its sony(No caps)"
echo "=================================... | true |
1e2cbb78b8fe021d3449739a55604b0f88b0f5db | Shell | andereric/skriptimine | /praks6/yl3 | UTF-8 | 430 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#
# Skript, mis küsib kasutajalt OS-i eelistusi
osch=0
#Skript küsib kasutajalt andmeid
echo "1. Unix (Sun Os)"
echo "2. Linux (Red Hat)"
echo -n "Select your choice of OS (1 or 2)...: "
read osch
#Arvutused
if [ $osch -eq 1 ]; then
echo "You picked Unix (Sun OS)."
else
if [ $osch -eq 2 ]; then
echo... | true |
c9eea65eca2bd9e539f17ad71d91f28731be463b | Shell | Mikej81/terraform-azure-f5-scca | /.envVarsHelperExample.sh | UTF-8 | 698 | 2.71875 | 3 | [] | no_license | #!/bin/bash
## set vars
# azure
arm_resource_group=""
arm_client_id=""
arm_client_secret=""
arm_subscription_id=""
arm_tenant_id=""
# creds
# ssh_key_dir="$(echo $HOME)/.ssh"
# ssh_key_name="id_rsa"
ssh_key_dir=""
ssh_key_name=""
azure_ssh_key_name=""
azure_pub_key_name=""
# azure
export ARM_RESOURCE_GROUP=${arm_resour... | true |
6cd56177d4afb0a8e0a59b72fc6ed2d77824da1f | Shell | preethihiremath/Unix | /loop.sh | UTF-8 | 212 | 3.375 | 3 | [] | no_license | #!/bin/bash
while echo “enter your name: \n” ; do
read name
if [ `expr "$name" : '.*' ` -gt 10 ] ; then
echo “name too long”
else
echo “name=$name”
break
fi
done
| true |
6ebad379b7339403e1dc00725a3c0c9c55625493 | Shell | mygorillacodeteam/kali-core | /tests/lib/queries/test_is_dir_exist_not_true.sh | UTF-8 | 111 | 2.796875 | 3 | [
"MIT"
] | permissive | test_is_dir_exist_not_true() {
expect_true $LINENO $(is_dir "a_directory_that_does_not_exist" || echo true)
}
| true |
32a8186d6dde0acd0ee38d1e4419c10c0d69ec07 | Shell | elsid/CodeWizards | /release.sh | UTF-8 | 2,507 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -ex
VERSION=${1}
DIR=${PWD}/out/${VERSION}
ROOT=${PWD}
mkdir ${DIR}
cd cpp-cgdk
cp action.cpp ${DIR}
cp base_strategy.cpp ${DIR}
cp battle_mode.cpp ${DIR}
cp circle.cpp ${DIR}
cp graph.cpp ${DIR}
cp master_strategy.cpp ${DIR}
cp move_mode.cpp ${DIR}
cp move_to_node.cpp ${DIR}
cp move_to_pos... | true |
4d8658a060dbfcac47eef55a494df22c64a62295 | Shell | xskjs888/docker-web | /init.sh | UTF-8 | 355 | 3.296875 | 3 | [] | no_license | #!/bin/sh
SOURCE="$0"
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
cd $DIR
mkdir /data/www -p
mkdir /data/log/nginx -p
mkdir /data/mysql -p... | true |
4b1a94ca91de35ac883523bc50b1b693dd84508f | Shell | shiludeng/oh-my-zsh | /themes/azure.zsh-theme | UTF-8 | 11,271 | 3.296875 | 3 | [
"MIT"
] | permissive | #color{{{
autoload colors
colors
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
eval _$color='%{$terminfo[bold]$fg[${(L)color}]%}'
eval $color='%{$fg[${(L)color}]%}'
(( count = $count + 1 ))
done
FINISH="%{$terminfo[sgr0]%}"
#}}}
#命令提示符
#RPROMPT=$(echo "$RED%D %T$FINISH")
PROMPT=$(echo "$CYAN%n@... | true |
6dca047f52109a97b596c4edcda0b1b667a06e74 | Shell | CSCfi/hpc_biotools | /infoseq_summary.bash | UTF-8 | 1,877 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash -f
# A script to fetch sequences from a sequence file or database
# 21.1. 2011 KM
export LC_ALL=C
#setenv PLPLOT_LIB /v/linux26_x86_64/appl/molbio/emboss/6.5.7/share/EMBOSS
export PATH=/appl/molbio/emboss/6.5.7_gnu/bin:${PATH}
#setenv LD_LIBRARY_PATH /v/linux26_x86_64/appl/molbio/emboss/libharu/2.0.8/lib
o... | true |
d6e77d9b9c0353785d1202495a6d5a0f4f1444cc | Shell | lindblom/node-postgres-vagrant-saltstack | /salt/srv/salt/nodejs/install.sh | UTF-8 | 286 | 2.609375 | 3 | [] | no_license | #!/bin/bash
NODE_VERSION=v0.10.18
wget http://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.gz
tar -zxf node-$NODE_VERSION-linux-x64.tar.gz
cd node-$NODE_VERSION-linux-x64
cp -prf bin/* /usr/local/bin/
cp -prf lib/* /usr/local/lib/
cp -prf share/* /usr/local/share/ | true |
9bb21ab7fbbe3cecbd71b288ef14e9947db7bf1a | Shell | xdays/dockerfiles | /wireguard/scripts/run.sh | UTF-8 | 672 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# Install Wireguard. This has to be done dynamically since the kernel
# module depends on the host kernel version.
apt update
apt install -y linux-headers-$(uname -r)
apt install -y wireguard
# Find a Wireguard interface
interface=`find /etc/wireguard -name ${INTERFACE:-wg0}.conf`
if [[ -z $interf... | true |
78b7e09bfa6ba9b9d9f979c1718273b46c6e6dd0 | Shell | MarcosJRcwb/log2ram | /build-packages.sh | UTF-8 | 1,121 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Exit the script if any of the commands fail
set -e
set -u
set -o pipefail
# Set working directory to the location of this script
cd "$(dirname "${BASH_SOURCE[0]}")"
STARTDIR="$(pwd)"
DESTDIR="$STARTDIR/pkg"
OUTDIR="$STARTDIR/deb"
# Remove potential leftovers from a previous build
rm -rf "$DEST... | true |
0e55ef17e1b525ff8503752c8aeee1f3e4cedd6e | Shell | chrisi51/snapper | /snapper | UTF-8 | 6,297 | 3.40625 | 3 | [] | no_license | #!/bin/bash
source /etc/backup.conf
if test -f $CMD_DUPLICITY;
then
if [ ! -d ${BACKUPPATH}images ];
then
echo "have to create the backup path: ${BACKUPPATH}images";
mkdir ${BACKUPPATH}images;
fi
echo "" > ${TEMPLOGDATEI}
OIFS=$IFS
unset $EXCLUDE_GREP;
while getopts ':l:' OPTION ; do
case "$OPTION"... | true |
9786f8038ce835fe687abfb7b90160accaf40bbe | Shell | mobomo/MobomoU | /bin/composer | UTF-8 | 437 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bash
readonly PROGDIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd)"
readonly PROJECTDIR="$(dirname "$PROGDIR")"
readonly ARGS="$@"
docker run \
--rm \
-t \
-v $(pwd)/composer.json:/app/composer.json \
-v $(pwd)/composer.lock:/app/composer.lock \
-v $(pwd)/web:/app/web \
-v $(p... | true |
bdf1ca5fbe6350b00687dec9b302df899cc84228 | Shell | trueman1990/VistaModels | /ARM/linux_qt_a9/sw/script/build_sdcard.sh | UTF-8 | 614 | 2.9375 | 3 | [] | no_license | #!/bin/bash
SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SW_ROOT="$(dirname "$SCRIPT")"
source $SW_ROOT/setup.sh
cd $SW_ROOT/sdcard
export SYSROOT=$SW_ROOT/sdcard/sysroot
mkdir -p $SYSROOT/lib/modules/$VER_LINUX
cp `find $SW_ROOT/kernel_modules -name "*.ko" -print` $SYSROOT/lib/modules/$VER_LINUX
sed... | true |
05aaa35fbba9bf8e9f0d5b384d16a490342e015d | Shell | everpeace/docker-kafka | /start-kafka.sh | UTF-8 | 2,578 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Optional ENV variables:
# * ADVERTISED_LISTENERS: the listner address to be advertized to clients for the container, e.g. "PLAINTEXT://`docker-machine ip \`docker-machine active\``:9092"
# * ZK_CONNECT: the zookeeper.connect value, e.g "zk1:2181,zk2:2181,zk3:2181/kafka"
# * LOG_RETENTION_HOURS: the minimum... | true |
6ead8cdb1019e81dad86c2402b101a1228cf77c6 | Shell | RobertAudi/.dotfiles | /zsh/.config/zsh/plugins/spectrum/bin/spectrum.pacman | UTF-8 | 4,911 | 2.71875 | 3 | [
"WTFPL"
] | permissive | #!/usr/bin/env zsh
local esc="$(echo -en '\e')"
local blackf="${esc}[30m"; local redf="${esc}[31m"; local greenf="${esc}[32m"
local yellowf="${esc}[33m"; local bluef="${esc}[34m"; local purplef="${esc}[35m"
local cyanf="${esc}[36m"; local whitef="${esc}[37m"
local blackb="${esc}[40m"; local redb="${esc... | true |
58208cdf9249465c0186e2b31c8bd2276a8b9795 | Shell | nuagenetworks/nuage-metroae-config | /metroae-config | UTF-8 | 2,329 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
cd $(dirname $0)
TEMPLATE_TAR_LOCATION="https://metroae-config-templates.s3.amazonaws.com/metroae_config.tar"
VSD_SPECIFICATIONS_LOCATION="https://vsd-api-specifications.s3.us-east-2.amazonaws.com/specifications.tar"
SPEC_FOLDER=./vsd-api-specifications
TEMPLATE_FOLDER=./lev... | true |
68ba44ca7b0e22d0384c8173accc370d371209f9 | Shell | AviSoomirtee/sysAdmin | /trash/backup_script_auto/auto_inventaire.sh | UTF-8 | 8,937 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#############################################################################################
###### This is an automated script made for correcting errors for Unix Inventory. #####
###### The list of servers DNS and name should be placed in host.txt #####
###### Logs will be created with output of errors... | true |
af508e2aa44f84e4c39e447803da2dba199d37f2 | Shell | HumanNeuroscienceLab/facemem | /10_preproc/02_timing_global.bash | UTF-8 | 2,005 | 3.875 | 4 | [] | no_license | #!/usr/bin/env bash
# Convert allruns local timing (per run) to global
# useful for the concatenated files
###
# Basic Paths
###
basedir="/mnt/nfs/psych/faceMemoryMRI"
timingdir="${basedir}/scripts/timing"
datadir="${basedir}/data/nifti"
subjects=$( cd ${datadir}; ls -d * )
runtypes=( Questions NoQuestions )
short_... | true |
3a97e0850bce685a61abefeee5eeaa66276766b7 | Shell | rrfuentes/histo-recom | /computeRECOM.sh | UTF-8 | 12,155 | 3.28125 | 3 | [] | no_license | #!/usr/bin/bash
#-----------------------------Output files-----------------------------
#SBATCH --output=output_%A.%a.txt
#SBATCH --error=error_%A.%a.txt
#-----------------------------Required resources-----------------------
#SBATCH --time=0-200:00:00
#SBATCH --array=1-12
#SBATCH --cpus-per-task=2 #10
#SBATCH --mem=5... | true |
2256fcd71fc43d5c377a15a7829068ce444d3516 | Shell | route4me/route4me-curl | /Linux/Optimizations/Hybrid Data Optimization/reoptimization.sh | UTF-8 | 373 | 2.5625 | 3 | [] | no_license | #!/bin/bash
url=https://api.route4me.com/api.v4/optimization_problem.php
apikey=11111111111111111111111111111111
optprobid=C86B7F391E6A08187FEA0D623B48DA32
# The example refers to the process of reoptimization an existing optimization.
curl -o file1.txt -g -X PUT -k "$url?api_key=$apikey&optimization_problem_id=$op... | true |
23268360344399928b0f95885b4e003a509e6db8 | Shell | PrachitiP/Shell-Script-Problems | /IfElseProblems/monthday.sh | UTF-8 | 301 | 3.65625 | 4 | [] | no_license | #!/bin/bash -x
#take date and month as input
echo "Enter month and date:"
read x
x=`date -d"${x}" +%m%d`
y="Mar 20"
y=`date -d"${y}" +%m%d`
z="June 20"
z=`date -d"${z}" +%m%d`
#Check if date in between March20 and June 20
if [[ ($x -gt $y && $z -gt $x) ]]
then
echo "True"
else
echo "False"
fi
| true |
b213c26973d5ac4a2c871b30f9930944a43ae9bb | Shell | sebt3/diaspora-pi | /docker/build.sh | UTF-8 | 1,774 | 3.40625 | 3 | [] | no_license | #!/bin/bash
sep() {
local c=$(( ( 80 - $(echo "%s" "$*"|wc -c) )/2 ));
local s=$(awk -v m=$c 'BEGIN{for(c=0;c<m;c++) printf "=";}');
echo "$s $* $s";
}
set -e
useradd -m diaspora
sep Install build dependencies
apt-get update
apt-get install -y git build-essential cmake libssl-dev libcurl4-openssl-dev libxml2-dev l... | true |
0b89d7de447824e546c8672312d8fd19f2a3c41d | Shell | flahertylab/rvd | /HCC1187_data_rvd2.sh | UTF-8 | 699 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo '----------------------'
echo 'Running RVD2 in the HCC1187 subject PAXIP1 gene dataset.'
echo 'Please provide the directory to the control and case hdf5 files.'
echo '----------------------'
echo 'Generating control and case hdf5 file from depth chart files:'
python rvd27.py gibbs $1 -o control_HCC1187 -... | true |
a4f8ba4a873d13d1a783a2e44afd66378a93aa27 | Shell | mengxin-mx-cpu/standalone-linux-io-tracer | /source/kernel/configure.d/1_vm_ops.conf | UTF-8 | 1,052 | 3.03125 | 3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf"
] | permissive | #!/bin/bash
#
# Copyright(c) 2012-2020 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
. $(dirname $3)/conf_framework
check() {
cur_name=$(basename $2)
config_file_path=$1
if compile_module $cur_name "struct vm_operations_struct vm; int (*fn1)(struct vm_area_struct*, struct vm_fault*) = ... | true |
aa0e555552e44c92b6ef27773f0ecbdc45d7c943 | Shell | changpk/AnimationTutorial | /MoveTurioal/usrConfig.sh | UTF-8 | 513 | 3.21875 | 3 | [] | no_license | #!/bin/sh
export LC_ALL=zh_CN.GB2312;export LANG=zh_CN.GB2312
###############以下是为编译配置工程根目录等相关参数
username="$USER"
desktopDir="/Users/${username}/Desktop/workspace"
echo "\n"
echo "$desktopDir"
# cd ${desktopDir}
# workrootDir="${desktopDir}/workbuild" #代码的根目录
# if [ -d "$workrootDir" ];then
# echo "$workrootDir... | true |
9bc529d1b06077c40976d3966bc65334ed9651f0 | Shell | weilonge/configurations | /bin/file_send | UTF-8 | 100 | 2.53125 | 3 | [] | no_license | #!/bin/bash
RECV_IP=$1
RECV_PORT=$2
FILE_PATH=$3
tar cv "$FILE_PATH" | nc "$RECV_IP" "$RECV_PORT"
| true |
2f1e8ffd7a562392a550422cc3edb7be0c6bf780 | Shell | antocuni/home | /bin/antocuni_kbd | UTF-8 | 455 | 3.25 | 3 | [] | no_license | #!/bin/bash
### This script needs to be placed in /lib/systemd/system-sleep/ ###
if [ $1 = post ] && [ $2 = suspend ]
then
date '+%F %T' > /tmp/resumed
chown antocuni:antocuni /tmp/resumed
DISPLAY=:0.0 ; export DISPLAY
HOME=/home/antocuni; export HOME
(sleep 2; /home/antocuni/bin/kbd) &
fi
if [ $... | true |
814b19b4631cd6310d16888a1a3e4c743eafc0c8 | Shell | xdreamseeker/zabbix | /redhat/checkarchivelog.sh | UTF-8 | 504 | 2.625 | 3 | [] | no_license | #!/bin/bash
sid=$1
#2016.6.22 solve ioctl for device problem
source /home/oracle/.bash_profile 2>/dev/null
export ORACLE_SID=$sid
sqlresult=`sqlplus -S /nolog <<EOF
connect / as sysdba;
set echo off feedback off heading off underline off;
set timing off;
select ceil(sum(ru.percent_space_used * case when db.log_mode <... | true |
ef38725f23e1adce991f9fc343145cd00e6961df | Shell | plomovtsev/RAIC2016-scala-cgdk | /compile-scala.sh | UTF-8 | 1,296 | 2.9375 | 3 | [] | no_license | if [ ! -f $SCALA_HOME/lib/scala-library.jar ]
then
echo Unable to find scala-library.jar in SCALA_HOME [$SCALA_HOME] > compilation.log
exit 1
fi
if [ ! -f src/main/java/Runner.java ]
then
echo Unable to find src/main/java/Runner.java > compilation.log
exit 1
fi
if [ ! -f src/main/scala/MyStrategy.scal... | true |
298f2ec35c300c1f093c7bb7ae944d2cb552e990 | Shell | vijay299/playSMS | /daemon/linux/bin/sendsmsd | UTF-8 | 338 | 2.984375 | 3 | [] | no_license | #!/bin/bash
. /etc/default/playsms
while true; do
for QUEUE in `$(which php) -q $PLAYSMS_BIN/sendsmsd.php $PLAYSMS_PATH _GETQUEUE_`; do
EXISTS=`ps ax | grep $QUEUE | grep sendsmsd.php`
if [ -z "$EXISTS" ]; then
$(which php) -q $PLAYSMS_BIN/sendsmsd.php $PLAYSMS_PATH _PROCESS_ $QUEUE >/dev/null 2>&1 &
fi
do... | true |
329013c3034f1e13984102e8f80468a5e57f4d39 | Shell | IRTermite/osic-santaclara | /scripts/inv2cobbler_incsc.sh | UTF-8 | 3,324 | 3.890625 | 4 | [] | no_license | #!/bin/bash
INVENV=incsc
NETMASK=255.255.252.0
GATEWAY=172.22.0.1
DNS=8.8.8.8
#####################################################
# Need one argument which is the exported .csv file
#####################################################
if [ $# == 0 ]
then
echo "Usage: inv2cobbler_incsc.sh inventory_csv_file.cs... | true |
8f708198ed239a00c5935c2138ec9daa3f70604f | Shell | mlorenzo-stratio/scriptcellar | /monitoring/nagios-plugins/oracle/check_oracle_session_front.old | UTF-8 | 698 | 3.515625 | 4 | [] | no_license | #!/bin/bash
vcountsession=0
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
WARNING=$1
CRITICAL=$2
vcountsession=$(sudo -u oracle /usr/local/nagios/libexec/check_session_front | sed -e "s/[^0-9]*\([0-9]*\)[^0-9]*/\1/")
if [ $vcountsession -ge $CRITICAL ]; then
echo "SESSIONS CRITICAL: $vcountsession sesiones abiertas ... | true |
3aa960b8b6f565704edd6fbb8368a485061bfb91 | Shell | monmonpig/dotfiles | /setup | UTF-8 | 661 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env bash
DIFF=`which diff`
CWD=`pwd`
file_ls=`ls -d _*`
echo "Change to $CWD";
function link {
srcfile="${CWD}/${1}"
destfile="$HOME/${1/_/.}"
echo "${destfile}"
if [ -f $destfile ]; then
if [ -n "$($DIFF $srcfile $destfile)" ]; then
backup $destfile
fi
fi
ln ... | true |
16b26f479dabc0ee1fcc096f60013ba90a07bd4e | Shell | metalter/shell | /2.sh | UTF-8 | 304 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#author:metalter
read -p "请输入用户名" user
if [ -z $user ];then
echo "未输入用户名"
exit
fi
#stty -echo 关闭回显 / stty echo 打开回显
stty -echo
read -p "请输入密码" pass
stty echo
pass=${pass:-123456}
useradd "$user"
echo "$pass" | passwd --stdin "$user"
| true |
8eebf7539bc121b997e4ef983013689a1ccdc5a6 | Shell | jasonisgett/MacAdmin | /Software/Matlab/license_Matlab.sh | UTF-8 | 2,237 | 4.03125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
###################################################################################################
# Script Name: license_Matlab.sh
# By: Zack Thompson / Created: 1/10/2018
# Version: 1.2.0 / Updated: 4/19/2021 / By: ZT
#
# Description: This script applies the license for Matlab.
#
################... | true |
9a92f3dc86357115031e0e82b3e524c453592f8b | Shell | elishani/azure-templates | /scripts/install-rancher2.sh | UTF-8 | 649 | 3.359375 | 3 | [] | no_license | resource_group_name=$1
export file_name=cluster.yml
az network public-ip list --resource-group $resource_group_name | grep '"ipAddress":' | awk -F'"' '{print $4}' > iplist.txt
sed -e "1d" iplist.txt > vm.txt
echo "nodes:" > $file_name
i=1
for public in `cat vm.txt` ; do
vm=rancher$i
private=`ssh -o "StrictH... | true |
a12d2f6ea145deab134f38b04e71e28743500d00 | Shell | SoumyajitTech/zsh-Power | /zsh-autocomplete/zsh-autocomplete.plugin.zsh | UTF-8 | 729 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/zsh
setopt alwayslastprompt NO_singlelinezle
() {
emulate -L zsh
zmodload -F zsh/parameter p:functions
# Workaround for https://github.com/zdharma/zinit/issues/366
[[ -v functions[.zinit-shade-off] ]] &&
.zinit-shade-off "${___mode:-load}"
typeset -gHa _autocomplete__options=(
localoptions ex... | true |
b93f5f99826d232f805ac2361d4c4f0418a900e8 | Shell | d11wtq/gentoo-personal-deps | /deps/gruvbox_theme.sh | UTF-8 | 198 | 2.90625 | 3 | [] | no_license | gruvbox_theme() {
new_config=$p/gruvbox_theme/gruvbox.sh
old_config=~/.bashrc.d/gruvbox.sh
is_met() {
diff $old_config $new_config
}
meet() {
cp -f $new_config $old_config
}
}
| true |
71ef72b1cb6ae1a340b197b191802e629ab0fd94 | Shell | stucchimax/reverse-dns-stats | /run.sh | UTF-8 | 872 | 3.03125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
DATE=`date "+%Y%m%d"`;
mkdir $DATE
cd $DATE
# fetch delegated file
# fetch split domain file
wget -q "ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest"
wget -q "ftp://ftp.ripe.net/ripe/dbase/split/ripe.db.domain.gz"
# Get stats from delegated file
../parse_delegated.py > delegated_... | true |
2855fa6fc414f4ed0305b7aeac06e9a5e0dc3a4e | Shell | ajt73/LFS-10.0 | /lfs/temp/lfs.stage2 | UTF-8 | 1,765 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# © Anthony Taylor 2020
#
# Stage 2 of LFS installation
# Installation of remaining Temporary Tools
# Installation of the Basic System Software
#
# Derived from Linux From Scratch, revision 10.0
# http://www.linuxfromscratch.org/lfs/
# Chapter 7
#
# Version 0.1
mkdir -p /{boot,home,mnt,opt,srv}
mkdir -p... | true |
3c636c0274bc5a63f1589b2ff0847616a0918cae | Shell | ECE465-Cloud-Computing/ECE-465-Cloud-Computing-Final | /Scripts/run.sh | UTF-8 | 2,585 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# fetch config from AWS for currently running infrastructure
source ./load_lab_config.sh
NOW=$(date '+%Y%m%d%H%M%S')
LOGFILE="./run-${NOW}.log"
echo "Running Full AWS infrastructure for ${APP_TAG_NAME}:${APP_TAG_VALUE}" | tee ${LOGFILE}
echo "Running run.sh at ${NOW}" | tee -a ${LOGFILE}
PROG="... | true |
73f02ee9294fcbc8868a60f073a3033c1c55a673 | Shell | sgwilbur/database-scripts | /db2/add_buildforge_db.sh | UTF-8 | 2,180 | 2.609375 | 3 | [] | no_license | #REM Tested and fully working as of 9-Feb-10
#REM
#REM --
#REM -- Setup path for the local environment information
#REM --
export USER=$1
export DBNAME=$2
export SCHEMA=${DBNAME}
export DBPATH=/home/db2inst1/db2inst1/NODE0000/${DBNAME}
export DBALIAS=${DBNAME}
export PAGESIZE=32K
export BPNAME=BUFFP1
export TS_S... | true |
d4ac1641faee0ff233fb7321dea2903be5cdbe5c | Shell | ODEX-TOS/packages | /libmythes/repos/extra-x86_64/PKGBUILD | UTF-8 | 1,113 | 2.609375 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer: AndyRTR <andyrtr@archlinux.org>
pkgname=libmythes
pkgver=1.2.4
pkgrel=4
epoch=1
pkgdesc="a simple thesaurus"
arch=('x86_64')
url="https://hunspell.github.io/"
license=('custom')
depends=('glibc' 'perl')
makedepends=('hunspell')
provides=('mythes')
source=(https://downloads.sourceforge.net/hunspell/${pkgn... | true |
db988a2009390f6f3fb7a8c6554a466a6340f90e | Shell | knikolla/regapp | /makemigrations.sh | UTF-8 | 801 | 2.625 | 3 | [] | no_license | #! /bin/bash
echo "##############################################"
echo "Make sure to unset minikube docker-env if set!"
echo "##############################################"
REGAPP_REPO=ghcr.io
PROJECT_LOCATION=/home/jculbert/development/nerc
REGAPP_IMAGE=$REGAPP_REPO/nerc-project/regapp:master
docker login $REGAPP... | true |
a1cb9871c5d90a74d6e4ec1d2dfe85cc4dcefcfb | Shell | aigarskadikis/vlc-detect | /check.sh | UTF-8 | 4,555 | 3.765625 | 4 | [] | no_license | #!/bin/sh
#this code is tested un fresh 2015-11-21-raspbian-jessie-lite Raspberry Pi image
#by default this script should be located in two subdirecotries under the home
#sudo apt-get update -y && sudo apt-get upgrade -y
#sudo apt-get install git -y
#mkdir -p /home/pi/detect && cd /home/pi/detect
#git clone https://g... | true |
da3da70698fbdc290ecaab502bbf891a606885df | Shell | onkarbpatil/IPDPS2020-benchmarks | /script.sh | UTF-8 | 13,389 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
echo "optane: $(hostname)"
module load openmpi likwid
export OMP_NUM_THREADS=1
RESULTS="${HOME}/memsys19-optane/results"
# rm -rf ${RESULTS}
# mkdir -p ${RESULTS}
# cd /home/jlee/memsys19-optane/vpic/optane
# # vpic weak scaling for optane modes
# export MACRO="USE_OPTANE"
# make -j
# bin/vpic ... | true |
318fa0a54fcf616077e2fbdcd66a00c4236974f3 | Shell | nimble-platform/docker_setup | /dev/run-dev.sh | UTF-8 | 5,625 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
update_images () {
# update infrastructure
docker-compose -f infra/docker-compose.yml --project-name nimbleinfra pull
# update services
docker-compose -f services/docker-compose.yml --project-name nimbleservices pull
}
start_all () {
# start infrastructure
docker-compose -f infra/docker-compose.y... | true |
dbffcff3c9013b7eca480b45fe93160faf65b729 | Shell | aranb/amos-master-scripts | /run_omid_threads | UTF-8 | 2,502 | 3.015625 | 3 | [] | no_license | #!/bin/bash
export TABLE="usertable"
export CF="fam"
export THREADS=150
export label=$1
shift
export approx_time=240
export ycsb_cmd="${HOME}/inst/ycsb/bin/ycsb run omid"
export ycsb_load_cmd="${HOME}/inst/ycsb/bin/ycsb load omid"
export ycsb_common_params="-cp ${HOME}/inst/ -P ${HOME}/inst/Tworkloada -p table=${TABL... | true |
56e71972a60d241b13600a37184c94f9c395d2ce | Shell | flaupretre/mp3-tools | /encode_mp3.sh | UTF-8 | 1,515 | 3.84375 | 4 | [] | no_license | # Permet d'encoder ou reencoder un mp3.
#
# Sources possibles : wav et mp3
#
# Recoit en entree une liste de paths a reencoder (sortis par 'fix_libs -r -f'),
# un par ligne. Les paths peuvent etre absolus ou relatif au rep dans lequel
# le script est lance.
#
# Attention: les paths contiennent des espaces et peuvent co... | true |
4c302382978d1765e1d0902c4a1cfa80f7158240 | Shell | melanie-oneill/special-topics-labs-linux-docker | /bin/httpd-ctl.sh | UTF-8 | 1,088 | 3.984375 | 4 | [] | no_license | #!/usr/bin/env bash
DIR="-v /home/oneilm8/Desktop/linux-docker/special-topics-labs-linux-docker/test/:/usr/local/apache2/htdocs/"
PORTOPT="-p 8080:80"
echo "hello"
function HELP {
echo -e \\n"Help documentation for this script"\\n
echo -e "Basic usage: httpd-ctl.sh [command] [options]"\\n
echo -e "Commands are... | true |
474a675a8b437d4c03f0f9349f178678a11fa2fb | Shell | sentinelleader/my-puppet-modules | /puppet-qmail/files/qmail-send/run | UTF-8 | 249 | 2.59375 | 3 | [] | no_license | #!/bin/sh
exec 2>&1
QMAIL="/var/qmail"
ALIASEMPTY=`cat $QMAIL/control/defaultdelivery 2> /dev/null`
ALIASEMPTY=${ALIASEMPTY:="./Maildir/"}
PATH="$QMAIL/bin:$PATH"
# limit to prevent memory hogs
ulimit -c 204800
exec qmail-start "$ALIASEMPTY"
| true |
f41a1a39c9507969daf199eb796e85892fb10f31 | Shell | zmarouf/shell-fun | /history_expansion.sh | UTF-8 | 1,684 | 3.34375 | 3 | [] | no_license | #!/bin/sh
##
## test.sh
## Login : <zmarouf@Zeids-MacBook-Pro.local>
## Started on Thu May 8 17:30:01 2014 Zeid Marouf
## $Id$
##
## Author(s):
## - Zeid Marouf <>
##
## Copyright (C) 2014 Zeid Marouf
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Pub... | true |
02dcbe93feeb30e6f14d49b512937b4b69e52880 | Shell | seebees/aws-sdk-js-v3 | /models/copy-model.sh | UTF-8 | 552 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
declare -r INTEG="aws-dr-tools-integration-pdx-64002.pdx4.corp.amazon.com"
declare -r APOLLO_PATH="/apollo/env/CoralJSONModels-development"
declare SERVICE="$1"
declare VERSION="$2"
if [ -z "${SERVICE}" ]; then
echo "Usage copy-model.sh SERVICENAME [VERSION]"
exit 1
fi
if [ -z "${VERSION}" ]; then
... | true |
3629dc7deb54eec9f9f2b7d3888a21bae2a5ef7c | Shell | amlucent/docker-containers | /simplehelp/src/firstrun.sh | UTF-8 | 320 | 3.046875 | 3 | [] | no_license | #!/bin/bash
if [[ $(cat /etc/timezone) != $TZ ]] ; then
echo "$TZ" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
fi
if [ -d "/opt/SimpleHelp/lib" ]; then
echo "simplehelp files are in place"
else
mkdir -p /opt/SimpleHelp
cp -r /root/SimpleHelp/* /opt/SimpleHelp/
fi
sleep 5s
exec /usr/bin/supervisord
| true |
bf31ddba6c501cd52b401774a3c1442dce51d33a | Shell | open-power/skiboot | /libstb/tss2/ibmtpm20tss/utils/regtests/testpolicy138.sh | UTF-8 | 15,690 | 2.5625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
#
#################################################################################
# #
# TPM2 regression test #
# Written by Ken Goldman #
# IBM Thomas J. Watson Research Center #
# #
# (c) Copyright IBM Corporation 2016 - 2020 #
# #
# All rights ... | true |
cefd5ab95ac2c80e2ae98d28b4f9d790396ccf84 | Shell | landtechnologies/docker-ci-images | /kubernetes/install_kube_iam_user.sh | UTF-8 | 3,216 | 3.796875 | 4 | [] | no_license | #! /bin/bash
# Installs and uses a kubectl context which authenticates with the kubernetes cluster using IAM
# Args:
# --cluster <cluster> - REQUIRED
# Will set up the user and context for the given cluster
# Otherwise will use whatever cluster is in the current context
# --aws-profile <aws_profile> - OPTIONAL
# ... | true |
c7a0df0152eeffc86e56bac04fe4004c1d0f2f40 | Shell | wenxueliu/code_clips | /shell/network/eth_affinity | UTF-8 | 310 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#count.sh
#
echo "count cpu hex output"
[ $# -ne 1 ] && echo "$1 is cpu core number" && exit 1
ccn=$1
echo "Print eth0 cpu affinity"
for((i=0; i<${ccn}; i++))
do
echo "---------------------"
echo "cpu core $i is affinity"
((affinity=(1<<$i)))
echo "obase=16;${affinity}" | bc
done
| true |
31e76725c022ac7c5864649b565f01f1ddad5d2d | Shell | jackboter13/Top-5-Bootloader-Themes | /run_linter.sh | UTF-8 | 1,371 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#/**
# * TangoMan shellcheck linter
# *
# * @license MIT
# * @author "Matthias Morin" <mat@tangoman.io>
# */
function echo_title() { echo -ne "\033[1;44;37m${*}\033[0m\n"; }
function echo_caption() { echo -ne "\033[0;1;44m${*}\033[0m\n"; }
function echo_bold() { echo -ne "\033[0;1;34m${*}\033[... | true |
78827b0d5a086f99482e42c0dd0ffe5079fa9a86 | Shell | KaOSx/apps | /konsole6/PKGBUILD | UTF-8 | 1,274 | 2.75 | 3 | [] | no_license |
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=konsole6
_pkgname=konsole
pkgver=${_kdever}
pkgrel=1
pkgdesc="KDE's terminal emulator"
arch=('x86_64')
url='https://konsole.kde.org/'
license=('LGPL')
depends=('kbookmarks6' 'kconfig6' 'kconfigwidgets6' 'kcoreaddons6' 'kcrash6'
... | true |
d2f06db5196c146e67189e5bd30dcde34e2ccd51 | Shell | giri101995/SSN_TNPOLICE_ASSIGNMENT_DAY1 | /assignment3.sh | UTF-8 | 618 | 3.578125 | 4 | [] | no_license | echo "Choose any one option"
select var in {"List the records","Search for an employee","Delete an employee","Quit"}
do
case $var in
"List the records")
cat database.txt
;;
"Search for an employee")
echo "Enter the name of the Employee"
read emp
grep -h $emp database.txt
;;
"Delete an employee"... | true |
234ff89457d7f6e5ddf14ef1c61c6353c3910d08 | Shell | YueErro/ModernRobotics | /CoppeliaSim_Edu_V4_1_0_Ubuntu18_04/programming/bluezero/include/spotify-json/.travis/install_linux.sh | UTF-8 | 1,366 | 3.75 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"JSON",
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash
DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
function install_boost {
BOOST_LIBRARIES="chrono,system,test"
BOOST_VERSION="1.62.0"
BOOST_URL="https://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/boost_${BOOST_VERSION//\./_}.tar.gz"
BOOST_DIR="${DEPS_DIR}... | true |
5ee750ba9b9ded18fddc3d8467cf5cfed2634108 | Shell | norcams/himlar | /profile/templates/application/builder/windows_build_script.erb | UTF-8 | 1,056 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
ssh -tt -o "StrictHostKeyChecking no" -i ~/.ssh/windowsbuilder_rsa windowsbuilder@<%= @buildhost %> << 'ENDSSH'
#!/bin/bash
cd /var/lib/libvirt/images/windows_builder/packer-windows
# Check for already running process
if ! ps axu | grep windows-<%= @version %> | grep -v grep; then
echo "We are not alre... | true |
588e80a9792be662b15f9e17f9a7ab0694277e1c | Shell | ishanjoshi02/Operating-Systems | /# 1/Sample Scripts/p6.sh | UTF-8 | 229 | 3.3125 | 3 | [] | no_license | echo "Enter file name to check permission"
read file1
if test -r $file1
then
echo "Read permission is set"
fi
if test -w $file1
then
echo "Write permission is set"
fi
if test -x $file1
then
echo "Execute permission is set"
fi
| true |
2d545f025f8da83fc8f70bc8e59460fcd31095da | Shell | aerisweather/sensu-web | /build-app | UTF-8 | 406 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/bash
script_dir=$(dirname "$0")
cd "$script_dir" || exit 1
if [[ "$IN_NODE_DOCKER" != '1' ]]; then
git_rev=$(git rev-parse --short HEAD)
docker run \
--user "$(id -u)" \
-e IN_NODE_DOCKER=1 \
-v "$PWD:/app" \
--rm -it \
--entrypoint /app/build-app node:16.0.0
docker build -t "aeriswea... | true |
20c58260bba98e3c11971c0699b440bdb39707fe | Shell | mastersign/mastersign-datascience | /auto/doc-build.sh | UTF-8 | 892 | 4.03125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# Bash script for building the HTML output of the Sphinx documentation
cd "$(dirname $0)/../doc"
source_dir=source
build_dir=build
function assert_python_cli() {
command="$1"
package="$2"
title="$3"
url="$4"
if ! which $1 >/dev/null 2>&1; then
echo "The command '$comma... | true |
84e4708673a18bc8820bf784629779805cbf1396 | Shell | silky/bramble | /doc/drawdata.sh | UTF-8 | 1,181 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
MODEL="src/Bramble/RAML.hs"
echo 'digraph {'
data="$(grep '^data' $MODEL | sed 's/data //; s/ .*//')"
data="$data $(grep '^newtype' $MODEL | grep -v 'newtype Schema' | sed 's/newtype //; s/ .*//')"
for i in $data
do
echo "$i;"
targets="$(grep "data $i .*=" $MODEL -A 6 \
| sed '/^$/,$d' \
| grep '::'... | true |
ffff77420b99fa992eb84032523276f3c12b22bb | Shell | lifepatch/website-backup-script | /website_backup.sh | UTF-8 | 1,132 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# user, password, gzip file out
function backup_mysql(){
param=`mysqldump --host=127.0.0.1 -A --user="${1}" --password="${2}" --all-databases | gzip > "${3}"`
echo ${param}
#echo "mysqldump --host=127.0.0.1 -A --user=${bak_mysql_user} --password=${bak_mysql_pass} --all-databases | gzip > $bak_dir/$bak_m... | true |
ca0222a8b68771d7f118b7c856fdbd57020fb9f1 | Shell | Maryam81609/FMKe | /runBenchLocal.sh | UTF-8 | 2,566 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd -P`
popd > /dev/null
ANTIDOTE_FOLDER=""
if [ "$#" -eq 0 ]; then
# Assume that Antidote is already running
if nc -z localhost 8087; then
echo "Antidote is running"
else
echo "Antidote is not running on PB port 8087"
... | true |
0fb2034b8310ef9649f1ec608dbd0958bd3dc485 | Shell | nathan8299/OSX_MediaCenter_MountainLion | /scripts/install_tmux.sh | UTF-8 | 1,046 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
echo "#------------------------------------------------------------------------------"
echo "# Installing Tmux"
echo "#------------------------------------------------------------------------------"
brew install tmux
[ -d ~/.tmux/conf ] || mkdir -p ~/.tmux/conf
[ -d ~/.tmux/tmthemes ] || mkdir -p... | true |
2fb55f82459fa4b2f44facf23c0b084990409810 | Shell | caqg/linux-home | /cmd/cprod | UTF-8 | 682 | 4.03125 | 4 | [] | no_license | #!/bin/sh
# cartesian product of two relations presented as files
usage="usage: `basename $0` [-d <delimiter>] file1 file2"
set -- `getopt d: $*` || {
echo >&2 "$usage"
exit 1
}
delimiter=' ' #tab is default
for arg
do case $arg in
-d) delimiter="$2"; shift 2 ;;
--) shift; break ;;
esac
done
case $# in
2) ... | true |
6b4b0d32b90c0d294bda0b762c740772f6883aea | Shell | ojaswee/dnaQ | /summary_report_creator/01_run_from_server_terminal.sh | UTF-8 | 1,370 | 2.59375 | 3 | [] | no_license |
# first loginto the server
sshpass -p 'pvamudna1!Q' ssh odhungana@129.207.46.222
# summary report creator to run for server terminal
# make dir in server
mkdir dnaq
cd dnaq
mkdir 01_data
mkdir 03_summary_result
# create bigfile
for i in {1..15}
do
cat home/odhungana/dnaq/01_data/cosmic.filter.vcf >> home/odhunga... | true |
373c5a3ec0570187110ee203d38f30ebdfbd9e68 | Shell | zgulde/ssl-helper | /ssl-in-dev.sh | UTF-8 | 2,064 | 4.125 | 4 | [] | no_license | # this script will 'fake' ssl for a development machine using a self-signed
# certificate.
# This should be run on the development server you want to setup
# this script was built to work with the codeup vagrant box setup,
# but the general principles will apply to any setup
# usage
# bash ssl-in-dev.sh codeup.dev
... | true |
e859126bf857c0822f90edcc9b22263bd71ce880 | Shell | rshipp/pkgbuilds | /pigz/PKGBUILD | UTF-8 | 855 | 2.59375 | 3 | [] | no_license | # Maintainer: george <rpubaddr0 {at} gmail [dot] com>
# Contributor: Frank Thieme <frank@fthieme.net>
# Contributor: Laszlo Papp <djszapi2@gmail.com>
pkgname=pigz
pkgver=2.3
pkgrel=1
pkgdesc='Parallel implementation of the gzip file compressor.'
arch=('i686' 'x86_64')
url='http://www.zlib.net/pigz/'
license=('GPL')
de... | true |
a4b61f15c4666eaa32db46cdb4f49e9085a09371 | Shell | petronny/aur3-mirror | /aqualung-alsa/PKGBUILD | UTF-8 | 1,499 | 2.59375 | 3 | [] | no_license | # Maintainer: Robert McCathie <archaur at rmcc dot com dot au>
# Contributor: leepesjee <lpeschier at xs4all dot nl>
# Contributor: fancris3 <fancris3 at aol dot com>
_name=aqualung
pkgname="$_name-alsa"
pkgver=0.9beta11
pkgrel=2
pkgdesc="Gapless music player compiled with only ALSA support. Jack, Pulse and OSS are d... | true |
cce142df8aa41215c0382c104b9af6f9971efcef | Shell | Lky/laura | /rtorrent-svn/PKGBUILD | UTF-8 | 970 | 2.796875 | 3 | [] | no_license | # Maintainer: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
# Contributor: Jonny Gerold <jonny@fsk141.com>
pkgname=rtorrent-svn
_pkgname=rtorrent
pkgver=1164
pkgrel=1
pkgdesc="Ncurses BitTorrent client based on libTorrent"
url="http://libtorrent.rakshasa.no"
arch=('i686' 'x86_64')
license=('GPL')
depends=('... | true |
ddb1b193edc58e3a252bf41e9c68d0033caf7ef9 | Shell | lulalachen/boilerplates | /run-tests.sh | UTF-8 | 656 | 3.1875 | 3 | [] | no_license | #!/bin/bash
STATUS=0
echo "======================================================="
echo " [Test] [es6-node-server] [Processing] 🚀"
echo "======================================================="
cd es6-node-server
npm install -s -q
npm run test:coverage
STATUS=$(( $STATUS+$? ))
echo "========================... | true |
4042734b22ec3e0b9e21bcb7526bd740198b6bb3 | Shell | knative/serving | /vendor/knative.dev/hack/presubmit-tests.sh | UTF-8 | 12,816 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2018 The Knative 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 applicable ... | true |
a026216f6ae5f95561aab8a1270715d59dd3ee4e | Shell | Prescrypto/heroku-buildpack-tex | /bin/compile | UTF-8 | 2,973 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
# fail fast
set -e
BUILD_DIR=$1
CACHE_DIR=$2
BIN_DIR=$(cd "$(dirname "$0")"; pwd) # absolute path
TEXLIVE_REPOSITORY="http://mirror.ctan.org/systems/texlive/tlnet"
# TODO: remove this in future versions.
# This is only kept for backwards support
if [ -f "$B... | true |
a1ed8bf3a9770e6db917c16c01ac75bb77a4854e | Shell | EExuke/shell | /linux_shell/8_3_test.sh | UTF-8 | 3,318 | 3.28125 | 3 | [] | no_license | ############################################################################# ##
# Copyright (C) 2010-2011 Cameo Communications, Inc.
############################################################################ ##
#
# -------------------------------------------------------------------------- --
# AUTHOR ... | true |
febd5c1cb0973cf720bbb6e154d28d1e7329cc73 | Shell | smo921/docker | /images/zk/run.sh | UTF-8 | 702 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#
# Original source github:fabric8io/fabric8-zookeeper-docker
#
CONF="/zk/conf/zoo.cfg"
DATA="/zk/data"
echo "$SERVER_ID / $MAX_SERVERS"
if [ ! -z "$SERVER_ID" ] && [ ! -z "$MAX_SERVERS" ]; then
echo "Starting up in clustered mode"
echo "" >> $CONF
echo "#Server List" >> $CONF
for i in $( eval ech... | true |
b59c4fc06294f8c532fa17903769594ed231eb2a | Shell | MaseraTiGo/scaffold | /deploy/script/conf/project_online_env.sh | UTF-8 | 515 | 2.703125 | 3 | [] | no_license | #!/bin/bash
# base directory parameters
currentdir=${PWD}
confdir=${currentdir}/../
codedir=${confdir}/../
# deployment directory
deploydir=/deploy
# data directory
datadir=/data
# database to backup of path
backup_dir=/data/databases/mysql-master/backup
# docker
docker_compose_file=online_production.yml
docke... | true |
58613be1f0b2a052ad873f807d79a1b63bf8e368 | Shell | aborle1/GEOS2 | /Baselibs/src/h5edit/bin/setversion | UTF-8 | 4,482 | 4.4375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
# This sets the version information of h5edit in all related files.
# Usage: setversion [-r] <version>
# <version> is the new version number in the form of M.m.R-relstr where
# M is major, m is minor, R is release and -relstr is the
# optional subrelease.
# -r is the optional release mo... | true |
209bd73b677088ca79a60077f1d3ded433c43dc8 | Shell | fusion809/AppImages | /recipes/leafpad/Recipe | UTF-8 | 2,157 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# A "hello world" recipe
# This is just a proof-of-concept, in reality you should use a proper "recipe" script
# to create proper AppDirs in order to ensure binary compatibility of your AppImages.
# See the documentation and the other recipes for details and for examples on how to
# bundle real-world so... | true |
8db7e94f29ab4ebe8cbdcbf0dec309a085af307d | Shell | brnz/shell | /scripts/aliases | UTF-8 | 623 | 2.671875 | 3 | [] | no_license | #!/bin/bash
alias l="ls -G"
alias la="l -A"
alias ll="l -hl"
alias lla="l -Ahl"
alias lm="ll | more"
alias cp="cp -i"
alias mv="mv -i"
#alias reset_dock="_reset_dock"
alias gc="git checkout --no-guess"
alias gcb="gc -b"
alias gco="git commit"
alias gd="git diff"
#alias gpu="_gpu"
alias gs="git status"
alias asit="adb... | true |
4ffa551acd991cf00d9bec0883aba71e1d05286b | Shell | eklingen88/gcd | /includes/out.sh | UTF-8 | 484 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
# Function for notifying
function out_error {
echo -e "\e[31m!!! ${1} !!!\e[39m"
if [ ! -z $2 ] && [ $2 -ne 0 ]; then
# Since we just created the .git directory at the beginning, we can safely remove it now
sudo rm -rf "${source_dir}/.git"
echo -e "\e[31m!!! EXITIN... | true |
feb8abc9424d62417db975f36060b233910f8c37 | Shell | ucberkeley/bce | /provisioning/guest-scripts/setup_ipython_notebook.sh | UTF-8 | 2,039 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/bash
# Make it easy to set up password / encryption for IPython notebook
echo "
This script will update your default ipython notebook profile.
It will be configured to use the SSL certificate it creates in the
current directory.
Please type a password to use for the notebook server:"
sha_str=$(python3 -c ... | true |
93f18a8f0988df3794d2b9e1737a90114954f30e | Shell | thoradia/LibreELEC.tv | /scripts/build | UTF-8 | 20,773 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
. config/options "${1}"
if [ -z "${1}" ]; then
die "usage: ${0} package_name[:<host|target|init|bootstrap>] [parent_pkg]"
fi
if [ ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.