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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fdbebb96e0e00d348e9e9ac90f5443ab74550e69 | Shell | bgxavier/devstack_utils | /scripts/create_unikernel_images2.sh | UTF-8 | 257 | 2.5625 | 3 | [] | no_license | for i in `echo unikernel{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15}`;do
glance image-create --name $i --is-public True --disk-format qcow2 --container-format bare --file /opt/osv_images/$i/$i.qemu
glance_unikernel.sh git@10.32.45.217:/opt/git/$i
done
| true |
653ad7108f487b93cf1e55f39ba8a08702f6ecc6 | Shell | carlosfbh/Master-Data-Science | /Shell/Ejercicios/Master_class_02v7_pg60/exercise1.sh | UTF-8 | 257 | 3.09375 | 3 | [] | no_license | #! /bin/bash
#Ejercicio 1.
#Enunciado. Save the information of 3 largest files located inside your home directory into a three_largest_file.txt. (hint: use ls with sort option and pipe the result)
cd
ls -lSa | head -4 | tail -3 > three_largest_file.txt
| true |
d9ad03e18a89801f6bbad307c96b9565d7f225c8 | Shell | cBio/sge | /q-node | UTF-8 | 455 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#
# (@) Andre Kahles 2013
set -e
if [ -z "$1" ]
then
nodes="$(qstat | grep -w -e r -e Rr | cut -f 2 -d '@' | cut -f 1 -d '.' | sort -u)"
else
nodes="$1"
fi
if [ ! -z "$nodes" ]
then
echo ""
for node in $nodes
do
echo "jobs on $node"
qstat | grep -w -e r -e Rr | grep ... | true |
e4a9af5664b65cdec171de3c56db022fb1d1f114 | Shell | Constantine94/arch-repo | /packages/mingw-toolchain/mingw-w64-cmake/mingw-cmake.sh | UTF-8 | 1,494 | 2.609375 | 3 | [] | no_license | #!/bin/sh
mingw_prefix=/usr/@TRIPLE@
export PKG_CONFIG_LIBDIR="${mingw_prefix}/lib/pkgconfig"
default_mingw_pp_flags="-D_FORTIFY_SOURCE=2"
default_mingw_compiler_flags="$default_mingw_pp_flags -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4"
default_mingw_linker_flags="-Wl,-O1,--sort-common,--as-needed"
ex... | true |
4abcde063b02c0518469507e27d539e370881492 | Shell | ibcbiomechanics/web-data | /scripts/setupDevelop/30vm | UTF-8 | 1,465 | 4.15625 | 4 | [] | no_license | #!/bin/bash
# This script is intended to help newly developers of the project to setup
# the virtual machine testing environment that will be necessary to develop
# the project
# Constants
VAGRANT_CMD="vagrant"
VAGRANT_URL="https://www.vagrantup.com/downloads.html"
LARAVEL_HS_BOX="laravel/homestead"
# Script
echo ""
e... | true |
d70a4578a985476b2a4bbf4ab90ee45e211055d7 | Shell | kentix-gmbh/api-script-unlock | /osx/open.command | UTF-8 | 382 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
APIKEY="API-KEY"
DOORLOCKID="DOORLOCK-ID"
DEVICEIP="DEVICE_IP"
RETURN=$(curl https://"$APIKEY":@"$DEVICEIP"/api/devices/doorlocks/"$DOORLOCKID"/unlock -k)
echo "$RETURN"
if [ "$RETURN" == '{"code":0}' ]; then
osascript -e 'tell app "System Events" to display dialog "Tür geöffnet"'
else
osascript -e 'tell... | true |
1a8da82a3cd794031520bc71f401f6ef687fb3a7 | Shell | OblivionCloudControl/oblcc-labs | /Security/300_DevSecOps/CodeCommit/install_software/needs_reboot.sh | UTF-8 | 382 | 3.21875 | 3 | [] | no_license | #!/bin/bash
/usr/bin/needs-restarting -r
if [ $? -eq 1 ] ; then
exit 194
else
# check if we're running the latest kernel.
if [ `/usr/bin/rpm -qa --last kernel | /usr/bin/head -1 | /usr/bin/awk {'print $1'}` != kernel-`/usr/bin/uname -r` ] ; then
/usr/bin/echo "Running kernel doesn't match latest installed ... | true |
40a7876e4363d299e80a7fa99ed0f2a5512d2371 | Shell | ryankumar/ryan_git | /shell-programming/add_number.sh | UTF-8 | 309 | 3.671875 | 4 | [] | no_license | #!/bin/sh
if [ $# -ne 2 ]
then
echo "Command Usage:./add_number.sh <$1> <$2>"
exit0
else
IFS='+'
echo "no. of arguments:$#"
echo "shell name:$0"
echo "2nd arguments name:$1"
echo "3rd arguments name:$2"
echo "addition of two argument:$*=$(($1+$2))"
echo "addition of two argument:$@=$(($1+$2))"
fi
| true |
a2a79ebafd548d7df05bbd671e3fdf2cf9c61f6e | Shell | martinseener/2sh | /2sh.sh | UTF-8 | 945 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# 2sh v1.0 (c) 2020 Martin Seener
# Licensed under the MIT License
source "$HOME/.2sh" >/dev/null 2>&1
setup_2sh() {
bw logout
echo "2sh for Bitwarden Setup"
echo -n "Enter your Bitwarden email address: "
read -r BWEMAIL
echo "Enter your Bitwarden password: "
read -r -s BW... | true |
04aeec36d8ff159befaf6bc7e464a1a00cc9c385 | Shell | sambacha/asdf-solidity | /tests/run_tests.bash | UTF-8 | 1,184 | 4.34375 | 4 | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -eu -o pipefail
help() {
cat << 'HELP'
Usage: run_tests.bash [--logfile FILE] TEST_SCRIPT...
Run test bash scripts
--logfile FILE save stderr to spcified file (default: test.log)
TEST_SCRIPT test bash script
- Start each test case with description 'echo "case: ..."... | true |
29d532c11d2bb1066dec1024ef030454fc519ed3 | Shell | sijah/openhabian | /functions/wifi.sh | UTF-8 | 1,932 | 3.703125 | 4 | [
"ISC"
] | permissive | #!/usr/bin/env bash
wifi_setup() {
echo -n "$(timestamp) [openHABian] Setting up Wifi (PRi3 or Pine A64)... "
if ! is_pithree && ! is_pizerow && ! is_pine64; then
if [ -n "$INTERACTIVE" ]; then
whiptail --title "Incompatible Hardware Detected" --msgbox "Wifi setup: This option is for the Pi3, Pi0W or the... | true |
a4915fe83b6c6ef374e8738c444c709e43584431 | Shell | Cloudxtreme/ripjaw | /modules/payloads/drop-key | UTF-8 | 835 | 3.265625 | 3 | [] | no_license | #!/bin/sh
web_ssh_key="10.80.100.13/ripjaw/modules/auxillary/ssh.key"
key_path="/opt//.ssh"
dropKey ()
{
## Get Config File
configFile=$(find / -name sshd_config)
## Get Keypath
## Change config
chattr -i $configFile
chattr -a $configFile
sed -i 's/^#*PermitRootLogin.*/PermitRootLogin yes/' $configFile #Per... | true |
21dd7303e2250af3d92fa28c0ea7814464526d87 | Shell | mk-pmb/text-to-speech-util-pmb | /src/dummytext.lib.sh | UTF-8 | 1,248 | 3.46875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"ISC"
] | permissive | #!/bin/bash
# -*- coding: utf-8, tab-width: 2 -*-
function dummytext () {
local TX_LANG="$1"; shift
local TX=
case "$TX_LANG" in
demo )
TX_LANG="$1"; shift
vengmgr lang:"$TX_LANG" prepare || return $?
( grab_text dummytext "$TX_LANG" \
&& pipe_text nl -ba \
&& pipe_text ven... | true |
bba36faf964fb087542699fe44ea9ac47aecd22a | Shell | koraynilay/linux-custom-scripts | /scrap_old_etc/bck_config_full.sh | UTF-8 | 2,219 | 3.203125 | 3 | [] | no_license | #!/bin/sh
dest="/root/dotfiles-full/config"
dest2="/root/dotfiles-full"
copy(){
printf "copying \"$conf\" to $dest\n"
cp -r "$conf" "$dest"
}
copy2(){
printf "copying \"$conf2\" to $dest2\n"
cp -r "$conf2" "$dest2"
}
copy_zsh(){
mkdir -p $dest2/omz
printf "copying \"$conf2/custom\" to $dest2/omz/custom\n"
cp -... | true |
53c7709ddf9bb723c899b60049d66a85f08526a7 | Shell | fvadon/docker-tooling | /images/8.10-Snapshot/docker-entrypoint.sh | UTF-8 | 4,691 | 3.3125 | 3 | [] | no_license | #!/bin/bash
set -e
NUXEO_CONF=$NUXEO_HOME/bin/nuxeo.conf
if [ "$1" = 'nuxeoctl' ]; then
if [ ! -f $NUXEO_HOME/configured ]; then
# PostgreSQL conf
if [ -n "$NUXEO_DB_TYPE" ]; then
if [ -z "$NUXEO_DB_HOST" ]; then
echo "You have to setup a NUXEO_DB_HOST if not using default DB type"
... | true |
36d017720a44130fd2196bc5ada7900526bff893 | Shell | kylifornication-code/kegiot | /bin/kickusb.sh | UTF-8 | 585 | 3.328125 | 3 | [
"ISC"
] | permissive | #!/usr/bin/env bash
echo "kicking USB..."
export USBPATH=$(lsusb | grep -i 'Future Technology Devices' | cut -d' ' -f 2,4 | cut -d':' -f 1 | sed 's/ /\//')
echo "/opt/kegiot/bin/usbreset /dev/bus/usb/$USBPATH"
/opt/kegiot/bin/usbreset /dev/bus/usb/$USBPATH
code=$?
if [ $code == 0 ]; then
echo "success: restarting se... | true |
aa26ccb32129c60535344f34b072fd885f98665f | Shell | cswaroop-opensource/incubator-metron | /metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_load.sh | UTF-8 | 847 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
BIGTOP_DEFAULTS_DIR=${BIGTOP_DEFAULTS_DIR-/etc/default}
[ -n "${BIGTOP_DEFAULTS_DIR}" -a -r ${BIGTOP_DEFAULTS_DIR}/hbase ] && . ${BIGTOP_DEFAULTS_DIR}/hbase
# Autodetect JAVA_HOME if not defined
if [ -e /usr/libexec/bigtop-detect-javahome ]; then
. /usr/libexec/bigtop-detect-javahome
elif [ -e /usr/lib/... | true |
3a9e3b60d835a24637b0f8da6938cc797074bb28 | Shell | datianshi/apache-forward-proxy-boshrelease | /jobs/apache/templates/ctl.erb | UTF-8 | 781 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
RUN_DIR=/var/vcap/sys/run/apache
LOG_DIR=/var/vcap/sys/log/apache
PIDFILE=/var/vcap/packages/httpd-2.4.18/logs/httpd.pid
case $1 in
start)
mkdir -p $RUN_DIR $LOG_DIR
chown -R vcap:vcap $RUN_DIR $LOG_DIR
#echo $$ > $PIDFILE
/var/vcap/packages/httpd-2.4.18/bin/htpasswd -bc /var/vcap/pac... | true |
2ed7a82923e9ad0376cc102ca2e671962a8a0fcf | Shell | zetalabs/hi3520d | /osdrv/ezcfg/ezcfg-0.1/scripts/gen-pot-files.sh | UTF-8 | 798 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SOURCE_LIST=$1
usage() {
echo "usage: ./gen-pot-files.sh <list file>"
}
dbg() {
echo $1
}
if [ "x$SOURCE_LIST" = "x" ] ; then
usage
exit 0
fi
DOMAIN=
OUT_FILE=
IN_FILE=
while read LINE
do
echo $LINE
if [ "x$LINE" = "x" ] ; then
echo "LINE is empty."
continue;
fi
FIRST_CHAR=${LI... | true |
8a5625233827580f1e10786fea69bd34d26bf8f9 | Shell | laurenCassidy/wiki-bert-pipeline | /pipeline/900-create-tfrecords.sh | UTF-8 | 1,520 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# Create TFRecords with given vocabulary and sequence length.
# NOTE: replace instances of "DOC_FILTERED" with "TOKENIZED_TEXT" in this
# script to generate records for all texts (instead of filtered).
PIPELINE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "$PIPELINE_DIR/... | true |
2e1636a5d1ac0780579721db24eb69bbcc51e799 | Shell | s9y/Serendipity | /bundled-libs/smarty/smarty/run-tests-for-all-php-versions.sh | UTF-8 | 1,068 | 4.21875 | 4 | [
"BSD-3-Clause",
"LGPL-3.0-only",
"LGPL-3.0-or-later",
"LGPL-2.1-or-later"
] | permissive | #!/bin/bash
Help()
{
# Display Help
echo "Runs PHPUnit tests for all PHP versions supported by this version of Smarty."
echo
echo "Syntax: $0 [-e|h]"
echo "options:"
echo "e Exclude a group of unit tests, e.g. -e 'slow'"
echo "h Print this Help."
echo
}
Exclude=""
# Get the options
whi... | true |
f9908a45da71818736758123d99fff7521b83fee | Shell | ejohnfel/sweep | /sweep | UTF-8 | 2,203 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
DEBUG=0
PING=1
TRACERT=0
FINGERPRINT=0
port=""
prefix=129.49.31
start=0
stop=255
function DebugMsg()
{
[ ${DEBUG} -gt 0 ] && Msg "$(date) : ${*}"
}
function Msg()
{
echo -e "${*}"
}
function Usage()
{
echo -e "sweep\n\nSweep DNS for a subnet"
echo -e "========================="
echo -e "-h\t\tThis ... | true |
7369e960a30946f99d065d0c74946452179e5186 | Shell | imatyukin/shell | /UNIXandShellProgramming/chapter11/setposparm.ksh | UTF-8 | 483 | 2.515625 | 3 | [] | no_license | #!/bin/ksh
set a b c
echo "Number of argument are $#"
echo "The command line arguments passed are $*"
echo "The first argument is $1"
echo "The second argument is $2"
set one two
echo "Number of argument are $#"
echo "The command line arguments passed are $*"
echo "The first argument is $1"
echo "The second argument i... | true |
b12daf9dd1cda3bac7f4ee606091368cdbff5ea1 | Shell | dev0x13/grammar_experiments | /antlr4_repo_key_grammar/tools/test_grammar_Java.sh | UTF-8 | 340 | 3.5625 | 4 | [] | no_license | #!/bin/bash
set -e
if (( $# < 3 )); then
echo "Usage: $0 <grammar name> <expression name> <test string>"
exit 1;
fi
script_dir=$(dirname "$0")
source $script_dir/base.sh
grammar_name=$1
exp_name=$2
test_string=$3
cd $output_dir
# Change `-tree` to `-gui` to show AST
$grun_cmd $grammar_name $exp_name -tree... | true |
4a334c57209f7dd3b5f34769ee1bb17da4dd928c | Shell | Ramani-Yogesh/shell_script | /test.sh | UTF-8 | 864 | 3.6875 | 4 | [] | no_license | #!/bin/bash
read -p "Enter the hostname: " host
read -p "Enter the user_name add to the $host:" name;
read -p "Allow to use sudo access(yes/no):" sudo;
ping -c3 $host &> /dev/null
a=$(echo $?)
if [ $a == 0 ]
then
echo "Connecting to $host";
else
echo "You are not able to connect to the $host, Please Check";
exit 0
fi... | true |
f7a544f56b6299ea767cfafdc08ff50e50ce8d0c | Shell | locona/action-github-release-qadoc | /entrypoint.sh | UTF-8 | 600 | 2.734375 | 3 | [] | no_license | #!/bin/bash
cd "$GITHUB_WORKSPACE" || exit 1
export GITHUB_TOKEN="${INPUT_GITHUB_TOKEN}"
GITHUB_REPOSITORY="${INPUT_GITHUB_REPOSITORY}"
ISSUE="${INPUT_ISSUE}"
SPLIT_GITHUB_REPOSITORY=(${GITHUB_REPOSITORY//\// })
ORGANIZATION=${SPLIT_GITHUB_REPOSITORY[0]}
REPOSITORY=${SPLIT_GITHUB_REPOSITORY[1]}
echo "INPUT_GITHUB_R... | true |
9fa88a249bb491e9fe7d915bd29a1eae23cdaddb | Shell | Prashu94/Learnings | /LinuxP/second_program.sh | UTF-8 | 80 | 2.890625 | 3 | [] | no_license | for(( i=0; i<100; i++))
do
if [ $((i % 2)) != 0 ];
then
echo $i
fi
done
| true |
c74c7a4643222406f5d592bf93c70b9bbcc50432 | Shell | lubosz/wiithon | /wiithon_autodetectar.sh | UTF-8 | 885 | 3.71875 | 4 | [] | no_license | #!/bin/bash
SEPARADOR=";@;"
# = 1 --> SI tienes udevadm
# = 0 --> NO tienes udevadm
function comprobarTienesUDEV()
{
test -x /sbin/udevadm
return $?
}
for i in $(awk 'NR>2 {print "/dev/" $4}' /proc/partitions);
do
MAGICO=`head --bytes=4 $i 2> /dev/null`;
LEGIBLE=`echo $MAGICO | wc -c`;
# Si hay 5 caracteres = W... | true |
937bd5db492fe9314bab01ea212f1d9246e26079 | Shell | fazeelghafoor/unix-assignment | /guessinggame.sh | UTF-8 | 458 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
echo "Guessing game start, please guess how many files are in current directory"
function check {
echo "Enter number of files in current directory:"
read check
files=$(ls -1 | wc -l)
}
check
while [[ $check -ne $files ]]
do
if [[ $check -gt $files ]]
then
echo "TOO HIGH, guess again"
... | true |
e720fced4c84b5493dbdc2dae8340e346e3534a1 | Shell | angeloobeta/SpaceApp | /run_kubernetes.sh | UTF-8 | 642 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env bash
# This tags and uploads an image to Docker Hub
# Step 1:
# This is your Docker ID/path
# dockerpath=<>
dockerpath= angeloobeta/microservice-app
# Step 2
# Run the Docker Hub container with kubernetes
kubectl run udacity-microservice-project\
--images=angeloobeta/microservice-app
--port=80... | true |
07d91aa4fbaaf9cde4c02f8ade5b13014d9ac420 | Shell | qubvel/train_imagenet | /docker_build.sh | UTF-8 | 181 | 2.515625 | 3 | [] | no_license | #!/bin/bash
# include parse_yaml function
. parse_yaml.sh
# read yaml file
eval $(parse_yaml config.yaml "config_")
cd docker/
nvidia-docker build -t $config_docker_image_name .
| true |
77151e789fbdefaecb15938716ff8462c4faada7 | Shell | studtool/api-requests | /sign_up_range.sh | UTF-8 | 179 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
address="${1}"
first="${2}"
last="${3}"
password="${4}"
for i in $(seq "${first}" "${last}"); do
./sign_up.sh "${address}" "user${i}@example.com" "${password}";
done
| true |
b1e10b618008ee54bbbe0815d4e73d83dd40d756 | Shell | fujimisakari/ratpoison-config | /cmds/show_all_windows.sh | UTF-8 | 885 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Copyright (C) 2003 Rupert Levene
# Author: Rupert Levene <r.levene@lancaster.ac.uk>
# List all groups and the windows in each group.
# we want to cope with spaces in group names
IFS='
'
#initialize our list
list=''
# Allow external scripts to tell it where ratpoison is
if [ -z $RATPOISON ]; then
R... | true |
4baf94f6681c6aba2ac4c1982d95337c0d22f8a1 | Shell | halobrain/knode | /shell-scripts/kill/demokill.sh | UTF-8 | 1,984 | 3.578125 | 4 | [] | no_license |
# To look for the process runnign in linux
ps -ef
killall [process name]
The kill command terminates individual processes as specified by their PID.
kill [PID]
ps aux | grep "emacs"
sudo kill -9 process_id_1 process_id_2 process_id_3
You can also combine the kill command the pidof command to kill all the ... | true |
9d222063d1744a138f94cf7e2194083a40344ff7 | Shell | YuhanLi1/An-Empirical-Evaluation-of-Distributed-Key-Value-Storage-Systems | /project1/memcached/scripts/nodeExp.sh | UTF-8 | 503 | 2.765625 | 3 | [] | no_license | #!/bin/bash
# A binder script to call the driver on all the nodes
# Experiment parameters
nodeIdfp=/home/ubuntu/project/nodeId
nListfp=/home/ubuntu/project/nList.config
# Arguments
expType=$1
numNodes=$2
expSize=$3
arg="$nListfp $expType $numNodes $expSize"
parallel-ssh -h ../pssh-hosts -P -x "-i ~/.ssh/id_rsa -l ub... | true |
db15138aa0141bea4e0aeb4e787f40142e224393 | Shell | zqhZY/myblog | /Project/tools/html_convert/convert.sh | UTF-8 | 767 | 3.96875 | 4 | [] | no_license | #!/bin/sh
echo "Usage: $0 [-s src_dir] [-d dst_dir]"
SRCDIR=webpage
DSTDIR=text
#set -- $(getopt s:d: "$@")
while [ $# -gt 0 ]
do
if [ "$1" == "-s" ] ;then
SRCDIR=$2
elif [ "$1" == "-d" ] ;then
DSTDIR=$2
fi
shift
done
echo "SRCDIR=$SRCDIR"
echo "DSTDIR=$DSTDIR"
mkdir -p $DSTDIR
# 处理当前目录
FILES=$(ls $SRCD... | true |
c37ee313cf98cadfe58161daf0a12c0990222cc8 | Shell | LWSS/IcedTech | /base/sound/convert.sh | UTF-8 | 211 | 3.515625 | 4 | [] | no_license | #!/bin/bash
if ! [ -x "$(command -v ffmpeg)" ]; then
echo 'Error: ffmpeg is not installed.' >&2
exit 1
fi
for i in $(find . -name "*.ogg" -type f); do
echo "$i"
ffmpeg -n -i "$i" "${i%.*}.wav"
done | true |
36d067a0a743b79047af0cfc475eb1b00e5751ef | Shell | rushioda/PIXELVALID_athena | /athena/Trigger/TrigFTK/TrigFTKSim/config/input/repackage.sh | UTF-8 | 804 | 2.765625 | 3 | [] | no_license | #!/bin/bash
# SAMPLE script to break a list of single muons into per-region files
# This allows to run pattgen/corrgen using only muons that belong to that region
# This script also effectively removes all events that fail filtering cuts
# NOTE: you need a region lookup file for the entire sample (region_${label}.dat... | true |
d61abee19712db0b57e51df3c42ad06c96db0368 | Shell | embergabor/wiiucfwdownloader | /wiiu_cfw.sh | UTF-8 | 1,141 | 3.390625 | 3 | [] | no_license | #!/bin/bash
extractFiles(){
mkdir sdcard/
mkdir sdcard/install/
unzip -q -o download/wup_installer_gx2.zip -d sdcard
unzip -q -o download/nanddumper.zip -d sdcard
unzip -q -o download/wiiu-extracttosd.zip -d sdcard
unzip -q -o download/homebrew_launcher.v1.4.zip -d sdcard
unzip -q -o download/savemii_mod.... | true |
ded54e32511ae115e61922fb958b156269c18ff8 | Shell | sanpingz/dbtest | /tools/bin/switchto | UTF-8 | 5,461 | 3.5625 | 4 | [] | no_license | #!/bin/ksh
function help
{
print " Usage: switchto <DB name> [n-k]/[n]/[<Node name>...] [-f conf file] \n Example: \n\
1. All nodes switch to cassandra \n\
switchto cassandra\n\
2. Node01 switchs to Cassandra \n\
switchto cassandra node01\n\
3. Node03 and Node05 switch to Cassandra \n\
switchto cass... | true |
d43a19eb78cb0e294f5cf79b7d10e06f412ba8e2 | Shell | rfahham/projetos_bash | /renomeando-arquivo/rename.sh | UTF-8 | 523 | 3.296875 | 3 | [] | no_license | #!/bin/bash
path='/Users/ricardo.fahham/Documents/projetos/projetos_bash/renomeando-arquivo'
echo $path
ls -la $path
# mv $path/arquivo.csv $path/arquivo.txt
# mv $path/arquivo.txt $path/arquivo.csv
# mv $path/$1.csv $path/$1.txt
# mv $path/$1.txt $path/$1.csv
for i in $@
do
# mv $path/$i.csv $path/$i.txt
... | true |
dda186cc3fd10a47164bf34b640a5a906e012ec4 | Shell | PennSIVE/qcbids | /electron/dist.sh | UTF-8 | 867 | 2.59375 | 3 | [] | no_license | #!/bin/bash
if [ -e .env ]
then
. .env # define GH_TOKEN
fi
# see https://www.electron.build/multi-platform-build#docker
docker run --rm -ti \
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_... | true |
272edb99dd2956a7fbd1fe81ed5a044a6123f9a5 | Shell | bcgov/common-document-generation-service | /app/docker/python | UTF-8 | 1,844 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following li... | true |
b5d49f0edf86dad841c9d1b8c52859941823b315 | Shell | jkanclerz/ubuntu-cookbooks | /cookbooks/ghost/recipes/install.bash | UTF-8 | 2,530 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash -e
function installDependencies()
{
if [[ "$(existCommand 'node')" = 'false' || "$(existCommand 'npm')" = 'false' || ! -d "${ghostNodeJSInstallFolder}" ]]
then
"${appPath}/../../node-js/recipes/install.bash" "${ghostNodeJSVersion}" "${ghostNodeJSInstallFolder}"
fi
}
function install()
... | true |
325fb1f97f0eea54a903637d18d00b8582a1ac3d | Shell | dongdong-2009/new_swamm | /trunk_new/nazc/bin/script/.svn/text-base/UploadScheduler.do.svn-base | UTF-8 | 1,344 | 3.328125 | 3 | [] | no_license | #!/bin/bash
trap "" SIGINT SIGKILL SIGSEGV SIGTERM
#
# Metering Data Upload Scheduler
#
#
export LD_LIBRARY_PATH=/usr/lib:/lib:/app/lib:/app/sw/lib
EXE=/app/sw/dbupload
DBFILE=/app/sqlite/Agent.db
DBEXE=/app/sw/sqlite3
OPT=$*
while true
do
# fix value too great for base error
MIN=`date "+%M" | sed 's/^0//'`
MOD... | true |
5eb0a50f00e62afc54317b88762f4e5b5f94d204 | Shell | elifesciences/builder | /python-docker.sh | UTF-8 | 757 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# runs given python commands inside a Builder container.
# just like `.project.py`, the contents of stdout will be read by a YAML parser
set -e
# errcho() { echo "$@" 1>&2; } # writes to stderr, will not be interpreted as YAML
# errcho "debug"
image=py3
# skips building image each time
#if ! docker insp... | true |
dfdc50d59b0bc77f26f20123c3e10caea675de13 | Shell | tomatohammado/create-prettier-md-config | /create-prettier-md-config.sh | UTF-8 | 243 | 3 | 3 | [] | no_license | #!/bin/bash
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
LCYAN='\033[1;36m'
NC='\033[0m' # No Color
echo -e "${YELLOW}Creating ${NC}./.prettierrc"
touch .prettierrc
echo '{
"proseWrap": "always"
}
' >> .prettierrc
echo -e "${GREEN}Done!${NC}" | true |
92b0a8ace18537ec97c84c716dd6fec8d27f579d | Shell | TheGandalfChallenge/gandalf-buildpack-clojure | /bin/compile | UTF-8 | 5,193 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
# fail fast
set -e
indent() {
sed -u 's/^/ /'
}
# parse args
BUILD_DIR=$1
CACHE_DIR=$2
# Determine Leiningen version
if [ "$(grep ":min-lein-version \"2" $1/project.clj)" != "" ]; then
LEIN_VERSION="2.0.0-preview8"
LEIN_BIN_SOURCE="$(dirname $0)/... | true |
77de8818364b5c5dfab234291a5bea1969acaa93 | Shell | akankshamahajan15/Encryption-Decyrption-in-kernel | /testscript_ec.sh | UTF-8 | 375 | 3.046875 | 3 | [] | no_license | #!/bin/sh
# This test basic functionality of encryption decryption and whether two files
# after encryption are same or not
/bin/rm -f log_ec
/bin/rm -f results_ec
touch log_ec
touch results_ec
echo ""
echo "EXTRA CREDIT scripts"
echo ""
for i in {01..10}
do
echo running script test_ec$i.sh
./test_ec$i.sh
... | true |
fc634a4d16e51d0c0e4ee7476b277ceaca12a1c0 | Shell | githubfollow/nodejs-nlw4 | /src/scripts/database.sh | UTF-8 | 630 | 3.46875 | 3 | [] | no_license | #!/bin/bash
set -e
if [ -f .env ]; then
export $(cat .env | grep -v '#' | awk '/=/ {print $1}')
fi
echo "stop & remove old docker and starting new instance of [$HOST]"
(docker kill $HOST || :) && \
(docker rm $HOST || :) && \
docker run --name $HOST \
-e POSTGRES_USER=$UNAME \
-e POSTGRES_PASSWORD=$PWORD \
... | true |
db2df7b2bece74cc46266c791a0af3d1430c4d17 | Shell | stefanosKarantin/dotfiles | /bin/Q | UTF-8 | 1,016 | 3.984375 | 4 | [] | no_license | #!/usr/bin/env bash
__update-repo() {(
local LEN=${2:-20}
printf "%-${LEN}.${LEN}s" $(basename $1)
cd $1
git fetch --quiet
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse @{u})
BASE=$(git merge-base @ @{u})
if [[ $LOCAL = $REMOTE ]]; then
printf "\e[32mUp to date\e[0m\n"
elif [[ $LOCAL = $BASE ]... | true |
fae13e672128687297f782f0b44766e9d47c54d8 | Shell | cash2one/clickstream_data_handler | /sh/tohiveDate.sh | UTF-8 | 619 | 2.6875 | 3 | [] | no_license | #!/bin/bash
now_date=$1
zipfileName="UserEventLog"$now_date".json.en.tar.gz"
unzipfileName="UserEventLog"$now_date".json.en"
unzipfileName2="UserEventLog"$now_date".json"
export LANG=zh_CN.UTF-8
cp /dev/null tohive.py.log
tar zxvf /data/usereventlog/zipfile/$zipfileName -C /data/usereventlog/decrypt
mv /data/usereventl... | true |
85c3cef57f0ee7065bce862642aba13fe672cedd | Shell | FauxFaux/debian-control | /f/fping/fping_4.0-6_amd64/postinst | UTF-8 | 1,185 | 3.53125 | 4 | [] | no_license | #!/bin/sh
set -e
case "$1" in
(configure)
# Use setcap on Linux only (setuid setting see debian/rules)
if [ "$(uname -s)" = "Linux" ]; then
if ! setcap cap_net_raw+ep /usr/bin/fping; then
echo "WARNING: 'setcap cap_net_raw+ep /usr/bin/fping' failed." 1>&2
... | true |
c40f87a55dc544c39be4dd74cef89b6a33fd4ea4 | Shell | ManjunathShiv/MySpeaker | /Scripts/CI-CD-Scripts/14-Record-Time/record_execution_time.sh | UTF-8 | 604 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh -e
# Check If we need to skip CI
cd ../1-Skip-CI
sh should_skip_continuous_integration.sh
if [ $? == 1 ]
then
exit 0
else
cd -
fi
echo ""
echo "--------------------------------------------------"
echo " Record Execution Time of CI/CD Scripts "
echo "------------------------------------------... | true |
9db65a93b7059c95b233072ea70bb51cfd62e789 | Shell | Xero-Hige/tp7508-2014 | /grupo07 (listo para instalar)/exe/start.sh | UTF-8 | 1,046 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
# Este script ejecuta el script pasado por parametro
# solo si este no se encuentra en ejecucion actualmente
#Valido cantidad de parametros ingresados
if [ $# -ne "2" ]; then
echo "Cantidad de parametros incorrecta"
exit 1
fi
#Verifico que este inicializado el ambiente
#ENVIRONMENT=1 #solo para ... | true |
7f0f13212168acd3bdc702ba07f036c97e0a559e | Shell | gdm/gentoo-bb | /dock/gentoobb/images/riemann-dash/Buildconfig.sh | UTF-8 | 493 | 2.640625 | 3 | [
"BSD-2-Clause"
] | permissive | #
# build config
#
PACKAGES="dev-libs/libxslt sys-libs/zlib"
KEEP_HEADERS=true
configure_bob() {
:
}
#
# this method runs in the bb builder container just before starting the build of the rootfs
#
configure_rootfs_build()
{
unprovide_package "sys-libs/zlib"
}
#
# this method runs in the bb builder container ... | true |
8a57ca57022b87c44cdb6ed0cfc290d39af93159 | Shell | jsilveira/warrolight-1 | /arduino/compile_all.sh | UTF-8 | 705 | 4.15625 | 4 | [] | no_license | #!/bin/bash
# Compile every sketch in the arduino/ directory. Useful for quickly making
# sure we did not break the build. Soon to be integrated in CI.
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
RESET=$(tput sgr0)
die () { >&2 echo "error: $1"; exit 1; }
command -v arduino-cli > /dev/null || die "arduino-cli not inst... | true |
597c26fdefd7453d3a2d5c9920e5ff6ef9d92e60 | Shell | R-Fehler/raspberrypi-hiwi | /Programs/wificronjob.sh | UTF-8 | 10,028 | 3.75 | 4 | [] | no_license | #!/bin/bash
# UPLOAD Recorded Data and get WIFI
SCRIPT_DIR=$(dirname $(readlink -f $0))
source ${SCRIPT_DIR}/../rpi_config.cfg
# 0: disable debugging
# 1: enable debugging
debug=1
# 0: do not update git
# 1: update git
update_git=1
# Subdirectory an remote server
REMOTE_SUB_DIR=${HOSTNAME}
# 0: leave files as is
# 1... | true |
6af3bf27bdeaeceb43679aabe66af540085e8cb0 | Shell | dillonfzw/utils | /update_vpid.sh | UTF-8 | 3,133 | 3.671875 | 4 | [] | no_license | #! /bin/bash
DEFAULT_entrypoint=dsm60
# san1 has primary MAC 00:e0:4c:7a:e3:a7
# but synology needs to have 00:11:32 prefix
DEFAULT_mac1=00:11:32:7a:e3:a7
DEFAULT_menuentry=bare
DEFAULT_vid=""
DEFAULT_pid=""
DEFAULT_fimg=""
source log.sh
source getopt.sh
if [ ! -f "$fimg" -a ! -b "$fimg" ]; then
log_error "Image... | true |
a2d9285e344d59236e53c957fa08fe123075db44 | Shell | sushpa/Foam.vim | /install | UTF-8 | 4,843 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#
#----------------------------------------------#
# Contributor: Tobias Holzmann #
# Last Change: December 2016 #
#----------------------------------------------#
# Location: www.Holzmann-cfd.de #
# Email: Tobias.Holzmann@Holzmann-cfd.de #
#-----------... | true |
d6d7c9f07dcb39575b54ddd2d03bc6813eda5e80 | Shell | GentlemanJimStacey/MyGitHubJunk | /Random stuff/ConvertBitBucket.sh | UTF-8 | 8,152 | 4.09375 | 4 | [] | no_license | #!/bin/bash
PROG=$(basename "$0")
usage() {
echo "
usage: $PROG [Options]
Example: ./$PROG -r devopsadmin
This application automates the conversion of HG repos to Git
-h : display this help
-r : Name of the main repo
"
}
while getopts ":r:h" opt; do
let optnum++
cas... | true |
226acddf5a9a2cca1ab0eee2437351144f7b1d48 | Shell | nextstrain/cli | /devel/venv-run | UTF-8 | 143 | 2.578125 | 3 | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | #!/bin/bash
# shellcheck disable=SC1091
set -eou pipefail
base="$(cd "$(dirname "$0")/.."; pwd)"
source "$base/.venv/bin/activate"
exec "$@"
| true |
0ab10e5d04c83f98bfc212fcaaa69d19c0a98c83 | Shell | mahbubzulkarnain/setup | /dotfile/zsh/.zshrc | UTF-8 | 8,522 | 3.125 | 3 | [] | no_license | # Alias native base custom theme init
alias inb="node ./node_modules/native-base/ejectTheme.js"
# Alias for show my device IP address
alias ip='ifconfig | grep "inet "'
# Alias for check connection
alias p='ping 8.8.8.8'
# Alias for git status
alias gis='git status'
# Alias for git checkout
alias gic='git checkout'... | true |
4d9154cc0da1f6f3da3c9eb0d4f04223d2cf653a | Shell | BaronMsk/docker-octoprint-arm | /swich.sh | UTF-8 | 692 | 4.09375 | 4 | [] | no_license | #! /bin/bash
PORT_NUM=$1
if [ $2. == 'on.' ]; then
NEW_VALUE=1
else
if [ $2. == 'off.' ]; then
NEW_VALUE=0
else
echo 'Usage: $0 PORT_NUM on|off'
exit
fi
fi
# Настраиваем порт GPIO на вывод
if [ ! -e /sys/class/gpio/gpio$PORT_NUM ]
then echo $PORT_NUM > /sys/class/gpio/export
fi
# Читаем старое состояние
OL... | true |
7f44c3694449e39d698459fab63f181b8bbaa153 | Shell | sxs4337/MMVR | /multiple_caption_condition.sh | UTF-8 | 2,058 | 3.15625 | 3 | [] | no_license |
# Take a text file of captions as input
if [ "$#" -ne "1" ]; then
echo "Provide a file with input sentences."
exit 1
fi
# Define hyper parameters
opt_layer=fc6 # This is fixed to be fc6 unless we change the generator
act_layer=fc8 # fc8 because the LRCN extract fc8 features from AlexNet
input_caption... | true |
fbcd7886eaf031e75e6e712371ca77545fe41177 | Shell | justpayne/jburkardt-f77 | /asa243/asa243_prb.sh | UTF-8 | 492 | 3.015625 | 3 | [] | no_license | #!/bin/bash
#
gfortran -c -g asa243_prb.f >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling asa243_prb.f"
exit
fi
rm compiler.txt
#
gfortran asa243_prb.o -L$HOME/libf77/$ARCH -lasa243
if [ $? -ne 0 ]; then
echo "Errors linking and loading asa243_prb.o"
exit
fi
rm asa243_prb.o
#
mv a.out asa243_prb
./... | true |
d14676afd67ba9dda96c36ef40c8d7220f558570 | Shell | espoon-voltti/espooevents-service | /entrypoint.dist.sh | UTF-8 | 3,000 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This file is used by Dockerfile.dist
set -euo pipefail
# Require these env vars to be set
: "${ALLOWED_HOSTS:?}"
: "${CACHE_HOST:?}"
: "${CACHE_PASSWORD:?}"
: "${DB_APP_PASSWORD:?}"
: "${DB_APP_USER:?}"
: "${DB_HOST:?}"
: "${DB_MIGRATION_PASSWORD:?}"
: "${DB_MIGRATION_USER:?}"
: "${DB_NAME:?}"
: "${SECR... | true |
a7a1d42e8dc69fef9bbade0409608f8be533d1f2 | Shell | blhguo/hypomeals | /hypomeals/initserver.sh | UTF-8 | 597 | 3.28125 | 3 | [] | no_license | #!/bin/bash
function init {
echo "Making migrations..."
python3 manage.py makemigrations --no-input
if [ "$?" != "0" ]; then
return 1
fi
echo "Running migrations..."
python3 manage.py migrate --no-input
if [ "$?" != "0" ]; then
return 1
fi
echo "Initializing DB..."
... | true |
abdba1418e8f24cd5a45c361ab1923c048dfe37c | Shell | jan379/structuredDocumentation | /genSkeleton.sh | UTF-8 | 3,015 | 3.6875 | 4 | [] | no_license | #/usr/bin/env bash
mkdir userdocumentation
cd userdocumentation/
mkdir "Tutorials" "how-to guides" "Explanation" "Reference"
cat <<EOF> Tutorials/guide.md
# Tutorial writing
## Goal
As a Tutorial writer I want to enable our users to have fun with our products so they want to use them again and again."
## Accept... | true |
c5d308c88e10b1d1ece9116bf656fbf6721c98e1 | Shell | MrYang/shell | /sample/deploy.sh | UTF-8 | 1,503 | 3.8125 | 4 | [] | no_license | #!/usr/bin/env bash
gitPath="/data/git/repo"
appHome="/data/app"
appName="push-server"
pidfile="${appHome}/${appName}/logs/app.pid"
function update() {
cd ${gitPath}
git checkout dev
git pull
}
function check_pid() {
if [ -f ${pidfile} ];then
pid=`cat ${pidfile}`
if [ -n ${pid} ]; the... | true |
2ffe62687f7dc02006c45b6a5bf01dd931e7293d | Shell | FLVAL/PKGBUILDS | /welcome/translations-welcome-sk.bash | UTF-8 | 8,849 | 3.03125 | 3 | [] | no_license | # Preklad uvítacej aplikácie.
#
# Poznámka: premenné (ako $PRETTY_PROGNAME nižšie), môžu byť použité ak už boli definované buď
# - v uvítacej aplikácii
# - globálne
#
#
# Akýkoľvek reťazec má byť definovaný ako:
#
# _tr_add <language> <placeholder> "string"
# alebo
# _tr_add2 <placeholder> "string"
#
# k... | true |
e2fdc1928dc3f7ce21d3b2e64b089ab8f3c28f60 | Shell | Peeja/dokku-addons | /redis/dump | UTF-8 | 310 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
ID="$1"
PASSWORD="$2"
APPDIR="$ADDON_DATA/$ID"
CID=$(< $APPDIR/CONTAINER)
IP=$(docker inspect $CID | grep IPAddress | cut -d '"' -f 4)
docker run -rm addons/redis redis-cli -h $IP -a $PASSWORD SAVE > /dev/null
cat $APPDIR/data/dump.rdb
| true |
dc8311950c8192e813d116cf226b676e21786ac4 | Shell | ryobot/spread_server | /spread | UTF-8 | 1,857 | 3.96875 | 4 | [] | no_license | #!/bin/sh
#
# PID file path
PID_FILE=/root/Spread/spread.pid
# LOG file path
LOG_FILE=/root/Spread/spread.log
PROG=/root/Spread/tcpServerThread
# The following is a functions.
function start() {
ls $PID_FILE > /dev/null 2>&1
if [ $? -eq 0 ] ; then
pid=`cat $PID_FILE`
kill -0 $pid > /dev/nul... | true |
65a0b86df5b0fab354303e0ae40716a076e4cf74 | Shell | djangraw/FelixScripts | /PRJ16_TaskFcManipulation/RawData/SetUpParcWarping.sh | UTF-8 | 388 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# SetUpParcWarping.sh
#
# Created 8/10/17 by DJ.
scriptdir=/data/jangrawdc/PRJ16_TaskFcManipulation/Scripts/fMRI
rm -f 02_ParcWarpCommand
for subj in $@
do
if [ ! -f $subj/$subj.srtt/shen_1mm_268_parcellation.$subj+orig.HEAD ] && [ -f $subj/$subj.srtt/all_runs.$subj+orig.HEAD ]; then
echo "bash $scrip... | true |
a9c647b32d0ba4e5db34e2684df8279c723bce01 | Shell | hiboyhiboy/opt-script | /www_sh/maddy | UTF-8 | 1,702 | 2.875 | 3 | [] | no_license | #!/bin/sh
#copyright by hiboy
source /etc/storage/script/init.sh
link="Advanced_Extensions_app28.asp"
echo $1
if [ "$1"x = "stop"x ] ; then
nvram set app_145=0 #maddy_enable
exit
fi
if [ "$1" != "del" ] ; then
eval 'nvram set tablink'$1'='$link';'
nvram set maddy_L2="$(($3 + 10))"
nvram set maddy_L3="$2"
# ... | true |
e2523c9d7ae3d6db5411d57bdf335b9022c6e786 | Shell | victormazevedo/.dotfiles | /sdkman/sdkman.install | UTF-8 | 365 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
#set -x
set -e
set -o pipefail
bin=$(cd $(dirname "$0"); pwd)
# to force the colors to show up
source $bin/../bash/*-colors.bash
curl -s https://get.sdkman.io | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
for lang in $(cat $bin/languages)
do
echo -e "${txtblu}Setting up ${txtred}${lang}${... | true |
17bfb43e56ab328d0d9cc32e958565ae3062cb16 | Shell | caffo/digispark-rgb-irssi | /black.sh | UTF-8 | 257 | 2.734375 | 3 | [] | no_license | #!/bin/sh
#
# make sure irssi's autolog is enabled
#
echo "starting black.sh"
tail -fn0 ~/irclogs/Bitlbee/*.log | \
while read line ; do
echo "$line" | grep "caffo" >> /dev/null
if [ $? = 0 ]
then
digit black
fi
done | true |
109b3f6e89637b9e9162e6203efb144b33a739bc | Shell | TUD-CPU/Fachprojekt-Pipelined-MIPS | /SCP/Test/compile.sh | UTF-8 | 785 | 3.828125 | 4 | [] | no_license | if [ $# -eq 0 ]
then
echo "Please select one or more files!"
exit 1;
fi
for i in $*
do
echo "--" $i "--"
if !(ghdl -s $i) #Syntax -Checking
then
exit 1;
fi
echo "Syntax-check OK"
if !(ghdl -a $i) #Analysis-Checking
then
exit 1;
fi
echo "Analysis OK"
#Getting all Entitie... | true |
6704090ce19b7c6104f90ed66893d0c0d6b5a087 | Shell | lucasuyezu/bricky | /etc/bricks/helper/builder | UTF-8 | 81 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -le
info() {
message=$1;
echo -e "\033[32m${message}\033[0m";
}
| true |
07d838ff8c836429ea102fa412d460ece39ea6e1 | Shell | chandupunnam207/shell-scripting | /roboshop/redis.sh | UTF-8 | 507 | 2.90625 | 3 | [] | no_license | #!usr/bin/bash
source common.sh
PRINT "Install epel release\t"
yum install epel-release yum-utils http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y &>>$LOG
STAT_CHECK $?
PRINT "Install Remi Repo\t"
yum install redis -y --enablerepo=remi &>>$LOG
STAT_CHECK $?
PRINT "Update Redis IP\t\t"
sed -i -e 's/127.0.0.... | true |
948c2e4aa7b014041391963b652a5e9e9b3943b6 | Shell | tomekbielaszewski/ogame_clone_go | /ops/build.sh | UTF-8 | 206 | 2.96875 | 3 | [] | no_license | cwd=$(pwd)
build_module () {
cd $1
if [ ! -d "lib" ]; then
mkdir lib && cd lib
else
cd lib
fi
go build ..
cd $cwd
}
build_module src/buildings/building_construction | true |
cf980150c4ca5beec01ae70267b0f10f3b17e26b | Shell | renskiy/cron-docker-image | /alpine/start-cron | UTF-8 | 941 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# setting user for additional cron jobs
case $1 in
-u=*|--user=*)
crontab_user="-u ${1#*=}"
shift
;;
-u|--user)
crontab_user="-u $2"
shift 2
;;
-*)
echo "Unknown option: ${1%=*}" > /dev/stderr
exit 1
;;
*)
crontab_user=""
;;
esac
# adding additional cron... | true |
7228cbe7bf3d315bca9e58fda64140df53b2b683 | Shell | kyma-project/test-infra | /prow/scripts/cluster-integration/helpers/create-secret.sh | UTF-8 | 2,108 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
NAME=""
DATA=()
LABELS=("kyma-project.io/installation=" "installer=overrides")
NAMESPACE="kyma-installer"
LABEL_REGEXP="^[a-zA-Z0-9./-]+=[a-zA-Z0-9./-]*$"
function checkScriptInput {
if [[ -z "${1}" ]] || [[ "${1:0:2}" == "--" ]]; then
echo "Missing parameter value"
exit 1
... | true |
e6cf61b195a462aca4fee0d829c19c12f345a979 | Shell | DJM0/unifi-voucher-generator | /create-superadmin.sh | UTF-8 | 450 | 3.046875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
# Files needed
pwd=`pwd`
. $pwd/unifi-api.sh
# Generation settings
uniemail=$1
uniusername=$2
unipassword=$3
#login to the controller
unifi_login >/dev/null
#create admin + grep accountID of just created read-only user
uniuser=`unifi_create_admin $uniemail $uniusername $unipassword | tr ':' '\n' | tail ... | true |
1d006164bf8318ee8a059871390eeaf44ea51c47 | Shell | zweecn/tuqu_bd | /shell/tuqu-mine/shell/add_thumb.sh | UTF-8 | 645 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#input="./data/merged"
input="./data/tag_parser.out";
temp="./data/temp/"`echo $0 | awk -F'[./]' '{ print $(NF - 1)}'`
data_without_thumb="./data/output.mg_black_list"
output="./data/output.thumb"
## 1. get thumb
awk -F' ' '{
if(FILENAME == ARGV[1])
{
thumb_url[$1] = "http://t"(($7 + $8) %3 + 1)".ba... | true |
012f5202f7197dca9cdfa625ebe602dc50a5449a | Shell | c0state/dotfiles | /etc/setup_kubernetes.sh | UTF-8 | 922 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
PLATFORM=$(uname)
if [[ $PLATFORM == 'Linux' ]]; then
sudo curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor --yes -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https:/... | true |
d15bca25a87bd2e269508be9c3fecdb3f8022479 | Shell | edibertooliveira/trybe-exercicios | /Fundamentos do Desenvolvimento Web/Bloco_1/1-5/exercicio09.sh | UTF-8 | 638 | 3.96875 | 4 | [] | no_license | #!/bin/bash
echo -e "9. Escreva um Shell Script que receba um diretório como argumento (ou parâmetro). \nSe o argumento não for um diretório, mostre a mensagem: "O argumento _ não é um diretório!". Se o argumento for um diretório, \nconte quantos arquivos existem nele e mostre a seguinte mensagem: "O _ tem _ arquivos.... | true |
0a4c3f4bf919d763057cead815e568a991cc1968 | Shell | serend1p1ty/transflower-lightning | /feature_extraction/get_motion_scalers.sh | UTF-8 | 2,923 | 2.5625 | 3 | [] | no_license |
folder=$1
expname=$2
py=python3
#n=$(nproc)
n=6
#target fps
fps=20
# to convert aistpp to BVH with mixamo skeleton
#mpirun -n $n $py feature_extraction/process_aistpp.py $@ --fps 60 # this fps is the source fps of aistpp which is 60Hz
# code for Rotmat representation for AISTPP
#mpirun -n $n $py ./scripts/feature_e... | true |
7e832f5d9cf115a626b51975aa7266494f7205f3 | Shell | dalerxli/OptTorque | /math/CFormChange_LG.sh | UTF-8 | 2,332 | 3.046875 | 3 | [] | no_license | #!/bin/bash
echo "start CFormChange.sh"
#### 2015.03.29
############################################################
for FILENAME in CFormList*
do
cp ${FILENAME} ${FILENAME}.bak
##########################################################
sed -i 's/Power(E,/exp(/g' $FILENAME; ## exp(
sed -i 's/(I\*/(II\*/g' $FILE... | true |
67812a50aceda2894a7b66dd7afaf6f5ba86c88b | Shell | seppaleinen/series | /backend/src/main/resources/installJBittorrentRepo.sh | UTF-8 | 256 | 2.640625 | 3 | [] | no_license | function installMavenArtifact(){
local JBITTORRENT="${PWD}/src/main/resources/jBittorrentAPI.jar"
mvn install:install-file -Dfile="$JBITTORRENT" -DgroupId=jBittorrent -DartifactId=jBittorrent-api -Dversion=1.0 -Dpackaging=jar
}
installMavenArtifact | true |
d35b0b6e765d0cfab142599c482f5302ded84c87 | Shell | omakoto/misc | /install-docker | UTF-8 | 661 | 3.078125 | 3 | [] | no_license | #!/bin/bash
set -e
. mutil.sh
# sudo apt install sublime-text
distro=$(lsb_release -is | tr 'A-Z' 'a-z')
echo "Distro=${distro:?Unknown distribution}"
curl -fsSL https://download.docker.com/linux/$distro/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$dist... | true |
f4f9842f5b14c80869a3d97b7d1d63e66d2c79ff | Shell | dblaber/chromebooks | /chromebook-config.sh | UTF-8 | 4,958 | 2.921875 | 3 | [] | no_license | # chromebook-config.sh - Configuration file for chromebook-setup
# stuff required for snow/peach for now
# from google: nv_uboot-snow-simplefb.kpart
#
# set NVUBOOT=1 to enable (not wired yet))
# default rootfs and toolchain (arm)
TOOLCHAIN="gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf"
TOOLCHAIN_URL="https://dev... | true |
49d992bdce0a5a7c29bf0d3410fac415eaa0d3e6 | Shell | NDAR/nda_aws_token_generator | /curl/generate_token.sh | UTF-8 | 2,919 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
## NDA AWS Token Generator
## Author: NIMH Data Archives
## http://ndar.nih.gov
## License: MIT
## https://opensource.org/licenses/MIT
##############################################################################
#
# Script to retrieve generated AWS Tokens from NIMHDA
#
##################... | true |
ef9e67341d9dee9c5764cee989383291a4aebbdf | Shell | NapoleonWils0n/cerberus | /sopcast/sopcast-install.sh | UTF-8 | 2,810 | 2.71875 | 3 | [] | no_license | #!/bin/bash
# sopcast install
#================
sudo apt-get install ia32-libs
# sp-auth install
wget http://download.easetuner.com/download/sp-auth.tgz
tar -zxvf sp-auth.tgz
sudo cp ./sp-auth/sp-sc-auth /usr/bin/sp-sc
sudo cp ./sp-auth/sp-sc-auth /usr/local/bin/sp-sc
# sopcast player install
wget http://sopcast-p... | true |
0685418fd62806a4dc47a0e9f53926010471e874 | Shell | dargor/dotfiles | /.profile.d/mcli | UTF-8 | 110 | 2.625 | 3 | [] | no_license | #! /usr/bin/env bash
mcli() {
host="${1:-localhost}"
port="${2:-11211}"
nc "${host}" "${port}"
}
| true |
8416f3dcc6e9114915db987e3ea3b36e157e0f6f | Shell | heycam/gaia | /tools/pre-commit | UTF-8 | 2,395 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
export LC_ALL=C NO_XFAIL=1
LINTED_DIRECTORIES="apps shared build/test/unit"
JSHINT_EXECUTABLE="node_modules/.bin/jshint"
JSHINT_XFAIL_LIST="build/jshint/xfail.list"
JSHINT_ARGS="--reporter=build/jshint/xfail $JSHINT_ARGS"
excluded_list=".jshintignore"
jshint_information() {
echo "Please read https://githu... | true |
37776387ec6deeff6a14074d6c6516ba3ffbb7a7 | Shell | Blivrig/alex | /im-core/C/live/im-sh/old_sh/sn-update_version_im.sh | UTF-8 | 7,010 | 3.296875 | 3 | [] | no_license | #!/bin/sh
echo -e "\033[33m IM 服務(image)更新腳本\033[0m"
echo -e "\033[36m * 靜態資源 * \033[0m"
echo -e "\033[32m admin file web-download website web-smarttalk \033[0m"
echo -e "\033[36m * 動態資源 * \033[0m"
echo -e "\033[32m api chatbot file gateway push robot server services smarttalk task user \033[0m"
echo -e "\033[36m * 開始... | true |
e2e3a842792269b5d06020d11d4eca57b4d6b335 | Shell | lukasoppermann/environment | /environment/install.sh | UTF-8 | 3,471 | 4.03125 | 4 | [] | no_license | # Setup Dev environment
# Ask for the administrator password upfront
: <<'END'
# tell the script to setup aliases in bash_profile
make_aliases=FALSE;
echo "This script needs Administrator privileges to edit some files in the /etc directory.";
sudo -v
# Keep-alive: update existing `sudo` time stamp until `install.sh` h... | true |
ac3dac192fade8a573720d7e0d1d126b0673a86b | Shell | vongh/test-template | /src/main/g8/build.sh | UTF-8 | 386 | 2.71875 | 3 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/usr/bin/env bash
set -e
# Read the config
source ./PROJECT_CONFIG
# Build the application. Copy dependency jars
#mvn clean dependency:copy-dependencies
$(aws ecr get-login --region $AWS_REGION)
docker build -t $COMPONENT_NAME .
docker tag $COMPONENT_NAME:latest $AWS_ECR_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.co... | true |
4f6c1d082faf0a5e4b03debc5ab09ed5c50749fd | Shell | hitanxxx/k_tunnel | /configure | UTF-8 | 280 | 2.84375 | 3 | [] | no_license | #!/bin/sh
LC_ALL=C
export LC_ALL
CC=${CC:-gcc}
CPP=
L_OBJS=objs
L_MAKEFILE=$L_OBJS/Makefile
l_n=
l_c='\c'
cat << END > Makefile
default: build
clean:
rm -rf Makefile $L_OBJS
END
. auto/sources
test -d $L_OBJS || mkdir -p $L_OBJS
. auto/cc/conf
. auto/make
. auto/install
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.