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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c70baf00284e14d466a879d668177595414ca8f1 | Shell | alexmoore/dotfiles | /git_setup.sh | UTF-8 | 457 | 2.515625 | 3 | [] | no_license | #!/bin/bash
source /usr/local/opt/git/etc/bash_completion.d/git-prompt.sh
source /usr/local/opt/git/etc/bash_completion.d/git-completion.bash
## Add git branch
PS1='\[\e[4m\e[34m\]\t:\W\[\e[0;33m\]$(__git_ps1 "(%s)") \[\e[m\]\$ '; [[ $EUID == 0 ]] &&
PS1='\[\e[4m\e[31m\]\t:\W\[\e[0;36m\]$(__git_ps1 "(%s)") \[\e[m\]\$... | true |
ec9e1ffce9e10f8df9b1f30ccf358d834f8b4efd | Shell | alexandruantochi/re_crawler | /entrypoint.sh | UTF-8 | 173 | 2.78125 | 3 | [] | no_license | #!/bin/bash
FILE="./data/$1"
if [ -f $FILE ]; then
echo "File already exists. $FILE"
else
python -m scrapy runspider -o $FILE "./re_crawler/spiders/olx_re_ro.py"
fi
| true |
1409ba9ee1b3ed960ccf802ae55fd9bcbb2d49b4 | Shell | aur-archive/conkyclementine-bzr | /PKGBUILD | UTF-8 | 804 | 2.578125 | 3 | [] | no_license | # Contributor: kaivalagi <m_buck@hotmail.com>
# Maintainer: blades <blades@gecko.org.uk>
pkgname=conkyclementine-bzr
pkgver=r8
pkgrel=1
pkgdesc="Provides Clementine info, for use in Conky."
arch=('i686' 'x86_64')
url="https://code.launchpad.net/~conky-companions/+junk/conkyclementine"
license=('GPL3')
depends=('python... | true |
c177548a77d17a58933931915d768bad8c9aa104 | Shell | bysanivs/Shekel-Online-DevOps-assignment | /readme.bash | UTF-8 | 351 | 2.796875 | 3 | [] | no_license |
#Script to check service status
./checkService.sh SERVICENAME TASK
TASK=start|stop|status|restart
#runservice is a script, we can use to check for a service and start it if it is not running and to make it run always we can add it to crontab as below format
#crontab -e
* * * * * /usr/scripts/runservice.sh servicenam... | true |
ac0438c24a87bb46949d83ecc4d04540926c387f | Shell | PeterZhouSZ/learning-to-generate-wasserstein-barycenters | /experiments/run_interpolate_XP.sh | UTF-8 | 5,262 | 2.796875 | 3 | [] | no_license | #!/bin/bash
# usage: ./run_interpolate_XP.sh [model_id] [results_XPs_path] + comment/uncomment desired lines
echo "================================"
echo "== INTERPOLATIONS EXPERIMENTS =="
echo "================================"
triangle_size=2 # min=1
pentagon_size=3 # min=2
echo "Generating barycenters - same class... | true |
252138364f9887941f49d907a337135db06edde0 | Shell | cafernandezlo/bash_utils | /screencasting | UTF-8 | 1,165 | 3.703125 | 4 | [] | no_license | #! /bin/bash
# This script has as main objective to record the screen and produce a video with audio from microphone
#default/preferred options
screen_size=$(xdpyinfo | grep dimensions | awk '{print $2}')
video_source="-f x11grab -s $screen_size -i :0.0"
video_encoder="-c:v libx264 -r 30"
audio_source="-f alsa -ac 2 -... | true |
4ce436bef1ba0a3d810fb1f6ded447bb0b2f7f71 | Shell | mmirolim/kythe | /kythe/cxx/extractor/testdata/test_claim_pragma.sh | UTF-8 | 828 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# This test checks that the extractor handles #pragma kythe_claim.
# It should be run from the Kythe root.
BASE_DIR="${PWD}/kythe/cxx/extractor/testdata"
OUT_DIR="${PWD}/campfire-out/test/kythe/cxx/extractor/testdata"
EXTRACTOR="${PWD}/campfire-out/bin/kythe/cxx/extractor/cxx_extractor"
KINDEX_TOOL="${PW... | true |
25d1946ac5a17c9ec0776691b97a2397d5c1ef06 | Shell | 42daniel/heroku-private-buildpack | /bin/detect | UTF-8 | 242 | 2.796875 | 3 | [] | no_license | #!/bin/sh
# we'll expect a file that lists the private buildpacks to apply
# this pack is valid for apps with a hello.txt in the root
if [ -f $1/.heroku-private-build.lst ]; then
echo "Private buildpack detected."
exit 0
else
exit 1
fi | true |
514b6e167bc2166b176783eb1d0616aa43d3d157 | Shell | mvvveen/SH-OET-Python | /installanaconda.sh | UTF-8 | 2,624 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# This script installs Python 2.7.6 3.3.5 and Anaconda3
# My Anaconda don't want none unless you got buns hun
clear
echo "This script will install and configure anaconda software for your system"
# Check whether you are root
if [ "$(whoami)" == "root" ]; then
echo "Sorry, you are running with r... | true |
97af65de009fb38722d226fecedfa1f6a7716615 | Shell | ceylon-docker/ceylon | /build.sh | UTF-8 | 6,352 | 4 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
# Define all the versions that should be generated
VERSIONS=(1.0.0 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3)
# Define the "latest" version
LATEST=1.3.3
# Define which JRE versions to generate for
JRES=(7 8)
# Define the default JRE
DEFAULT_JRE=8
# Define default platform
DEFAULT_PLATFORM... | true |
21dcd089bbf27bee0201a460df1594892c7bab2d | Shell | govindarajanv/linux | /sysadmin/sed/sed-exercises.sh | UTF-8 | 4,155 | 3.546875 | 4 | [] | no_license |
# print both matching pattern 'p' and stdout, output is duplicated, space is optional
sed ' p ' /etc/passwd
#suppress stdout and print only if pattern matches, use -n switch to suppress stdout
sed -n 'p' /etc/passwd
#print first 5 line
sed -n '1,5 p ' /etc/passwd
#print till the last line from 5th line
sed -n '5,$ ... | true |
ec5fc66ed93fdb3dde8222c262390c61925c1182 | Shell | Adrcpp/projet-java | /projet/restart.sh | UTF-8 | 757 | 3.265625 | 3 | [] | no_license | #!/bin/bash
if [ "$1" = "--hard" ] ; then
echo "------------------------";
echo 'Hard restart activated';
cd dao-service
mvn clean install -Dmaven.test.skip=true
if [[ "$?" -ne 0 ]] ; then
echo "------------------------";
echo 'Compilation failed on dao-service - restart stopped'; exit $rc
fi
... | true |
85cda74fbcf9a510c87e4bfe3673bbb961921b8d | Shell | mgodlewski/ansible-role-logstash | /tests/test_ansible-role-logstash_jessie | UTF-8 | 2,697 | 3.484375 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash
test_logstash_is_running() {
running=1
grep -q Debian /etc/issue && (service logstash status |grep -q 'running') && running=$?
grep -q CentOS /etc/issue && (initctl list |grep -q logstash) && (initctl status logstash |grep -q 'start/running') && running=$?
grep -q CentOS /etc/issue && test -x /etc/... | true |
7a72de1b2b9d0d13aabe8af7fa9f25eca87194f1 | Shell | RaInta/CoherentDirectedDAG | /Scripts/InstallPython.sh.old | UTF-8 | 256 | 2.53125 | 3 | [] | no_license | #!/bin/bash
PYMOD_DIR=$(pwd)/pythonModules
mkdir ${PYMOD_DIR}
PYTHONPATH=${PYTHONPATH}${PYMOD_DIR}
easy_install --install-dir ${PYMOD_PY} intervaltree
echo "PYTHONPATH=${PYTHONPATH}${PYMOD_DIR}:" >> ${HOME}/.bash_profile
source ${HOME}/.bash_profile
| true |
af86eac383db092615d735c5a8e029e700c01cb5 | Shell | gdsports/xac_joystick_tinyusb | /acli.sh | UTF-8 | 2,592 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
ARDDIR=${HOME}/Sync/acli_xac_joystick_tinyusb
export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS="https://adafruit.github.io/arduino-board-index/package_adafruit_index.json https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json"
export ARDUINO_DIRECTORIES_DATA="${ARDDIR}/data"
export ARDUINO_DI... | true |
1ed9454e012e6b883368da3a44034d66a3c1b9ee | Shell | Rothamsted/bioknet-onto | /utils/to_lode/to_comments.sh | UTF-8 | 861 | 3.140625 | 3 | [] | no_license | # Converts some annotation properties in the ontology file $1
# Sends output to $2 (default is lode_bioknet.nt)
# into rdfs:comment annotations. This is necessary to render the file in LODE (http://www.essepuntato.it/lode),
# since it doesn't understand many other properties (https://github.com/essepuntato/LODE/issues... | true |
c35e9a3c623df26361c644d8d280017e88a1dc60 | Shell | intelfx/bin | /git/misc/git-subtree-split-file | UTF-8 | 1,288 | 3.890625 | 4 | [] | no_license | #!/bin/bash
. lib.sh || exit
ARGS=$(getopt -o '-P:b:' --long 'prefix:,branch:' -n "${0##*/}" -- "$@") || exit
eval set -- "$ARGS"
unset ARGS
ARG_PREFIX=
ARG_BRANCH=
ARGS=()
while (( $# )); do
case "$1" in
-P|--prefix)
ARG_PREFIX="$2"
shift 2
;;
-b|--branch)
ARG_BRANCH="$2"
shift 2
;;
*)
ARGS+=( "$... | true |
a1fa3c9b0ae047e5ee2c7436d33ee5a1e761e7bc | Shell | stephenlauck/chef-repo | /bootstrap.sh | UTF-8 | 1,676 | 3.4375 | 3 | [] | no_license | #!/bin/bash
export HAB_LICENSE="accept-no-persist"
if [ ! -e "/bin/hab" ]; then
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
fi
if grep "^hab:" /etc/passwd > /dev/null; then
echo "Hab user exists"
else
useradd hab && true
fi
if grep "^hab:" /etc/group >... | true |
d2ad2c1aa59cd19b853e20b9c5adb62cd9ec5e27 | Shell | dp6ai/llos | /trunk/public/images/rename.ksh | UTF-8 | 73 | 2.9375 | 3 | [] | no_license | for file in [a-z]*.JPG
do
echo $file
mv $file ${file%%.JPG}.jpg;
done
| true |
507f317db8a0cc2a123976a9e8af19cbcc43051f | Shell | crazybrainL/zshrc | /zshrc | UTF-8 | 7,422 | 2.671875 | 3 | [] | no_license | # Path to your oh-my-zsh configuration.
#ZSH=/Users/whlin/Documents/rc/zshrc/oh-my-zsh
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="yen3"
ZSH_THEME="whlin"
# ... | true |
e40127cf7ef286f3190c0e67649071ad5d608ff1 | Shell | simshanith/dotfiles | /bash/functions.bash | UTF-8 | 3,810 | 3.4375 | 3 | [] | no_license | # http://kmkeen.com/awk-music/
eightbit() {
awk 'function wl() {
rate=64000;
return (rate/160)*(0.87055^(int(rand()*10)))};
BEGIN {
srand();
wla=wl();
while(1) {
wlb=wla;
wla=wl();
if (wla==wlb)
{wla*=2;};
d=(r... | true |
950705f10f44c6f63edda3187f7003e48cb623f0 | Shell | uyennguyen87/begining_linux_programming | /chapter_2_shell_programming/for_loop_file_name.sh | UTF-8 | 99 | 2.890625 | 3 | [] | no_license | #!/bin/sh
for filename in $(ls *.sh)
do
echo $filename | awk '{print toupper($0)}'
done
exit 0
| true |
18e34fb688ae9d222e325a62c2540c3538e1b8d3 | Shell | kdave/xfstests | /tests/xfs/449 | UTF-8 | 1,677 | 2.9375 | 3 | [] | no_license | #! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2018 Oracle, Inc.
#
# FS QA Test No. 449
#
# Make sure pretty printed XFS geometry is the same across all programs.
#
. ./common/preamble
_begin_fstest auto quick
# Import common functions.
. ./common/filter
# real QA test starts here
_supported_fs xfs
... | true |
de0e5cb00533a98b00bae3db220d37781a526e8c | Shell | poon1412/GotoolsGenCRUD | /build.sh | UTF-8 | 187 | 2.625 | 3 | [] | no_license | #!/bin/sh
export GOPATH=$PWD
export GOBIN=$PWD/bin
cd $GOPATH/src/$1
if [ ! -f "$GOPATH/src/$1/glide.yaml" ]; then
glide create --non-interactive && glide i -v;
else
glide up -v;
fi | true |
543ad945e03633eb0726660e2ee44f27221a48fa | Shell | lidongshengluck/dotfiles | /install.sh | UTF-8 | 3,852 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
curr_path=`pwd`
dotfiles=$HOME/.dotfiles
# vim 包管理插件
[ -z "$VUNDLE_URI" ] && VUNDLE_URI="https://github.com/VundleVim/Vundle.vim.git"
# oh_my_zsh zsh的增强配置
[ -z "$OH_MY_ZSH" ] && OH_MY_ZSH='https://github.com/robbyrussell/oh-my-zsh.git'
# zsh 的自动跳转插件
[ -z "$AUTO_JUMP" ] && AUTO_JUMP='https://gith... | true |
313586323f6b99d72a7dbce91e27ade74f4ed895 | Shell | atweiden/voidpkgs | /srcpkgs/libnfc/template | UTF-8 | 1,055 | 2.625 | 3 | [
"Unlicense",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | maintainer="nox"
pkgname="libnfc"
version=1.8.0
revision=1
short_desc="Low level NFC SDK and Programmers API"
makedepends+=" libusb-devel"
makedepends+=" libusb-compat-devel"
hostmakedepends="pkg-config"
license="GPL-3"
homepage="http://nfc-tools.org/"
distfiles="https://github.com/nfc-tools/libnfc/archive/$pkgname-$ve... | true |
94423a4a262e0256d802ab46a6d5843d53805ce2 | Shell | iorch/marcogeo-docker | /initdb-postgis.sh | UTF-8 | 2,032 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
# Perform all actions as user 'postgres'
export PGUSER=postgres
export PGDATA=$PGDATA
# Create the 'mg' template db
psql <<EOSQL
CREATE DATABASE mg;
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'mg';
EOSQL
# Populate 'template_postgis'
cd /usr/share/postgresql/$PG_MAJOR/contrib/postg... | true |
1dccc801ba942d5b8fe3252aa5a7a6f850c0f8ae | Shell | open-rmf/rmf_fullstack_installer | /setup/scripts/host/tls_setup.bash | UTF-8 | 945 | 3.53125 | 4 | [] | no_license | #!/bin/bash
set -e
[ $EUID -eq 0 ] || { echo "Please run script as root" && exit 1; }
apt update
dpkg-query -l nginx &> /dev/null || (echo "Installing nginx" && apt install nginx -y)
which snap &> /dev/null || { echo "You will need to install snap." ; exit 1; }
snap install core; snap refresh core
dpkg-query -l cert... | true |
ae5f941932c6573e89393e37a8226a737d506105 | Shell | satriawandicky/pihole | /undoAll.sh | UTF-8 | 2,380 | 2.921875 | 3 | [] | no_license | TICK="[\e[32m ✔ \e[0m]"
PIHOLE_LOCATION="/etc/pihole"
GRAVITY_UNDO_BLACKLIST="pihole -b -d"
GRAVITY_UNDO_REGEX="pihole --regex -d"
GRAVITY_UNDO_WILD="pihole --wild -d"
GRAVITY_UNDO_WHITELIST="pihole -w -d"
GRAVITY_UNDO_WHITE_REGEX="pihole --white-regex -d"
GRAVITY_UNDO_WHITE_WILD="pihole --white-wild -d"
#script wild... | true |
3eedf5c92fd56b2d84d4799c5f35f14bb3e1282a | Shell | manwar/p5-aws-lambda | /author/list-perl-runtime.sh | UTF-8 | 1,280 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
ROOT=$(cd "$(dirname "$0")/../" && pwd)
"$ROOT/author/validate-account.sh" || exit 2
set -ue
for ZIP in $(find "$ROOT"/.perl-layer/dist -name perl-\*-runtime.zip | sort -r); do
NAME=$(basename "$ZIP" .zip)
PERLVERION=$(echo "$NAME" | cut -d- -f2,3 | sed -e 's/-/./')
STACK="${PERLVERI... | true |
68d44fce406b679f2410aedaafcde7022d72115e | Shell | puremourning/VMs | /common/nvm_manual | UTF-8 | 239 | 2.6875 | 3 | [] | no_license | # vim: ft=sh
curl https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install v11
nvm alias default v11
nvm use v11
| true |
8aa44cdfa3c92fb0d7e6733a56284fe331fbb662 | Shell | petronny/aur3-mirror | /cheflex/PKGBUILD | UTF-8 | 665 | 2.84375 | 3 | [] | no_license | # Maintainer: Ali H. Caliskan <ahc (at) selflex.org>
pkgname=cheflex
pkgver=1.0.4
pkgrel=1
pkgdesc="A simple yet flexible package manager."
arch=('i686' 'x86_64')
url='http://www.selflex.org/cheflex'
license=('GPL-3')
depends=('aria2' 'bash' 'fakeroot')
install=cheflex.install
source=("https://github.com/selflex/${pkg... | true |
1bb1e0e6a1b1c6d0b8bd840f29b4e1772c2cc4ed | Shell | openshift/release | /ci-operator/step-registry/openshift-qe/move-pods-infra/openshift-qe-move-pods-infra-commands.sh | UTF-8 | 24,561 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
function set_storage_class() {
storage_class_found=false
default_storage_class=""
# need to verify passed storage class exists
for s_class in $(oc get storageclass -A --no-headers | awk '{print $1}'); do
if [ "$s_class"X != ${OPENSHIFT... | true |
9805f2d0055e96f41486581e7d88b6089895aa5e | Shell | GopuTS/workspace-helper | /gitflow-helper/gitify.sh | UTF-8 | 5,568 | 3.71875 | 4 | [] | no_license | #!/bin/bash
featureModulesFile=~/easy/FeatureModules.txt
workSpace=~/workspace-sts/universe
cd $workSpace
moduleRegx="*-model* *client* *-service* platform-*"
stashSuffix="easyWSSwitch"
modules=()
function garbageCollect {
for m in $moduleRegx; do
cd $m
printf "In $m \n"
git gc
cd ..
done
}
function... | true |
b2e2243517442108ecdc530103bf79c99a01a80e | Shell | abveritas/bundles | /swt/PKGBUILD | UTF-8 | 2,855 | 3.03125 | 3 | [] | no_license | pkgname=swt
pkgver=3.7
pkgrel=1
pkgdesc="An open source widget toolkit for Java"
_date=201106131736
arch=(i686 x86_64)
url="http://www.eclipse.org/swt/"
license=('EPL')
depends=('java-runtime>=6' 'gtk2>=2.20.1' 'libxtst')
#optdepends=('libgnomeui' 'xulrunner' 'mesa')
#makedepends=('openjdk6' 'libxtst' 'mesa' 'libgnomeu... | true |
2b7f1b1db3751318383787b2876189a7a8574a1c | Shell | dfresh613/SecurityWatchServer | /SecurityWatchServer/scripts/moveRecordings.sh | UTF-8 | 547 | 3.28125 | 3 | [] | no_license | #!/bin/bash
function move () {
timestamp=$(date +"%m-%d-%y")
dir=/tmp/record/$timestamp/
mkdir $dir
mv /tmp/record/*.jpg $dir
mv /tmp/record/*.avi $dir
cp /tmp/motion.log $dir
}
function copy (){
cp -r $dir /vmstore/userhome/securityCam/
}
function remount () {
umount -lf /mocaps
mount /mocaps
}
function cl... | true |
c6ef3809973d56b1e6f4de1e5f85e506fdbdf706 | Shell | Hackmodford/factorio-init | /config.example | UTF-8 | 2,462 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Enable debugging, useful when you want to figure out why
# this script is not behaving the way you expect it to do
DEBUG=0
# What do you want to call this service?
SERVICE_NAME="Factorio"
# Which user/group is running factorio?
# Running any public service as "root" is generally not recommended
USERNAM... | true |
d52166183202957deba79bde8b8ed795299bc2ed | Shell | mdryden/config | /shell_profiles/.profile | UTF-8 | 2,278 | 3.25 | 3 | [
"Unlicense"
] | permissive | # ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting t... | true |
3f7f038525c721e9ba9a1f1207c0185471649fae | Shell | GabenGitHub/IdentityServer-for-SPA | /dbscript.sh | UTF-8 | 336 | 2.5625 | 3 | [] | no_license | green=`tput setaf 2`
reset=`tput sgr0`
echo "${green}Creating initial migration ApplicationDbContext... ${reset}"
dotnet ef migrations add InitApplicationDbContext -c ApplicationDbContext -o Data/Migrations/AppMigrations
echo "${green}Updating database ApplicationDbContext ${reset}"
dotnet ef database update -c Appli... | true |
c3292645f7e161018112a933343d9c3d30523ec4 | Shell | charles-josiah/mineradores | /mineradores/build-massivo.sh | UTF-8 | 61 | 2.59375 | 3 | [] | no_license | for a in `ls`; do cd $a; docker build -t $a . ; cd .. ; done
| true |
b4a6b4f6ba2b436fa54d86a61b0152c28b633c32 | Shell | akbaraziz/docker_scripts | /docker_private_registry_security.sh | UTF-8 | 1,319 | 3.3125 | 3 | [] | no_license | #!/bin/bash
set -ex
# How to pull and search for images on DockerHub
docker pull ubuntu
docker search ubuntu
# Attempt to authenticate against the private registry
docker login <registry public hostname>
# Configure Docker to ignore certificate verification when accessing the private registry - THIS IS A BAD THING
... | true |
8ec7511f8bb0fb2fa298055944231a8fcf22a5c4 | Shell | JCErasmus/QshOni | /build.sh | UTF-8 | 3,190 | 3.203125 | 3 | [] | no_license | #!/QOpenSys/usr/bin/qsh
#----------------------------------------------------------------
# Script name: build.sh
# Author: Richard Schoen
# Purpose: Create QSHONI library, copies source members and compiles objects
#----------------------------------------------------------------
SRCLIB="QSHONI"
SRCLIBTEXT="QShell on ... | true |
9778cd6cbd06cb0f878f4b9c908fb4c9ae31033f | Shell | maanteeamet/pelias-data-container | /scripts/nlsfi-loader.sh | UTF-8 | 360 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# Note: a valid MMLAPIKEY env var must be set when calling this script
# errors should break the execution
set -e
NAME=paikat.zip
URL=$(node $SCRIPTS/parse_nlsfi_url.js)
mkdir -p $DATA/nls-places
cd $DATA/nls-places
# Download nls paikat data
echo 'Loading nlsfi data'
wget -O $NAME $URL
unzip -o $NAME
r... | true |
b6bc3163fadc73d52a8d91670905dab51fc63cd7 | Shell | phatblat/dotfiles | /.dotfiles/intellij/functions.zsh | UTF-8 | 1,467 | 3.703125 | 4 | [
"MIT"
] | permissive | #-------------------------------------------------------------------------------
#
# intellij/functions.zsh
# Command-line functions for IntelliJ
#
#-------------------------------------------------------------------------------
# Launch IntelliJ IDEA
# https://gist.github.com/chrisdarroch/7018927
function idea {
lo... | true |
990a30349844b7d190a6c0d41027a50e8742502b | Shell | tbaumeist/FreeNet-Analysis | /Scripts/archive/server/MySqlInc.sh | UTF-8 | 1,458 | 3.671875 | 4 | [] | no_license | #!/bin/bash
_defaultPort=2323
#===================================================================================================
# Main Entry Point
#===================================================================================================
# parameters
# 1 Configuration file
# 2 Password
source ./../commo... | true |
7daf0e2d056dc64a44112acdb180c9f9a47feadd | Shell | stuarteberg/stuart-scripts | /create-flyem-env.sh | UTF-8 | 5,145 | 2.828125 | 3 | [] | no_license | #!/bin/bash
#
# 2020-08-14
# Here's how to create my flyem development environment from scratch.
#
# Updated 2022-11
set -x
set -e
WORKSPACE=/Users/bergs/workspace
ENV_NAME=flyem-310
CONDA_CMD=create
#CONDA_CMD=install
DEVELOP_MODE=1
CORE_ONLY=0
CLOUDVOL=1
INSTALLER=mamba
STUART_CREDENTIALS=0 # Non-portable stuff... | true |
e2c158313d7ad6004023b7c01c287fa99c2b7ddb | Shell | SpenserJ/dotfiles | /home/.config/zsh/.zshrc | UTF-8 | 949 | 2.765625 | 3 | [
"MIT"
] | permissive | zstyle ':znap:*' repos-dir ~/.config/zsh/znap
source ~/.config/zsh/znap/zsh-snap/znap.zsh
# uncomment this and the last line for zprof info
# zmodload zsh/zprof
# All of our zsh config files
typeset -U config_files
config_files=($HOME/.config/zsh/**/*.zsh)
# `${(M)config_files:#*/plugins.zsh}` will return files that ... | true |
2962fa678e78abbe43afb1f6dea39c36680b55c1 | Shell | agomezl/.conf | /scripts/emacs.sh | UTF-8 | 213 | 3.640625 | 4 | [] | no_license | #!/bin/bash
CONF_DIR=$(cd $(dirname ${BASH_SOURCE[0]} )/.. && pwd)
sudo dnf -y install emacs
if [ -h ~/.emacs ]
then echo ".emacs is already in place"
exit 1
fi
rm -fr ~/.emacs
ln -s ${CONF_DIR} ~/.emacs
| true |
10d3d060825f982ba6402f917d06521ed5db76fc | Shell | jasonshih/antikc | /bootstrap/scripts/openssl | UTF-8 | 870 | 3.5625 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
NAME=${openssl[0]}
PROGRAM=${openssl[3]}
FILE=${openssl[2]}
EXT=${openssl[4]}
DLINK=${openssl[1]}
MD5=${openssl[5]}
if [ $REBUILD_ALL ]; then
echo Building $PREFIX32/$NAME because REBUILD_ALL=$REBUILD_ALL
elif [ -e $PREFIX32/$NAME ]; then
echo Skipping $PREFIX32/$NAME because we already have it
... | true |
fa5ac43e7877dd7fd5066e0851e8c5bf6af441bc | Shell | Myullnir/Aprendiendo-Bash | /Tateti.sh | UTF-8 | 5,323 | 3.625 | 4 | [] | no_license | #!/bin/bash
# Vamos a hacer un tateti
echo Juguemos un Tateti
# Con esto se elige quien empieza. El jugador siempre es la X
moneda=$(( $RANDOM % 2 ))
echo Tiramos una moneda para decidir quien empieza
echo "Elegí, ¿Cara o Cruz?"
select resultado in Cara Cruz
do
if [ $resultado = Cara ]
then
resultado=0
if [ $re... | true |
0abafea17069f5cbd40fae5b2cca9623167edb33 | Shell | skingdev/.dotfiles | /.bash_profile | UTF-8 | 524 | 2.71875 | 3 | [] | no_license | if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export NVM_DIR="/Users/sking/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM... | true |
aa28de43826d2c95fad74d3a5d45bf04398fc074 | Shell | Keirua/mazes-py | /gen_pokemon_mazes.sh | UTF-8 | 288 | 2.875 | 3 | [] | no_license | #!/bin/bash
# Array of file names
file_names=("003.png" "006.png" "009.png" "025.png" "151.png" "813.png" "831.png")
# Loop over the file names
for filename in "${file_names[@]}"
do
# Run the command with the current filename
poetry run python mask_from_img.py "$filename"
done
| true |
7c8e0276e1566a3774f37a1f9ef9b2b75a3b3b00 | Shell | longj6306/hello-world | /update-binary | UTF-8 | 3,316 | 2.875 | 3 | [] | no_license | #!/sbin/sh
set_perm() {
chown $1.$2 $4
chown $1:$2 $4
chmod $3 $4
}
ch_con() {
/system/bin/toolbox chcon u:object_r:system_file:s0 $1
chcon u:object_r:system_file:s0 $1
}
ch_con_ext() {
/system/bin/toolbox chcon $2 $1
chcon $2 $1
}
/sbin/busybox mount /system
/sbin/busybox mount -o rw,remount /system /syste... | true |
cc464f9d31bb7bcaf73a023b2a7a1ea398f2a7c6 | Shell | luiarthur/cytof5 | /sims/sim_study/old/sim4.sh | UTF-8 | 1,811 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Maximum number of cores to use
MAX_CORES=36
# AWS Bucket to store results
AWS_BUCKET="s3://cytof-vary-kmcmc-n1000"
# STAGGER_TIME in seconds. To avoid mass dumping to disk simultaneously.
STAGGER_TIME=100
# Experiment settings
MCMC_ITER=1000
BURN=10000
I=3
J=32
N_factor="100 1000 10000"
K=8
L=4
K_MCM... | true |
352f46c4a63138a9c95587f079c5b21e617de101 | Shell | lowrydale/sonicbase | /scripts/get-distribution | UTF-8 | 330 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
export SONIC_BASE_HOME=$1
if [ ${1:0:1} != "/" ]
then
export SONIC_BASE_HOME=$HOME/$SONIC_BASE_HOME
fi
mkdir -p $SONIC_BASE_HOME/tmp
export mac=`which sw_vers`
echo $mac
if [ "$mac" == '' ]; then
cat /etc/*-release > $SONIC_BASE_HOME/tmp/distribution
else
sw_vers > $SONIC_BASE_HOME/tmp/distrib... | true |
b530cb069939e627326e379db6ad431e83938c85 | Shell | whigg/scripts | /plot/get_coordinates_CRD_HLM | UTF-8 | 2,178 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
SITE=$1
Case=5
CRD_Apriory=($(grep "$SITE" ALP_NET.CRD | awk '{print $4, $5, $6}'))
X_0=${CRD_Apriory[0]}
Y_0=${CRD_Apriory[1]}
Z_0=${CRD_Apriory[2]}
echo "Coorditates at Epoch 2005-01-01"
echo "$X_0 $Y_0 $Z_0"
echo " Epoch Coordinates Translation ... | true |
6a2b7592a2fb3c21f894f1eb2f1220d9caacbcb0 | Shell | fabi92/deeplearning | /cnn/environment.sh | UTF-8 | 245 | 2.71875 | 3 | [] | no_license | #!/bin/bash
BASE=$(dirname "$BASH_SOURCE")
echo "$BASE"
DIR=`pwd`
BASEDIR="$DIR/$BASE"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export PYTHONPATH="$BASEDIR"/tools:"$BASEDIR"/base:"$BASEDIR"/base/layers:"$BASEDIR"/base/nets:$PYTHONPATH | true |
0725efdab82ad3baa2d93dc3112d147b8916ef36 | Shell | mickdupreez/dots | /.local/bin/myscripts/bat | UTF-8 | 258 | 2.734375 | 3 | [] | no_license | #!/bin/bash
now=`cat /sys/class/power_supply/BAT0/status`
current=`cat /sys/class/power_supply/BAT0/charge_now`
full=`cat /sys/class/power_supply/BAT0/charge_full`
out=`echo $current $full | awk '{ printf("%f\n", $1/$2 * 100) }'`
echo "$now "${out%.*}"%"
| true |
f463f0cd371f452bda4f6a02df3e3d75cdadf66d | Shell | bartx84/launcher | /core/themes.sh | UTF-8 | 1,772 | 3.765625 | 4 | [] | no_license | #!/bin/bash
#universal and modular bash application launcher
#https://github.com/bartx84/launcher
#bartx [at] mail.com
#
#core library
#themes library
#import the global functions library
. $maindir/core/glb_functions.sh
function get_current_theme() {
mypth=$(pwd)
if [ -e "$theme_file" ]
then
my_theme_path=( `cat "$t... | true |
a1bed11a7f412f3344322b9a33fff78293876ec5 | Shell | Jekotia/.zsh | /bin/squash | UTF-8 | 3,874 | 4.0625 | 4 | [] | no_license | #! /bin/bash
mnt=/mnt/squash
tmp=/tmp/squash
tmpTab=$tmp/fstab
# check for root/sudo
if [[ ! `id -u` == "0" ]] ; then
echo "This must be run with root/sudo!"
exit 2
fi
fail=0
# check if squashfs-tools is installed
if ! which mksquashfs > /dev/null 2>&1 ; then
echo "Missing required package: squashfs-... | true |
ff68ac5345f991587de27074e06a8c394927073e | Shell | delkyd/alfheim_linux-PKGBUILDS | /theyoke-git/PKGBUILD | UTF-8 | 784 | 2.609375 | 3 | [] | no_license | # Maintainer: willemw <willemw12@gmail.com>
_pkgname=theyoke
pkgname=$_pkgname-git
pkgver=r23.aa04319
pkgrel=1
pkgdesc="Ultra-simple, polite RSS aggregrator for the command line"
arch=('any')
url="http://github.com/mackers/theyoke/"
license=('GPL' 'PerlArtistic')
depends=('perl-libwww' 'perl-html-parser' 'perl-uri' 'p... | true |
728e9798674f0ca26a192f81368f3226c2fbe93b | Shell | davidosomething/dotfiles | /bin/fzf-audio | UTF-8 | 305 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env zsh
#
# fzf-audio - fzf interface for SwitchAudioSource
__fzf-audio() {
SwitchAudioSource -s \
"$(SwitchAudioSource -a | grep "(output)" |\
fzf-tmux --height=8 --cycle --no-mouse --no-multi |\
cut -f1 -d'(' | xargs)"
}
command -v SwitchAudioSource >/dev/null && __fzf-audio
| true |
04500a7404c688570f1a42e8bd88ee638e5efdff | Shell | ltonetwork/lto-public-chain | /e2e/bin/run_public_node | UTF-8 | 399 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -Cue -o pipefail
PROJECT_DIR="$(cd "$(dirname "${0}")/../.." ; pwd)" # Absolute path to project
(
cd "$PROJECT_DIR"
docker build . -t ltonetwork/public-node:dev
docker run -d --rm -p 6869:6869 -e LTO_NETWORK=CUSTOM -e LTO_ENABLE_REST_API=true -e LTO_API_KEY=open --name=lto_public_node... | true |
c8b3afbfeceaff2a66186076a81536ecd41de895 | Shell | runngezhang/sword_offer | /leetcode/python/331. 验证二叉树的前序序列化.py | UTF-8 | 1,622 | 2.859375 | 3 | [] | no_license | #!/bin/bash python
"""
331. 验证二叉树的前序序列化
思路:
递归或者堆栈
"""
class Solution(object):
def isValidSerialization(self, preorder):
"""
:type preorder: str
:rtype: bool
模仿树的重建,最终应该满足的条件为
vec[i:]可以形成二叉树,并且i最终达到len(vec)
"""
i, vec = 0, preorder.split(",")
# =====... | true |
5a8cd7f968386bdf407b95b045f79aad773e1f40 | Shell | trandoan/appA | /bin/appA | UTF-8 | 209 | 2.953125 | 3 | [] | no_license | #!/bin/sh
# Use JAVA_HOME if set, otherwise look for java in PATH
if [ -x $JAVA_HOME/bin/java ]; then
JAVA=$JAVA_HOME/bin/java
else
JAVA=`which java`
fi
JAVA_OPTS=
$JAVA ${JAVA_OPTS} -jar appA-*.jar
| true |
25d4a7d746e922095897f5d577f49423451bb051 | Shell | coronalabs/corona | /tools/build_output.sh | UTF-8 | 943 | 3.78125 | 4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown"
] | permissive | #!/bin/bash
# builds output.zip for iPhone
# $1 = app name
# $2 = path to template.app
# $3 = path to tmp build dir
# $4 = path to certificate file
# $5 = path to input zip file // main.lu file (or src file used to create message digest)
# $6 = "little" or "big" (endianness of file)
# assign tmp dir to $dst
dst="$3"... | true |
2599d0922397d8c736e71340859fc4b4bb798306 | Shell | Krettis/dotfiles | /install/.apps | UTF-8 | 1,294 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source ${DOTFILE_DIRECTORY}/log.sh
msg_run "Installing Brew Cask Apps"
# homebrew-cask
if [ ! -d "/usr/local/Library/Taps/caskroom/homebrew-cask" ]
then
brew tap phinze/homebrew-cask
brew install brew-cask
msg_ok "homebrew-cask is ready!"
else
msg_ok "Setup homebrew-cask"
fi
function cask_instal... | true |
7b3e2a20e124cabf32e2eb84df2adb9d2c38b9ed | Shell | seroperson/dotfiles | /.config/zsh/.zshrc | UTF-8 | 2,069 | 3.109375 | 3 | [] | no_license | #!/bin/zsh
export PATH="$PATH:$ZDOTDIR/bin"
# {{{ zgen configuration
local zgen_file=$ZDOTDIR/zgen/zgen.zsh
if ! [ -e $zgen_file ]; then
git clone https://github.com/tarjoilija/zgen.git $ZDOTDIR/zgen/
fi
# {{{ z configuration
_Z_DATA=$XDG_DATA_HOME/zsh_z
_Z_CMD=j
# }}}
source $zgen_file
if ! zgen saved; then
... | true |
361ebdf145af86f03cade4d3e214d724aaf6e536 | Shell | ilkosta/make_lrs | /update_repo.sh | UTF-8 | 272 | 3.703125 | 4 | [] | no_license | #!/bin/sh
REPO_URL=$1
REPO_DIR=$2
pwd=$PWD
mkdir -p $(dirname $REPO_DIR)
if [ -d $REPO_DIR ]
then
echo "updating $REPO_DIR ..." \
&& cd $REPO_DIR \
&& git pull
cd $pwd
else
echo "downloading repository $REPO_URL to $REPO_DIR ..."
git clone $REPO_URL $REPO_DIR
fi
| true |
a7702442693e874a0e68ed468e2593bb1f34c6f8 | Shell | Eoin-ONeill-Yokai/PKGBUILD | /00_not_for_me/rs232monitor-git/PKGBUILD | UTF-8 | 830 | 2.515625 | 3 | [] | no_license | # Maintainer:
pkgname=rs232monitor-git
pkgver=r12.cc8077f
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://github.com/cdwijs/rs232monitor"
license=()
depends=('qt5-base' 'qt5-serialport')
makedepends=('git')
provides=('rs232monitor')
conflicts=('rs232monitor')
source=("${pkgname}::git+https://github.com/cdwijs/rs232m... | true |
c0aa0685dbe478dec9b6296ee04a8b555181d81b | Shell | LaKing/srvctl | /modules/srvctl/completion.sh | UTF-8 | 2,732 | 3.65625 | 4 | [] | no_license | #!/bin/bash
(bash /usr/local/share/srvctl/srvctl.sh complicate &>/dev/null &)
_fedora_srvctl_options() {
local SC_USER
## determine the proper user
if [[ -z $SUDO_USER ]]
then
SC_USER="$USER"
else
SC_USER="$SUDO_USER"
fi
#echo "SRVCTL_OPTIONS $SC_USER"
... | true |
7bd75e550e9c35927470590968f857313492f4ec | Shell | mskblackbelt/dotfiles | /zsh/omz_custom/plugins/battery/battery.plugin.zsh | UTF-8 | 6,033 | 3.390625 | 3 | [
"MIT"
] | permissive | ###########################################
# Battery plugin for oh-my-zsh #
# Original Author: Peter hoeg (peterhoeg) #
# Email: peter@speartail.com #
###########################################
# Author: Sean Jones (neuralsandwich) #
# Email: neuralsandwich@gmail.com #
# Modified t... | true |
f9228ec0b57ba2d9970f9f4c2547a9e8ef3530cb | Shell | NGTS/zlp-qa | /scripts/build_science_list.sh | UTF-8 | 184 | 3.140625 | 3 | [] | no_license | #!/bin/bash
set -eu
find_files() {
find ${NGTS}/flat-field-optimisation/data -name 'proc*.fits'
}
limit() {
head -n 200
}
main() {
find_files | limit > $1
}
main "$@"
| true |
388d6160186583f30241a20ddb1366c24d9f6239 | Shell | wuhlcom/mosquitto | /mosquitto.sh | UTF-8 | 489 | 2.578125 | 3 | [] | no_license | Number=40000
j=0
for i in `seq 20001 $Number`
do
mosquitto_sub -t testSubFixTopic -h 192.168.10.8 -p 1883 -q $j -i subCID$i -k 600 -u mqttclient -P mqttclient &
j=`expr $j + 1`
if [ $j -ge 3 ]; then
j=0
fi
done
sleep 20
while true
do
for i in `seq 20001 $Number`
... | true |
5d97dc062d5856637a17ebf011fa1f3b08566493 | Shell | yghlc/Landuse_DL | /flooding_mapping/package_results_files.sh | UTF-8 | 445 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# bash create new region defined parameter files (ini)
#authors: Huang Lingcao
#email:huanglingcao@gmail.com
#add time: 20 June, 2021
# Exit immediately if a command exits with a non-zero status. E: error trace
set -eE -o functrace
for dd in $(ls -d *_1); do
echo $dd
out=${dd}.zip
if [ -f... | true |
0ab17cdcb6cf5ef462afda55986a0bbeca9cd94b | Shell | mutek/Antenna | /SPAM/UNBOUND/TEST/Unbound.build | UTF-8 | 2,083 | 3.40625 | 3 | [
"Unlicense"
] | permissive | #!/usr/bin/env sh
# Builder per Unbound DNS recursive caching validating server
#
# Luca Cappelletti (2014)
# Public Domain
#
# ricetta per Unbound
# questa ricetta viene eseguita direttamente nella directory corrente
## indagare su hash e command -v in alternativa a which
DEB_PACKAGE="unbound"
DOWNLOAD_URL="http://un... | true |
75fe86c33b2ca8798589b3bc9baa6d63eaecc1f8 | Shell | woodruffw/snippets | /ffcat/ffcat | UTF-8 | 803 | 4.21875 | 4 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | #!/usr/bin/env bash
# ffcat: Concatenate a bunch of movies/media into a single file
set -eo pipefail
function help {
echo "Usage: ffcat <output> <input [input ...]>"
exit
}
function installed {
cmd=$(command -v "${1}")
[[ -n "${cmd}" ]] && [[ -f "${cmd}" ]]
return ${?}
}
function cleanup {
... | true |
53f53be21706cee24e14d678312c68812ec76634 | Shell | jsmentch/scripts | /convertbin.sh | UTF-8 | 848 | 3.328125 | 3 | [] | no_license | #bash script to go from a mask in MNI space in .hdr format to a binarized NIFTI file in the group template space based on the mni2tmpl matrix
#!/bin/bash
#echo "The script seems to be working."
echo "ROI conversion log" > log.txt
ls *.hdr | while read l;
do
fsl5.0-fslchfiletype NIFTI_GZ "$l"
echo "$l converted t... | true |
74368438a82654fb326968b4d1b18fb0686bc2b7 | Shell | IAmNotMahd/LaneDetector | /env_setup.sh | UTF-8 | 5,213 | 2.84375 | 3 | [
"MIT"
] | permissive | <<<<<<< HEAD
# ***************
# INSTALL OPENCV
# ***************
# VERSION TO BE INSTALLED
OPENCV_VERSION='3.4.2'
# 1. KEEP UBUNTU OR DEBIAN UP TO DATE
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# 2. INSTALL THE DEPENDENCIES
# Build tools:
sudo apt-get ins... | true |
1b324075dc56d75009c6c871733b0782a73cedd8 | Shell | msys2/MINGW-packages | /mingw-w64-lua-mpack/PKGBUILD | UTF-8 | 2,197 | 2.953125 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Rui Abreu Ferreira <raf-ep@gmx.com>
_realname=mpack
pkgbase=mingw-w64-lua-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-lua51-${_realname}"
"${MINGW_PACKAGE_PREFIX}-lua-${_realname}")
pkgver=1.0.10
pkgrel=2
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url='https://... | true |
3e7ce9f0acc6cdd9d65600bda186213f2897513b | Shell | NicolasBernaerts/munin-plugin | /dns325_temperature | UTF-8 | 4,300 | 3.625 | 4 | [] | no_license | #!/ffp/bin/bash
# ----------------------------------------------
# Muninlite plugin for DNS-325
#
# Used to supervise :
# * fan speed
# * case temperature
# * hdd temperature
#
# This script needs the following utilities to run :
# * fan_control
# * smartctl
#
# To install muninlite on DNS-325, please check :
# ... | true |
b15fae98064e238195c0fabf6a7424ad9d856257 | Shell | ryanschulze/bash_functions | /notify.sh | UTF-8 | 1,186 | 3.75 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#=== FUNCTION ================================================================
# NAME: notify
# DESCRIPTION: Calls notify-send with some addational logic and defaults
# PARAMETERS: [ -t <topic> ] [ -t <timeout in seconds> ] [ -i <icon> ]
#=========================================... | true |
d53e756b2f2e3ed69935874cec87b210bb31afe7 | Shell | victorkp/tomcat-tools | /local-deploy.sh | UTF-8 | 381 | 3.65625 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 1 ]; then
# No Arguments
echo You need to specify the web archive file
echo Usage: ./local-deploy APP.war
exit
fi
warname=$1
filename=$(basename ${warname} .war)
echo
echo Removing old WAR
sudo rm -f /usr/share/tomcat/webapps/${filename}.war
echo
echo Copying new WAR
sudo cp $warname /u... | true |
80fd871c8be90a3d9f1fdec32d5dc8a379fb41c4 | Shell | echken/packages | /docker_apps/mongodb/remove.sh | UTF-8 | 384 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#author: Huang Jinhua
#date: 01/05/2017
#description: To remove docker container and images
#Step 1: Make sure docker has started
if [ -z "$(ps -aux | grep docker | grep -v grep)" ] ; then
echo "Docker is not running, so not necessary to remove docker images"
exit 0
fi
#Step 2: Delete mongodb con... | true |
a7381bfb8bff612bd7b58f9ec11c7b2636252db6 | Shell | fauxserve/Casper-Scripts | /Reporting Scripts/objects_scoped_to_named_computer_group.sh | UTF-8 | 9,635 | 3.3125 | 3 | [] | no_license | #!/bin/sh
# v0 - in progress
# set -x
reset
####################################################################################################
#
# Copyright (c) 2015, JAMF Software, LLC. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permit... | true |
a23cb09eda39adb362b16127599b32111799e84a | Shell | gainge/RepoTracker | /data/clean_extract.sh | UTF-8 | 556 | 3.6875 | 4 | [] | no_license | #!/bin/bash
if [ "$#" != "2" ]
then
echo "Invalid Argument Count!"
exit
fi
FILE="$1"
EXTRACTED_DIR="data/extracted"
if [ ! -d $EXTRACTED_DIR ]
then
mkdir $EXTRACTED_DIR
fi
SOURCE_DIR="$EXTRACTED_DIR/$2"
# Remove existing files, if applicable
if [ -d $SOURCE_DIR ]
then
rm -r $SOURCE_DIR
fi
mkdir $SOURCE_DIR
e... | true |
4af20f9a1b9b238bf4e35d7b1bd62b608b4b12d4 | Shell | drn/dots | /git/functions/git-pullme | UTF-8 | 998 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Opens your browser to the github pull request creation page for the current
# commit against the source branch.
# abort if not in git directory
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "Aborting. Not in a git repository."
exit 1
fi
# specify the root url
root="https://github.com"
#... | true |
d00258aeff34ce76f778379105ec0521a2a9b11c | Shell | adlerj/OS_Design | /Project_1/Stuff/testscript_p2.sh | UTF-8 | 222 | 3.25 | 3 | [] | no_license | #!/bin/bash
count=5
for file in *.txt; do
name2="runtimes_wtc_btproc_"$file".output"
echo "WTC_BTPROC " $file >> "$name2"
for ((c=1; c<=$count; c++)); do
./wtc_btproc $file >> "$name2"
done
done
| true |
f5f4342400ade7c6a956c000373fde12f9319dd9 | Shell | v3netcz/vmanager | /tests/run-tests.sh | UTF-8 | 452 | 3.8125 | 4 | [] | no_license | #!/bin/sh
# Finds PHP binary
PHPBIN=`whereis php-cgi | cut -d" " -f2`
if [ "$PHPBIN" == "" ]; then
PHPBIN=`whereis php | cut -d" " -f2`
if [ "$PHPBIN" == "" ]; then
echo "Error. PHP binary not found"
exit 1
fi
fi
# saves the path to this script's directory
dir=` dirname $0 `
# absolutizes the path if necessa... | true |
608bb1ea454bb09f59c0a136308c17ae9a998e33 | Shell | simhaonline/kvm-scripts-2 | /clone.sh | UTF-8 | 1,136 | 3.109375 | 3 | [] | no_license | #!/bin/bash
mkdir -p .logs
touch .logs/${_new_name}.log
exec > >(tee -a .logs/${_new_name}.log) 2>&1
_base=archlinux-base
_new_name=$1
source ./utils.sh
virt-clone \
--original ${_base} \
--name "${_new_name}" \
-f "/var/lib/libvirt/images/${_new_name}.qcow2" || exit 1
sudo virt-sysprep -d "${_new_name... | true |
d9447b2c0398a53f9e7173c16926353e1556149f | Shell | msuess/dotfiles | /zsh/zsh-config/func/TS | UTF-8 | 552 | 3.4375 | 3 | [] | no_license | #!/bin/sh
#
# func/TS
#
# a convenient way to create an environment for collaborative testing
#
# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.madduck.net/etc/zsh.git
#
local topic filename ret
topic="${(j:_:)@}"
fi... | true |
aed6eb3bc7273cc4f9498a2d95881c8b774c2465 | Shell | acumos/system-integration | /AIO/nexus/setup_nexus.sh | UTF-8 | 7,764 | 3.703125 | 4 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | #!/bin/bash
# ===============LICENSE_START=======================================================
# Acumos Apache-2.0
# ===================================================================================
# Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
# ============================================... | true |
6a0a8b5cbe65623434e83ed49e653b31c6445eae | Shell | hvvka/bash-scripts | /src/learning/s9/attempt0.sh | UTF-8 | 340 | 2.984375 | 3 | [] | no_license | #!/bin/bash
DIR="$1"
for file in $DIR/*; do
if [ -s $file ]
then
rm -f $file
fi
done
#Kasowanie wszystkich plików pustych (o zerowej wielkości) w zadanym katalogu (parametr wywołania skryptu). Skrypt powinien tworzyć w zadanym pliku listę skasowanych plików. Nie powinien analizować dołączeń symbol... | true |
265a229305fe20f598182711a69adc12f7657cef | Shell | mattjmorrison/polyglot | /run/colors.sh | UTF-8 | 223 | 3.171875 | 3 | [] | no_license |
function language() {
echo -e "\033[0;36m\t"
echo "***** $1 *****"
echo -e "\033[0m"
}
function section() {
echo -e "\033[0;33m\t\n== $1 ==\033[0m"
}
function step() {
echo -e "\033[1;31m$1\033[0m"
}
| true |
8ca407f1ba530961c6fa873dd8f07d0a226f3e77 | Shell | tenfourty/LinodeEnterpriseLinuxStackScripts | /StackScripts/CentOS-StaticIP.sh | UTF-8 | 1,809 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# <udf name="machinename" label="Hostname - make sure reverse DNS is setup" example="hostname"/>
# <udf name="publicip" label="Linode Public IP" example="178.79.134.167"/>
# <udf name="publicnetmask" label="Netmask" default="255.255.255.0" example="255.255.255.0"/>
# <udf name="publicgateway" label="Gateway... | true |
0b3dacdbb3cd8d6cdb88a781a0dd8e2766e8d73c | Shell | limite01/testeicasei | /bkp_rotina.sh | UTF-8 | 861 | 3.171875 | 3 | [] | no_license | #/bin/bash
#DATA DO ARQUIVO
DATA=`date +%F`
#DIRETORIOS
ROOT_DIR=/backup
TMP_ROOT_DIR=/backup/tmp
BKP_CONF_APACHE=/etc/apache2
BKP_CONF_MUNIN=/etc/munin
BKP_CONF_FAIL2BAN=/etc/fail2ban
BKP_WORDPRESS=/sites/wordpress
BKP_CONF_FIREWALL=/etc/init.d/start_firewall.sh
BKP_SCRIPTS=/root/scripts
#COMANDOS
MYSQLDUMP=/u... | true |
b47785672a599fed2abbd0eb0bb4c3240d34e044 | Shell | ilventu/aur-mirror | /bzip2-tools/PKGBUILD | UTF-8 | 696 | 2.71875 | 3 | [] | no_license | # Maintainer: TDY <tdy@gmx.com>
# Contributor: Christoph Zeiler <rabyte__gmail>
# Contributor: Judd <jvinet@zeroflux.org>
pkgname=bzip2-tools
pkgver=1.0.5
pkgrel=1
pkgdesc="Supplementary wrappers for bzip2 (bzdiff, bzgrep, and bzmore)"
arch=('i686' 'x86_64')
license=('custom')
url="http://sources.redhat.com/bzip2/"
d... | true |
3a36db46198f21269e57040ed0ce0d32c285f968 | Shell | taitpthomas/firmware | /linuxcnc/src/emc/usr_intf/renaconf/build.sh | UTF-8 | 973 | 3.109375 | 3 | [] | no_license | #!/bin/bash
D=Debian/renaconf/files
echo "remove old package files"
rm -f ./Debian/*.deb
rm -f ./Debian/renaconf/debian/renaconf/usr/bin/AN1310cl
rm -f ./Debian/renaconf/debian/renaconf/usr/bin/wch6474
rm -f ./Debian/renaconf/debian/renaconf/DEBIAN/control
rm -f ./Debian/renaconf/debian/renaconf/DEBIAN/md5sums
rm -f ./... | true |
8f8a6d6ed95c3a0d3eb17157cfbe01137477e0f3 | Shell | bugryder/mmpublish | /go.sh | UTF-8 | 1,917 | 3.625 | 4 | [] | no_license | #!/bin/bash
#
# 繁星网站发版工具
#
# Copyright © 2016 kugou.com
#
# Authors:
# mmfei <wenglingfei@kugou.net>
#
# 工作目录
# workDir=$(dirname $0)
# workDir=$(readlink -f $workDir)
workDir=`pwd`;
# ini 文件处理脚本
iniTool="${toolsDir}/ini.sh"
# IP 地址
ip=${SSH_CLIENT%% *}
echo $workDir;
#公共函数
source $workDir/common.sh
# 项目目录
project... | true |
bf37e661a3e49685b172e94f9749beab0c526d53 | Shell | tysm/cpsols | /codeforces/edu/ITMO Academy: pilot course/Binary Search/step 5/check.sh | UTF-8 | 242 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cp-gcc c.cpp -o a
for((i=1;;i++)); do
echo $i
python3 gen.py $i > in
./a < in > o1
python3 sol.py < in > o2
diff <(./a < in) <(python3 sol.py < in) || break
done
cat in
#sed -i 's/\r$//' filename ----- remover \r do txt
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.