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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
77f5be929789fde610e0058c7aa843fd1e3847c2 | Shell | veera-samy/CodeDeploy_SampleApp_Linux | /scripts/test.sh | UTF-8 | 191 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
time=3
echo "TEST: I will now sleep ${time}s to pretend I'm doing something useful!"
sleep ${time}
echo "Done sleeping, resuming!"
echo "This is the ENV for this script!"
env
| true |
df6e1b505fc67766d913ef4648f4dae32f01335f | Shell | daleha/install-scripts | /legacyscripts/birchhome.sh | UTF-8 | 3,255 | 3.375 | 3 | [] | no_license | #!/bin/sh
if [ -f "../local/admin/BIRCH.properties" ]
then
BIRCH=`grep BirchProps.homedir ../local/admin/BIRCH.properties |cut -f2 -d"="`
else # Deprecated
BIRCH=`cat ../local/admin/birchdir.param`
fi
# Make sure that this script doesn't run in BIRCHDEV, which
# would clobber the master copy of BIR... | true |
0b114b0099958377e815202cc6a6534d6535594b | Shell | crcerror/change_es_systems | /change_es_systems.sh | UTF-8 | 4,008 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# change_es_systems.sh
#############
# This script lets you change the es_systems.cfg file used to display systems using your controllers.
#
# v3
# TMNTturtlguy - June 2017
#
# place script in /home/pi/RetroPie/retropiemenu/
# In order to run the script you must create the following folders:
# /opt/retro... | true |
868c98cc50467e1851529b82e495e74529799716 | Shell | zhixingfeng/shell | /encode2var | UTF-8 | 350 | 3.078125 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -ne 2 ]; then
echo "encode2var encodefile varfile"
exit 0
fi
awk '{
for (i=1;i<=NF;i++){
if ($i%4==0) cur_base = "A";
if ($i%4==1) cur_base = "C";
if ($i%4==2) cur_base = "G";
if ($i%4==3) cur_base = "T";
cur_line = int($i/4)"\t"cur_base"\t"$i"\t0\t0\t0\t0\t0\t0";
pri... | true |
490f9776ec24ea75dda057bfa482d8ea92f35b58 | Shell | cristiantela/LighterCodeChallenge | /challenges/week 2 - rock paper scissors/gustavocarneiroa.sh | UTF-8 | 292 | 2.609375 | 3 | [] | no_license | # NÃO REPRODUZIR NO PRÓPRIO SH, USAR UM COMPILADOR ONLINE. EX: https://www.onlinegdb.com/online_bash_shell
#155 Caracteres
read a b
a=${a: -3:1}
b=${b: -3:1}
declare -A w
w[d]=0
w[p]=1
w[s]=2
let v=(3+w[$a]-w[$b])%3
echo $([ "$v" != 0 ] && echo "Jogador $v" || echo "Não há vencedores")
| true |
6dc1762d22950d97ea42052e607b8f7696c6012d | Shell | ballerina-platform/ballerina-update-tool | /resources/bin/bal | UTF-8 | 4,883 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ---------------------------------------------------------------------------
# Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain... | true |
20fecd029f890338c3d5aee724a4927865f24540 | Shell | JeffeApAlves/ESP32Debug | /misc.sh | UTF-8 | 6,457 | 3.859375 | 4 | [] | no_license | #! /bin/bash
#
#
#
# Diretorio onde se encontra o script
BASEDIR="${0%/*}"
source $BASEDIR/def.sh
back_title="Projeto $PROJECT_NAME"
function select_file() {
local title=$1
local path=$2
local ext_file=$3
local source=${4:-"LOCAL"}
local dir_content=""
local curdir=""
if [ $source = "R... | true |
32827fbe60a5dcbe9f42bf88546fff85f94013fc | Shell | nthomson-pivotal/homelab | /bosh/director/create-director.sh | UTF-8 | 981 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
vsphere_password=$1
if [ -z "$vsphere_password" ]; then
echo "Error: Must supply vSphere password"
exit 1
fi
$DIR/deploy-director.sh $vsphere_password
source $DIR/login.sh
bosh alias-env lab -e $(bosh int "$DIR/vars.ym... | true |
7b6f304e0902088436e861db1487a28a066794df | Shell | gwabramblehouse/dcu-2019 | /analysis/bin/grideye-background-variation-analyse | UTF-8 | 1,640 | 2.96875 | 3 | [] | no_license | #!/bin/bash
#############################################################################
# Home Mobility Monitoring.
#
# Generate heatmaps of per-pixel statistics for fluctuations in measurements
# of a consistent background.
#############################################################################
export HMM_HOM... | true |
f6ef683b154e0bac1acbee8910ee73614c1f63bf | Shell | AthabascaUniversity/openstack-setup | /setup/openstack-nova-glance-demo | UTF-8 | 655 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
RCFILE=${1:-"openstack-setup.rc"}
if [ -e ${RCFILE} ]; then
. $RCFILE
else
echo "Missing ${RCFILE}"
exit 1
fi
if [ -n "$DB_ROOT_PW" ]; then
DBPW="--rootpw $DB_ROOT_PW"
fi
modprobe nbd
nova keypair-add demo-key > ~/demo-key.priv
chmod 600 ~/demo-key.priv
curl -C - -o ${TMP_DIR}/${NOVA_GLANCE_DEMO... | true |
92b174b84ab9fade36b5e6bc07f38d082e2c65cf | Shell | delkyd/alfheim_linux-PKGBUILDS | /cura-engine/PKGBUILD | UTF-8 | 2,446 | 2.984375 | 3 | [] | no_license | # Maintainer: Yunhui Fu <yhfudev@gmail.com>
pkgname=cura-engine
pkgver=15.06.03
pkgrel=1
pkgdesc="A C++ console application for 3D printing GCode generation. It's called by Repetier Host and/or other applications."
arch=(i686 x86_64 arm)
url="https://github.com/Ultimaker/CuraEngine.git"
license=(GPL)
depends=(protobuf... | true |
fe9fb6e532db2cbf63e19d61de30bdc21e5ec5b7 | Shell | noahfriedman/bin-misc | /ipv6-mac-to-addr | UTF-8 | 536 | 3.203125 | 3 | [] | no_license | #!/bin/sh
# $Id: ipv6-mac-to-addr,v 1.1 2015/10/05 18:39:38 friedman Exp $
# Compute stateless autoconfig address based on interface MAC
# or vice-versa
case $1 in
[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:* )
exec ipv6calc -q -A geneui64 -I mac -O eui64 "$@" ;;
*::* )
addr=fe80::${1#*::}
shi... | true |
9db9790591894a5dc0e9ecbb306e0753b5df7ead | Shell | ebob9/topology_proxy_container | /docker_build/build_docker.sh | UTF-8 | 242 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [[ -z "$1" ]]
then
echo "ERROR: Requires version string (x.y.z) as first argument".
exit 1
fi
cp ../* .
docker build --progress=plain --no-cache -t ebob9/topology_proxy:${1} -t ebob9/topology_proxy:latest .
| true |
d5628c6b80a36a43b499f336dea0a9703370242b | Shell | dokku/dokku | /contrib/images/digitalocean/in_parts/100-image-check | UTF-8 | 20,014 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# DigitalOcean Marketplace Image Validation Tool
# © 2021-2022 DigitalOcean LLC.
# This code is licensed under Apache 2.0 license (see LICENSE.md for details)
VERSION="v. 1.8.1"
RUNDATE=$(date)
# Script should be run with SUDO
if [ "$EUID" -ne 0 ]; then
echo "[Error] - This script must be run with sudo... | true |
c2731e86ac190be503c7b84ef6256aa87bb3a7b7 | Shell | hopeseekr/BashScripts | /changelog-maker-lite | UTF-8 | 1,343 | 3.609375 | 4 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
#########################################################################
# ChangeLog Maker (lite) #
# #
# Quickly creates CHANGELOG.md entries suitable for GitHub from #
# ... | true |
50e652bde62208f269120ce853cfba1a5085968e | Shell | cosimop2000/Esami_SO | /2019/Esame0504_B/FCR.sh | UTF-8 | 359 | 3.34375 | 3 | [] | no_license | #!/bin/sh
cd $1
#variabile contatore per le linee dei file
count=0
case $1 in
*/$2)
for i in *
do
if test -f $i -a -r $i
then
count=`wc -l < $i`
if test $count -gt 4
then
echo `pwd`/$i $count >> $3
fi
fi
done
;;
*);;
esac
#parte ricorsiva
for i in *
do
if test -d $i -a -x $i
th... | true |
64165faf289f852fbd93739e67789150b9034006 | Shell | Mithreas/pazaak | /pazaakcli/versus.sh | UTF-8 | 1,072 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#DECK1="+-2,+-2,+-2,+-6,+-3,+-3,+-3,+-4,+-4,+-5"
#DECK1="-3,-3,-3,-4,-4,-4,-2,-2,-6,-5"
if [ -z "$DECK1" ]; then
DECK1="auto"
fi
if [ -z "$DECK2" ]; then
DECK2="auto"
fi
if [ -z "$PLAYER1" ]; then
PLAYER1="./testagent2/testagent2"
fi
if [ -z "$PLAYER2" ]; then
PLAYER2="./testagent2/test... | true |
c0c49371232e002acac1f4214302048bb1050cf5 | Shell | skywalka/terraform-google-splunk-enterprise | /startup_script.sh.tpl | UTF-8 | 12,688 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | true |
44f66a1dbe081875b266c0cfc05a9957a577f96a | Shell | demhydraz/til | /bin/upsl | UTF-8 | 219 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
st=$1; shift
en=$1; shift
fl=$1; shift
ext=${fl##*.}
tmp="/tmp/$(basename -s ".$ext" "$fl").$st-$en.$ext"
if [[ -f "$fl" ]]; then
sed -n "$st,${en}p" "$fl" > $tmp
up h $tmp
rm -rf $tmp
fi
| true |
64b2a0ee8a9db4b8679c6e32d4c020abcb2ceb18 | Shell | octobot-dev/react-boilerplate | /scripts/go-script-bash/tests/modules/help.bats | UTF-8 | 1,598 | 3.328125 | 3 | [
"ISC",
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | #! /usr/bin/env bats
load ../environment
load helpers
setup() {
test_filter
@go.create_test_go_script '@go "$@"'
setup_test_modules
}
teardown() {
@go.remove_test_go_rootdir
}
@test "$SUITE: no args shows module system help" {
run "$TEST_GO_SCRIPT" 'modules' '-h'
assert_output_matches '^\$_GO_USE_MODULE... | true |
bb837b1432f19f0980031fda9acf192aaa0b0e14 | Shell | nolim1t/bitcoin-merchants | /scripts/rename-tool.sh | UTF-8 | 919 | 3.25 | 3 | [
"Unlicense"
] | permissive | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHET... | true |
e766705771d9717a3c39ff9448a00f29385b4eed | Shell | simta/simta-admin | /simqc | UTF-8 | 4,566 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# simqc: does queue tricks, plays the fight song
#
# -s : prints out stats on slow queue
# -f : prints out stats on fast queue
# -# : sets number to be used by head in -s and -f, default is 10
# -d : prints out queue stats for last days ( equiv to -t 24 )
# -t hours : prints out queue stats for last [hours]... | true |
69aeb443066263952103a5acf4b9e75c979be648 | Shell | danailbd/bulgarian_dictionary | /generate_dict.sh | UTF-8 | 1,065 | 3.546875 | 4 | [] | no_license | #!/usr/bin/sh
# TODO ADD OPTIONS
ROOTPWD=${2:-""}
TMPPATH=${3-"/tmp"}
TMP_DATABASE_NAME=${4:-"rechko"}
# TODO ADD REQUIREMENTS
# * pv, penelope, kindlegen
# * mysql with root
# TODO ensure dependences
# pv, penelope, kindlgen
# pip install --user penelope
# yaourt -S kindlegen
echo "Downloading file"
wget -P $TMPP... | true |
db6fbe8212de010b67228e53859b7b455ba65d22 | Shell | bAndie91/posix_signal_dispatcher | /gen_signames.sh | UTF-8 | 188 | 2.59375 | 3 | [] | no_license | #!/bin/sh
set -e
#set -o pipefail
echo "#include <signal.h>" |\
g++ -E -dD -xc++ - |\
perl -ne 'if(/^#define SIG([A-Z]+) (\d+|SIG[A-Z]+)/) { print "{ \"$1\", $2 },\n"; }' \
> signames.h
| true |
283c85885101179214de7cdfc62ff295f4bebdc6 | Shell | obonyojimmy/meteorjs | /cli/plugins/meteor/alpinize.sh | UTF-8 | 597 | 3.703125 | 4 | [
"MIT"
] | permissive | set -e
METEORJS_BUILD_NAME=$1
METEORJS_BUILD_NAME_ALPINE=${METEORJS_BUILD_NAME}.alpine
# Alpine build & install meteor
mkdir /meteorg
tar -xzf /meteor/${METEORJS_BUILD_NAME}.tar.gz -C /meteorg
(cd /meteorg/bundle/programs/server && npm i && npm run install)
(cd /meteorg && tar -czf /meteor/${METEORJS_BUILD_NAME_ALPIN... | true |
ff0390625a5b9fac6e8f141f7974b06ea98bf0b8 | Shell | jerryz123/onnx-composer | /scripts/build-tools.sh | UTF-8 | 1,224 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -o pipefail
# Build riscv tools
(cd rocket-tools && git apply ../scripts/build.patch &&
./build.sh)
# Build LLVM
(cd llvm-project && mkdir -p build && cd build && \
cmake -DCMAKE_BUILD_TYPE="Release" \
-DLLVM_ENABLE_PRO... | true |
f194d5b20baadd57ab9b5ba50935113f3aee6db7 | Shell | ed00m/Mayordomo | /Multi-threading/crea_data.sh | UTF-8 | 315 | 3.109375 | 3 | [] | no_license | #/bin/sh -x
set -e
set -v
OBJECT=data.txt
rm -f ${OBJECT}
for i in $(seq 1000000)
do
NAME=$(tr -dc A-Za-z0-9 < /dev/urandom|head -c 10)
LASTNAME=$(tr -dc A-Za-z0-9 < /dev/urandom|head -c 10)
FOLIO=$(tr -dc 0-9 < /dev/urandom|head -c 10)
echo ${NAME}"|"${LASTNAME}"|"${FOLIO}"|"${i} >> ${OBJECT}
done
exit 0
| true |
9531785a31cf5d37fba6192c30d38bc1ad1d1b28 | Shell | jethrosun/dotfiles | /bin/bin/deprecated/tmux_start.sh | UTF-8 | 930 | 2.765625 | 3 | [] | no_license | #!/bin/bash
# https://github.com/swaroopch/flask-boilerplate
BASE="$HOME/dev/"
cd $BASE
# the name of your primary tmux session
SESSION=foo
# your IRC nickname
IRC_NICK=$USER
tmux start-server
tmux new-session -d -s foo
tmux new-window -t foo:1
tmux new-window -t foo:2
#tmux new-window -t foo:3
#tmux new-window -t fl... | true |
800d9aeae6ee1856a5272c5f64cc692a19ffbfee | Shell | elkrejzi/lfs-pacman | /pkgbuild/at-spi2-atk/PKGBUILD | UTF-8 | 744 | 2.6875 | 3 | [
"MIT"
] | permissive | pkgname=at-spi2-atk
pkgver=2.38.0
pkgrel=1
pkgdesc="A GTK+ module that bridges ATK to D-Bus at-spi"
arch=('x86_64')
url="https://wiki.gnome.org/Accessibility"
license=('GPL2')
#depends=()
source=("https://download.gnome.org/sources/at-spi2-atk/${pkgver:0:4}/at-spi2-atk-${pkgver}.tar.xz")
prepare() {
install -v -dm755... | true |
82119b21831a42622f8a0c9b39913933ad1d9450 | Shell | DericM/COMP8006_ASN03 | /login_detect.sh | UTF-8 | 2,251 | 3.921875 | 4 | [] | no_license | #!/bin/sh
#USER DEFINED SECTION
#############################################################
MAX_LOGIN_ATTEMPTS=3
BLOCK_DURATION_SEC=20 #-1 for forever
SCRIPT_FREQUENCY=5s
#Monitor File Format
#------------Default Fedora
#MONITOR_FILE="/var/log/secure"
#DATE_FORMAT="+%b %e %H:%M:%S"
#FAILED_LOGIN_MARKER=sshd.\*Faile... | true |
00e9a6fc26ea4be3685f3bd858255c6cb17e2ca1 | Shell | PennBBL/reward2018 | /scripts/heudiconv/dicomInfo_joy.sh | UTF-8 | 904 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# A script for obtaining dicom info from a directory of dicoms, structured: {subjID}/{scanID}/{scantype}/dicoms/{dicom}.nii.gz
# Modified to get dicom info for recently downloaded XNAT dicoms in /data/joy/BBL/studies/reward2018
# obtain scan and session labels
scans=/data/joy/BBL/studies/reward2018/dicoms... | true |
4671f4313ebe9e89741b378f8eee2e7196748ff2 | Shell | flxndn/bin | /graba_video.sh | UTF-8 | 618 | 3.28125 | 3 | [] | no_license | #!/bin/bash
#readonly ARGS="$@"
#-------------------------------------------------------------------------------
main() {
#-------------------------------------------------------------------------------
local time=0:1:0
local dev=/dev/video0
local format=rgb24
local rate=10
local dir=~/video
if [ ! -d "$dir" ];... | true |
50070f5e02639eeb1388bb408a0fdde0272da253 | Shell | kaiostech/B2G | /scripts/updates.sh | UTF-8 | 891 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Determine the absolute path of our location.
B2G_DIR=$(cd `dirname $0`/..; pwd)
. $B2G_DIR/setup.sh
# Run standard set of tests by default. Command line arguments can be
# specified to run specific tests (an individual test file, a directory,
# or an .ini file).
TEST_PATH=$GECKO_PATH/testing/marionette/... | true |
b4015b8d93b78b2b3ecaceccc48cdd7212b1ea09 | Shell | confine-project/confine-dist | /utils/vct/vct.sh | UTF-8 | 69,563 | 3.921875 | 4 | [] | no_license | #!/bin/bash
set -u # set -o nounset
#set -o errexit
# We want to expand aliases because
# in a fedora environment it might be useful
# to alias virsh to 'sudo virsh' otherwise it would ask for
# a password every time the command is executed.
# Aliasses set before this line (outside the script), will not be expanded.
... | true |
4c47ba39c91fc8d749ed4b5546716ff74e4632ac | Shell | jeromecoutant/mbed | /tools/test/travis-ci/doxy-spellchecker/spell.sh | UTF-8 | 5,098 | 3.671875 | 4 | [
"SGI-B-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MPL-2.0",
"BSD-3-Clause",
"BSD-4-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -eu
# mbed Microcontroller Library
# Copyright (c) 2018 ARM Limited
# SPDX-License-Identifier: Apache-2.0
set -o pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
ERRORS=0
# Loops use here strings to allow them to run in the main shell and modify the correct version of
# the err... | true |
e831399e29702476e65cc0340b184a1b9857e39b | Shell | cgreer/ResearchScripts | /command/mirPipe.sh | UTF-8 | 1,292 | 2.765625 | 3 | [] | no_license | #!/bin/bash
echo 'Defining Clusters'
cd /home/chrisgre/scripts/defineClusters
python defineClusters.py $1
echo 'Filtering Out Known MicroRNAs/snoRNAs'
cd /home/chrisgre/scripts/filterKnown
python filterOutKnown.py $1
echo 'Updating Results File/Running Initial Sort'
cd /home/chrisgre/scripts/updateFPF
python addPeri... | true |
ae63b4ddf27bf9e31b46ac477c4a1d58f4f83e10 | Shell | gsc0107/BLAST-comparison | /run_orto2fasta.sh | UTF-8 | 404 | 2.859375 | 3 | [] | no_license | #!/usr/bin/bash
ORT_GROUPS='ortho_group.csv'
THR=13
RUN='./orto2fasta.sh'
OUT_DIR='./tmp'
cat $ORT_GROUPS | awk -F ',' '{print $1" "$2}' | tail -n +2 | parallel --verbose --colsep ' ' --jobs $THR "$RUN {2} > $OUT_DIR/{1}_{2}_Viridiplantae.fasta"
cat $ORT_GROUPS | awk -F ',' '{print $1" "$3}' | tail -n +2 | parallel ... | true |
7ef96a32ffbfcb5231d21447b627a90431184bf7 | Shell | pranet/bhuman2009fork | /Install/switchActiveWirelessConfig.sh | UTF-8 | 2,068 | 4.0625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -eu
export scriptPath=$(echo $0 | sed "s|^\.\./|`pwd`/../|" | sed "s|^\./|`pwd`/|")
export baseDir=$(dirname ${scriptPath})
export gtDir=$(dirname ${baseDir})
export includeDir="${baseDir}/include/"
source "${includeDir}/bhumanBase.sh"
source "${includeDir}/robotAddresses.sh"
wlanConfigSuffix=""
run... | true |
c82c8151b5288f33a6cc6947a2c6709b209eb7b1 | Shell | lenik/uni | /fs/vexmount/mount-vpart.in | UTF-8 | 2,823 | 4.03125 | 4 | [] | no_license | #!/bin/bash
: ${RCSID:=$Id: - @VERSION@ @DATE@ @TIME@ - $}
: ${PROGRAM_TITLE:=Mount a partition in a disk image file}
: ${PROGRAM_SYNTAX:=[OPTIONS] [--] file.img mount-point}
. shlib-import cliboot
option -p --partition =index "Partition other then the first to mount (1-based)"
option -o --m... | true |
f2fe3ee4784554f69a2061fb8f6cba7f49bf7efc | Shell | gtaylor/btmux_template_io | /misc/weapon_table_massager.py | UTF-8 | 855 | 2.875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
"""
This module parses a copy/paste from the in-game ADDWEAP table, spitting out
a properly formed WEAPON_TABLE dict.
Assumes that you have a weapons.txt file in the same directory. Try to add
an invalid weapon to a unit as XCODE MECHREP and see the weapons table list::
addweap invalid lt 1
Copy/past... | true |
1bfe3b43d04bbbf70b054b59330747bd4843aed0 | Shell | rubixlinux/rubixlinux | /l/libtasn1/PKGBUILD | UTF-8 | 891 | 3 | 3 | [] | no_license | # Maintainer: Joshua Rubin <joshua@rubixlinux.org>
pkgname=libtasn1
pkgver=0.2.18
pkgrel=1
url="http://josefsson.org/libtasn1"
pkgdesc="libtasn1 is an asn.1 library"
depends=('glibc')
source=(http://josefsson.org/gnutls/releases/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('e44a58746803de101c55ae8683d677a1')
## Todo:
#... | true |
7f16495bc28b9c7a74aaa4902b5fcaf06eb5163b | Shell | kidlab/env_config | /.bash_profile | UTF-8 | 1,326 | 3.25 | 3 | [] | no_license |
##
# Your previous /Users/manvuong/.bash_profile file was backed up as /Users/manvuong/.bash_profile.macports-saved_2013-08-14_at_14:48:24
##
export PATH=$HOME/Workspace/go_appengine:$HOME/.go/bin:/usr/local/sbin:/usr/local/bin:$PATH # Go App Engine SDK
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.ba... | true |
a46a92579048a94ffe696bc40b0a46ba963474f9 | Shell | bobhlo/integration | /extra/statistics-generator | UTF-8 | 2,734 | 4.1875 | 4 | [
"BSD-4-Clause",
"WTFPL",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"BSD-2-Clause-Views",
"BSD-3-Clause",
"ISC",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -e
usage() {
cat <<EOF
$0 --base-dir=<DIR_WITH_REPOS> [options] <REV-RANGE> [addition git-log arguments]
Main options:
--base-dir=<DIR_WITH_REPOS>
Supplies the folder where all the Mender repositories live.
--repo Query only the repository we're in, not the default Mender release
repositories.... | true |
e2a3614b3f450a3a5d8be0260af132dfd0e49131 | Shell | gan-orlab/MIPVar | /Scripts/Processing.step07.selectByCohorts.sh | UTF-8 | 1,456 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#I use variables, for readability
#####LOOPING NOT DONE YET, WORK ON IT WITH DAN
###general code; can be put in a loop if you have a file with list of genes + specify the cohorts: for gene in selectedgenes.list; do for cohort in FC NY ISR; do for DP in 15 30 50; do bash script.sh $gene $cohort $DP; done; d... | true |
be7a462b6981b5f3887e697b57605087dec0c880 | Shell | znh1992/Harris_Kovacs_Londo | /Maker/gff_prep_igv.sh | UTF-8 | 293 | 2.96875 | 3 | [] | no_license | #!/bin/bash
file=$1
acc=$2
grep "chr" $file | grep -v ">" > $acc\_presort.gff
sortBed -i $acc\_presort.gff > $acc\_sorted.gff
for i in `cut -f3 $acc\_sorted.gff | sort | uniq`; do
grep $i $acc\_sorted.gff > $i.$acc\_sorted.gff
bgzip $i.$acc\_sorted.gff
tabix $i.$acc\_sorted.gff.gz
done
| true |
e68e241f0c313c8da66d1295e6589d85c8dc3e63 | Shell | jfqd/mi-qutic-lx-base | /copy/usr/local/bin/systemd_health_check | UTF-8 | 954 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
PATH=/usr/sbin:/usr/bin:/sbin:/bin
FAILED_SERVICES=$(/usr/bin/systemctl list-unit-files --type=service --state=failed --plain | /usr/bin/tail -n +2 | /usr/bin/head -n -2 | /usr/bin/awk '{ print $1 }')
for service in $FAILED_SERVICES; do
systemctl reset-failed "$service"
systemctl start "$service"
ec... | true |
071182986cdefde8cc6fee1dad5bf3b7037d9f55 | Shell | Bahler-Lab/yogy | /YogiUp/download_inparanoid.sh | UTF-8 | 3,231 | 4.15625 | 4 | [] | no_license | source settings.sh
INPAR_DIR="$TEMP_DIR/inparanoid"
# the web location
INPAR_LOCATION="$INPAR_DIR/inparanoid.sbc.su.se/download/8.0_current/Orthologs_other_formats"
INPAR_SELECT_DIR="$TEMP_DIR/inparanoid_select_species"
DATE_FILE="inparanoid_update_date.txt"
#############################################
# check if t... | true |
c7f90bd6b466b42bd333a51d80db8c8218bd26f3 | Shell | ds2d/ops_script | /bash/clean_zookeeper_log.sh | UTF-8 | 304 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# clean zookeeper snapshot,log
#snapshot file dir
dataDir=/java/zkdata/version-2
#tran log dir
dataLogDir=/java/zkdata/version-2
#Leave 500 files
count=500
count=$[$count+1]
ls -t $dataLogDir/log.* | tail -n +$count | xargs rm -f
ls -t $dataDir/snapshot.* | tail -n +$count | xargs rm -f
| true |
8509555cb078acdb24c05e85fb0bd012d07fcdfd | Shell | OJoklrO/OJoklrO.github.io | /add.sh | UTF-8 | 328 | 2.984375 | 3 | [] | no_license | # !/bin/bash
read -p "name: " fname
read -p "title:" title
BLOGPATH="/home/$USER/blog/post/category/"
date=$(date "+%Y-%m-%d")
time=$(date "+%H-%M-%S")
filename=$BLOGPATH$date-$time$fname.md
touch $filename
# time: year-month-day
echo "---
title: $title
date: $date
time: $time
---
# $title
" > $filename
typora $f... | true |
2b0135f59fd5a3c1909f4f891a5725139e409680 | Shell | scorelabio/lambda-packages | /lambda_packages/pandas/build.sh | UTF-8 | 438 | 2.828125 | 3 | [] | no_license | BUILD_DIR=build
# NB: numpy has to be build along with pandas for proper linkage between libraries
pip-3.6 install --target $BUILD_DIR --no-binary :all: pandas
cd $BUILD_DIR
# Compress binaries
du -sh pandas
find pandas -name "*.so"|xargs strip
du -sh pandas
# Create archive
tar -czvf ../python3.6-pandas-0.22.0.tar.gz ... | true |
471346460eeecc8f60e4577826d59c6e03fb1758 | Shell | ashafaei/pdf2pptx | /pdf2pptx.sh | UTF-8 | 3,770 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Alireza Shafaei - shafaei@cs.ubc.ca - Jan 2016
resolution=1024
density=300
#colorspace="-depth 8"
colorspace="-colorspace sRGB -background white -alpha remove"
makeWide=true
if [ $# -eq 0 ]; then
echo "No arguments supplied!"
echo "Usage: ./pdf2pptx.sh file.pdf"
echo " Generates file.pdf.p... | true |
178d7111b09e294cd87e74bb3d1e7e84eed852ea | Shell | dmfullstack/hs_d-p-o | /languagepacks/stackroute/angulario/cmd/stackroute/angulario/tslint | UTF-8 | 463 | 3.046875 | 3 | [] | no_license | #!/bin/sh
# in this we will run tslint rules
set -e
echo executing TS Lint in $WORKSPACE
# echo ignoring patterns $IGNORE_PATTERN
cd $WORKSPACE
echo running with NPM_OPTIONS as $NPM_OPTIONS
echo "-----------------------------------"
# NPM_SCRIPT_OPTIONS gives the tslint result in json structure '--format json'
e... | true |
5081cc4b74cc9be8fd735ac536a467a79c3d598d | Shell | tech-otaku/macos-defaults | /date-time.sh | UTF-8 | 11,595 | 2.984375 | 3 | [] | no_license | #!/usr/bin/env bash
# See: https://www.tech-otaku.com/mac/setting-the-date-and-time-format-for-the-macos-menu-bar-clock-using-terminal/
# Exit with error if installed macOS version is not macOS 10.15 Catalina or earlier
if [ $(system_profiler SPSoftwareDataType | awk '/System Version/ {print $4}' | cut -d . -f 1)... | true |
00ed3bb0fcde21ed3db8c54a75f33b8204c957b9 | Shell | bfnoack/scripts | /idba_assemble.sh | UTF-8 | 985 | 3.0625 | 3 | [] | no_license | #!/bin/bash -l
#SBATCH -J ibda_ud_assembly
#SBATCH -o assembly-out-%j.txt
#SBATCH -e assembly-error-%j.txt
module load python
#set -e IDBA segfaults a lot
set -u
software=/home/adurvasu/software
reads=$1
temp_sample=${reads##*/}
sample_no_file_ending=${temp_sample%%.*}
trimmedreads=$sample_no_file_ending-trimmed.fa... | true |
56c0a16e2885715ac26d61ca471e74e7934bf891 | Shell | bmwiedemann/openSUSE | /packages/s/systemd-generator-cron2timer/cron2timers | UTF-8 | 742 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: Copyright 2022-2023 SUSE LLC
set -e
out="${1:?}"
shopt -s nullglob
mkdir -p "$out/timers.target.wants/"
for interval in hourly daily weekly monthly yearly; do
for script in /etc/cron."$interval"/*; do
f="${script##*/}"
cat > "$out/$interval-$f.ti... | true |
a7c8ac04659e1efc249605fe24e331547323736f | Shell | akora/drupal-install-configure-uninstall | /drupal-configure.sh | UTF-8 | 4,373 | 4.125 | 4 | [] | no_license | #!/usr/bin/env bash
#===========================================================================
#
# FILE: drupal-configure.sh
#
# USAGE: 1. chmod ugo+x drupal-configure.sh
# 2. sudo ./drupal-configure.sh [sitename]
#
# DESCRIPTION: This script takes a fresh and clean Drupal install, ... | true |
b8211ec71bcc1edb385e569f5f766d976ee4f089 | Shell | vcamaral/dotfiles | /install | UTF-8 | 1,992 | 4.34375 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
function exit_with_message() {
echo $1
exit 1
}
# First, retrieve the zip file from Github.
# It will use wget or curl (whichever is defined).
curl_available=$(command -v curl)
wget_available=$(command -v wget)
unzip_available=$(command -v unzip)
dotfiles_dir="$(dirname $0)"
dotfiles_... | true |
7791c343a8688f9ef4e6d9d23f12dcf23e03495a | Shell | KhronosGroup/KTX-Software | /ci_scripts/install_linux.sh | UTF-8 | 3,657 | 3.625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #! /usr/bin/env bash
# Copyright 2015-2020 The Khronos Group Inc.
# SPDX-License-Identifier: Apache-2.0
# Install software in CI environment necessary to build on Linux.
# Exit if any command fails.
set -e
# Set parameters from command-line arguments, if any.
for i in $@; do
eval $i
done
ARCH=${ARCH:-$(uname -m)}... | true |
32fc0e35658448713557aff82bf4b588ac419d5b | Shell | pedz/aix-build-scripts | /build-scripts/build-httpd | UTF-8 | 1,069 | 3.703125 | 4 | [] | no_license | #!/usr/bin/ksh
# Note. I'm trying to build expact, apr, apr-util, and pcre before
# building this. If you build this first, it dies when it tries to
# package it because the needed libraries are not installed.
full_path=http://mirrors.ibiblio.org/apache/httpd/httpd-2.2.21.tar.bz2
suffix=.tar.bz2
package_name=${full... | true |
93c9fc1e396c094ede55f0a6ec74755e688a3b6a | Shell | danikaze/ascii-ui2 | /scripts/build.sh | UTF-8 | 2,557 | 4.28125 | 4 | [] | no_license | #!/usr/bin/env bash
##
# Retrieve a field value from a json file:
# getJsonField "filename.json" "fieldName"
##
getJsonField() {
local filename=$1
local field=$2
local value=$(cat "$filename" \
| grep "\"$field\"" \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:spac... | true |
929549b93e3d28493ae777bdd38bf354c6d4e31f | Shell | coord-e/urdfdev | /scripts/run.sh | UTF-8 | 1,334 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source "/opt/ros/$ROS_DISTRO/setup.bash"
set -euo pipefail
source "/opt/urdfdev/lib/log.sh"
status "Starting..."
model_path=$1
shift
sources=${@:-$(pwd)}
urdf_path=$(mktemp)
run_status_path=$(mktemp)
build_cmd="/opt/urdfdev/build.sh $model_path $urdf_path $run_status_path"
display_size=${URDFDEV_DISP... | true |
7373d68b5d8235b573bb071f5484b9a009302ade | Shell | itomoyasu/dotfiles | /.bashrc | UTF-8 | 738 | 2.625 | 3 | [] | no_license | # PATH for Homebrew
export PATH=/usr/local/bin:$PATH
# PATH for python2.7
export PATH=/usr/local/share/python:$PATH
# PATH for virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
source `which virtualenvwrapper.sh`
# PATH for Cordova(Phone Gap)
export PATH=$PATH:/usr/local/Cordova/bin
# PATH for jsx
export PAT... | true |
95ae9bd73a209b30ee5a5385f496eac868cd3f80 | Shell | sgrebnov/aws | /cli/entrypoint.sh | UTF-8 | 787 | 3.265625 | 3 | [
"LGPL-2.1-or-later",
"Apache-2.0",
"MIT"
] | permissive | #!/bin/sh
set -e
# Respect AWS_DEFAULT_REGION if specified
[ -n "$AWS_DEFAULT_REGION" ] || export AWS_DEFAULT_REGION=us-east-2
# Respect AWS_DEFAULT_OUTPUT if specified
[ -n "$AWS_DEFAULT_OUTPUT" ] || export AWS_DEFAULT_OUTPUT=json
# Capture output
#output=$( sh -c "aws $*" )
# Preserve output for consumption by d... | true |
532cb5b4ff2b55d7658781a111653e10f3e9a1b6 | Shell | 1024sparrow/traliva | /src/build_scripts/traliva_final.sh | UTF-8 | 1,596 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Финальная сборка всего проекта. Сборка уже кода под каждую целевую платформу.
#echo $1 -- /home/boris/da/pro/traliva
#echo $2 -- compiled
. $1/src/config
compiled_dir="$1/$2/targets"
targets_dir="$1/targets"
mkdir "$compiled_dir"
mkdir "$targets_dir"
for i in $(ls -1 $1/src/build_scripts/targets)
do
... | true |
13574c42fd26ab9674f442c6bdd145d14ebd97d3 | Shell | mitmproxy/www | /build.sh | UTF-8 | 675 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
cd src
# check for valid JSON
cat data/publications.json | jq empty
# check for existing publication types
allowed_types=$(cat <<-MOT
blog post
media
research
talk
MOT
)
types=$(cat data/publications.json | jq -r '.[].type' | sort | u... | true |
0aaa09cfc08746f1a935e4de90912750e5636e2a | Shell | 2ndcouteau/shell_script | /extraction_transilien.sh | UTF-8 | 4,646 | 3.578125 | 4 | [] | no_license | ## Script Permettant de recuperer les noms et ID des lignes des du reseaux ferre
## d'ile de france disponible sur data.gouv;
## sous le nom de "gares-du-reseau-ferre-dile-de-france.csv" a l'adresse suivante :
## https://www.data.gouv.fr/fr/datasets/gares-du-reseau-ferre-d-ile-de-france-idf/
## Les donnees sont extrait... | true |
e9170a790719e5c3ed2e6231a81e3a586dd6ec07 | Shell | atykhonov/mirantis | /ngpatch/ngpatch.sh | UTF-8 | 696 | 3.375 | 3 | [] | no_license | #!/bin/bash
set -e
function ngpatch() {
CONTAINER_ID=$(ssh root@$2 docker inspect -f '{{.Id}}' $(ssh root@$2 docker ps | grep nailgun | awk '{print $1}'))
ROOTFS=$(ssh root@$2 locate $CONTAINER_ID | grep rootfs | head -n 1)
SITE_PACKAGES_DIR=$ROOTFS/usr/lib/python2.6/site-packages/
scp $1 root@$2:$SIT... | true |
db7f793ca878198c517330fec6fac1ef0cb37086 | Shell | devinsba/zsh-plugins | /rvm/init.plugin.zsh | UTF-8 | 233 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | # Adapted from: https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/d5ib9fs
export RVM_DIR="${HOME}/.local/opt/rvm"
echo "Loading RVM..."
[[ -s "${RVM_DIR}/scripts/rvm" ]] && . "${RVM_DIR}/scripts/rvm" | true |
4136be458cf8123feb8d37163f30721c9953f937 | Shell | samuelviveiros/fixdvi | /fixdvi | UTF-8 | 4,449 | 3.71875 | 4 | [] | no_license | #!/bin/bash
#
# Autor: Samuel Viveiros Gomes
# Descrição: Script para corrigir a resolução de monitores que utilizam adaptador DVI.
# Versão: 0.2.0
# Data: Quarta-feira, 18 de Abril de 2018 -- Palmas - TO
#
# História:
# 0.2.0 Foi acrescentada opção de linha de comando [-g | --gen-config]
# 0.1.0 Lançament... | true |
e59126e9a4c226a7f4b0a6db6eb0b8bfc8482f34 | Shell | mig8447/bash_scripts | /.bashrc | UTF-8 | 1,851 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
_os_name="$( uname -s )"
export _os_name
function _is_interactive_shell(){
local exit_code=0
[[ "$-" =~ "i" && -t 0 && -t 1 && -t 2 ]]
exit_code="$?"
return "$exit_code"
}
_is_interactive_shell
export _is_interactive_shell="$?"
# Enable these setings only if the terminal is interactive... | true |
8bf281a294c2b8ceb5474b39761d00e69c21e221 | Shell | arouze/dotfiles | /.zshrc | UTF-8 | 1,115 | 2.71875 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https... | true |
bffc4c744a7eead361ab9bb02091afaee96fa073 | Shell | wangscript007/CatraMMS | /scripts/tomcat.sh | UTF-8 | 531 | 3.546875 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage $0 start | stop | status"
exit
fi
command=$1
if [ "$command" != "start" -a "$command" != "stop" -a "$command" != "status" ]
then
echo "Usage $0 start | stop | status[nodaemon]"
exit
fi
if [ "$command" == "start" ]
then
sudo systemctl start tomcat
elif [ "$command... | true |
6b47a6a8bcdf0e616586404f383d8b5614d1011e | Shell | itohanosa/deeplab-lakeice-webcams | /datasets/download_and_convert_lakeice.sh | UTF-8 | 2,310 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright 2018 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | true |
e9c9eece52debba036e16913828b847d211854d0 | Shell | pfandzelter/tinyFaaS | /scripts/get_logs.sh | UTF-8 | 196 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
for line in $(docker network ls --filter name=handler-net -q) ; do
for cont in $(docker ps -a -q --filter network="$line") ; do
docker logs "$cont"
done
done
| true |
ea7bd4a289cc6262ee4dd73f6af9750a08e80157 | Shell | ShreckYe/Huawei-Code-Craft-2019 | /Preliminary/bin/startup.sh | UTF-8 | 682 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
basepath=$(cd `dirname $0`; pwd)
APP_HOME=$basepath/..
JAVA=$JAVA_HOME/bin/java
commons_logging_lib=$APP_HOME/code/CodeCraft-2019/lib/commons-logging-1.2.jar
log4j_lib=$APP_HOME/code/CodeCraft-2019/lib/log4j-1.2.17.jar
JVM_OPT="-Xms64M -Xmx64M"
JVM_OPT="$JVM_OPT -Djava.ext.dirs=./lib"
JVM_OPT="$JVM_OPT -D... | true |
d25141ad79c9396dfdc60de4d51343cb5c067c5f | Shell | rs-services/Training-Support | /CAT_HelloWorldWebServer/ServerTemplates/training_helloworld_update_rightscript.sh | UTF-8 | 458 | 2.859375 | 3 | [] | no_license | #! /usr/bin/sudo /bin/bash
# ---
# RightScript Name: training_helloworld_update_rightscript
# Inputs:
# WEBTEXT:
# Category: Application
# Description: Text to display on web page.
# Input Type: single
# Required: true
# Advanced: false
# Default: text:Hello World!
# Attachments: []
# ...
echo... | true |
8b2128f2af5d361808ff297b35fba69ff0cdcd32 | Shell | lucasfrossard/dotfiles | /bin/initialize-git-svn-url.sh | UTF-8 | 1,544 | 4.15625 | 4 | [] | no_license | #!/bin/sh
E_OPTERROR=85
set -u
err() {
echo "$@" >&2
}
log() {
echo "$@"
}
usage() {
read -d '' help <<- EOF
USAGE:
`basename $0` OPTIONS
OPTIONS:
-r svn revision (optional) default last copied revision
-f full history flag - default false (optional)
-d dir_path (optional)
-l svn_url
EOF
err "$help"
exit... | true |
0106bd334f47992c4225a4c904c909045b199772 | Shell | petronny/aur3-mirror | /ut2004-mod-gunreal/PKGBUILD | UTF-8 | 930 | 2.65625 | 3 | [] | no_license | # Maintainer: Philipp 'TamCore' B. <philipp {at} tamcore {dot} eu>
pkgname=ut2004-mod-gunreal
pkgver=beta5
pkgrel=1
pkgdesc=""
arch=(i686 x86_64)
url="http://gunreal.com"
license=('unknown')
depends=(ut2004)
makedepends=(unzip)
source=(http://www.gunreal.com/updater/Gunreal%20Beta.zip ut2004-mod-gunreal.desktop gunrea... | true |
8b916dc66bfe7bd63393be03ea0f1d12f67fb6eb | Shell | devkitPro/mesa | /.gitlab-ci/tracie-runner-gl.sh | UTF-8 | 1,490 | 3.390625 | 3 | [] | no_license | #!/bin/sh
set -ex
INSTALL="$(pwd)/install"
# Set up the driver environment.
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)/install/lib/"
# Set environment for renderdoc libraries.
export PYTHONPATH="$PYTHONPATH:/renderdoc/build/lib"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/renderdoc/build/lib"
# Set environment ... | true |
b907869c0cf844ca14cd9100b208ea2eaa85f26f | Shell | gliubaowen/automation | /geode/import-gemfire-data.sh | UTF-8 | 1,830 | 3.28125 | 3 | [] | no_license | #!/bin/bash
###############################################
# Filename: import-gemfire-data.sh
# Version: 2.0
# Date: 2019-10-23
# Author: LiuBaoWen
# Email: bwliush@cn.ibm.com
# Description: 导入gemfire region数据
# Notes:
###############################################
workspaces=$(dirna... | true |
db16136507c2dafb2e57f0f70a023d2ab194fae1 | Shell | ttoocs/scripts | /old/clone_cd.sh.old | UTF-8 | 2,389 | 3.59375 | 4 | [] | no_license | #!/bin/bash
if [ -r /dev/sr0 ] ; then
echo "CD device is readable"
else
sudo chmod 664 /dev/sr0
# ssh localhost -p 443 -l fu-fu "sudo chmod 664 /dev/sr0"
fi
if [ "$1" != "1" ] ; then
#NEW SCRIPT
echo "Append argument 1 to run the old verson of script"
echo "Running automatically"
echo "add any add... | true |
66b9b22a8466dba85a9a09e0ace4753cd1df9cc9 | Shell | snelis/dsmr-reader-docker | /src/app/run.sh | UTF-8 | 5,499 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
#set -o errexit
#set -o pipefail
#set -o nounset
#---------------------------------------------------------------------------------------------------------------------------
# VARIABLES
#----------------------------------------------------------------------------------------------------------------... | true |
42e2941c00fbfbc994e933f7ba565fd386ad4d39 | Shell | bcgov/jag-shuber-frontend | /openshift/deploy-oc-frontend.sh | UTF-8 | 441 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SCRIPT_DIR=`dirname $0`
echo "You should log into OpenShift and select your project before running this script."
read -p "Continue? (Y/n): " ok
ok=${ok:-y}
ok=$(echo $ok |awk '{print tolower($0)}')
params=""
params="-p IMAGE_NAMESPACE=tools"
if [ "$ok" == "y" ]; then
echo "Deploying frontend applicat... | true |
87d15fde4243171f5ac3454db9f86eba6759044b | Shell | octaspire/dern | /dev/etc/build_amalgamation.sh | UTF-8 | 1,725 | 3.515625 | 4 | [
"Apache-2.0",
"ISC"
] | permissive | #!/usr/bin/env sh
UNAME="$(uname)"
if [ "$#" -gt 0 ]; then
echo "-- Building with coverage ($1) for $UNAME..."
else
echo "-- Building for $UNAME..."
fi
if [ "$UNAME" = "Linux" ]; then
cd release && sh how-to-build/linux.sh $1 > /dev/null && echo "OK Done.";
elif [ "$UNAME" = "Darwin" ]; the... | true |
c147c71549597d9badf63c6af0d29c92be698389 | Shell | coplate/KindleJailbreakHotfix | /src/install-dispatch.sh | UTF-8 | 1,699 | 3.34375 | 3 | [] | no_license | #!/bin/sh
#
# Kindle Oasis Dispatch Installer
#
# $Id: install-dispatch.sh 13351 2016-07-11 18:01:40Z NiLuJe $
#
##
HACKNAME="jb_dispatch"
# Pull libOTAUtils for logging & progress handling
[ -f ./libotautils5 ] && source ./libotautils5
# Hack specific stuff
MKK_PERSISTENT_STORAGE="/var/local/mkk"
MKK_BACKUP_STORAG... | true |
269073db89c90d4bd86a73ca24188fc33b70ad9b | Shell | lirsacc/dotfiles | /.zshrc | UTF-8 | 3,366 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
autoload -Uz compinit
export TERM="xterm-256color"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export EDITOR="vim"
export VISUAL_EDITOR="code -a -w"
# Avoid issues with `gpg` as installed via Homebrew.
# https://stackoverflow.com/a/42265848/96656
export GPG_TTY=(tty)
# Highlight section t... | true |
ac166abdeb4987655718ce0fcf69b1ed5c536ec3 | Shell | Mr-Nobody-dey/CryOceanQCV | /code/gen_daily_report/check_empty.sh | UTF-8 | 401 | 3.109375 | 3 | [] | no_license | #!/usr/bin/env bash
ftp ftp://cryosat353:NoHtpQvL@science-pds.cryosat.esa.int
FILE=text.txt
if [[ -s $FILE ]] ; then
echo "$FILE has data."
else
echo "$FILE is empty."
fi ;
#! /bin/sh
HOST='servername'
USER='username'
PASSWD='password'
LOCAL_FILES='/local/dir'
wget ftp://$HOST/DIR01/* -nc --ftp-user=$USER --ftp-passw... | true |
f33529046c8ac8353a6bed09f77d1d1fa8c6c47f | Shell | vitorta0506/challenge-delta | /k8s/painel_k8s.sh | UTF-8 | 1,126 | 3.609375 | 4 | [] | no_license | #!/bin/bash
Principal() {
echo "Start Cluster Minikube - Projeto Delta"
echo
echo "1. Iniciar o cluster projeto delta"
echo "2. Desativar o cluster projeto delta"
echo "3. Verificar URL do cluster"
echo "4. Sair do menu"
echo
echo -n "Qual a opção desejada? "
read opcao
case $opcao in
... | true |
b37238def1bf7627dd2960c6d36e2786cf18cbd5 | Shell | avionic-design/pbs-stage2 | /scripts/buildjail/copy-files | UTF-8 | 277 | 3.859375 | 4 | [] | no_license | #!/bin/sh
if [ "x$1" = "x" ]; then
echo "usage: $0 target"
exit 1
fi
target=$1
read line
while [ -n "$line" ]; do
directory=`dirname $line`
basename=`basename $line`
mkdir -p "${target}${directory}"
cp -dp $line "${target}${directory}/${basename}"
read line
done
| true |
bf6b738392ec6492e9becb692f5607525b6c64d6 | Shell | ekunish/dotfiles | /bin/mac.sh | UTF-8 | 697 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# Rosetta
softwareupdate --install-rosetta --agree-to-license
# Show hidden files by default
defaults write com.apple.finder AppleShowAllFiles -bool true
# Show files with all extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Display the status bar
defaults write com.apple.fin... | true |
4154f2246da9376fda7861e40459b054478e6c77 | Shell | Iheve/docker-serf-reverse-proxy | /front-end-ssl-demo/bundle/serf-config/handlers/leave.sh | UTF-8 | 351 | 3.359375 | 3 | [] | no_license | #!/bin/bash
while read line; do
ROLE=`echo $line | awk '{print \$3 }'`
if [ "x${ROLE}" != "xbe" ]; then
continue
fi
SERVICE_NAME=`echo $line | awk '{print \$4 }' | \
sed -e 's/.*servicename=\([a-zA-Z0-9.\-]*\).*/\1/'`
FILE=/etc/nginx/sites-enabled/$SERVICE_NAME
rm -f $FILE
d... | true |
36f932c561014ab44f6c59a76677fa1bee28c2bc | Shell | melnikaite/app-server-arena | /cookbooks/thin/templates/default/thin_control.sh.erb | UTF-8 | 1,401 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# Thin control script for Engine Yard Cloud. Install via custom chef recipes:
# https://support.cloud.engineyard.com/entries/21009867-Customize-Your-Environment-with-Chef-Recipes
# https://support.cloud.engineyard.com/entries/21406977-Custom-Chef-Recipes-Examples-Best-Practices
# Author: J. Austin Hughey ... | true |
97a339ef6bad953cad6d0f4d0f3f118c1840b6d5 | Shell | CoderXXL/safedockerdown | /maninthemiddle.sh | UTF-8 | 178 | 2.84375 | 3 | [] | no_license | #!/bin/bash
command="docker-compose ${@}"
if [ "${command}" == "docker-compose down" ]; then
/bin/bash /home/${USER}/.safedockerdown/safedockerdown.sh
else
exec $command
fi
| true |
e58400ec81b7bd0fd044c4cae31ee35c3c055b51 | Shell | bridgecrewio/checkov | /kubernetes/run_checkov.sh | UTF-8 | 1,238 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
################################################################################
# Download all Kubernetes resources and run checkov against them
################################################################################
# kubectl api-resources --verbs=list --namespaced -o name | xargs -n1 -I{} bash -... | true |
e1fb0b2dad30d87c940efeb5574d77c1f263214c | Shell | msllp/MSFRAME_Doc | /build/api.sh | UTF-8 | 537 | 2.90625 | 3 | [] | permissive | #!/bin/bash
base=/home/forge/laravel.com
sami=${base}/build/sami
cd $sami
composer install
# Cleanup Before
rm -rf ${sami}/build
rm -rf ${sami}/cache
rm -rf ${sami}/laravel
# Run API Docs
git clone https://github.com/laravel/framework.git ${sami}/laravel
${sami}/vendor/bin/sami.php update ${sami}/sami.php
# Delete... | true |
8ac05e6a2018a0824bff897c03ce20f59618cae3 | Shell | Guan06/DADA2_pipeline | /step3_get_ASV_table.sh | UTF-8 | 1,529 | 3.15625 | 3 | [] | no_license | #!/bin/bash
# scripts for demultiplexing raw sequencing data for 16S
# exits whenever a function returns 1
set -e
# load functions
scripts_dir=`dirname $0`
source $scripts_dir/activate.sh
source $scripts_dir/config.sh
log() {
echo $(date -u)": "$1 >> $logfile
}
mkdir -p $working_dir
working_dir_s2=$working_dir/... | true |
89d315e0f0012bdf7c65d4e7ebc98905715efc57 | Shell | AmadeusITGroup/Assistive-Webdriver | /vagrant/win10-chromium-nvda/download.sh | UTF-8 | 1,080 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
COMPONENTS_FOLDER="$(cd ../../components && pwd)"
COMPONENTS_TO_INCLUDE="assistive-playwright-server text-to-socket-engine tcp-web-listener"
function checkDLL() {
local DLL=0
for i in "$COMPONENTS_FOLDER"/text-to-socket-engine/TextToSocketEngine*.dll ; do if [ -f "$i" ]; then DLL=$((DLL+1)); f... | true |
aeead6066feb1da886f2d4ccb5d818b7af893e0f | Shell | mishin/gorod_io | /etc/restore_mysql_dump.sh | UTF-8 | 538 | 3.4375 | 3 | [] | no_license | #!/bin/sh
#Script restores last mysqldump for for go.mail.ru blog.
# FIXME
db_user=root
db_host="localhost"
db_name="gorod_in"
db_password=""
dump_file=$1
#Trying to restore dump
#mysql -h $db_host -u $db_user -p$db_password $db_name < $dump_file
mysql -h $db_host -u $db_user $db_name < $dump_file
#If something... | true |
0154eaa6d113d3c424d91327763f9e1e0968587a | Shell | archlinuxfr/afur | /scripts/watch.sh | UTF-8 | 4,965 | 3.71875 | 4 | [] | no_license | #!/bin/bash
SOFT_DIR="$HOME/afur"
UPLOAD_DIR="$SOFT_DIR/ftp"
WORK_DIR="$HOME/tmp/afur"
ARCH=('i686' 'x86_64' 'arm')
PKG_DIR="$SOFT_DIR/html/pkg"
PKGBUILD_DIR="$SOFT_DIR/html/pkgbuild"
REPO_NAME='archlinuxfr'
PARSE_CMD="$SOFT_DIR/scripts/parse_file"
[ -n "$1" ] && [ "$1" = "-q" ] && VERBOSE=0 || VERBOSE=1
[ -d "$WO... | true |
a5a998c4e0f8f3f2f67205fef8d31ccab0850153 | Shell | atsmin/hinemos-playground | /web/run.sh | UTF-8 | 345 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Start hinemos_web
/opt/hinemos_web/bin/tomcat_start.sh -Wq
status=$?
if [ $status -ne 0 ]; then
echo "Failed to start hinemos_web: $status"
exit $status
fi
while sleep 60; do
ps aux |grep hinemos |grep -q -v grep
STATUS=$?
if [ $STATUS -ne 0]; then
echo "hinemos processes has already exite... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.