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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
00f9f9edd3a035acd3b488aa6f69e5800319aa82 | Shell | mbirth/UnixTools | /bzr2git.sh | UTF-8 | 571 | 3.609375 | 4 | [] | no_license | #!/bin/bash
PWD=`pwd`
DIRNAME=`basename "$PWD"`
if [ ! -d "$HOME/.bazaar/plugins/fastimport" ]; then
echo "Fastimport plugin not found. Installing..."
bzr branch lp:bzr-fastimport ~/.bazaar/plugins/fastimport
fi
echo "Processing: $DIRNAME"
if [ ! -d ".bzr" ]; then
echo "No .bzr directory here. Is this a BZ... | true |
5353e1482d0f6c798bb72bcccf0393825721ba9d | Shell | mihaicris/dotfiles | /scripts/ee | UTF-8 | 1,477 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env zsh
heading "Change Development Environement"
ENVIRONMENTS=(
'Production;https://www.adoreme.com'
'DELTA 1;delta-1'
'DELTA 2;delta-2'
'DELTA 3;delta-3'
'GAMMA 1;gamma-1'
'GAMMA 2;gamma-2'
'GAMMA 3;gamma-3'
'SIGMA 1;sigma-1'
'SIGMA 2;sigma-2'
'SIGMA 3;sigma-3'
... | true |
1b0696c6f0f7a3f9807e7e93879937bdb0d53ed6 | Shell | CESNET/glite-testsuites | /LB/tests/lb-test-statistics.sh | UTF-8 | 11,400 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (c) Members of the EGEE Collaboration. 2004-2010.
# See http://www.eu-egee.org/partners for details on the copyright holders.
#
# 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 L... | true |
fc5a2a251c2a289c52360e440cb7f9c4c2a5866c | Shell | ram-ku/Weekly-Problems | /2013–2014/Week 06/Beginner/crooney/quine.sh | UTF-8 | 326 | 2.671875 | 3 | [] | no_license | #!/bin/bash
q="'"
r='"'
s="="
u='echo -e $p$n$n\\q$s$r$q$r$n\\r$s$q$r$q$n\\s$s$r$s$r\necho u$s$q$u$q\necho -e p$s$r$p$r$n\\n$s$r$m$r\necho m$s$q\\\\\\\\n$q\nprintf "$u"'
p="#!/bin/bash"
n="\n"
m='\\n'
echo -e $p$n$n\q$s$r$q$r$n\r$s$q$r$q$n\s$s$r$s$r
echo u$s$q$u$q
echo -e p$s$r$p$r$n\n$s$r$m$r
echo m$s$q\\\\n$q
printf... | true |
3362fc3325a3cd0a821768ab30a8700e183eca7c | Shell | game-forest/Citrus | /Examples/Tests/hooks/pre-commit | UTF-8 | 226 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
IFS=$'\n' && for file in `git diff --cached --name-only | grep ".png\$"`
do
if [ -f "$file" ]; then
$(CITRUS_DIRECTORY)/Orange/Toolchain.Win/PngOptimizerCL.exe --KeepPixels "$file" && git add "$file"
fi
done
| true |
0d6d47b122ef75b810dc7c9fc040359777694373 | Shell | alishakiba/DPA | /run_ipynb2py_versioning.sh | UTF-8 | 370 | 3.390625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# create python scripts out of the jupyter notebooks
#
# How-to-run:
#
# cd DPA
# ./run_ipynb2py_versioning.sh
for file in *.ipynb; do
echo "$file";
NAME=`echo "${file##*/}" | cut -d'.' -f1`;
echo $NAME;
echo "jupytext --output "${NAME}".py" ${file};
eval $(echo -e "jupytext --output "${NAME}"... | true |
737fa9b6e7eba8b5c3e505e3ea0978096ba3c5b9 | Shell | yichao0319/iParking | /ml_weka/batch_eval_condor.sh | UTF-8 | 9,330 | 3 | 3 | [] | no_license | #!/bin/bash
## CONDOR
func="batch_eval"
num_jobs=200
cnt=0
## DAG
rm tmp.${func}.dag*
echo "" > tmp.${func}.dag
TYPES=("norm.fix" "fix")
MONTHS=(201504 201505 201506 201507 201508 201509 201510 201511 201512 201601 201604 201605 201608 54-5 54-6 54-7 54-8 54-9)
DUPS=(200 0 100)
## 108 * 10%, 20%, 40%, 80%
FEATURES... | true |
ff23f29865097715f1281554fbc32e4f21dcfd87 | Shell | davidjsanders/studySim | /OLD/v3_00/sim1/setup.sh | UTF-8 | 2,157 | 3.34375 | 3 | [] | no_license | #
# Simulation Setup
#
if [ "X"$simpath == "X" ]; then
echo "ERROR: simpath is not defined!"
echo ""
echo "Before running this script, ensure that simpath is defined:"
echo ""
echo " export simpath=/path/to/studySim"
echo
exit 1
fi
stage_path="v3_00"
#set -e
source $simpath/includes/check... | true |
953017c1f3101fb2cea6ae90e968e22edb44a596 | Shell | modell-aachen/qwiki-perl-dependency-builder | /distros/debian/entrypoint.sh | UTF-8 | 457 | 3.421875 | 3 | [] | no_license | #!/bin/bash
if [ -z "$2" ]; then
echo "Installing latest"
fqn=$(cpanm --info $1)
else
echo "Installing Version $2"
fqn=$(cpanm --info $1@$2)
fi
tarball=$(echo $fqn | sed 's/.*\///')
package_folder=$(echo $tarball | sed 's/\(.*\)\.tar\.gz/\1/')
rm -rf /opt/build/*
cpanm $fqn
find / -name $tarball | xargs cp... | true |
09923901946d54d70b9589d6d30c88db4f2fe41e | Shell | xakon/haskell-docs-cli | /test/cram/run.sh | UTF-8 | 357 | 2.515625 | 3 | [] | no_license | #! /bin/bash
# Command to run cram tests
# $TESTDIR is a variable made available by cram that contains the
# path to the directory where the test file lives.
# This means that all files must be in the same directory as this runner.
cd $TESTDIR/../..
$(stack path --dist-dir)/build/hdc/hdc \
--data-dir $TESTDIR/cram-... | true |
9e390aa55facac8b10f17301f387697fc6fa6bfb | Shell | kanghuanyao/yao_env | /yao_bin/bin/yao_rm | UTF-8 | 239 | 3.515625 | 4 | [] | no_license | #!/bin/bash
function get_filename
{
echo "$HOME/rm/$(date +%s_%N)_$RANDOM"
}
while [ "$1" != "" ] ; do
RDN_FILE=$(get_filename)
while [ ! -f $RND_FILE ] ; do
RDN_FILE=$(get_filename)
done
test -e $1 && mv $1 $RDN_FILE
shift
done
| true |
7bd0b08444d3d5e0fb5336a6012e46aa47b9f295 | Shell | shieldproject/shield-addon-postgres-boshrelease | /packages/shield-addon-postgres-9.2/packaging | UTF-8 | 214 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -eux
CPUS=$(grep -c ^processor /proc/cpuinfo)
tar -xjf postgres/postgresql-9.2.24.tar.bz2
cd postgresql-9.2.24
./configure --prefix=${BOSH_INSTALL_TARGET} --with-openssl
make -j$CPUS && make install
| true |
6155ad2584432cfc0136e2d4f14ce0d36d200b39 | Shell | hufman/ShantaePirateExtractions | /doit.sh | UTF-8 | 2,442 | 3.546875 | 4 | [] | no_license | #!/bin/bash
BASE=`pwd`
[ -e quickbms.zip ] || wget http://aluigi.altervista.org/papers/quickbms.zip
[ -e quickbms.exe ] || unzip quickbms.zip
[ -x quickbms.exe ] || chmod +x quickbms.exe
[ -e MSFHDEx.zip ] || wget https://dl.dropboxusercontent.com/u/31816885/programs/MSFHDEx.zip
[ -e animEx.exe ] || unzip MSFHDEx.zi... | true |
03c69601661595f37b20ed6a03171b469cf4f1dd | Shell | dmvelasco/test-scripts | /GATK_1_prep.sh | UTF-8 | 2,098 | 2.984375 | 3 | [] | no_license | #!/bin/bash -l
#SBATCH -D /home/dmvelasc/Projects/Prunus/Data/BAM/
#SBATCH -o /home/dmvelasc/Projects/Prunus/slurm-log/%j-stdout-GATK1prep.txt
#SBATCH -e /home/dmvelasc/Projects/Prunus/slurm-log/%j-stderr-GATK1prep.txt
#SBATCH -p serial
#SBATCH -J GATK1
#SBATCH -n 1
#SBATCH -c 2
#SBATCH -t 4-00:00
#SBATCH --mail-user=d... | true |
80b3fff893fdd5ec923013dbc21a063fd687048d | Shell | coldblaze/docker-x11-korean | /x11-korean.sh | UTF-8 | 1,134 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
##### CONFIGS #####
HOST_VOLUME="/Users/coldblaze/docker_works"
CONTAINER_MNT="/srv"
NAME="x11-korean"
HOST_NAME="x11-korean"
NETWORK_CARD="en1"
##### END OF CONFIGS #####
_IMAGE="coldblaze/x11-korean"
_IMAGE_TAG="18.04.1"
case $1 in
pull)
docker pull $_IMAGE:$_IMAGE_TAG
;;
run)
echo ${0##$}" ru... | true |
25b6dd54016d37022578622017d085b32f762a9b | Shell | defaziogiancarlo/scripts | /add_hooks | UTF-8 | 901 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# add the whamcloud hooks to .git hooks for lustre
# commit-msg
# prepare-commit-msg
# if they are already in the correct directory but suffixed
# with deactivation suffix ($SUFFIX) remove the suffix so they become active
# if they aren't in the hooks sirectory at all, get them from
# the lustre source
SU... | true |
b2e0d299635a8c102bd6e4eff6a3eae98347e16f | Shell | yohei-yamazaki/dotfiles | /setup.sh | UTF-8 | 451 | 3 | 3 | [] | no_license | #!/bin/bash
DOT_FILES=(.bashrc .bash_profile .zshrc)
VS_CODE_FILES=(settings.json keybindings.json)
NVIM_FILES=(init.vim dein.toml dein_lazy.toml)
for file in ${DOT_FILES[@]}
do
ln -s $HOME/dotfiles/$file $HOME/$file
done
for file in ${VS_CODE_FILES[@]}
do
ln -s $HOME/dotfiles/vscode/$file $HOME/Library/Applicat... | true |
392b57ad3fd35db91242839df00657ec62651539 | Shell | kcolford/kernel-update-hook | /kernel-update-hook | UTF-8 | 197 | 3.25 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
mods=/var/lib/kernel-update-hook/modules
if [ ! -e $mods ]; then
mkdir -p "$(dirname $mods)"
touch $mods
fi
for i in $(cat $mods); do
modprobe "$i"
done
| true |
aed3b7b97876338f4e2c22c3e122370eb611c07f | Shell | maxme/mbhttpd | /tests/full_fs_test.sh | UTF-8 | 142 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
PORT=6543
cd ..
./mbhttpd -p $PORT &
cd -
find $(pwd) -exec wget -O - http://localhost:$PORT{} > /dev/null 2>&1 \;
killall mbhttpd | true |
6a6c68142adad1081d8c2392097394e892785a15 | Shell | laughingMan/dotfiles | /bin/dot | UTF-8 | 296 | 2.9375 | 3 | [] | no_license | #!/bin/sh
#
# dot
#
# `dot` handles installation, updates, things like that. Run it periodically
# to make sure you're on the latest and greatest.
export DOT=$HOME/.dotfiles
# Set OS X defaults
$DOT/osx/set-osx-defaults.sh
# Update homebrew and install packages
$DOT/homebrew/install.sh 2>&1
| true |
0f7d3d22a630935f3d9c6c804050fbf7a9298ab2 | Shell | bingxuanying/DuFu | /bin/dufu-server-start.sh | UTF-8 | 350 | 3.25 | 3 | [] | no_license | #!/bin/bash
SOURCEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DUFUMAINDIR="$( dirname "${SOURCEDIR}" )"
MAINFILEDIR="${DUFUMAINDIR}/core/main/BrokerServer.py"
# Check if server file exists
if [ ! -f "${MAINFILEDIR}" ]; then
echo "[ERROR] BrokerServer.py file doesn't exist" >&2
exit 1
fi
python3 "... | true |
a0c48e92c233a7ee05a671066ad8313ca7cf028b | Shell | cloneko/demo | /.zshrc | UTF-8 | 1,056 | 2.546875 | 3 | [] | no_license | #
# .zshrc is sourced in interactive shells.
# It should contain commands to set up aliases,
# functions, options, key bindings, etc.
#
autoload -U compinit
compinit
#allow tab completion in the middle of a word
setopt COMPLETE_IN_WORD
## keep background processes at full speed
#setopt NOBGNICE
## restart running pr... | true |
89dd86f3f2cc22689a2657e902fa7953cab7ade8 | Shell | HSLdevcom/digitransit-tools | /avgresponse.sh | UTF-8 | 407 | 3 | 3 | [] | no_license | #!/bin/bash
#compute average time of responses of a proxy log for desired api path
#an example: ./avgresponse.sh digitransit-proxy-6d856c4548-d8f8m geocoding/v1/search
kubectl logs $1 > log.txt
tail -500 log.txt > logtail.txt
cat logtail.txt | grep $2 | grep -oE '[^ ]+$' > log2.txt
SUM=$(paste -sd+ log2.txt | bc)
CO... | true |
bd5c2fc1f8bcca25c77fa4a1e35cc2980efe1bb0 | Shell | dougwyu/ArcDyn_2 | /4_minimap2_samtools/launch_minimap2_samtools__PlatesAB.sh | UTF-8 | 5,980 | 2.84375 | 3 | [] | no_license | #!/bin/bash
set -e
set -u
set -o pipefail
#######################################################################################
#######################################################################################
# a shell script to launch bsub files
################################################################... | true |
e1cfd3b7ae3116d4eba22a13097ea08ec1eebbbd | Shell | saraswat2385/admin | /monitor/monit-restart.sh | UTF-8 | 291 | 2.828125 | 3 | [] | no_license | #!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
service monit status | grep not
if [ $? -eq 0 ]; then
#service monit restart
service monit restart
echo "Monit restarted on server $(hostname)" | mail -s "Monit restarted on $(hostname)" sys@rtcamp.com
fi
| true |
7df676fc12b6d1b45aba645d0edd733b155c816d | Shell | UJo1vHQvgs/secutils | /dec | UTF-8 | 1,243 | 4.03125 | 4 | [] | no_license | #!/bin/bash
unameThis=`uname -s`
function hash5 {
if [ "Darwin" = "${unameThis}" ] ; then
echo -n $1 | md5
else
echo -n $1 | md5sum | cut -c 1-32
fi
}
function hash256 {
if [ "Darwin" = "${unameThis}" ] ; then
echo -n $1 | shasum -a 256 | cut -c 1-64
else
echo -n $1 | sha256sum | cut -c 1-64... | true |
6cc06198e3c972e1d4aa8aa1e19e66e19555064b | Shell | gitGNU/gnu_rtty | /agelogs.sh | UTF-8 | 1,040 | 2.84375 | 3 | [
"ISC"
] | permissive | #! /bin/sh
# $Id: agelogs.sh,v 1.4 2001-03-24 21:17:39 vixie Exp $
# Copyright (c) 1996 by Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appe... | true |
cc93963c5f925860ee8df15f17390e15b78f9d4f | Shell | anoyo-lin/aws_related | /chg_type/mongo_status.sh | UTF-8 | 1,181 | 3.40625 | 3 | [] | no_license | #/bin/bash
set -x
: 'it need to define the ssh config at ~/.ssh/config
it can start/stop mongodb from local ==> bastion ==> target
example of ssh config file:
Host dev
StrictHostKeyChecking no
ForwardAgent yes
Hostname 54.236.225.95
User ubuntu
ProxyCommand /bin/connect-proxy -H proxy.redacted.net:8080 %h %p
IdentityFi... | true |
1412113bc6063f96ccc7619343667bf8ebca40bb | Shell | seanbuchholz/dotfiles | /zsh/functions/ff.zsh | UTF-8 | 130 | 3.046875 | 3 | [] | no_license | #!/bin/zsh
# find file with pattern in name
function ff() { find . ! -readable -prune -o -type f -iname '*'"$*"'*' -ls -print; }
| true |
2f0b3a95edced76e5013c0391d3760a5da3cf523 | Shell | Wei-N-Ning/gdbPit | /inspection/prettyprint/graph_printer_gdb.sh | UTF-8 | 1,890 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
# source:
# http://tromey.com/blog/?p=524
# https://www.rethinkdb.com/blog/make-debugging-easier-with-custom-pretty-printers/
# 1) the source code shows a mock-up version of a graph-based computing
# network that has a flaw causing segfault (documented in source);
# the developer wants to de... | true |
9620d12256ae2ed641b936eca22d06c5b67d6d9e | Shell | marekdynowski/bwunicluster_bsps | /01_basic_job_script_stdout/01_basic_job_script_stdout.moab | UTF-8 | 692 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# 01_basic_job_script_stdout.pbs
#
#
# Created by Marek Dynowski on 15/12/14.
# MOAB job script for submitting a simple job to the batch system
# of the bwUniCluster. This job writes out the hostname of the
# worker node on which it is executed
### MOAB directives
## Serial job 1 core on one nod... | true |
ba132e111a7d94b769fab7698107f4455af62fd4 | Shell | fergalmoran/dotfiles | /install.sh | UTF-8 | 2,214 | 3.515625 | 4 | [] | no_license | # This script creates symlinks from the home directory to any desired dotfiles in /home/fergalm/dotfiles
############################
#ignore
########## Variables
MACHINE_TYPE=`uname -m`
dir=/home/fergalm/dotfiles # dotfiles directory
olddir=/home/fergalm/dotfiles_old # old dotfiles back... | true |
85400eac4f177d8ace509ae8fdd04b414d50b1fa | Shell | intel-analytics/BigDL | /ppml/trusted-python-toolkit/start-scripts/start-python-numpy-performance-sgx.sh | UTF-8 | 358 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
num=4096
dtype='int'
while getopts "n:t:" opt
do
case $opt in
n)
num=$OPTARG
;;
t)
dtype=$OPTARG
;;
esac
done
cd /ppml
./init.sh
bash examples/numpy/CLI.sh -n $num -p native -t $dtype
export sgx_command="bash examples/numpy/CLI.sh -n $num -p ... | true |
55ab15604ee292e51179b35d362b361a1cbb1110 | Shell | ed-barberis/devops-2.0 | /provisioners/scripts/oracle/install_ol7_oracle_uekr6.sh | UTF-8 | 1,480 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/sh -eux
# install the oracle linux 7 uekr6 kernel.
# ensure that the uekr6 kernel is enabled by default. ----------------------------------------------
yum-config-manager --enable ol7_UEKR6
yum-config-manager --disable ol7_UEKR5
yum-config-manager --disable ol7_UEKR4
yum-config-manager --disable ol7_UEKR3
yum-c... | true |
f52e78107c01b4158476b8cda2aa744e035d3e30 | Shell | meschnigm/webserver-public | /caterva/analysis/BC_Check.sh | UTF-8 | 3,573 | 3.625 | 4 | [] | no_license | #!/bin/bash
function Echo_ok ()
{
echo -e "\033[0;32m Check war ok.\033[0m"
}
function Echo_nok ()
{
echo -e "\033[0;31m Check war nicht ok.\033[0m"
}
function Color_green_on ()
{
echo -e "\033[0;32m "
}
function Color_turkis_on ()
{
echo -e "\033[0;36m "
}
function Color_red_on ()
{
echo -e... | true |
bd289055c6bbe66b4799b0d4b34501f90d187136 | Shell | stevenrbrandt/PhylanxBuilder | /versions.sh | UTF-8 | 122 | 2.6875 | 3 | [] | no_license | for v in /hpx /blaze /blaze_tensor /pybind11 ~/phylanx
do
echo -n "VERSION: $v "
cd $v
git log -1 --format=%cd
done
| true |
ad52679c86c2a00ea5c77fd98d9cf5c75352bea6 | Shell | blakemcbride/Rand-E-Editor | /local.sh | UTF-8 | 2,172 | 4.21875 | 4 | [] | no_license | #!/bin/sh
# 'local.sh' : shell script to update the 'NewVersion' shell script with the
# correct path to 'bash'.
# The program name can be specified, if it must be something else than
# the default 'e'.
# This shell can run on linux and on AIX, sun Solaris and LynxOS.
# By Fabien Perriollat CERN/PS <Fabien.Perrioll... | true |
92ace9049a38a97a6fb40f2e1ec070f6eaab354f | Shell | Unitech/jquery-youtube-player | /build/release.sh | UTF-8 | 1,320 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
#
# @description : this BASH script is used to build the jquery youtube player plugin
# @author : Richard Willis
# @project : http://github.com/badsyntax/jquery-youtube-player
# @requirements : curl, zip, git, rhino
echo -n "Enter the version for this release: "
read ver
if [ ! $ver ]; then
ec... | true |
570ba7938754c4f1ecec11a2b52a62f8e3fefef6 | Shell | tetherless-world/whyis | /script/release | UTF-8 | 282 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Check release version in Dockerfile and setup.py
VERSION=`python whyis/_version.py`
echo ${VERSION}
twine upload dist/whyis-${VERSION}.tar.gz
docker push tetherlessworld/whyis:${VERSION}
docker push tetherlessworld/whyis:latest
git tag -f v${VERSION}
git push
| true |
9556e2f91aab33ad3f3a08e392f21fbe677663f5 | Shell | djlabbe/Syntinel | /_docs/_scripts/randomResult.sh | UTF-8 | 109 | 2.96875 | 3 | [] | no_license | number=$RANDOM
value=$(($number%2))
if (($value == 0)); then
echo "Hello World"
else
>&2 echo "error"
fi
| true |
317d717a9de98e2a72b0f7d132b30cc72bc2e3c6 | Shell | chrisoverzero/aws-embedded-metrics-dotnet | /scripts/publish-package.sh | UTF-8 | 853 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Run integration tests against a CW Agent.
#
# usage:
# export AWS_ACCESS_KEY_ID=
# export AWS_SECRET_ACCESS_KEY=
# export AWS_REGION=us-west-2
# ./start-agent.sh
source ./utils.sh
# publish <package-name>
function publish() {
rootdir=$(git rev-parse --show-toplevel)
rootdir=${... | true |
9059c0721d0c17fe20463dc6c642096539ee14fd | Shell | mola/pfsense-builder | /sign_setup.sh | UTF-8 | 285 | 2.59375 | 3 | [] | no_license | #!/bin/sh
mkdir -p /root/sign/
cp sign.sh /root/sign/sign.sh
cd /root/sign/
openssl genrsa -out repo.key 2048
chmod 0400 repo.key
openssl rsa -in repo.key -out repo.pub -pubout
printf "function: sha256\nfingerprint: `sha256 -q repo.pub`\n" > fingerprint
chmod +x /root/sign/sign.sh
| true |
79715a2c89af12cead1b2b170c55259aa990193b | Shell | dwsyoyo/lambda_functions | /sslyze/build_sslyze.sh | UTF-8 | 1,105 | 3.515625 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
###
# Set up the Python virtual environment
###
VENV_DIR=/venv
python -m venv $VENV_DIR
source $VENV_DIR/bin/activate
###
# Update pip and setuptools
###
pip install --upgrade pip setuptools
###
# Install sslyze
###
pip install --upgrade "sslyze==1.4.1"
###
# Install domain-scan
###
mkdir domain-scan
wg... | true |
a1b8e03b7b8bb308c4d4733276731d975515dc3f | Shell | esantanche/emsreact | /scripts/container-git-tasks.sh | UTF-8 | 527 | 3.15625 | 3 | [] | no_license | #!/bin/zsh
if [ `basename ${PWD}` != "scripts" ] ; then
echo "You should be in the scripts folder now"
exit
fi
echo "For now it's manual"
echo "After you run the create react app script, you need a git checkout ."
echo "which gets rid of the changes create react app did (apart for node_modules)"
echo "Maybe you nee... | true |
3afde33acf34d8c7787e6cfa053d23bcaf4e7f83 | Shell | hmdlab/frame_diff | /scripts/composite.sh | UTF-8 | 1,000 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# ${0} の dirname を取得
cwd=`dirname "${0}"`
# ${0} が 相対パスの場合は cd して pwd を取得
expr "${0}" : "/.*" > /dev/null || cwd=`(cd "${cwd}" && pwd)`
cd "${cwd}/.."
IN1="images/001.bmp"
IN2="images/002.bmp"
IN3="images/003.bmp"
BASE="images/cambridge.bmp"
THETA=10
ALPHA1="out/alpha1vs2.bmp"
ALPHA2="out/alpha2vs3.bmp"... | true |
e4c6c53f955ffbc150411e97bc35b685bcc34189 | Shell | chigui271/teamred | /watchdog_sysrq.sh | UTF-8 | 593 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# Sysrq-based watchdog example script for TeamRedMiner. This script
# issues a hard form of reboot through the linux sysrq subsystem. The
# kernel must have support for sysrq to begin with, but that is
# normally the case.
#
# NOTE: the miner must be run as root for the watchdog script to work
# corr... | true |
8d63d88d83ecf70d4b9b3e9f6380c568e05c2ddb | Shell | RedHatInsights/drift-backend | /run_unit_tests.sh | UTF-8 | 339 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# this script is a wrapper for nosetests. It ensures that
# 'prometheus_multiproc_dir' is set up and torn down.
TEMPDIR=`mktemp -d`
export UNLEASH_TOKEN="token"
prometheus_multiproc_dir=$TEMPDIR pytest --cov-report xml "$@" && prometheus_multiproc_dir=$TEMPDIR python generate_report.py test_reports.toml ... | true |
59b3ee7b878c4d37af61d08c97bfa9f6c670e8c2 | Shell | ash12358/ssh | /openSakura | UTF-8 | 501 | 2.65625 | 3 | [] | no_license | #! /bin/bash
echo "115.238.185.30 frp.tcotp.cn" >> /etc/hosts
wget https://cdn.tcotp.cn:4443/client/Sakura_frpc_linux_amd64.tar.gz
tar -xzvf Sakura_frpc_linux_amd64.tar.gz
# 30 洛杉矶
# 38 新加坡
# 39 蒙特利尔
# 45 美国纽约
chmod +x Sakura_frpc_linux_amd64
echo -e 'ash12358\n12358a\n45' | nohup ./Sakura_frpc_linux_amd64 &
while ... | true |
1afab22fd518b50893b207026444c867b9d80e88 | Shell | YilunLiu/CSE120_PA1_Tests | /test.sh | UTF-8 | 888 | 4.15625 | 4 | [] | no_license |
function exitProgram {
cp "$TEST_DIR/pa1f_orginal.c" pa1f.c
rm my_output standard_output
exit
}
TEST_DIR="./tests"
FAILED_TEST=0
for testfile in `ls $TEST_DIR`; do
echo "Testing file: $testfile ..."
cp "$TEST_DIR/$testfile" pa1f.c
make > /dev/null
./pa1f &> tmp
tail +2 tmp > my_output... | true |
8765cf7ab4a3854955ecb629969812176e15304d | Shell | nabaco/dotfiles | /bash/dot-bashrc | UTF-8 | 7,750 | 3.390625 | 3 | [] | no_license | # vim: foldmethod=marker ft=bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# Ansi color code variables{{{1
red='\[\e[0;... | true |
238c69bd276a4c261cbe57ab079cbc8ed1e9d185 | Shell | s-leonard/WebAppPrivateLink | /HubAndSpokeNetwork/CLI/script.sh | UTF-8 | 9,536 | 2.875 | 3 | [
"MIT"
] | permissive |
## Pre-Req
az extension add --name azure-firewall
###########################################
# Global Variables
###########################################
LOCATION=centralus
PREFIX=ws$(date +%s%N | md5sum | cut -c1-6)
SUBID=$(az account list --query "[?isDefault].id" -o tsv)
ADO_ACCOUNTNAME={AzureDevOps Account nam... | true |
6c67c0a7a8ce3f667a4f728a01f834e108a344d4 | Shell | antonbabenko/pre-commit-terraform | /hooks/infracost_breakdown.sh | UTF-8 | 5,411 | 3.859375 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
# globals variables
# shellcheck disable=SC2155 # No way to assign to readonly variable in separate lines
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
# shellcheck source=_common.sh
. "$SCRIPT_DIR/_common.sh"
function main {
common::initialize "$SCRIPT_... | true |
18a305a19750de5d291651a7d96afc3f13382d40 | Shell | KangOl/odoo-ops-tools | /git-push-pr | UTF-8 | 2,373 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
if [[ -z "$GHTOKEN" ]]; then
echo "No \$GHTOKEN environment variable defined." >&2
exit 1
fi
DEBUG=0
RESET=1
VERBOSE=0
opt=
while getopts 'hdvr' opt; do
case "$opt" in
h)
echo "Usage:"
echo " $0 (-h | --help)"
echo " $0 [-d] [-r] [<DEST_BRANCH>]"
ech... | true |
3e9d71c9beebbf1ebc61fdea726a323ae0ed1eac | Shell | irradia/ci | /ci-changelog.sh | UTF-8 | 701 | 3.921875 | 4 | [] | no_license | #!/bin/bash
#------------------------------------------------------------------------
# A script to generate changelogs.
#
#------------------------------------------------------------------------
# Utility methods
#
fatal()
{
echo "ci-changelog.sh: fatal: $1" 1>&2
exit 1
}
info()
{
echo "ci-changelog.sh: inf... | true |
7fc3650511ab43602ca5964dc0d00b6d3f40e421 | Shell | qixin5/debloating_study | /expt/debaug/benchmark/gzip-1.2.4/testscript/I3/6 | UTF-8 | 521 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BIN=$1
OUTDIR=$2
TIMEOUT=$3
INDIR=$4
cp -r $INDIR/file ./
cp -r $INDIR/mydocument.odt ./
cp -r $INDIR/"this is my file.png" ./
gzip file
gzip mydocument.odt
gzip "this is my file.png"
{ timeout -k 9 ${TIMEOUT}s $BIN -d *.gz; } &>$OUTDIR/o6
echo "$?" >>$OUTDIR/o6
test -f file.gz
echo "$?" >>$OUTDIR/o6
te... | true |
5e8b642fb0de81273979b753c5c95b5e213503b8 | Shell | fredrik-rambris/scripts | /log_funcs.sh | UTF-8 | 2,794 | 4.4375 | 4 | [] | no_license | #!/bin/sh
# Uniform logging functions
# by Fredrik Rambris
#
# Use this function to make all log messages look the same way.
#
# Begin with sourcing this file like so (dot included):
# . /etc/scripts/log_funcs.sh
#
# Log your start and finish with
# log_start
# log_finished
#
# Log messages with
# log "Message"
# or a... | true |
74416a35fb66ff5903a7426bee31a1b6ed202e7a | Shell | tob2/OvO | /ovo.sh | UTF-8 | 2,204 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Find path of all directories who contain a Makefile, those are the test directory
# If not argument are passed, we look for the 'test_src'folder
# The uniq at the end is needed because user can pass the same folder twice in the arguments
find_tests_folder() { find ${@:-test_src} -type f -name 'Ma... | true |
2ce8beaf83aadff589607ae31cb7335883b48896 | Shell | jeslopalo/devkit | /execute_specs | UTF-8 | 1,873 | 4.125 | 4 | [] | no_license | #!/usr/bin/env bash
source $(dirname ${BASH_SOURCE})/.rc
# override PATH because we want to test commands
# from project's workspace and not from the system PATH
export PATH="$DEVKIT_BIN:$PATH"
specs_root_path="./test"
specs_extension=".bats"
usage() {
printf "usage: %s [-h/--help] [-p | --tap] -- [spec pattern... | true |
b334fd2154dc181330af8ac780ff2ee77b2bf52a | Shell | Valle1806/SAT | /reducir.sh | UTF-8 | 459 | 3.453125 | 3 | [] | no_license |
#Rango de instancias SAT a recorrer en la carpeta:
rango=$(ls InstanciasSAT/*)
for instancia in $rango
do
#Obtención del nombre del archivo con la instancia SAT:
reduccion=$(echo $instancia | cut -c 15-)
#Creación del archivo para la instancia X-SAT:
touch X-SAT/$reduccion
#Transcripción del formato DIMACS al ... | true |
a6a8f52d5f0e3b071e4ba8f564f6c6e8bbff82cc | Shell | alpha-tian/code-count | /count-new.sh | UTF-8 | 4,504 | 3.671875 | 4 | [] | no_license | #!/bin/bash
date=`date +%Y%m%d`
if [[ ! $2 ]];then
echo "错误,已退出"
exit 168
else
echo "开始执行..."
echo "$1"
if [ -z "$1" ] || [ -z "$2" ];then
echo "你倒是输入参数啊!"
exit 1
fi
if [[ -f $PWD/$1-count.txt ]];then
rm -f $PWD/$1-count.txt
fi
if [[ -f $PWD/$1-$date-count2.txt ]];then
rm -f $PWD/$1... | true |
dae94ef531109f3b7b18c292eec9672d0bdeda03 | Shell | Bobby23Putra/TBG | /HTML/cdc/poll_sms.sh | UTF-8 | 631 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cd /var/www/cdc/
sudo bash connect.sh "stop" "usb1"
sudo bash connect.sh "stop" "usb2"
num_server=`mysql -s -N --user="root" --password="root" --database="cdc" --execute="select setting_value from setting where setting_name = 'sms_server'"`
poll_value=`mysql -s -N --user="root" --password="root" --database... | true |
2da17500f33a9a5a00f2eedd63b65d504af0d75b | Shell | vijayendrabvs/geth_perf | /inst_geth.sh | UTF-8 | 510 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Updating apt"
sudo apt update
echo "Installing golang packages"
sudo apt install -y golang-go
# Verify golang is installed
go_binary=`which go`
if [ -z $go_binary ]; then
echo "Failed to install go, exiting.."
exit 1
fi
sudo apt-get install -y build-essential
# Create a working dir.
mkdi... | true |
f069ae2552c2d1c480087c3370891379adc2ff2f | Shell | jdbarry/cue | /cue/templates/install_rabbit.sh.tmpl | UTF-8 | 1,113 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
cat > /etc/hosts << EOF
127.0.0.1 localhost
{%- for node_name, node_ip in rabbit_nodes.iteritems() %}
{{node_ip}} {{node_name}}
{%- endfor %}
EOF
cat > /etc/network/interfaces.d/eth1.cfg << EOF
auto eth1
iface eth1 inet dhcp
EOF
ifup eth1
if [[ ! "`grep rabbitmq /etc/passwd`" ]]; then
useradd -d /var/l... | true |
14193f85530f2307f03cb274321f6a4b12e1e736 | Shell | lisuke/repo | /archlinuxcn/zju-connect-bin/zju-connect.install | UTF-8 | 1,025 | 3.265625 | 3 | [] | no_license | #!/bin/bash
function whisperer(){
echo "-----------------------------------------------------------------------"
echo "For more info and more troubleshooting visit:"
echo "CC98: https://cc98.org"
echo "Github: https://github.com/Mythologyli/zju-connect"
echo "---------------------------------------... | true |
0bae1a1a9e562d1ce6c060ad31b9e4c93ec609c2 | Shell | sgupt9999/dns | /dns-name-caching-server.sh | UTF-8 | 1,902 | 3.9375 | 4 | [] | no_license | #!/bin/bash
##############################################################
##
## Configuring a DNS caching server using bind on Centos 7
##
##############################################################
##############################################################
##
## User Inputs
TRUSTEDCLIENTS=(172.31.17.32 172.31... | true |
ca4de532c8cccafa29f431ef4938ff197c7ca3d4 | Shell | msrLi/portingSources | /lzo/lzo-2.10/B/generic/build.sh | UTF-8 | 2,129 | 3.0625 | 3 | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | #! /bin/sh
## vim:set ts=4 sw=4 et:
set -e
echo "// Copyright (C) 1996-2017 Markus F.X.J. Oberhumer"
echo "//"
echo "// Generic Posix/Unix system"
echo "// Generic C compiler"
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
test "X${AR}" = X && AR="ar"
test "X${CC}" = X && CC="cc"
test... | true |
aa346429460818b5b2a538cb19c84a1fe6e0fa6c | Shell | Level0r0s/java-deepspeech | /native/scripts/cross-build.sh | UTF-8 | 494 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/sh -e
# shellcheck source=./env.sh
. "$(dirname "$(realpath "$0")")/env.sh"
BUILD_TYPE="Release"
BUILD_ARCH="default"
while getopts ":b:a:" arg; do
case ${arg} in
b)
BUILD_TYPE="${OPTARG}"
;;
a)
BUILD_ARCH="${OPTARG}"
;;
?)
echo "Invalid option: -${arg} ${OPTARG}"
... | true |
5ee68c30bb6e4921878f7187a88384cd86ac216c | Shell | ohel/dotfiles | /scripts/initkeyboard.sh | UTF-8 | 410 | 3.21875 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
# Sometimes at least the Microsoft Natural Ergonomic 4000 keyboard acts weirdly or hangs up.
# Reconnecting it physically works, but one has to set everything anew. This script solves that.
secs=0
for pid in $(ps -ef | grep "xbindkeys$" | tr -s ' ' | cut -f 2 -d ' ')
do
kill $pid
secs=1
done
sleep $s... | true |
9b322e474b1caf073833e2096b3e51e48ca7fef0 | Shell | kpkhxlgy0/pbc | /tools/build_mac.sh | UTF-8 | 280 | 3.25 | 3 | [
"MIT"
] | permissive | CMAKE_BUILD_TYPE=$1
if [ "-$CMAKE_BUILD_TYPE" = "-" ]; then
CMAKE_BUILD_TYPE=Release
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR_TO=$DIR/build_mac
rm -rf $DIR_TO
mkdir -p $DIR_TO
cd $DIR_TO && cd $_
cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE ../..
make -j8
| true |
9580aae43d0e8956e5d1e5b0f5d8a2f1e52f3500 | Shell | clegg89/classon | /meta-classon/recipes-example/classon-rootfs/classon-rootfs-1.0.0/etc/init.d/start_uploader_py | UTF-8 | 323 | 3.09375 | 3 | [] | no_license | #!/bin/bash
case "$1" in
start)
python /home/root/uploader.py &
;;
stop)
echo "TODO: how to stop uploader.py when its been autostarted."
;;
force-reload|restart)
$0 stop
$0 start
;;
status)
;;
*)
echo "Usag: /etc/init.d/start_uploader_py {start|stop|restart|force-reload|status}"
exit 1
;;
esa... | true |
20584d8aba76ef43e6f475a9141215d3fd769b15 | Shell | jackgavin/stratux-setup | /wifi-ap.sh | UTF-8 | 3,935 | 3.40625 | 3 | [] | permissive | # Copyright (c) 2016 Joseph D Poirier
# Distributable under the terms of The New BSD License
# that can be found in the LICENSE file.
#### files created and/or modified
# /etc/default/isc-dhcp-server
# /etc/hostapd/hostapd.conf
# /etc/network/interfaces
# /usr/sbin/stratux-wifi.sh
if [ $(whoami) != 'root' ]; then
... | true |
0b48ae9e1f28e2af74f5fbebee127dded741c6e6 | Shell | jiri-pejchal/dotfiles | /bash_aliases | UTF-8 | 1,001 | 2.859375 | 3 | [] | no_license | alias ..='cd ..'
alias ...='cd ../..'
alias cd..='cd ..'
alias -- -='cd -'
alias ll='ls -l'
alias la='ls -la'
alias lt='ls -lrt'
alias li='locate -i'
alias tarp='tar --use-compress-program=pxz'
alias xcopy='xsel -b'
# git
alias g='git status -s'
alias gitroot='cd $(git rev-parse --show-toplevel)'
alias gti='git'
... | true |
951a9085bca05f4a03bd1e7f5c5fd4ea854663ce | Shell | aefimov/teamcity-deb | /etc/init.d/teamcity-agent | UTF-8 | 3,544 | 3.75 | 4 | [] | no_license | #! /bin/sh
### BEGIN INIT INFO
# Provides: teamcity-agent
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: $named $syslog $time
# Should-Stop: $named $syslog $time
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-D... | true |
9b174422d4879a4c554be65c194d6de921e9e786 | Shell | ccadruvi/dotfiles | /bash/aliases/git.sh | UTF-8 | 995 | 3.515625 | 4 | [] | no_license | #!/bin/bash
#set -euo pipefail
alias gs='git status'
alias gd='git diff'
alias gpl='git pull'
alias gps='git push'
alias gco='git checkout'
alias gc='git commit -m'
alias ga='git add'
complete -F _complete_alias gs
complete -F _complete_alias gd
complete -F _complete_alias gpl
complete -F _complete_alias gps
complete... | true |
43c5f622ff37df31c6effad8464a0fd54788f938 | Shell | fdev31/archx | /cos-installpackages.sh | UTF-8 | 1,150 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env sh
# Main installer script for most packages
# - install pacmanhooks
# - RUN pre-install hooks
# - RUN install hooks
# - RUN install of DISTRO_PACKAGE_LIST
# - RUN distro_install_hook
# - set the BOOT_TARGET
# - RUN post-install hooks
if [ ! -e configuration.sh ]; then
echo "This script must be exec... | true |
5c2f164f9247cb9a4dab4f986ec28631db32160e | Shell | s-kat/bash-scripts | /polynom_calc.sh | UTF-8 | 259 | 3.171875 | 3 | [] | no_license | x=-1
grade=1
ans=0
base=$(((10 ** 9) + 7))
for line in $(cat input.txt)
do
if [[ $x -eq -1 ]]; then
x=$line
else
ans=$((($ans + ($line * $grade)%base)%base))
grade=$((($grade * $x)%base))
fi
done
ans=$(($ans % $base))
echo $ans > output.txt
| true |
29b0300dbb552a5cf7eb3715634722c7b5eabbf2 | Shell | wonksing/githooks | /hooks/post-receive | UTF-8 | 532 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
read oldrev newrev _branch
REPO=$(basename "$PWD")
TARGET_BRANCHES="^(master|release-*|patch-*)"
branch=$(echo $_branch | sed 's/.*\/\([a-z0-9][a-z0-9]*\)$/\1/')
msg=$(git log -1 --pretty=format:"CommitDate: %ci%nRepo: ${REPO}%nBranch: ${branch}%nCommitHash: %h%nCommitter: %cn%nCommitMsg:%n%B" $newrev)
if ... | true |
a8f326f5909c644d5be7cf1521653a722e55f73a | Shell | delkyd/alfheim_linux-PKGBUILDS | /python-yaql/PKGBUILD | UTF-8 | 1,674 | 2.578125 | 3 | [] | no_license | # Maintainer: Andy Botting <andy@andybotting.com>
_module='yaql'
pkgname=('python-yaql' 'python2-yaql')
pkgver='1.1.3'
pkgrel='2'
pkgdesc='YAQL - Yet Another Query Language'
arch=('any')
url='https://yaql.readthedocs.io'
license=('Apache')
makedepends=('git' 'python-setuptools' 'python2-setuptools')
checkdepends=('pyt... | true |
080092a612755f58d0ba1eaffab04efcd2bcb281 | Shell | aperloff/utilities | /PBS_Slurm/changeQueue_Slurm.sh | UTF-8 | 1,560 | 4 | 4 | [] | no_license | #!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script will show the current queue status for a selection of users.
OPTIONS:
-d Destination partition where the jobs will end up
-h Show this message
-s Source partition where the pending jobs now reside
-t The new walltime to se... | true |
1899ad98392cbfb31ad8c2b745e9ed0ab417caa0 | Shell | 316011989/flutter_ijkplayer | /ios/switch_local.sh | UTF-8 | 603 | 2.75 | 3 | [
"MIT"
] | permissive | if [ "$1" == "dev" ]; then
rm IJKMediaFramework.framework
ln -s /Volumes/Samsung-T5/code/media_projects/ijkplayer/flutter_ijk/ios/output/IJKMediaFramework.framework IJKMediaFramework.framework
rm flutter_ijkplayer.podspec
ln flutter_ijkplayer.dev.podspec flutter_ijkplayer.podspec
echo 'switch to loc... | true |
005a402a3a6a8c4f4dd6ce8bbeca96540d92401e | Shell | databooks/databook | /build-tools/docker-build/hooks/post_push | UTF-8 | 370 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push $DOCKER_REPO:$GIT_SHA_TAG
# Invoke all downstream build triggers.
for url in $(echo $NEXT_BUILD_TRIGG... | true |
dcfa98bc7356742722e29a46b69d47ebb8df975d | Shell | isabella232/presto-yarn | /presto-yarn-test/etc/docker/get_docker_ips.sh | UTF-8 | 617 | 3.6875 | 4 | [] | no_license | #!/bin/bash -e
if test ! -f docker-compose.yml; then
echo Please run this script from directory wiith docker-compose.yml file.
exit 1
fi
echo "# This section is generated by ../$0"
echo "# You may need to regenerate it per each 'docker-compose up' command"
echo "# NOTE this is only supported on linux"
echo 'hosts... | true |
a91fe52fd5e6e51bbfbb5e2f4fe3ea15900bec84 | Shell | swiss-art-research-net/docs | /docs/et/archivalCSV/archival.sh | UTF-8 | 1,979 | 2.875 | 3 | [] | no_license | #! /bin/bash
rm -rf criteria.sh ;
rm -rf csvcut.sh ;
rm -rf mmd.sh ;
rm -rf prefixes.txt ;
rm -rf rename_csv.sh ;
rm -rf rename_png copy.sh ;
rm -rf rename_png.sh ;
rm -rf src/ ;
rm -rf turtle.sh ;
rm -rf ttl/ ;
rm -rf *.csv ;
cp ../scripts/prefixes.txt .
cp ../scripts/csvcut.sh .
cp ../scripts/mmd.sh .
cp ../scripts... | true |
abc033c234a59dd81b667118039ff448daf8ac61 | Shell | FransTegelmark/aliquid-stratmas | /StratmasDispatcher/buildutils/buildjar.sh | UTF-8 | 519 | 3.625 | 4 | [] | no_license | #!/bin/bash
CMD=`basename $0`
DIR="$1"
CLASSPATH="$2"
JARNAME="$3"
if [[ ! -d "$DIR" ]]; then
echo "$CMD: Error: BUILDDIR \"$DIR\" is not directory." 2>&1
exit 1;
fi
cd "$DIR" || exit 1;
OLDIFS="$IFS"
IFS=":"
for JAR in $CLASSPATH; do
IFS="OLDIFS"
if [[ -f "$JAR" ]]; then
echo Processing "$... | true |
ef4af3ef7c3e2e603beed8ce35e18c7970cdc6b2 | Shell | Ouzii/distributed-string-manipulator | /sendMessage.sh | UTF-8 | 326 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#send request to server
# takes 2 params 1st is the type (1 is reverse or 2 is to uppercase), 2nd param is your string
# example usage ./sendMessage.sh 1 kotimato
set -e
BODY='{"type":"'"$1"'", "msg":"'$2'"}'
RES="$(curl -d "$BODY" -H "Content-Type: application/json" -X POST http://localhost:8080)"
echo... | true |
c4279976c15fc7558aa8f628d90218f13b88b349 | Shell | great-fork/tmoe-linux | /share/old-version/share/container/proot/startup | UTF-8 | 29,801 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
cat >${TMOE_STARTUP_SCRIPT} <<-ENDOFPROOT
#!/usr/bin/env bash
##################
PROOT_USER="root"
# You can specify a user. Default is root
# 您可以指定用户,例如root或ubuntu,默认为root
# Sie können einen Benutzer angeben
HOME_DIR="default"
# If the value is "default", the home directory will be auto-de... | true |
8b4f44680f72296db633d2c2ccf45fdc3efbfc7d | Shell | Leen15/rancher-export | /remove-affinity.sh | UTF-8 | 271 | 3.375 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
if [ -x $1 ]; then
echo "Enter an environment name. It's a directory under 'export'. If unsure, stop now and seek help."
exit 1
fi
cd ./export/$1
find . -type f -name "*.yml" -exec sed -i.bak '/affinity/d' {} +
find . -type f -name "*.bak" -exec rm {} +
| true |
03b560b4105c50cca3e1099c04af9c71ea1f35e8 | Shell | ilventu/aur-mirror | /blitz-hg/PKGBUILD | UTF-8 | 1,300 | 2.765625 | 3 | [] | no_license | # Maintainer: bastikr <basti.kr@gmail.com>
pkgname="blitz-hg"
pkgver=1902
pkgrel=1
pkgdesc="C++ class library for scientific computing"
url="http://www.oonumerics.org/blitz/"
license=('GP' 'custom')
arch=('i686' 'x86_64')
depends=('gcc')
makedepends=('mercurial')
provides=('blitz')
conflicts=('blitz')
source=('Makefil... | true |
940095e5b6007189ad1d8be5189ce805440bb53c | Shell | CodeChillAlluna/code-chill-server | /install/deploy.sh | UTF-8 | 1,173 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
docker_path=docker
docker_build=$docker_path/codechill-server.jar
build_app () {
# Build the app
mvn clean package -DskipTests=true
}
build_dockerfile() {
# Build dockerfile
cd $docker_path
cp ../target/spring*.jar codechill-server.jar
mkdir $HOME/config
cp config/application.... | true |
2b12e261a73110b4cb354efcfbb9221defc1ca25 | Shell | jonpspri/s390x-docker-builds | /chas-kafka/test_kafka.sh | UTF-8 | 1,769 | 3.65625 | 4 | [] | no_license | #!/bin/bash
REPOSITORY=${REPOSITORY:-jpspring/s390x-openwhisk}
KAFKA_LABEL=${LABEL:-kafka}
ZOOKEEPER_LABEL=${LABEL:-zookeeper}
KAFKA_DIR=$(dirname $(realpath -s $0))
finish() {
for id in "$kafka_id" "$zookeeper_id"; do
if [ -n "$id" ]; then
echo 'Killing then removing container'
echo -n 'Kill...'; d... | true |
25926a73db7f6aa2453ca7370e54e9c256c83562 | Shell | majacQ/ambertools-binary-build | /conda-ambertools-python-components/build_ambertools.py | UTF-8 | 1,463 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/sh
import os
import sys
from glob import glob
import shutil
THIS_RECIPE = os.getenv('RECIPE_DIR', '')
conda_tools_dir = os.path.join(THIS_RECIPE, '..', 'conda_tools')
print('conda_tools_dir', conda_tools_dir)
sys.path.insert(0, conda_tools_dir)
import utils # conda_tools
import copy_ambertools
def main():
... | true |
0ac49b99c30f2df984b0fb9f1672b1d9aa4d4827 | Shell | 1w3j/1w3j | /scripts/preptorrent.sh | UTF-8 | 156 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
if [[ -e "$1" ]]; then
echo Linking "$1" -\> ~/Bittorrent && ln -s "$(realpath $1)" ~/Bittorrent
else
echo "$1 does not exist"
fi | true |
6575121d8466cf4ccbd1368c52541af1f0b1a732 | Shell | sfillwo/emnlp2019-dualgraph | /train_LDC2015E86.sh | UTF-8 | 1,016 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$#" -lt 5 ]; then
echo "./train_LDC2015E86.sh <gpuid> <gnn_type> <gnn_layers> <start_decay_steps> <decay_steps>"
exit 2
fi
mkdir -p data/models
GPUID=$1
GNNTYPE=$2
GNNLAYERS=$3
STARTDECAYSTEPS=$4
DECAYSTEPS=$5
DATASET=ldc2015e86
STEPS=840
EPOCHS=$((${STEPS}*60))
export CUDA_VISIBLE_DEVICES=${G... | true |
2726130c1fb8cd2fc7efe80101b58673046d5d11 | Shell | cybernetics/summer-of-k8s | /week3/ambassador-demo-cluster/install.sh | UTF-8 | 12,250 | 3.671875 | 4 | [] | no_license | #!/bin/bash
STACK="nodejs"
FAST_API_REPOSITORY="https://github.com/datawire/edgey-corp-python-fastapi.git"
FLASK_REPOSITORY="https://github.com/datawire/edgey-corp-python.git"
NODEJS_REPOSITORY="https://github.com/datawire/edgey-corp-nodejs.git"
GOLANG_REPOSITORY="https://github.com/datawire/edgey-corp-go.git"
JAVA_REP... | true |
5c57260be2064db009697678b3d941ba4b62adcd | Shell | john-r2/OpenFPC | /tools/function_test.sh | UTF-8 | 2,021 | 3.5625 | 4 | [] | no_license | #!/bin/bash -e
# Quickly test a set of functions to ensure things work before rolling a release
# Leon Ward - leon@rm-rf.co.uk
USER="admin"; # Creds to use for this one test
PASS="admin";
OFPC="openfpc-client -u $USER -p $PASS"
IP=$(hostname --all-ip-addresses)
echo IP is $IP
echo -e "[*] Checking Functions. Have y... | true |
1ca95c6ebeca4bb730fc0bc2fc73f4cc118d9262 | Shell | ryan-williams/ls-helpers | /ls-full-t-last-n | UTF-8 | 113 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
if [[ "$1" =~ ^[0-9]+ ]]; then
num="$1"
shift
fi
ls-full-t "$@" | tail -n "${num:-10}"
| true |
3c9732e21f2f6223be91df1697a356f66af6b0d8 | Shell | mikebean233/CSCD439_HW | /HW3/TurnIn/runTests.sh | UTF-8 | 1,499 | 3.5625 | 4 | [] | no_license | #! /bin/bash
# arg1: n
# arg2: threadsPerBlock
# arg3: kernelNo
function runConfiguration {
OLDIFS="$IFS"
IFS="~"
n=$1
threadsPerBlock=$2
kernelNo=$3
echo "--------- executing configuration: n=$n, threadsPerBlock=$threadsPerBlock, kernelNo=$kernelNo ---------------"
echo ""
error=($( {... | true |
b4208b3fafda4bf79769621e85d491c79490d0b6 | Shell | yuHe1/learnShell | /checkport.sh | UTF-8 | 201 | 3.375 | 3 | [] | no_license | #!/bin/sh -ex
port=$1
#errors=$( netstat -aon | grep $port )
#echo $errors
if [ "$(lsof -i:$port)" ]; then # netstat -aon | grep $port #in linux
echo "is in use"
exit 1
else
echo "not used "
fi
| true |
2cfa7c03cb76a67a7a44e81f4b391a35669782d0 | Shell | metalefty/s3fs-fuse-rpm | /fuse-rpm | UTF-8 | 359 | 2.609375 | 3 | [] | no_license | #!/bin/bash
if [ ! -f './SRPMS/fuse-2.8.5-99.vitki.01.el5.src.rpm' ]; then
wget --no-check-certificate 'https://rpm.vitki.net/pub/SRPMS/fuse-2.8.5-99.vitki.01.el5.src.rpm' -O './SRPMS/fuse-2.8.5-99.vitki.01.el5.src.rpm'
fi
rpmbuild --define "_topdir `pwd`" --rebuild 'SRPMS/fuse-2.8.5-99.vitki.01.el5.src.rpm'
echo You... | true |
0cde9719aa2cd02596c7cbd4ed6354ca1097556e | Shell | hui-liu/rootstock_AlleleSeq | /scripts/pileup_samtools.sh | UTF-8 | 299 | 3.203125 | 3 | [] | no_license | #!/bin/bash
SCRIPT_DIR=$(readlink -f ${0%/*})
SAM=$1
BAMDIR=$2
OUT=$3
OUT2=$4
echo "Take $SAM and make to $OUT and then sort and output to $OUT2 \n"
echo "SAM is $SAM"
echo "BAMDIR is $BAMDIR"
echo "BAM is $OUT"
echo "SORTED is $OUT2"
qsub $SCRIPT_DIR/submit_samtools.sh $SAM $BAMDIR $OUT $OUT2
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.