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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fd039c2fea4f4fc00b7d8aa298a9e2a82875be07 | Shell | vusec/osiris | /apps/minix/scripts/drec_siteid2caller.sh | UTF-8 | 958 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ $# -lt 2 ]
then
echo "Usage: $0 <server> <site id>"
exit 1
fi
if [ "$MROOT" == "" ]
then
echo "Please set MROOT env variable and try again."
echo "MROOT : path to llvm-apps/apps/minix directory"
exit 1
fi
MTOOLS=$MROOT/obj.i386/"tooldir.`uname -s`-`uname -r`-`uname -m`"/bin
SRVBIN="$MROOT/... | true |
f58a925ca81c0c3a4f70cf18657967e51ddc6b3c | Shell | AlphenLai/Shell_Scripts | /_startall.sh | UTF-8 | 841 | 3.046875 | 3 | [] | no_license | #!/bin/bash
set timeout 500
echo "Is this the first time after your pi boots? (y/n)"
read ans
while (( "$ans" != 'y' || "$ans" != 'n' )); do
echo "(y/n)"
read ans
done
#read ans
#echo "hi $ans"
if [[ $ans == 'y' ]]; then
xterm -hold -e "~/aruco_maker_script/1_cam.sh" & sleep 5
xterm -hold -e "~/aruco_maker_scr... | true |
412c8446962dd5fd15ee4655c52619f4c9cd5cc8 | Shell | mcandre/rustx | /build/rustt | UTF-8 | 283 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# compile and run test code
if [[ ! "${1#*.}" == "rs" ]]
then
ME="$(basename "$0")"
echo "Usage: $ME rust-source-file.rs"
exit 1
fi
TORUN="$(mktemp -t rustt.XXXXXXXXXX)"
SOURCE="$1"
shift 1
rustc -L . --test -o "$TORUN" "$SOURCE" \
&& exec "$TORUN" $@
| true |
13a88d920075b83cf637eb90e3976a8c3527ce11 | Shell | mgrusconi/scripts | /pluggins_git/files/git_plugins_color_branch/bashrc | UTF-8 | 337 | 3.5 | 4 | [] | no_license |
# git-related functions in here
git_branch () {
GIT_BRANCH="$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')"
if [[ -n "$GIT_BRANCH" ]] ; then
echo "[$GIT_BRANCH]"
fi
}
# bash prompt
prompt () {
PS1='\u@\h:\w\[\033[0;36m\]$(git_branch)\[\033[0m\]$ '
}
PROMPT_COMMAND=prompt
expor... | true |
024dbbf97d5bb5bf50837aa192f6f1946c7aabc6 | Shell | artnez/environment | /scripts/remove-dotfile-symlinks | UTF-8 | 363 | 3.515625 | 4 | [] | no_license | #! /usr/bin/env bash
BASEPATH=`cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd`
for LINK in $HOME/.*; do
if [ ! -h $LINK ]; then
continue
fi
LINKPATH=$(python -c "import os.path, sys; print(os.path.realpath(sys.argv[1]))" $LINK)
if [[ ! $LINKPATH == $BASEPATH/* ]]; then
continue
fi
... | true |
2226321ea290b6b23a1f838eb0ac2ead200ea193 | Shell | AMeikle99/COMP2041-Ass1 | /test09.sh | UTF-8 | 867 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#Test 10 - Testing rm - with flags 1 for --cached, one for --force, both with exit status 0 to test for.
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
bell=`tput bel`
rm -rd ".legit"
./legit.pl init > /dev/null 2>&1
seq 1 10 > a #same as repo
#Add files and commit normally
./legit.pl add a
... | true |
e15e369968c559fa7c153b25d924ba69a9ec7874 | Shell | EvanHahn/dotfiles | /home/bin/bin/copy | UTF-8 | 336 | 3.359375 | 3 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
set -e
set -u
if hash pbcopy 2>/dev/null; then
exec pbcopy
elif hash xclip 2>/dev/null; then
exec xclip -selection clipboard
elif hash putclip 2>/dev/null; then
exec putclip
else
rm -f /tmp/clipboard 2> /dev/null
if [ $# -eq 0 ]; then
cat > /tmp/clipboard
else
cat "$1" > /tmp/cl... | true |
868e92b8ad5d538ce249fa108c351d471407cb07 | Shell | ev3dev/docker-library | /ev3dev-stretch/layers/base/brickstrap/_report/release-notes.sh | UTF-8 | 468 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#
# Create a release notes template file.
REPORT_DIR="/brickstrap/_report/_out"
REPORT_FILE="$REPORT_DIR/$BRICKSTRAP_IMAGE_NAME-release-notes.md"
echo "Creating $REPORT_FILE template..."
cat > "$REPORT_FILE" << EOF
Release notes for $BRICKSTRAP_IMAGE_NAME
========================================
Changes ... | true |
0a99a8bc1838f4082028d3f64f8558bf3a9cdcbf | Shell | AzusaOS/azusa-opensource-recipes | /media-gfx/blender/blender-3.3.6.sh | UTF-8 | 4,759 | 2.703125 | 3 | [] | no_license | #!/bin/sh
source "../../common/init.sh"
inherit python
get https://download.blender.org/source/${P}.tar.xz
acheck
cd "${S}"
apatch "$FILESDIR/blender-3.3.0-fix-build-with-boost-1.81.patch"
# slot
BV="${PV%.*}"
# Disable MS Windows help generation. The variable doesn't do what it
# it sounds like.
sed -e "s|GENERAT... | true |
a351c754b68960020da1748f29241c1ea04412e6 | Shell | ballab1/production-s3 | /grafana.setup | UTF-8 | 3,555 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#############################################################################
#
# initialization for grafana
#
#############################################################################
[ "${CONFIG_DIR:-}" ] || CONFIG_DIR="$(pwd)"
[ "${WORKSPACE_DIR:-}" ] || WORKSPACE_DIR="$(pwd)/workspace.$(basename... | true |
e3d4b9adf21beedac5bd73453c5ddf14398f1219 | Shell | vh21/fuego | /fuego-ro/toolchains/tools.sh | UTF-8 | 2,096 | 2.953125 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | # Copyright (c) 2014 Cogent Embedded, Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish... | true |
ed40f2068d2abd2881272094babd6b3cc2700026 | Shell | Fedkasin/lot-management-client | /bin/start | UTF-8 | 546 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
SCRIPTPATH="$(dirname $(realpath -s $0))"
echo "Updating the app config..."
$SCRIPTPATH/create_config $(realpath ${SCRIPTPATH}/../src/constants/environment.js)
echo "Checking Expo Auth..."
if [ -z $EXPO_USER ] && [ -z $EXPO_PASSWORD ]
then
echo "Expo credentials are not set, skipping log in."
... | true |
9027b373380368f45f860d46db1e5714821d46b6 | Shell | rshwet14/Real-Life-Script | /log-alert | UTF-8 | 463 | 3.125 | 3 | [] | no_license | #!/bin/bash
# Author: Shwet Raj
# Date: 23/10/20
# Description: This script will send syslog file through email to administrator
# Modified: 23/10/20
#This script will work only if your system environment have mail relay server installed.
systems="rshwet14@gmail.com,rajshwet07@gmail.com"
if [ -s /tmp/filtered-mes... | true |
1cd0556db9fa1567bf56f4469ee38fbf73b26238 | Shell | joshpennington/MySQL-Vagrant | /bootstrap.sh | UTF-8 | 794 | 3 | 3 | [] | no_license | #! /usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
MYSQL_ROOT_PASSWORD="password"
apt-get update > /dev/null 2>&1
echo -e "\n --- Installing MySQL 5.6 ---\n"
echo mysql-server-5.6 mysql-server/root_password password $MYSQL_ROOT_PASSWORD | debconf-set-selections
echo mysql-server-5.6 mysql-server/root_passwo... | true |
66eec9551cf19a7e895ab5f303c4b22ade1b9589 | Shell | kangdazhi/AUTOSAR-1 | /core/scripts/sphinx/build_doc.sh | UTF-8 | 3,549 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#rm -rf _build_can/html/
#rm -rf _build_can/latex/
#rm -rf _build_can/html_mcu_mpc55xx/
#rm -rf _build_can/html_mcu_tms570/
#rm -rf _build_can/latex_mcu_mpc55xx/
#rm -rf _build_can/latex_mcu_tms570/
function check_precond() {
# Check gcc
if ! [ -x "$(command -v gcc)" ]; then
echo 'Error: gcc is ... | true |
153d975c24471ac16578ed88945e37aa3adf1ae5 | Shell | vishr/FrameworkBenchmarks | /toolset/setup/linux/systools/leiningen.sh | UTF-8 | 462 | 3.171875 | 3 | [] | no_license | #!/bin/bash
RETCODE=$(fw_exists ${IROOT}/lein.installed)
[ ! "$RETCODE" == 0 ] || { \
source $IROOT/lein.installed
return 0; }
mkdir -p lein/bin
fw_get -o leinbin https://raw.github.com/technomancy/leiningen/stable/bin/lein
mv leinbin lein/bin/lein
chmod +x lein/bin/lein
LEIN_HOME=$IROOT/lein
echo "export LEIN_H... | true |
5a08a25a179f9ed3b3da10d9ccc99d224e5897cb | Shell | nima/wmiii | /statusbar.d/34-fnotify | UTF-8 | 1,662 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. "${WMII_CONFPATH%%:*}/statusbar.conf"
THEME=HW
SYMBOL=2588
requires lck || exit 97
loc=-1
msg=-1
msgi=-1
rst() {
if [ $1 -gt 0 ]; then
rm -f ${SB_STAGE_F}
fi
if [ ! -f ${SB_STAGE_F} ]; then
rsync -e 'ssh -q' -q epenguin1-10.appmgmt.det.nsw.edu.au:.irssi/fnotify ${SB_STAGE_F... | true |
a20111c88c364a8b29bd271642a0eb843e7a78b8 | Shell | hans511002/erydb_rep | /utils/scenarios/perf/sh/pfExeSQLscript.sh | UTF-8 | 601 | 3.484375 | 3 | [] | no_license | #!/bin/bash
#
# This script does the following:
# 1) Executes supplied SQL script on test database and captures output to file
#
#$1 = Test database name
#$2 = SQL script to execute
if [ $# -lt 2 ]
then
echo***** Syntax: pfExeSQLScript.sh testDBName scriptFileName
exit 1
fi
#
logFileName=`ba... | true |
4c8dcd576e2b35d726c51655db84bd90890b8098 | Shell | MikimotoH/firmadyne | /scripts/pro_vuln.sh | UTF-8 | 851 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -u
IIDS=$(scripts/psql_firmware.py "SELECT id FROM image WHERE network_reachable=True AND (vulns IS NULL OR ARRAY_LENGTH(vulns,1)=0) ORDER BY id")
for IID in $IIDS ; do
# net_reachable
python3 -u scripts/test_network_reachable.py ${IID} test | tee test_network_reachable.log
net_rea... | true |
03514fb3c6deee04fc163223c0a908366794bc0c | Shell | organicmaps/organicmaps | /iphone/Maps/run-script-for-cmake.sh | UTF-8 | 611 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script builds C++ core libs and inserts some private variables.
# Should be run from Run Script phase in target's settings.
LOWERED_CONFIG=`echo $CONFIGURATION | tr [A-Z] [a-z]`
CONF="debug"
if [[ "$LOWERED_CONFIG" == *release* || "$LOWERED_CONFIG" == *production* || "$LOWERED_CONFIG" == *adhoc* ]];... | true |
4bf40c594a77fcaac6073c2f9a358d7f392ddef9 | Shell | junland/LFScm | /resources/make-scripts/toolchain/tools/21.binutils.sh | UTF-8 | 421 | 2.59375 | 3 | [] | no_license | #!/bin/bash
set -e
tar xvf binutils.tar.gz
cd binutils
mkdir -v build
cd build
../configure \
--prefix=$LFS/usr \
--build=$(../config.guess) \
--host=$LFS_TGT \
--disable-nls \
--enable-shared \
--disable-werror \
--... | true |
a94d63675063d01bee762e0cf17bff87aac977c1 | Shell | KyleJHarper/stupidbashtard | /sbt/test__function.sh | UTF-8 | 5,312 | 3.765625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Copyright 2013 Kyle Harper
# Licensed per the details in the LICENSE file in this package.
function test__function {
#@Author Hank BoFrank
#@Date 2013.03.04
#@Usage test__function [-D 'search for string' [-D ...]] [-h --help] [-v --verbose] <file>
#@Dep grep 2.0+ it's awesome
#@dep ... | true |
e0148e546c01117919746bbd786953b839acd29e | Shell | 96boards-hikey/aosp-device-linaro-hikey | /installer/hikey/flash-all.sh | UTF-8 | 2,102 | 3.625 | 4 | [] | no_license | #!/bin/bash
if [ $# -eq 0 ]
then
echo "Provide the right /dev/ttyUSBX specific to recovery device"
exit
fi
if [ ! -e "${1}" ]
then
echo "device: ${1} does not exist"
exit
fi
DEVICE_PORT="${1}"
PTABLE=ptable-aosp-8g.img
if [ $# -gt 1 ]
then
if [ "${2}" == '4g' ]
then
PTABLE=ptabl... | true |
d86ff9b0f1a1bac5c5b9abbbddd4ed28fe275541 | Shell | isovector/tino | /bin/conky-jobs | UTF-8 | 865 | 3.34375 | 3 | [] | no_license | #! /usr/bin/bash
for FILE in /home/sandy/.jobs/*; do
TAG=$(sed -n 2p $FILE | tr -d \\n)
TIME=$(arbtt-stats -m0 | grep $TAG | cut -d'|' -f2 | xargs)
day_pattern="^([0-9]+)d0?([0-9]+)h0?([0-9]+)m"
noday_pattern="^0?([0-9]+)h0?([0-9]+)m"
OFFSET=$(sed -n 4p $FILE | tr -d \\n)
if [[ $TIME =~ $day_pattern ]]; then
DAY... | true |
51586123fde6a63845f317eca0872a0dff33723d | Shell | kgoel9899/Shell_Scripting | /ex/test | UTF-8 | 128 | 2.84375 | 3 | [] | no_license | #!/bin/bash
for car in date pwd
do
echo "car make (list) $car" $($car)
done
for i in 1 2
do
echo "$i * $i = " $(($i * $i))
done
| true |
48dcd489be073185fb474be0ed997f4a23c7c87f | Shell | Otus-DevOps-2021-05/cmltaWt0_infra | /packer/scripts/install_mongodb.sh | UTF-8 | 508 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/sh
sleep 30;
apt-get install -y apt-transport-https ca-certificates
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
apt... | true |
1c6db7037824d1ab34adde1e4d639303c49b2669 | Shell | blankon-packages/pkgbinarymangler | /pkgmaintainermangler | UTF-8 | 2,076 | 3.484375 | 3 | [] | no_license | #!/bin/bash -e
CONFFILE=/etc/pkgbinarymangler/maintainermangler.conf
CONFFILE=${PKGBINARYMANGLER_CONF_DIR:-/etc/pkgbinarymangler}/maintainermangler.conf
OVERRIDEFILE=${PKMAINTAINERGMANGLER_OVERRIDES:-/etc/pkgbinarymangler/maintainermangler.overrides}
. ${PKGBINARYMANGLER_COMMON_PATH:-/usr/share/pkgbinarymangler}/comm... | true |
7656eac968aea8be02fd2aafd5ceee114799f574 | Shell | klaud-speech/espnet | /egs/voxforge/asr1/run_in_docker.sh | UTF-8 | 1,175 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
gpu=0
name="chainer300_cudnn7.0_nossh"
image="chainer/3.0.0nossh:9.0-cudnn7-16.04"
while test $# -gt 0
do
case "$1" in
--gpu) gpu=$2
;;
--*) echo "bad option $1"
exit 1;;
*) echo "argument $1"
exit 1;;
esac
shift
shift
done
docke... | true |
418d612920fb642b2ede7af1532ad60f75507c4f | Shell | n0ts/dotfiles | /dot.zshrc | UTF-8 | 16,063 | 3.078125 | 3 | [] | no_license | #!/bin/zsh
# see manual umask
umask 022
# core dump size
limit coredumpsize 0
# see manual zshoptions(1)
setopt ALWAYS_TO_END # If unset, key functions that list completions try to return to the last prompt if given a numeric argument. If set these functions try to return to the last prompt if given no numeri... | true |
9c26d4ff37fc10985d4ea8558db4f268afb10fa6 | Shell | smmzhang/mf2f | /run.sh | UTF-8 | 3,584 | 3.078125 | 3 | [] | no_license | #!/bin/bash
input=$1
ref=$2
first=$3
last=$4
data=$5
format=03
noise_level=25
PYTHON=python3.6
##make data folder and sub-folders
if [ ! -d $data ];then
mkdir $data
fi
if [ ! -d $data/flow ];then
mkdir $data/flow
fi
if [ ! -d $data/mask_collision ];then
mkdir $data/mask_collision
fi
if [ ! -d $data/m... | true |
87eeaca7608e192bae7285b6b57fa312b23419d0 | Shell | ifireball/scripts | /cloneVM.bash | UTF-8 | 2,380 | 3.890625 | 4 | [] | no_license | #!/bin/bash
# cloneVM.bash - This script clones the "CentOS" VirtualBox VM, it can be made
# to clone other VMs with a very simple configuration change,
# see below.
#
# Copyright 2007 Barak Korren
#
# This program is free software: you can redistribute it and/or modify
# it under t... | true |
a55d5c4aac651c973fc7ceeb861b77b6be94cdb9 | Shell | pristinenoise/dots | /os/osx/apps.sh | UTF-8 | 1,803 | 2.96875 | 3 | [
"MIT"
] | permissive | #
# Application installer (via brew-cask)
#
set -e
# Apps
apps=(
qlcolorcode
appcleaner
qlmarkdown
seil
vagrant
flash
iterm2
qlprettypatch
shiori
sublime-text3
virtualbox
flux
qlstephen
sketch
vlc
cloudup
font-m-plus
nvalt
quicklook-json
skype
transmission
apikitchen
mamp... | true |
71cf269f0941f5d8c7685c099bbbe01d14784aad | Shell | brewingcode/dotfiles | /bin/imgimg | UTF-8 | 3,078 | 4.40625 | 4 | [] | no_license | #!/bin/bash
# Stitch two images together with optional captions
# Copyright kray.me 2019
VERTICAL=''
usage() {
echo "Usage: $0 [OPTIONS] IMAGE_1 IMAGE2
Stitch two images and put captions below. Image path is echo'd to stdout,
and the image itself is copied to the pasteboard.
OPTIONS
-l, --labels Add labe... | true |
faace0e43086119860a85a293eb71f79ca342ddd | Shell | LabDwellers/ConkyConfig | /Zanty/current/configscripts/setup | UTF-8 | 1,715 | 3.90625 | 4 | [] | no_license | #!/bin/sh
# This is a simple script that should allow the installation of a conky file
# to be simple and painfree. The idea is that once the user has cloned the git
# repository, a quick running of the setup script allows the ease of installation
# that many conky's seem hard to do.
printf "Setting up conky in the cur... | true |
e7e454e4213ba703f74739c898d6e663e4723368 | Shell | spdk/spdk | /test/ftl/restore.sh | UTF-8 | 2,374 | 3.5 | 4 | [
"Intel",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Intel Corporation
# All rights reserved.
#
testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../..)
source $rootdir/test/common/autotest_common.sh
source $testdir/common.sh
rpc_py=$rootdir/scripts/rpc.py
mount_dir=$(... | true |
a4c73a8b3b796b907934862db9ab04d2de3c3552 | Shell | GA-CyberWorkforceAcademy/kinetic | /bootstrap/bootstrap.sh | UTF-8 | 3,795 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run this script as the root user or with sudo"
exit
fi
if [ $# -lt 8 ]; then
echo 1>&2 "$0: not enough arguments"
exit 2
fi
while getopts ":i:f:p:k:" opt; do
case ${opt} in
i )
interface=$OPTARG
;;
f )
fileroot=$OPTARG
;;
... | true |
d686c5b85568c3ea35e1c947f37bb4d7f5b1f16d | Shell | TatriX/dull-of-war | /assets/compile.sh | UTF-8 | 286 | 3.203125 | 3 | [] | no_license | #!/bin/sh
pattern=$1
output=$2
if [ -z "$pattern" -o -z "$output" ]; then
echo Usage $0 pattern output
echo Example: $u \'j\?.png\' jeep.png
exit;
fi
set -x
convert $pattern +append f1.png
convert f1.png -flop f2.png
convert f1.png f2.png +append $output
rm f1.png f2.png
| true |
62bc381e1b17c716fdb7745f84609db308e1b7c7 | Shell | tnc-ca-geo/animl-ml | /scripts/get-libs.sh | UTF-8 | 1,982 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Clone sagmaker-tensorflow-serving-container
# and Microsoft's CameraTrap repos
parentPath=$(cd ../ && pwd)
cameraTrapDir=CameraTraps
cameraTrapRepo=https://github.com/microsoft/CameraTraps
cameraTrapCommit=625c1f430bc0c832951a9707a97d446b57e3741e
sagemakerContainerDir=sagemaker-tensorflow-serving-cont... | true |
c3e8778d3f128dea83d20b46cd6e7fa0b4629f85 | Shell | akosasante/TradeMachineServer | /check_migrations.sh | UTF-8 | 132 | 2.71875 | 3 | [] | no_license | #!/bin/bash
if [ "$(ls -A dist/db/migrations | grep $1)" ]; then
echo "Not Empty" && exit 1
else
echo "Empty" && exit 0
fi
| true |
886bb6e4512584e4ce4feb59021795bfb22eb774 | Shell | delkyd/alfheim_linux-PKGBUILDS | /avxsynth-plugin-masktools2-git/PKGBUILD | UTF-8 | 893 | 2.71875 | 3 | [] | no_license | # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
_plug=masktools2
pkgname=avxsynth-plugin-${_plug}-git
pkgver=20120620.d1028fd
pkgrel=1
pkgdesc="Plugin for Avxsynth. ${_plug} (GIT Version)"
arch=('i686' 'x86_64')
url="https://github.com/fundies/MaskTools2-linux"
license=('GPL')
depends=('avxsynth')
makedepends=('gi... | true |
756d2cd27e8c8441c56182dacffcb8823afb62c8 | Shell | BuenoAlex/Exercicios_SHELL | /processoseletivo/script_create_users.sh | UTF-8 | 639 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#Atividades:
#1- Varrer o diretório procurando arquivos csv
#2- Ler o arquivo
#3- Realizar o insert das linhas
read_file_content(){
local file_name=$1
sed 1d $1 | while IFS='\n' read line
do
echo $line | while IFS=';' read NOME CIDADE CARGO
do
if sudo adduser $NOME --gecos $CIDADE,$CARGO ... | true |
f0359cb9c8e22fdc03ffbc90478f05f759b0512d | Shell | twz123/zksr | /files/usr/local/bin/start-schema-registry.sh | UTF-8 | 586 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env sh
# Ensure Kafka is up
KAFKA_OK=0
for i in $(seq 1 30); do
[ -z "$( "$KAFKA_HOME/bin/kafka-topics.sh" --zookeeper localhost:2181 --list | head -n1 )" ] && {
KAFKA_OK=1
break
}
sleep 0.1
done
[ $KAFKA_OK -eq 1 ] || exit 1
# Run schema registry
cd $SCHEMA_REGISTRY_HOME && \... | true |
867300887a9d234af652bf171b788d04e09462f0 | Shell | Daisymoo/DishCollectionTracker | /SourceCode | UTF-8 | 40,256 | 3.40625 | 3 | [] | no_license | #! /bin/bash
#Jessica Kovarik
#Dish Collection Tracker program allows users to track personal collection
#of select vintage dish brands. Users can also see listing of all known pieces
#to aid in building collection. Images are available of some dishes to help
#with identification of pieces.
#user starts program, menu a... | true |
157d50d0dbb6d0407ab1016ff19d54715a44a274 | Shell | ximinez/git-scripts | /git-pending | UTF-8 | 1,252 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Searching for .git without checking type handles git worktrees.
# TODO: Make the ignore list a param, but for now this works.
if [[ $1 == "-v" ]]
then
verbose=1
shift
fi
if [[ $1 == "--remote" ]]
then
shift
[[ $# == 1 ]] || exit 1
tmp=$1
shift
# If in a valid git dir, succeeds, so continu... | true |
e846518d54e800e6f37d595079f2de8ff04844b4 | Shell | vsanna/dd_systemd | /init.d/hello | UTF-8 | 332 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# chkconfig: 2345 10 90
HELLO_PATH="/usr/lib/hello/mycmd.sh"
case "$1" in
start)
sh HELLO_PATH
# do some stuff to start the process
;;
stop)
echo "stopped!"
# do some stuff to stop the process
;;
status)
echo "status:..."
# show some info regarding the process
;;
*)
echo "invalid option."
exit ... | true |
a7a382a2304ea3c970f4f36515d9a613c4fb62ff | Shell | kgleason/DotFiles | /bash_profile.d/functions.sh | UTF-8 | 670 | 3.875 | 4 | [] | no_license | # I dig this dd function, but I didn't write it.
# I found it here: http://askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd
dd()
{
local dd=$(which dd); [ "$dd" ] || {
echo "'dd' is not installed!" >&2
return 1
}
local pv=$(which pv); [ "$pv" ] || {
echo "'pv' is... | true |
2b9779ef8e1a3c91441af031449c3fccd0f4e188 | Shell | barbagroup/petibm-rollingpitching | /runs/scripts/generate_all_figures.sh | UTF-8 | 1,406 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
cd $(dirname "$(dirname $0)")
printf "\n*** Generating figures (independence study) ...\n"
/bin/bash independence/scripts/generate_figures.sh
printf "\n*** Generating figures (baseline case) ...\n"
/bin/bash Re200_St0.6_AR1.27_psi90/scripts/generate_figures.sh
printf "\n*** Generating figures (S... | true |
6065a144a4edfb774db068a9e2a51b4aa5d77cf1 | Shell | deionizedoatmeal/popdots | /scripts/rofimenu-power.sh | UTF-8 | 860 | 3.703125 | 4 | [] | no_license | #!/bin/bash
rofi_command="rofi -lines 3 -width 15"
profile="$(system76-power profile | sed -n -e 's/^.*Profile: //p')"
### Options ###
if [ "$profile" = "Performance" ]
then
preformance=" performance <-"
else
preformance=" performance"
fi
if [ "$profile" = "Balanced" ]
then
balanced=" ... | true |
0f1726841d5aedb6f6873ef442b4c10d1bf85fa5 | Shell | xuyinhao/lgpbenchmark | /loongoopBench/api/bin/find/case/1-2 | UTF-8 | 365 | 2.65625 | 3 | [] | no_license | #!/bin/bash
##
nfilePath="${apiPath}/find-1-2.中文!@#$%^&\*()_+\{}-=\[];\"\\|<>\?,.'f"
ndirPath="${apiPath}/find-1-2.中文!@#$%^&\*()_+\{}-=\[];\"\\|<>\?,.'d"
$touchz $nfilePath 2>/dev/null
$mkdir -p $ndirPath 2>/dev/null
rett=`$find ${apiPath} -name "find-1-2.中文!@#$%^&\*()_+\{}-=\[];\"\\|<>\?,.'*" 2>/dev/null`
checkOk ... | true |
fe225f5beae31e7be32bfd1f0316116d435b3d2b | Shell | Adonis-wk/indexDemo | /hostBash.sh | UTF-8 | 286 | 3.171875 | 3 | [] | no_license | #!/bin/bash
DEFAULT_FILE="/etc/jdos_host"
START_TAG="/opt/host_started"
if [ -f "$DEFAULT_FILE" ]; then
if [ ! -f "$START_TAG" ]; then
# touch "$START_TAG"
cat "$DEFAULT_FILE" | while read line || [[ -n ${line} ]]
do
echo "${line}" >> /etc/hosts
done
fi
fi | true |
9b32279580b169ed365dc4603f6b2fac5e648f61 | Shell | vinceliuice/WhiteSur-gtk-theme | /src/assets/gtk/thumbnails/render-thumbnails.sh | UTF-8 | 1,016 | 3.3125 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
INKSCAPE="/usr/bin/inkscape"
OPTIPNG="/usr/bin/optipng"
./make-thumbnails.sh
for theme in '' '-blue' '-purple' '-pink' '-red' '-orange' '-yellow' '-green' '-grey'; do
for type in '' '-nord'; do
SRC_FILE="thumbnail${theme}${type}.svg"
for color in '-light' '-dark'; do
echo
... | true |
92f5bc52a4b3e31a3deb8ec0e6d53982d92f91c6 | Shell | Azure/ato-toolkit | /software factory/installer-connected/ring-0/aks/src/runtime/cluster-on-boarding/scripts/on_board_cluster.sh | UTF-8 | 7,374 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -*- coding: utf-8 -*-
set -euo pipefail
# shellcheck disable=SC2034
read -r -d '' __usage <<-'EOF' || true # exits non-zero when EOF encountered
-f --file [arg] Config Filename to use.
-v Enable verbose mode, print script as it is executed
-d --debug Enables debug mode... | true |
e1186523edf969b6ba82250fe5c2c01f0143d870 | Shell | Lou00/d3ctf_2019_ezupload | /docker/file/run.sh | UTF-8 | 996 | 3.0625 | 3 | [] | no_license | #!/bin/bash
service apache2 start
#tail -F /var/log/apache2/access.log
export MD5=`echo -n $RANDOM | md5sum | cut -d ' ' -f1`
export WEBROOT=${MD5:0:16}
printf "$(cat /etc/apache2/sites-enabled/default.conf)" $WEBROOT > /etc/apache2/sites-enabled/000-default.conf
mv /var/www//html/* /var/www/html/$WEBROOT
chmod 777 /v... | true |
a99b1a8f8937159d6ed3b5f81cac2d550708c2d9 | Shell | wangsl/compiler-wrapper-2020 | /link.sh | UTF-8 | 263 | 2.625 | 3 | [] | no_license | #!/bin/sh
# $Id$
compilers="cc c++ f77 g++ g77 gcc gfortran icc icpc ifort mpic++ mpicc mpiCC mpicxx mpif77 mpif90 pgf77 pgf90 pgfortran pgcc pgc++ clang++"
for comp in $compilers; do
echo $comp
rm -rf $comp
ln -s compiler-wrapper.bash $comp
done
| true |
46d5a7dd926dd9dcc8d2a2994476a3e40eae9172 | Shell | karo-electronics/meta-karo-distro | /recipes-graphics/wayland/weston/xwayland.weston-start | UTF-8 | 118 | 2.578125 | 3 | [] | no_license | #!/bin/sh
if type Xwayland > /dev/null 2>/dev/null;then
mkdir -p /tmp/.X11-unix
chmod 3777 /tmp/.X11-unix
fi
| true |
a4540ee2bb96acd489ab44ede5c1710efb5ce69a | Shell | YF18/shell | /memcached.sh | UTF-8 | 1,226 | 3.09375 | 3 | [] | no_license | #!/bin/bash
clear
tar zxvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local/libevent
make
make install
cd ../
tar zxvf memcached-1.4.24.tar.gz
cd memcached-1.4.24
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
make
make install
echo "==============... | true |
923837c9288e81ef1e3766fb897c5e3ff4e1fbe0 | Shell | mru00/junqer | /gen_test_dirs.sh | UTF-8 | 1,203 | 3.609375 | 4 | [] | no_license | #!/bin/bash -e
trap '{echo "some error occured, stopping."; exit 1;}' ERR
# create sample series file structure in the current directory
# mru, 2011-01
# sudo apt-get install mjpegtools imagemagick
SHOW="super show"
nseasons=4
nepisodes=10
nframes=100
format="%03d"
trap '{ rm ep???.jpg; }' exit
gen_image() {
... | true |
38b05da8de11c72a76d1668a371bb23238cd1e12 | Shell | carlulli/TDSE | /run_inttest_analytical.sh | UTF-8 | 676 | 2.625 | 3 | [
"MIT"
] | permissive |
IDIR="./include"
MDIR="./modules"
TDIR="./test"
# SDIR="./scripts"
# INCKISS
# compiler flags:
# -g adds debugging information to the executable file
# -Wall turns on most, but not all, compiler warnings
CFLAGS="-g -Wall"
# the build target executable:
TARGET="inttest_analytical"
# inclde directory
INCLUDE="-... | true |
f875f09a3c16a6b48c4ce59dc1393299dd005fb5 | Shell | Sanjit-Shelke/Operating_Systems | /Assignment-2/Assignment_2/fileNameSize.sh | UTF-8 | 151 | 3.203125 | 3 | [] | no_license | cd a
for i in *
do
if [ -e $i ]
then
file=`ls -l $i | awk '{print $5,$9}'`
if [[ "$file" < "5000" ]];
then
echo $file;
fi
fi
done
| true |
1ead56603329a9ff9e6010126676c928dabc988e | Shell | aaron-613/solace-app-testing | /automated-failover-test-semp.sh | UTF-8 | 3,567 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env sh
# https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html
ROUTER=localhost:8080
ADMIN_USER=admin
ADMIN_PW=admin
VPN=default
OUTAGE_LENGTH_SECONDS=5
VPN=default
CLIENT_USERNAME=default
CLIENT_PROFILE=default
ACL_PROFILE=default
#echo Getting hostname via SEMPv1..... | true |
5ba404a96f685bdf0fb1908fc33f966e6dbf435e | Shell | liqun1981/NERSC-HYCOM-CICE | /hycom/MSCPROGS/src/ExtractNC2D/m2t | UTF-8 | 181 | 2.78125 | 3 | [] | no_license | #!/bin/bash
#set -ex
# This assumes that the m2t routine is in the same dir as m2nc
prog="${0%m2t}m2nc"
# This flag allows for tecplot output from m2nc
args="-t $*"
$prog $args
| true |
0214ea78b6004e93e99b7864203096d97eda375b | Shell | perficient-msftnbu/OpenShiftOnAzure-Workshop | /WorkshopSetup/CreateProjects.sh | UTF-8 | 1,341 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
shouldDelete=0
while [ "$1" != "" ]; do
case $1 in
-d | --delete ) shouldDelete=1
;;
-p=* | --projectName=* )
baseProjectName="${1#*=}"
;;
-u=* | --userName=* )
baseUserName=${1#*=}... | true |
e7d2d86765ff6e01ab7605d6efeaf1fa1c487ee0 | Shell | stonebig/qtpy | /ci/test-pyside2.sh | UTF-8 | 882 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
export PATH="$HOME/miniconda/bin:$PATH"
source activate test
# Download PySide2 wheel
wget -q https://bintray.com/fredrikaverpil/pyside2-wheels/download_file?file_path=ubuntu14.04%2FPySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl -O PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl
# We only use container 0 fo... | true |
cea83b7fcc353c0edd12c00bde82878e274de748 | Shell | hongdongxiao/ansible | /roles/install_zabbix_agentd/files/install_zabbix.sh | UTF-8 | 452 | 2.96875 | 3 | [] | no_license | #!/bin/sh
### zabbix client install
### by hongdongxiao 2016-12-17
grep -q "zabbix" /etc/group
GROUP_IS=$?
if [ $GROUP_IS -eq 1 ];then
groupadd zabbix
fi
grep -q "zabbix" /etc/passwd
USER_IS=$?
if [ $USER_IS -eq 1 ];then
useradd -g zabbix zabbix -M -s /sbin/nologin
fi
ZABBIX_VERSION="2.4.7"
cd /tmp
tar -zxvf zabbi... | true |
b086a8b8e383c28d3a8b23736327bfd3a308c605 | Shell | openstack/neutron | /neutron/tests/contrib/gate_hook.sh | UTF-8 | 2,637 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -ex
VENV=${1:-"api"}
FLAVOR=${2:-"all"}
GATE_DEST=$BASE/new
NEUTRON_DIR=$GATE_DEST/neutron
GATE_HOOKS=$NEUTRON_DIR/neutron/tests/contrib/hooks
DEVSTACK_PATH=$GATE_DEST/devstack
LOCAL_CONF=$DEVSTACK_PATH/late-local.conf
RALLY_EXTRA_DIR=$NEUTRON_DIR/rally-jobs/extra
DSCONF=/tmp/devstack-tools/b... | true |
736ba1d6b33aec64e206cd0b76340c5837e339df | Shell | Manny27nyc/gh-clean-branches | /gh-clean-branches | UTF-8 | 3,404 | 4.375 | 4 | [
"MIT"
] | permissive | #!/bin/zsh
# safely delete local branches that have no remotes and no hanging changes
# will not delete branches with not commited changes
# run inside a git repo folder
DRY_RUN=false
if [ $# -gt 0 ]; then
case "$1" in
--dry-run )
DRY_RUN=true
;;
--force)
FORCE_DELETE=true
;;
* )... | true |
10d8f4542cdf7e13bb72920acbccfc5b89539b6b | Shell | superwf/dotfiles | /install.sh | UTF-8 | 641 | 2.578125 | 3 | [] | no_license | #!/bin/bash
# check command exist
type curl > /dev/null 2>&1 || sudo apt-get curl -y
type git > /dev/null 2>&1 || sudo apt-get git-core -y
type nvim > /dev/null 2>&1 || sudo apt-get nvim -y
sudo bash symlink-dotfiles.sh
# install nvm then use nvm install nodejs
test -d ~/.nvm || curl -o- https://raw.githubusercontent... | true |
4ca3d93d81dba0db595458173a8c1a99015b3cf0 | Shell | Gnado/trprinter | /core/trprint.sh | UTF-8 | 2,823 | 3.71875 | 4 | [] | no_license | #! /bin/bash
#PARAMETERS
VERSION="0.1"
WORKDIR="~/tmp"
#CONFIG
#Load config printer
. trprint.cfg
#Printer command
PC_TP='\x12\x54' #Printing test page - DC2 T [Name]
PC_SC='\x1B\x37' #Setting Control Parameter Command - ESC 7 n1 n2 n3
version()
{
echo "TRPrinter version: $VERSION"
}
usage()
{... | true |
7718703fce0134e1e7061ee527ade28932053424 | Shell | jakeleichtling/Compiler | /SemanticRoutines/testing/run_all_error_tests.sh | UTF-8 | 2,764 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# run_all_error_tests.sh
#
# A bash script for running the compiler on all error tests {1-5,6a-6d,7-20}_error_test.c57.
# These C57 input files correspond to the error tests enumerated in ERROR_TESTING_README.
#
# Derek Salama & Jake Leichtling
# 5/29/2013
# Note: Must be run from the testing directory fo... | true |
b7ce3acd7cd5b6d45b507b8bb486307e735c684d | Shell | josefbacik/virt-scripts | /fedora/update-btrfs-progs.sh | UTF-8 | 459 | 2.859375 | 3 | [] | no_license | #!/bin/bash
. ./local.config
. ./common
[ "$#" -ne 1 ] && _fail "must specify a vm name"
read -r -d '' COMMAND << EOM
cd btrfs-progs
git reset --hard
git checkout master
git branch -D devel
git pull
git checkout devel
make clean-all
./autogen.sh
./configure --disable-documentation --enable-experimental --bindir=/usr... | true |
41ee73da0f9dfad36a63c9eb1bfa6e755e5764c6 | Shell | millaguie/mole | /script/travis_setup.sh | UTF-8 | 882 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2020 Jaume Martin
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed... | true |
18356ba78cc5c4512e949dff6aa26713c1e49b17 | Shell | dilanp/Azure-CLI | /Web-Apps/Containerised-ACR-CI-CD.sh | UTF-8 | 4,024 | 3.28125 | 3 | [] | no_license | #Login and set the correct Azure subscription.
# setup the variables.
acr_resource_group="PluralsightAcr"
resource_group="cicdappservice"
location="uksouth"
plan_name="cicdappservice"
app_name="cicd-pluralsight-1"
subscription_id=$(az account show --query id --output tsv)
az acr list \
-g $acr_resource_group \
... | true |
ef0559acfb66a418f125eb3dca9f3d5a6bd9fe07 | Shell | socallinuxexpo/scale-switch | /bin/version.sh | UTF-8 | 296 | 2.890625 | 3 | [] | no_license | #!/bin/sh
export CHANGES=""
git diff-index --quiet HEAD --
GOOD=$?
if [ ${GOOD} -ne 0 ]
then
CHANGES="-unclean"
fi
cat > src/version.cpp <<EOF
/**
* AUTOGENERATED -- DO NOT TOUCH, this means you, Lori
*/
const char* VERSION = "$(git rev-parse --short HEAD)${CHANGES}";
EOF
| true |
b4d61cdd6813b266b6819b72097aea7d3396fd01 | Shell | takuyan/dotfiles | /install.sh | UTF-8 | 2,821 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
rbenv_install_or_update()
{
echo "[CHECK] rbenv"
if [ -d $HOME/.rbenv ]
then
echo "[UPDATE] git pull rbenv"
cd $HOME/.rbenv
git pull origin master
ruby_build_install_or_update 1
else
echo "[INSTALL] git clone rbenv"
git clone git@github.com:rbenv/rbenv.git $HOME/.... | true |
4e2785f6ef8c4dab0556ac18263da99625c0758b | Shell | oliverangelil/MERGEDEX | /create_mergedataset_masked.sh | UTF-8 | 4,813 | 3.265625 | 3 | [] | no_license | #!/bin/bash
###################################################
# PRPCPTOT
###################################################
# declare paths
path_data='/path_to_data/GHCNDEX-HadEX2'
fname_H2='H2_PRCPTOT_1901-2010_RegularGrid_global_3.75x2.5deg_LSmask.nc'
fname_GHCND='GHCND_PRCPTOT_1951-2017_RegularGrid_global_... | true |
7d9554b2b43d921d2418188761846298e1d06be6 | Shell | relrod/aut | /pre/pip-latest.sh | UTF-8 | 278 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
set -eux
source pip-common.sh
source python-common.sh
# Upgrade pip
PIPVER="$($PYTHON <<EOF
import sys
if sys.version_info[:2] < (3, 6):
print("pip < 21")
else:
print("pip")
EOF
)"
$PIP install --upgrade "$PIPVER"
$PIP install $PRODUCT==$VERSION
| true |
15233c8a4ad78a47ea0328e0cd605ed567998eba | Shell | alldatacenter/alldata | /dts/airbyte/tools/status/init.sh | UTF-8 | 1,604 | 3.5 | 4 | [
"MIT",
"Elastic-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
set -e
# This script should only be used to set up the status site for the first time or to make your own version for testing.
# TODO move this setup to terraform
BUCKET=airbyte-connector-build-status
PROFILE=dev # AWS dev environment
REGION=us-east-2
S3_DOMAIN="$BUCKET.s3-website.$REGION.amazona... | true |
998d097a937a8d679d3283f015abdb786d2d4c74 | Shell | menny/docker_android | /android_studio/docker_as.sh | UTF-8 | 2,246 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if pgrep -x "Docker" > /dev/null
then
echo "Docker ready."
else
echo "Please start Docker and run this again."
exit 1
fi
if [ "Darwin" == "`uname`" ]
then
if pgrep -x "Xquartz" > /dev/null
then
echo "Quartz ready."
else
echo "Starting Quartz..."
if [ open -a XQ... | true |
70d975558671d2181cd2be81ed6df08b7c96b026 | Shell | c18s/LinuxScripts | /securing-ssh/securing-ssh.sh | UTF-8 | 1,869 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run as root'
exit 1
fi
SSHD_CONFIG_FILE=/etc/ssh/sshd_config
SSHD_CONFIG_BACKUP_FILE=/etc/ssh/sshd_config.backup
AUTHORIZED_KEYS_FILE=/etc/ssh/authorized_keys
if [ ! -e $SSHD_CONFIG_FILE ]; then
echo 'This operating system is not supported'
ex... | true |
9d752634ee4f214c8cfd7c6d1d036e81355291d5 | Shell | spork87/tcvt | /optcvt.sh | UTF-8 | 223 | 3.296875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
TCVT=./tcvt.py
MINWIDTH=80
SIZE=`stty size`
test $? = 0 || exit $?
COLUMNS="${SIZE#* }"
if test "$COLUMNS" -ge $((2*$MINWIDTH+1)); then
exec $TCVT "$@"
elif test -z "$@"; then
exec "$SHELL"
else
exec "$@"
fi
| true |
73e15c4dc0ab1b8d7153a30d120d58c6afb6d7db | Shell | zyaj/suntans-general-vertical-coordinate | /examples/iwaves/iwaves.sh | UTF-8 | 885 | 3.5625 | 4 | [] | no_license | #!/bin/sh
########################################################################
#
# Shell script to run a suntans test case.
#
########################################################################
SUNTANSHOME=../../main
SUN=$SUNTANSHOME/sun
SUNPLOT=$SUNTANSHOME/sunplot
. $SUNTANSHOME/Makefile.in
maindatadir=ru... | true |
da547ecbac3d0d11f4f0608bd1576cac61611ee3 | Shell | sdsmith/dotfiles | /.bashrc | UTF-8 | 5,927 | 3.234375 | 3 | [] | no_license | shopt -s expand_aliases
export PATH=/usr/local/homebrew/bin:${PATH}
function is_running_cygwin()
{
if uname -a | grep -qE "(CYGWIN|cygwin|Cygwin)" &> /dev/null ; then
return 0
else
return 1
fi
}
function is_running_windows_subsystem_linux()
{
if grep -qE "(Microsoft|WSL)" /proc/version &> /dev/null... | true |
83cb14d5750147fa5bbf7ff9dc28a3c54fabd01a | Shell | madmpro/dotfiles | /src/dotfiles/newsboat/bookmark.sh | UTF-8 | 502 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
[ "$#" -eq 0 ] && exit 1
if [ -n $(command -v curl) ]; then
url=$(curl -sIL -o /dev/null -w '%{url_effective}' "$1")
else
url="$1"
fi
url=$(echo "${url}" | perl -p -e 's/(\?|\&)?utm_[a-z]+=[^\&]+//g;' -e 's/(#|\&)?utm_[a-z]+=[^\&]+//g;')
baseurl=$(echo "${url}" | awk -F[/:] '{print $4}')
title="$2"
d... | true |
9eb8a98ec4e7f737fbf6b33aec5c6a02766c6e76 | Shell | hg8i/scripts | /pic | UTF-8 | 236 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# This script takes a screenshot
# Syntax: "pic FILE.png", or "pic"
# Aaron White 2019
if [ "$#" -lt 1 ]; then # run with pwd
gnome-screenshot -a -f ~/tmp.png
else
# run with pattern
gnome-screenshot -a -f $1
fi
| true |
1e8faf5c949d22daf1303bf95ca068e98ead04b1 | Shell | attixray/gtime | /doc/run-tests.sh | UTF-8 | 1,803 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
dir=`dirname $0`
tmp=${TMPDIR:-'/tmp/'}
# Test Anything Protocol, from http://testanything.org/
. ${dir}/tap-functions
host=${1:-'localhost'}
echo \# Using $host as Guardtime Gateway Server. Specify custom server as 1st command-line argument.
url_s="http://$host/gt-signingservice"
url_x="http://$host/gt-... | true |
d6f47ee1de277a788a2eb6dc80debfae915a251b | Shell | ctuning/ck-math | /package/lib-openblas-0.2.19-universal/scripts.android/install.sh | UTF-8 | 1,892 | 3.21875 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #! /bin/bash
#
# Extra installation script
#
# See CK LICENSE.txt for licensing details.
# See CK Copyright.txt for copyright details.
#
# Developer(s): Grigori Fursin, 2016-2017
#
# Check extra stuff
if [ "${CK_ANDROID_ABI}" == "arm64-v8a" ]; then
NO_LAPACK=${NO_LAPACK:-1}
TARGET=ARMV8
elif [ "${CK_ANDROID_ABI... | true |
8efa2db636cb11d6bd931605db067b275e0e8882 | Shell | dcastelob/criptografia | /cifra-de-cesar/cifra_cesar.sh | UTF-8 | 2,375 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# Script para realizar operação simples de criptografia usando a "cifra de cesar" - Especialização em Segurança Unibratec
# Autor: Diego Castelo Branco
# Data: 05/05/2018
#LETRAS=(a b c d e f g h i j k l m n o p q r s t u v w x y z " ")
LETRAS=(a b c d e f g h i j k l m n o p q r s t u v w x y z)
function... | true |
b90d8c5a2968d137063151beb2f0482c4b7331db | Shell | toddyamakawa/bin | /tmux-size | UTF-8 | 479 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
flags='#{pane_top} #{pane_bottom} #{pane_left} #{pane_right} #{pane_height} #{pane_width}'
name="$(basename "$0")"
read -r top bottom left right height width <<< $(tmux display-message -p "$flags")
echo "USAGE : read -r top bottom left right height width <<< \$($name)" 1>&2
echo "top left ... | true |
eda3c31afee5db111dc764826ea5df7badc9ae45 | Shell | jrp2014/grenade | /runIris.sh | UTF-8 | 829 | 3.75 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash -eu
example=iris
stack=cabal
dataset="iris.data"
datalab="iris.names"
url="https://archive.ics.uci.edu/ml/machine-learning-databases/iris/"
datadir="data"
args=""
if [ $# -ge 1 ]
then
case $1 in
(-?*)
echo >&2 "Missing initial data directory argument"
exit 1;;
(*)
datadir=$1
... | true |
affda1121b9f3cfd9982012cd4fc9fc0cac85dd2 | Shell | amritpal0210/dotfiles | /.bin/backup | UTF-8 | 1,030 | 2.703125 | 3 | [] | no_license | #!/usr/bin/bash
echo "Backing up dotfiles..."
cp ~/.vimrc ~/.backup/
cp ~/.bashrc ~/.backup/
cp ~/.dir_colors ~/.backup/
cp ~/.tmux.conf ~/.backup/
cp ~/.xinitrc ~/.backup/
cp ~/.eslintrc.js ~/.backup/
cp ~/.powerline-shell.json ~/.backup/
cp ~/.Xresources ~/.backup/
echo "Backing up Vim files..."
cp -r ~/.vim/ftplug... | true |
235a6d39326a79ca0ef3ce4143e14315a718cc83 | Shell | sgbd2206/caparledev-bot | /ci/build.sh | UTF-8 | 580 | 3.5 | 4 | [] | no_license | #!/bin/sh
# This script will be executed in a Docker container where the /home folder is mounted somewhere on the host.
# The container is created in stage of the build pipeline. The goal is to build the project for production and
# send the output in the hosts where a docker-compose.yml will build the image and run it... | true |
42bc9fa9f005c0fe1898de413809908453ec1ba4 | Shell | bcl-io/hmDNA | /gatk-tools-java/src/main/scripts/run_picard.sh | UTF-8 | 1,040 | 3.46875 | 3 | [
"Artistic-2.0",
"Apache-2.0"
] | permissive | #!/bin/bash
# Runs Picard tool specified on the command line, using GA4GH custom reader
# for getting the data from url based INPUTs.
# E.g. run_picard.sh ViewSam INPUT=<url>.
# Assumes directory structure where gatk-tools-java and picard repos reside
# in the same folder and client_secrets is in the same folder:
# ...... | true |
146d04a51c30d1805d0f0922afd431885d70bba5 | Shell | thyhum/vagrant-multi-machine-multi-environment | /thyvagrant | UTF-8 | 303 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Change this to your default VAGRANT_ENV
DEFAULT_VAGRANT_ENV='main'
[ -z "$VAGRANT_ENV" ] && export VAGRANT_ENV=$DEFAULT_VAGRANT_ENV
export VAGRANT_DOTFILE_PATH=".vagrant_${HOSTNAME}_${VAGRANT_ENV}"
export THYVAGRANT=YES
echo "Vagrant environment: ${VAGRANT_ENV}"
vagrant "$@"
| true |
a03e50e3c83b24bcfdf1a2132fc8c7ede24cb721 | Shell | marmalodak/dotlikefiles | /tmux_sessions.badboy.old/konsolesetup.jschmitt-dt | UTF-8 | 1,595 | 3.015625 | 3 | [] | no_license | #!/bin/bash
echo '===========================' >> /tmp/konsolesetup.out
echo $(date) >> /tmp/konsolesetup.out
source ~/lib/functions
# start my tmux sessions
for i in ~/tmux_sessions/*.session; do "$i" ; done
konsole --workdir '~' -e 'bash' > /tmp/konsole.$USER.out 2>&1
sleep 4
window_id=
while [[ -z $window_id ]];... | true |
8b149bb1637323567bf488f94fbae911ddd625c3 | Shell | richardklose/github-release-mirror | /mirror.sh | UTF-8 | 743 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
REPO=${1}
MIRROR_DIR="/mirror"
SRC_URL="https://api.github.com/repos/${REPO}/releases"
DEST="${MIRROR_DIR}/${REPO}"
RELEASES=$(curl ${SRC_URL} | jq '[.[] | {tag_name: .tag_name, draft: .draft, assets: [.assets[].browser_download_url]}]')
for RELEASE in $(echo ${RELEASES} | jq -r '.[] | @base64');... | true |
5b96b5cf184b9e8a6567ee4b7cad25427b402bc8 | Shell | erikvader/dotfiles | /scripts/.bin/yaycheckupdates | UTF-8 | 238 | 2.640625 | 3 | [] | no_license | #!/bin/sh
# Same as pacman's checkupdates except that every occurence of pacman
# in that script is replaced with yay to support AUR packages.
sed -E 's/ pacman / yay /g; s/^pacman /yay /g' "$(command -v checkupdates)" | bash -s
exit $?
| true |
9721b912d666448a10903201cf59244cb78066d3 | Shell | coreen/todo-app | /todo-app.sh | UTF-8 | 1,559 | 4.40625 | 4 | [] | no_license | #!/bin/bash
show_usage () {
echo "Usage:"
echo -e "\t todo list"
echo -e "\t\t show all todo records"
echo -e "\t todo add <record>"
echo -e "\t\t adds record to todo list"
echo -e "\t\t Note: put quotes around record string"
echo -e "\t todo delete <recordId>"
echo -e "\t\t removes record associated w... | true |
8adadad12a96fc5a30659a60799c2a9932b1bc2e | Shell | guardian/amigo | /roles/usage-monitoring-agent/files/monitoring.sh | UTF-8 | 2,108 | 4.1875 | 4 | [] | no_license | #!/bin/bash
set -e
GLOBIGNORE="*"
INSTALL_LOCATION="/opt"
function HELP {
>&2 cat << EOF
Usage: ${0} [-d diskpaths]
This script installs and schedules continous metrics gathering
of memory usage, (optionally) disk space usage and (optionally)
swap usage.
-d diskpaths [optional] Comma separated list o... | true |
39c0c7fc9e7d91a3af3ebbc416472e472c9ca192 | Shell | agua/bioapps | /bin/pancancer/pancan_all_readgroup_alignment.sh | UTF-8 | 395 | 3.3125 | 3 | [] | no_license | #!/bin/bash
ALIGN=/pancanfs/software/pancan_readgroup_alignment.sh
UUID=$1
INPUT_BASE=/pancanfs/splits
OUTPUT_BASE=/pancanfs/output
if [ ! -e $OUTPUT_BASE/$UUID ]; then
mkdir $OUTPUT_BASE/$UUID
fi
for BAM in $INPUT_BASE/$UUID/*.bam; do
# sudo docker run -v /pancanfs:/pancanfs icgc-aligner $ALIGN $BAM $OUTPUT_BASE... | true |
29876284e217605d5ad93735a0b6e2f0387b6899 | Shell | Azure/azurehpc | /experimental/cc_slurm_nhc/create_nhc_src_tar.sh | UTF-8 | 199 | 2.96875 | 3 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | #!/bin/bash
TODAY=$(date +"%m-%d-%Y")
TAR_FILE=lbnl-nhc-${TODAY}.tar
CWD=`pwd`
cd /tmp
git clone https://github.com/mej/nhc.git
tar -cvf ${CWD}/$TAR_FILE nhc
gzip ${CWD}/$TAR_FILE
rm -rf /tmp/nhc
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.