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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e49f5ed9f81f597a7eaf95e9ccea7a37f01ed5ab | Shell | MaButing/moefmcmd | /moefmcmd.sh | UTF-8 | 1,490 | 3.25 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
# 脚本名:
# 萌否电台客户端bash脚本
# 依赖软件:
# mpg123, jq, curl
# 历史:
# 2013/10/12 Mike Akiba 初次发布
#get_moefm_json () {
# curl -s -A moefmcmd.sh 'http://moe.fm/listen/playlist?api=json&api_key=4e229396346768a0c4ee2462d76eb0be052592bf8'
# return
#}
while true; do
#number=$(curl -s -A moefmcmd.sh 'http:... | true |
fdd589f9502eece5c288e0248fd8acc5ceec804e | Shell | bxdoan/start-nodejs | /run.sh | UTF-8 | 301 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env bash
s=$BASH_SOURCE ; s=$(dirname "$s") ; s=$(cd "$s" && pwd) ; SCRIPT_HOME="$s" # get SCRIPT_HOME=executed script's path, containing folder, cd & pwd to get container path
a="$SCRIPT_HOME/.." ; a=$(cd "$a" && pwd) ; APP_HOME="$a"
cd "$SCRIPT_HOME"
yarn start
cd -- | true |
92adcaa015f7dee2b2963d1f0ee7acae7923af63 | Shell | gtrias/ACSPanel-deb | /acspanel-client-ddns/root/usr/local/acs-bin/ddns_update | UTF-8 | 172 | 2.71875 | 3 | [] | no_license | #!/bin/bash
source ddns_common
login
for H in /etc/acspanel/ddns-client/hosts.d/*.conf; do
if [ -e $H ]; then
source $H
echo "Updating DNS: $DNSNAME"
fi
done
clean
| true |
c46e984c4c8674ca5c85f2fc01e31082e5872095 | Shell | lukereding/random_scripts | /video_to_gif.sh | UTF-8 | 444 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
# to convert a video into a gif using ffmpeg
if [ -z "$1" ]
then
echo "supply a video to create a gif."
exit 1
fi
which ffmpeg
if [ $? -gt 0 ]; then
echo "install ffmpeg on your system."
fi
ffmpeg -i $1 -vf fps=30,scale=1280:-1:flags=lanczos,palettegen palette.png
ffmpeg -i $1 -i ... | true |
c735c323ee97fa9ab59181920394b0590c9e7b27 | Shell | SuperBuddy/ci | /.buildAndLaunch.sh | UTF-8 | 594 | 3.515625 | 4 | [] | no_license | #!/bin/bash
set -e
echo Running $0
. CI.conf
function nextPortNr { # echo the next free port number
local startPortNr=$1
while [ -n "$(docker ps | grep $startPortNr)" ]
do
local startPortNr=$(($startPortNr+1))
done
echo $startPortNr
}
# get the next available port number
internalPortNr=$(nextPortNr $st... | true |
8f7e76a9ede392646f067700896ec1d5daa0a52e | Shell | zyl409214686/AdSdk | /gads-android-sdk/Ader-SDK/resumeNameScreen.sh | UTF-8 | 2,856 | 3.296875 | 3 | [] | no_license | #改名恢复脚本
#用法:sh resumeNameScript.sh 新关键字 原关键字
#如:sh resumeNameScript.sh AderWall hello
filename=$1
# 检验参数
if [ -z $filename ];
then
echo "替换Ader的新关键字没有填写"
exit 1
fi
originname=$2
# 检验参数
if [ -z $originname ];
then
echo "替换Ader的原关键字没有填写"
exit 1
fi
baseDir=$(cd "$(dirname "$0")"; pwd)
#替换文件AndroidManifest.xml和obscur... | true |
c9282039ae875cb997e130681804a02a109ad8ec | Shell | sanjoypa/Linux-Precheck | /prework.sh | UTF-8 | 6,494 | 3.765625 | 4 | [] | no_license | #!/bin/ksh
#
######################################################################
######################################################################
#
# Script: System Information linux.ksh
# Date: April 27, 2016
# Author: SANJOY PAUL
# Purpose: To collect system information.
# Version: 1.00 (Last Modified: ... | true |
f207e8690c555e1d4e6836cd4c2b42df9f379bd4 | Shell | mx-forum-cool/antiX-live | /antixsnapshot-gui | UTF-8 | 8,469 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
version="antixsnapshot-0.1.3.5.3 (02032012)"
# adapted for antiX by anticapitalista@operamail.com
# from version="refractasnapshot-9.0.1 (20110906)" by fsmithred@gmail.com (August 2011)
# which was based primarily on refractasnapshot-8.0.4 by Dean Linkous with ideas
# borrowed from dzsnapshot-gui.... | true |
6b023a5b2f12ef47fdb107b00fd8ae4029f38606 | Shell | CeesJol/lireddit | /server/deploy.sh | UTF-8 | 398 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo What should the version be?
read VERSION
echo "Fine, deploying" $VERSION
docker build -t dockerwokker/lireddit:$VERSION .
docker push dockerwokker/lireddit:$VERSION
# og: ssh root@142.93.143.120
ssh -i ~/.ssh/digitalocean root@142.93.143.120 "docker pull dockerwokker/lireddit:$VERSION && docker tag ... | true |
777e46d9e3dcc8c497eff74f9073f7956313527c | Shell | Vaa3D/vaa3d_tools | /released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/cpp/tbar/run_test | UTF-8 | 475 | 2.515625 | 3 | [
"BSD-2-Clause",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only"
] | permissive | #!/bin/bash
debug/bin/Tbar_apply_sa --result_file test/golden/vol3d.h5_boundpred8.h5 --param_file test/golden/tbar_param.txt --jsonoutputfile test/test.json --test test
file_list=( 'detected1.tif' 'bb.tif' 'bb2.tif' 'bb3.tif' 'objlist.csv' 'split_objlist.csv' 'center.csv' 'merged_center.csv' )
for file in ${file_lis... | true |
d0977dbf040954e4d47ab4582ca602031bd55459 | Shell | seanmcallister/helpful_shell | /scripts/anvio_mergedprofile_subpipeline.sh | UTF-8 | 1,289 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
bampath=$1
dastool_scaffolds2bin=$2
uniqsample=$3
renamedbinspath=$4
outpath=$5
mincontiglen=$6
numthreads=$7
bamsuffix=$8
##Goal to create an additional merged profiles from multisample mappings.
source ~/.bash_profile
source activate anvio3
sleep 10s
mkdir ${outpath}/multiprofile_run
cd ${bampath}
for f ... | true |
d521cb11f18bca1a6396c24f3672cbcb4e155189 | Shell | jonathankart/sfcityfc | /scripts/release.sh | UTF-8 | 376 | 2.546875 | 3 | [] | no_license | #!/bin/bash
maint.sh
cd ..;
wget --no-check-certificate https://github.com/jonathankart/sfcityfc/archive/master.zip;
unzip master.zip;
cp -rf sfcityfc-master/* .
mkdir logs;
chmod 777 logs;
mkdir cache;
chmod 777 cache;
date > web/REVISION;
# this effectively unmaint's the site
cp -rf web/* public_html/;
rm -rf w... | true |
4ad465149a6f2b4d7af95d3868e4a80454ed5434 | Shell | assimilation/assimilation-official | /ci/scripts/attach_asset.sh | UTF-8 | 1,069 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
set -eu
# this script attaches a file to a particular release as an asset
# usage: ./attach_asset.sh <path> <file> <tag>
# prereqs
# run this script in $TRAVIS_BUILD_DIR (hub needs to run at the root of repo)
PATH_TO_FILE=$1
FILE=$2
TAG=$3
# check if the release exists, if not, create it
set +e... | true |
e80ebaa74c54017131c500b952e0c7f2201f6c5a | Shell | 0xd18b/ci | /commute-insurance/chainlink-agoric/internal-scripts/add-ei.sh | UTF-8 | 1,028 | 3.296875 | 3 | [] | no_license | #!/bin/bash
source ./internal-scripts/common.sh
add_ei() {
title "Adding External Initiator #$1 to Chainlink node..."
CL_URL="http://localhost:669$1"
login_cl "$CL_URL"
payload=$(
cat <<EOF
{
"name": "test-ei",
"url": "http://chainlink-agoric_external-initiator-node$1_1:8080/jobs"
}
EOF
)
echo... | true |
5be03d9ebfff95fba238bb6b256b6e8e3883bf4b | Shell | adityasaky/argocd-interlace | /scripts/generate_manifest_bundle.sh | UTF-8 | 1,883 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2021 IBM Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | true |
f6223e4578d3ae2ed0c6d98232357e26ac52b268 | Shell | delkyd/alfheim_linux-PKGBUILDS | /go-sdl-example/PKGBUILD | UTF-8 | 1,978 | 2.71875 | 3 | [] | no_license | # Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Rémy Oudompheng <remy@archlinux.org>
pkgname=go-sdl-example
pkgver=20130107
pkgrel=1
pkgdesc='SDL example for Go, with graphics and soundeffects'
arch=('x86_64' 'i686')
url='https://github.com/banthar/Go-SDL/tree/master/test'
license=('custom')
depends... | true |
c1478d45085d13a5720629d586c7f332779cb639 | Shell | grepinsight/productivity | /find_imgs | UTF-8 | 472 | 2.6875 | 3 | [] | no_license | #!/bin/bash
if [[ "$1" == '.' ]]; then
cat \
<(find . -type f -name "*.png" -printf "%T+\t%p\n") \
<(find . -type f -name "*.jpeg" -printf "%T+\t%p\n") | \
sort -n | grep -v '.Rproj.user'
else
cat \
<(find ~/Dropbox/vimwiki -type f -name "*.png" -printf "%T+\t%p\n" -or -name "*.Rmd" -printf "%T+\t%p\n") \... | true |
50c59b7c4e9638f1cfec6062d33a8dbf7e62f157 | Shell | christaotaoz/shkd-work | /work/panabit_plugin/pa_plugin/cfy/Route/src/portmap_listflow | GB18030 | 1,233 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan
printf "Content-type: text/html;charset=gb2312
Cache-Control: no-cache
"
echo -n "";
. ../common/common.sh
afm_load_page 30 "/cgi-bin/Route/portmap_listflow?id=${CGI_id}&name=${CGI_name}"
echo -n "
<body>
"; cgi_show... | true |
3fdbbea3bef3d9277d1d6a4c7dd48497c2c6a1db | Shell | zhonskate/TFM | /src/scripts/deploy.sh | UTF-8 | 1,341 | 2.53125 | 3 | [] | no_license | # Deploy registry
echo 'creating network...'
docker network create faas
echo 'creating log volume...'
docker volume create log-vol
echo 'creating uploads volume...'
docker volume create uploads-vol
echo 'launching faas-registry...'
docker run -d -v faasRegistry:/var/lib/registry -p 5000:5000 --name faas-registr... | true |
84f8c75d3e1244fe59f9846b71f5ee9f8e01e1fb | Shell | wqx081/opendnssec-svn | /testing/test-cases-daily.d/enforcer.conf.short_interval/test.sh | UTF-8 | 369 | 2.75 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
#TEST: Change the Interval to 4 seconds and check if the enforcer runs 4 times
if [ -n "$HAVE_MYSQL" ]; then
ods_setup_conf conf.xml conf-mysql.xml
fi &&
ods_reset_env &&
ods_start_ods-control &&
ods_enforcer_waitfor_starts 5
#syslog_waitfor_count 60 5 'ods-enforcerd: .*Sleeping for' &&
ods_... | true |
3fbb20836c125036f43d370ea5e9142b16664ec9 | Shell | webino/get.webino.org | /seed/sw/apache/build | UTF-8 | 1,143 | 3.484375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# This is the Webino™ Seed install script!
# Copyright (c) 2015-2017 Webino, s.r.o. (http://webino.sk)
# Version: @@version@@
#
# Are you looking at this in your web browser, and would like to run Webino™ Seed?
# Just open up your terminal and type:
#
# wget @@host@@/seed/apache -qO- | sh
#
# Webino™ cu... | true |
30e88a2b94dcaea1879e86ae64cea94ac28e8c0c | Shell | chaosmail/hdp-secure-sandbox | /setup/ambari-server.sh | UTF-8 | 1,257 | 2.90625 | 3 | [] | no_license | # URL to the Ambari Repo
AMBARI_REPO_URL=${1:-"http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.0.1/ambari.repo"}
# Add the Ambari Repo
# https://docs.hortonworks.com/HDPDocuments/Ambari/Ambari-2.4.0.1/index.html#bk_ambari-installation
echo '******* download ambari repo'
wget -nv $AMBARI_REPO_URL -O... | true |
6479202b81659ea2749c3e0e6d18cc758c609c27 | Shell | yongjhih/parses.js | /docker-mongo-import.sh | UTF-8 | 758 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
OPTIND=1
while getopts "h:d:u:p:" opt; do
case "$opt" in
h) host=$OPTARG
;;
d) db=$OPTARG
;;
u) user=$OPTARG
;;
p) password=$OPTARG
;;
esac
done
shift $((OPTIND-1))
[ "$1" = "--" ] && shift
collection="$1"
[ "$collection" ] || exit 1
... | true |
1291ee70ba1825809e668a1d2a39649b26b9ab0f | Shell | aoloe/bin_etc | /byzanz-record-selection.sh | UTF-8 | 810 | 3.6875 | 4 | [] | no_license | #!/bin/bash
# http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast
# Delay before starting
DELAY=10
DURATION=10
# Duration and output file
if [ $# -gt 0 ]; then
D="--duration=$@"
else
echo Default recording duration $DURATION to /tmp/recorded.gif
D="--duration=$DURATION ... | true |
4c4c9a952f64e8d278430bc3fe5ce60001800ec4 | Shell | CrezZ/ShareManyPublicIp | /utils/verify.sh | UTF-8 | 786 | 3.875 | 4 | [] | no_license | #!/bin/sh
## format: username:password username:password ...
## you can even have same usernames with different passwords
# USERS='user1:pass1 user2:pass2 user3:pass3'
## you could put username:password in
## a separate file and read it like this
#USERS=`cat /etc/openvpn/user.pass`
vpn_verify() {
if [ ! $1 ] || [ ! $2 ... | true |
1b7b0191a0e8b7f3dc0ff8755391044da6d611c7 | Shell | falouu/IoT | /NodeMcuV3/bashduino/src/main/commands/test.sh | UTF-8 | 9,909 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
# DO NOT CALL THIS FILE DIRECTLY!
# call run.sh in repository root instead!
# Output variables:
# PARAMS | map | define params for command
setup() {
map.set PARAMS[testName][name] "test"
map.set PARAMS[testName][description] "run single test"
map.set PARAMS[testName][required] "false"... | true |
291c2207c31c54b92284ef803f205a241826f8d5 | Shell | fluffysquirrels/monitor-rs | /bin/run-web | UTF-8 | 185 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env bash
set -eux;
# Compute package directory.
readonly package_dir="$( cd $(dirname ${BASH_SOURCE})/..; pwd )";
cd "${package_dir}";
bin/build-web;
target/release/web;
| true |
9e541030d03adf102258511effdc97c048cee9ee | Shell | TommyD/gentoo-portage-multilib | /bin/ebuild-helpers/newins | UTF-8 | 517 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
echo "$0: Need two arguments, old file and new file" 1>&2
exit 1
fi
if [ ! -e "$1" ] ; then
echo "!!! ${0##*/}: $1 does not exist" 1>&2
exit 1
fi
... | true |
4d9575e70680c9b4576f8de2c2875e25010a9e58 | Shell | ubuntu1213/shell | /17/test2.sh | UTF-8 | 365 | 3.296875 | 3 | [] | no_license | #!/bin/bash
count=1
echo "This line comes before the function definition"
function func1 {
echo "This is an example of a function"
}
foo() {
while [ $count -le 5 ];do
func1
count=$[ $count +1 ]
done
}
foo
echo "This is the end of the loop"
func2
echo "Now this is the end of the script"
function func2 ... | true |
76e2c8ab14f5eb0028fff791d663a80624f9e321 | Shell | CryptoSavannah/ion | /docker/config.sh | UTF-8 | 2,373 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Get data directory for bitcoin data
echo -n "Directory for blockchain data: "
read dataDirectory
if [[ ! -d $dataDirectory ]]; then
echo "$dataDirectory is not a directory"
exit 1
fi
if [[ ! -w $dataDirectory ]]; then
echo "Cannot write in $dataDirectory";
exit 1
fi
mkdir $dataDirectory/data $d... | true |
4a35dba467ddfe8ea27d3d1ee7ac6f7cac275580 | Shell | pogin503/my-vagrant-setting | /script.sh | UTF-8 | 783 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -f /var/lib/pacman/db.lck ];then
rm /var/lib/pacman/db.lck
pacman -Sy
fi
pacman -Sy --noconfirm
pacman -S archlinux-keyring --noconfirm
pacman -Su --noconfirm
pacman-db-upgrade
pacman -S base-devel --noconfirm --needed
# systemd config
sh -c 'echo "kernel.core_pattern=|/usr/lib/systemd/system... | true |
aed0f3fea5bfd1865cc485166c20e7ae63264f36 | Shell | drakkar-lig/walt-rpi-debian | /overlay/bin/blink | UTF-8 | 138 | 2.71875 | 3 | [] | no_license | #!/bin/sh
if [ "$1" = "1" ]
then
led_module="heartbeat"
else
led_module="mmc0"
fi
echo $led_module > /sys/class/leds/led0/trigger
| true |
59d320cd13ce0f5e1d1624c4b58fc938d66c6bad | Shell | richin13/dotfiles | /scripts/helpers.sh | UTF-8 | 286 | 3 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/usr/bin/env sh
# Author: Ricardo Madriz
# Utility functions for columsn and such
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m'
echo_error() {
echo -e "${RED}$@${NC}"
}
echo_green() {
echo -e "${GREEN}$@${NC}"
}
echo_warning() {
echo -e "${YELLOW}$@${NC}"
}
| true |
aa93361ebf86a68b706139ef8f1c7bd80d297953 | Shell | tomayac/aaron-gustafson.com | /cron.sh | UTF-8 | 629 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# Conver the .plist
plutil -p /Users/aarongu/.MacOSX/environment.plist > /tmp/$EUID.vars
# parse it and replace with variable exports
ruby -p -i -e "gsub('{', '')" /tmp/$EUID.vars
ruby -p -i -e "gsub('}', '')" /tmp/$EUID.vars
ruby -p -i -e "gsub(' \"', 'export ')" /tmp/$EUID.vars
ruby -p -i -e "gsub('\" ... | true |
93e69ef927f53d1c2562dae55ff78f07ee1708f9 | Shell | Eklektisk/web-tools | /setup_rss | UTF-8 | 1,093 | 3.15625 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
mkdir pages/posts
mkdir production/posts
printf 'Enter a title for your blog: '
read TITLE
echo
printf 'Enter a description for your blog: '
read DESCRIPTION
echo
printf 'Enter the domain name for your website: '
read DOMAIN
echo
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<rss version=\"2.0\" xmlns... | true |
217f0e454825180a2154a5fb15768caeadb692e5 | Shell | codybum/encrypted_docker_container | /create_crypt.sh | UTF-8 | 474 | 3.5 | 4 | [] | no_license |
#set root
CRYPTFS_ROOT=/mnt
#find a unused loopback device
LOOP_DEVICE=$(losetup -f)
#mount our file on the loopback device
losetup $LOOP_DEVICE $CRYPTFS_ROOT/$1
#format cryptofs
printf "$2" | cryptsetup luksFormat $LOOP_DEVICE -
#expose cryptofs
printf "$2" | cryptsetup luksOpen $LOOP_DEVICE $1 -
#create local... | true |
9ef809242b16b2f8b06e5a6ba70202d9fa158ebe | Shell | richb-intermapper/UserGuideProbes | /ProbeDocGenerator/updateprobes.sh | UTF-8 | 898 | 3.75 | 4 | [] | no_license | #!/bin/sh
# This is a set of commands to grep through all the InterMapper Probe files and:
# isolate all display_name and <description> ... </description> lines
# regularize them with a Python script
# Sort them into category order
# Output a set of files containing probe reference documentation
# USAGE
#
# sh ... | true |
003d57392f1b10f7c8262369ea37ffc9029322cb | Shell | jdsutherland/dotfiles | /zsh/configs/keybindings.zsh | UTF-8 | 3,114 | 3.046875 | 3 | [] | no_license | # {{{ vi mode
bindkey -v # set vi mode (must be first)
# open current command in vim (from normal mode)
# autoload -z edit-command-line
# zle -N edit-command-line
# bindkey -M vicmd '^v' edit-command-line
bindkey -M vicmd "u" undo
bindkey -M vicmd '^r' redo
# }}}
# handy keybindings
bindkey "^a" beginning-of-line
bi... | true |
cdbe1430dfe820067772c84cbd243e289bb0f744 | Shell | tensorflow/tensorflow | /tensorflow/tools/lib_package/libtensorflow_java_test.sh | UTF-8 | 1,705 | 3.46875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
# Copyright 2016 The TensorFlow Authors. 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... | true |
1a14db2676d4a2a64ed3f0a2bbaf397d9d0e0c9a | Shell | shaneacton/HonoursProjects | /HPC_ParallelSort/4Nodes.sh | UTF-8 | 2,015 | 3.359375 | 3 | [] | no_license | #!/bin/bash
###########################################################################################
# The line below indicates which accounting group to log your job against - must be its
#SBATCH --account=icts
# The line below selects the group of nodes you require - you will all run on curie
#SBATCH --partition... | true |
ee4319c18007dec16d5fe492a57c1a3f98f709b0 | Shell | oscardoudou/selenium-script | /macbook.sh | UTF-8 | 181 | 2.96875 | 3 | [] | no_license | #! /bin/bash
avail="$(python macbook.py)"
echo $avail
if [[ "$avail" =~ unavailable ]] ; then
echo "Pickup is still not available"
else
echo "Pickup is available now"
fi | true |
45a95deaa496293d0a4df03a7355a4d778e84189 | Shell | akrhea/CIFRank_Stability | /run_exp_stability_inter_corr.sh | UTF-8 | 2,052 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# This script generates a medium amount of data
# to test out the use of 3 metrics
# across 11 error correlation levels and 11 error SDs.
EXPER_NAME="inter_corr"
S_SAMPLES=100
N_RUNS=100
M_ROWS=100
# Array of error correlations to test
ERR_CORRS=(0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0)
# Array of ... | true |
57dad6265e58a6419cb897e297b59c92b9ba9655 | Shell | priyesh369/University_Work | /projweek - unix/scripts/linecount | UTF-8 | 193 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#dirtolist
export dir ="/courses/projweek/unix/commands/quotes"
export count=""
for file in `ls $dir ; do
count=`cat $dir/$file | wc -1`
echo "the file $file has $count lines"
done
| true |
ace39e31122c71c164dcf3d4fed8c29612d4e972 | Shell | jutkko/learn | /bash/average.sh | UTF-8 | 191 | 3.3125 | 3 | [] | no_license | #!/bin/bash -e
main() {
read -r n
sum=0
for _ in $(seq 1 "$n"); do
read -r number
sum="$((sum+number))"
done
printf "%0.3f\n" "$(echo "scale = 5; $sum/$n" | bc)"
}
main
| true |
2b6bc953f2b797155fc28ab09acea359fb42468e | Shell | pixelastic/oroshi | /scripts/bin/fzf/directories-search-subdir/fzf-directories-search-subdir-source | UTF-8 | 136 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env zsh
# Returns a list of directories, in the current directory
local here="$PWD"
fzf-directories-search-source "${here}"
| true |
2efec19a35ad42563967b7969baba50b26cd3c09 | Shell | glglwty/rDSN | /scripts/linux/build.sh | UTF-8 | 6,537 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# !!! This script should be run in dsn project root directory (../../).
#
# Shell Options:
# CLEAR YES|NO
# JOB_NUM <num>
# BUILD_TYPE debug|release
# SERIALIZE_TYPE dsn|thrift|protobuf
# GIT_SOURCE github|xiaomi
# ONLY_BUILD YES|NO
# RUN_VERBOSE YES|NO
# ... | true |
b91283e8b4a7341c585a04fb2fdec58540a52c43 | Shell | TIBCOSoftware/dovetail-contrib | /hyperledger-fabric/samples/iou/gen-user.sh | UTF-8 | 2,676 | 3.6875 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# generate user key and cert with attribute bank, admin, alias, and email
# usage: gen-user.sh name org
# e.g., gen-user/sh Alice 1
# user-name ending with "Admin" acts as bank admin
FAB_HOME=${1:-"${GOPATH}/src/github.com/hyperledger/fabric-samples"}
USER=${2:-"Alice"}
ORG=org1.example.com
PORT=7054
BA... | true |
71c44c6e915950548b19e81790ed8efe8043cbb3 | Shell | tytusgigiel/wilikins | /others/mvn/package.sh | UTF-8 | 215 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | # http://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
DIR_PROJECT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/../.. #
mvn -U clean package -f $DIR_PROJECT #
| true |
ab46eda8802063ae78a553108a2c0e07469a152d | Shell | linyimin0812/shell-learning | /scripts/Part-4-Commands/script-spawns-multiple-instances-of-itself.sh | UTF-8 | 433 | 3.609375 | 4 | [] | no_license | #! /bin/bash
PIDS=$(pidof sh $0) # Process IDs of the various instances of this script
P_array=( $PIDS ) # Put them into an array (IFS and array initiate)
echo $PIDS # Show process Ids of parent and child processes.
let "instances = ${#P_array[*]} - 1"
echo "$instances instance(s) of this sc... | true |
b719ff58d4c7fde09852a6d0490092566c0b921f | Shell | altusnets/music | /examples/VoteAppMusicJava/scripts/ensureVotingAppRunning.sh | UTF-8 | 513 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | dir=/Users/bharathb/AttWork/Music/Rest-Music/examples/VoteAppMusicJava/scripts
echo $2> $dir/modeOfCoreReplica$1.out
ps aux > $dir/appLog$1.out
vappId=`grep "vote.jar $1" $dir/appLog$1.out | awk '{ print $2 }'`
#echo $vappId
if [ -z "${vappId}" ]; then
java -jar $dir/vote.jar $1 $dir> $dir/Output$1.out &
fi
sleep ... | true |
538af9dd160cd94ea60f5c43d778b725099e234c | Shell | 181192/DAT159 | /cryptography/03-CipherLab/generate_securekey.sh | UTF-8 | 869 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
DIRECTORY="src/main/resources"
PASSWORD_FILE="$DIRECTORY/password.txt"
KEYSTORE_NAME="des_keystore.jceks"
#read -p "Enter your certificate password : " PASSWORD
#echo "The password is: $PASSWORD"
PASSWORD=changeit
if [ ! -d "$DIRECTORY" ]; then
mkdir ${DIRECTORY}
fi
if [ -f "$DIRECTORY"/keys... | true |
82dbbc39942c91da789b3d4797b6d63e5a3ea02b | Shell | remoteit/docs | /.gitbook/assets/send-file-sample.sh | UTF-8 | 9,867 | 3.765625 | 4 | [] | no_license | #!/bin/bash
#
# Send-File-Sample.sh - Example script of sending a file from storage to device
# tested with connectd package 2.2.2.22
#
# r3_header, -f (Select File|.zip), -e (20160)
#
# VERIFIED March 21, 2017 - GSW
# version info
VERSION="1.0.10"
MODIFIED="January 17, 2019"
DEBUG_ON=1
SHOW_STATUS=1
TOOL_DIR=/usr/b... | true |
911fd588d2ffca8340bb5e939b558c532413ddd9 | Shell | oliverswitzer/ifttt-resource | /out | UTF-8 | 797 | 3.546875 | 4 | [] | no_license | #!/bin/bash
set -e
cd "${1}"
PATH=/usr/local/bin:$PATH
payload=$(mktemp /tmp/resource-in.XXXXXX)
cat > "${payload}" <&0
ifttt_key="$(jq -r '.source.ifttt_key' < ${payload})"
event_name="$(jq -r '.params.event_name' < ${payload})"
if [ -z "${ifttt_key}" ]
then
echo "ERROR: No IFTTT API key provided." >&2
ec... | true |
62265facf9138d4b428d8b56bff3769a39c4671f | Shell | TeamVault/rhoFEM | /scripts/clang_wrapper.sh | UTF-8 | 1,789 | 3.796875 | 4 | [
"NCSA"
] | permissive | #!/bin/bash
SCRIPTS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source "$SCRIPTS_DIR/bash_library.sh"
ENABLE_COMPILER_OPT=$("$SCRIPTS_DIR/config.py" ENABLE_COMPILER_OPT)
if [[ $? -ne 0 ]]; then exit 1; fi
run_compile_command() {
local -a args=("$@")
local cInd=$(indexOf "-c" "${args[@]}")
local let "sI... | true |
b34feef4fa96953fe44d1f424469c38d018ad2ac | Shell | ruman-sarawer/csp2101_g | /pf1/validint.sh | UTF-8 | 498 | 3.59375 | 4 | [] | no_license | #!/bin/bash
while : # infinite loop starting
do
read -p "Enter an integer(Either 20 or 40) " var1 #Prompting user input
if [[ $var1 -ne 20 && $var1 -ne 40 ]] || ! [[ $var1 =~ ^[0-9]+$ ]] ; then #Checking condition, whether user input is not 20 or 40 or an integer
echo "Invalid Value. Try again"
... | true |
cb93ed1284ae16a0a075d2afd7b0b2a9c744e379 | Shell | danielnovello/DeployStudio | /enableUSB.sh | UTF-8 | 1,116 | 2.984375 | 3 | [] | no_license | # Mount Volume
echo "Mounting Volume"
mount -uw /
# Disable SIP
echo "Disabling the SIP..."
/usr/bin/csrutil disable
echo "Disabling the USB Drivers..."
if [ -d /System/Library/Extensions/usbkextbackup/ ]; then
/bin/cp -pvR /Volumes/Macintosh\ HD/System/Library/Extensions/usbkextbackup/IOUSBMassStorageClass.kex... | true |
a9cb2f503c02168c9aa432ef843d6e21fbe8546e | Shell | maxssinistre/korn | /server_make.ksh | UTF-8 | 186 | 3.015625 | 3 | [] | no_license | #!/bin/ksh
HOME_DIR=~/SERVERS
echo " What is the name of the server?"
read SERVER
cd "${HOME_DIR}"
echo "ssh -X -l odtwaph ${SERVER}" > ${SERVER}
chmod 755 ${SERVER}
ksh ${SERVER}
| true |
facc328e3e4eef1992b3080f09dbce128fb1c01e | Shell | justMoritz/wp-user-and-multisite-user-setup | /m_wp_multisite_user_setup | UTF-8 | 1,199 | 3.421875 | 3 | [] | no_license | #!/usr/bin/bash
# executed commands are printed to the terminal
set -x
# makes sure we're in the public HTML directory
cd www
# makes sure all users exist for the base (mmcplatform)
wp-cli-php /usr/bin/wp-cli.phar user create user1 user1@domain.com --role=administrator --user_pass='[redacted]' --allow-root --url=htt... | true |
081240b02bc8ac0127e807644e21c45aca962842 | Shell | zhengziqiang/learngit | /source/shell/create_train.sh | UTF-8 | 286 | 3.109375 | 3 | [] | no_license | #!/usr/bin/env sh
echo "Create train.txt"
rm -rf all_path_train.txt
#rm -rf list.txt
j=0
for dirname in `ls -F | grep /$`
do
for filename in `find ${dirname} -type f -name '*.png'`
do
echo "`pwd`/${filename} ${j}" >> all_path_train.txt
done
j=`expr $j + 1`
done
| true |
135a9fa5857878496712410f421a5c2aafc30870 | Shell | findlimit/dotfiles | /bin/apkinstall | UTF-8 | 869 | 3.421875 | 3 | [] | no_license | #!/bin/sh
ACTION=$1
APP_NAME=$2
APK=$3
OBB=$4
CODE=$5
APP_IDENTIFIER="com.fourdesire.plantnanny2"
get_app_name () {
if [[ APP_NAME = "pn2" ]]; then
APP_IDENTIFIER="com.fourdesire.plantnanny2"
return 1
elif [[ APP_NAME = "jn" ]]; then
APP_IDENTIFIER="com.fourdesire.journal"
ret... | true |
d4c1d5fdc0703046732e6f71f578b35989da1ac0 | Shell | danielfeng/ctools | /sbin/init_selinux.sh | UTF-8 | 272 | 2.515625 | 3 | [] | no_license | #!/bin/bash
# Author : danielfeng
# E-Mail : danielfancy@gmail.com
#关闭selinux
grep -q SELINUX=disabled /etc/selinux/config || sed -i '/^SELINUX=enforcing/aSELINUX=disabled' /etc/selinux/config
sed -i 's/^SELINUX=enforcing/#SELINUX=enforcing/g' /etc/selinux/config
setenforce 0
| true |
36655f93093f7a09ff2b935159293ac016e6a829 | Shell | zsmestad/rc | /bashrc | UTF-8 | 209 | 2.578125 | 3 | [] | no_license | # Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
set -o vi
alias l='ls -lF'
alias la='l -A'
alias lh='l -h'
alias ..='cd ..'
alias ...='cd ../..'
alias tt='tmux attach || tmux'
| true |
be6ede8f54beea34bcec954378c649e2bd466aff | Shell | jdutton/omnibus-sosreport | /jenkins/build | UTF-8 | 576 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Build Omnibus Packages on Jenkins
#
set -e
set -x
# See https://github.com/sparklemotion/nokogiri/issues/948, which is breaking
# the vagrant plugin install of vagrant-berkshelf
export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-omnibus
#... | true |
fade3c1460199a0e01febde387c68fe64b5a3988 | Shell | lifting-bits/rellic | /scripts/test-angha-1k.sh | UTF-8 | 3,222 | 4.15625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
SRC_DIR=$( cd "$( dirname "${DIR}" )" && pwd )
LLVM_VERSION=14
RELLIC_DECOMPILE="rellic-decomp-${LLVM_VERSION}.0"
function Help
{
echo "Run Rellic on AnghaBech-1K"
echo ""
echo "Options:"
echo " --rellic-cmd <cmd> The rellic decompi... | true |
0e6d2c90fa8b3b02907c5ce1081bd6d48d8498e6 | Shell | ntadej/aCT | /src/act/client/setup.sh | UTF-8 | 1,157 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# configure database
echo "Configuring database ..."
awk -f configure_db.awk start_db.sh > temp_start.sh
mv temp_start.sh start_db.sh
# start database
echo "Starting database ..."
/bin/bash start_db.sh &
sleep 1
# configure aCT
echo "Configuring aCT ..."
awk -f configure_act.awk aCTConfigARC.xml > temp_c... | true |
a276dc750131778dec7c4188d023da459f5abd37 | Shell | wendorf/dory | /bin/build | UTF-8 | 513 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
set -euxo pipefail
label=com.danwendorf.dory-agent
plist="${HOME}/Library/LaunchAgents/${label}.plist"
protoc -I service/ service/*.proto --go_out=plugins=grpc:service
go build -o /usr/local/bin/dory main.go
if [ -f "${plist}" ]; then
rm "${plist}"
fi
cp "$(dirname ${BASH_SOURCE[0]})/../ass... | true |
a4effc54804429f112b4a0f0494d022b3e529df7 | Shell | moshekagan/my-general-repo | /my-scripts/run-mysql-quertys-from-remote-server-with-bash/runMysqlFromRemote.sh | UTF-8 | 391 | 3.375 | 3 | [] | no_license | #!/bin/bash
echo ">>>>>>>>>>>>>>>>>>>>>>>>> START >>>>>>>>>>>>>>>>>>>>>>"
query=$1
host=your.host.com
db=your-db
if [ -z "$query" ]
then
echo "[ERROR] - can't run empty query :/ "
else
read -d '' sql << EOF
$query
EOF
echo "About to run:"
echo "$sql;"
ssh "$host" << HERE
sudo su root
mysql "$db" -t -e "$sql;"
... | true |
3970ff83430c8a06403a48e34aa8eac4e148375a | Shell | shadowbq/matrix.dot.files | /home/.matrix/lib/randomz/fileline.sh | UTF-8 | 714 | 3.640625 | 4 | [
"GPL-3.0-only",
"GPL-2.0-only",
"MIT"
] | permissive | #!/bin/bash
function randomline() {
FILERZ=$1
NUMRZ=$(wc -l <$FILERZ)
# echo "$NUMRZ"
if [ $NUMRZ -gt 1000000000 ]; then
echo 'Over 1 Billion Lines, complex selection required'
exit 1
else
# generate random number in range 0-NUM Using $RANDOM (less than 32bit unsigned)
#let "XRZ = (RANDO... | true |
915fa350c079d4a4c89a93f705a63c2e98c729f5 | Shell | stephenfreund/PLDI-2021-Mini-Conf | /admin/search.sh | UTF-8 | 276 | 2.953125 | 3 | [
"MIT"
] | permissive | #
# First do:
#
# ./regmaster_all_registered.py > r.csv
#
# Then run:
#
# ./search.sh r.csv name/email/whatever
#
lines=`grep -i $2 $1`
while IFS= read -r line; do
echo ""
echo $line
echo $line | cut -d, -f1 | xargs ./validate_email_short.py
done <<< "$lines"
| true |
048d75cf02cfec5edba48dfb9c8776582ebdceb7 | Shell | MostafaNader96/Embedded_Linux_Z2H | /assignement_1_bash/phonebook.sh | UTF-8 | 6,077 | 3.90625 | 4 | [] | no_license | #!/bin/bash
clear
##################If nothing is passed as an argument these options appears for the user################
if [ -z $1 ]
then
echo "Please Choose an Option :)"
echo "1-Add a New Contact [-i]"
echo "2-Display All Contacts [-v]"
echo "3-Search Contacts by Name [-s]"
echo "4-Delete All Co... | true |
d7c2a3b81878dc23de7bcbc5636028ab3b2a7016 | Shell | naphthalene/snark-util | /serve.sh | UTF-8 | 287 | 2.875 | 3 | [] | no_license | #!/bin/bash
TESTD=test/server
SLOG=logs/$TESTD/`date +%d%H%M%S`.log
if [ ! -d logs/$TESTD ]; then
mkdir -p logs/$TESTD
fi
java -jar snark-server.jar --no-commands --debug ALL --share 0.0.0.0 sharefile &> $SLOG &
sleep 2
grep "Torrent available on " $SLOG | cut -c 28- > url.var
| true |
99cdcaabd87521019b37023637791456d2cf5512 | Shell | chaitali02/myGdProject | /framework-web/deploy/oracle/edw/run_all.sh | UTF-8 | 1,181 | 3.28125 | 3 | [] | no_license | #*******************************************************************************
# Copyright (C) GridEdge Consulting LLC, 2016 All rights reserved.
#
# This unpublished material is proprietary to GridEdge Consulting LLC.
# The methods and techniques described herein are considered trade
# secrets and/or confidential. ... | true |
7224a3dc9fa47310feee67ba20c1358c067da75b | Shell | amithbhat1/Parallel-PageRank | /serial/run.sh | UTF-8 | 110 | 2.828125 | 3 | [] | no_license | #!/bin/sh
counter=1
while [ $counter -le 100 ]
do
./a.out ${DATA_FILE}
counter=$((counter+1))
done
| true |
ca4c894a9b9b5fea8d0d1e272cd946caa87cb3af | Shell | Athanasius/miggy-py-ircbot | /Boot-bot | UTF-8 | 278 | 2.828125 | 3 | [] | no_license | #!/bin/sh
cd /home/edbot/miggy-py-ircbot || exit 1
PIDFILE=Cmdr-quakenet.pid
ARGS="--daemon Cmdr-quakenet.conf"
if [ ! -f "${PIDFILE}" ];
then
nice supybot ${ARGS}
else
ps -p `cat "${PIDFILE}"` > /dev/null 2>&1
if [ "$?" -eq "1" ];
then
nice supybot ${ARGS}
fi
fi
| true |
2716a3922f5d68754dcbe35365fc0750b84fd50a | Shell | DiegoFlop/Platega | /CUOTAS/01_Crear_Cuotas.sh | UTF-8 | 1,423 | 3.15625 | 3 | [] | no_license | #!/bin/bash
# Script creado por Fernández López, Diego
# En este script instalamos las cuotas. Cambiamos fstab para configurar las cuotas
# volvemos a montar los puntos que cambiamos la configuracion de fstab
# Desactivamos las cuotas para poder configurarlas
# Creamos los archivos de cuotas
# Iniciamos las cuotas
# Cr... | true |
0bfd25b970964ca6975abea413ca14f642ab9abc | Shell | naydef/AIcons | /support/scripts/xbm-resize | UTF-8 | 5,537 | 4.09375 | 4 | [] | no_license | #!/bin/sh
#
# xbm-resize [-t] [ -# | -#x# | -c | -cc ] [ -W | -B | -T ] Ximage...
#
# Using the pbmplus package resize all the given bitmaps or pixmaps
# to the size given on the command line. The default size is 64x54 pixels
# This script will now also handle transparent color pixmaps and will handle
# crop or con... | true |
3bbd567a7fa4e534c859f55e1347a42ff17b8a93 | Shell | mission-apprentissage/cerfa | /.infra/ansible/roles/setup/files/cerfa/tools/gpg/encrypt.sh | UTF-8 | 939 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
readonly RECIPIENTS_KEYS="{{ gpg_keys }}"
function import_recipients() {
IFS=', ' read -r -a keys <<<"${RECIPIENTS_KEYS:-""}"
for key in "${keys[@]}"; do
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "${key}"
done
}
function add_recipients_as_params() {
... | true |
0f8a9465d9abd40b8f3d2e1253e24e2c1732a2e6 | Shell | motoedy/lindenis-v536-target | /allwinner/v536-Lindenis_SOM/busybox-init-base-files_generate/gen_inittab.sh | UTF-8 | 1,175 | 2.875 | 3 | [] | no_license | #!/bin/bash
pwd=$(dirname $0)
cat > $1/etc/inittab << EOF
# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels. The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<r... | true |
cdc30e5354e28c9a73cd8cc0e9d94d74c0a1fd1d | Shell | zd200572/bioinformatics-pipeline | /template.sh | GB18030 | 3,005 | 3.65625 | 4 | [] | no_license | #!/bin/bash
set -e
# óȱʡֵò
# Default parameter
input=input.txt
output=output.txt
database=database.txt
execute='TRUE'
# ÿαظij汾ʱȣ汾Ҫ¼һ-h/-?ʾⲿ
# Function for script description and usage
usage()
{
cat <<EOF >&2
Usage:
-------------------------------------------------------------------------------
Filename: template.sh... | true |
81da8e238cf15ebd569e811d2b5ca7e8891d9d87 | Shell | crest-cassia/CrowdWalk | /img2movie/mkmovie.sh | UTF-8 | 5,443 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Copyright (c) 2013 Takashi OKADA
# All rights reserved.
# Simple scripts to make a movie, convert a movie format or speed.
# print usage
usage() {
echo "usage: sh mkmovie.sh [options]"
echo "examples:"
echo " sh mkmovie.sh img2movie"
echo " sh mkmovie.sh avi2yuv out.avi"
echo " sh ... | true |
f76d7cb5674ae8dba1286952096baffbfaefb4c2 | Shell | btison/docker-images | /gitlab/gitlab/assets/build/install.sh | UTF-8 | 11,080 | 3.3125 | 3 | [] | no_license | #!/bin/bash
set -e
GITLAB_CLONE_URL=https://github.com/gitlabhq/gitlabhq.git
GITLAB_SHELL_URL=https://gitlab.com/gitlab-org/gitlab-shell/repository/archive.tar.gz
GITLAB_WORKHORSE_URL=https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz
GEM_CACHE_DIR="${GITLAB_BUILD_DIR}/cache"
BUILD_DEPENDENCIES... | true |
f1f649f33b4644d0300f7801b718efd0129e1b9e | Shell | UpStride/ops-scripts | /manage-certs/copy-certs | UTF-8 | 747 | 3.78125 | 4 | [] | no_license | #!/bin/bash
function usage() {
echo -e \
"Usage:
sudo copy-certs -v volume -d dns
Retrieve and upload a docker container log to the specific endpoint <$ENDPOINT_URL>
Arguments:
- v: volume
- d: domain name
"
}
while getopts :v:d: flag
do
case "${flag}" in
v) volume=${OPTARG};;
... | true |
aa508cc3d73de91e93e7b6d380460b7c78d7d817 | Shell | Lhhuan/drug_repurposing | /Huan_link_all_script/All_result_ICGC/network/fast_random_walk_restart/drug_target_rwr_result/run.sh | UTF-8 | 855 | 2.53125 | 3 | [] | no_license | #得到../04_test_start_end_num_sorted.txt为start和end的pair
#对每个参数,每个start对应end result进行排序,取$top,得文件$sort_top_file, $top里的结果再与end取交集。所有重合的数据为param_top_probability/01_top_${top_p}_${parameter}_probability.txt
#然后查看param_top_probability/01_top_${top_p}_${parameter}_probability.txt的行数,输出到文件$final_parameter_result.txt里面。
#../... | true |
0c9cac5b934eeb99a3d02e5ec079de3c370882ae | Shell | maduhu/MissionCriticalCloud-cosmic | /cosmic-core/systemvm/patches/debian/config/root/redundant_router/services.sh | UTF-8 | 828 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
vpn_service() {
ps aux|grep ipsec | grep -v grep > /dev/null
no_vpn=$?
if [ $no_vpn -eq 1 ]
then
return 0
fi
r=0
case "$1" in
stop)
service ipsec stop && \
service xl2tpd stop
r=$?
;;
restart)
service ipsec restart && \
service xl2tpd restart
r=$?
;;
esac
return $r
}... | true |
d8c637b820cd11c62a0790c55624a76a0761be34 | Shell | howls90/LabNet | /smicroa/config.sh | UTF-8 | 1,340 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# Check if Root
if ! [ $(id -u) = 0 ]; then
echo "The script need to be run as root." >&2
exit 1
fi
# Update repositories and install packages
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install git -y
# Create stack user
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "s... | true |
66379e2c1de3033e171148b090412ccb4d3b3d00 | Shell | dmitmel/dotfiles | /scripts/copy-text-face | UTF-8 | 626 | 3.15625 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
declare -A faces=(
["shrug face"]=$'\xc2\xaf\\_(\xe3\x83\x84)_/\xc2\xaf'
["shrug face (markdown)"]=$'\xc2\xaf\\\\\\_(\xe3\x83\x84)\\_/\xc2\xaf'
["lenny face"]=$'( \xcd\xa1\xc2\xb0 \xcd\x9c\xca\x96 \xcd\xa1\xc2\xb0)'
["table flip"]=$'(\xe3\x83\x8e\xe0\xb2\xa0\xe7\x9b\x8a\xe0\xb2\xa0)\xe3\x83... | true |
3a840f62652b7e0d4959f9550889d6d43f603e25 | Shell | xiongyihui/msgpack-c | /ci/build_autotools.sh | UTF-8 | 412 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
./bootstrap
ret=$?
if [ $ret -ne 0 ]
then
exit $ret
fi
if [ $1 = "cpp11" ]
then
./configure CXXFLAGS="-std=c++11"
else
./configure
fi
ret=$?
if [ $ret -ne 0 ]
then
exit $ret
fi
make
ret=$?
if [ $ret -ne 0 ]
then
exit $ret
fi
make check
ret=$?
if [ $ret -ne 0 ]
then
exit $ret
fi
... | true |
bbe372ebdcb7e68522977cde6cb646420b7ca878 | Shell | Vinotha16/WIN_ROLLBACK | /templates/linux_audit/ubuntu18.04/ipv6firewallrules_35424_audit.fact | UTF-8 | 420 | 3.015625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# ** AUTO GENERATED **
# 3.5.4.2.4 - Ensure IPv6 firewall rules exist for all open ports (Not Scored)
if [ $(ss -6tuln | grep '.*0.*128.*22' | wc -l) -eq 0 ] || [ $(ip6tables -L INPUT -v -n | grep ".*ACCEPT.*tcp.**.**.*/0.*/0.*tcp dpt.*state NEW" | wc -l) -eq 0 ]; then
echo "{ \"ipv6firewallrulesip_354... | true |
1ea2d5358a36927238d1134d75ea360ba238721b | Shell | trangttt/myslacktee | /helpers.sh | UTF-8 | 707 | 3.515625 | 4 | [] | no_license | #!/bin/bash -
#===============================================================================
#
# FILE: helpers.sh
#
# USAGE: ./helpers.sh
#
# DESCRIPTION: helpers functions
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: TRANG TRAN
# ORG... | true |
2c062513db03b15f75d70a3a44e9e2fe27f73360 | Shell | csdms/wmt-exe | /scripts/activate | UTF-8 | 1,605 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Ensure that this script is sourced, not executed
# Note that if the script was executed, we're running inside bash!
if [[ -n $BASH_VERSION ]] && [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
>&2 echo "Error: activate must be sourced. Run 'source activate envname'
instead of 'activate envname'.
"
exit 1... | true |
f60f76b76fef0977c22e22caab7fb0bed9e348b7 | Shell | KaiserTom/RandomBashStuff | /legacy/userdelete | UTF-8 | 482 | 3.390625 | 3 | [] | no_license | #! /bin/bash
((i=0)) #Double brackets declare an expression
((j=0))
((f=0))
((k=0))
((p=0))
((g=0))
echo "Input Path to Userlist"
read -r f #Takes path to file
a=$(cat "$f") #Puts content of file into a
b="${a,,}" #Takes a and converts uppercase to lowercase and puts it into b
g="${b//[[:blank:]]/}" #Ta... | true |
14b6925befe3bf9895b93fd8ba7d02f22d98d321 | Shell | manfredpaul/vagrant-hdp-boxes | /hdp3-cluster/provision-base.sh | UTF-8 | 1,582 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# installing required libraries
echo '******* installing required libraries'
yum install scp curl unzip tar wget ntp openssl-devel gcc kernel-devel java-1.8.0-openjdk-devel.x86_64 -y
# set JAVA_HOME
echo '******* setting JAVA_HOME'
echo "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk" >> /etc/pr... | true |
1c4d3a9e26515e7a60eacf48452404de4426d8b2 | Shell | focolab/sleep-classifier | /sleep_scorer/tests/test-rmspow-tsm1d.sh | UTF-8 | 917 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# testing the 1D, two-state GMM (unsupervised) classifiers
# (Two State Model 1D) -> TSM1D
#
set -e
dest=ANL-rmspow-tsm1d
params=param-feat-rmspow-EMG-EMG.json
data=../../example_data/files-data-A-training_only2.csv
#==============================================================================
# stag... | true |
5ca6d5519d71931a57492955a2818975e77ad036 | Shell | etiennesky/ecearth3-post | /ECmean/EC-mean.sh | UTF-8 | 2,305 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#fast wrapper script that recall scripts for PI and RK analysis
#firstly interpolate on common 2x2 grid hiresclim outputs
#hence computes RK08 diagnostics and finally produces
#global mean values for radiation and some selected fields
#Paolo Davini (ISAC-CNR) - <p.davini@isac.cnr.it>
#December 2014
#Imp... | true |
a454b4dff3f78dc3637656e8c0a4dae4e7c0be1d | Shell | rcarreon/robc_main | /sandbox/sysadmins/scripts/scan_kvmhost.sh | UTF-8 | 961 | 3.203125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# /install/custom/install/centos/metal.synclist drops this
# into /etc/cron.daily/ on the XCAT KVM baremetal machines
if test 0 != $(id -u);then
echo "Run as root."
exit 1
fi
if ! test -d /xcatpost;then
echo "Run on xCAT-managed Dells"
exit 1
fi
PATH=$PATH:/usr/local/bin
hostname=$(hostname... | true |
a42c18e92b9fa1112548ce7c4e4c1db0219502eb | Shell | Luphia/SIMPLE | /shell/deploy-xpa-exchange.sh | UTF-8 | 3,831 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
IAM=$(whoami)
sudo swapon -s
free -m
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo apt-get update
sudo apt-get install openssl libtool autoconf automake uuid-dev build-essential gcc g++ python-software-properties unzip make git libcap2-bin -y
sud... | true |
c6da1a5fcd8c5317b07ec72041bbfb2df2be5468 | Shell | sigma-geosistemas/sigma.deploy | /deploy/templates/webserver/start_webserver.template | UTF-8 | 771 | 3.046875 | 3 | [] | no_license | #!/bin/bash
NAME="{{ virtualenv_name }}"
DJANGODIR={{ app_root }}
VIRTUALENVDIR={{ virtualenv_path }}
SOCKFILE={{ app_path }}/socket.sock
USER={{ app_user }}
GROUP={{ app_group }}
NUM_WORKERS={{ no_workers }}
DJANGO_SETTINGS_MODULE={{ virtualenv_name }}.settings
# Activate the virtual environment
cd $VIRTUALENVDIR
so... | true |
0e8c10f5af6e4a36276af0d122612ae7aea3811b | Shell | t-raj/home-maintenance-app | /Vagrant/deploy/provisioner.sh | UTF-8 | 1,464 | 4.03125 | 4 | [] | no_license | #!/bin/bash
##############################################################
# This file creates the environment on a linux machine for our app
###############################################################
yum_filename="/tmp/deploy/yum-pkgs.txt"
app_dir="/opt/home_app"
app_group="homers"
app_name="home_app"
app_user="h... | true |
af5b585491d7af61097ffb9a5505064f4f3e2537 | Shell | miguel250/draft | /bazel | UTF-8 | 949 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
BAZEL_VERSION="0.23.2"
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BIN_PATH="$SCRIPTS_DIR/.bin"
PLATFORM=$(echo "$(uname)" | awk '{print tolower($0)}')
BINARY_NAME="bazel-$BAZEL_VERSION-$PLATFORM-x86_64"
BINARY_PATH="$BIN_PATH/bazel-$BINARY_NAME"
DOWNLOAD_URL="https://github.com... | true |
74ea674fe8ca1ff5ddb074392bc0c4a1e8f96503 | Shell | wvu-online/wvuonline | /web/themes/custom/wvuonline2018/scripts/pattern_lab.sh | UTF-8 | 458 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Install Pattern Lab
# Remove existing PL directory
rm -rf pattern-lab
# Install PL using Drupal Pattern Lab's Edition: https://github.com/drupal-pattern-lab/edition-php-twig-standard
composer create-project -n drupal-pattern-lab/edition-twig-standard pattern-lab
# Delete the default source directory
rm... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.