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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
37c0d332de8a8f7233684648c2e7c7155fe06ae6 | Shell | HacoK/Shell_scripts | /scripts/nestedfor.sh | UTF-8 | 159 | 2.796875 | 3 | [] | no_license | for((i=1;i<=5;i++)) ### Outer for loop ###
do
for((j=1;j<=5;j++)) ### Inner for loop ###
do
echo -n "$i"
done
echo "" #### print the new line ####
done
| true |
0cb813f21366f377bbf5aee28baa07d1847849e4 | Shell | bygreencn/highwaytest | /vanillacmd | UTF-8 | 313 | 2.59375 | 3 | [] | no_license | #! /bin/bash
DIR="results"
GPUID="0"
TYPE="vanilla"
DATASET="mnist"
SIZE="71"
mkdir -p "${DIR}"
for layers in 2 5 10 20 50 100
do
th main.lua -gpuid "${GPUID}" -cudnn 1 -json "${DIR}/${TYPE}-${DATASET}-${layers}.json" -type "${TYPE}" -set "${DATASET}" -layers "${layers}" -size "${SIZE}" -max_epochs 400
done
| true |
c6b0f5af303e5d1a85f6c30419c7b01101751acb | Shell | songokas/rust-simple-tunnel | /setup.sh | UTF-8 | 3,664 | 3.78125 | 4 | [] | no_license | #!/bin/bash
set -e
tun_interface="tun0"
tun_ip="10.0.0.1"
tun_forward="10.0.0.2"
network_interface="enp39s0"
check_default=$(awk '$2 == 00000000 { print $1 }' /proc/net/route | head -n1)
if [[ $check_default ]]; then
network_interface="$check_default"
fi
nft_table="rust-simple-tunnel"
route_table_name="rust-simpl... | true |
5e70c23a0b88e69e4afd41ad2b9421a258cd4174 | Shell | manuel-192/m-m | /PKGBUILDs/eos-brightness/brightness-xrandr | UTF-8 | 2,283 | 4.6875 | 5 | [] | no_license | #!/bin/bash
# Set or get screen brightness using xrandr.
DIE() {
printf "%s: error: %s\n" "$progname" "$1" >&2
Usage 1
}
CheckValue1() {
local supported_values="Supported value range: $min..$max."
if [ -z "$brightness" ] || [ -n "$(echo "$brightness" | tr -d '0-9')" ] || [ $brightness -gt $max ] || ... | true |
caf40e63fe33201bdf2cb9d69c848fdf0953b612 | Shell | jpikl/dotfiles | /.bashrc.d/50-cargo.sh | UTF-8 | 466 | 2.75 | 3 | [] | no_license | # shellcheck shell=bash
## rustup and cargo autocomplete
if [[ -x $(command -v rustup) ]]; then
source <(rustup completions bash)
#source <(rustup completions bash cargo)
# Workaround for https://github.com/rust-lang/rustup/issues/3407
if [[ -f ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/src/e... | true |
2025a83b23d4de2f60f5363cf25aa8a66d2f4794 | Shell | sweagraff/ryu | /build/build.sh | UTF-8 | 624 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# not in Pharo 7 need to do ssh-add -K ~/.ssh/id_rsa
MC_REPOS_URL='filetree://../repository'
performDownload=0
while getopts ":d" opt; do
case $opt in
d)
echo "-d was specified, will download full Pharo Distribution" >&2
performDownload=1
;;
\?)
echo "Invalid option: -$O... | true |
2ba100f0e03fc754f7cd200c7e75478079bf97a4 | Shell | OndrejHome/gentoo-build | /scripts/root_user.sh | UTF-8 | 412 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -x
set -e
if [ -z "${GB_ROOT_USER_PASSWORD}" ]; then
echo 'skipping root user'
exit 0
fi
chroot ${GB_ROOT} /bin/bash <<-EOF
source /etc/profile
set -x
set -e
# do not enforce password qulity checks
sed -i 's/enforce=.*/enforce=none/' /etc/security/passwdqc.conf
if printenv GB_ROOT_USER_PASSWORD ... | true |
d8b1182e66c85f16cf3b2aef2888374a24afe4d1 | Shell | mohisen/zdotfiles | /5/Capture/search/strip_href_cmds.sh | UTF-8 | 3,776 | 3.171875 | 3 | [] | no_license | # commandlinefu.com by David Winterbottom
# SVN Export files that were modified between given revisions.
svn diff . -r43:HEAD --summarize | cut -c9-99999 | cpio -pvdmu ~/destination
# Show only printable characters and newlines from a file or input
strings -1 <file>
# remove password from openssl key file
openssl rs... | true |
20c6be94a0cefb1f89d4ef1f79a8dcabd10d7e55 | Shell | sri-arjuna/script-tools.tui | /menu/iso/usb | UTF-8 | 3,456 | 3.765625 | 4 | [] | no_license | #!/bin/bash
#
# sea's Script Tools: The 3rd Generation
#
# Description: Writes an imagefile to selected USB drive with DD
# Author: Simon A. Erat (sea) <erat.simon AT gmail.com>
# License: GPL v3
# Date Created: 2011.09.09
# Date Changed: 2013.08.25
script_version=1.4
# Resource: man mkfs, fsck, cfdisk, wipefs... | true |
214dba38f4448b25e0a5a062ef474ef05257abd8 | Shell | jondowsondatastax/pod | /pods/pod_REMOVE-PODS/prepare/prepare_misc.bash | UTF-8 | 502 | 3.1875 | 3 | [] | no_license | # about: preperation functions for this pod
# ------------------------------------------
function prepare_misc_checkFileFolderExist(){
## test specified files exist
# if software tarball is used - then check it exists
#if [[ "${SOFTWARE_TARBALL}" != "" ]]; then
# prepare_generic_misc_checkSoftwareExists
#fi
:
#... | true |
a630b5fb1bf5013782f05a5c1804743fb74b41d6 | Shell | flaccid/rightscripts | /install_aws_cli.bash | UTF-8 | 1,560 | 3.59375 | 4 | [] | no_license | #! /bin/bash -e
source "$RS_ATTACH_DIR/rs_distro.sh"
if [ "$RS_DISTRO" = 'atomichost' ]; then
echo 'Red Hat Enterprise Linux Atomic Host not yet supported, but will exit gracefully.'
exit 0
fi
# PIP is in /usr/local/bin
export PATH=$PATH:/usr/local/bin
if ! type aws >/dev/null 2>&1; then
if ! type pip >/dev/n... | true |
f861f0710229e8c9c20ce490e5b2ed44bd5679cb | Shell | Tubbz-alt/preston | /sync_licenses.sh | UTF-8 | 628 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
fail_exit(){
echo "$1"
exit 1
}
git clone https://github.com/spdx/license-list-data.git --depth=1 || fail_exit "Failed to clone"
if [[ -e "licenses.spdx" ]]; then
rm -v licenses.spdx
fi
pushd license-list-data/text
for i in *.txt ; do
# Strip all whitespace from it due to many licen... | true |
c8c66f89cce97338e6b5d900c5e6659bcf957559 | Shell | Alexander-Shukaev/MINGW-packages | /mingw-w64-libgit2/PKGBUILD | UTF-8 | 1,499 | 3 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Martell Malone <martellmalone@gmail.com>
_realname=libgit2
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.22.2
pkgrel=1
pkgdesc='A linkable library for Git (mingw-w64)'
arch=('any')
url='https://github.com/libgit2/libgit2'
license=('GPL2' 'custom')
options=('strip')
depends=("${MINGW_PACKAGE_P... | true |
a8e1bad22bef1f4135bb9693a29a49557c659844 | Shell | reviewboard/reviewboard | /contrib/internal/sandbox | UTF-8 | 631 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if test -d .svn; then
COMMAND="svn info"
elif test -d ../.git; then
COMMAND="git svn info"
else
echo "Unknown repository type. Make sure you're in the top-level of"
echo "the reviewboard directory."
exit 1
fi
REVISION=`$COMMAND | grep Revision: |cut -f2 -d" "`
./contrib/tools/post-review --output-diff... | true |
7ce024ea7b071276785872234c5634da4be61826 | Shell | piojanu/btree | /gen_ninjafiles.sh | UTF-8 | 634 | 3.421875 | 3 | [] | no_license | tput setaf 6
echo
echo " Project files are generated in \"build\" directory."
echo " \"compile_commands.json\" is file used by eg. clang tools."
echo
echo " NOTE: Add \"use_clang\" arg if you want to use clang compiler."
echo
tput sgr0
if [ -d "build" ]
then
rm -R build/*
else
mkdir build
fi
CLANG="OFF"
if... | true |
173e3dd7a05b6c483c855c8c31f30612d7ea980a | Shell | dervynm/cgir | /Admin.Sys.Linux/revisionControleTP/scripts/test/argumentFichier.sh | UTF-8 | 467 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# argumentFichier.sh : script utilisé par un autre script pour savoir
# s'il a bien été appelé en lui passant un unique fichier lisible
OK=0
ERR_ARGUMENT_NON_FICHIER=4
ERR_FICHIER_NON_LISIBLE=5
if source ./argumentUnique.sh $*
then
return $?
fi
if [[ ! -f "$1" ]]
then
echo "$1 n'est pas un fichier"
r... | true |
2c932a54120958248a7a23200e8e664971fa48f6 | Shell | orenc1/hyperconverged-cluster-operator | /hack/hpp/deploy_hpp.sh | UTF-8 | 732 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Configures HPP on an OCP cluster:
# - on regular clusters, HPP is deployed the legacy way
# - on SNO clusters, HPP is deployed using the StoragePool feature
#
set -ex
readonly SCRIPT_DIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
CLUSTER_TOPOLOGY=$(
oc get infrastructure cluster \
--outpu... | true |
2fa29ca1ef91f0a538563a48d77c948c1a2d2a57 | Shell | cogito-cea/mylittlepwny | /docker/entrypoint.sh | UTF-8 | 420 | 3.265625 | 3 | [
"CECILL-B",
"LicenseRef-scancode-cecill-b-en"
] | permissive | #!/bin/bash
# Add local user
# Either use the LOCAL_USER_ID if passed in at runtime or fallback
#
# source: https://denibertovic.com/posts/handling-permissions-with-docker-volumes
USER_ID=${LOCAL_USER_ID:-9001}
USER_NAME=dockeruser
echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash --uid $USER_ID --non-u... | true |
da77532035aab6da1e67c6254572aea51fa21232 | Shell | lenik/uni | /base/bash-shlib/shlib.d/get_perm | UTF-8 | 1,467 | 3.703125 | 4 | [] | no_license | # -*- mode: sh -*-
# vim: set filetype=sh :
# get_perm [-u] NAME
function get_perm() {
local scope regpath
local arg
local dest src value
# set -- `getopt -aluser,system,help,version -- $*`
scope=machine
for arg; do
case $arg in
-u|--user)
shift; scope=user;;
... | true |
66c3936e2626ccca3b42c54fac8849d2711a34ba | Shell | okigan/awscurl | /scripts/ci.sh | UTF-8 | 1,629 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DETOX_ROOT_DIR=./build/detox
grep -v '^ *#' < .python-version | while IFS= read -r PYENV_VERSION
do
# echo PYENV_VERSION="$PYENV_VERSION"
# echo SHELL="$SHELL"
# echo $PATH
# pyenv install -sv "${PYENV_VERSION}"
# https://github.com/pyenv/pyenv/issues/1819#issuecomment-780803524
# ... | true |
d7a84bbb023f518a885e2726cbb7ca9493b0f6d8 | Shell | nnev/servicefiles | /matrix-irc/start.sh | UTF-8 | 339 | 2.71875 | 3 | [] | no_license | #!/bin/sh
case $1 in
generate)
exec node app.js -r -f /config/appservice-registration-irc.yaml -c /config/config.yaml -u "http://localhost:9995"
;;
start)
exec node app.js -c /config/config.yaml -p 9995 -f /config/appservice-registration-irc.yaml -u http://localhost:9995
;;
*)
echo "Usage:\n\t $0 (generate |... | true |
eb2c295467447960cebf2d40ea46227d9493c9a0 | Shell | wytfy/Fluent | /PDC/fluent_run.sh | UTF-8 | 907 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# The name of the script is myjob
#SBATCH -J congwang
# Only 1 hour wall-clock time will be given to this job
#SBATCH -t 1:00:00
# set the project to be charged for this
# should normally be of the format 2016-1 or 2016-16-1 or similar
#SBATCH -A 2017-103
# Number of nodes
#SBATCH -N 1
# Number of MPI... | true |
8f0879201c70722264a3a06fabdca52d855703b7 | Shell | kat-co/elnode-charm | /src/reactive/elnode.sh | UTF-8 | 433 | 2.859375 | 3 | [] | no_license | #!/bin/bash
# This will be sourced in the hook-context.
source $CHARM_DIR/bin/charms.reactive.sh
PATH=$CHARM_DIR/app:$PATH
@hook '{install,upgrade-charm}'
function install() {
installEmacs
install-elnode.el
status-set active "Ready."
set_state "elnode.available"
}
function installEmacs() {
status... | true |
f62ca2d40d39a83fa7469c7bf35f7d1d121ca5d7 | Shell | alphashooter/caketest | /og-test | UTF-8 | 444 | 2.890625 | 3 | [] | no_license | #!/bin/sh
SOURCE_DIR=$(dirname ${BASH_SOURCE[0]})
WORKING_DIR=`pwd`
CONFIG_FILE=$SOURCE_DIR/og-test.conf.tmp
LOG_FILE=$WORKING_DIR/og_test_`date +%Y%m%d%H%M`.log
> $CONFIG_FILE
echo "group opengraph:" >> $CONFIG_FILE
echo " module tiers" >> $CONFIG_FILE
$SOURCE_DIR/m3highload-test --config $CONFIG_FILE --host ca... | true |
238c884286d9de996aabcad31485890ff7a57cb1 | Shell | pahapoika/NginxBuild | /build.sh | UTF-8 | 3,857 | 3.0625 | 3 | [] | no_license | #!/usr/bin/env bash
# Names of latest versions of each package
export VERSION_PCRE=pcre-8.41
export VERSION_ZLIB=zlib-1.2.11
export VERSION_LIBRESSL=libressl-2.6.4
export VERSION_NGINX=nginx-1.13.9
# URLs to the source directories
export SOURCE_LIBRESSL=http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
export SOURCE_PCRE=... | true |
bc4b4ec607b5ae428d08e596562e22f0ac226075 | Shell | DanssBot/VPSMX8.4x | /NEW-ULTIMATE-VPS-MX-8.0/_$_Versiones/Bot_Telegram/TeleBotGen/TeleBotGen-master/sources/donar | UTF-8 | 798 | 2.6875 | 3 | [] | no_license | #!/bin/bash
donar () {
bot_retorno="$LINE\n"
bot_retorno+="El proyecto BotGen requiere\nde fondos para poder continuar\n"
bot_retorno+="Usted puede realizar una donacion\n"
bot_retorno+="Paypal\n"
bot_retorno+="MercadoPago Arg\n"
bot_retorno+="o bien hacer uso del acortador\nreiteradas veces\n... | true |
f8023e7b26f15aee46bddf4d8e6d184d59de01ad | Shell | rusenask/vol-test | /terraform/files/node-scripts/src/replication/replication-sync-during-writes.bats | UTF-8 | 2,243 | 3.34375 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/usr/bin/env bats
load ../test_helper
export NAMESPACE=test
@test "Create non-replicated volume using driver ($driver)" {
run $prefix2 docker volume create --driver $driver --opt size=10 stress-sync
assert_success
}
@test "Confirm volume is created (volume ls) using driver ($driver)" {
run $prefix2 docker v... | true |
477a03e4731d39ad9213382dce5fbb6e1d53306a | Shell | Hadryan/stock-analyse | /script/strategies.bats | UTF-8 | 39,203 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bats
# https://github.com/bats-core/bats-core
# load '/d/code/bats-assert/load.bash'
# Import
. ./script/constants.sh
. ./script/strategies.sh
# Constants
OUT_RESULT_FILE=temp/_result.html
SYMBOL=BEI
SYMBOL_NAME="BEI BEIERSDORF AG"
@test "StrategieOverratedStochasticWhenOwn" {
function WriteComdire... | true |
789a91c76d54072994480a4413d41d886d912f11 | Shell | schani/icfp-2011 | /force/cforce.sh | UTF-8 | 258 | 3.078125 | 3 | [] | no_license | #!/bin/bash
LAST=`ls -d round_* | colrm 1 6 | sort -n | tail -1`
NEXT=`printf "%04d" $[ 10#$LAST + 1 ]`
mkdir "round_$NEXT"
( cd "round_$NEXT";
find ../round_$LAST/ -maxdepth 1 -type f -name '*.seq' -exec \
../cgen.sh {} \; -exec ../ctall.sh {} \;
)
| true |
32a7e6401679cd0fff25408dbb07d59e9a288045 | Shell | codcodog/hack-bash-exercise | /array/demo05 | UTF-8 | 88 | 2.65625 | 3 | [] | no_license | #!/bin/sh
# 读入数组,显示数组第三个元素
tmp=($(cat))
echo "${tmp[3]}"
| true |
b9ac462c9cedbc819ac426ca178bdf014cc89563 | Shell | knakayama/serverless-blox-v0.3.0 | /bin/run.sh | UTF-8 | 621 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
set -eo pipefail
aws_region="ap-northeast-1"
while getopts ":bc:" args; do
case "$args" in
b)
build=true
;;
c)
cmd="$OPTARG"
;;
*)
echo "Invalid args: $OPTARG"
exit 1
esac
done
[[ "$build" == true ]] && docker image build --tag sls-blox .
dock... | true |
8360d1713a153671409895b34ce93893213b92e2 | Shell | VertiPub/ooziebuild | /scripts/justinstall.sh | UTF-8 | 2,404 | 3.34375 | 3 | [] | no_license | #!/bin/sh
# this is going to be problematic for oozie, since we've already released RPMs which are 2.0.5
# this default is different than all the others so that the script doesn't cause things to break when merged.
ALTISCALE_RELEASE=${ALTISCALE_RELEASE:-2.0.5}
export DEST_DIR=${INSTALL_DIR}/opt
mkdir -p --mode=0755 $... | true |
bf1d02399e4025a6047689ff4a7ac825fca1966d | Shell | scottie33/amorphous_polymer_lammps | /getpdb.bash | UTF-8 | 874 | 2.984375 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 9 ]; then
echo " you should have VMD installed with path set well."
echo " "
echo " cmd psffile dcdfile fromid1 toid1 fromid2 toid2 distance deltadis withindis"
echo " "
echo " please try again."
exit -1
fi
pdbdir="pdbfiles"
if [ -d "${pdbdir}" ]; then
rm -fr ${pdbdir}
fi
mkdir ${pdbd... | true |
a202863370022233e6f5530f56132b602e316307 | Shell | matthewpreston/matthewpreston.github.io | /programs/Cron/loadcheck.sh | UTF-8 | 809 | 3.875 | 4 | [] | no_license | #!/bin/bash
#Used to see if load is above maximum threshold
emailFile="/path/to/file/email.txt"
echo "Please open this script in notepad and replace the /path/to/file to a file"
echo "which contains an email for each line. Then you can remove these echo"
echo "statements and the following exit statement."
exit 0
MAX... | true |
376f0a2e8b805672c4e0f4bc284c8886891223a5 | Shell | StudioProcess/rv-madek-link | /extras/getlink.sh | UTF-8 | 782 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env sh
if (( $# == 0 )); then
echo "Usage: $0 MEDIA_ENTRY_ID"
echo "Example: $0 f5b78e56-a229-4295-a4cc-0311e6534207"
exit 1
fi
MEDIA_ENTRY_ID=$1
MEDIA_ARCHIVE_BASE_URL='https://medienarchiv.zhdk.ch'
RV_PLAYER_BASE='https://rv-dev.process.studio'
function uriencode { jq -nr --arg v "$1" '$v|@ur... | true |
36e540b38b6460a4bc60cd49b0cff9e3c62fbc80 | Shell | apache/mnemonic | /tools/bundle.sh | UTF-8 | 2,462 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); y... | true |
baa76f7438dbb610ce1edaab30803f1b99e98141 | Shell | senay/Optimal-Solution-Energy-Efficient-Routing | /MATLAB/algorithm_v1/90W/data.sh | UTF-8 | 564 | 3.015625 | 3 | [] | no_license | #!/bin/bash
i=0
lambdaP=0
lambdaN=0
tot=0
ii=0
numberflow=5
totF=0
RESULT=0
all=10
for i in 3 #1 2 3 4 5 6
do
while read lambda avgPower
do
if [ $lambdaN -eq $ii ]
then
lambdaP=$lambda
lambdaN=$lambda
else
lambdaP=$lambdaN
lambdaN=$lambda
fi
if [ $lambdaP -eq $lambdaN ]
then
tot=`echo $to... | true |
fdb24f61756cd45999db9330e906d7e13eec825b | Shell | 4383/tobiko | /tools/ci/keystone-credentials | UTF-8 | 256 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -eu
source $(dirname "$0")/activate
source $(dirname "$0")/os
function keystone_credentials {
os_setup
tobiko-keystone-credentials "$@"
}
if [ $(basename "$0") == keystone-credentials ]; then
keystone_credentials "$@"
fi
| true |
b9cc6fe2424cd8432e518e81acbe9c9e71666730 | Shell | radcliff/heroku-geo-buildpack | /support/build/geos/build | UTF-8 | 190 | 2.734375 | 3 | [] | no_license | #!/bin/sh
workspace_dir=$1
output_dir=$2
curl http://download.osgeo.org/geos/geos-$VERSION.tar.bz2 -s -o - | tar xjf -
cd geos-$VERSION
./configure --prefix=$output_dir
make
make install
| true |
edccf51b5a6e73670c89efdbd1e5294b9ba40ff5 | Shell | kaiwan/L3_dd_trg | /cz_miscdrv/test_drv.sh | UTF-8 | 1,483 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
name=$(basename $0)
# runcmd
# Parameters
# $1 ... : params are the command to run
runcmd()
{
[ $# -eq 0 ] && return
echo "$@"
eval "$@"
}
[ $# -ne 1 ] && {
echo "Usage : ${name} pathname-to-driver-to-test.ko"
exit 1
}
DRV=$1
sudo rmmod ${DRV::-3} 2>/dev/null
runcmd "sudo insmod ${DRV}"
lsmod|grep ${... | true |
1b3cfa2fdbb133a42011e5d44597a71bb6c350bc | Shell | mertnuhoglu/stuff | /bash/acksed | UTF-8 | 593 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#<url:file:///~/Dropbox (Personal)/projects/stuff/bash/acksed>
# usage:
# acksed "\/gis\/" "\/gis_frontend\/"
# acksed -n "\/gis\/" "\/gis_frontend\/"
while getopts ":n:" opt; do
case $opt in
n)
dry_run="True"
;;
\?)
dry_run="False"
;;
esac
done
if [ $dry_run = "True" ]; then
match=$2
re... | true |
133bdb8a2cb69cd9c7c12baa30dab1fdee26ae5f | Shell | wassim/dotfiles | /.zshrc | UTF-8 | 1,967 | 2.9375 | 3 | [] | no_license | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ... | true |
b1c217bdf28b0c81a9ce3755a25e22328a7ab7f6 | Shell | exqudens/exqudens-cpp-test | /cmake-full-clean-export-all.sh | UTF-8 | 1,376 | 2.5625 | 3 | [] | no_license | #!/bin/bash
set -e
rm -rfv "${BASH_HOME}/.conan/data/exqudens-cpp-test-lib/"
rm -rfv "./build/"
PROCESSOR_ARCHITECTURE="x86" \
INCLUDE="${MSVC_INCLUDE}" \
LIBPATH="${MSVC_X86_LIBPATH}" \
LIB="${MSVC_X86_LIB}" \
PATH="${MSVC_X86_BASH_CLPATH}:${MSVC_X86_BASH_RCPATH}:${PATH}" \
"./cmake-export.sh" "cmd-windows-ninja-ms... | true |
3677ff8526a723afdcc886f193ed862c61b0914f | Shell | marcw/packer-templates | /support/scripts/vmware.sh | UTF-8 | 431 | 3.09375 | 3 | [] | no_license | #!/bin/bash
[ "$PACKER_BUILDER_TYPE" == "vmware" ] || {
echo 'not building vmware, skipping';
exit;
}
apt-get -qy install gcc make fuse fuse-utils linux-headers-$(uname -r)
mkdir /mnt/vmware
mount -o loop /tmp/linux.iso /mnt/vmware
cd /tmp
tar xzf /mnt/vmware/VMwareTools-*.tar.gz
/tmp/vmware-tools-distrib/vm... | true |
d9d84b580b058c9147ae62ecb6020037a41a7ad3 | Shell | diffblue/cbmc | /.github/workflows/pull-request-check-clang-format.sh | UTF-8 | 1,339 | 4.03125 | 4 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause"
] | permissive | #!/bin/bash
# Stop on errors
set -e
# Log information about the run of this check.
echo "Pull request's base branch is: ${BASE_BRANCH}"
echo "Pull request's merge branch is: ${MERGE_BRANCH}"
echo "Pull request's source branch is: ${GITHUB_HEAD_REF}"
clang-format-11 --version
# The checkout action leaves us in detatc... | true |
98a3d5ed0b41dd1ad3bf5e9e919bf353f139f758 | Shell | Bubujka/bu.bin | /bin/swagger-check | UTF-8 | 134 | 2.734375 | 3 | [] | no_license | #!/bin/bash
for file in $(find . -iname swagger.yaml); do
echo "Checking $file"
swagger-tools validate "$file"
echo
echo
done
| true |
fbd40815df8d907149de69d486a8f22efa8bd683 | Shell | estorsky/myconfig | /scripts/work/ma/cli_new_make.sh | UTF-8 | 338 | 2.75 | 3 | [] | no_license | #!/bin/sh
cd pp4x/apps
# make cli_new
# retVal=$?
# if [ $retVal -ne 0 ]; then
# echo "cli_new make faild"
# exit $retVal
# fi
cd ..
echo $PWD
make initrd
cd initrd
echo $PWD
./fastmkcontainer.sh plc
LASTCRF=$(ls -t | head -1)
echo $LASTCRF
echo $HOME
rm -f $HOME/shared/firmware.ma4k
cp $LASTCRF $HOME/shar... | true |
c7ff767822d75b5e568c12a85a2bdd1e9be665a3 | Shell | minedec/vtools | /app/src/main/assets/kr-script/apps/douyin_ad_get.sh | UTF-8 | 748 | 3.390625 | 3 | [] | no_license | #!/system/bin/sh
if [[ ! -n "$SDCARD_PATH" ]]; then
if [[ -e /storage/emulated/0/Android ]]; then
SDCARD_PATH="/storage/emulated/0"
elif [[ -e /sdcard/Android ]]; then
SDCARD_PATH="/sdcard/"
elif [[ -e /data/media/0/Android ]]; then
SDCARD_PATH="/data/media/0"
fi
fi
path=$SDCAR... | true |
2877963623cd26686989778de04c6b6e10d946f7 | Shell | JWong42/Chef-Solo-Cookbooks | /deploy.sh | UTF-8 | 909 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
# Usage: ./deploy.sh [host] [identity_file]
# use the commandline argument 1 or if it's not there, use the ip specified here
host="${1:-root@96.126.110.107}"
identity_file="$2"
# removes old host from known_hosts in case host key changes when new VM instantiates
# parameter expansion removes an... | true |
4bfcb799d5b1d829fe4c28a8b1ff3aaae93ed00d | Shell | pluginsGLPI/empty | /plugin.sh | UTF-8 | 2,487 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# -------------------------------------------------------------------------
# {NAME} plugin for GLPI
# Copyright (C) {YEAR} by the {NAME} Development Team.
# -------------------------------------------------------------------------
#
# MIT License
#
# Permission is hereby granted, free of charge, to any p... | true |
e8692feabe061b0694fd28727509d618e318e252 | Shell | wallstreetcn/dashboard | /aio/scripts/lint-backend.sh | UTF-8 | 1,104 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2017 The Kubernetes Authors.
#
# 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 applicab... | true |
9415c81001ca165710d3b80b63b7018d2f17bd66 | Shell | scoreboard-tcc/infraestrutura | /setup.sh | UTF-8 | 1,451 | 3.078125 | 3 | [] | no_license | read -p "Digite o domínio (ex: meudominio.com): " domain
read -p "Digite um e-mail (necessário para gerar os certificados): " email
read -p "Digite o nome de usuário do Github: " gh_username
read -p "Digite o token do Github: " gh_token
sed -i "s|scoreboardapp.tech|$domain|g" conf/reverse-proxy.conf
sed -i "s|scoreboa... | true |
97c30d6c7b1facac2f04e6e145419418092c88bd | Shell | aga-git/webc | /var/lib/dpkg/info/glx-alternative-mesa.postinst | UTF-8 | 3,099 | 3.96875 | 4 | [] | no_license | #!/bin/sh
set -e
TRIPLETS="/ /i386-linux-gnu/ /x86_64-linux-gnu/"
add_slave()
{
local target_link name source_path prefix
target_link="$1"
name="$2"
source_path="$3"
prefix="glx--"
if [ -f "${source_path}" ] && [ -d "$(dirname "${target_link}")" ]; then
echo --slave "${target_link}" "${prefix}${name}" "${so... | true |
3e8ff6b2dc589d90e850e41edd3df3482ebca57b | Shell | withinboredom/dotfiles | /bin/docker-compose | UTF-8 | 398 | 3.25 | 3 | [] | no_license | #!/bin/bash
convertC() {
echo ${1#"/mnt"}
}
convertWin() {
declare start=${1#"/"}
start=${start:0:1}:${start:1}
echo $start | sed 's#/#\\#g'
}
target=$(convertC $(pwd -P))
source=$(convertWin $(convertC $(pwd -P)))
docker run \
-it \
--rm \
-v "$source:$target" \
-w $target \
-v ... | true |
733a2d0320435d4abf841f5fd1d82bb0a6f07900 | Shell | tnakaicode/jburkardt | /tetrahedron_integrals/tetrahedron_integrals.sh | UTF-8 | 332 | 2.90625 | 3 | [] | no_license | #!/bin/bash
#
cp tetrahedron_integrals.hpp /$HOME/include
#
g++ -c -I /$HOME/include tetrahedron_integrals.cpp
if [ $? -ne 0 ]; then
echo "Errors compiling tetrahedron_integrals.cpp"
exit
fi
#
mv tetrahedron_integrals.o ~/libcpp/$ARCH/tetrahedron_integrals.o
#
echo "Library installed as ~/libcpp/$ARCH/tetrahedron_i... | true |
441449ee666af1e284af888acaaa9c50df769dd6 | Shell | amirakha1/vagrant-consul-dev | /scripts/provision.sh | UTF-8 | 687 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
# Install dependencies if needed
which unzip curl jq 2>&1 || {
echo "Installing dependencies... "
apt-get update
apt-get install -y unzip curl jq
}
# Download consul if needed
which consul 2>&1 || {
pushd /usr/local/bin
echo "Fetching Consul version 1.4.3"
curl -sL -o /var/tmp/consul.z... | true |
c8210f4d704ba44f6dbc7b484fe04652dbc7507d | Shell | derphilipp/ums | /plugins.d/fzf.sh | UTF-8 | 141 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -Eeuo pipefail
if [ -e "$HOME/.fzf/install" ]; then
echo "⌨️ Update fzf"
"$HOME/.fzf/install" --bin
fi
| true |
72e748d39422d061def1d9d2ad9ffaf36548d2de | Shell | rishubjain/biowulf2_scripts | /sbatch_new_lscratch_rel14.sh | UTF-8 | 23,731 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#
# Script by Rishub Jain, adapted from Mario's biowulf1 script
#
#
# READ THIS BEFORE USING THIS SCRIPT:
#
# This script is designed to work with relion 1.3 and 1.4 on biowulf2. It is meant to run as if you have extracted particles using RELION, but if you didn't you can change things to make it still ... | true |
b19cadafda2f050f2b83067f5946cc8d0ac42dd5 | Shell | frdmn/LiveConfig-scripts | /confixx_web_and_mail_data_migrate/migrate-web.sh | UTF-8 | 3,303 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# LiveConfig Webinhalt Migration
# (c) 2014 by Jonas Friedmann (iWelt AG)
##################################
# Konfiguration - ggf. anpassen
##################################
###
# Variablen
###
# Load settings file
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. ${DIR}/settings.conf
##########... | true |
9142c56efe40c8c78b6d56337ad53c8a155cd5cb | Shell | giuliano52/pyhub | /utilita-sistema/substitute-duplicates-with-hard-link.sh | UTF-8 | 277 | 2.828125 | 3 | [] | no_license | #!/bin/sh
# rimuove duplicati sostituendoli con un hard link
# GD 20150316
fdupes -r -1 . | while read line
do
j="0"
for file in ${line[*]}
do
if [ "$j" == "0" ]
then j="1"
else
echo "ln -f ${line// .*/} $file"
ln -f ${line// .*/} $file
fi
done
done
| true |
b8e22e291c80f25a952e4d54698b52c5d5f571bc | Shell | aramisf/aramisf.github.io | /ofs/site_arm1/grad/ci066/2-2007/Scripts/12-1f | UTF-8 | 403 | 3.625 | 4 | [] | no_license | #!/bin/bash
encontra_pessoa_em_lista()
{
# Se /etc/passwd tem permissao de leitura, define NUM_LINHAS com numero de linhas.
# Retorno eh o status da execucao da expressao.
# O string eh atribuido a uma variavel nao-local.
[[ -r /etc/passwd ]] && USUARIO=`grep $1 Arquivos/telefones.txt`
}
if encontra_pessoa_em... | true |
7fed2fcaf12997f2f0775df0e51311d8d2f6d221 | Shell | BrahmaOS/brahmaos-ipfs | /cmd/ipfs/dist/install.sh | UTF-8 | 860 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Installation script for ipfs. It tries to move $bin in one of the
# directories stored in $binpaths.
INSTALL_DIR=$(dirname $0)
bin="$INSTALL_DIR/ipfs"
binpaths="/usr/local/bin /usr/bin"
# This variable contains a nonzero length string in case the script fails
# because of missing write permissions.
is_... | true |
0c4a0d5597e92d6a0e0842704c31b68d0b6be6d1 | Shell | darthjee/docker | /scripts/0.1.7/home/sbin/rubycritic.sh | UTF-8 | 350 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DIFF_LIST=$(git diff --name-only $CIRCLE_SHA1 $(git merge-base $CIRCLE_SHA1 origin/master) | grep "^lib/")
if [ ! -z "$DIFF_LIST" ]; then
mkdir -p tmp/rubycritic/compare
bundle exec rubycritic --format console --branch origin/master -t 0 --maximum-decrease 1 $DIFF_LIST
else
echo "No changes detecte... | true |
3adda4329bf6dd70a1df7e84a64bab4075c90ded | Shell | ilventu/aur-mirror | /drm_tools/PKGBUILD | UTF-8 | 1,543 | 2.53125 | 3 | [] | no_license | # Contributor: Graziano Giuliani <giuliani@lamma.rete.toscana.it>
# Maintainer: Nathan Owe <ndowens.aur at gmail dot com>
pkgname=drm_tools
pkgver=1.1.9
pkgrel=1
pkgdesc="Small utility linux programs: accudate, columnadd, datasniffer, execinput, extract, mbin, mbout, mdump, msgqueue"
url="ftp://saf.bio.caltech.edu/pub/... | true |
4925f5aa704f2621ce8b1d07e2a16ee273ea244b | Shell | Jinzai-solution/SALVATOR_SHELL | /board-salvator/USB-HOST/usb_smp_read_write_copy_one.sh | UTF-8 | 1,478 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# usb device driver autotest shell-script
set -e
#set -x
if [ $# -lt 3 ]; then
echo "usage : $(basename $0) SOURCE_PATH DESTINATION_PATH FILE_SIZE"
exit 1
fi
SRC_DIR="$1"
DST_DIR="$2"
FILE_SIZE="$3"
echo "read write ${FILE_SIZE}M file from $SRC_DIR to $DST_DIR"
# write test
echo "create data ${... | true |
503aefc8c7acfc7f1091f7d3fc0e13efe0b2db26 | Shell | DrewLung/willis | /convert.sh | UTF-8 | 325 | 3.4375 | 3 | [] | no_license | function CtoF {
echo "CtoF $1"
echo "9*$1/5+32" | bc -l
}
function FtoC {
echo "FtoC $1"
}
read -p "What temp would you like to convert? " temp
read -p "Convert CtoF or FtoC? " convert
if [ $convert == "CtoF" ] ; then CtoF $temp
elif [ $convert == "FtoC" ] ; then FtoC $temp
else echo "$convert is not valid"
... | true |
40e26140e3c43da277bae4ca2174fdf7b7c6bd56 | Shell | numerals/forq | /conf/forq | UTF-8 | 1,214 | 3.9375 | 4 | [
"MIT"
] | permissive | #! /usr/bin/sh
##
# Forismatic Conky
# https://github.com/numerals/forq.git
#
# Copyright (c) 2014 Sartaj Singh, Sumit Sahrawat
# Licensed under the MIT license.
##
NEW_REQUEST=
QUOTE=
AUTHOR=
help_forq()
{
echo "Usage: $0 <flag>"
echo "Valid flags:"
echo " -n : Request new quote from forismatic"
ec... | true |
d658ed9e03c945b0bca5e332fdf2555823ad9245 | Shell | lvjiang/testCode | /shell/arry/xingxing.sh | UTF-8 | 238 | 3.15625 | 3 | [] | no_license | #!/bin/bash
arry=("a aa","b bb","c cc")
b=(db c d)
echo $b
function showArr() {
arr=$1
echo ${arr[*]}
}
echo ${arry[*]}
echo ${arry[@]}
showArr "${arry[*]}"
showArr "${arry[@]}"
showArr $*
showArr "$*"
showArr $@
showArr "$@"
| true |
5e72171650d6c7bd60ac74ad6ea7b96160528ff3 | Shell | alkeshplutustec/service-ingest-initiation-test | /scripts/deploy_to_k8s.sh | UTF-8 | 810 | 2.78125 | 3 | [] | no_license | #!/bin/bash
set -e
REGISTRY="us.gcr.io/advisorconnect-1238/"
IMAGE="service-ingest-initiation"
#set image tag
if [ $CI_BRANCH != "production" ]; then
IMAGE_TAG=${CI_BRANCH}-${CI_TIMESTAMP}-${CI_COMMIT_ID}-${CI_COMMITTER_USERNAME}
else
IMAGE_TAG=2.1.0-${CI_TIMESTAMP}-${CI_COMMIT_ID}-${CI_COMMITTER_USERNAME}
fi
... | true |
17b1132e2b25cf002c222049009c73cc726c9a3a | Shell | xuancong84/linux-home | /bin/start-scrcpy4.sh | UTF-8 | 2,126 | 3.234375 | 3 | [] | no_license |
opt="-t"
session_name=scrcpy
curr_workspace="`wmctrl -d | grep '*' | awk '{print $1}'`"
win_IDs=(`wmctrl -lpx | awk "{if(\\$2==$curr_workspace)print \\$1}"`)
desktop_width=`wmctrl -d | grep '*' | awk '{print $9}' | sed "s:x.*::g"`
desktop_height=`wmctrl -d | grep '*' | awk '{print $9}' | sed "s:.*x::g"`
devs=(`adb de... | true |
6c0c66c3e72d76e60458814d3fdce9952428d737 | Shell | rinie/utilities | /setup_scripts/beagle_setup.sh | UTF-8 | 10,036 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# Run this script as root ie:
# sudo -s
# bash <(wget -q -O - https://raw.github.com/ninjablocks/utilities/master/setup_scripts/beagle_setup.sh)
bold=`tput bold`;
normal=`tput sgr0`;
# Setup the timezone
echo -e "\n→ ${bold}Setting up Sydney as the default timezone.${normal}\n";
sudo echo "Australia/Sydn... | true |
0e2c16ab0799970c50ea28b8869aeae76c234b43 | Shell | LabNeuroCogDevel/SzAttWMproc | /scripts/old_dontuse/20160225_WM_ROIstats.sh | UTF-8 | 2,615 | 2.625 | 3 | [] | no_license | #!/bin/bash
#extracting ROIs from 3dttest run on patients vs. controls for WM task
data=/Volumes/Phillips/P5/subj
roi_path=/Volumes/Phillips/P5/scripts/ROIs/BA_spheres
text_files=/Volumes/Phillips/P5/scripts/txt
region="LBA17 LBA40 LBA46 LBA9 RBA17 RBA40 RBA46 RBA9"
cd $data
for d in 1*/; do
for reg in $region; ... | true |
1ad507fc586680606a343fa87601f5a1c5008eb9 | Shell | gfitzp/db_export | /db_export.command | UTF-8 | 206 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
TODAYSBACKUP=`date +%Y-%m-%d`
PASSWORD=$1
for i in ${@:2}; do export=$TODAYSBACKUP\_sql_$i.sql; /usr/local/bin/mysqldump -u db_export -p$1 "$i" > ~/Documents/Database\ Exports/"$export"; done
| true |
78ac83ec68e9a8343f77975bb62850d02b66425c | Shell | Dork96/DorkScript | /port-ssl.sh | UTF-8 | 2,395 | 3.328125 | 3 | [] | no_license | #!/bin/bash
red='\e[1;31m'
green='\e[0;32m'
NC='\e[0m'
cyan='\x1b[96m'
white='\x1b[37m'
bold='\033[1m'
off='\x1b[m'
clear
ssl="$(cat /etc/stunnel/stunnel.conf | grep -i accept | head -n 2 | cut -d= -f2 | sed 's/ //g' | tr '\n' ' ' | awk '{print $1}')"
ssl2="$(cat /etc/stunnel/stunnel.conf | grep -i accept | head -n 2 ... | true |
b1aadc7c511646009309ee1745205a9998d87702 | Shell | LarsHaalck/PKGBUILDs | /karl-git/PKGBUILD | UTF-8 | 861 | 2.84375 | 3 | [] | no_license | # Maintainer: Lars Haalck
pkgname=karl-git
pkgver=r19.d15e061
pkgrel=1
pkgdesc='A clipboard manager'
arch=('i686' 'x86_64')
url='https://github.com/LarsHaalck/karl'
license=('MIT')
makedepends=('git' 'cargo')
provides=('karl')
conflicts=('karl')
source=("$pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$pkgna... | true |
afeebd99c7548695834f5fd97ff03dd7e02fb2b1 | Shell | tetsuo-cpp/tsh | /build.sh | UTF-8 | 1,039 | 3.953125 | 4 | [] | no_license | #!/bin/sh
# Create build dir if it doesn't already exist.
if [ ! -d build/ ]; then
mkdir build/
fi
# Default build type is debug.
build_type=$1
if [ -z "$build_type" ]; then
build_type="debug"
fi
case $build_type in
"debug")
cmd="cmake -DCMAKE_BUILD_TYPE=Debug ../.. && make"
;;
"relea... | true |
35c945fed12865fbd2dfebc60af687a2e5a855eb | Shell | mackpipe/ilumno_docker_drupal | /ilumno.sh | UTF-8 | 895 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# The environment variables found in the .env file are exported
export $(grep -v '^#' ilumno.env | xargs)
# Print the message to console
echo >&2 "========================================================================"
echo >&2
echo >&2 " Start creating the image ${DOCKER_IMAGE}"
echo >&2
echo >&2 "=====... | true |
eec2fec78e67a916e3c5fa63e4c7d8305951a349 | Shell | taowuwen/codec | /bash/test_line.sh | UTF-8 | 214 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env bash
echo "enable = ${1:-0}"
export printline='eval echo -e "`date` $$ [`pwd`/`basename $0`:${FUNCNAME:-OUTOFFUNC}:$LINENO]\t$*"'
test_func_name()
{
${printline}
}
test_func_name
${printline}
| true |
1c094096694f70a4d51b2c5cb517077bbe8539a4 | Shell | openshift-kni/oauth-proxy | /test/e2e.sh | UTF-8 | 1,912 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -x
set -e
PROJECT_REPO=github.com/openshift/oauth-proxy
DOCKER_REPO=localhost:5000
KUBECONFIG=~/admin.kubeconfig
TEST_NAMESPACE=myproject
REV=$(git rev-parse --short HEAD)
TEST_IMAGE=${DOCKER_REPO}/oauth-proxy-${REV}:latest
TEST_DIR=$(pwd)/test
HELLO_PATH=${TEST_DIR}/e2e/hello
HELLO_IMAGE=${DOCKER_REPO}/... | true |
026ffc3e7cc1390b6d56eb872cd8a8e5430702af | Shell | erik-feller/OS | /pa4/harness.sh | UTF-8 | 358 | 2.625 | 3 | [] | no_license | #!/usr/bin/bash
TIMEFORM=$'wall=%e user=%U system=%S CPU=%P i-switched=%c v-switched=%w'
PROGS=( pi-sched rw multi-sched)
FORKS=( 10 100 1000 )
SCHEDULERS=( SCHED_OTHER SCHED_FIFO SCHED_RR )
for a in ${PROGS[@]}; do
for b in ${SCHEDULERS[@]};do
for c in ${FORKS[@]};do
echo $a $b $c; time ./$a $b $c 1 > ou... | true |
264ada3145fabd2315cf31181758f1334c8d978b | Shell | r4mmer/docker-nginx-gunicorn-django | /gunicorn/run | UTF-8 | 1,324 | 3.296875 | 3 | [] | no_license | #!/bin/sh
exec 2>&1
source /etc/envvars
django_cmd=${DJANGO_CMD}
test_models=${DJANGO_TEST_MODELS}
GUNICORN=/usr/local/bin/gunicorn
ROOT=/app
PID=/var/run/gunicorn.pid
APP=${DJANGO_APP}.wsgi
if [ -f $PID ]; then rm $PID; fi
cd $ROOT
mkdir -p /root/.ssh/
chown -R root:root /root/.ssh
# XXX: skip test for migrations... | true |
180f4059ee88a111031bc41327a75e0b8cb5ee3e | Shell | UMN-CMS/HGCal-RPi | /etc/check_sync_logs | UTF-8 | 219 | 2.59375 | 3 | [] | no_license | #!/bin/bash
source etc/config
for sync_pi_alias in "${sync_pi_aliases[@]}"
do
echo "$sync_pi_alias ---------------------------------------- $sync_pi_alias"
ssh $sync_pi_alias "tail $pi_syncdir/sync.log"
done
| true |
139bfb25b04a5a87c52a54a5fd258669061b751c | Shell | ODEX-TOS/packages | /libmpeg2/trunk/PKGBUILD | UTF-8 | 1,126 | 2.59375 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Contributor: Sarah Hay <sarah@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=libmpeg2
pkgver=0.5.1
pkgrel=7
pkgdesc="Library for decoding MPEG-1 and MPEG-2 video streams."
arch=('x86_64')
url="http://libmpeg2.sourceforge.net/"
depends=('glibc')
makedepends=('sdl' 'libxv')
optdepends=('sdl... | true |
dca9a88e6d865cf13924a97b1cbb3dac193a43df | Shell | arnautpe/minifs | /conf/packages/09busybox.sh | UTF-8 | 2,378 | 3.625 | 4 | [] | no_license |
PACKAGES="$PACKAGES busybox"
hset busybox version "1.29.1"
hset busybox url "http://busybox.net/downloads/busybox-$(hget busybox version).tar.bz2"
hset busybox depends "crosstools host-libtool"
hset busybox optional "pam"
configure-busybox() {
local obj=$STAGING/obj/busybox-obj
mkdir -p $obj
if [ -f "$CONFIG"/conf... | true |
286eaa81348cf608ac306465764c115621d1fe55 | Shell | Bramha-N/linuxShell | /d7_array/Randomarray.sh | UTF-8 | 607 | 3.4375 | 3 | [] | no_license | #!/bin/bash -x
read -p "How many random numbers you wants to print ? : " max;
for (( n=1; n<=max; n++ ));
do
y=$(($RANDOM%900+100))
arr+=($y)
done
echo "Random numbers are : " ${arr[@]}
for i in ${arr[@]};
do
(( $i > max || max == 0)) && max=$i
(( $i < min || min == 0)) && min=$i
done
echo "min=$min"
ec... | true |
43c26ef62e992dcdf3321992e2d7520caca19a8d | Shell | rbone/dotmac | /packages/git/.bin/git-recentbranches | UTF-8 | 249 | 2.53125 | 3 | [] | no_license | #!/bin/bash
git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow bold)%(committerdate:relative)| %(color:cyan bold)%(authorname)| %(color:red bold)%(refname:short) %(color:reset)| %(subject)' --count=${1-20} | column -ts '|'
| true |
03f6564a6d14e11fc9c7f787b8d581af4baff77b | Shell | fthayd/LinuxShellSamples | /07_Cut.sh | UTF-8 | 572 | 3.5625 | 4 | [] | no_license | #!/bin/sh
while read line
do
echo $line | cut -c3 # Display the third char only.
echo $line | cut -c2,7 # Display the third char and seventh char.
echo $line | cut -c2-7 # Display the second char to seventh char.
echo "$line" | cut -f1-3 # -d delim char TAB and display 1. to 3. parts.
echo $line |... | true |
f3d06f69439ce9dfdd26e64217ac3ba682a6cc4f | Shell | zhangns07/multiple_source_adaptation | /density_and_basepred/gen_lm.sh | UTF-8 | 801 | 3.28125 | 3 | [] | no_license | if [ $# -lt 3 ]; then
echo \
"Usage: $0 model_data.txt ngram_order min_occurrences"
exit -1
fi
DATA=$1
NGRAM_ORDER=$2
NUM_OCCUR=$3
FSMLIB=../../tool_binaries/fsm-4.0/bin
GRMLIB=../../tool_binaries/grm-4.0/bin
SCRIPTS=./
echo Adding end symbols...
awk '{print $0, "</s>"}' $DATA > $DATA.endsymbol
#echo Storing dat... | true |
20013ca9ee87942d6b439bfce81722827926a285 | Shell | joliencremers/regression_wrapping | /2 Simulationstudy/Ccodes_and_scripts/run_N.sh | UTF-8 | 1,531 | 2.71875 | 3 | [] | no_license |
#Change to directory with simulated data
cd ../Simulated_data/N
#Run the WN sampler
for f in *WN*; do
# run regression with k=1 and prior variance=5
../../Ccodes_and_scripts/Regression_WN.exe 1 5 $f
# run analysis with autocorrelations (argument 1) and write report to dat file
../../Ccodes_and_scripts/Analysis.ex... | true |
41de9ad4ba5f0afd18f1172cee7280cb91a85ea6 | Shell | mohamedgalal99/gig-nodes-scripts | /functions_reinstall.sh | UTF-8 | 5,282 | 3.8125 | 4 | [] | no_license | #!/bin/bash
baseTFTP="/opt/g8-pxeboot/pxeboot/tftpboot/pxelinux.cfg"
baseIP="/opt/g8-pxeboot/pxeboot/conf"
#check if base files exist
function check {
[ -f "$baseIP/hosts" ] || { echo [-] "can't find $baseIP/hosts file" && exit 1; }
[ -f "$baseIP/dhcphosts" ] || { echo [-] "can't find $baseIP/dhcphosts file" && ex... | true |
81f6d396ce60f4055626177deef06e92fc95864e | Shell | SRSteinkamp/rideshare_analystcert | /getdata.sh | UTF-8 | 659 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# Create directory
mkdir data
# Declare list of dates to be included
declare -a StringArray=(202004 202005 202006 202007 202008 202009 202010 202011 202012 202101 202102 202103 202104)
base_url="https://divvy-tripdata.s3.amazonaws.com"
for date in ${StringArray[@]}
do
# Create url
tmpurl="${base_u... | true |
7f0c2c9340a5b8939383aa258e5750b536d3caec | Shell | CORDEA/zsh-tmux-decor | /.zsh/tmux_status.sh | UTF-8 | 1,388 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# encoding:utf-8
#
# Copyright [2015] [Yoshihiro Tanaka]
# 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 appl... | true |
28e09f67dc49515a560b155d72a7c2e7d8d3a2dd | Shell | mcavady/backupBashScripts | /scripts/sql.sh | UTF-8 | 1,972 | 3.53125 | 4 | [] | no_license | #!/bin/bash
#sql script for backing up databases and zipping them this may not send the email, users perms will have to be set by the user running this script
#sql backup user, user name and password for the mysql user you want to use this script
DB_USER=""
DB_PASSWD=""
#optimise tables and check
mysqlcheck ... | true |
c2becea0c043e9befd587ded0281f6385f8562d1 | Shell | dogeth/dotfiles | /profile.bash | UTF-8 | 1,192 | 2.6875 | 3 | [
"MIT"
] | permissive | source ~/.dotfiles/git-completion.bash
# changing directory to code project
function c { cd ~/code/$1; }
# cd
alias ..='cd ..'
# ls
alias ls="ls -F"
alias l="ls -lAh"
alias ll="ls -l"
alias la='ls -A'
# git
alias gl='git pull'
alias gp='git push'
alias gd='git diff'
alias gc='git commit'
alias gca='git commit -a'
a... | true |
8375bd4aba979faefbecbbbc53d4c98f9d0d3fe0 | Shell | gdubya/.dotfiles | /src/scripts/networkservice.sh | UTF-8 | 844 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
services=$(networksetup -listnetworkserviceorder | grep 'Hardware Port')
while read line; do
sname=$(echo $line | awk -F "(, )|(: )|[)]" '{print $2}')
sdev=$(echo $line | sed -n 's/.*Device: \(.*\))$/\1/p')
if [ -n "$sdev" ]; then
status=$(ifconfig $sdev 2>/dev/null | grep 'status: ac... | true |
a2c8f83e2726485e5d6e6a9616b9abe628bb9c67 | Shell | wcboone/OOPerl_Code_Sample | /GNC/GoldCard/bin/loadInitial.sh | UTF-8 | 557 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# $Id: loadInitial.sh,v 1.1 2007/01/19 23:15:20 donohuet Exp $
# Run this from cron every 2.5 hours to launch 2 loads.
cd /feeds/tmp/GNC
mkdir -p LOAD DONE
loadfile() {
file=$1
mv $file LOAD
f=LOAD/$file
nohup /feeds/bin/datax -file=$f -db=feedsprd -legacy -import gnc.goldcard
mv $f... | true |
1412ca2172d98dea22da186f41da17f165e4e101 | Shell | galaxysd/GalaxyCodeBases | /bash/etc/cutter.sh | UTF-8 | 463 | 3.234375 | 3 | [] | no_license | #!/bin/bash
pieceHeight=5408
pieceSlide=$[$pieceHeight-130]
targetdir=./work
infile="$1"
inputname=${infile%%.*}
mkdir -p ${targetdir}
function getwidth() { magick identify -format '%[height]' "$1"; }
height=$(getwidth "${infile}")
echo "[${height}]"
top="0"
fno="0"
while [ $top -lt $height ]
do
echo "$top $height... | true |
0365ca7ea82bbb27231cbb839c387449c7f2eb0f | Shell | TheBoringTeam/AwesomeMusic-frontend | /stop.sh | UTF-8 | 177 | 3.140625 | 3 | [] | no_license | if [ ! "$(docker ps -q -f name=front-end)" ]; then
if [ "$(docker ps -aq -f status=exited -f name=front-end)" ]; then
# cleanup
docker rm front-end
fi
fi | true |
d8331df02540167c27dc179dfb1cca1863383c8f | Shell | tomoya0x00/soracom_autossh | /soracom_autossh.sh | UTF-8 | 2,046 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
SSH_INFO_FILE="/var/tmp/ssh_info"
SSH_INFO_FILE_OLD="/var/tmp/ssh_info.old"
SSH_PRIVATEKEY_FILE="/var/tmp/private-key.pem"
AUTOSSH_PIDFILE="/var/run/autossh.pid"
# 自分のIMSIと該当するSSH情報を取得
IMSI=`curl -s http://metadata.soracom.io/v1/subscriber | jq .imsi`
if [ $? -ne 0 ]; then
echo "failed to get own imsi"
... | true |
f7e9813f5591b2af2d65a24d8569b4e07decb91c | Shell | davidadamsphd/hellbender-validation | /scripts/run-md-and-bqsr.sh | UTF-8 | 2,778 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
GATK_RESOURCES=gs://hellbender-validation/resources/gatk-bundle
FILE=CEUTrio.HiSeq.WGS.b37.ch20.4m-6m.NA12878.bam
GCS_INPUT_PATH=gs://hellbender-validation/test-input/NA12878
GCS_OUTPUT_PATH=gs://hellbender-validation/pickard-gatk3-output/NA12878
cd /tmp/
gsutil cp ${GCS_INPUT_PATH}/${FILE}* ./
gsutil ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.