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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
97dab6164ef290d8900323e227fb55b2a476dcd9 | Shell | borisbabic/dotfiles | /awesome3.5/.config/awesome/bashets/userscripts/battery.sh | UTF-8 | 261 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
STATUS=$( acpi | awk '{print $3}' )
if [ "$STATUS" = "Discharging," ]
then
STATUS="A"
else
STATUS="AC"
fi
PERCENT=$( acpi | awk '{print $4}' )
PERCENT=${PERCENT%%"%,"}
PERCENT=${PERCENT%%"%"}
#PERCENT=${PERCENT%%","}
echo -n "$STATUS $PERCENT"
| true |
2164a08162c371ec3bb0e1da9846cf1ea4411077 | Shell | ivandevp/capitan-www | /deploy.sh | UTF-8 | 778 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
SCRIPT_PATH="`dirname \"$0\"`" # relative
SCRIPT_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
if [ -z "$SCRIPT_PATH" ] ; then
# error; for some reason, the path is not accessible
# to the script (e.g. permissions re-evaled after suid)
exit 1 # fail
fi
BUCK... | true |
4df465a9acf5849c69fca23dd4303ca442a7f0fb | Shell | fevin/clips-project | /bin/build.sh | UTF-8 | 351 | 3.0625 | 3 | [] | no_license | #!/bin/bash
set -e
BIN_DIR=$(which $0)
BIN_DIR=$(dirname $BIN_DIR)
BIN_DIR=$(cd $BIN_DIR; pwd)
ROOT_DIR=$(cd $BIN_DIR/..; pwd)
cd $ROOT_DIR
cd $ROOT_DIR/build
echo "=== BUILDING ==="
if [ "$1" == "make" ]; then
echo "=== EXEC MAKE ONLY ==="
else
cmake ..
fi
make -j8
cd -
cp ./build/clips-project ./dist/
ech... | true |
9764432af803e0fb5cd54d11a7d7ae39f0a50785 | Shell | epasham/mgicode-k8s-shell | /04k8s(10.1.12.20-29)/01k8sadmin/02jenkens.sh | UTF-8 | 1,233 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | # author:pengrk
# email:546711211@qq.com
# qq group:573283836
# 主要为了测试一下该生成的模板
#1 初始化
sed -i "s/10.1.12.129/10.1.12.62/g" /etc/sysconfig/network-scripts/ifcfg-ens160
hostnamectl set-hostname k8sJenkins
systemctl restart systemd-hostnamed
#service network restart
reboot
ip addr
#2 创建jenkins docker
# docker pull regi... | true |
8541be830e13d168766ddf98caec1d4f9729ecb0 | Shell | diegozain/gerjoii | /field/vault-fi/slurm/mio/link_only_disk.sh | UTF-8 | 2,130 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# ------------------------------------------------------------------------------
# if an inversion got cut, this script continous it.
# it also gives you the possibility to continue an old inversion for more
# iterations.
# ------------------------------------------------------------------------------
# as... | true |
2a2eec88ce28d6013332200e394c28ad954685ff | Shell | kuceravaclav/cmcli | /cmapi/domain.sh | UTF-8 | 653 | 3.296875 | 3 | [] | no_license | ########################################################################
#
# Functions for manipulation with domain via CloudMail API.
#
########################################################################
# Function create_domain takes two arguments:
# $1 - account ID,
# $2 - domain.tld.
# Function creates given ... | true |
ca5542b81cc6d517284f097801b5935961bbfd57 | Shell | markalanrichards/dockerdev | /makeca.sh | UTF-8 | 1,819 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
set -xe
: ${ca_crt:=./ca/ca.crt}
: ${ca_key:=./ca/ca.key}
if [ ! -f $ca_crt ] || [ ! -f $ca_key ]; then
rm -rf ./ca
mkdir ca
openssl genrsa -passout pass:mycert -aes256 -out $ca_key 4096
chmod 400 $ca_key
openssl req -new -x509 -sha256 -days 730 -key $ca_key -passin pass:mycert ... | true |
f155b71e008f9058bfdef11be6fcd1e46cc9cbfe | Shell | twogreenfrogs/BBB_Security_Bot | /control_scripts/wifi_script.bash | UTF-8 | 1,785 | 3.59375 | 4 | [] | no_license | #!/bin/bash
dir="/root/startup_scripts"
PATH=$PATH:$dir
export PATH
#int_out="wwan0"
#int_in="wlan0"
check_error() {
if [ $? != 0 ]
then
echo "Error: $1"
exit 1
else
echo "$1: OK"
fi
}
start () {
logger "wifi_script.bash:starting wifi acc... | true |
e51361578ad3efac310f1dd1f94f954555a62bc3 | Shell | kidd/pash | /evaluation/intermediary/two_pipelines_2_seq.sh | UTF-8 | 109 | 2.5625 | 3 | [
"MIT"
] | permissive | cat $IN $IN | tr A-Z a-z | grep '[a-zA-Z0-9]\+@[a-zA-Z0-9]\+\.[a-z]\{2,\}'
cat $IN $IN | tr A-Z a-z | sort
| true |
61f9f55e4ee9c76b907a5864e73ace78d4ced5d8 | Shell | BenUtzmich/Nautilus-Caja-Scripte | /FEScriptsNautilus/IMAGEtools/imgEFFECTStools/fx55_1imgfile_BUBBLE-EDGE_convert-compose-hardlight.sh | UTF-8 | 4,320 | 4.03125 | 4 | [] | no_license | #!/bin/sh
##
## NAUTILUS
## SCRIPT: 00_1imgfile_BUBBLE-EDGE_convert-compose-hardlight.sh
##
## PURPOSE: Makes a 'bubble-edged' image file from a selected image file.
##
## METHOD: Uses 'zenity --entry' to prompt the user for the '-raise' parameter
## --- an integer (for number of pixels on the edges to 'bubbl... | true |
d9d2c2039dda727b0051eace3f32db6a744f4af7 | Shell | xiangp126/Latch | /rsync.sh | UTF-8 | 969 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Open Debug
set -x
startDir=`pwd`
# absolute path of this shell, not influenced by start dir
mainWd=$(cd $(dirname $0); pwd)
loggingPath=$mainWd/log
logFile=$loggingPath/rsync.log
rsyncConfig=$mainWd/rsync.config
# empty or root
# execPrefix=""
PATH=$HOME/.usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/s... | true |
cc1c224e2023f837e8056be88a0e7176e79964de | Shell | KazAoyama/KaigoSystem | /E-LIFE/SHOKUJI/CGI/AJAX_RESTAURANT_CHUMON_ICHIRAN.CGI | UTF-8 | 18,608 | 3.046875 | 3 | [] | no_license | #!/bin/bash
#
# AJAX_RESTAURANT_CHUMON_ICHIRAN.CGI : レストラン注文一覧画面表示
#
# Usage : AJAX_RESTAURANT_CHUMON_ICHIRAN.CGI
#
# Written by R.Ssuzuki Date:2015/06/03
# ログ
source /home/hands/E-LIFE/SHOKUJI/CGI/SHOKUJI.INI &> /dev/null
source /home/hands/.bashrc &> /dev/null
mkdir -p ${log_dir}/$(date +%Y%m%d)
exec 2> ${log_dir}... | true |
139481d2f0cbc9d50dc725e0857ef7c6ef7cc878 | Shell | cytokine4242/SnakeVenom | /PrePostScript.sh | UTF-8 | 2,128 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#loopthrough beds and create fastas
inputDir=$1
out=$2
genomeDir=$3
sortedDir=$4
CROVV="CROVV"
NAJNA="NAJNA"
NOTSC="NOTSC"
PSETE="PSETE"
HYDCUR="HYDCUR"
BOACO="BOACO"
for file in ${inputDir}/*.fas
do
prefix=$(basename $file .fas)
mkdir ${out}/${prefix}
python3 ~/progs/SnakeGit/PrePostGene.py \
$file \
$... | true |
51d6bff2011cbb1595d0a65c1e099ea80bd7beee | Shell | markcmiller86/ITAPS | /software/branches/1.4RC/tools/mkforth | UTF-8 | 6,409 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# Do a little magic to run perl from anywhere in your path.
lines=`cat $0 | wc -l`
lines=`expr $lines - 16`
checksys=`uname -s`
if [ "$checksys" != "SunOS" ]
then
tail -n $lines $0 > /tmp/visitperl$$
else
tail -$lines $0 > /tmp/visitperl$$
fi
echo "__END__" >> /tmp/visitperl$$
echo "$0 $*" >> /tmp/visitp... | true |
55924f2e8d58866da7939d2df8f5b85a87e2ba9e | Shell | netconstructor/adminscripts | /clearPrintQueue.sh | UTF-8 | 596 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# Cancel all jobs on all destinations and their corresponding data files
cancel -ax
# Cancel all jobs using another method
lprm -
for printer in $(lpstat -p | awk '{print $2}')
do
# Set the printer to abort stuck jobs from now on
lpadmin -p $P -o printer-error-policy=abort-job
# Cancel all jobs and... | true |
c8c6d688258951f50146de1580f3da6c13904b59 | Shell | NikoKyriakid/dotfiles-1 | /resources/wpchange.sh | UTF-8 | 244 | 3.109375 | 3 | [] | no_license | #!/bin/sh
BASE_DIR=~/.wallpapers
rm -f ${BASE_DIR}/wallpaper.jpg
image_list=(${BASE_DIR}/*.jpg)
numimglist=${#image_list[@]}
rannum=$(( $RANDOM % ${numimglist}))
image_path=${image_list[$rannum]}
ln -s $image_path ${BASE_DIR}/wallpaper.jpg
| true |
03370b3b206c76dadc1d91d03dc32a3eda99f807 | Shell | Joke-Shi/erishttp | /bin/erishttpd.stop | UTF-8 | 463 | 3.015625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
echo "Stop erishttpd server processor..."
rc=`pidof erishttpd`
if [ -n "$rc" ]; then
kill -9 $rc
fi
rc=`rm -rf $ERISHTTP/var/run/erishttp.pid`
sleep 2
echo "---------------------------------------------------------------------------";
ps -ef | grep erishttpd | grep -v grep | grep -v vi | grep -v eri... | true |
2dd0f7afc67240cd5dcba86d0c221da203e4c6f4 | Shell | navaz-alani/macos-config | /bin/binaural | UTF-8 | 1,174 | 3.9375 | 4 | [
"MIT"
] | permissive | #! /bin/bash
usage() {
echo \
"${0##*/} [ -h ] [ -n wave_name -b base_freq ] [ -r lower_range upper_range ]"
exit 1
}
# collection of average deltas by name...
delta=3
theta=6
alpha=11
beta=22
gamma=40
help() {
echo "This is a utility to play binaural beats using SoX"
echo "Here are some preset deltas:"
... | true |
ccb10f41f5fea2240811813fcabf059735f3122d | Shell | gromovdmi/workplace | /install_docker.sh | UTF-8 | 766 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env sh
sudo apt-get -qq update && sudo apt-get install -qqy wget apt-transport-https ca-certificates gnupg2 curl
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-get remove -y docker docker-engine
sudo echo 'deb [arch=amd64] https://download.docker.com/linux/debian jessie... | true |
fa49871ce9c99b634603d03188c74bc3016412d4 | Shell | Azure/azurehpc | /experimental/ansible/scripts/create-playbook.sh | UTF-8 | 866 | 3.71875 | 4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | #!/bin/bash
CONFIG=$1
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
config_file=$DIR/../../$CONFIG
PLAYBOOK=$DIR/playbook.yml
function read_value {
read $1 <<< $(jq -r "$2" $config_file)
}
cat <<EOF > $PLAYBOOK
---
EOF
for resource_name in $(jq -r ".resources | keys_unsorted | @tsv" $config_file); d... | true |
c0967d91b1a5113ea909ebe64915ecd7a27ee818 | Shell | daschaich/susy_scripts | /spect_range | UTF-8 | 453 | 3.1875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
if [ $# == 1 ]; then
cd $1
fi
if [ `ls -1 Out/rescaled_eig.* | wc -l` -gt 0 ] ; then
echo "Rescaled:"
grep "EIGENVALUE 0 " Out/rescaled_eig.* | awk '{print $3}' | sort -g | head -n 1
grep "BIGEIGVAL 0 " Out/rescaled_eig.* | awk '{print $3}' | sort -gr | head -n 1
echo "Original:"
fi
grep "EIGENV... | true |
cbfc8d26fa512472ef384b0e88d0f42391967930 | Shell | josemacedo/Bash-Scripting-Solutions-video- | /Section 4/better_input.sh | UTF-8 | 237 | 3.265625 | 3 | [] | no_license | #!/bin/bash
FILE_NAME=$1
FILE_NAME_CLEAN=${FILE_NAME//_/}
FILE_NAME_CLEAN=$(sed 's/..//g' <<< ${FILE_NAME_CLEAN})
FILE_NAME_CLEAN=${FILE_NAME_CLEAN// /_}
FILE_NAME_CLEAN=${FILE_NAME_CLEAN//[^a-zA-Z0-9_.]/}
ls "${FILE_NAME_CLEAN}"
| true |
04104e584cad7a95101f40d3ce1634bbe3dc6d3c | Shell | dincerunal/Preview | /preview.sh | UTF-8 | 169 | 3.296875 | 3 | [] | no_license | #!/bin/bash
list=$(ls $1)
for f in $list
do
text=$(file $1/$f | grep -cw "text")
if ((text>0))
then
echo $f
awk 'NR<4' $1/$f
echo -e "...\n"
fi
done
| true |
15c3f1fd13d830316ef85176ca5b5b87ff50d882 | Shell | boynux/docker-load-balancer | /nginx/run.sh | UTF-8 | 490 | 3.28125 | 3 | [] | no_license | ID=$(sudo docker run -d boynux:nginx)
PID=$(docker inspect -f '{{.State.Pid}}' $ID)
VNET="vnet${ID:0:8}"
IP="$1"
sudo mkdir -p /var/run/netns
sudo ln -s /proc/$PID/ns/net /var/run/netns/$PID
sudo ip link add $VNET type dummy
sudo ip link set $VNET netns $PID
sudo ip netns exec $PID ip link set dev $VNET name eth1
s... | true |
36a3987571c5ae808b5a32c5e72c07e2ab340ba5 | Shell | liatrio/ldop-via-jenkins | /remove-demo-instance.sh | UTF-8 | 311 | 2.65625 | 3 | [] | no_license | #!/bin/bash
#initialize the workspace
#this is necessary for using remote state storage
terraform init -input=false
export TF_WORKSPACE=$TF_VAR_instance_name
# destroy the insatance and it's resources
terraform destroy -force
terraform workspace delete -force $TF_WORKSPACE | echo 'done'
exit $EXIT_STATUS
| true |
da5ac12147ef00a840ff9792ba9b64b2168630b1 | Shell | monotonemonk/arch_svntogit_community- | /cuneiform/repos/community-x86_64/PKGBUILD | UTF-8 | 1,344 | 2.9375 | 3 | [] | no_license | # $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Maxim Vuets <maxim.vuets@gmail.com>
pkgname=cuneiform
pkgver=1.1.0
_dpkgver=1.1
pkgrel=15
pkgdesc="Linux port of an OCR system developed in Russia. Supports more than 20 languages."
arch=('i686' 'x86_64')
url="https://launchpad.net/cuneiform... | true |
ed742c8c864cb01c5ec81ec0ff5c18936fa43a71 | Shell | WinteryFox/kotoba | /backup/init.sh | UTF-8 | 185 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
docker pull google/cloud-sdk
echo "0 9,21 * * * root sh $parent_path/backup.sh" > /etc/cron.d/kotoba_backup
| true |
a31784aab101057e408abcd48c6664089c18c80e | Shell | luispedrosa/vigor | /bench/init-network/ipvs/middlebox.sh | UTF-8 | 1,224 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. ./config.sh
. ./util/functions.sh
echo "[init] Binding middlebox interfaces to Linux..."
for pci in "$MB_PCI_INTERNAL" "$MB_PCI_EXTERNAL"; do
if ! sudo "$RTE_SDK/usertools/dpdk-devbind.py" --status | grep -F "$pci" | grep -q "drv=$KERN_NIC_DRIVER"; then
sudo "$RTE_SDK/usertools/dpdk-devbind.py" --f... | true |
82943b3f008ae3a246381e1fe0b9c33a590f5d32 | Shell | sakiladb/sqlserver | /restore-from-bak.sh | UTF-8 | 741 | 3.515625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
# This script is executed as a background process by entrypoint.sh.
# It attempts to load/restore the backup in /sakila/sakila.bak into the DB.
# The server can take a while to start, so we execute the sqlcmd in
# a loop.
set +e
sleep 2
export SQLCMDPASSWORD="p_ssW0rd"
for i in {1..50};
do
s... | true |
8b465e1a3acc2acc31ad3b291f2ab8211dd63b52 | Shell | derDieDasJojo/mongodb | /startUp.sh~ | UTF-8 | 898 | 3.09375 | 3 | [] | no_license | #!/bin/bash
set -x
MONGO_LOG="/var/log/mongodb/mongod.log"
MONGO="/usr/bin/mongo"
MONGOD="/usr/bin/mongod"
$MONGOD --fork --replSet fame --noprealloc --smallfiles --logpath $MONGO_LOG
sleep 30
checkSlaveStatus(){
SLAVE=$1
$MONGO --host $SLAVE --eval db
while [ "$?" -ne 0 ]
do
echo "Waiting for slave to come up.... | true |
7a9b4bf9a5bd42a0826dbf42517f91b062b12337 | Shell | onyxcherry/convenient_bash | /start.sh | UTF-8 | 2,683 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
###############
# RUN AS A ROOT #
###############
SUDO_USER="foo"
SOME_USER="bar"
#PUBLIC_KEY="ssh-rsa AAAA ... rsa-key-foo"
apt install curl htop vim mc
apt update && apt upgrade
adduser $SUDO_USER
usermod -aG sudo $SUDO_USER
mkdir $HOME/.ssh
#echo $PUBLIC_KEY > $HOME/.ssh/authorized_keys
touch $H... | true |
436513593c38ded37e1380cb4620c0f8a0db00ff | Shell | aidam38/swift_eunomia | /makein_dir/lapinv.sh | UTF-8 | 277 | 3.09375 | 3 | [] | no_license | #!/bin/sh
if [ "$1" = "" ] ; then
echo "Usage: lapinv.sh [FILE]"
echo "FILE is formatted like follow2.out, laplac.out must be in the CWD"
fi
awk '(NR==4){Ls2=$3; Ls3=$4;} (NR==8){gm=$1; print gm,Ls2,Ls3;}' laplac.out > lapinv.tmp
cat lapinv.tmp $@ | lapinv > lapinv.out
| true |
4a5db89b491957dc068fda752ef11eb21bba638e | Shell | NetBSD/src | /etc/rc.d/savecore | UTF-8 | 612 | 3.28125 | 3 | [] | no_license | #!/bin/sh
#
# $NetBSD: savecore,v 1.8 2009/09/14 17:34:56 apb Exp $
#
# PROVIDE: savecore
# REQUIRE: syslogd
# BEFORE: SERVERS
$_rc_subr_loaded . /etc/rc.subr
name="savecore"
rcvar=$name
start_cmd="savecore_start"
stop_cmd=":"
savecore_start()
{
# /var/crash should be a directory or a symbolic link
# to the cras... | true |
73687312750d4d35ff53b4194cbb1221f8581834 | Shell | v4lt/tri_stat | /script10K.bash | UTF-8 | 1,154 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Creation du fichier pour les moyennes d'execution
printf "" > "resultat/result10K.txt"
# Creation des fichiers pour les resultats de temps des tri
#for (( j = 1; j < 13; j++ )); do
# printf "" > resultat/result10K_$j.txt
#done
# Execution du programme 50 fois pour avoir des echantillons de 50 executio... | true |
e41d90e4b2643dd7d15bb4c63d78a086a6509814 | Shell | tankris/NetNotif | /netNotif.sh | UTF-8 | 405 | 3.09375 | 3 | [] | no_license | # Extract the download speed (in Mbps, not MBps) from ndt7-client developed by Measurement Labs under Apache License 2.0
downSpeed=$($HOME/go/bin/ndt7-client|awk '/Download/'|awk '{printf "%.0f",$2}')
# If the speed is below 200 Mbps, print
if [[ ! -z "$downSpeed" && $downSpeed -lt 500 ]]
then
$(dunstify -h string:x... | true |
cdd54e2ad38d731a550615a090554b8d2a2fb38e | Shell | petere/postgresql-common | /pg_config | UTF-8 | 1,200 | 3.40625 | 3 | [] | no_license | #!/bin/sh
# If postgresql-server-dev-* is installed, call pg_config from the latest
# available one. Otherwise fall back to libpq-dev's version.
#
# (C) 2011 Martin Pitt <mpitt@debian.org>
# (C) 2014-2016 Christoph Berg <myon@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it u... | true |
33a412a827aeb5ed4a2a4f5f711e4b58279642db | Shell | ptheiler/arrowhead-compliance-verification | /lynis_scripts/tests_device.txt | UTF-8 | 106,552 | 3.28125 | 3 | [] | no_license | #!/bin/sh
# Test : CUST-0010
# Description : Search for configured device multi-factor authenticator solution
Register --test-no CUST-0010 --weight L --network NO --category security --description "Search for configured device multi-factor authenticator solution"
if [ ${SKIPTEST} -eq 0 ]; then
L... | true |
da0bbdc94bbfb1ac876488507c81b3096413d65f | Shell | jivid/lime | /tasks/ci/run_tests.sh | UTF-8 | 1,508 | 3.53125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
source "$(dirname -- "$0")/setup.sh"
function run_tests {
go test "$1" -covermode=count -coverprofile=tmp.cov
test_result=$?
# Can't do race tests at the same time as coverage as it'll report
# lots of false positives
go test -race "$1"
let test_result=$test_result+$?
echo -ne "${YELLOW}=>$... | true |
476b3715b433d2c4260105a62dc9c87c4dd5e77b | Shell | sweetpotato/misc | /wccheck/cycomi/run.sh | UTF-8 | 916 | 3.140625 | 3 | [] | no_license | #!/bin/bash
export LANG=C LC_ALL=C
set -xueo pipefail
bin="${0%/*}"
source "$bin"/../wccheck.rc
# DO NOT include "/serialization/7"
urls=( \
https://cycomi.com/fw/cycomibrowser/title/serialization/0 \
https://cycomi.com/fw/cycomibrowser/title/serialization/1 \
https://cycomi.com/fw/cycomibrowser/title/serialization... | true |
615a99d4fee54ece02d9ed5bf156198a5f38100d | Shell | proitlab/prodisplay-studio | /assets/scripts/feed2node.ds | UTF-8 | 608 | 3.296875 | 3 | [] | no_license | #!/bin/bash
FEEDINPUT=$1
WORKDIR=`dirname $1`
FEEDINPUT=${WORKDIR}/feed.input
NODELUA=${WORKDIR}/node.lua
TEMPFILE=${WORKDIR}/temp.file.$$
if [ ! -s $FEEDINPUT ]; then
echo "No Text" > $FEEDINPUT
exit 0;
fi
#echo $WORKDIR
#echo $NODELUA
#echo $TEMPFILE
head -7 ${NODELUA}.org > $TEMPFILE
awk 'BEGIN {printf(" f... | true |
79dd823b866d5af6c765fc9e1797cbc1965cc19e | Shell | Travis024/lab_2 | /lab2_scripts.sh | UTF-8 | 2,194 | 3.765625 | 4 | [] | no_license | #!/bin/bash
#Author: Travis Torline
#Date: 1/30/2019
#Problem 1 Code:
#Here, we take a pattern from the user
echo "Enter a pattern here: "
read pattern
#we then take a filename from the user
echo "Enter a filename here: "
read filename
#we use the linux 'grep' command to search the user's file for their pattern
gre... | true |
fad18b337fdd132b9bb539a5d802b970ae713a0b | Shell | tilap/social-timeline | /ghpages-flushcache.sh | UTF-8 | 345 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# https://github.com/tilap/frast.git
FIRSTLINE=`git remote -v | head -1`
USERNAME=`echo $FIRSTLINE | cut -d'/' -f4`
REPONAME=`echo $FIRSTLINE | cut -d'/' -f5 | cut -d'.' -f1`
GHPAGE="http://${USERNAME}.github.io/${REPONAME}"
#echo $USERNAME
#echo $REPONAME
#echo $GHPAGE
cd dist
find . -type f -exec curl ... | true |
df5c48defc523d87e9d6656f781f425c67958002 | Shell | fimad/setup | /install-tools.d/10_neovim-plugged.sh | UTF-8 | 279 | 2.609375 | 3 | [] | no_license | #!/bin/bash
name=neovim-plug
apt_deps=(curl)
check_install() {
test -f ~/.local/share/nvim/site/autoload/plug.vim
}
install() {
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
}
| true |
5c08b56b793b165f9114772255ff597b478012b5 | Shell | larsks/tce-packages | /avahi/install | UTF-8 | 129 | 2.640625 | 3 | [] | no_license | #!/bin/sh
set -e
VERSION=$(cat version)
PKGROOT=$PWD/root
mkdir -p $PKGROOT
cd avahi-$VERSION
make install DESTDIR=$PKGROOT
| true |
b21d1765ff5e9916e78e38d2a9e9a0dbd242dae3 | Shell | Phill93/cli-conf | /.zshrc | UTF-8 | 840 | 2.640625 | 3 | [] | no_license | #Initialize
source "${HOME}/cli-conf/.boot"
#Theme
ZSH_THEME="gallifrey"
#Using case-sensitive completion
CASE_SENSITIVE="true"
#Display red dots whilst waiting for completion
COMPLETION_WAITING_DOTS="true"
#Hack to make VCS status checking faster
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Would you like to use anothe... | true |
0a508d856bb8c6c1ba3cad56b52d4eaaa6d743f7 | Shell | jumapico/jumapico.github.io | /posts/2018-09-04-creating-winepak-for-evoland/3-evoland/entrypoint.sh | UTF-8 | 1,572 | 3.734375 | 4 | [] | no_license | #!/bin/sh
set -e
# Variables
PROGRAM_NAME="Evoland"
PROGRAM_URL="https://www.gog.com/game/evoland"
PROGRAM_PATH="GOG Games/Evoland/Evoland.exe"
INSTALLER_FILE="setup_evoland_1.1.2490_(20677).exe"
INSTALLER_CHECKSUM=a478ca738c312a6b8a2f289f309efa7c893efe3b06ff1753a6bea88864b62ce7
DIALOG_WIDTH=400
if [ ! -f "$WINEPREFI... | true |
69df493838d71d80e1abf4bf542f3661f200d4a3 | Shell | JianqingXiao/manjaro-linux-config | /res/app/install.sh | UTF-8 | 1,185 | 3.875 | 4 | [] | no_license | #!/bin/bash
exec_location=`pwd`
relative_location=`dirname $0`
pacman_APP=$relative_location/pacman
yaourt_APP=$relative_location/yaourt
LOG=$relative_location/log
## print log
print_log() {
echo -e "\033[0;31;1m INSTALL-LOGS: $1 \033[0m"
echo LOGS: $1 >> $LOG
}
install_software() {
success_install... | true |
483545d36f037880308235b2652fa7a837c83e20 | Shell | jmackey-astro/PION | /test_problems/blastwave_sph1d/make_spherical_BW_plots.sh | UTF-8 | 4,273 | 2.609375 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# Make plots of the results for spherical blastwave radii as a function of time.
# - 2016.03.08 JM: updated for new pion.
#
# call with ./run_spherical_BW.sh $test_dir $code_dir $data_dir
data_dir=$1 # should be sub-directory 'blastwave' of the test-results directory.
file1=`ls ${data_dir}/BW1D_phys_... | true |
d7bd140ebaadf6239c410e234e9b70b548a5fce8 | Shell | douglaszuniga/linux-septu | /jdk-env.sh | UTF-8 | 663 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
# install command-line tools using Homebrew
# ask for adm pass upfront
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# install SDK-MAN
curl -s "https://get.sdkman.io" | bash
# giving that we stay in the same terminal
source "$HOME/.sdkman/bin/sdkman-init... | true |
758dfd60d78a9223601ab81ce043861830884d70 | Shell | bootstarted/luminol-webpack | /test/smoke/client-only.sh | UTF-8 | 462 | 2.65625 | 3 | [] | no_license | #!/bin/sh -e
trap "exit" INT TERM
trap "kill 0" EXIT
export DEBUG="luminol:*"
chmod +x ./bin/luminol.js
./bin/luminol.js \
--ui=false \
--config ./demo/webpack/client.webpack.config.js \
--content ./demo \
--clipboard false \
--port 7653 &
sleep 5
echo "Testing static content..."
curl -sf http://localho... | true |
c85d63c6669da7b0dc4f37f7bee697267f591567 | Shell | arunranain/oi-risk-vis | /scripts/convert_flooding.sh | UTF-8 | 842 | 3.328125 | 3 | [
"MIT"
] | permissive | #
# Convert flood tiffs to CSV for mbtiles generation
#
pushd intermediate_data/Flooding
# convert to points space-separated text file (x, y, value columns, no header)
gdal_translate -of XYZ Coastal_100yr.tif coastal_100yr.txt
gdal_translate -of XYZ Fluvial_100yr.tif fluvial_100yr.txt
# drop zero values
grep... | true |
fbc5e312b5c470291f2108046f18998471e28fd6 | Shell | markstokan/logsearch-boshrelease | /jobs/elasticsearch/templates/bin/drain.erb | UTF-8 | 2,103 | 3.703125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# This script keeps the elasticsearch cluster stable when BOSH needs to manage
# nodes during deploys. This is simplistic and only accounts for serial
# changes to the elasticsearch nodes, so be sure elasticsearch jobs are
# configured to deploy serially.
#
# When you get into fancier cluster scenarios, ... | true |
60a38c8c072b777355673c9580902ad6586a99c6 | Shell | tjsdnt1369/SysProgramming | /2021.05.03/test23 | UTF-8 | 171 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# mis-using string comparisons
val1=baseball
val2=hockey
if [ $val1 \> $val2 ]
then
echo "$val1 is greater than $val2"
else
echo "$val1 is less than $val2"
fi
| true |
abfa12c698ce4201e766bdbca196cc4ffff600fc | Shell | petronny/aur3-mirror | /nihongobenkyo/PKGBUILD | UTF-8 | 882 | 2.515625 | 3 | [] | no_license | # Contributor: William Rea <sillywilly@gmail.com>
pkgname=nihongobenkyo
pkgver=0.3.1
pkgrel=4
pkgdesc="A japanese dictionary and learning tool"
arch=('i686' 'x86_64')
url="http://www.nihongobenkyo.org"
license=('GPL')
depends=('ruby-libglade' 'ruby-gtk2' 'libxml2' 'ruby-sqlite3' 'ruby-gettext')
makedepends=('intltool' ... | true |
ea336fc7cee751aab8855da06ae300bea5155936 | Shell | btakita/dev | /home/bin/reverse-double-underscore.sh | UTF-8 | 816 | 2.90625 | 3 | [] | no_license | #!/bin/sh
read -r -d '' SCRIPT <<'JS'
const readline = require('readline')
const rl = readline.createInterface({
input: process.stdin,
})
rl.on('line', line => {
const begin_dollar_underscore = /^\$_[^_]/.test(line)
const begin_dollar = /^\$/.test(line)
const begin_underscore = /^_[^_]/.test(line)
console.log... | true |
45f569afe60008315964036f61e1eaf14f4a204b | Shell | stagingrdkm/lgpub | /dac/client/scripts/unpack.sh | UTF-8 | 5,361 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
. ${DAC_ROOT}scripts/functions.sh
# cleanup old rootfs
rm -rf rootfs
mkdir -p rootfs
rm -f rootfs.sqsh.verity* verity.conf
# optional parameter to install and unpack tarball
if [ -f "$1" ]; then
(rm -rf download && mkdir download && cd download && tar xvf $1)
fi
# get the correct MANIFES_DIGEST... | true |
ceb0ea6500ed8cec3885c0f6014bd314b8d28179 | Shell | douglatornell/SWC-Nelle-files | /more-molecules/sorted.sh | UTF-8 | 179 | 2.78125 | 3 | [] | no_license | # Print the results of wc -l (number of lines and filenames)
# sorted in order of increasing line count
# for the filename patterns given on the command-line.
wc -l $* | sort -n
| true |
e932a761dee0c35c7cc7bec1b898eaf4aa621d39 | Shell | traveling-soul/python | /shell_program/command_arguments2.sh | UTF-8 | 102 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# $#获取参数个数
for (( index=0; index <= $#; index++ ))
do
echo ${!index}
done
| true |
363e19d663bdbf61d03381e70c9bc25d5a1d1bc3 | Shell | bennysgitrepo/CSI6203 | /portfolio/week9/shoppingList.sh | UTF-8 | 352 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#Prints the content of the CSV file into table format
echo "Your shopping list is as follows:"
awk 'BEGIN {FS=","; currency="$";
print "Item | Quantity | Price";
print " | | ";
print "-------------------------------------"}
{printf("%-15s | %-10s| %-10s\n", $1,... | true |
ce814f8dcbfba461f28a38704c1811e639287aac | Shell | freeman91/cashflow-web | /script/kill_server.sh | UTF-8 | 404 | 3.453125 | 3 | [] | no_license | #!/bin/zsh
yellow="\033[33m"
green="\033[32m"
endColor="\033[97m"
servePID=$(ps -c | grep node | xargs)
if [[ ${#servePID} -gt 0 ]]; then
# if the node server is running kill it
echo -e "${yellow}\tShutting down cashflow node server${endColor}"
servePID=$(echo $servePID | egrep -o "^[0-9]*\s")
kill $(... | true |
9f208fcc8fd77c20795ec4f1849191d81b18eca9 | Shell | chisimba/shellscripts | /management/clone-production-noensite | UTF-8 | 3,183 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#
# This script creates a production clone of a chisimba
# subversion checkout or release. This is designed to
# work for the type of installation we do through Kenga
# Solutions on Cloud Hosts runing Ubuntu Server
#
# IMPORTANT: Place the file ENABLE-VHOST.txt in your
# Chisimba root dir... | true |
dd83729e8146e2c608060bbd64611ed203341204 | Shell | kiddico/i3_config | /blocks/battery_tlp.sh | UTF-8 | 256 | 2.75 | 3 | [] | no_license | percent=$(sudo tlp-stat -b | grep total | awk -F' ' '{print $5}' | awk -F'.' '{print $1}')
# Both long and short
echo $percent
echo $percent
if [ $percent -gt 66 ]
then
echo "#9FD84F"
fi
if [ $percent -lt 33 ]
then
echo "#FF5522"
fi
echo "#E6E854"
| true |
60b87c79292ccf429ec2de0a718bb97aa13af3f5 | Shell | beauchamplab/ravecmd | /osx/notarize.sh | UTF-8 | 1,430 | 2.546875 | 3 | [] | no_license | source "./osx/credential.sh"
PROJDIR="osx/RAVE Bundled Installer/"
PKGNAME="rave-bundled-installer"
PKGVER=$(Rscript --no-save -e "cat(rave::rave_version())")
BID="org.beauchamplab.rave-bundled-installer"
echo "Building rave-$PKGVER"
xcodebuild -project "$PROJDIR/RAVE Bundled Installer.xcodeproj" -alltargets clean i... | true |
dd04cfe8be23e6be2247f10c67b4e4d0d5e8d503 | Shell | bartfeenstra/maison | /tests/dns-test | UTF-8 | 449 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
# Test the DNS server.
set -Eeuo pipefail
cd "$(dirname "$0")/.."
. ./.env
. ./src/bash/retry
assert() {
service=$1
resolved_ip=$(docker exec maison_dns_1 getent hosts "$service.$MAISON_WEB_DOMAIN" | awk '{ print $1 }')
ip addr show | grep "$resolved_ip"
}
./vendor/bin/wait-for-it l... | true |
e7ac5c52aa26ec76fd7e2e8af2ead8e97d1e8173 | Shell | Killmonger70/shellintro | /2.sh | UTF-8 | 315 | 2.78125 | 3 | [] | no_license | # !/bin/bash
# nicolas ramirez
# segunda parte enfocada a las variables
# el argumento -p es para que se efectue com un prompt
FOOT="foot"
read -p "tu nombre es?: " NAME
read -p "que deporte te gusta $NAME?: " SPORT
echo "a $NAME le gusta practicar $SPORT cada vez que puede!"
echo "a mi me gusta el ${FOOT}bal... | true |
79d9cac4990ddeae0d9ef6d640b56c64357858e6 | Shell | UFC-MDCC-HPC/HPC-Shelf-BackEnd | /HPC-Shelf-BackEnd/scripts/run2 | UTF-8 | 336 | 3.140625 | 3 | [] | no_license | #!/bin/sh
nodes="$HOME/backend/address"
file=$(cat $nodes)
for line in $file
do
case $line in '') ;; *)
acomment=${line%#*}
peer="$(echo "${acomment}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
case $peer in '') echo "linha comentada="$line ;; *)
$HOME/backend/known_hosts $peer
esac
... | true |
bc21ac9d918593c5f8a1d37a8a09c63f3eba81fb | Shell | inissa/system-management | /attic/buildthunderbird | UTF-8 | 6,194 | 2.65625 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash -e
export PKGNAME=thunderbird
export PKGVER=45.1.1
export PKGTAR=${PKGNAME}-${PKGVER}.source.tar.xz
export PKGURL="https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${PKGVER}/source/${PKGTAR}"
export NO_OPTIMIZATION=1
export PATCHES_LIST=("thunderbird-gtk3-fixes.patch")
configure_override() {
... | true |
bf6b59ae8bd8543e13b07a700705da3e97f7c389 | Shell | Tahler/nu-code-compilation-api | /src/scripts/run.sh | UTF-8 | 1,465 | 4.34375 | 4 | [] | no_license | #!/bin/bash
# This script executes a user's program: it either runs the user's compiled code
# or interprets the user's source code depending on the arguments passed in.
#
# Arguments
# 1. The number of seconds before timing out.
# 2. The command to execute the object code.
# 3. The name of the input file to redi... | true |
5683768f15357dc243beab7b76e4b30d9f6cc41f | Shell | mariadb-corporation/build-scripts-vagrant | /build/maxscale/BUILD/build_deb_local.sh | UTF-8 | 1,887 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# do the real building work
# this script is executed on build VM
set -x
cd ./MaxScale
mkdir _build
cd _build
cmake .. $cmake_flags
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
make
export LD_LIBRARY_PATH=$(for i in `find $PWD/ -name '*.so*'`; do echo $(dirname $i); done|sort|uniq|xa... | true |
251b086f717bd2cc24c17fc70d48f143a05b4f80 | Shell | klesh/dotfiles | /cli/neomutt.sh | UTF-8 | 2,194 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
DIR=$(dirname "$(readlink -f "$0")")
. "$DIR/../env.sh"
log 'Setting up neomutt'
case "$PM" in
pacman)
sudo pacman -S --noconfirm --needed neomutt isync lynx notmuch cronie urlscan
yay -S --noconfirm --needed abook cyrus-sasl-xoauth2-git
;;
apt)
sudo apt insta... | true |
4314b31065eddcba42f741f0fdfcb546e67a0486 | Shell | srix/pytamil | /codegen.sh | UTF-8 | 621 | 2.984375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
echo “${BASH_SOURCE:-$0}”
path=`readlink -f “${BASH_SOURCE:-$0}”`
DIR_PATH=`dirname $path`
echo ‘The absolute path is’ $path
echo ‘---------------------------------------------’
echo ‘The Directory Path is’ $DIR_PATH
echo $DIR_PATH/தமிழ்/codegen/
RESOURCE_PATH="$DIR_PATH/pytamil/தமிழ்/resources"
CODE... | true |
3f30b119254990a886556625bc1a591c5380acb5 | Shell | nix-community/nur-combined | /repos/milahu/pkgs/development/libraries/pdfium-bin/update.sh | UTF-8 | 2,589 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eu
cd "$(dirname "$0")"
owner=bblanchon
repo=pdfium-binaries
#pdfium_v8=false
ignore_urls=(
-android-arm.tgz
-android-arm64.tgz
-android-x64.tgz
-android-x86.tgz
-ios-arm64.tgz
-ios-x64.tgz
#-linux-arm.tgz
#-linux-arm64.tgz
-linux-musl-x64.tgz
-linux-musl-x86.tgz
#-li... | true |
abbad651113f543eebc6bafbce8cdb5e82ac76ab | Shell | budnik/dokku-elasticsearch | /tests/service_alias.bats | UTF-8 | 967 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load test_helper
setup() {
dokku "$PLUGIN_COMMAND_PREFIX:create" l >&2
}
teardown() {
dokku --force "$PLUGIN_COMMAND_PREFIX:destroy" l >&2
}
@test "($PLUGIN_COMMAND_PREFIX:alias) error when there are no arguments" {
run dokku "$PLUGIN_COMMAND_PREFIX:alias"
assert_contains "${lines[*]}" "P... | true |
41237daddac4af40373c8e7c796b89723d56b201 | Shell | goutham414/kali-n900 | /kali_rootfs/var/lib/dpkg/info/fontconfig-config.postinst | UTF-8 | 7,598 | 3.8125 | 4 | [] | no_license | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
CONFAVAIL=/usr/share/fontconfig/conf.avail
CONFDIR=/etc/fonts/conf.d
# Check if this is the initial configuration and not an upgrade of an
# existing configuration
# Usage: if is_initial_configuration "$@"; then ... fi from top level
is_initial_configuration() {
... | true |
78081582da3ae4c4f75c1a897b5f695a431e70d3 | Shell | freeyiyi1993/fuck-gfw | /centos6.sh | UTF-8 | 3,357 | 3.328125 | 3 | [] | no_license | #!/bin/bash
function installVPN(){
echo "begin to install VPN services";
rpm -Uvh http://mirrors.hustunique.com/epel/6/i386/epel-release-6-8.noarch.rpm > /dev/null
iptables --flush POSTROUTING --table nat
iptables --flush FORWARD
rm -rf /etc/pptpd.conf
rm -rf /etc/ppp
arch=`uname -m`
yum... | true |
b63469a05ee75ed1bf9a068e5bb0160f0062511e | Shell | Elviond/dockerfiles | /medusa/rootfs/usr/local/bin/startup | UTF-8 | 770 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
addgroup -g ${GID} medusa && adduser -h /home/medusa -s /bin/sh -D -G medusa -u ${UID} medusa
mkdir -p /config/Medusa
chmod +x /etc/s6.d/medusa/* /etc/s6.d/.s6-svscan/*
if [ ! -f /config/Medusa/config.ini ]
then
echo "Generate default configuration ..."
echo "[General]
encryption_version = ${MEDU... | true |
b0bd3c63a0815a6bd7a8ef722187ae127a4045b9 | Shell | Osamagamal1911/osama | /db_project | UTF-8 | 12,742 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#Mohammad Sharnouby (Al General)
red='\033[0;31m'
green='\033[0;32m'
blue='\033[0;34m'
Cyan='\033[0;46m'
mkdir logs ; mkdir DBMS 2>> ./logs/error.log
clear
function main {
echo "1-->Select DB"
echo "2-->Create DB"
echo "3-->Rename DB"
echo "4-->Drop DB"
echo "5-->Show DBs"
echo "6-->Exit"
echo... | true |
979f736e9055059a243d7cce9c84ade194a5f0cb | Shell | duanguobang/awesome-scripts | /other/mysql/main/deploy/install_postscript.sh | UTF-8 | 2,210 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# Name : install_postscript.py
# Date : 2018.02.23
# Func : 安装后置脚本
# Note : 注意:当前路径为应用部署文件夹
#############################################################
set -eux -o pipefail
# 用户自定义
app_folder="mysql" # 项目名称
install_base="/usr/local/easyops" # 安装根目录
data_base="/data/easy... | true |
eb82ae181044dd5eec9073d77d1837b68750f20c | Shell | antonve/dotfiles | /install | UTF-8 | 1,074 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -Eeuo pipefail
: ${DOTFILES_PATH:="$HOME/dotfiles"}
ARGS=('')
for a in "$@"; do
ARGS=(${ARGS[@]} "$a")
done
info() {
printf "\r [ \033[00;34m..\033[0m ] $1\n"
}
user() {
printf "\r [ \033[0;33m??\033[0m ] $1\n"
}
success() {
printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
}
fail() {
pr... | true |
0ddfce738e853cc91932baea61639e032598d82f | Shell | scivision/build_hdf5 | /NCSA_Blue_Waters/build_hdf5_trunk_make.sh | UTF-8 | 1,878 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# ___ __ _ __ __
# / _ )/ /_ _____ | | /| / /__ _/ /____ _______
# / _ / / // / -_) | |/ |/ / _ `/ __/ -_) __(_-<
#/____/_/\_,_/\__/ |__/|__/\_,_/\__/\__/_/ /___/
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Build script to build hdf5 trunk on Blue Waters
source /opt/... | true |
d3e13fdd243036aab4697f7035ac31b55b271f7a | Shell | ibravo/tripleo | /3.install_undercloud.sh | UTF-8 | 2,591 | 2.71875 | 3 | [
"MIT"
] | permissive | echo Run this command after the images have been downloaded
cd /home/stack/images
openstack overcloud image upload
cd /home/stack
# Deploy configuration
# 3 Cephs = High HDD
# 3 Controllers = 16 Gb RAM, Std HDD
# 2 Compute = High CPU Count, High RAM
#
# ———————————————
# Undercloud 16
# ———————————————
# Ce... | true |
a4ceed931f1a9c0d909441ec85cb3e6a161f5e2d | Shell | LeCoyote/optware | /sources/samba/postinst.ds101g | UTF-8 | 532 | 2.53125 | 3 | [] | no_license | #!/bin/sh
echo Setting up samba symlinks so webinterface config works
[ -e /opt/sbin/smbd ] && ln -sf /opt/sbin/smbd /usr/syno/sbin/smbd
[ -e /opt/sbin/nmbd ] && ln -sf /opt/sbin/nmbd /usr/syno/sbin/nmbd
[ ! -d /opt/etc/samba ] && mkdir -p /opt/etc/samba
[ ! -d /opt/etc/private ] && mkdir -p /opt/etc/private
ln -sf /wr... | true |
7d7644696c6406e9a304a686847ce668dc4a5251 | Shell | lucaspcram/BugWorld | /runtests.sh | UTF-8 | 822 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
dashes=-------------------------------------------------------
currentos=`uname`
passed_msg="SUCCESS. All tests passed."
failed_msg="ERROR. Test suite failed. See above output for details."
if [ ! -x ./bin/bugworld_test ]
then
echo "Test suite not found."
exit 1
fi
if [ "$currentos" == "D... | true |
a21fed6a555d7bc0f86b7016ab2cb1042e3c6b50 | Shell | JetBrains/intellij-community | /plugins/sh/core/testData/oldParser/selectIncompleteParse.sh | UTF-8 | 370 | 3 | 3 | [
"Apache-2.0"
] | permissive | #error markers must be present, but the incomplete if should be parsed without remaining elements
select f in a; do; done
select FILENAME in *;
do
case $FILENAME in
"$QUIT")
echo "Exiting."
break
;;
*)
echo "You picked $FILENAME ($REPLY)"
;;
esac
don... | true |
76848eeadcda044804ab4be87c4a620eb6699f49 | Shell | alexey1234/nas4free-dnsmasq | /sbin/ntpd | UTF-8 | 6,904 | 3.625 | 4 | [] | no_license | #!/bin/sh
#
# $FreeBSD: releng/12.1/libexec/rc/rc.d/ntpd 349312 2019-06-23 16:00:29Z ian $
#
# PROVIDE: ntpd
# REQUIRE: DAEMON ntpdate FILESYSTEMS devfs
# BEFORE: LOGIN
# KEYWORD: nojail shutdown
. /etc/rc.subr
name="ntpd"
desc="Network Time Protocol daemon"
rcvar="ntpd_enable"
command="/usr/sbin/${name}"
extra_com... | true |
84dbe3aed8f88ca3d919530ea5014440b02f04a6 | Shell | TrevorHuval/SchemePrettyPrinter | /runtests | UTF-8 | 4,705 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# runtests - Run all testcases
#
# Usage: cd into submission directory and run script:
# ~/bin/runtests
# ~/bin/runtests testfile ...
#
# The script takes zero or more test files on the command line. If tests
# are listed on the command line, only those tests are run. Otherwise,
# all the tests f... | true |
1d5c2502bda4bd52445c63b206f2ecadeca6ad22 | Shell | lfckop/utils | /basecvt | UTF-8 | 771 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# base conversion between: binary, octal, decimal, and hexadecimal
# usage: basecvt input_base output_base input_number
# created by zhouwei on 2020-10-01
set -e
if [[ $# != 3 ]]; then
echo "Usage: basecvt input_base output_base input_number"
echo "For example: basecvt 2 10 1111 # it will return 15"
... | true |
a1da6c53b629828d2e07df8a305ad3e3f4e5a613 | Shell | ken3/LFS | /8.2/scripts/008_su-lfs.sh | UTF-8 | 142 | 2.734375 | 3 | [] | no_license | #!/bin/bash
. buildenv
[ `whoami` == root ] || exit 2
echo "Switch user to lfs."
echo "Change current directory to $LFS/scripts."
su - lfs
| true |
a4a9d5e858f7da18f9f4cce0599fab10dc1950c1 | Shell | tysox/ECU-scriptinglanguages | /portfolio/week3/megamenu.sh | UTF-8 | 2,153 | 4.40625 | 4 | [] | no_license | #!/bin/bash
#THIS SCRIPT ASSUMES YOU HAVE ALREADY RUN THE setPassword.sh SCRIPT IN THE WEEK 2 DIRECTORY.
#IF YOU HAVEN'T ALREADY, YOU WILL NEED TO DO SO BEFORE RUNNNING THIS SCRIPT.
#Run the passwordProtected script.
../week2/passwordCheck.sh
#
#If the passwordProtected script ran correctly (i.e. user entered correct... | true |
900f28476f5946cac33a4a7b18670f619be20cf9 | Shell | ParvaBhayani/Continuous-Monitoring-using-simple-bash-script | /simple-monitor.sh | UTF-8 | 1,193 | 3.421875 | 3 | [] | no_license | #!/bin/bash
HOSTS="10.0.0.10"
COUNT=5
checkperiod=60 #seconds
current_status_down_count=/etc/device_link/down/down.txt
current_status_up_count=/etc/device_link/up/up.txt
cmt=0
while true
do
sleep $checkperiod
count=$(ping -c $COUNT $HOSTS | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
... | true |
bdb5555640d2863afc6ac4fef5c4d5cae8514706 | Shell | timo-reymann/dotfiles | /.bin/gist | UTF-8 | 1,441 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set +x
source ~/.local/share/bash-tui-toolkit/bundle.bash
uuid()
{
local N B T
for (( N=0; N < 16; ++N ))
do
B=$(( $RANDOM%255 ))
if (( N == 6 ))
then
printf '4%x' $(( B%15 ))
elif (( N == 8 ))
then
local C='89ab'
prin... | true |
e5f1cab6412bef57a5eaf58e7ebdb58296e6d953 | Shell | TheGreatMcPain/dotfiles | /bspwm/.local/bin/bspwm/bspwm_exec | UTF-8 | 2,392 | 4.46875 | 4 | [] | no_license | #!/usr/bin/env sh
################################################
#
# This script tries to mimic i3's 'exec' command
#
################################################
# Default Values
ALWAYS="0"
SLEEP=0
unset PROCESS
unset EXEC
unset EXECOPT
# Check if UID is already set, because
# bash will complain if we try to m... | true |
8db0f0e021b0bdb0de471f29c6e5015aed450788 | Shell | meredithzj/linux_jiaoben | /expect/start.sh | UTF-8 | 314 | 2.59375 | 3 | [] | no_license | #!/bin/bash
n=`cat 1.txt|wc -l`
for i in `seq 1 $n`
do
user_1=`sed -n "$i"p /root/jiaoben1/expect/2.txt |awk -F":" '{print $1}'`
ip_1=`sed -n "$i"p /root/jiaoben1/expect/2.txt |awk -F":" '{print $2}'`
passwd_1=`sed -n "$i"p /root/jiaoben1/expect/2.txt|awk -F":" '{print $3}'`
./3.exp $user_1 $ip_1 $passwd_1
done
| true |
2ac43ec47170f92ce0e3fe379b5838d1aad2edd8 | Shell | mertensj/LinuxScripts | /arch_update.sh | UTF-8 | 236 | 3.484375 | 3 | [] | no_license | #!/bin/bash
UPDATE=$(pacman -Qu)
COUNT=$(pacman -Qu | wc -l)
if [[ -z $UPDATE ]]; then
echo "System is up to date"
elif [[ $COUNT == "1" ]]; then
echo "One update available"
else
echo "$COUNT updates available"
fi
exit 0
| true |
d354bd0eb5197daaf20854ece3ef3f951974bba9 | Shell | dmy/elm-sh-completion | /elm-completion.sh | UTF-8 | 37,102 | 3.75 | 4 | [
"BSD-3-Clause"
] | permissive | ##
#
# bash/zsh-bashcompinit elm completion script
#
# Copyright (C) 2019-2020 Rémi Lefèvre
#
# https://github.com/dmy/elm-sh-completion
#
# To install, two options:
#
# Option 1: Source the file from your ~/.bashrc or ~/.bash_profile
# For example:
# $ mkdir -p ~/.bash
# $ cd ~/.bash
# $ gi... | true |
d3694341666bc3c1c65a5a92a0ab23523ba34ed3 | Shell | smitch/works | /akashi/2015-1212.sh | UTF-8 | 266 | 2.703125 | 3 | [] | no_license | #! /bin/bash
# contents: install jre
# ref: http://www.java.com/en/download/linux_manual.jsp
echo tar -xvzf tarball
echo mv the directory to /usr/java
#TMP_DIR=tmp-1212-2015-akashi
#if [ ! -e $TMP_DIR ]; then
# mkdir $TMP_DIR
#fi
#cd $TMP_DIR
# rm -rf $TMP_DIR
| true |
a75bc80c8785c9cba79f75a5688b7f449fb2ddad | Shell | rahulholalkere/devcon2021-commerce-workshop | /resetLocalDockerEnv.sh | UTF-8 | 847 | 3.140625 | 3 | [] | no_license | #!/bin/sh
# Please adjust this variables to your project
dbvolume="devcon-commerce-2021_volume-mysql"
projectimage="devcon-commerce-2021"
echo "1/6 --> Stoping your docker-compose environment"
#Stop docker containers
docker-compose stop
echo "2/6 --> Removing your docker containers"
#Remove docker containers
docke... | true |
47159db704019e90d01d7b96b2ab01f7ca27b601 | Shell | parkychan/routine | /nagios/generate.file.sh | UTF-8 | 142 | 2.609375 | 3 | [] | no_license | #!/bin/bash
for i in `cat game.name`; do
if [ "$i" != "goddamn" ]; then
grep $i hosts.sort >> temp/$i
echo $i >> hosts.no6w
fi
done
| true |
aa576fa286c0671ca858d313312073b183e579cc | Shell | marcomusso/install-terraform.sh | /install-terraform.sh | UTF-8 | 2,791 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# vim: filetype=sh:tabstop=2:shiftwidth=2:expandtab
readonly PROGNAME=$(basename $0)
readonly PROGDIR="$( cd "$(dirname "$0")" ; pwd -P )"
readonly ARGS="$@"
# pull in utils
source "${PROGDIR}/utils.sh"
setup() {
LATEST_TERRAFORM=`curl -s https://releases.hashicorp.com/terraform/ | grep terraform_ | a... | true |
926f9e0c0a73fae01412f2c3c7a4631ae450a336 | Shell | jodiekurnia/mybot-master | /startup/decenterads/32cpu/startup-rootdec-web.sh | UTF-8 | 1,422 | 2.640625 | 3 | [] | no_license | #!/bin/sh
#change password root
printf "1sampai5\n1sampai5" | passwd root
#make swap
dd if=/dev/zero of=/swapfile count=32768 bs=1M
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
#add env deb _frontend
export DEBIAN_FRONTEND="noninteractive"
#update r... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.