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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
48ae56f829ad86b91abc507120072d39ce67a299 | Shell | williwaas/dotfileselitebook | /bardylcustom.sh | UTF-8 | 1,691 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env dash
# vim: set ft=sh:
#
# Dylan's bar script
#
# Created by Dylan Araps.
#
# Depends on: xorg-xrandr, wmctrl, mpc, lemonbar, ip, xdotool
font="${BAR_FONT:-"-*-lemon-*"}"
icon="${BAR_ICON:-"-*-siji-*"}"
height="${BAR_HEIGHT:-36}"
get_mon_width() {
# Get the monitor width.
command -v xrandr >/d... | true |
062a2d30d90f09036abf135eeb0bdeba4ca275ac | Shell | idolivneh-stratoscale/inaugurator | /sh/relative_copy_driver.sh | UTF-8 | 487 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#copy into the initrd the executable and its dependencies
#requires DEST environment set
#requires KERNEL_UNAME_R environment set
set -e
for ko in `modprobe --show-depends $1 --set-version=$KERNEL_UNAME_R | sed 's/insmod //'`; do
sh/relative_copy_glob.sh $ko
done
modinfo --field firmware $1 --set-version=... | true |
30da52c59ce69ed2ef5dbae1db19fd1647c0740c | Shell | SUSE/sesci | /docker/deepsea/build.sh | UTF-8 | 1,046 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -ex
DEEPSEADIR=${2:-"deepsea"}
TARGETPATH=$(cd ${1:-"$PWD"}; echo $PWD)
TARGETNAME=${TARGETPATH##*/}
TARGETBASE=${TARGETNAME,,}
TARGETBUILD=${TARGETBASE}-rpm
echo TARGET PATH=$TARGETPATH
echo TARGET NAME=${TARGETPATH##*/}
export DHOME=${DHOME:-$(cd $(dirname $BASH_SOURCE); echo $PWD)}
echo Docker home: $DHO... | true |
e4b3db623ce56a5dd6a64aef83828474db85333a | Shell | darrenclark/my-vim-config | /export.sh | UTF-8 | 346 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# Copies all files from 'files' directory back
# Requires that the files/folders don't already exist
GLOBIGNORE=.
for f in ./files/*; do
destpath="$HOME/$(basename $f)"
if [[ -e "$destpath" ]]; then
echo "FAILED: $destpath already exists"
exit 1;
fi
done
echo "hi"
cp -rv ./files/* ~/
echo "vim c... | true |
4b1e921db7446096fc6f0f1ab53c15bd040fe111 | Shell | cloudfoundry/bosh-cli | /bin/clean | UTF-8 | 157 | 2.859375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -eu -o pipefail
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
echo -e "\n Cleaning..."
go clean -r "${ROOT_DIR}"
| true |
320d8c56a8bd5146707162882a091ef2d57bc74a | Shell | wzqcloud/cloud | /script/menu.sh | UTF-8 | 787 | 3.5625 | 4 | [] | no_license | #!/bin/bash
path=/server/script
[ ! -d "$path" ] && mkdir -p $path
menu(){
cat <<END
1.[install lamp]
2.[内核优化]
3.[exit]
END
read -p "please input the num you want: " num
expr $num + 1 &>/dev/null
[ $? -ne 0 ] && {
echo "the num you input must be {1|2|3}"
exit 1
}
[ $num -eq 1 ] && {
echo "start install... | true |
a6e22274396dd45321671c731d970b37f4fb7cfa | Shell | tsweeney256/file_host | /database/install_db.sh | UTF-8 | 365 | 3.390625 | 3 | [] | no_license | #!/bin/bash
thisdir="$(dirname $(readlink -f $0))"
dbname="${1:-file_host}"
superuser="${2:-postgres}"
port="${3:-5432}"
host="${4:-/var/run/postgresql}"
function run_psql_file {
psql -U "$superuser" -p "$port" -h "$host" -f "$1" "$dbname"
}
run_psql_file "${thisdir}/users.sql"
run_psql_file "${thisdir}/tables.s... | true |
d67779a4be7bd9c633b57e16e99f03ee6e9294e4 | Shell | bellyfat/Decentralized-Spotify | /audius-tooling/deploy-scripts/change-k8s-service-versions.sh | UTF-8 | 2,245 | 4.0625 | 4 | [
"MIT"
] | permissive | set -e
source ../setup-scripts/config/conf.sh
source ./utils.sh
# Inputs
# $1 -- new tag
# $2 -- old tag
# Validations
if [ "$1" == "" ] || [ "$2" == "" ]; then
echo "One or both tagnames are invalid: new -- $1 old -- $2";
echo "Example usage: sh change-service-version.sh 0.3.6 0.3.5";
exit 1;
fi
echo $1 -- n... | true |
71fb638a4189aa6ea2207a707e1417233b025497 | Shell | kontax/snooker-broadcast-tracking | /install.sh | UTF-8 | 1,371 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# Install's the rest of the
# Largely taken from steps outlined at:
# https://github.com/BVLC/caffe/wiki/Install-Caffe-on-EC2-from-scratch-(Ubuntu,-CUDA-7,-cuDNN)
echo -e "\nCUDA installation script\n"
# Script must be run as root
if [ "$(id -u)" != "0" ]; then
echo "Please re-run this script as th... | true |
332a89a27ab24da5dc586e557a8936dedac46b21 | Shell | realeroberto/bashlets-math | /lib/poly/pretty | UTF-8 | 2,787 | 2.859375 | 3 | [] | no_license | #!/bin/bash
################################################################################
#
# | | | |
# |---.,---.,---.|---.| ,---.|--- ,---.
# | |,---|`---.| || |---'| `---.
# `---'`---^`---'` '`---'`---'`---'`---'
#
# ... | true |
f50dc323445546d309587542876104ac935d6a0b | Shell | dwighteb/ansible-provision | /playbook/roles/openvpn/files/configure-pat.sh | UTF-8 | 3,129 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Configure the instance to run as a Port Address Translator (PAT) to provide
# Internet connectivity to private instances.
#
set -x
echo "Determining the MAC address on eth0"
ETH0_MAC=`/sbin/ifconfig | /bin/grep eth0 | awk '{print tolower($5)}' | grep '^[0-9a-f]\{2\}\(:[0-9a-f]\{2\}\)\{5\}$'`
if [ $? -n... | true |
d349fbe67f38ea8d8e3f542e3e3a55662caa7112 | Shell | jiaming-cs/arfl | /experiments/femnist.sh | UTF-8 | 1,805 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
dataset="femnist"
pc=0.5
ps=1.0
epochs=20
num_rounds=2000
per_round=20
attack_type=3
actors=16
gpus=2
lambda=10000.0
seed=0
setup_clients=1.0
batch_size=64
mkdir -p results/${dataset} log/${dataset}
pushd ../
pushd models/ || exit
#method=$1
for method in "arfl" "cfl" "mkrum" "rfa"
do
for seed i... | true |
70297b700e1dbca37970e29cd530ff33bdd09398 | Shell | alfpedraza-aws-devops/infrastructure | /modules/environment/scripts/master/share-join-data.sh | UTF-8 | 4,273 | 3.5625 | 4 | [] | no_license | PRIVATE_MASTER_HOST=""
PRIVATE_TOKEN_VALUE=""
PRIVATE_TOKEN_HASH=""
PRIVATE_REGION_NAME=""
PRIVATE_BUCKET_NAME=""
function generate_join_data() {
# Generate the values to share with the nodes so they can join the cluster later.
local NODE_IP=$(get_node_ip)
local TOKEN_HASH_VALUE=$(openssl x509 -pubkey -in ... | true |
d95046a9662938375073a6406f12dfcf4a9d6bf0 | Shell | cloudcafetech/kube-katakoda | /host-setup.sh | UTF-8 | 9,886 | 3.375 | 3 | [] | no_license | #!/bin/bash
# Kubernetes host setup script for CentOS
master=$1
KUBEMASTER=10.128.0.5
MinIO=10.128.0.9
NFSRV=10.128.0.9
NFSMOUNT=/root/nfs/nfsdata
#K8S_VER=1.14.5
K8S_VER=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt | cut -d v -f2)
CRI=docker
velver=v1.4.2
DATE=$(date +"%d%m%y")
TOKEN... | true |
16e898a10bc7af7cfd7f60efe6f5c653393ca952 | Shell | yurimdh/dotfiles | /.macos | UTF-8 | 33,170 | 3.171875 | 3 | [] | no_license | #!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Modified by Yuri
# Run without downloading:
# curl https://raw.githubusercontent.com/yurimdh/dotfiles/HEAD/.macos | bash
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "... | true |
533db3d308e0a10afa586aa67650173794b14275 | Shell | JeremyGrosser/binscripts | /turbo | UTF-8 | 242 | 2.796875 | 3 | [] | no_license | #!/bin/bash
if [ $1 == "on" ]; then
sudo /bin/bash -c 'echo 0 >/sys/devices/system/cpu/intel_pstate/no_turbo'
echo "TURBO ON"
else
sudo /bin/bash -c 'echo 1 >/sys/devices/system/cpu/intel_pstate/no_turbo'
echo "TURBO OFF"
fi
| true |
33e4159c24376e246a2b6ed658b4bce64d2b69bb | Shell | solocell/gb_code | /superenhancer_analysis_02_calculate_sample_signal.sh | UTF-8 | 2,845 | 3.828125 | 4 | [] | no_license | #!/bin/bash
########################################
#
# superenhancer_analysis_02_calculate_sample_signal.sh
#
# Mike Fletcher
# 20201025
#
# (original name: superenhancers_subtype_02_calculate_sample_signal.sh)
#
########################################
#
# WHAT THIS DOES
#
########################################
#... | true |
ddc4fc272a42d560c132a58676841d71b85cdac7 | Shell | warrickball/s4tess | /runs/add_white_noise.sh | UTF-8 | 269 | 2.875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# given a folder, create AADG3 input for one run
OLDPWD=$(pwd)
# BASENAME=$(echo $1 | sed 's:/:_:g')
BASENAME=$(basename $1)
cd $1
python3 ../../../scripts/add_white_noise.py $BASENAME.atl $BASENAME.tri $BASENAME.asc "$BASENAME"_WN.asc
cd $OLDPWD
| true |
23ba02cbb863e04b0c40141226a9c3878b17d0d5 | Shell | DukeOfEtiquette/dotfiles | /profiles/ts3d/bin/clone_ts3d_docs.sh | UTF-8 | 448 | 2.640625 | 3 | [] | no_license | #!/bin/bash
echo -e '!!!\nrun "eval $(ssh-agent) && ssh-add ~/.ssh/id_rsa" to stop constant asking of password\n!!!\n'
mkdir -p $TS3D_DOCS
cd $TS3D_DOCS
echo -e "Cloning at $TS3D_DOCS\n"
git clone git@bitbucket.org:techsoft3d/com_docs.git
git clone git@bitbucket.org:techsoft3d/hps_docs.git
git clone git@bitbucket.o... | true |
d00b04c2271ed3bf695e21e0c1cd106cf991ba57 | Shell | jsh/git-add-to | /t/3.t | UTF-8 | 285 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -eu
source testenv.sh
_testname ensure init is handled with multi-args
sleep 1
git-add-to $repo init {a..c}
# verify that they're still there
[ -d $repo ] && [ -d $clone ]
# verify that they're newly created
ls -lt $products | sort | diff - <( ls -ult $products | sort )
| true |
ccc15b5e18db8c6cd3e7e3e377eaddf4a5c96802 | Shell | cicdenv/cicdenv | /terraform/backend/bin/enable-ram-with-organizations.sh | UTF-8 | 448 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -eu -o pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
pushd "$DIR/.." >/dev/null
../../bin/cicdctl creds aws-mfa main
# Source config
backend_config="../../terraform/backend-config.tfvars"
region=$(hclq -i "$backend_config" get --raw 'region')
AWS_PROFILE="admin-main"
... | true |
3ee5270bf1b3eafba6a2c858bbcde481713006bc | Shell | DnZmfr/realworldapp-app-gke | /mongodb-backup/backup.sh | UTF-8 | 475 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
bold() {
echo ". $(tput bold)" "$*" "$(tput sgr0)";
}
CURRENT_DT=$(date +%Y%m%d_%H%M)
BACKUP_FILENAME=mongodb_backup_${CURRENT_DT}.gz
bold "Back-up mongoDB database to ${BACKUP_FILENAME}"
mongodump --archive=${BACKUP_FILENAME} --gzip --uri ${MONGODB_URI}
bold "Copy backup file to Google... | true |
621d1c7f1b8dd1ffb3660bad61abe1213904198e | Shell | Jaymon/.bash | /bin/search/whered | UTF-8 | 524 | 3.53125 | 4 | [] | no_license | #!/usr/bin/env bash
# -*- mode: sh -*-
# vi: set ft=sh :
###############################################################################
#
#? whered <NAME> -> find all directories matching <NAME>
#
###############################################################################
if [[ $1 == "--help" ]] || [[ $1 == "-h" ... | true |
8c32cc86f87300b7360ef3437deb933b98e50385 | Shell | MenkeTechnologies/zpwr | /autoload/common/zpwrgh | UTF-8 | 211 | 2.578125 | 3 | [
"MIT"
] | permissive | # -*- mode: sh -*-
# vim: set ft=sh:
function zpwrgh(){
if test -z $1;then
zpwrOpenmygh "$ZPWR_GITHUB_ACCOUNT/$ZPWR_REPO_NAME"
else
source "$ZPWR_VERBS_FILE" "$@"
fi
}
zpwrgh "$@"
| true |
9cc4d05b9c52c39f529076a5589559340a55704d | Shell | gidoBOSSftw5731/ProjectJoker | /update.sh | UTF-8 | 469 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
hostname=''
username=''
password=''
print_usage() {
cat USAGE
}
while getopts 'h:u:p:' flag; do
case "${flag}" in
h) hostname="${OPTARG}" ;;
u) username="${OPTARG}" ;;
p) password="${OPTARG}" ;;
*) print_usage
exit 1 ;;
esac
done
if [ -z $hostname ] || [ -z $password ] || [ ... | true |
6f1d8ef9f2468bfc3604c6114ee9fc9178db9392 | Shell | BxDorn/bashmap | /client_bashmap_tcp.sh | UTF-8 | 803 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Introduction
echo "This is a Single source / destination threading application
with a ratio of 100:1 source/destination ports per thread.
Ensure you have the server running on the destination host"
# Read the destination IP address.
echo "What is the IP of the destination?"
read dst
# Number of threads... | true |
ff881583402e52e9499804103c26109f020fe31f | Shell | tikalk/os-images | /buildfile.sh | UTF-8 | 338 | 2.84375 | 3 | [] | no_license | #!/bin/bash
PACKERCMD=`which packer`
CURRENT_PUPPET_VERSION='3.5.1'
CURRENT_CHEF_VERSION='11.12.0-1'
[[ -z ${PACKERCMD} ]] && echo "Please install packer, and re-run $0"
packer build -var 'mirror=http://192.168.5.18' -var "chef_version=${CURRENT_CHEF_VERSION}" -var "puppet_version=${CURRENT_PUPPET_VERSION}" template... | true |
ee523f687a77a2fdc56d0bd0759a8f729d04880b | Shell | p-l-/blackarch | /packages/veil/PKGBUILD | UTF-8 | 1,670 | 3.0625 | 3 | [] | no_license | # This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=veil
pkgver=287.d4dd4ff
pkgrel=1
epoch=5
groups=('blackarch' 'blackarch-automation' 'blackarch-exploitation')
pkgdesc='A tool designed to generate metasploit payloads that bypass common anti-virus solution... | true |
eaf02cbe3ae75ac6699c2c7325078fb848b3c780 | Shell | lia2790/xbot2_examples | /docker/run.sh | UTF-8 | 808 | 2.734375 | 3 | [] | no_license | #!/bin/bash
set -e
# get path to script and change working directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/..
docker run -it \
--env="DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
--device=/dev/dri:/dev/dri \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
--name xbot2examples ... | true |
73f9f6d88eb9fee329837b9c1cf051dfefc302a8 | Shell | bsc-wdc/compss | /compss/programming_model/bindings/python/scripts/security/check_bandit.sh | UTF-8 | 274 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
CURRENT_DIR="$(pwd)"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${SCRIPT_DIR}/../../src/pycompss/"
##################
## Check Pylint ##
##################
bandit -r -c ../../pyproject.toml .
cd "${CURRENT_DIR}"
# Exit all ok
exit 0
| true |
8edbbf2e2756edb7226001dba3b300fdc1020ed4 | Shell | RobertZenz/Bivalvia | /DownloadHelpers/machall.sh | UTF-8 | 716 | 3.8125 | 4 | [] | no_license | #!/usr/bin/env sh
# Downloads all MacHall comics.
# http://www.machall.com
#
# Public Domain or CC0
# Note that the comics this script downloads are under copyright.
#
# Usage: machall.sh
# Just execute it in the directory in which you want the images.
# We can use a fixed set of years as there are no more comics co... | true |
c9bf809a7c0118760798fbdf7da6a3f41c71a744 | Shell | mwall/auditr | /api | UTF-8 | 153 | 2.84375 | 3 | [] | no_license | #!/bin/bash
set -e
if [ ! -f auditr-api/play ]; then
echo "You must run script/bootstrap to setup the environment"
exit 1
fi
cd auditr-api
./play $@ | true |
ddd81a37066a15945a62a9004d22f3b45e189f93 | Shell | Cryolite/intro | /template/x86_64-unknown-linux-gnu/asan2line | UTF-8 | 1,748 | 3.875 | 4 | [] | no_license | #!/usr/bin/env bash
if test $# -eq 0; then
echo "$0: missing program name" >&2
echo "Try \`$0 --help' for more information." >&2
exit 1
fi
prog="$1"
shift
asan_output="${TMPDIR:-/tmp}/asan_output"
pid_output=`mktemp ${TMPDIR:-/tmp}/pid_output.XXXXXX` || exit
(echo -n $BASHPID > "$pid_output"
# Redirect stderr... | true |
3474453bd893ffe59d594320dd1c43e9c2dac72a | Shell | Foxboron/goto | /bin/goto | UTF-8 | 1,740 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Checking if we are sourced
# see: https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced
([[ -n $ZSH_EVAL_CONTEXT && $ZSH_EVAL_CONTEXT =~ :file$ ]] ||
[[ -n $BASH_VERSION ]] && (return 0 2>/dev/null)) && sourced=0 || sourced=1
# If goto is not run in sourced mode, it is ... | true |
916190a68b7ba4910a832954e5a96c896f2eac68 | Shell | halka/deploy-ovpn-for-aws-client-vpn | /deploy-ovpn-for-aws-client-vpn.sh | UTF-8 | 4,920 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#######################################
# Deploy a ovpn file for aws client vpn
# Arguments:
# $1: OpenVPN file
# e.g.) file://tmp/aws-vpn.ovpn
# $2: Profile name displayed in AWS VPN Client
# e.g.) aws-vpn
# $3: CvpnEndpointId
# e.g.) cvpn-endpoint-XXXXXXXXXXXXXXXXX
# $4: CvpnEndp... | true |
a7ecc3aeb79bca5ddfb69e3a93d6dfc1df1c6ec9 | Shell | mclarsen/build-test | /configs/setup-spack.sh | UTF-8 | 3,975 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#Script for copying the recommended configuration for Spack onto your system
#for building Nalu-Wind, be it on any systems listed below
if [ -z "${SPACK_ROOT}" ]; then
echo "SPACK_ROOT must be set first"
exit 1
fi
set -e
OS=$(uname -s)
#Use kind of ridiculous logic to find the machine name
if [... | true |
672b032d93f9ec45bccd45727c91f3f4ec807def | Shell | jembi/openhim-mediator-mapping | /packaging/build-release-zip.sh | UTF-8 | 1,122 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -eu
if (( $# < 1)); then
echo "OpenHIM Mediator Mapping release build: Builds a specific tagged release ready for deployment";
echo "Usage: $0 TAG";
exit 0;
fi
tag=$1;
shift;
echo "NB!"
echo "To create the tagged build, various git interactions need to take place. "
echo "This will create a te... | true |
62af5b9839cf44924da7f556c5d9a3f09317c81e | Shell | hasselyoko/ADS | /tools/90_run_tests.sh | UTF-8 | 296 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# setup fake ads server and install cleanup trap
ncat -l 48898 --keep-open &
ncat_pid=$!
trap "{ kill ${ncat_pid}; exit; }" EXIT
set -e
# wait for fake ads server to accept connections
while ! ncat --send-only localhost 48898; do sleep 1; done
./AdsLibTest.bin
./example/example.bin
| true |
71c3d083cb8c0f58f0fdfb27cbb36e841d6b5b1b | Shell | OPwonShinobi/amos-in-wonder-bash | /middle.sh | UTF-8 | 1,604 | 3.890625 | 4 | [] | no_license | #!/bin/bash
# only load rest of script if called via another script; user shouldn't run this script directly
# makes sure a path has been entered
if ! [[ $(echo "$1" | awk '/^[[:upper:]]{1}$/') ]]; then
exit
fi
# save current node letter as something more readable
currentNode=$1
# read & display the current scene te... | true |
36142fee419d3a4081763abb495f6c5c78f6d71c | Shell | kamir/faqsearch | /INGEST/FLUME/bin/runFlumeAgent.sh~ | UTF-8 | 466 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Create an index to strore FAQ data in Cloudera-Search
#
export FLUME_SPOOL_DIR=/flume/faq_files_spooldir
export COLLECTION=faq_collection1
clear
echo Run the Flume agent now ...
echo
echo Collection name: $COLLECTION
echo Spool-Directory: $FLUME_SPOOL_DIR
echo
read -p "Select agent >" a
cd ../conf
... | true |
cfac928c741bb69a0eded18cd187f12354151837 | Shell | unimock/mailmonit-docker | /build/bin/mailmonit.sh | UTF-8 | 873 | 3.359375 | 3 | [] | no_license | #!/bin/bash
. /etc/mailmonit.dat
S_DIR=$VAR_DIR/echo
FI=`mktemp`
INC=`mktemp`
_exit()
{
rm $FI $INC
exit 0
}
cat > $FI
SENDER=`egrep "^From: " $FI | sed -1 | sed "s,^From: ,,"`
SUBJECT=`egrep "^Subject: " $FI | head -1 | sed "s,^Subject: ,,"`
PW=`echo ${SUBJECT} | cut -d" " -f1`
S=${SUBJECT#${PW} }
#
r... | true |
9ae4c96fd61a17e6703b8baee9579fe979dbb94a | Shell | D0han/mockmaker | /tests/test_unknown_command.sh | UTF-8 | 125 | 2.515625 | 3 | [
"Zlib"
] | permissive | #!/bin/bash
command="unknown_command"
./mockmaker "${command}" > /dev/null 2>&1
if [ $? -ne 2 ]; then
exit 1
fi
exit 0
| true |
9b0968695511a80c13c3cdb97f73b628caff45a6 | Shell | RY-2718/frontera_crawler | /scripts/speed_per_minute.sh | UTF-8 | 259 | 2.53125 | 3 | [] | no_license | #!/bin/bash
cd `dirname $0`
v=`cat ../scrapy_log/scrapy.log | grep Crawled | head -1 | awk '{print $1 "_" $2 " " $6}'`
w=`cat ../scrapy_log/scrapy.log | grep Crawled | tail -1 | awk '{print $1 "_" $2 " " $6}'`
python ../scripts/py/speed_per_minute.py $v $w
| true |
89e9e64a68d32f0f27b2b11f185cb306dfda1abb | Shell | jrodolfo/script-samples | /example-02-create-react-redux-projec/create-react-redux-project.sh | UTF-8 | 2,071 | 3.96875 | 4 | [] | no_license | #!/bin/bash
########################################################################################################################
#
# Script Name: create-react-redux-project.sh
#
# Description: create a react/redux project
#
# Assumption: npm is installed
#
# Args: -n [name] (mandatory argum... | true |
f59921f2f767038bbe5a09542e086a9ba889c1ec | Shell | larroy/python_project_structure | /devtool | UTF-8 | 1,568 | 3.96875 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
install_deps_dev() {
pip install -e .[test]
}
env_setup() {
true
}
test_with_coverage() {
coverage run -m pytest --pspec tests/unit
coverage report -m --fail-under=90
}
lint() {
echo ""
if [ -d .git ]
then
echo "1. pre-commit hooks"
e... | true |
a0a49bacc017390de4610a9e94a283243f7f2068 | Shell | bermanjacob96/CSCI3753 | /pa4/looptest.sh | UTF-8 | 10,980 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#File: looptest
#Author: Jacob Berman
#Project: CSCI 3753 Programming Assignment 4
#Create Date: 2016/12/11
#Modify Date: 2016/15/11
#Description:
# A simple bash script to run a 3 iterations of each test case
# and gather the relevent data.
HEADER="Schedule, Wall Clock Time (sec), Total User Mode CPU Sec... | true |
85843d020e8f8ac376ee2662378c75e4788c4e34 | Shell | norm/media-tools | /bin/media-convert-flac-to-wav | UTF-8 | 1,877 | 3.71875 | 4 | [] | no_license | #!/bin/bash
set -e
# shellcheck source=/dev/null
source $(which media)
is_sub "$*" false
summary_line "$*" 'convert a FLAC album to WAVs for processing by add-cd'
help_text "$*" <<'EOF'
Usage: media convert-flac-to-wav <dir>
Given a directory containing FLAC audio files, convert them to WAVs and
create ... | true |
6ace0edd4c27eb9bfb0c255c84917bd3adcfca7f | Shell | pbravakos/Miscellaneous | /RemoveTmpDir.sh | UTF-8 | 8,691 | 4.34375 | 4 | [] | no_license | #!/usr/bin/env bash
<<EOF
IMPORTANT NOTE:
This script relies on some assumptions which were all true during testing.
1) Each node (on every partition) should have a unique name.
2) Bash version should be 4.4.12.
3) Slurm version should be 16.05.9.
A change to any of the above assumptions could cause the script to c... | true |
a9367ff52294e8e18e8c65a7e3cfadaa2b0b5ade | Shell | Sonnbc/CS438 | /mp2/plot-results.sh | UTF-8 | 571 | 3.40625 | 3 | [] | no_license | #!/bin/bash
format=$1
if [ "$format" == "" ];
then
echo "You did not specify format. Assuming eps by default."
echo "Recommended format is eps, pdf, or png. pdf or png requires cairo library."
echo "Format can also be anything that gnuplot can work with."
echo "For example, you can specify dumb, latex, or gif.... | true |
821f26b2bf5b4a736be624e853db8274c9be1a03 | Shell | rbong/vim-flog | /t/run.sh | UTF-8 | 647 | 3.9375 | 4 | [] | no_license | #!/bin/bash
set -e
TEST_DIR=$(realpath -- "$(dirname -- "$0")")
. "$TEST_DIR/lib_dir.sh"
. "$TEST_DIR/lib_print.sh"
. "$TEST_DIR/lib_vim.sh"
# Setup
cd "$BASE_DIR"
install_vim
# Get args
if [ "$1" != "" ]; then
TESTS="$TEST_DIR/$1"
else
TESTS=$(ls "$TEST_DIR"/t_*)
fi
# Run tests
FAILED_TESTS=0
for TEST in $TE... | true |
ced6172ad7e3df58e043e599c23e795b428156b3 | Shell | GT9305/RetroPie-Setup | /scriptmodules/emulators/basilisk.sh | UTF-8 | 1,062 | 2.859375 | 3 | [] | no_license | rp_module_id="basilisk"
rp_module_desc="Macintosh emulator"
rp_module_menus="2+"
rp_module_flags="dispmanx"
function depends_basilisk() {
getDepends libsdl1.2-dev autoconf automake
}
function sources_basilisk() {
gitPullOrClone "$md_build" git://github.com/cebix/macemu.git
}
function build_basilisk() {
c... | true |
234311c3ce9f75aba75185c5e124252003114926 | Shell | nitinawathare/RenoirExperiment | /removeDelay.sh | UTF-8 | 176 | 2.671875 | 3 | [] | no_license |
#!/bin/bash
SERVER_LIST=ipList
while read REMOTE_SERVER
do
ssh -n -i quorum2.key ubuntu@$REMOTE_SERVER "nohup sudo tc qdisc del dev eth0 root" &
done < $SERVER_LIST
| true |
8d66d930dc852e6b52482d94015f73cc99832ba3 | Shell | HD2-goes-future/android_patches | /data2ext4_initrd_patcher_init.htcleo.rc/tools/revert_initrd_patch/tools/checksys.sh | UTF-8 | 149 | 2.796875 | 3 | [] | no_license | #!/sbin/sh
find=`grep -i "clk" /proc/cmdline`
if [ -n "$find" ]
then
echo "clk=true" >> /tmp/nfo.prop
else
echo "clk=null" >> /tmp/nfo.prop
fi
| true |
c25dbe96e82356f8db0fc76385dcb36a24b033e9 | Shell | troydhanson/pmtr | /initscripts/sysvinit.template | UTF-8 | 590 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Starts pmtr
#
umask 077
# Source function library.
. /etc/init.d/functions
if [ -d /var/run ]
then
PIDFILE=/var/run/pmtr.pid
else
PIDFILE=/tmp/pmtr.pid
fi
start() {
start-stop-daemon --start --pidfile $PIDFILE --exec __SYSBINDIR__/pmtr -- -p $PIDFILE
}
stop() {
start-stop-daemon --stop --pid... | true |
2bd3b6759d804c0267b02bb06890c12d5d549450 | Shell | RyanTech/yueji | /tools/study/linux/script/do-links.sh | UTF-8 | 243 | 3.515625 | 4 | [] | no_license | #!/bin/sh
src=$1
dest=$2
#for file in $src/*; do
for file in `find $src -name *.rpm -a ! -name *.src.rpm -print`; do
base=`basename $file;`
if test ! -f $dest/$base; then
echo "Linking $file";
ln $file $dest
else
echo "EXISTS: $file";
fi
done
| true |
21fa6dc95e191f4b1c51cd80d239a456e1f06bdd | Shell | shellib/grab | /examples/hello-world.sh | UTF-8 | 441 | 3.84375 | 4 | [] | no_license | #!/bin/bash
# Let's load the a shell library from: github.com/shellib/cli
# That provides the following functions:
#
# - or
# - hasflag
# - readopt
source $(grab github.com/shellib/cli)
help=$(hasflag --help $*)
greeting=$(or $(readopt --greeting $*) "Hello World!")
if [ -n "$help" ]; then
echo "Usage: hello-world.... | true |
10483dadb94be5fc855e1038b6f22830cac5b646 | Shell | VC4Africa/automation | /js-syntax-checker.sh | UTF-8 | 2,051 | 3.9375 | 4 | [] | no_license | #!/bin/sh
# Check js syntax for changed files with latest commits only.
GIT_PREVIOUS_COMMIT=$1
GIT_COMMIT=$2
REPOSITORY_URL=$3
# always good to know where are we and who are we!
echo "Who am I?"
whoami
echo "Where am I?"
pwd
echo "Git username?"
git git config user.name
echo "Repository: $REPOSITORY_URL"
if [ $GIT_P... | true |
226d5124cf471ef2e43d17d8834797878ac8844d | Shell | mcmhav/s | /bin/_csys/_csys_is_package_installed | UTF-8 | 699 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
read -ra ORIGINAL_ARGS <<<"$*"
PACKAGE_TO_INSTALL=""
while [ "$1" != "" ]; do
case "$1" in
-*) ;;
*)
if [ -z "$PACKAGE_TO_INSTALL" ]; then
PACKAGE_TO_INSTALL="$1"
fi
;;
esac
shift
done
if
{
[ "$CSYS_SHALLOW_SETUP" = "true" ] &&
! command -v "$PACKAGE_TO_INS... | true |
0100660cab7a788eb25225b6edb1b2de5a9d744d | Shell | xiangmingxu/apple_replant | /ITS.sh | UTF-8 | 193 | 2.65625 | 3 | [] | no_license | #!/bin/bash
SCRIPT_DIR=$(readlink -f ${0%/*})
RFILE=$1
DIR=$2
REG1=$3
REG2=$4
FASTA=$5
ID=$6
LOWQUAL=$7
qsub $SCRIPT_DIR/submit_ITS.sh $RFILE $DIR $REG1 $REG2 $FASTA $ID $LOWQUAL $SCRIPT_DIR | true |
8346e2aa10af3598b7f226a894d8faab05148d4a | Shell | wjmn/dsb-bioinformatics-project | /src/liftOver_GSE25577_18to38.sh | UTF-8 | 439 | 2.78125 | 3 | [] | no_license | # LIFTOVER FOR hg18 BED FILES -----------------------------------------------------------------------------
cd ../data/temp/GSE25577_concatenated
# PAY ATTENTION TO THE LINE DIRECTLY BELOW: 18 VS 19 VS 38
dir_chain=../../raw/liftOverchains/hg18ToHg38.over.chain
dir_save=../markers_hg38/
for filename in *.bed;
do
... | true |
85d5a8b0fc8ddcc305e0780722aaad3f6b59e0f3 | Shell | rgodishela/cloud-inquisitor | /packer/scripts/install.sh | UTF-8 | 5,775 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
validate_environment() {
echo "Validating environment"
if [ -z "${APP_TEMP_BASE}" ]; then echo "Missing APP_TEMP_BASE environment variable" && exit -1; fi
if [ -z "${APP_DEBUG}" ]; then echo "Missing APP_DEBUG environment variable" && exit -1; fi
if [ -z "${APP_PYENV_PATH}" ]; then echo ... | true |
a1959b982437d884b14eee9887d47ebd38b9f045 | Shell | GoreLab/Vitamaize_NAM_GWAS_LabVersion | /2_GWAS.and.GWAS.Permutations/Core_Analysis/code/run_iterations.sh | UTF-8 | 10,688 | 4.34375 | 4 | [] | no_license | #!/bin/bash
#===================================
# SOURCE CONFIG FILE
#+++++++++++++++++++++++++++++++++++
#get full (canonical) path to the script location
script_f=$(readlink -enq ${0});
script_d=$(dirname ${script_f});
#source configuration file (required)
#Default: iterations.cfg in same directory as the script
... | true |
7d1853498f0ec084fb6fb4423baf48d7fa14e7aa | Shell | ohsejoon/new-ara-api | /.docker/codebuild.sh | UTF-8 | 1,014 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# CODEBUILD_WEBHOOK_TRIGGER: branch/<branch_name>, tag/<tag_name>, pr/<pr_number>
if [ ! -z $CODEBUILD_WEBHOOK_TRIGGER ]; then
WEBHOOK_TYPE=$(echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f1)
NAME=$(echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2-)
if [ $WEBHOOK_TYPE = "branch" ]; then
... | true |
461497e74ebfc92bbb2e8328d297c0cf1eaea676 | Shell | Scalingo/pgbouncer-buildpack | /support/pgbouncer-build | UTF-8 | 617 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
PGBOUNCER_VERSION=${PGBOUNCER_VERSION-1.7.2}
pgbouncer_tarball_url=https://pgbouncer.github.io/downloads/files/${PGBOUNCER_VERSION}/pgbouncer-${PGBOUNCER_VERSION}.tar.gz
temp_dir=$(mktemp -d /tmp/pgbouncer.XXXXXXXXXX)
cd $temp_dir
echo "Temp dir: $temp_dir"
echo "Downloading $pgbouncer_tarball_... | true |
79fa4c73d78c4626d1cdd78082d7861bebd2aada | Shell | KIT-CMS/sm-htt-analysis | /gof/plot_gof.sh | UTF-8 | 214 | 2.609375 | 3 | [] | no_license | #!/bin/bash
source utils/setup_cvmfs_sft.sh
source utils/setup_python.sh
ERA=$1
OUTPUTS=$2
VARIABLES=gof/variables.yaml
for CHANNEL in et mt tt em
do
./gof/plot_gof.py $VARIABLES $OUTPUTS $CHANNEL $ERA
done
| true |
982eeef4903f7a39abf02be576d53c5cd9d2df85 | Shell | eloyvallinaes/protein-foreplay | /scripts/MDsim/pro-cleanup.sh | UTF-8 | 261 | 2.859375 | 3 | [] | no_license | #!/bin/bash
path=$( pwd )
e=0
for folder in $( ls -d */ )
do
file=${folder%/}
ful="$folder$file".pdb
rm "$folder"pro.trr
rm "$folder"pro.mdp
rm "$folder"pro.gro
rm "$folder"pro*.cpt
rm "$folder"pro.edr
rm "$folder"#pro*
rm "$folder"pro-run.log
done
| true |
972d2a7ff49d815385adc05e68e3c12aa8343bf3 | Shell | cdrw-nutyx/NuTyX-Pkgfile | /Network/Connman/connman-gtk/Pkgfile | UTF-8 | 511 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# Depends on: glib gtk3 openconnect
description="GTK GUI for ConnMan"
packager="cdrw"
url="https://github.com/jgke/connman-gtk"
name=connman-gtk
version=1.1.1
release=1
source=(${url}/releases/download/v${version}/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure ... | true |
4bd606c4bd715d8ede9a994afc4876e307043ec2 | Shell | GeoKnow/GeoBenchLab | /FacetBench/sql/geotput_sql_postgis.sh | UTF-8 | 2,146 | 2.765625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# LOD2 Geo Benchmark - compute throughput (multi-stream) scores
#
# Copyright (c) 2012, CWI (www.cwi.nl). Author: Peter Boncz
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Re... | true |
7e8b9e54693647aa73596d21f71d247bd02646ed | Shell | carlosmoran092/generator-sls | /generators/app/templates/scripts/vsdebug.sh | UTF-8 | 544 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
path="${1}/.vscode"
if [[ ! -d ${path} ]]; then
mkdir ${path}
fi
cd ${path}
echo "{
\"version\": \"0.2.0\",
\"configurations\": [
{
\"name\": \"Connect to Lambda container\",
\"type\": \"go\",
\"request\": \"launch\",
\"mode\": \"remote\",
\... | true |
0275a08bb7f57dc6084f64541cbd29737a516757 | Shell | drmatthewclark/ReaxysLoader | /fullupdate.sh | UTF-8 | 548 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# download latest rmc dataset
loader="ReaxysLoader"
echo "reaxys "
source update.sh
source ./${loader}/credentials.py
update ${download} ${dataset}
if [ "${success}" = "no" ]; then
echo "loading ended"
exit 1
fi
cd ${release}
pwd
eval "$(conda shell.bash hook)"
conda activate standard
time python ../... | true |
c86de2f8a9f3dfdcdac9be7820cb5e4c809570a8 | Shell | Mic92/xfstests-cntr | /tests/xfs/119 | UTF-8 | 1,102 | 3.140625 | 3 | [] | no_license | #! /usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
#
# FS QA Test No. 119
#
# Leaking reservation space in the GRH
# Test out pv#942130
# This can hang when things aren't working
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output creat... | true |
fd21e764f989ecb69116ee6b9b6b5d572511d3b2 | Shell | vagetablechicken/rdsn | /thirdparty/download-thirdparty.sh | UTF-8 | 5,755 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# check_and_download package_name url md5sum extracted_folder_name
# return:
# 0 if download and extract ok
# 1 if already downloaded
# 2 if download or extract fail
function check_and_download()
{
package_name=$1
url=$2
correct_md5sum=$3
extracted_folder_name=$4
if [ -f $package_... | true |
93f2bc970c2cb35b844bdc04061838e597645339 | Shell | kflu/linux-settings-kfl | /rr/shell/rsync.sh | UTF-8 | 1,328 | 4 | 4 | [] | no_license | #!/bin/sh
# syncs local directory to remote.
USAGE="$(cat <<EOF
$(basename "$0") -r <remote> -d <sync_dir> [-p <port>] [-l <bw_limit (kBps)>] [-c <rc_file>]
remote: user@host:~user/path
sync_dir: Do NOT add tailing slash '/' (means the content of the dir), or I will remove it.
port: ... | true |
d331b2d9d557e227bd2387d32bc071465498210e | Shell | petronny/aur3-mirror | /kernel26-pf-grsec/PKGBUILD | UTF-8 | 16,516 | 2.828125 | 3 | [] | no_license | # Maintainer: Slane <kozak dot szymon at gmail dot com>
# PKGBUILD assembled from kernel26, kernel26-bfs, kernel26-ck, kernel26-pf
# Credit to respective maintainers and milka_witek
_basekernel=2.6.37
_pkgname=kernel26-pf-grsec
_pfrel=pf3
_kernelname=-pf
_pfpatchhome="http://pf.natalenko.name/sources/${_basekernel}/"
... | true |
92384e2215bf394febd1adad44cb808a79cc79dc | Shell | syyunn/fec-bulk-loader | /expenditures/load.sh | UTF-8 | 501 | 3.328125 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
CYCLES="${CYCLES:-20 18 16 14 12 10 08 06 04}" # 02 00 98 96 94 92 90
psql -f load.sql
for cycle in $CYCLES; do
if [ "$cycle" -eq 02 ] || [ "$cycle" -eq 00 ]
then
continue
fi
wget -nv -N "https://www.fec.gov/files/bulk-downloads/20"$cycle"/oppexp"$cycle".zip"
... | true |
51f4189a4014ec66064ae4d12c18936e797fe17d | Shell | SwiftXcode/swift-xcode | /scripts/swift-xcode | UTF-8 | 1,251 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2017-2018 ZeeZide GmbH. All rights reserved.
#
# swift-xcode -- A collection of SwiftPM extension to deal with building
# Xcode projects.
#
if [ "$DEBUG" = "yes" ]; then
set -x
fi
SCRIPT_DIR=$(dirname "$0")
SCRIPT_BASENAME=$(basename "$0")
usage() {
echo "usage: swift xco... | true |
1063dca31f7b683a500e55534ec73cb966b19b3e | Shell | rtavenar/elects | /experiments/mori_runtime_uniform.sh | UTF-8 | 729 | 2.5625 | 3 | [] | no_license | #!/bin/#!/usr/bin/env bash
epochs=200
logstore="/data/ec_runtimes_uniform"
for nsamples in 50 75 100 250 500 750 1000 2500 5000;
do
echo samples $nsamples > $logstore/UniformCrops_$nsamples.log
echo $(date -Iseconds -u) : started optimization with $nsamples examples >> $logstore/UniformCrops_$nsamples.log
python ..... | true |
27dca5b1c1416572e59bfa04c7b8dacb84b67fa4 | Shell | grounds/grounds-exec-deprecated | /hack/test-unit.sh | UTF-8 | 312 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
if [ ! "$GOPATH" ]; then
echo >&2 'error: missing GOPATH; please see http://golang.org/doc/code.html#GOPATH'
exit 1
fi
get_pkg_dirs() {
echo $(find pkg -maxdepth 1 -type d | grep pkg/)
}
# For every pkg
for dir in $(get_pkg_dirs); do
echo "Testing: $dir"
gom test -cover "./$dir"
done
| true |
1035e2de5b8ce9fb40120b481051c8b633db5a9c | Shell | omakoto/misc | /wat | UTF-8 | 858 | 3.421875 | 3 | [] | no_license | #!/bin/bash -e
set -e
. mutil.sh
geo=200x80
zoom=0.85
title=""
interval=2
command=""
watch=gaze
opt_x=""
eval "$(getopt.pl '
g|geo|geometry=s geo=% # Set window size. e.g. "80x25"
z|zoom=s zoom=% # Set zoom scale. e.g. "0.5"
t|title=s title=% # Set window title.
... | true |
13bb3be4ab93b9a24a0f25da4709509db72c6f77 | Shell | jgfaisca/arduino-programming | /ArduinoISP_verify_connection.sh | UTF-8 | 2,543 | 4.15625 | 4 | [] | no_license | #!/bin/bash
###############################################################################
#
# Script to verify connection to AVR device
# using Arduino UNO as a programmer (Arduino ISP)
#
# Requires:
# - Arduino UNO
# - AVRDUDE / Arduino IDE
# - GNU Linux operating system
# - Linux STTY
#
# The following variables a... | true |
cdf68d903725c7ee8658a930b8d2cad4ee91c428 | Shell | inutano/docker-recipes | /galaxy-exom-seq/install_repo_wrapper.sh | UTF-8 | 347 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
service postgresql start
service apache2 start
./run.sh --daemon
sleep 60
python ./scripts/api/install_tool_shed_repositories.py --api admin -l http://localhost:8080 --tool-deps --repository-deps $1
exit_code=$?
if [ $exit_code != 0 ] ; then
exit $exit_code
fi
./run.sh --stop-daemon
service postgresql... | true |
0afe6292423ae4ef33554930eb795b30806098c5 | Shell | JuSeong39/typeO_Script | /typeO_Script.sh | UHC | 3,702 | 3.28125 | 3 | [] | no_license | #!/bin/bash
a=`ifconfig -a | grep wlx | awk '{print $1}'`
echo "wireless interface name is : $a"
if [ -n "ifconfig | grep br-AP" ]
then
ifconfig br-AP down
brctl delif br-AP veth1 && brctl delif br-AP $a
brctl delbr br-AP
fi
if [ -n "ifconfig | grep br-IoT" ]
then
ifconfig br-IoT down
ovs... | true |
7e05db7c7acdea16f3294b547a3b89654aad308e | Shell | dak180/fink-experimental | /danielj/make-vcs-tarball.sh | UTF-8 | 1,924 | 4.5 | 4 | [] | no_license | #!/bin/bash -e
# make-vcs-tarball.sh
# Written by Daniel Johnson 15 Feb 2012
# 6 Mar 2012 - Use case instead of if/else. Duh.
# Released to the public domain.
usage ()
{
echo "Usage:"
echo "`basename $0` VCS_TYPE URL TARBALL_BASENAME [REVISION]"
echo
echo "Create a bzipped tarball of a repository."
echo
echo " ... | true |
fb4d9ef3a9dd41a33fed45c9850d30175b6023a6 | Shell | AppScriptIO/deploymentShellscript | /yarn.installation.sh | UTF-8 | 347 | 3.25 | 3 | [] | no_license | #!/bin/bash
if [ -z "$1" ]; then
#⭐ Install Yarn:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/.s.list.d/yarn.list
apt-get update && apt-get install yarn
elif [ $1 == "uninstall" ]; then
apt-get remove yarn &... | true |
40ec1bedc4625f857b285b80a551cbffdc426937 | Shell | leochu2010/CUHK-MscProject | /tools/test_cpu.sh | UTF-8 | 1,088 | 3.953125 | 4 | [] | no_license |
echo "#test for $1 times"
TEST_TIMES=$1
CPU_FROM=$2
CPU_TO=$3
CPU_STEP=$4
INPUT_FILE=$5
TOKEN="tmp_CPU_"
#create device number matlab array
echo -e "cpu=[\c"
for (( t=$CPU_FROM; t <= $CPU_TO; t+=$CPU_STEP ))
do
echo -e "$t \c"
> ./tmp/$TOKEN$t
done
echo "];"
#put result into separated tmp files
for i in `seq 1 $... | true |
41a01605e2fb2116d5b66f69be709cbf83d8b64f | Shell | jhadvig/wildfly-8-centos | /bin/usage | UTF-8 | 433 | 2.671875 | 3 | [] | no_license | #!/bin/bash
echo "This is a Source To Image (STI) builder image.
To use it, install STI: https://github.com/openshift/docker-source-to-images.
Sample invocation:
sti build git://github.com/bparees/openshift-jee-sample openshift/wildfly-8-centos wildflytest -s https://raw.githubusercontent.com/openshift/wildfly-8... | true |
6f35c83d19d02f1eb387f94be1ba5d5f48a7eb58 | Shell | rosstimson/oh-my-zsh | /lib/theme-and-appearance.zsh | UTF-8 | 1,984 | 2.859375 | 3 | [
"MIT"
] | permissive | # ls colors
autoload colors; colors;
# LS colors, made with http://geoff.greer.fm/lscolors/
# BSD
export LSCOLORS="exfxcxdxbxegehabagacaf"
# Linux
export LS_COLORS='di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;47:su=0;41:sg=0;46:tw=0;42:ow=0;45:'
# Enable ls colors
if [ "$DISABLE_LS_COLORS" != "true" ]
... | true |
c24a30d4370489b950fc4b0bf3ae8ee12a3c012d | Shell | mcchrish/dotfiles | /zsh/Library/Preferences/zsh/functions/general.zsh | UTF-8 | 438 | 3.671875 | 4 | [] | no_license | # cd into the current Finder directory
function cdf {
local dir
dir=$(osascript -e 'tell application "Finder" to get the POSIX path of (target of front window as alias)' 2> /dev/null) \
&& cd "$dir"
}
# Makes a directory and changes to it.
function mkdcd {
[[ -n "$1" ]] && mkdir -p "$1" && builtin cd "$1"
}
... | true |
5562cebd9a82236af052faf8d0698ee468b23292 | Shell | korpiq/bash_utils | /bin/favro.sh | UTF-8 | 1,308 | 3.6875 | 4 | [] | no_license | #!/bin/bash
favro_fail () {
echo "Favro failed: $*" >&2
return 1
}
favro_org_id () {
curl -su "$TOKEN" -X GET "https://favro.com/api/v1/organizations" | jq -r '.entities[0].organizationId'
}
favro_get () {
curl -su "$TOKEN" -H "organizationId: $ORG" -X GET "https://favro.com/api/v1/$1"
}
favro_query... | true |
4905083ea934c924129d8c04009b7d06dffb6cc8 | Shell | sepses/file-system-log-service | /randomEvents.sh | UTF-8 | 6,281 | 3.8125 | 4 | [] | no_license | #!/usr/bin/env bash
files=()
num=0
arrOps=(create editFile copyFileDiffDir moveFile moveFileToTrash renameFile)
arrTargetPaths=("/Users/Agnes/Desktop/test" "/Users/Agnes/Desktop/test-2" "/Volumes/USB" "/Users/Agnes/Dropbox/test" "/Users/Agnes/Google Drive/test" "/Users/Agnes/Desktop/test")
arrFileExt=(xml docx txt xls... | true |
b5a51135917e4b0d8af21004dde5dcfdd8087148 | Shell | williamswalsh/BASh-scripting-bible | /21_ioWithCase.sh | UTF-8 | 303 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# interesting prompt ability using case.
# Could also use :toupper: command to reduce number of case possibilities.
# Could just take first letter.
read -p "Enter y/n:" keyboard
case $keyboard in
y|Y|YES|yes)
echo "Yes";;
n|N|NO|no)
echo "No";;
*)
echo "Invalid option";;
esac
| true |
b16d1e7794cab3bc7c1f285ea151db65d363c00e | Shell | ioppermann/munin-contrib | /plugins/php/php_opcache | UTF-8 | 1,557 | 3.484375 | 3 | [] | no_license | #!/bin/sh
###############################################################################
#
# Munin plugin to monitor Zend OPCache <http://php.net/manual/en/book.opcache.php>
# By Daniel Lo Nigro <http://dan.cx/>
#
# Installation:
# 1. Copy php_opcache.php file onto server and verify you can hit it in a browser
# 2. ... | true |
7081877eab6e1f213f81402bdd8cd39271e0c8b5 | Shell | tagawa0525/dotfiles | /zsh/alias.zsh | UTF-8 | 2,419 | 3.109375 | 3 | [] | no_license | #------------------------------------------------------------
# chdir
#------------------------------------------------------------
function chpwd()
{
ls
_cdd_chpwd
}
alias cd..='cd ..'
alias cdp='cd ${HOME}/python/prac'
alias cdr='cd ${HOME}/ruby/prac'
alias cdf='cd ${HOME}/fortran/prac'
alias pd="pushd"
alias po... | true |
5e834ab91218d9bf6f90606d1fb62ab673ff5ed7 | Shell | bkj/rec-benchmarks | /models/dsstne/run.sh | UTF-8 | 1,199 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# run.sh
mkdir -p {data,models,results}
export PATH="/home/bjohnson/software/amazon-dsstne/src/amazon/dsstne/bin/:$PATH"
function prep_data {
generateNetCDF -d gl_input -i $TRAIN_PATH -o data/gl_input.nc -f data/features_input -s data/samples_input -c
generateNetCDF -d gl_output -i $TRAIN_PATH -... | true |
93335a3005ad2534546a38e910aa3f5795ba22e6 | Shell | Sawndip/LookbackNeuron | /examples/install.sh | UTF-8 | 439 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
if [ ! -d ./IzhikTestModule ]; then
raise error "Cannot find the Module directory IzhikTestModule in the current directory `pwd`"
fi
if [ ! -d ./build_IzhikTestModule ]; then
mkdir ./build_IzhikTestModule
fi
cd ./build_IzhikTestModule
cmake -Dwith-nest=/home/arjun/nest-bleeding-python3/bin/nest... | true |
101fbb3bf8a17574579c6a8fa826e12c181e862f | Shell | twpDone/sanitizeFileName | /sanitize.sh | UTF-8 | 4,565 | 3.71875 | 4 | [] | no_license | DONOTRM=0
DEBUG=0
RECURSE=0
START=0
usage(){
echo "Usage: ""$0""[-dtR] start"
echo ""
echo $0" Rename all badly named files and directories at your current position"
echo ""
echo "Options :"
echo " -d : Debug Mode, more Verbose"
echo " -t : Test Mode, do not remove original files... | true |
9eeda59fbc48ba27c1778e92e42a15fc423ae583 | Shell | baoson2211/script | /Shell/example/example3/example3.sh | UTF-8 | 7,317 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#
# Description of this script
# $1 -- instruction: help or exec
# $2 & $4 -- navigator arg
# $3 -- input file
# $5 -- output directory
#
# Description output file exported by MySQL
# $1 -- activation
# $2 -- username
# $3 -- id_student
# $4 -- grade
# $[5-9] -- ... | true |
d893f517b7fbe53aa1ae882c6251c6bf371eedac | Shell | s243a/TazPup64_BuildKit | /tazpup-core-files/puppy/usr/bin/manage-bluetooth | UTF-8 | 1,373 | 3.390625 | 3 | [] | no_license | #!/bin/sh
mode="$1"
if [ -f /tmp/bt-manage-lock ]; then
exit
fi
touch /tmp/bt-manage-lock
if [ "$(rfkill list | grep "luetooth")" == "" ]; then
echo "BT disabled" >> /tmp/bt-device.log
udevadm trigger --subsystem-match=bluetooth --action=remove
killall bluetoothd
killall bluetooth-applet
killall obexd
killall hidd
... | true |
c1630419d1048f9c9787d6ef037f29c7ed26dd1f | Shell | smrhp/utilserv | /roles/firewall/files/firewall | UTF-8 | 908 | 3.578125 | 4 | [] | no_license | #! /bin/sh
### BEGIN INIT INFO
# Provides: custom firewall
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: firewall initscript
# Description: Custom Firewall
### END INIT INFO
# Lancement du scri... | true |
117ac22bfaa9c64e16a132073f92aa5fc8437a10 | Shell | NunationFL/SDIS | /proj1/src/scripts/peer.sh | UTF-8 | 967 | 3.625 | 4 | [] | no_license | #! /usr/bin/bash
# Script for running a peer
# To be run in the root of the build tree
# No jar files used
# Assumes that peer.Peer is the main class
# and that it belongs to the peer package
# Modify as appropriate, so that it can be run
# from the root of the compiled tree
# Check number input arguments
argc=$#
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.