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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a6c62fb8a3797c32e684fda2f08e7edf10979198 | Shell | ashortland/toolchain-example5 | /booking-application-server/tests/cleanup-1-test.sh | UTF-8 | 415 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env roundup
#
# This file contains the test plan for the cleanup command.
# Execute the plan by invoking:
#
# rerun stubbs:test -m booking-application-server -p cleanup
#
# Helpers
#
[[ -f ./functions.sh ]] && . ./functions.sh
# The Plan
# --------
describe "cleanup"
it_works_without_arguments(... | true |
d065294c5ac8859f76132e04be8c85506c198ca9 | Shell | MezaDios/Practica-2-Bash | /3.- Usuarios.sh | UTF-8 | 513 | 3.640625 | 4 | [] | no_license | #!/bin/sh
usuario='null'
# Ciclo necesario para que se pida el usuario mientra no sea 'fin'
while [ "$usuario" != 'fin' ]; do
echo "Introduzca un usuario (introduzca fin sin quiere finalizar el programa):"
# Se hace que se ingrese un nombre de usuario
read usuario
# Se busca si esta present... | true |
dc5caeb7b3e5fc63b98c788ddb105af43705bd95 | Shell | openconnectivity/IOTivity-setup | /install_DeviceBuilder.sh | UTF-8 | 4,892 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x #echo on
#############################
#
# copyright 2018 Open Connectivity Foundation, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# h... | true |
23c741d5b30cd9916e7d95a3fb7bb599f265f04f | Shell | Akshithaaashi/Shell-Programming | /Array/randomDigi.sh | UTF-8 | 510 | 3.5 | 4 | [] | no_license | #!/bin/bash -x
for ((var=0; var<=10; var++))
do
randomNumbers[var]=$(($((RANDOM%900))+100))
done
echo ${randomNumbers[@]}
max=0
secondmax=0
min=1000
secondmin=1000
for i in ${randomNumbers[@]}
do
if [ $i -gt $max ]
then
secondmax=$max
max=$i
fi
if [[ $max -gt $i && $i -gt $secondmax ]]
then
secondmax=$i
fi
if [ $i -lt... | true |
a610701eddd122a27aa5743f0bcbbd1ea2059cdf | Shell | mozyg/build | /optware/openvpn/control/postinst | UTF-8 | 399 | 2.90625 | 3 | [] | no_license | #!/bin/sh
APPID=mobi.optware.openvpn
# Symlink files into /opt
cd $IPKG_OFFLINE_ROOT/usr/palm/applications/$APPID/opt
find sbin -type d -exec mkdir -p /opt/{} \;
find sbin -type f -exec ln -sf $IPKG_OFFLINE_ROOT/usr/palm/applications/$APPID/opt/{} /opt/{} \;
rm -f /etc/event.d/$APPID
mkdir -p /etc/event.d/
cp $IPKG_... | true |
2240db880994cecf864bf44472e75bca8215e47b | Shell | solenick/smv | /Build/dem2fds/data/test1.sh | UTF-8 | 273 | 2.796875 | 3 | [
"NIST-Software"
] | permissive | #!/bin/bash
option=$1 $2
if [ "$option" == "" ]; then
option=-obst
fi
#dem2fds=dem2fds
dem2fds=../intel_linux_64/dem2fds_linux_64
terraindir=~/terrain
$dem2fds $option -geom -dir $terraindir/gatlinburg test1.in
$dem2fds $option -dir $terraindir/gatlinburg test2.in
| true |
e33e7de14ff61a4b7269381798b304b6ff59382f | Shell | At252/mergify-engine | /entrypoint.sh | UTF-8 | 454 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
cd /app
get_command() {
sed -n -e "s/^$1://p" Procfile
}
MODE=${1:aio}
if [ "$MERGIFYENGINE_INTEGRATION_ID" ]; then
case ${MODE} in
web|worker) exec $(get_command $1);;
aio) exec honcho start;;
*) echo "usage: $0 (web|worker|aio)";;
esac
elif [ "$MERGIFYENGINE_INSTALLER" ]; then... | true |
dbb07710a2807a48dbd5c2c12a22f4c311b2ef60 | Shell | hugojosefson/ubuntu-install-scripts | /.bash_aliases | UTF-8 | 1,875 | 3.171875 | 3 | [] | no_license | # vi:syntax=bash
# .bash_aliases
alias ba='vim ~/.bash_aliases'
alias .ba='. ~/.bash_aliases'
# node
alias nn='nodeversion=$(cat package.json | jq -r .engines.node); nvm install $nodeversion'
# tmuxinator
alias mux=tmuxinator
alias m=mux
alias mm='mux mux'
_tmuxinator() {
COMPREPLY=()
local word
word="${... | true |
17100af55f3f553861f20623cda32eb7b0bdbd22 | Shell | vikasTmz/TshirtWARP | /tshirt.sh | UTF-8 | 17,492 | 4.0625 | 4 | [] | no_license | #!/bin/bash
#Originally Developed by Fred Weinhaus
coords="" # coordinates of corners clockwise from top left
region="" # WxH+X+Y area on background to place overlay image
fit="none" # crop or distort the image to fit vertical aspect ratio of region
gravity="center" # gravity for cropping
vshift=0 # ver... | true |
d2cf72f55172d40094abeabad39d7ff63ec11dac | Shell | jcfr/ninja | /bootstrap.sh | UTF-8 | 995 | 2.828125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | true |
9d09c3813f82a1fd543b9768d7b35db92ca0947c | Shell | muesli/dotfiles | /setup_arch.sh | UTF-8 | 595 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (c) 2017-2018, Christian Muehlhaeuser <muesli@gmail.com>
#
# For license see LICENSE
#
set -e
if [[ "$FLAVOR" == "router" ]]; then
FLAVOR="_${FLAVOR}"
elif [[ "$FLAVOR" == "minimal" ]]; then
FLAVOR="_${FLAVOR}"
elif [[ "$FLAVOR" != "" ]]; then
# Unknown
echo "Sorry, but ... | true |
f7550f93cfdc0b93e60dbb69d6f16c614819839a | Shell | petronny/aur3-mirror | /python-osmgpsmap-git/PKGBUILD | UTF-8 | 1,016 | 3.0625 | 3 | [] | no_license | # Maintainer: Dominik Heidler <dheidler@gmail.com>
pkgname=python-osmgpsmap-git
pkgver=20121231
pkgrel=2
pkgdesc="Python bindings for osm-gps-map"
arch=('i686' 'x86_64')
url="http://nzjrs.github.com/osm-gps-map/"
license=('GPL')
depends=('python2' 'pygobject' 'pygtk' 'osm-gps-map-git')
provides=('python-osmgpsmap')
so... | true |
8e7efe92818eb9843b77324a2ec0da7917469c92 | Shell | krzysztofkramarz/bash | /javadoc.sh | UTF-8 | 1,081 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# program ada, ile w podanym katalogu jest plikow *.java i ile z nich ma publiczne metody
#oraz ile z nich jest pokyte javadoc. Statystyka jest wy
# cd /media/krzysztof/JavaAcademy/Akademia_Javy/Kod/javadoc_test
cd $1
let WITHOUT=0
let TOTAL=0
for d in $( find -readable -executable -type d )
do
for... | true |
9769d3967ade663b21d61274ba0d7a2ceb8651c0 | Shell | rpicluster/rpicluster-stretch | /stage2S/02-net-tweaks/files/enable-base.sh | UTF-8 | 2,725 | 3.40625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
echo "
Enabling Base networking scheme . . .
"
count=1
total=4
start=`date +%s`
while [ $count -le $total ]; do
if [ $count -eq 1 ]
then
task="Updating dhcpcd.conf"
sudo mv /etc/dhcpcd.conf /etc/dhcpcd.conf.orig
sudo echo "interface wlan0
static ip_address=192.168.1.254/24" >> /etc/dhcpcd.co... | true |
1908f2121a007162f2b46e5d2e1e1bdd9ee36a03 | Shell | surajsunrays/Daily-Work-Submission-Zemoso | /DAY8-30112018/Shell-Scripting/execution-check.sh | UTF-8 | 196 | 3.328125 | 3 | [] | no_license | #This script will check the execution of previously executed command
#!/bin/sh
if [ "$?" -ne "0" ]; then
echo "Sorry, Something goes wrong earlier"
else
echo "Fine, Earlier command OK "
fi | true |
338418a05027ee5a35761473aa717e9d8bc7276b | Shell | cwmcbrewster/Jamf_Scripts | /Install_GoogleChrome.sh | UTF-8 | 2,357 | 4.0625 | 4 | [] | no_license | #!/bin/zsh
# Automatically download and install the latest Google Chrome
# https://support.google.com/chrome/a/answer/9915669?hl=en
# Variables
appName="Google Chrome.app"
appPath="/Applications/${appName}"
appProcessName="Google Chrome"
downloadUrl="https://dl.google.com/chrome/mac/stable"
#downloadUrl="https://dl.... | true |
41091b6a19b8a8e3c01cccd486f2a321173b9cf6 | Shell | CrisFeo/dotfiles | /stow/utilities/.bin/music | UTF-8 | 840 | 3.453125 | 3 | [] | no_license | #!/bin/bash
set -e
find_opts=(
\(
-type l -or
-type f
\)
-and
\(
-name '*.opus' -or
-name '*.webm' -or
-name '*.m4a' -or
-name '*.ogg'
\)
)
fzf_opts=(
--multi
--cycle
--reverse
--bind 'alt-a:select-all,alt-d:deselect-all'
)
mpv_statusline='\e[0;33m${time-pos}\e[0m'
mpv_stat... | true |
c7fec951868a3bfdfbc296971bbc19bfbdd859b8 | Shell | TmanHef/SCPPP-Algs | /createResultDirs.sh | UTF-8 | 360 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/bash
mkdir "result_graphs"
domains=( blocks logistics depot rovers )
for domain in "${domains[@]}"
do
mkdir result_graphs/$domain
mkdir result_graphs/$domain/evaluations
mkdir result_graphs/$domain/expansions
mkdir result_graphs/$domain/goal_reach_time
mkdir result_graphs/$domain/messages_count
... | true |
2e93d023c078e535bd69f6d4f3d8110e5ef837b9 | Shell | LUSpace/osdi21ae | /script/check_dax_fs.sh | UTF-8 | 185 | 2.953125 | 3 | [] | no_license | #!/bin/bash
if [ -c "/dev/dax0.0" ]; then
bash ./setup_eval.sh
fi
fs=`mount`
for i in 0 1 2 3
do
str=`echo $fs | grep pm$i`
if [[ -z $str ]]; then
bash ./setup_eval.sh
fi
done | true |
2d058f20d1b522b2505c88a1948f5989667843c3 | Shell | djpohly/arch-makepkg-action | /entrypoint.sh | UTF-8 | 411 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -eou pipefail
if [[ ! -z "$1" ]]; then
cd "$1"
fi
echo "Running makepkg from $PWD"
pkg_deps=$(source ./PKGBUILD && echo ${makedepends[@]} ${depends[@]})
echo "Installing dependencies: $pkg_deps"
pacman -Syu --noconfirm $pkg_deps
chown -R archbuilder "$PWD"
echo "Running makepkg"
# TODO: suppor... | true |
0d79cb1dbf92a9d8d972e38e98b304caec1269ae | Shell | robin-vip/shell_scripts | /shell_scripts/crontab_task/git_sync/gitrepo_sync.sh | UTF-8 | 1,544 | 3.984375 | 4 | [] | no_license | #!/bin/sh
ConfigFile=gitrepo_config.ini
LogFile="git_sync_$(date '+%Y%m').log"
ReposNum=
OLD_DIR=
PrintLog()
{
echo "[$(date '+%Y-%m-%d %H:%M:%S')]: $1" >> $LogFile
}
InitTask()
{
OLD_DIR=`pwd`; cd `dirname $0`
source ../../config_parase/ini_prase.sh
LogFile="$(GetIniKey "$ConfigFile" "Header:ConfigPath")/$LogFi... | true |
6692cf300ba26c14419de07d884d101380dd048b | Shell | nikitakit/tenshi-old | /build.sh | UTF-8 | 1,041 | 3.3125 | 3 | [] | no_license | #!/bin/bash -xe
export PROJECT_ROOT_DIR=`pwd`
# Set up or download tools
./tools/extract-tools.sh
# TODO(rqou): Less hacky
export PATH=$PATH:$PROJECT_ROOT_DIR/tools/arm-toolchain/bin:$PROJECT_ROOT_DIR/tools/emscripten-bin:$PROJECT_ROOT_DIR/tools/emscripten-bin/llvm/bin
if [[ -z "LLVM" ]] ; then
export LLVM_DIR="$P... | true |
7d78f5b4e2729e8a474e4e46c52c2035c7af3005 | Shell | matteoneri/i3 | /scripts/i3lock-painteffect.sh | UTF-8 | 3,371 | 2.75 | 3 | [] | no_license | #!/bin/bash
image=/tmp/i3lock.png
screenshot="scrot $image"
$screenshot
#~/.config/i3/scripts/im-painteffect -p 1 -e 0 -t yes $image $image
#~/.config/i3/scripts/im-turbolence -s 300 -d 200 -c together $image $image
#~/.config/i3/scripts/im-spots -s 10x10 -t circle -B 20 -C 20 $image $image
#convert $image -blur "8x4... | true |
22249074017142359c3eb805af9448899a40a744 | Shell | akaranjkar-qu/bootstrap-functions | /tests/ranger-client.bats | UTF-8 | 2,286 | 3.015625 | 3 | [
"MIT"
] | permissive | load helpers/file_helper
RANGER_HOST=localhost
RANGER_PORT=6080
RANGER_REPO=hivedev
RANGER_URL=http://${RANGER_HOST}:${RANGER_PORT}
HIVE_LIB=/usr/lib/hive1.2
RANGER_HIVE_PLUGIN_PATH=/media/ephemeral0/hive_plugin/ranger-1.1.0-hive-plugin
function setup() {
if [[ ! -e /tmp/RANGER_INSTALLED ]]; then
source /... | true |
c09595540c2d159c81bb17978e93076d669e422e | Shell | janost/pingstat | /stuff/munin/pingstat.sh | UTF-8 | 6,071 | 3.171875 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
PARAMS=${0#*pingstat_}
GRAPHTYPE=$(echo "$PARAMS" | cut -d _ -f 1)
TARGET=$(echo "$PARAMS" | cut -d _ -f 2)
# TODO: move these to configuration
PING_LAST_SECONDS=300
PINGSTAT_BASEURL="http://localhost:8000"
#
PING_MIN_WARNING=25
PING_MIN_CRITICAL=50
PING_AVG_WARNING=25
PING_AVG_CRITICAL=50
PING_MAX_WARNING... | true |
ee558fb08928adf5cdb3ca14d2db83d4f1b20b7f | Shell | qubixes/streetview-greenery | /scripts/compute_lisa.sh | UTF-8 | 1,177 | 3.234375 | 3 | [] | no_license | #!/bin/bash
N_JOBS=64
EXTRA_ARGS="-l 6"
if [ $# -ge 1 ]; then
CFG_FILE=$1
NEW_JOBS=(`grep 'N_JOBS_COMPUTE' $CFG_FILE`)
if [ "${NEW_JOBS[*]}" != "" ]; then
N_JOBS=${NEW_JOBS[1]}
fi
NEW_EXTRA_ARGS=(`grep 'EXTRA_ARGS' $CFG_FILE`)
if [ "${NEW_EXTRA_ARGS[*]}" != "" ]; then
EXTRA_AR... | true |
d13ea9844cc8c05be6b63332268648ebafb489c3 | Shell | greg00m/greg00m | /killsleep.sh | UTF-8 | 133 | 2.640625 | 3 | [] | no_license | #!/bin/bash
sleep 30 &
SLEEPPID=$!
echo "PID " $SLEEPPID "is sleeping."
sleep 5
echo "PID " $SLEEPPID "is sleeping."
kill $SLEEPPID
| true |
dba7cca192bb22cffe0aa452d0a27a0e13a5227c | Shell | guenther-brunthaler/usr-local-bin-xworld-jv3gwuidf2ezyr5vbqavqtxyh | /mkdir-from-template | UTF-8 | 3,842 | 4.28125 | 4 | [] | no_license | #! /bin/sh
show_version() {
wrL <<-.
$SCRIPT version 10.124
Copyright (c) 2008-2010 Guenther Brunthaler. All rights reserved.
Distribution is permitted under the terms of the GPLv3.
.
}
show_help() {
{
wr <<-.
$SCRIPT - create directories by cloning from a template directory
$SCRIPT takes a template direct... | true |
eaba2ee5fb013a85ac2f99c5a535bd78388e6794 | Shell | linostar/vagrirc | /environment/shell/3.ruby.1.init.sh | UTF-8 | 1,051 | 3.109375 | 3 | [
"CC0-1.0",
"MIT"
] | permissive | #/usr/bin/env sh
# Ruby Setup
# Mostly taken from the wonderful PuPHPet project, used under the MIT license
CACHE_FOLDER=/environment/cache
# CentOS release we're using
OS=centos
RELEASE=6
# Start of PuPHPet Ruby Setup <<<
rm -rf /usr/bin/ruby /usr/bin/gem /usr/bin/rvm /usr/local/rvm
echo 'Installing RVM and Ruby ... | true |
255ff2b629f844cdc5194ab79d1bd0a11a1faac2 | Shell | dtbinh/Pioneer-Project-2009 | /pnav_ex/stage | UTF-8 | 1,183 | 3.53125 | 4 | [] | no_license | #!/bin/sh
#
# Sebastian Rockel, 2010-01-15
#
DefCSWait=6 # Seconds to wait default for c-space generation
TamsCSWait=10 # Seconds to wait for tams c-space generation
DefStageWait=2 # Seconds to wait for Stage world to come up
StagePort=6666
NavLocPort=6665
LogPort=6667
world=${1} # Get Stage world as parameter
# Chec... | true |
77f558cbd01702240539275e1405200d4630c77e | Shell | alejandro1395/Impute_Master_Thesis_PanelCHR21 | /BEAGLE4.0_CHIMP/IMPUTATION/beagle_imp_script | UTF-8 | 1,707 | 2.734375 | 3 | [] | no_license | #!/bin/bash
module load purge
module load PYTHON/3.6.3
DATA=/scratch/devel/avalenzu/Impute_Master_Project/ANALYSIS_jan2019_panel300/BEAGLE_4.0_analysis_chimp/SAMPLES_vcf/
MAP=/scratch/devel/avalenzu/Impute_Master_Project/ANALYSIS_jan2019_panel300/BEAGLE_4.1_analysis_chimp/MAP/
BIN=/scratch/devel/avalenzu/Impute_Maste... | true |
eeb7c946686ed9fea92f96657b111852db54e917 | Shell | awmyhr/dotfiles-public | /roles/shell/files/.shell.d/lib/exitcodes | UTF-8 | 6,324 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# [SublimeLinter shellcheck-exclude:"SC2039" ]
#===============================================================================
#
# FILE: .shell.d/lib/exitcodes
#
# USAGE: (should be sourced by .shell.d/shellinit)
#
# DESCRIPTION: Standardize my exit codes.
#
# OPTIONS: ---
# REQUIREMENTS... | true |
0e89d5cdcc535f205e1dcd0f85f8f4350d5aefb6 | Shell | davejachimiak/fm | /vm/tests/leq | UTF-8 | 405 | 2.796875 | 3 | [] | no_license | #!/usr/bin/env bash
file=$(mktemp)
loadc_op=$(echo -e '\x01')
leq_op=$(echo -e '\x08')
echo -e \
"$loadc_op"\
"\x09\x00\x00\x00"\
"\x00\x00\x00\x00"\
"$loadc_op"\
"\x0A\x00\x00\x00"\
"\x00\x00\x00\x00"\
"$leq_op"\
"\x00\x00\x00\x00"\
"\x00\x00\x00\x00"\
"\x00" > "$file"
./build/fm "$file"
result="$?"
if [[ "$result... | true |
5e9cb87dd8c5925970da8fc370dfa812d1933d37 | Shell | menkan/configs | /.bash-shell/ranger.sh | UTF-8 | 236 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# @Author xutongze
# @Time 2021年7月2日
# @Description 避免ranger启动的shell内创建新的rangershell
rg() {
if [ -z "$RANGER_LEVEL" ]
then
ranger
else
exit
fi
}
# start rg()?
rg() | true |
42441ce88580a1bdfb7bad5ae12bc8416f6472eb | Shell | pkalbers/ScriptCollection | /DetectSimulatedIBD/phase_all.sh | UTF-8 | 666 | 3.375 | 3 | [] | no_license | #!/bin/bash
PREFIX=$1
CORES=$2
NJOBS=$3
SUFFIX="RData"
ROOT=`pwd`
for FILE in `find -iname "${PREFIX}*${SUFFIX}"`;
do
cd `dirname $FILE`
BASE=`basename $FILE`
BASE=${BASE%.RData}
echo "###"
echo $BASE
echo "###"
GENFILE=`ls *.gen`
SAMFILE=`ls *.sample`
PHSFILE=`basename $GENFILE`
PHSFILE=${GENFILE%.ge... | true |
6279d7e4a56869466d9bc2303edf2f6550370de4 | Shell | p2pderivatives/cfd-js | /.github/workflows/docker/alpine_build_entrypoint.sh | UTF-8 | 1,386 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/sh -l
apk add --update --no-cache musl gcc g++ make git cmake zip
cd /github/workspace
ls
mkdir dist
mkdir build
cmake --version
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=on -DENABLE_CAPI=off -DENABLE_TESTS=off -DTARGET_RPATH="@executable_path;/usr/local/lib;/usr/local/lib64;./node_modul... | true |
ca95fbb5d8834e512fb1a616d9109053abb6858b | Shell | mysociety/varnish-apikey | /commandline/apikeys.sh | UTF-8 | 4,399 | 3.359375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Authors: Wojciech Mlynarczyk, Sami Kerola
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... | true |
9ec223f364177c3cecb2ce69c9d66a3af4c24ed6 | Shell | daedalus/misc | /ceph_create_pool_image.sh | UTF-8 | 1,319 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# Author Dario Clavijo 2018
# GPLv3
set -x
# set variables
POOL=$1
IMG=$2
SIZE=$3
PAGES=$4
USER=$5
LDEV=$6 # example rbd0
FS=$7 # example "mkfs.ext4 -j"
MONITOR="172.16.1.1 172.16.2.2"
ceph auth del client.$USER
ceph osd pool delete $POOL $IMG --yes-i-really-really-mean-it
# define pool,image and rbd ma... | true |
427b6443cc5cd03cfc1a7ecdf2a05e2adaa60fda | Shell | domcleal/sclo-ror42 | /repoclosure/repoclosure.sh | UTF-8 | 649 | 4 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/bin/bash
set -e
if [ $# -lt 2 ]; then
echo "Usage: $0 <yum.conf> <url>"
exit 1
fi
yumorig=$1
url=$2
shift; shift
TEMPDIR=$(mktemp -d)
trap "rm -rf $TEMPDIR" EXIT
# repo names must be unique, or yum will get confused between different OSes and URLs
reponame=undertest-$(basename $yumorig .conf)-$(echo $url | ... | true |
299eee3386c024fa6fbc65ed2bd7bdeb2297c28b | Shell | parrotmac/heylex.us-agent | /force-update.sh | UTF-8 | 1,200 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
SCRIPT_PATH=$(readlink -f "$0")
cd /opt/heylex.us-agent/
# Store info about updater and supervisord config
INITIAL_UPDATER_HASH=$(shasum force-update.sh)
INITIAL_SUPERVISOR_HASH=$(shasum heylex-agent.conf)
# If we're up to date, then don't do anything
git fetch --all
REMOTE_REPO_REVISION=$(git r... | true |
268ae9f9464196c2c523e5fcdb123592769c6322 | Shell | chengfengliu/nwu-knowleadge | /restart.sh | UTF-8 | 180 | 2.59375 | 3 | [] | no_license | #!/bin/bash
PID=`lsof -t -i:80`
PID2=`lsof -t -i:443`
git pull
kill -9 $PID
kill -9 $PID2
echo "killed http:80 $PID and killed https:443 $PID2"
nohup npm run build &
echo "started" | true |
4dfb2260bb6f47aa4af02da5fb5b29ae51a63bc9 | Shell | udit7395/scripts | /getDataWithoutRoot.sh | UTF-8 | 1,061 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
##For More Information:http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html
##Script is Written By udit7395
##HOW TO USE: ./getDataWithoutRoot.sh <packagename>
#NOTE: This method doesn't work if application developer has explicitly disabled ability
#to backup his app by setting andr... | true |
9a70e1ccd2f3d48ce959f01ee6edc8ac356bd3cb | Shell | ShalokShalom/plan.sh | /msgpack-c/plan.sh | UTF-8 | 798 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | pkg_origin=
pkg_name=msgpack-c
_pkg_name=msgpack
pkg_version=2.1.3
pkg_description="Efficient binary serialization format, which lets you exchange data among multiple languages like JSON"
pkg_upstream_url="https://github.com/msgpack/msgpack-c"
pkg_license=('GPL3')
pkg_deps=('gnutls' 'readline' 'python3-cython')
pkg_bu... | true |
c0e3d89780be4b8f6044778ee4dfc1eeb1951d61 | Shell | subnut/dotfiles-artix-s6 | /misc_files/battime.sh | UTF-8 | 285 | 2.984375 | 3 | [] | no_license | #!/usr/bin/zsh
() {
local minutes
(( \
minutes = $(cat /sys/class/power_supply/BAT0/energy_now) \
* 60 / $(cat /sys/class/power_supply/BAT0/power_now) \
))
printf '%02d%% (%02d:%02d)\n' \
$(cat /sys/class/power_supply/BAT0/capacity) \
$(( minutes / 60 )) \
$(( minutes % 60 ))
}
| true |
5469628356cca021ff578637da1a2bdc3a520967 | Shell | arnoldmontiel/pelicanoc | /protected/commands/shell/networkEditor.sh | UTF-8 | 1,842 | 3.390625 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 7 ]
then
echo "Invalid argumets"
echo "Count: "$#
exit 1
fi
echo "Params were"
echo address =$1
echo method =$2
echo netmask =$3
echo network =$4
echo broadcast=$5
echo gateway =$6
echo nameservers =$7
ADDRESS=$1
METHOD=$2
NETMASK=$3
NETWORK=$4
BROADCAST=$5
GATEWAY=$6
... | true |
7c32ae550351f87824f9b9ea1dab54f023188ed2 | Shell | dingyu1/business-tests | /auto-test/nic/onboard/nic_basic_function/nic_basic_Identification/onboard_NIC_BASIC_Identification_001.sh | UTF-8 | 6,095 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#*****************************************************************************************
# *用例名称:NIC_BASIC_Identification_001
# *用例功能:网卡识别测试
# *作者:cwx620666 ... | true |
4293ac5d912903cac674c527a4ae0e23c51b515c | Shell | whatwewant/whatwewant.github.io | /scripts/config_fish.sh | UTF-8 | 1,049 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#
###########################################
#
# Office: http://fishshell.com/
#
###########################################
set -e
downloadTool="sudo apt-get install -y"
PACKAGE_DIR=/tmp/src
PROGRAM_NAME=tmux
SRC_DIR=$PACKAGE_DIR
SRC_DIR_FINAL=${SRC_DIR}/$PROGRAM_NAME
URL="https://github.com/fish-shell... | true |
ffdc915aa95c2c856621c3d51843c48369a590a3 | Shell | iimuz/dotfiles | /setup.sh | UTF-8 | 2,494 | 4.15625 | 4 | [] | no_license | # Setup script.
set -eu
# Create symlink if link does not exist.
function create_symlink() {
local readonly src=$1
local readonly dst=$2
if [ -e $2 ]; then
echo "already exist $2"
return 0
fi
echo "symlink $1 to $2"
mkdir -p $(dirname "$dst")
ln -s $src $dst
}
# Add loading file in .bashrc or... | true |
716ff3ecf51578af21fb17e99ae85e7c6f6584d7 | Shell | scanner-research/scanner-benchmarks | /scale/cinematography_shutdown_nodes_gpu.sh | UTF-8 | 672 | 3.21875 | 3 | [] | no_license | if [ -z "$1" ]
then
echo "Usage: cinematography_spawn_nodes.sh <start_node> <num_nodes>"
exit
fi
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
start_node=$1
num_nodes=$2
num_simul=100
max=$(($num_nodes + $num_simul - 1))
for j in `seq $start_node $num_simul $max`; do
end=$(($j + $num_simul))... | true |
9daaaa5d0155ae79c5fc958d05891c2a49da617b | Shell | mirounga/gatk | /scripts/spark_eval/copy_small_to_hdfs.sh | UTF-8 | 1,480 | 3.46875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
# Download all required data for small BAM and store in HDFS. Use this for non-GCS clusters.
TARGET_DIR=${1:-small_spark_eval}
hadoop fs -stat $TARGET_DIR > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "$TARGET_DIR already exists. Delete it and try again."
exit 1
fi
set -e
set -x
# Create data... | true |
147fd1290a233aae8f7ca5c2c82424e2fbc32942 | Shell | rmathew/ICFPC | /2012/src/test.sh | UTF-8 | 2,054 | 2.9375 | 3 | [] | no_license | #!/bin/bash
function chk_prog() {
make -s $1
if [ "$?" != "0" ]
then
echo ERROR: Could not create program \"$1\".
exit 1
fi
}
chk_prog checker
chk_prog pqtest
RET_STATUS=0
TEST_NUM=0
function chk_pqueue() {
TEST_NUM=`expr $TEST_NUM + 1`
./pqtest
if [ "$?" == "0" ]
then
echo Test $TEST_NU... | true |
5a00c156343a13f205098823c52e908385cbf5bf | Shell | akkaze/dgemm | /small_test.sh | UTF-8 | 290 | 2.96875 | 3 | [] | no_license | #!/bin/bash
maxsize=16
tester=./unit_test
i=1
while [ $i -le $maxsize ]; do
j=1
while [ $j -le $maxsize ]; do
k=1
while [ $k -le $maxsize ]; do
echo "$tester -m $i -n $j -k $k"
$tester -m $i -n $j -k $k
k=`expr $k + 1`
done
j=`expr $j + 1`
done
i=`expr $i + 1`
done
| true |
5879f7da5ee14af996b87b46371e276828d73875 | Shell | cv1002/poseidon | /ci/build.sh | UTF-8 | 314 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -xe
# setup
export CXX=${CXX:-"g++"}
export CXXFLAGS='-O2 -g0 -std=gnu++14 -fno-gnu-keywords'
# build
${CXX} --version
mkdir -p m4
autoreconf -ifv
./configure --disable-silent-rules --enable-debug-checks --disable-static
make -j$(nproc)
# test
make -j$(nproc) check || (cat ./test-suite.log; false)
| true |
41c89713e593bf3048cd9997bcd4b4a9e27cb2f1 | Shell | iocanel/dotfiles | /scripts/scripts/work/collect-cve.sh | UTF-8 | 915 | 3.765625 | 4 | [] | no_license | #!/bin/bash
TARGET=$1
if [ ! -f "$TARGET" ]; then
echo "|id|cve|component|description|bugzilla link|jira link|comments|" > $TARGET
echo "|-" >> $TARGET
fi
mu find from:bugzilla and subject:CVE | awk -F '[ :\\]\\[]' '{print $13}' | sort | uniq | while read id; do
# Skip ids that already exist
EXISTS=`cat $TARG... | true |
bea4af540e6e443e66b4fb3dfb8e48deb39868c0 | Shell | 4moms/dotfiles | /.bash_profile | UTF-8 | 5,447 | 3.609375 | 4 | [] | no_license | # Settings for all shells
#Environment variables
export EDITOR=vim
export VISUAL=$EDITOR
export PAGER=less
export CVS_RSH=ssh
export LESS="-RM"
export NODE_PATH=/usr/local/lib/node_modules
export PATH=$HOME/bin:$HOME/bin/bin:/usr/local/share/npm/bin:/usr/local/share/python:/usr/local/sbin:/usr/local/bin:/usr/sbin:/us... | true |
a10b203575895ee9e459a0004bab6fb4d8df84b3 | Shell | skial/haxe.io | /test.components.sh | UTF-8 | 712 | 2.640625 | 3 | [] | no_license | INPUT="$@"
#echo $INPUT
STR="${INPUT:3}"
BIN=./bin$STR
BIN_DIR=${BIN%/*}
BIN_BASE="${BIN/$BIN_DIR/}"
BIN_BASE="${BIN_BASE/.md/}"
MIN=./min$STR
MIN_DIR=${MIN%/*}
MIN_BASE="${MIN/$MIN_DIR/}"
MIN_BASE="${MIN_BASE/.md/}"
OPT=./opt$STR
OPT_DIR=${OPT%/*}
OPT_BASE="${OPT/$OPT_DIR/}"
OPT_BASE="${OPT_BASE/.html/}"
OPT_CRIT=$O... | true |
7dfbe9aa8e79d842ded73ab82bc045e36b5d6c36 | Shell | studioemma/vagrant-manifests | /beanstalkd/install.sh | UTF-8 | 668 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
beanstalkd_basedir=$(dirname $(readlink -f $0))
beanstalkd_calldir=$(pwd)
cd "$beanstalkd_basedir"
set -e
apt-get install -y beanstalkd
if which php > /dev/null 2>&1; then
# install phpbeanstalkdadmin
( cd /var/www; git clone https://github.com/mnapoli/phpBeanstalkdAdmin.git phpbeanstalkdadmin )... | true |
ee4275e78b40c66fab97aae243f83b9592c833ab | Shell | frncmx/my-arch-linux | /first-boot/post-chroot | UTF-8 | 1,364 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -x
set -euo pipefail
: "${NEW_HOSTNAME?"Please, provide your desired hostname."}"
# Sanity: Check network connection.
ping -c3 archlinux.org
### Localization settings ###
ln -f -s /usr/share/zoneinfo/Europe/Budapest /etc/localtime
hwclock --systohc --utc
eng_locale='en_US'
sed -i "s/^#${en... | true |
77cf2f4b8e5b09b302ab44a4675e174f8903400d | Shell | ruanbekker/scripts | /tcp_is_it_up.sh | UTF-8 | 200 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
TCP_EXIT_CODE=1
while [ "$TCP_EXIT_CODE" != 0 ] ; do nc -vz -w 1 localhost 1001 &> /dev/null && TCP_EXIT_CODE=${?} || TCP_EXIT_CODE=${?} ; echo "failing"; sleep 1; done; echo "ok"
| true |
714854f61a8d4d504ebb5ad2bb42440c21a79fcf | Shell | chinadongnet/hiveos-linux | /hive/miners/noncerpro-cuda/h-stats.sh | UTF-8 | 1,189 | 3.171875 | 3 | [] | no_license | #!/usr/bin/env bash
get_miner_uptime(){
local a=0
let a=`date +%s`-`stat --format='%Y' /run/hive/miners/noncerpro-cuda/miner.conf`
echo $a
}
stats_raw=`curl --connect-timeout 2 --max-time $API_TIMEOUT --silent --noproxy '*' http://127.0.0.1:${MINER_API_PORT}/api`
if [[ $? -ne 0 || -z $stats_raw ]]; then
echo ... | true |
5d8595987006054ea249bd892d71dba7bc94bf26 | Shell | ifthikhan/dotfiles | /zsh.zsh | UTF-8 | 1,845 | 3.234375 | 3 | [
"MIT"
] | permissive | # Load colors
autoload -U colors && colors
#autoload -U compinstall && compinstall
# Key bindings
# To see the key combo you want to use just do:
# cat > /dev/null
# And press it
bindkey "^U" kill-whole-line # ctrl-k
bindkey "^R" history-incremental-search-backward # ctrl-r
bindkey "^A... | true |
13f1540516b8f38e7591ebbebe5f6340ee99893e | Shell | hite/SameSchemeTest | /replaceScheme.sh | UTF-8 | 1,292 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# author: hite
# 修改 bundleid,urltype 里的 bundleId,scheme。
#workflow
plistBuddy=/usr/libexec/PlistBuddy
projectName=SameSchemeTest
info_plist="./${projectName}/Info.plist"
schemeurl=weixin
dist_dir=`pwd`/build
function changeBundleId
{
# 开始循环
bundleIds=('A' 'f' 'com.xx')
for bundleId in ${... | true |
f6ee50ee8f48a312792caa9eb338fa7354a482f5 | Shell | tatonka21/bacontools | /git/git-clone-github-user/git-clone-github-user | UTF-8 | 380 | 3.34375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/sh
# Usage: git-clone-github-user USER [GIT_CLONE_OPTS...]
# Clone all repositories of a Github user to the working directory.
PER_PAGE="{PER_PAGE-200}"
USER="$1"
shift 1
curl -s "https://api.github.com/users/$USER/repos?per_page=$PER_PAGE" \
"https://api.github.com/orgs/$USER/repos?per_page=$PER_PAGE" | \
jq... | true |
1220adb88fce1c0183db106f4654054253d45055 | Shell | cityofaustin/lioness | /data/scripts/resetData.sh | UTF-8 | 475 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
echo "Stoping docker containers & delete it with all volumes..."
containers=$(docker ps -f name=local_ -a -q)
if [ ! -z "$containers" ]; then
docker stop $containers
docker rm $containers
docker volume rm $(docker volume ls -q -f dangling=true -f name=local_)
fi
echo done.
echo "Remov... | true |
d279a8ae3a5e7e013d881d508e505302a02e51b5 | Shell | mattvenn/capture | /setup.sh | UTF-8 | 1,379 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2015 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable... | true |
27bd1a952c7dcffe225a8a19dc5744f241b636e4 | Shell | marekbeckmann/Bookstack-Debian-11-Installation-Script | /install-bookstack-debian.sh | UTF-8 | 6,346 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function logToScreen() {
clear
printf '%s\n' "$(tput setaf 2)$1 $(tput sgr 0)"
sleep 1
}
function installPackages() {
logToScreen "Installing required pacakges..."
apt -y update
apt -y install wget pwgen unzip git curl apache2 libapache2-mod-php php mariadb-... | true |
bf531f43c02f2ef93733954d654288b2de545b37 | Shell | Zaraden/docker-images-1 | /splunk/oracle-weblogic-admin-server+splunk/build.sh | UTF-8 | 1,033 | 3.578125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# ******************************************************************************
# Oracle WebLogic 12.2.1.4.0 Docker image build file.
#
# Since : September, 2021
# Author: Arnold Somogyi <arnold.somogyi@gmail.com>
#
# Copyright (c) 2020-2021 Remal Software and Arnold Somogyi All rights reserved
# BSD (2... | true |
a300af0c0bad5fd110f2f0bcd857a97ebfa495bd | Shell | carlosmorenoin/livesound | /stop.sh | UTF-8 | 593 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
cd `dirname $0`
r=`pwd`
echo $r
function stop_service {
echo "Stopping Service " $1
cd $r/$1
if [ -z $(cat pid.file) ]
then
echo "PDI not found for service " $1
else
kill $(cat pid.file) && rm pid.file || echo "Could not kill process" $(cat pid.file)
... | true |
1a1617851fbaf9c8d16805f2f10c18abcf6e713c | Shell | mgijax/omim_hpoload | /Install | UTF-8 | 1,086 | 4.15625 | 4 | [] | no_license | #!/bin/sh
#
# Installation script
#
# 1) cp omim_hpoload.config.default omim_hpoload.config
# 2) cp annotload.config.default annotload.config
# 3) Install
#
Usage=Install
#
# Function called when the install fails.
#
installFailed ()
{
echo "Installation Failed: `date`"
exit 1
}
#
# Verify the arguments ... | true |
71779d861f5ac184205f6c1fc3b3b52de7a7c388 | Shell | Findarato/dotFiles | /scripts/bin/newSSH_key.sh | UTF-8 | 105 | 3.046875 | 3 | [] | no_license | #!/bin/bash
if [ -f "${1}" ];then
ssh-keygen -t ed25519 -f "${1}"
else
print("KEY NAME MISSING")
fi
| true |
4ff4030011d4477d98352d470248b4077a80b04b | Shell | jakartaredhat/weld-cdi-tck | /setup.sh | UTF-8 | 663 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Download and unzip the CDI TCK dist
wget http://download.eclipse.org/ee4j/cdi/cdi-tck-2.0.6-dist.zip
shasum -a 256 cdi-tck-2.0.6-dist.zip
unzip cdi-tck-2.0.6-dist.zip
# Install the TCK artifacts into local repo
pushd .
cd cdi-tck-2.0.6/artifacts
bash artifact-install.sh
popd
# Download Wildfly/... | true |
d4352aff7a8d818abd85fbcbd520c302f7897426 | Shell | kmorel/config | /shell-startup/path-setup.sh | UTF-8 | 1,577 | 3.890625 | 4 | [] | no_license | #!/bin/sh
# Gets ready to add custom things to the path and adds the paths that I
# consistently use. This script can be sourced by sh and any variant.
# before_system_path=
# system_path=${PATH}
# after_system_path=
# Used internally
detect_system_path() {
system_path=`echo ${PATH} | sed -e "s|${before_system_... | true |
366e6bc055cec306bd1ecfebb5efecc644220558 | Shell | dominopetter/workspaces-minimal | /rstudio/install | UTF-8 | 765 | 2.859375 | 3 | [] | no_license | #!/bin/bash
set -o nounset -o errexit -o pipefail && \
mkdir -p /tmp/rstudio-temp && \
cd /tmp/rstudio-temp && \
apt-get update -y && apt-get install -y gdebi libapparmor1 && \
wget -q https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.1056-amd64.deb && \
gdebi -n rstudio-server-1.3.1056-amd64.deb &&... | true |
84e6f0f9b54afb65749fd238bc722a37172994f8 | Shell | bcowgill/bsac-linux-cfg | /bin/cfg/log-githook/post-commit | UTF-8 | 755 | 3.03125 | 3 | [] | no_license | #!/bin/sh
# https://git-scm.com/docs/githooks
PRE="`date` post-commit-msg:"
LOG=~/githook.log
echo === $PRE $0 entered ========================= >> $LOG
echo $PRE LOGNAME: $LOGNAME USER: $USER HOME: $HOME >> $LOG
echo $PRE PWD: $PWD >> $LOG
echo $PRE EDITOR: $EDITOR >> $LOG
echo $PRE PATH: $PATH >> $LOG
echo $PRE GIT_D... | true |
e7cfa1c382858e5f625ca279803628b27e981b23 | Shell | cccarey/ubu-wd40 | /scripts/quicken | UTF-8 | 1,238 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
die() {
# $1 - the exit code
# $2 $... - the message string
retcode=$1
shift
printf >&2 "%s\n" "$@"
exit $retcode
}
wine_install() {
echo -n "wine not installed... script will attempt to install. N to cancel"
read resp
[[ "$resp" == "N" ]] && die 0 "cancel requ... | true |
3fd52aaeeeac8aacfa75548843626243ae20d50e | Shell | vicrem/mssql | /init_script/initialization.sh | UTF-8 | 5,221 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -e
# Mandatory input
[ -z "${KERBEROS_REALM}" ] && echo "KERBEROS_REALM must be defined" && exit 1
# Optional input
[ -z "${LDAP_ENUMERATE}" ] && LDAP_ENUMERATE="False"
[ -z "${LDAP_USER_MEMBEROF}" ] && LDAP_USER_MEMBEROF="memberOf"
[ -z "${LDAP_IGNORE_GROUP_MEMBERS}" ] && LDAP_IGNORE_GROUP_MEMBERS="... | true |
4086d9d9e4470f12f1bab0a52b0d6c88fe989621 | Shell | NathanGiesbrecht/FireOS | /fire_overlay/bundles/xlib/01_get.sh | UTF-8 | 480 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
. ../../common.sh
# Read the 'xlib' download URL from '.config'.
DOWNLOAD_URL=`read_property XLIB_SOURCE_URL`
# Grab everything after the last '/' character.
ARCHIVE_FILE=${DOWNLOAD_URL##*/}
# Download 'xlib' source archive in the 'source/overlay' directory.
download_source $DOWNLOAD_URL $OVERLAY_... | true |
e62ce6672a88297054c0cf3a3d1ac9e8d16834cf | Shell | Chrysostomus/packages-community | /packnroll/PKGBUILD | UTF-8 | 971 | 2.71875 | 3 | [] | no_license | # Maintainer: Philip Müller <philm[at]manjaro[dot]org>
# Developer: Filipe Marques <eagle[dot]software3[at]gmail[dot]com>
pkgname=packnroll
pkgver=1.0.0
pkgrel=1
pkgdesc="It's so easy doing the packaging process !"
arch=('i686' 'x86_64')
url="https://github.com/filipe-marques/packnroll"
license=('GPL')
depends=('qt5-b... | true |
603091a3b33e367db353b4f83d491a048ef1d897 | Shell | anomen-s/anomen-kernel-config | /banan/home/sshfs/mivvy/mount.sh | UTF-8 | 115 | 2.65625 | 3 | [] | no_license | #!/bin/sh
H=mivvy
if [ -n "$1" ]
then
H=$1
fi
sshfs -o nonempty -o transform_symlinks $H:/ $HOME/sshfs/mivvy
| true |
a16233d8044485d0f0ddae1d6cefa7c281566a0d | Shell | cedadev/slstr_calibration_ftp_retriever | /make_mpc_level0_config.sh | UTF-8 | 1,328 | 2.96875 | 3 | [] | no_license | #!/bin/bash
export model=$1
export config_file=$GWS_PATH/software/slstr_calibration_ftp_retriever/config/slstr_cpa_level0_$model'.cfg'
export lockfile=$GWS_PATH/s3_slstr_raw_data/$model/flight/level0_data/level0_lock.txt
export output_dir=$GWS_PATH/s3_slstr_raw_data/$model/flight/level0_data/
export log_dir=$GWS_PATH... | true |
0ec0dc5f591d27ac68e9a828afa8d43f666d0d89 | Shell | valueerrorx/life-servicemenus | /resize.sh | UTF-8 | 3,420 | 3.328125 | 3 | [] | no_license | #!/bin/bash
DIR="$1";
kdialog --title "Resize Images" --yesnocancel "Do you want to replace exisiting files ?"
case $? in
0) # Replace exisiting files !
choice=`kdialog --title "Resize Images" --radiolist "target size:" 1 "1024px" on 2 "800px" off 3 "640px" off 4 "480px" off`;
FILE=""
let "nbfiles = $#... | true |
46dc4de26fcbb2680f6e5fc3e3f5419f1bb2487c | Shell | qqqqqqq645/qwr | /asdf/sh_pro1_while.sh | UTF-8 | 107 | 3.34375 | 3 | [] | no_license | echo "Input your number"
read digit
while [ $digit -gt 0 ]
do
echo $digit
digit=`expr $digit -1`
done
| true |
65dcf586e3ac77424c8bcf17cfc040029c725877 | Shell | leekaka/Deeplab_v2_test | /deeplab_start.sh | UTF-8 | 607 | 2.6875 | 3 | [] | no_license | #!/bin/bash
###
# author :leekaka
###
echo "拉取源码中..."
git clone https://bitbucket.org/aquariusjay/deeplab-public-ver2.git
echo "源码拉取成功,开始创建文件夹"
mkdir -p ./exper/voc12/config/deeplab_largeFOV
mkdir -p ./exper/voc12/features/labels
mkdir -p ./exper/voc12/features2/labels
mkdir -p ./exper/voc12/list
mkdir -p ./exper/v... | true |
862b543bde03d635c68d1eb0752abd2c203adbb3 | Shell | hmasmoudi/SyphaxOS | /Default/0003-SyphaxOSGnome3/001_BuildPackagesScripts/0173-notification-daemon/PKGBUILD | UTF-8 | 673 | 2.53125 | 3 | [] | no_license | # Maintainer: Hatem Masmoudi <hatem.masmoudi@gmail.com>
pkgname=notification-daemon
pkgver=3.20.0
pkgrel=6
pkgdesc="The Notification Daemon package contains a daemon that displays passive pop-up notifications."
arch=('x86_64')
url="http://ftp.gnome.org/pub/gnome/sources/notification-daemon/3.20"
license=('GPL')
groups... | true |
8c34ed91817b3685d2f6d6490866a402cca4cb29 | Shell | pandorafms/pandorafms | /extras/docker/centos8/build_image_el8.sh | UTF-8 | 3,122 | 3.890625 | 4 | [] | no_license | #!/bin/bash
VERSION=$1
ENT="$HOME/code/pandora_enterprise"
OPEN="$HOME/code/pandorafms"
OS="Centos"
ARCH="x86_64"
EL="el7"
EXT="demo"
TARGET_URL="http://atlantis.artica.es"
DOCKER_PATH="$OPEN/extras/docker/centos8/"
OSTACK_IMAGE="pandorafms/pandorafms-open-stack-el8"
OBASE_IMAGE="pandorafms/pandorafms-open-base-el8"
P... | true |
e7281e306f109ed94becd2bc9dec5161469189ce | Shell | idleuncle/bdpaas | /easy_deploy/easy_deploy | UTF-8 | 1,730 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# 本脚本是部署工作的启动脚本。
# 工作起点是已登录控制机,安装包已拷贝至控制机。已取得集群所有节点的主机IP及root密码。
# 控制机工作目录,缺省是本启动脚本所有目录。
readonly MASTER_ROOTPATH=$(cd `dirname $0`; pwd)
echo "Master Root Path: " $MASTER_ROOTPATH
SCRIPT_NAME=`basename $0`
cd $MASTER_ROOTPATH
. ./scripts/utils.sh
. ./config.sh
. ./scripts/cmd_base.sh
. ./scripts/cmd_ss... | true |
566505a88ea9e56e12ea137df544076586268b09 | Shell | whchi/env | /image.sh | UTF-8 | 281 | 3.53125 | 4 | [] | no_license | #!/bin/sh
SUFFIX=$2
TAG="latest"
IMAGE_NAME="app_${SUFFIX}:${TAG}"
case "$1" in
build)
docker build -f Dockerfile-${2} -t $IMAGE_NAME .
;;
push)
docker push $IMAGE_NAME
;;
*)
echo $"Usage: $0 {build|push}"
exit 1
esac
| true |
8591418468dfc14cf6c408cab34be4f324a29dfa | Shell | luyGithub/hello-world-1 | /icepack_luy/cesm_meltpond_pe/run_real/test_if.sh | UTF-8 | 445 | 2.84375 | 3 | [] | no_license | #!/bin/sh -f
iflag=`grep "IFLAG" icepack.runlog.191215-114747 | cut -f 2 -d"=" | sed 's/ //g'`
echo "iflag= $iflag"
if [[ $iflag -eq 0 ]]
then
echo 'iflag=0'
echo 1 >> iflag.txt
sed -n "` grep -n "FINAL POINT X=" icepack.runlog.191215-114747 | awk -F ":" '{print $1}' `,+1p" icepack.runlog.... | true |
bd77c6e1e727e94b0d91fd56134355a113b55cce | Shell | ecmwf/eccodes | /tests/grib_ecc-1271.sh | UTF-8 | 817 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# (C) Copyright 2005- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an in... | true |
0c262b1ca285a5c09b19b550ade53295a98bf2fa | Shell | trcook/.dotfiles | /bash_profile | UTF-8 | 1,238 | 3.171875 | 3 | [] | no_license | #! /bin/bash
INVOCATION_ORDER+=('bash_profile')
export INVOCATION_ORDER
# This prints the directory in the tab window
if [ $ITERM_SESSION_ID ]; then
export PROMPT_COMMAND='echo -e "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND";
fi
# This function checks through an array of vars. This lets us work out an ordering fo... | true |
df3f0fef51f57865833ba1dbd81b13e1d3c58c55 | Shell | sangam-belose/learning-spring | /src/main/resources/postgress/start_postgres.sh | UTF-8 | 471 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
#which psql > /dev/null || (echoerr "Please ensure that postgres client is in your PATH" && exit 1)
#mkdir -p $HOME/docker/volumes/postgres
#rm -rf $HOME/docker/volumes/postgres/data
docker run --name pg-docker -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=dev -d -p 5432:5432 pos... | true |
1c4cd5d9e7ec834fa463cc016a062be609c04dfa | Shell | d1namo/Arch | /.scripts/color-wal | UTF-8 | 604 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
#
~/.Scrips/wal -i ~/Imágenes/Wallpapers/ -o wal-set -a 95
source "${HOME}/.cache/wal/colors.sh"
reload_dunst() {
pkill dunst && \
dunst \
-lb "$color15" \
-nb "$color15" \
-cb "$color15" \
-lf "$color0" \
-bf "$color0" \
... | true |
fa224fa88fde7a714d452830aa85031cf28f30d1 | Shell | fgpolito/AlexaPi | /alexapi/gpio | UTF-8 | 1,148 | 3.640625 | 4 | [
"FSFAP",
"MIT"
] | permissive | #!/bin/sh
BASE_PATH="/sys/class/gpio"
EXPORT_FILE="export"
UNEXPORT_FILE="unexport"
BUTTON_1="18"
LED_1="23"
LED_2="24"
LED_3="25"
#unexport the required GPIOs (reset)
echo ${BUTTON_1} > ${BASE_PATH}/${UNEXPORT_FILE}
echo ${LED_1} > ${BASE_PATH}/${UNEXPORT_FILE}
echo ${LED_2} > ${BASE_PATH}/${UNEXPORT_FILE}
echo... | true |
a35d2ee8d267b3bdcf7ad6a271a6668d9744f072 | Shell | Ritvik19/Shell-Scripts | /n-most-common.sh | UTF-8 | 280 | 3.234375 | 3 | [] | no_license | while getopts 'c:f:n:' opt
do
case $opt in
c) COL=$OPTARG ;;
f) FILE_PATH=$OPTARG ;;
n) N_ROWS=$OPTARG ;;
esac
done
cut -d ',' -f $COL $FILE_PATH | head -n 1
cut -d ',' -f $COL $FILE_PATH | tail -n +2 | sort | uniq -c | sort -nr | head -n $N_ROWS | true |
2f681aa2af32816cc412253d7fce06a8d11d6fa1 | Shell | clairemcwhite/genetic_code | /get_count.sh | UTF-8 | 209 | 2.984375 | 3 | [
"LicenseRef-scancode-mit-old-style",
"LicenseRef-scancode-public-domain"
] | permissive | BLA=$1
#grep -Ff six_or_more.txt ../proteome/human_proteome.fasta
while read x
do
count=`grep -o $x proteome/human_proteinstring.txt | wc -l`
if [ ! $count -eq 0 ]
then
echo $x $count
fi
done < $BLA
| true |
0677d2be1fbbcbf1aca652ecca546b73954c566e | Shell | garsir01/ds | /hashing/make-random-uint64.sh | UTF-8 | 1,354 | 3.84375 | 4 | [] | no_license | #!/bin/bash
#
# Get a bunch of random numbers from RANDOM.ORG. These are then parsed and put
# into a particular header file.
# Returns a list of 66 lines, each of which has four (random) numbers
URL="http://www.random.org/integers/?num=264&min=0&max=65536&col=4&base=10&format=plain&rnd=new"
NUMBERS="$(curl $URL)"
#N... | true |
d79a0cd091a3cce7e5698e45033353c3f62db62d | Shell | kaffeed/dots | /bin/select_wm.sh | UTF-8 | 592 | 3.03125 | 3 | [] | no_license | #!/bin/sh
#===============================================================================
#
# FILE: select_wm.sh
#
# USAGE: ./select_wm.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: YOUR NAME (),
# ORGANIZATION:
# ... | true |
a496ccc019719d6cd320f7f7aaba046baea32e05 | Shell | canpok1/sample-pi | /buzzer.sh | UTF-8 | 490 | 3.125 | 3 | [] | no_license | #!/bin/bash
# ラズパイ3でブザーを鳴らすサンプル
# 事前準備:GPIO12にブザーを接続すること
BUZZER_GPIO=12
# PWM周波数 = 19.2MHz / CLOCK値 / RANGE値
# ドレミファソラシドっぽい音
PWM_CLOCK=100
PWM_RANGES=(734 654 583 550 490 437 389 367)
gpio -g mode ${BUZZER_GPIO} pwm
gpio pwm-ms
gpio pwmc ${PWM_CLOCK}
gpio -g pwm ${BUZZER_GPIO} 50
for range in "${PWM_RANGES[@]}"; do... | true |
8f0f5188851414fcf5cd0a314a6452475f836da4 | Shell | jordandrako/dev-env | /dotfiles/.functions.zsh | UTF-8 | 790 | 4.25 | 4 | [] | no_license | #!/usr/bin/zsh
# Check if command is installed
isInstalled() {
[[ -x `command -v $1` ]]
}
# Green background echo
green() {
echo -e "\n\x1B[1;32m$1\x1B[0m\n"
}
# Yellow background echo
info() {
echo -e "\n\x1B[1;33m$1\x1B[0m\n"
}
# Error echo
error() {
echo -e "\n\x1B[1;5;31m$1\x1B[0m\n" 1>&2
[[ $2 -gt 0 ... | true |
42aea3d61519685917e7e60bfd1d024b5506236f | Shell | ushahidi/Ushahidi_Deploy | /debian6.sh | UTF-8 | 1,661 | 2.890625 | 3 | [] | no_license | # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# bu... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.