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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5c2782840af6a430ff6c512d36cbfd6f844cf729 | Shell | lanen/cacert-generator | /bin/cas/trust | UTF-8 | 888 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# 目的是使用 keytool 将两个keystore 证书做双向认证
bin=`dirname $0`
base=$(cd "$bin";cd ../..;pwd)
ks=$base/certs/keystore
prog="/usr/bin/openssl"
kt=`which keytool`
if [ $# != 2 ]; then
echo "必须输入两个参数"
exit 1
fi
name1=$1
name2=$2
crt_file1="$base/certs/enduser/${name1}.crt"
crt_file2="$base/certs/enduser... | true |
7954f9a18439cd6fa54d17b05214cb6f07599485 | Shell | kubukoz/nixcfg | /nixup | UTF-8 | 9,898 | 2.578125 | 3 | [] | no_license | #! /usr/bin/env bash
set -euo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/stderr 2>&1 && pwd )"
set +x; source /run/secrets/nixup-secrets; set -x
nixargs=(--experimental-features "nix-command flakes") #ca-references ca-derivations recursive-nix")
buildargs=(
#--option 'extra-substituters' 'https://c... | true |
41a3d2a95ae03e123bbf73ecf0b0ccce0a219ccb | Shell | sebromero/Arduino-Science-Journal-iOS | /Scripts/swiftlint.sh | UTF-8 | 902 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
script_path="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
config_path="${script_path}/../.swiftlint.yml"
source_path="${script_path}/../ScienceJournal"
swiftlint_path="${script_path}/../Pods/SwiftLint/swiftlint"
# Create a `.swiftlint.options.local` file in the same directory as
... | true |
5277d5ca1738d8f33bae6ef7a5f3454a18bc3e87 | Shell | octohorsey/ansible-dev | /.s2i/bin/assemble | UTF-8 | 309 | 2.546875 | 3 | [] | no_license | #!/bin/bash
echo "-------------- Executing the 'assemble' script -------------------"
S2I_PATH=/usr/libexec/s2i
S2I_BIN_PATH=$S2I_PATH/bin
S2I_SRC_PATH=$S2I_PATH/src
HOME=/home/jenkins
cp -rf $S2I_SRC_PATH/home-files/* $HOME/
cp $S2I_SRC_PATH/ssh-key/id_rsa $HOME/.ssh/id_rsa
chown 1001 $HOME/.ssh/id_rsa
| true |
73727a4eefd84583966eae39dfc23e73c240bd9e | Shell | haniokasai/netwalker-rootfs | /var/lib/dpkg/info/spider-lcfont.prerm | UTF-8 | 1,034 | 3.28125 | 3 | [] | no_license | #! /bin/sh
set -e
# update font cache
fontconfig_cache_update()
{
if [ -x /usr/bin/fc-cache ]; then
fc-cache update
fi
}
case "$1" in
upgrade|deconfigure)
fontconfig_cache_update
;;
remove)
ALT_NAME="ttf-japanese-gothic"
FONT_ENTRY="/usr/share/fonts/truetype/LCFont/lcfont.ttf"
if [ -f /us... | true |
10b64299ef28d1055ff38e8132df73c50f14b75a | Shell | shakahl/containrrr-co | /co | UTF-8 | 346 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
key="$1"
coPath=$(dirname $(realpath ${BASH_SOURCE[0]}))
if [[ ! -f $coPath/recipes/$key.sh ]]
then
echo "Error: Application unavailable.\n"
echo "Available applications:"
recipes=$(ls $coPath/recipes)
echo "$recipes" | sed -E 's/(.*)\.sh/ \1\\/' | xargs echo ""
exit 1
fi
bash $coPath/reci... | true |
c4ae3f392baf0c12499963758c9466be50547e33 | Shell | javitch/QuickStart | /bash/querying.sh | UTF-8 | 813 | 2.75 | 3 | [] | no_license | #!/bin/bash
USER_KEY="USER_KEY"
USER_SECRET="USER_SECRET"
#
# DISCOVER ALL JOBS RAN
#
discover_all="{
\"key\" : \"$USER_KEY\",
\"secret\": \"$USER_SECRET\",
\"status\": \"all\"
}"
# store job returns into a string buffer
discover_all_ret="`curl -H "content-type:application/json" -X GET \
... | true |
7617ec54887fd93f8665ef07291e65ffc72b7d68 | Shell | Mimi3col/Larken-Project | /Start-Here/Beginning.sh | UTF-8 | 1,476 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# Beginning.sh
# You should not be reading this...
# You are out of the bounds of the game
# Your curriocity is rewarded...
echo "Welcome, Investigator. The Console Killer Has struck again"
sleep 3
echo "They have killed in the 4 locations around town: Library, Docks, Hotel,"
echo "and the Mansion's Be... | true |
f039642bcc3390385ce7cef8aff8cc2d0754d799 | Shell | rajkalgur/poc-hub-singapore-ntu | /scripts/delete-volumes.sh | UTF-8 | 2,051 | 4.4375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Some bash functions for common tasks.
trim()
{
local trimmed="$1"
# Strip leading space.
trimmed="${trimmed## }"
# Strip trailing space.
trimmed="${trimmed%% }"
echo "$trimmed"
}
# Script can optionally be passed the course name and a version number.
# If not supplied the user... | true |
4f7d78df4a06cda2d007ae9420c8ab3aa374fd7e | Shell | availabs/tigtest2-docker | /bin/install-dependencies | UTF-8 | 1,327 | 3.609375 | 4 | [] | no_license | #!/bin/bash
# NOTE: On the host maching config/.ssh/ MUST contain a GitHub deploy key
# See: https://github.com/availabs/tigtest2/settings/keys
#
# NOTE: We mount host directories into which the container copies the app dependencies.
# There may be permission troubles if the UID of the host user does not
#... | true |
d10ae580d9a1a141a1d42677def221725020c6ee | Shell | qjhart/dwr-calsimetaw | /pre2003/bin/doit | UTF-8 | 676 | 2.703125 | 3 | [] | no_license | #! /bin/sh
g=/proj/simetaw/gdb;
b=$g/etosimetaw;
for y in `seq 1960 1989`; do
g.mapset gisdbase=$g location=etosimetaw mapset=$y;
make-eto mapsets;
# for m in `seq -f %02.0f 1 1`; do
for m in `seq -f %02.0f 1 12`; do
cd $b/$y/$y-$m; g.mapset gisdbase=$b location=$y mapset=$y-$m;
make-eto map... | true |
369df3ab758b8b694d05bdd273d27313d97299c2 | Shell | paskma/framework-parlib | /experiments/proj_ftpclient/compile_jclient_fakesync.sh | UTF-8 | 416 | 2.6875 | 3 | [] | no_license | #!/bin/bash
echo "Copying to jclient_fakesync..."
rm -rf jclient_fakesync
cp -r jclient jclient_fakesync
echo "Fixing for fakesync..."
for i in $(find jclient_fakesync/pyftpclient_layer -name 'C*.java'); do
echo "FIXING: $i"
util/fixclassnumbers.py $i unpacked/pypy/
done
export CLASSPATH=jclient_fakesync:unpacked
... | true |
222b57b3dadc707d151223b504481f7f0d3f3d78 | Shell | vangalamaheshh/bioifx | /pipelines/SNP/SNP_pipe.bash | UTF-8 | 5,500 | 3 | 3 | [] | no_license | #!/bin/bash
date_token=$(date | sed -e "s/ /_/g" | sed -e "s/:/_/g")
ANALYSIS_DIR="/media/mvangala/mbcf_storage_aberdeen/SNP/analysis/${date_token}"
REF_FASTA="/media/mvangala/mbcf_storage_aberdeen/ref_files/human/Homo_sapiens/UCSC/hg19/Sequence/WholeGenomeFasta/genome.fa"
STAR_GENOME_INDEX_DIR="/media/mvangala/mbcf_s... | true |
2b57d5146e22f8251afcbb4559c8236231bb4224 | Shell | tarmiste/lfs-custom-configs | /lfs82/blfsrawscripts/039-z-stunnel | UTF-8 | 3,897 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
export JH_PKG_DIR=stunnel
SRC_DIR=${JH_SRC_ARCHIVE}${JH_SRC_SUBDIRS:+/${JH_PKG_DIR}}
BUILD_DIR=${JH_BUILD_ROOT}${JH_BUILD_SUBDIRS:+/${JH_PKG_DIR}}
mkdir -p $SRC_DIR
mkdir -p $BUILD_DIR
cd $SRC_DIR
PACKAGE=stunnel-5.44.tar.gz
if [[ ! -f $PACKAGE ]] ; then
if [[ -f $JH_SRC_ARCHIVE/$PACKAGE ]] ; th... | true |
652b277d756627c17662815d02c67bf7137789e2 | Shell | welldoer/goos | /setup_openfire.sh | UTF-8 | 2,125 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh -e
pwd=$(pwd)
server_dir="$pwd/server"
openfire_dir="$server_dir/openfire"
openfire_tgz="openfire_3_6_0a.tar.gz"
setup_done="$server_dir/setup.done"
pidfile="$server_dir/openfire.pid"
cookies="$server_dir/cookies"
start_server()
{
echo "\n [ Starting Openfire Server... ]\n"
cd $pwd
java -server -Dope... | true |
7ccc3db62b8ec8440760cbda246edd1f966f9b1d | Shell | infernalheaven/UNItools | /src/GaIA/pkgs/dnstop/dnstop.20050405.install.tmp/var/opt/UNItools/setup/dnstop.20050405.dependency_check.sh | UTF-8 | 950 | 3.171875 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/sh
#
#
builtin_remove() {
# Remove files from archive
cd /
/bin/rm -f ./var/opt/UNItools/bin/dnstop
/bin/rm -f ./var/opt/UNItools/docs/NT/dnstop.20050405/LICENSE
/bin/rm -f ./var/opt/UNItools/docs/NT/dnstop.20050405/dnstop.html
/bin/rm -f ./var/opt/UNItools/docs/NT/dnstop.20050405/dnstop.txt
/bin/rm -f ./var/opt... | true |
0a76c760f86c6eab2950324d1289f3d79780faf8 | Shell | Jpfonseca/afternoon_at_races | /code/deploy.sh | UTF-8 | 8,761 | 2.6875 | 3 | [
"MIT"
] | permissive | usage()
{
echo "how to use : deploy [[--all|--server|--client|--run] | [-h]]"
}
serversmac(){
tab "ssh sd0203@l040101-ws01.ua.pt 'cd ~ && sh set_rmiregistry.sh 22229'"
sleep 2
tab "ssh sd0203@l040101-ws01.ua.pt 'cd ~/Private/dir_registry && sh register_com.sh'"
sleep 2
scp ${SRC_DIR}dir_servers... | true |
391d9e717496c9bf5c15567b5885bc4037479f7c | Shell | arturmeski/reactics | /reactics-bdd/drs_benchmark.sh | UTF-8 | 1,579 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
TMPINPUT="tmp_$RANDOM$RANDOM.rs"
CMD="./reactics -B"
timelimit="$((30*60))" # 30 minutes
timelimit="$((5*60))" # 5 minutes
form_tgc_sc="`seq 1 4`"
form_asm="`seq 1 2`"
for benchmark in "tgc_sc" "asm"; do
eval formulae=\$form_${benchmark}
for opt in "z" "zb" "x" "xz" "xzb" "xb" "" "b";do
... | true |
35aa3b2e6cb5ea47211e79ce1f2488bf0dc2277a | Shell | florent-blanvillain/something | /tools/functions.sh | UTF-8 | 2,709 | 3.765625 | 4 | [] | no_license | #!/bin/bash
export SDK_NAME_STEM="twilio-ip-messaging-android"
get_sdk_version_prefix() {
if [ -z "${CI_BUILD_VERSION}" ]; then
version_prefix=$(sed -n '/android:versionName=/s/.*"\(.*\)"[^"]*/\1/p' AndroidManifest.xml)
else
version_prefix=${CI_BUILD_VERSION}
fi
[ -n "$version_prefix" ... | true |
7918acf45c0117499a40c33d65c11c828c216060 | Shell | JanMarvin/v8-R | /PKGBUILD | UTF-8 | 4,597 | 2.546875 | 3 | [] | no_license | # Maintainer: Jan Marvin Garbuszus <jan.garbuszus@rub.de>
# Contributor: Marco Pompili <aur (at) mg.odd.red>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: tocer <tocer.deng@gmail.com... | true |
2dbdfb8b9580f91d90dacd9275df2e605c5d49ba | Shell | troyjfarrell/sandstorm-test-app | /.sandstorm/setup.sh | UTF-8 | 1,127 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
source /opt/app/.sandstorm/environment
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get upgrade
# Install the Rust toolchain
apt-get install --yes gcc-multilib
if [ ! -f "$RUSTUP_INIT" ] || [ ! "$(/usr/bin/sha256sum -c "$RUSTUP_INIT_SHA256")" ]; then
$CURL -o "$RUSTUP... | true |
9349fb84dd30e477fc0ce05c39090118ae8e913c | Shell | abveritas/apps-testing | /qmmp/PKGBUILD | UTF-8 | 1,299 | 2.6875 | 3 | [] | no_license | #
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# (c) 2010 Drake Justice
# contributor: Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buil... | true |
37ba51c2e785d73126ebd10ef3be0ab5458c7b49 | Shell | kcgithub2014/setup | /setupsh/recipes/yarn.setup | UTF-8 | 155 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
if ! type yarn > /dev/null
then
echo_title_install "yarn"
brew install yarn
else
echo_title_update "yarn"
brew upgrade yarn
fi
| true |
283fa0a6d1f35bdbf2ed550f194c2a7a3f5e318a | Shell | edrandall-dev/gcp-shell-scripts | /create-env.sh | UTF-8 | 767 | 3.09375 | 3 | [] | no_license | #!/bin/bash
#Source the global variables
. var/0-gcp-global-vars.sh
show "Commencing build: $DATETIME"
echo
#A - Create VPC
echo
showrun \
/bin/bash scripts/1-network-setup.sh
#B - Create database and MIGs
echo
showrun \
/bin/bash scripts/2-database-setup.sh
#C - Create MIG
echo
showrun \
/bin/bash ... | true |
ba72ea84281b3bfb32633967a0ee7b15564f7b22 | Shell | buildpacks/tekton-integration | /scripts/platforms/openshift/create.sh | UTF-8 | 674 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
# IMPORTS
DIR="$(dirname "${BASH_SOURCE[0]}")"
source "${DIR}/../../_common.sh"
source "${DIR}/_common.sh"
# DEPENDENCIES
require_command crc
require_command jq
require_command oc
# TASK
## create cluster
echo "> Starting a new cluster..."
crc start
echo "> Logging in as admin..."
lo... | true |
604b8e42af085b757052fdcd13837e4c064d23bc | Shell | frosty939/lw | /99 - modification/guardianAgentInstall.sh | UTF-8 | 5,786 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#doom
# _ _
# (_) | |
# ___ ___ _ __ _ _ __ | |_
# / __|/ __| '__| | '_ \| __|
# \__ \ (__| | | | |_) | |_
# |___/\___|_| |_| .__/ \__|
# | |
# |_|
#ANSI shadow
# ███╗ ██╗ █████╗ ███╗ ███╗███████╗
# ████╗ ██║██╔══██╗██... | true |
a2cc05b5c5f4e9a13d1a5d3e7e3aeaac0dae9498 | Shell | nestorInc/jukebox | /clean.sh | UTF-8 | 304 | 3.328125 | 3 | [] | no_license | #!/bin/bash
DIR=`pwd`
# Ensure correct path even if we're called from elsewhere
SCRIPT_PATH=${BASH_SOURCE[0]}
cd `dirname ${SCRIPT_PATH}` > /dev/null
# Destroy time
rm -f jukebox.db
echo "Database removed!"
rm -rf encoded/
mkdir encoded
echo "Folder encoded/ is now empty!"
# Restore dir
cd $DIR
| true |
572bbb3052e169183a0bca35e021f600e819c224 | Shell | aaevan/aaevan_rc_files | /scripts/devdiff | UTF-8 | 202 | 2.578125 | 3 | [] | no_license | #!/bin/bash
ls /dev/ > /tmp/1.txt
read -rsp $'Remove or insert your device and press any key.\n' -n1 key
ls /dev/ > /tmp/2.txt
diff /tmp/1.txt /tmp/2.txt
read -rsp $'Press any key to exit.\n' -n1 key
| true |
3ed89fcd94b4a839159c7adf7b0ee4e3497b7bfb | Shell | wingod163/myRepos | /shell/tmrt_palm_activeuser_app_hunan.sh | UTF-8 | 6,694 | 3.03125 | 3 | [] | no_license | #!/bin/sh
source /e3base/.bash_profile
##################################################################
# 程序名称:胡雯--湖南手厅渠道分地市年累计活跃用户数需求
# 程序功能:
# 创建信息:2018-08-06 by zhaojl_bds
# 修改信息:
##################################################################
#参数判断
if [ $# -eq 0 ];then
v_thisyyyymmdd=`date -d "1 day ago"... | true |
e031755b5004d9fe1f705a5d8148070bd6c59fc1 | Shell | RedRobotics/RedBoard | /system/calibrateADC.sh | UTF-8 | 969 | 3.625 | 4 | [
"MIT"
] | permissive | # Author: Neil Lambeth. neil@redrobotics.co.uk @NeilRedRobotics
echo
echo Measure your battery voltage with a multimeter and enter it here.
echo The voltage should be between 7 - 24, you can use 2 decimal places eg. 11.99
echo Press [Enter] once you have typed in your measurement.
while read battery
do
if [... | true |
e655eb12c78cd7d8d3ab32369ee2fc9fc3c29040 | Shell | antmicro/litex-conda-eda | /misc/klayout/build.sh | UTF-8 | 572 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
set -x
# Identify OS
UNAME_OUT="$(uname -s)"
case "${UNAME_OUT}" in
Linux*) OS=Linux;;
*) OS="${UNAME_OUT}"
echo "Unknown OS: ${OS}"
exit;;
esac
cd ${SRC_DIR}
./build.sh -build "${SRC_DIR}/build" -python "${PYTHON}" -expert -without-qtbinding -l... | true |
331be45db17e6c4e4a13260cc446ec95c146a6b5 | Shell | nuxeo/presales-vmdemo | /EC2-scripts/newDNS.sh | UTF-8 | 6,435 | 4.09375 | 4 | [] | no_license | #!/bin/bash
#### How to use this...
### In AWS:
## First, stop any instances using domain name you want.
## Then, stop the target EC2. This will get rid of its current DNS record.
## Then, update the dnsName tag on target EC2.
## Then, restart the target EC2.
## At this point, you can SSH into your target EC2 using t... | true |
495e2aa9e4cd398ff7f1a7fedeac1f1129eacddd | Shell | NetBSD/src | /sbin/devpubd/hooks/01-makedev | UTF-8 | 225 | 3.234375 | 3 | [] | no_license | #!/bin/sh
#
# $NetBSD: 01-makedev,v 1.3 2021/08/05 12:45:33 kre Exp $
#
# Try to create a device node if it doesn't exist
#
event="$1"
shift
case $event in
device-attach)
cd /dev && sh MAKEDEV -u "$@" 2>/dev/null
;;
esac
| true |
3839781bbaaaca45ae47341ce97a2021aa7456c4 | Shell | darcyg/mqtt-executor | /startup/openwrt/mqtt-executor | UTF-8 | 232 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/sh /etc/rc.common
# Example script
# Copyright (C) 2007 OpenWrt.org
START=99
STOP=15
start() {
/path/to/mqtt-executor -broker tcp://<mqtt-broker>:1883 -config /path/to/config.json
}
stop() {
killall mqtt-executor
} | true |
d3412cf15e0fd4314c48e26f8fd26da4c3fef56b | Shell | richie5um/TextBar-Recipes | /Scripts/multitextbar.sh | UTF-8 | 2,272 | 3.6875 | 4 | [] | no_license | #!/bin/bash
# some little scripts to use with "TextBar - Mac App" http://www.richsomerfield.com/apps/
while [[ $# -gt 0 ]] && [[ ."$1" = .--* ]] ;
do
opt="$1";
shift; #expose next argument
case "$opt" in
"--" ) break 2;;
"--vpn" )
VPN="$1"; shift;;
"--vpn="* ... | true |
c6f10a9ba097aecbb7d3f4b3a50d11ef92363a6f | Shell | gnoliyil/fuchsia | /scripts/gce/create-fuchsia-image.sh | UTF-8 | 1,216 | 3.375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if [[ -z $FUCHSIA_GCE_PROJECT ]]; then
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/env.sh
fi
diskimage="$(fx-command... | true |
dab850c565f980e1ce4c52ea6d6b49160e16e2dc | Shell | akhepcat/Miscellaneous | /jws | UTF-8 | 1,060 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# (c) 2020 Leif Sawyer
# License: GPL 3.0 (see https://github.com/akhepcat/)
# Permanent home: https://github.com/akhepcat/Miscellaneous/
# Direct download: https://raw.githubusercontent.com/akhepcat/Miscellaneous/master/jws
#
usage() {
echo "$(cd $HOME/jnlps/; ls *.jnlp | sed 's/\.jnlp//g')"
exit 1
... | true |
310cbfca10bfef72059204c25aafbb87ddf7dd5a | Shell | mawalu/android-qemu-mitm | /lib/entrypoint.sh | UTF-8 | 1,050 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
HOST_TAP_IP="192.168.1.1"
VM_IP="192.168.1.128"
VM_DISK="android.img"
sysctl -w net.ipv4.ip_forward=1
echo $$ > ns-pid
mount -t tmpfs tmpfs /run
echo "Creating VM tap device"
ip tuntap add dev tap-vm mode tap
ip addr add dev tap-vm "$HOST_TAP_IP/24"
ip addr add dev lo "127.0.0.1/8"
ip link set dev tap-vm ... | true |
d292f486c7441a617309a4c553623148b747ac69 | Shell | CarbsLinux/repository | /extra/readline/build | UTF-8 | 348 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/sh -e
export CFLAGS="$CFLAGS -fPIC"
# I am really tired of how bash and readline handles patches.
rl_maj=${2%%.*} rl_min=${2%.p*} rl_min=${rl_min#"$rl_maj."}
for patch in "readline$rl_maj$rl_min-"0??; do
[ -f "$patch" ] && patch -p0 < "$patch"
done
./configure \
--prefix=/usr
make SHLIB_LIBS=-lncurse... | true |
d2d1d92f6dba273f476e4ec5cd47fee7707b8861 | Shell | takaaki-kit/dotfiles | /.zshrc | UTF-8 | 3,697 | 3.078125 | 3 | [] | no_license | # Created by newuser for 5.2
# 環境変数
export LANG=ja_JP.UTF-8
# Zsh ヒストリの設定
HISTFILE=~/.zsh_history
HISTSIZE=1000000
SAVEHIST=1000000
########################################
# Zsh 補完
#for zsh-completions
fpath=(/usr/local/share/zsh-completions $fpath)
# 補完機能を有効にする
autoload -Uz compinit
compinit -u
########... | true |
0da6357acddcdd1bc14e30a04d1cf3cde3be4f76 | Shell | sistematico/majestic | /docker/docker/run.sh | UTF-8 | 2,782 | 3.375 | 3 | [] | no_license | #!/bin/sh
# bash < <(curl -s -L https://git.io/JR4RO?v=1)
DOCKER_PATH="$HOME/docker"
TEMP_PATH="/tmp/docker"
PROJECT_PATH="$HOME/github"
PROJECT_NAME="laravel"
function progress() {
pid=$!; spin='-\|/'; i=0
while kill -0 $pid 2>/dev/null
do
i=$(( (i+1) %4 ))
printf "\r\e[1;31m[\e[1;32m ${... | true |
eeb9bee5f8235ad233d7e90f1824cd7762ea0f4b | Shell | ryankurte/authdog-example | /gencerts.sh | UTF-8 | 948 | 3.84375 | 4 | [] | no_license |
#!/bin/bash
set -e
if [ "$#" -ne 3 ] && [ "$#" -ne 4 ]; then
echo "Usage: $0 CA NAME ORG"
echo "CA - name of fake CA"
echo "NAME - name of fake client"
echo "ORG - organisation for both"
echo "[DIR] - directory for cert output"
exit
fi
CA=$1
NAME=$2
ORG=$3
if [ -z "$4" ]; then
DIR=./
e... | true |
449bc9fef9926149ef9c383dfd4d9306a2411df0 | Shell | colaplate/ofxLiveSet | /scripts/install.sh | UTF-8 | 895 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# TODO: automatically get os
echo "What OS are you using? (0): OSX, (1): LINUX, (any other): WINDOWS"
read -r OS
if [ $OS = 0 ]
then
curl -O https://openframeworks.cc/versions/v0.10.1/of_v0.10.1_osx_release.zip
unzip -a -qq of_v0.10.1_osx_release.zip
rm of_v0.10.1_osx_release.zip
cd of_v0.10.... | true |
f0ace7304a0cde0cef3887a53a2667934e9eeee9 | Shell | ethen8181/programming | /servers.sh | UTF-8 | 5,045 | 3.625 | 4 | [] | no_license |
## Steps to host on our own server
The downside of heroku is that we don't have full control over the server (the computer that is hosting our application), the way that it is served or even caching. Thus, if we wish to have control over these things to tune performance, and are willing to do some extra work than hos... | true |
3b318ba76cd23499a5635cf6abf7c212fa515674 | Shell | erenozgur98/shell-script | /comparison.sh | UTF-8 | 522 | 3.59375 | 4 | [] | no_license | #! /usr/bin/bash
########
# val1 -eq val2 returns true if the values are equal
# val1 -ne val2 returns true if the values are not equal
# val1 -gt val2 returns true if val1 is greater than val2
# val1 -ge val2 returns true if val1 is greater or equal to val2
# val1 -lt val2 returns true if val1 is less than val2
# val... | true |
b9b479eaf93396e750a50ca5c06197f8276bb64f | Shell | lgabster/macOS-install | /brew.sh | UTF-8 | 1,824 | 2.625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` t... | true |
ed6632dd3093e43ba99dca65a73ec74900bb8bf2 | Shell | rehsack/meta-jens | /recipes-extended/delivery-reset/delivery-reset/delivery-reset.startup | UTF-8 | 792 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
### BEGIN INIT INFO
# Provides: delivery reset
# Required-Start: $local_fs
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Perform delivery reset based on flag files on external medium
### END INIT INFO
set -x
CLEANUP_SPEC="/data/.shadow/.etc/@CLEANUP_SPEC@"
. @LI... | true |
78496fbe40b06caee3a431c646ccf3f88e7bb897 | Shell | lsimmons2/dotfiles | /thinkpad/setup.sh | UTF-8 | 5,426 | 2.953125 | 3 | [] | no_license | #!/bin/bash
##################################
############ PACKAGES ############
##################################
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install vim-gtk\
htop\
git\
terminator\
curl\
python-pip\
mysql-server\
libmysqlclient-dev\
build-essential\
libssl-dev\
libffi-dev\
... | true |
fcd20dc1fcefc03b672d8d06a9115bf0294ad490 | Shell | zbendell/COMP2101 | /bash/Zachswelcome-message.sh | UTF-8 | 1,549 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#
# This script produces a dynamic welcome message
# it should look like
# Welcome to planet hostname, title name!
# Task 1: Use the variable $USER instead of the myname variable to get your name
# Task 2: Dynamically generate the value for your hostname variable using the hostname command - e.g. $(hostn... | true |
719000843dda01662c150585fa9fbaa7a38dcdf1 | Shell | UpygeoSiegel/dotfiles | /configure.sh | UTF-8 | 1,405 | 3.359375 | 3 | [] | no_license | #!/bin/bash
## Script works best when directory is cloned in home not desktop
## IMPORTANT ensure appropriate packages are installed for terminal : neofetch, powerline shell, xcape before using script!
# BASH profiles
echo "Copying bash profiles..."
\cp .bashrc ~/
\cp .profile ~/
\cp .bash_profile ~/
echo "bash done... | true |
b4c269df2fc6714ec5bcc166cdefcb193f8f559e | Shell | unsound/hfsexplorer | /buildlauncher.sh | UTF-8 | 1,431 | 3.640625 | 4 | [] | no_license | #!/bin/bash
TOOLCHAIN_PREFIX="i686-w64-mingw32-"
LAUNCHER_SRC="`pwd`/src/win32/launcher"
OUTDIR="`pwd`/dist/bin"
OUTFILE="hfsexplorer.exe"
BUILD_DIR="`pwd`/build.~"
error () {
echo There were errors...
exit 1
}
if test -z "$JAVA_HOME"; then
echo "Please set the JAVA_HOME environment variable before execu... | true |
805e61b833d2e0fb04a316dd7f24f4b503302c6e | Shell | pandafeeder/gds_txt_converter | /testdata/test.sh | UTF-8 | 288 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
for file in `ls *.gds`; do
echo "testing $file"
../build/gds2txt -g -i $file -o $file.txt
../build/gds2txt -t -i $file.txt -o $file.gds
diff $file $file.gds
if [ $? -ne 0 ]; then
echo "$file failed"
else
echo "$file passed"
fi
rm $file.gds $file.txt
done
| true |
3550c20ecd294a4441605d9e09417e1cb3f7576e | Shell | deontw/repo | /update.sh | UTF-8 | 949 | 3.125 | 3 | [] | no_license | #!/bin/bash
rm Packages Packages.bz2 Packages.xz Packages.zst Release Release.gpg
echo "[Repository] Generating Packages..."
apt-ftparchive packages ./debs > Packages
zstd -q -c19 Packages > Packages.zst
xz -c9 Packages > Packages.xz
bzip2 -c9 Packages > Packages.bz2
echo "[Repository] Generating Release..."
apt-ftp... | true |
5e461f846394e4a3db34af704fba8e45438dd718 | Shell | sillsdev/wesay | /build/mono/wesay | UTF-8 | 1,304 | 3.359375 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
cd /usr/lib/wesay
RUNMODE=INSTALLED
. ./environ
cd "$OLDPWD"
DEFAULT_WEB=`xdg-settings get default-web-browser`
DEFAULT_FILEWEB=`xdg-settings get default-url-scheme-handler file`
if [ "$DEFAULT_WEB" != "$DEFAULT_WEB" ]
then
xdg-settings set default-url-scheme-handler file "$DEFAULT_WEB"
fi
PACKAGE_VERSI... | true |
ab02d56b2a5b1083de215bb0a487f94d99ea8b5b | Shell | stjordanis/hyperbolic_hierarchical_clustering | /bin/launch_inf.sh | UTF-8 | 602 | 2.8125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -exu
config=$1
partition=$2
mem=${3:-12000}
EMAIL=None
TIME=`(date +%Y-%m-%d-%H-%M-%S)`
threads=`cat $config | jq .threads`
export MKL_NUM_THREADS=$threads
export OPENBLAS_NUM_THREADS=$threads
export OMP_NUM_THREADS=$threads
log_dir=logs/inf/$TIME
mkdir -p $log_dir
sbatch -J inf-$TIME \... | true |
c2ee46f545fe9fb1e7b1c2a4140f6c7375d09011 | Shell | jason420247/lge_judyln_dump | /vendor/bin/superset_op_delete.sh | UTF-8 | 2,879 | 3.25 | 3 | [] | no_license | #!/vendor/bin/sh
DELEGATE_NTCODE=`getprop persist.sys.ntcode`
SBP_VERSION=`getprop ro.build.sbp.version`
DEVICE_FINGERPRINT=`getprop ro.lge.fingerprint_sensor`
DEVICE_GYRO=`getprop ro.lge.gyro`
DEVICE_NFC=`getprop lge.nfc.vendor`
echo "[SBP] SUPERSET OP DELETE"
echo "[SBP] persist.sys.ntcode: ${DELEGATE_NTCODE}"
echo... | true |
63ba1dedde64c83f82a2f1c54b501dc9bd99a12e | Shell | hringriin/dotfiles | /bash/subnet.zsh | UTF-8 | 1,736 | 4.0625 | 4 | [] | no_license | #!/bin/zsh
# subnet.zsh
#
# select one of the listed devices to check all domain names of hosts in your
# current network
echo -e "What is your device? Enter the number only!"
devices=($(ip addr | grep -E "^[0-9]+:" | awk '{print $1 $2}' | sed -e 's/:$//' | tr " " "\n"))
for i in ${devices[@]} ; do
echo $i
done
... | true |
137c0e24493f03a2ec2d128af283532fc52a2cd0 | Shell | btubby/dotfiles | /profiles/personal/configurations/zshrc | UTF-8 | 4,626 | 3 | 3 | [] | no_license | # Source secrets file which holds environment
# variables for things such as tokens
source "$HOME/.secrets"
#
# ZShell
#
ZSH="$HOME/.oh-my-zsh"
ZSH_THEME='robbyrussell'
plugins=(git)
export PATH="/usr/local/bin:$PATH"
source "$ZSH/oh-my-zsh.sh"
# Set VIM as default editor
export VISUAL=vim
export EDITOR="${VISUAL... | true |
c90bf2d781e0d60b7d42164c83918082da2e4952 | Shell | igroff/bottle | /difftest/expected/message_with_apostrophe | UTF-8 | 1,036 | 3.453125 | 3 | [] | no_license | #! /usr/bin/env bash
set -e
CURL_OUTPUT_FILE=$(mktemp)
trap "rm -f ${CURL_OUTPUT_FILE}" EXIT
HTTP_STATUS="$(curl --connect-timeout 1 -s -S "http://services.glgresearch.com/notify/ping/receive" -H 'Content-Type: application/json' --data-binary '{"source":"bottle/ping", "tasks":"I'\''m"}' --write-out '%{http_code}' -o "$... | true |
ed84cafcc5aceafd0b4447ea368d95f5847dd159 | Shell | trocolit2/ps4eye | /root/install.sh | UTF-8 | 8,704 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# EN -> ingles.
# PT -> português.
# EN ->
## Script to automatic install ps4eye driver.
## This code is based on https://github.com/ps4eye/ps4eye
# PT ->
## Script para instalar o driver da ps4eye automaticamente.
## O código é baseado em https://github.com/ps4eye/ps4eye
# EN ->
## This script was teste... | true |
6a1f8e42152574f1c4652b8e8a3b56b5d925e251 | Shell | RyanGao67/Shell_Script | /demos/mytest3.sh | UTF-8 | 1,173 | 3.75 | 4 | [] | no_license | #Bash 4 natively supports this feature. Make sure your script's
# hashbang is #!/usr/bin/env bash or #!/bin/bash so you don't end up using sh.
# Make sure you're either executing your script directly, or execute script
# with bash script. (Not actually executing a Bash script with Bash does
# happen, and will be really... | true |
6305eebf51859eb8ce4e3d2e34c13e7981c90682 | Shell | beginho/nrs | /nginx_ubuntu.sh | UTF-8 | 1,064 | 2.71875 | 3 | [] | no_license | #!/bin/bash
sudo apt-get update -y
sudo apt-get install build-essential libpcre3 git libpcre3-dev libssl-dev software-properties-common -y
iptables -I INPUT -p tcp --dport 8081 -j ACCEPT
iptables -I INPUT -p tcp --dport 1935 -j ACCEPT
useradd -r nginx
sudo mkdir ~/working
cd ~/working
wget http://nginx.org/download/ngi... | true |
b2459cdc8e4d0d3fd1d31dd00cfb6463455e3580 | Shell | CristescuLab/Scripts | /run_taxass_workflow.sh | UTF-8 | 8,190 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
# To run this script:
# bash run_taxass_workflow.sh fastafile otutable prefix percentid database cpus
fasta=$1
otu_table=$2
prefix=$3
pid=$4
db=$5 #Greengenes or SILVAv132
cpus=$6
module load nixpkgs/16.09 gcc/7.3.0 boost/1.68.0 mothur/1.41.3 blast+/2.9.0
module load scipy-stack/2018b r-bundle-bioco... | true |
6c066eb7c62387c645383de113519123d1e01827 | Shell | overtherain/scriptfile | /sh/apt-fast.sh | UTF-8 | 2,006 | 3.78125 | 4 | [
"MIT"
] | permissive | # !/bin/sh
# apt-fast v0.03 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source
# if you do anything cool with it, let me know so I can publish or host it for you
# contact me at admin@mattparnell.com
# Special thanks
# Travis/travisn000 - support for complex apt-get commands
# Allan Hoffmeiste... | true |
81461429f284877a07ee3352d00d0f96cd8d4a04 | Shell | stanleyhon/comp-sixsixsevenone | /rsg/run_tests.sh | UTF-8 | 334 | 3.3125 | 3 | [] | no_license | #!/bin/sh
FILES=grammars/*
for f in $FILES
do
echo "Running $f..."
./rsg "$f" > myOutput.txt
./rsg_ref "$f" > refOutput.txt
if diff -q myOutput.txt refOutput.txt; then
echo "Passed."
else
echo "FAILED!."
diff myOutput.txt refOutput.txt
fi
rm myOutput.txt
rm refOu... | true |
f0c19bdc5e5167b22081b7a27a006854bab1dd08 | Shell | liuyuns/consul-release | /src/acceptance-tests/scripts/test | UTF-8 | 771 | 3.34375 | 3 | [] | no_license | #!/bin/bash -eux
function main() {
local scripts_dir
scripts_dir=$(cd "$(dirname "${0}")" && pwd)
local root_dir
root_dir=$(cd "${scripts_dir}/.." && pwd)
export GO15VENDOREXPERIMENT=1
export PATH="${root_dir}/bin:${PATH}"
install_ginkgo "${root_dir}"
pushd "${root_dir}" > /dev/null
ginkgo \
-r \
-r... | true |
64051a29786718834c690bd8d8b2fd7ac2890a09 | Shell | TU-Berlin-DIMA/OpenCL-SIMD-hashing | /phi-intrinsics/run-phi-instrinsics.sh | UTF-8 | 1,583 | 3.453125 | 3 | [] | no_license | #!/bin/bash
threads=60
outer_size=245760000
selectivity=0.9
load_factor=0.5
echo "Threads:" $threads
echo "Outer Table Size:" $outer_size
echo "Selectivity:" $selectivity
echo "Load Factor:" $load_factor
make > /dev/null
probe_test() {
echo ""
echo "Phi Intrinsics Probe"
rm -f phi-intrinsics-probe-results.csv... | true |
3c20379a4898d9a2e5ba102f86ca8f1bcc221254 | Shell | DKunin/dotfiles | /completions/avito | UTF-8 | 391 | 3 | 3 | [] | no_license | #!/bin/bash
_avito()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="attach clean dbdeploy delete exec logs ngrok problems provision start stop tpl unit version"
if [[ ${cur} == * ]] ; then
COMPREPLY=( $(compgen -W "${opts}" $... | true |
636810fb7b53578bc53da44aed88eaaff1e526c9 | Shell | grosser/ruby-cli-daemon | /bin/ruby-cli-daemon.sh | UTF-8 | 2,508 | 3.875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
set -e # add "x" here to debug
# except for development we run from a symlink, make development and `gem open` easy
# NOTE: cannot use realpath since that is only available when coreutils is installed
real=$(readlink $0) || real=$0
lib=$(dirname $real)/../lib
case "$1" in
stop)
# Not ruby-cli-daem... | true |
99715e3b566777168065357113bf7422c21d9527 | Shell | danielloader/dotfiles | /home/.bashrc | UTF-8 | 9,067 | 3.359375 | 3 | [] | no_license | # If not running interactively, don't do anything
[[ $- == *i* ]] || return
# environment variables
# Locally built binaries when unable to sudo
export PATH="$PATH:$HOME/.local/bin/"
export PATH="$PATH:$HOME/.local/scripts/"
export TESTSSL_INSTALL_DIR="$HOME/.local/scripts"
# Source ruby scripts
if [ -x "$(command ... | true |
82b7e98cbd07ad2ff7f59e333b927142c3e7ef74 | Shell | abnerlee/jsprettify | /bookmarklet.sh | UTF-8 | 427 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
[ -f build/bookmarklet.js ] || make build/bookmarklet.js
perl make_bookmarklet.pl build/bookmarklet.js > bookmarklet-tmp.js 2>/dev/null
bm=`head -n1 bookmarklet-tmp.js | cut -c4-`
cat <<EOF >gadgets/bookmarklet.html
<!doctype html>
<style type="text/css">body,html{padding:0;margin:0;font-size:18px;}</style... | true |
fdbb5b7223e0062de4372d0d3d60606c0c82ba7b | Shell | delkyd/alfheim_linux-PKGBUILDS | /rdkit-python2/PKGBUILD | UTF-8 | 1,238 | 2.609375 | 3 | [] | no_license | # Maintainer: Alexander Minges <alexander.minges@gmail.com>
# Contributor: Samo Turk <samo.turk@gmail.com>
pkgname=rdkit-python2
_pkgname=RDKit
pkgver=2017_03_2
pkgrel=2
pkgdesc="RDKit - A collection of cheminformatics and machine-learning software written in C++ and Python."
arch=("i686" "x86_64" "armv7h")
url="http:/... | true |
dc709628c08ab36a72a4c227eed5258fcb460689 | Shell | fwup-home/fwup | /tests/078_partial_mbr2.test | UTF-8 | 1,959 | 3.609375 | 4 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
#
# Test writing an MBR that has empty entries with offsets. This
# is not a recommended usage of fwup. Please don't try to store
# extra data in the MBR this way. See fwup's uboot environment
# options for storing metadata if you want one alternative.
#
. "$(cd "$(dirname "$0")" && pwd)/common.sh"
cat >$C... | true |
0c9558dee45876efe4921f5ef328cdc58852e362 | Shell | Clewsy/scripts | /archive/grab.sh | UTF-8 | 3,288 | 4.34375 | 4 | [] | no_license | #!/bin/bash
#Default settings
DEFAULT_SERVER=b4t.site
DEFAULT_USER=b4t
DEFAULT_LOCAL_FILE=. #i.e. keep the same location/name as the remote file
DEFAULT_REMOTE_FILE=~/ #i.e. everything in the home folder
#Codes for coloured text
RED="\033[31m"
GREEN="\033[32m"
RESET="\033[0m"
#Use rsync to grab a file from a remote ... | true |
750253286b4efc123d8a265797ff1319988bda43 | Shell | openshift/node-problem-detector-operator | /assets/plugins/kubelet-health.sh | UTF-8 | 151 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -eou pipefail
data=$(curl \
-s \
http://127.0.0.1:10248/healthz
)
if [[ "$data" != "ok" ]]; then
exit 20
fi
exit 0 | true |
6030ddf3123fc36ab3d8b6bf59371b0d7aabb10a | Shell | moonseer/open-ondemand | /head-setup.sh | UTF-8 | 763 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# Disable SELinux
setenforce 0
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
# Add user to system and apache basic auth
groupadd ood
useradd --create-home --gid ood ood
echo -n "ood" | passwd --stdin ood
sed -i 's/^PasswordA... | true |
7726ba21f53a50e38c50302cf8bbe7ccb2302fb5 | Shell | markzz/abs | /extra/wv/PKGBUILD | UTF-8 | 766 | 2.53125 | 3 | [] | no_license | # $Id: PKGBUILD 184449 2013-05-06 19:40:11Z foutrelis $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=wv
pkgver=1.2.9
pkgrel=5
pkgdesc="MSWord library can load and parse Word 2000, 97, 95 and 6 file formats"
arch=('i386' 'amd64')
url="http://sourceforge.net/pro... | true |
4ae905954c61862c22ecce602dc54ed79e7f04c6 | Shell | vslakshmi03/Tensforflow_serve | /auto.sh | UTF-8 | 1,408 | 3.9375 | 4 | [] | no_license | #!/bin/bash
set -eu
EPOCH="$(date +%s)"
# Logging functions
_info () { echo -e "\n\033[1;92mINFO: ${1}\033[0m\n"; }
_err () { echo -e "\n\033[1;91mERROR: ${1}\033[0m\n"; }
# Cleanup function
_cleanup () {
docker rmi tensflow_$EPOCH
rm -f ./Dockerfile_model
echo
}
# Check if root or sudo
[[ "$EUID" -ne 0 ]] &... | true |
d30733925fb12deb52380cd576af952a7d7389f9 | Shell | freebsd/freebsd-ports | /ports-mgmt/portsearch/pkg-install | UTF-8 | 246 | 3.0625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
if [ "${2}" = "POST-INSTALL" ] ; then
db_prefix="/var/db/portsearch"
arch=`uname -m`
db_old="${db_prefix}/1-${arch}"
if [ -d "${db_old}" ] ; then
rel=`uname -r`
mv -f "${db_old}" "${db_prefix}/${rel%%.*}-${arch}"
fi
fi
# EOF
| true |
9fce447b2b181e15aa39949f890a306de52ad4fe | Shell | nvllsvm/dotfiles | /scripts/terminal/exit-code | UTF-8 | 881 | 3.796875 | 4 | [] | no_license | #!/usr/bin/env bash
GREEN='\033[1;32m'
RED='\033[1;31m'
RESET_COLOR='\033[0m'
column_num() {
exec < /dev/tty
oldstty=$(stty -g)
stty raw -echo min 0
# on my system, the following line can be replaced by the line below it
echo -en "\033[6n" > /dev/tty
# tput u7 > /dev/tty # when TERM=xterm (a... | true |
14ae2ad249a07d0d5a3ad89ec7e7422b99559c0e | Shell | cathleya/shellexample | /batch/echo/seed.sh | UTF-8 | 787 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function random_str(){
MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+="
while [ "${n:=1}" -le "$1" ]
do
PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
let n+=1
done
echo "$PASS"
}
function random_number(){
min=$1
max=$(($2-$min+1))
... | true |
381bae613e993b87a42ad466a73b9cd90bbe34b8 | Shell | yitaozh/Cab | /record.sh | UTF-8 | 399 | 2.96875 | 3 | [] | no_license | file="ruleset/$1rulesFile"
sudo ovs-ofctl del-flows br0
sudo ovs-ofctl add-flows br0 $file
echo "Ready to record, start sending packets in 10s"
sleep 10
printf "%-10s %s\n" "Index" "Number" | tee "result/$1result.txt"
for i in {1..20}
do
num="$(sudo ovs-dpctl dump-flows system@ovs-system | grep recirc_id | wc -l)"
p... | true |
0d65647cd6097e93433ff41270a404d6b8f5609d | Shell | lovefcaaa/snk.dev-assistant | /data/snippets/github.com/sahilm/go-tour/scripts/cover.sh | UTF-8 | 731 | 3.75 | 4 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
# The coverage tool cannot handle multiple packages see (https://github.com/golang/go/issues/6909)
# This script is a workaround that runs coverage for each package and then unifies it
set -e
WORKDIR=coverage
PROFILE="$WORKDIR/cover.out"
MODE=count
test_and_cover() {
rm -rf "$WORKDIR"
mkd... | true |
6d15991c591287c484c1a074200450ea9ec24ef3 | Shell | sem-hub/nd6-watcher | /nd6-watcher.sh | UTF-8 | 352 | 2.96875 | 3 | [] | no_license | #!/bin/sh
# PROVIDE: nd6-watcher
# REQUIRE: NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name=nd6_watcher
rcvar=`set_rcvar`
command=/usr/local/sbin/nd6-watcher
pidfile=/var/run/nd6-watcher.pid
stop_postcmd=stop_postcmd
stop_postcmd()
{
rm -f $pidfile
}
nd6_watcher_enable=${nd6_watcher_enable:-"NO"}
load_rc_con... | true |
c781d524305782dc6cb59f5a605b602bd438afe2 | Shell | xptsp/modify_ubuntu_kit | /files/restart_audio.sh | UTF-8 | 262 | 2.5625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
case "${1}" in
resume|thaw)
for dev in $(lspci | grep -i "audio" | head -1 | cut -d" " -f 1); do
echo 1 > /sys/bus/pci/devices/0000:${dev}/remove
done
sleep 1
echo 1 > /sys/bus/pci/rescan
;;
esac
| true |
63981458a13873ae89c58c15e80309439cd714eb | Shell | dhootha/KaarPux-1 | /packages/i/iptables.files/iptables_disable.sh | UTF-8 | 577 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
read -p "Do you really want to disable the iptables FireWall (yes/no)? " yn
case $yn in
[Yy][eE][sS]) break;;
*) echo "OK, doing nothing."; exit 1;;
esac
for T in $(cat /proc/net/ip_tables_names); do
echo "Updating policy of chains in table [$T] to [ACCEPT]"
for C in $(iptables -t $T -L | grep "^Chain"... | true |
ea3cb2a710f1d2178977034cd0d834d0ff200cfd | Shell | batcom/lnmp2.6 | /CentOS.sh | UTF-8 | 279 | 2.96875 | 3 | [] | no_license | #!/bin/sh
#auto_start
system=`getconf LONG_BIT`
if [ $system = "32" ] ; then
sh Script/CentOS_5_6_32.sh 2> /root/web-install.log
elif [ $system = "64" ] ; then
sh Script/CentOS_5_6_7_64.sh 2> /root/web-install.log
else
echo "This operating system is not supported"
fi
#auto_end | true |
b840fd08ce2e4a66c12d3dd7f24c3998053a5389 | Shell | ilventu/aur-mirror | /libunity/PKGBUILD | UTF-8 | 823 | 2.578125 | 3 | [] | no_license | # Maintainer: György Balló <ballogy@freestart.hu>
pkgname=libunity
pkgver=5.2.0
pkgrel=1
pkgdesc="A library for instrumenting and integrating with all aspects of the Unity shell"
arch=('i686' 'x86_64')
url="https://launchpad.net/libunity"
license=('LGPL')
depends=('libgee' 'dee' 'libdbusmenu' 'dbus-glib')
makedepends=(... | true |
713dc89cd6694a8d917782d058a3475a730bd817 | Shell | perryflynn/zfs-autosnapshot-rotation | /cron.sh | UTF-8 | 2,068 | 4.21875 | 4 | [] | no_license | #!/bin/bash
#
# Cron helper script
# Modify the properties and the switch case as you need
# Example:
#
# m h dom mon dow user command
# 12 2 1 * * root /media/files/admin/zfstools/cron.sh --mode monthly
#
#
# Properties
#
# Prefix for volume names - see snap function
ZFSPREFIX="myraidz/"
# zfsautosnap script
BIN=... | true |
02f1e5b69580fc7fa9af7848afe5a1025be93d82 | Shell | zzzpotato/Snowgem-Masternode-Lite | /setup.sh | UTF-8 | 5,613 | 3.390625 | 3 | [] | no_license | #!/bin/bash
### Check user
if [ "$EUID" -eq 0 ]
then
echo -e "Warning: You should not run this as root! Create a new user with sudo permissions!\nThis can be done with (replace username with an actual username such as node):\nadduser username\nusermod -aG sudo username\nsu username\ncd ~\n\nYou will be in a ... | true |
604834e66c49d05092b16449adf09c2c9b526b77 | Shell | WaterNS/.dotfiles | /posixshells/posix_functions.sh | UTF-8 | 22,226 | 4.21875 | 4 | [] | no_license | #!/bin/sh
fetchGitDefaultBranch() {
if [ "$#" -ne 1 ]; then
echo "Usage: fetchGitDefaultBranch /path/to/repo"
return 1
fi
# Ignore git config and force git output in English to make our work easier
git_eng="env LANG=C GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG=/dev/null HOME=/dev/null git"
if [ -d "$1" ]; th... | true |
d6ceebf81dbeafebe6105c7d5a2571e9c8257fb2 | Shell | onetwopunch/google-private-vault | /scripts/vault-startup.sh.tpl | UTF-8 | 6,617 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
set -xe
set -o pipefail
# Only run the script once
if [ -f ~/.startup-script-complete ]; then
echo "Startup script already ran, exiting"
exit 0
fi
# Data
LOCAL_IP="$(curl -sf -H "Metadata-Flavor: Google" http://metadata/computeMetadata/v1/instance/network-interfaces/0/ip)"
# Deps
apt-get upd... | true |
3e3e6d9850b156b0f0806659f4c2930f276aa005 | Shell | sPHENIX-Collaboration/analysis | /EMCal-position-dependent-calibration/scripts/build_package.sh | UTF-8 | 471 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env bash
rm -rf src/g4eval
cd /gpfs/mnt/gpfs02/sphenix/user/anarde/sPHENIX/coresoftware
git pull
cd -
cp -r /gpfs/mnt/gpfs02/sphenix/user/anarde/sPHENIX/coresoftware/simulation/g4simulation/g4eval/ src
cp src/CaloEvaluator.cc src/CaloEvaluator.h src/g4eval
rm -rf build
mkdir -p build
cd build
echo "Runn... | true |
190e10c7a9e2e218b3d9bb740f204dfba3baa034 | Shell | adi93/server | /run_migration.sh | UTF-8 | 956 | 3.890625 | 4 | [] | no_license | sqlFile=$1
dbName="./task.db"
echo "sqlFile : $sqlFile"
if [ -z "$1" ]; then
echo "Require a sql file"
exit 1
fi
## ensure that file exists
if ! [ -e $dbName ]
then
touch $dbName
fi
## ensure that table exists
x=$(sqlite3 ${dbName} ".table migration")
if [ -z $x ]
then
echo "Migration table not found, adding it..... | true |
bc5ac6fb74b22b33429ed52421796c8dcf06a849 | Shell | HOL-Theorem-Prover/HOL | /examples/acl2/.acl2holrc.bash | UTF-8 | 795 | 2.796875 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | # Editable variables (with some attempt to determine them
# automatically for Matt Kaufmann):
hostname=`hostname`
if [ "$hostname" = "kala.cl.cam.ac.uk" ] ; then \
export ACL2_SRC=/home/mk606/acl2/v4-0/acl2-sources ; \
export ACL2=${ACL2_SRC}/saved_acl2 ; \
export ACL2_HOL=/home/mk606/hol/HOL/examples/acl2
elif [ ... | true |
f9e2981f28bc3b66f5ba549a86b7f191d0cb0756 | Shell | strigazi/athena | /MuonSpectrometer/MuonValidation/MuonRecValidation/MuonRecRTT/test/test_Run3_asymmetric_fullChain.sh | UTF-8 | 4,827 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# art-description: Test the asymmetric Run3 layout in simulation/digitisation/reconstruction
#
# art-type: grid
# art-include: master/Athena
# art-include: 21.3/Athena
# art-include: 21.9/Athena
# art-output: OUT_HITS.root
# art-output: OUT_RDO.root
# art-output: NSWPRDValAlg.digi.ntuple.root
# art-output: ... | true |
95cd68a4d212b55d039bdbed3dd5ddf21f0a15d9 | Shell | psunkari/flocked-in | /scripts/deployment/deploy-app.sh | UTF-8 | 4,807 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#
# Deploy application to the cloud.
# Assumes a lot of things - please test with a staging system
#
set -e
#
# Repository settings
#
repo_url='ssh://hg@one.synovel.pvt/social'
repo_revision='default'
#
# List of stylesheets and scripts that need bundling
#
social_css='rsrcs/css/social.css:rsrcs/css/mes... | true |
92abe910afa35c5d8126e6d0dbbeb85ac72181f0 | Shell | pisanix2/poc-multi-tenancy | /devops/k8s/script/template/generate.sh | UTF-8 | 456 | 2.65625 | 3 | [] | no_license | # call: bash generate.sh tenancy-one 80
declare tenancy=$1
declare port=$2
mkdir ./generated/$tenancy
TENANCY=$tenancy bash ./model/namespace.sh > ./generated/$tenancy/namespace.yml
TENANCY=$tenancy bash ./model/ingress.sh > ./generated/$tenancy/ingress.yml
TENANCY=$tenancy PORT=$port bash ./model/service.sh > ./gen... | true |
dcc490d7f24528129fea6674f47aaf4e466d20f5 | Shell | pb305164/vertex-label-oracles-implementation | /run_test.sh | UTF-8 | 1,014 | 2.875 | 3 | [] | no_license | #!/bin/bash
city=$1
if [ "$2" != nogen ]; then
cd tests
#wget http://download.bbbike.org/osm/bbbike/$city/$city.osm.gz
#gunzip $city.osm.gz
../gen-graph/gen-graph $city.osm > $city.graph
../oracles/src/osrm/build/osrm-extract -p ../oracles/src/osrm/profiles/profile.lua Graph_$city.osm
../oracles/src/osrm/build/osrm-c... | true |
d3f3357763e744a9f428b443ec2f47de8f306f45 | Shell | guizmaii/simple-benchs | /boot-cluster.sh | UTF-8 | 315 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# https://codewithhugo.com/just-enough-bash-to-be-dangerous/
set -e
set -o pipefail
set -x
docker-compose down
rm -rf /tmp/kafka-streams/
docker system prune --volumes -f
# https://stackoverflow.com/a/39296583
if [[ "${CI}" ]]; then
docker-compose up > /dev/null
else
docker-compose up
fi | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.