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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
78e89837e10d0eaed02876c6bf76f3fa8934ea8b | Shell | ftschindler-work/dune-gdt-python-bindings | /Dockerfiles/bashrc | UTF-8 | 1,966 | 3.03125 | 3 | [
"BSD-2-Clause"
] | permissive | [ -z "$PS1" ] && return
export HISTSIZE=10000
export HISTFILESIZE=${HISTSIZE}
export HISTCONTROL=ignoreboth
shopt -s cdspell
shopt -s histappend
shopt -s checkwinsize
shopt -s cmdhist
shopt -s dotglob
shopt -s expand_aliases
shopt -s extglob
shopt -s hostcomplete
shopt -s nocaseglob
set show-all-if-ambiguous on
set s... | true |
efcf6858bf3a6d04b298734c25759b54aff44c5e | Shell | jyhsum/Simple-CI-CD-Demo | /travis/deploy_script.sh | UTF-8 | 1,504 | 2.859375 | 3 | [] | no_license | #!/bin/bash
set -e
create_test_ECS_Service(){
echo "Create ECS service for functional test"
aws ecs create-service \
--cluster demo \
--service-name demo-service-test \
--task-definition demo \
--desired-count 1 \
--launch-type FARGATE \
--platform-version LATEST \
--n... | true |
1382fd13bcb017c892bb7655a1ca2f908d4ddeda | Shell | atcgnu/rdresearch | /data/disease_associated_transcript/getDAT.sh | UTF-8 | 832 | 2.515625 | 3 | [] | no_license | # download latest refGene data from http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/
# wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/refGene.txt.gz .
# get transcript gene pair
less refGene.hg19.txt.gz | awk -F'\t' '{print $2"\t"$13}' | sort -u | less > NM2GENE.tsv
# based hgmd data and refGene ... | true |
480ecbf15dd5c0f5c2b6d0b5ef265d792d2c89b2 | Shell | lazarenkod/elasticsearch-cartridge | /bin/control | UTF-8 | 1,176 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -eu
function start {
echo "Starting Elasticsearch cartridge"
$OPENSHIFT_ELASTICSEARCH_START_SCRIPT
}
function stop {
echo "Stopping Elasticsearch cartridge"
PID=$(cat ${OPENSHIFT_ELASTICSEARCH_DATA_DIR}pid)
if [ -n "${PID+x}" ]; then
kill $PID
fi
}
function restart {
echo "Restarting"
... | true |
06cbc5f0f5f0cc21afbd31dfcccf073ba9222156 | Shell | ghuntley/monorepo | /third_party/git/t/t4066-diff-emit-delay.sh | UTF-8 | 1,510 | 3.15625 | 3 | [
"MIT",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"GPL-3.0-only",
"GPL-2.0-only"
] | permissive | #!/bin/sh
test_description='test combined/stat/moved interaction'
. ./test-lib.sh
# This test covers a weird 3-way interaction between "--cc -p", which will run
# the combined diff code, along with "--stat", which will be computed as a
# first-parent stat during the combined diff, and "--color-moved", which
# enables... | true |
b966c442b276a575cf25584cc62155aaa0251605 | Shell | mebusy/codeLib | /openRestyServer/runDB.sh | UTF-8 | 459 | 3.09375 | 3 | [] | no_license |
dbName=hdadb
if [ "$(docker ps -aq -f name=${dbName})" ]; then
echo 'run an existing db '
docker stop ${dbName} > /dev/null
docker start ${dbName} > /dev/null
else
echo 'run a new db instance '
mkdir -p DB/data
# docker rm -f ${dbName}
docker run --name ${dbName} --net=host -e MYSQL_ROOT_PASSWORD=p... | true |
548041b542cd7abef75e91fd712e6c57d02e8945 | Shell | GabLeRoux/minikube-macos-hyperkit-instructions | /install_minikube_hyperkit.sh | UTF-8 | 580 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env bash
FORMULA_URL=https://raw.githubusercontent.com/jacobwgillespie/homebrew-core/docker-machine-driver-hyperkit/Formula/docker-machine-driver-hyperkit.rb
DRIVER_BINARY_PATH=/usr/local/bin/docker-machine-driver-hyperkit
brew cask install minikube
brew install $FORMULA_URL
# ensure binary is linked
brew... | true |
3d6cd594c66029f6eb3e5756d596b0ee8fa86bf9 | Shell | Sithi5/RS1 | /createvm.sh | UTF-8 | 5,938 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# Colors
_BLACK='\033[30m'
_RED='\033[31m'
_GREEN='\033[32m'
_YELLOW='\033[33m'
_BLUE='\033[34m'
_PURPLE='\033[35m'
_CYAN='\033[36m'
_GREY='\033[37m'
# Text format
_DEF='\033[0m'
_GRAS='\033[1m'
_SOUL='\033[4m'
_CLIG='\033[5m'
_SURL='\033[7m'
clear
echo "$_PURPLE"
echo " ██▓███ ▒█████ █ █░▓█████... | true |
214608e8a376c54ec546161c22ab8ce715e30568 | Shell | vparihar01/m-script | /helpers/svncheck.sh | UTF-8 | 3,974 | 3.796875 | 4 | [] | no_license | #!/bin/bash
# Copyright (C) 2008-2011 Igor Simonov (me@igorsimonov.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version... | true |
808b50efa74565004425f0b0774c49edd2089f2c | Shell | picekl/models | /research/slim/scripts/snakes_p3/eval_inception_v4_from_imagenet.sh | UTF-8 | 1,241 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive |
#!/bin/bash
##
# 2018, Milan Sulc, CTU in Prague
##
# The script is expected to run on server "lcgpu".
# Contains only training, not building tfrecord data files.
##
# As 2018 validation set I use the 2017 test set with GT annotations
export CUDA_VISIBLE_DEVICES=6
CROP_POSITION='0.2_0.2'
CROP_SIZE=0.6
MIRROR=0
... | true |
881e0dc7e4d39d4d432dba25a4d5320dc24c19bd | Shell | aurex-linux/aurex-settings | /default-settings/usr/share/aurex-default-settings/aurex-add-whiskermenu | UTF-8 | 664 | 3.34375 | 3 | [] | no_license | #!/bin/sh
# add plugin-40 if not exists
xfconf-query -c xfce4-panel -p /plugins/plugin-40 -n -t string -s "whiskermenu"
# copy default configuration if not exists
[ -r "$HOME/.config/xfce4/panel/whiskermenu-40.rc" ] || cp /etc/xdg/xdg-aurex/xfce4/panel/whiskermenu-40.rc .config/xfce4/panel/
# get array of plugins a... | true |
d26302ecb986308fe05753239e6c9c9b8e0df223 | Shell | MichaelBrim/dotfiles | /bash/functions/cdup.bash | UTF-8 | 113 | 3.140625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cdup ()
{
cnt=${1:-1};
while [ $cnt -ne 0 ]; do
cd ..;
cnt=`expr $cnt - 1`;
done
}
| true |
88ff1697e6745f998c63af8803ddefa05b24b736 | Shell | emuikernel/BDXDaq | /devel/coda/src/scripts/boot_renew.tcl | UTF-8 | 10,293 | 2.75 | 3 | [] | no_license | #!/bin/sh
#\
exec /usr/bin/expect -- "$0" ${1+"$@"}
#
set roc $argv
set roc [string tolower $roc]
if { $roc == "sc-laser1" } { set ROC LASER1
} else { set ROC [string toupper $roc] }
puts "roc=$roc"
puts "ROC=$ROC\n"
set env(TCL_LIBRARY) "/usr/local/coda/2.2.1r2/common/lib/tcl7.4"
set clonlog "$env(CLON_LOG... | true |
4a3b82a33a198ab046e55814ace7f3ec16b0b11b | Shell | YGskty/openrave-installation | /install-fcl.sh | UTF-8 | 365 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#
# Authors:
# Francisco Suarez-Ruiz <fsuarez6.github.io>
#
# Description:
# OpenRAVE Installation Script: FCL
# FCL - The Flexible Collision Library
echo ""
echo "Installing FCL 0.5.0 from source..."
echo ""
cd ~/git
git clone https://github.com/flexible-collision-library/fcl
cd fcl; git reset --hard ... | true |
bf502602a08df496fee575fe1ee87fd5b7755b58 | Shell | xdatanext/mpk8s | /mpinstall.sh | UTF-8 | 878 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# THis is the directory that gets mounted on each VM
MOUNTDIR=/Users/myuser/mydir
# Launch Ubuntu 18.04 images . mnode is master wnode1 is the first worker node
multipass launch --name mnode 18.04
multipass launch --name wnode1 18.04
# Let's see the release info on the image
multipass exec mnode -- lsb_r... | true |
02c65c80210a5380c214f3d8616564c125782dc6 | Shell | varanagalla/MyShell | /convert_to_secs_v2.sh | UTF-8 | 1,750 | 4 | 4 | [] | no_license | #!/bin/sh
#
# SCRIPT: convert_to_secs_v2.sh
# AUTHOR: VARAPRASAD NAGALLA
# DATE: 09/10/2013
# REV: 1.1.A
#
# PLATFORM: Not platform dependent
#
# PURPOSE: This scripts accepts time interval as seconds:mins:hours:days:process
# and converts the interval to seconds using getopts command. This script explains
# the u... | true |
23433f8d5793184992dcf2249cd4a3ba883f702a | Shell | gioenn/sparkutils | /start_vpn.sh | UTF-8 | 132 | 2.78125 | 3 | [] | no_license | #!/bin/bash
path="${VPN_HOME}/*.ovpn"
echo $VPN_HOME
for f in $path ; do
sudo openvpn --config ~/openvpn/samver3.ovpn &
done
| true |
deead5dc900fadc0cc0f52691ccd76784ae0112d | Shell | MaBingChao/test | /sh/ctest.sh | UTF-8 | 1,230 | 3.109375 | 3 | [] | no_license |
#!/bin/bash
glob_temp=""
list_path=/home/blue/sh_test/txt/list.txt
list_patha=/home/blue/sh_test/txt
if [ -f "$list_path" ]
then
echo "1111111"
while read -r oem_temp
do
if grep -q "$1" "txt/$oem_temp.txt"
then
pwd
echo "${oem_temp}"
glob_temp=$oem_temp
echo "$glob_temp.txt"... | true |
3c624dacc972df8cb977b43eabe8b4874397a490 | Shell | szymonlipinski/hackernews_analysis | /preprocessing/run_all.sh | UTF-8 | 578 | 2.96875 | 3 | [] | no_license | #!/bin/bash
PSQL="psql -U hn hn"
echo "Removing existing tables and views"
./remove_tables.sh
echo "Creating basic table"
$PSQL < raw_data.create.sql
echo "Loading data"
./load_files.sh hn hn raw_data /home/data/hn
echo "Removing duplicates"
$PSQL < clean_duplicates.sql
echo "Creating indices for data"
$PSQL < in... | true |
422b1fc1b3afff10a6fad63309fe386ded337763 | Shell | JacobianTang/learn | /shell_learn/chapter-10-15/test8.sh | UTF-8 | 93 | 2.734375 | 3 | [] | no_license | #!/bin/sh
var1=10
while echo $var1
[ $var1 -gt 0 ]
do
echo $var1
var1=$[ $var1-1 ]
done
| true |
ac49fe97a2c1a392eac5219b2955ea59d7a68bf4 | Shell | George0828Zhang/NAT | /DATA/config/iwslt16.lee.xlmr/preprocess.sh | UTF-8 | 526 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
src=$SRCLANG
tgt=$TGTLANG
distill=$DISTILL
raw=$RAW/iwslt/en-de
prep=$CACHE/prep
ready=$CACHE/ready
mkdir -p $prep $ready
for L in $src $tgt; do
if [[ ! -z "$distill" ]]; then
disdir=$src$tgt # ende or deen
cat $raw/distill/$disdir/train.tags.en-de.bpe.$L \
| sed 's/@@... | true |
c9cee8816bd553bb440b6cb50085ce4eca175e67 | Shell | peter-stuhlmann/CommemorationPage | /db-backup.sh | UTF-8 | 1,469 | 3.609375 | 4 | [] | no_license | #!/bin/bash
routes=("cards" "choirs" "concerts" "cv" "discography" "memories" "orchestras" "pages" "pictures" "repertoire")
# colors
GREEN='\033[0;32m'
RED='\033[0;31m'
COLORRESET='\033[0m'
url=$(grep REACT_APP_API_URL .env | xargs)
url="${url##*'url='}"
date=$(date +%F)
time=$(date +%H-%M-%S)
directory=$(echo $dat... | true |
67637dac504ac58b3cee0c2c1756b3db89855998 | Shell | clelange/QStarProduction | /DIGI-RECO-MiniAODv2/submitCrab_MiniAODv2.sh | UTF-8 | 700 | 3.171875 | 3 | [] | no_license | #!/bin/zsh
NJOBS=1000
CRABTEMPLATE=crabConfig_MCgeneration_MiniAODv2.py
DATE=`date +'%F'`
for DATASETIN in `cat datasets_AODSIM.txt`; do
echo "DATASETIN: $DATASETIN"
#a=("${(@s/-/)DATASETIN}")
a=("${(@s|/|)DATASETIN}")
INSHORT=$a[2]
CRABCONFIG=crabConfig_${INSHORT}_MiniAODv2_80X.py
#echo "CRABCONFIG $CRAB... | true |
3102ec01727c57d50f16301993f93d777de079e1 | Shell | idf/bash_util | /java.sh | UTF-8 | 433 | 3.453125 | 3 | [] | no_license | ret="result.txt"
function compile() {
if ! javac "${TARGET}/${JAVA_CLASSNAME}.java" 2>> $ret; then
echo "${TARGET}/${JAVA_CLASSNAME}.java failed to compile! Exiting..." | tee -a $ret
exit 1
fi
}
function exec() {
# OSX gtimeout rather than timeout
if ! gtimeout 15s java -cp .:*:$TARGET "$JAVA_CLAS... | true |
d640ee308873cfde45f807102d6a930d7e83caae | Shell | Dapacruz/.dotfiles | /macos/stow/unstow.sh | UTF-8 | 513 | 3.953125 | 4 | [] | no_license | #!/usr/bin/env bash
source configs.sh
for c in ${configs[*]}
do
target="$(dirname $c)"
package="$(basename $c)"
# Remove leading dot if one exists
if [[ $package = .* ]]
then
package=$(sed -E 's/^\.(.*)/\1/' <<< $package)
fi
# Unstow
stow --dotfiles -vDt $target $package
... | true |
1501668d34486eaa30bc977b27f7669e9012136f | Shell | MarinBernard/cdist | /cdist/conf/type/__docker_stack/gencode-remote | UTF-8 | 1,482 | 3.453125 | 3 | [] | no_license | #!/bin/sh -e
#
# 2018 Ľubomír Kučera <lubomir.kucera.jr at gmail.com>
#
# This file is part of cdist.
#
# cdist is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your op... | true |
f64aacb6a73f18ca0c37c58d264ca09f5f0e7365 | Shell | y0upi/PKGBUILD | /mint-x-icons/PKGBUILD | UTF-8 | 764 | 2.71875 | 3 | [] | no_license | # Maintainer: Carl George <carl@carlgeorge.us>
# Contributor: Ryan Peters <sloshy45@sbcglobal.net>
# Special thanks to the Linux Mint project, without them this would not exist.
pkgname=mint-x-icons
pkgver=1.1.8
pkgrel=1
pkgdesc="Mint-X Icon themes. A mint/metal theme based on mintified versions of Clearlooks Revamp... | true |
19844ec2e734d7e4422b81a54dcb2e51ad40647a | Shell | lnxjedi/gopherbot | /.gopherci/pipeline.sh | UTF-8 | 2,283 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# pipeline.sh - trusted pipeline script for gopherci for Gopherbot
source $GOPHER_INSTALLDIR/lib/gopherbot_v1.sh
if [ -n "$NOTIFY_USER" ]
then
FailTask notify $NOTIFY_USER "Gopherbot build failed"
fi
FailTask email-log parsley@linuxjedi.org
CTAG="latest"
if [[ $GOPHERCI_BRANCH == release-* ]]
then... | true |
344339d50722f16ae92a712efe9d9f6d3f96db75 | Shell | eerimoq/monolinux-example-project | /3pp/linux/tools/testing/selftests/net/psock_snd.sh | UTF-8 | 2,263 | 3.1875 | 3 | [
"MIT",
"Linux-syscall-note",
"GPL-2.0-only"
] | permissive | #!/bin/bash
# SPDX-License-Identifier: GPL-2.0
#
# Run a series of packet socket send regression tests
set -e
readonly mtu=1500
readonly iphlen=20
readonly udphlen=8
readonly vnet_hlen=10
readonly eth_hlen=14
readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))"
readonly mss_exceeds="$((${mss} + 1))"
readonly max_mt... | true |
7aacc9137c86d846b548b08d01d302dbf9d19524 | Shell | compagnons-devops/shellfactory | /test/std.bats | UTF-8 | 4,936 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats
#Tests for std.lib
setup() {
. "$BATS_TEST_DIRNAME/../lib/log.lib"
. "$BATS_TEST_DIRNAME/../lib/std.lib"
rep_log=.
script_nom=test_log
}
sortie() {
exit $SEVERITE
}
@test "DESCRIBE sflib_std_init exist" {
command -v sflib_std_init
}
@test "DESCRIBE sflib_std_sortie exist" {
comman... | true |
ff7aa34ca41d742df095334900aa458a4229f213 | Shell | petronny/aur3-mirror | /gish-hb/PKGBUILD | UTF-8 | 1,420 | 2.671875 | 3 | [] | no_license | # Maintainer: Carl Reinke <mindless2112 gmail com>
# Contributor: Artificial Intelligence <polarbeard@gmail.com>
pkgname=gish-hb
pkgver=1.61
pkgrel=2
pkgdesc="[Humble Bundle] A one of a kind 2d sidescroller with a twist you play as a totally physics based ball of tar."
arch=('i686' 'x86_64')
url='http://www.chroniclog... | true |
f6947f4fdba0929c28b0684a3ac77ed69e8737ab | Shell | parallelworks/designExplorerModules | /example_inputs/welding/utils/runSim.sh | UTF-8 | 835 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
CcxExec=$1
ccxInputFile=$2
if [ "$#" -eq 3 ]; then
matLibFile=$3
fi
WORK_DIR=$(pwd)
pvpythonExtractScript=utils/extract_Box_json.py
pythonPlotScript=utils/plot.py
execDir=$(dirname "${ccxInputFile}")
ccxfilename=$(basename "$ccxInputFile")
ccxfileRootName="${ccxfilename%%.*}"
# Copy matLibFile to... | true |
4fd8438cd206334ec7bd4a030c4c0427d17e3a40 | Shell | wjmn/dsb-bioinformatics-project | /src/liftOver_GSE55699_19to38.sh | UTF-8 | 332 | 2.546875 | 3 | [] | no_license | cd ../data/raw/markers/GSE55699
# PAY ATTENTION TO THE LINE DIRECTLY BELOW: 18 VS 19 VS 38
dir_chain=../../liftOverchains/hg19ToHg38.over.chain
dir_save=../../../temp/markers_hg38/
for filename in *.txt;
do
liftOver $filename $dir_chain $dir_save${filename/.bed/_liftedto38.bed} $dir_save${filename/.bed/_liftedto3... | true |
215a779bb953df8d1bba240921657496b74a780b | Shell | klmr/.files | /deploy | UTF-8 | 2,674 | 4.28125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
load_local_conf() {
local conf="$1"
echo "$(<"$conf" sed '/^[[:space:]]*#/d')"
}
load_files() {
local components="$1"
local component="$2"
# Read component files
files=($(sed -n \
"# Look for line starting target component section
/^\\[$component\\]$/{
... | true |
0dc065e4e7d50d1e6be5e66841ae89b81ca197fd | Shell | dengliyao/dly | /dly/bconfigure.sh | UTF-8 | 1,749 | 2.828125 | 3 | [] | no_license | #/bin/bash
setenforce 0
iptables -F
yum install openldap openldap-clients nss-pam-ldapd -y
#通过证书连接ldap服务器
authconfig --enableldap --enableldapauth --ldapserver=servera.pod12.example.com --ldapbasedn="dc=example,dc=org" --enableldaptls --ldaploadcacert=http://servera.pod12.example.com/ca.crt --update
#安装autofs挂载家目录并... | true |
010ac2fe4de46b0d615e4cab5629e9ced2306c64 | Shell | T-J-Teru/dotfiles | /home/DOT_bash.d/bashrc | UTF-8 | 20,029 | 3.203125 | 3 | [] | no_license | # .bashrc
#=====================================#
# Keyring Related Setup #
#=====================================#
# This starting of gnome-keyring-daemon has been in my config for a
# while, and I'm not sure if it's really a good thing or not.
#
# TODO: Figure out the relationship between gnome-keyrin... | true |
e9dd1fb2707d1c0a9eee2d307f4467e8d9117aac | Shell | petronny/aur3-mirror | /dc7280/PKGBUILD | UTF-8 | 1,254 | 2.65625 | 3 | [] | no_license | # Submitter: Christoph Ketelsen <christoph dot ketelsen at gmail dot com>
pkgname=dc7280
pkgver=1.0
pkgrel=5
pkgdesc="Kernel module for Highpoint DataCenter 7280 3Gb/s SATA Host Adapter"
arch=('i686' 'x86_64')
url="http://www.highpoint-tech.com/USA_new/cs-series_DC7280.htm"
license=('custom')
groups=()
depends=('li... | true |
b54bce252fa997e000fa34177ee509529b72ae5f | Shell | pmaluf/restore_mysql | /restore_mysql.sh | UTF-8 | 11,916 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# restore_mysql.sh - MySQL restore using NETAPP FlexClone
# Created: Paulo Victor Maluf - 03/2017
#
# Parameters:
#
# restore_mysql.sh --help
#
# Parameter Short Description Default
# ------------------- ----- -----------------... | true |
0e6fa3f0cfabfe18536a28017ea1a11df225eb94 | Shell | nx6110a5100/bashscripts | /vulnerability_validation/clickjack_poc_gen.sh | UTF-8 | 1,035 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Name: clickjack_poc_gen.sh
# Auth: Frank Cass
# Date: 20151218
# Desc: Generate Clickjacking PoC HTML from URL and place it in /var/www
#
###
echo "[*] -= clickjack_poc_gen.sh =-"
echo "[*] Desc: Quickly create a clickjacking test page and copy it to /var/www"
echo "[*] Please enter a URL, such as http... | true |
627f136e4d819e6a030e496c6e4261e65bac1a4b | Shell | aur-archive/django-recaptcha | /PKGBUILD | UTF-8 | 1,004 | 2.65625 | 3 | [] | no_license | # Maintainer: Alper KANAT <alperkanat@raptiye.org>
pkgname=django-recaptcha
pkgver=0.0.3
pkgrel=2
pkgdesc="Django reCAPTCHA form field/widget integration app"
url="https://github.com/praekelt/django-recaptcha"
arch=('any')
license=('custom')
makedepends=("python2-distribute")
depends=("python2" "django")
source=($pkgn... | true |
acbfdb182a18edaa3ac299ff8f82cd50f39761ad | Shell | jnewbery/turbo-hipster | /tools/coin_utils | UTF-8 | 1,504 | 4.375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
usage="$(basename "$0") [-h] [-c n] - utility functions for coins
where:
-h show this help text
-c specify the coin. Valid options are:
- BTC for bitcoin
- LTC for litecoin
- DOG for dogecoin
- FLO for florincoin
- NMC for namecoin
- NXT f... | true |
6c8351c8160a42ad37fafc3fccb99f5ab1b92f25 | Shell | zafird/bcit-courses-notes | /COMP 8045 - Major Project/examples/turtle2/remotesh.sh | UTF-8 | 365 | 3.640625 | 4 | [] | no_license | #!/usr/local/bin/bash
# this script can be used to send commands to a rootkitted system
# the format of a cmd is: __cmd;
# note: it uses hping
if [ $EUID -ne 0 ];
then
echo "You must be root!"
exit -1
fi
if [ $# -lt 1 ];
then
echo "specify hostname or ip!"
exit -1
fi
while [ 1 ]
do
echo -n "cmd>"
read cmd_lin... | true |
84dcf5fa74da519fe0a00a421cdd1ae586b67a44 | Shell | msys2/MINGW-packages | /mingw-w64-glslviewer/PKGBUILD | UTF-8 | 1,789 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Naveen M K <naveen521kk@gmail.com> @naveen521kk on Github.
_realname=glslviewer
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.6.1
pkgrel=1
pkgdesc=" Console-based GLSL Sandbox for 2D/3D shaders shaders (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'u... | true |
f61a2e366893c8aa2bc883e7f92c397461f0b909 | Shell | wkrzemien/j-pet-mlem | /scripts/cmake_clang.sh | UTF-8 | 514 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
path=$(cd >/dev/null 2>&1 $(dirname $0); pwd)
base=
for d in /usr/local/clang+llvm-*-x86_64-apple-darwin; do
[ -d $d ] && base="$d"
done
if [ ! -d $base ]; then
echo >&2 'Cannot find Clang in /usr/local/clang+llvm-*-x86_64-apple-darwin'
exit 1
fi
echo 'Using Clang at:' $base
exec cmake \
-GN... | true |
b6be3b3e0f73e16f3e074bd1858ed80bb770fd52 | Shell | csgrimes1/chihuahua-tester | /src/newtest.sh | UTF-8 | 2,172 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [ $# -lt 2 ]; then
echo "$(dirname $0) TESTDIR TESTNAME [FORMAT]"
echo " TESTDIR directory relative to project root"
echo " TESTNAME filename of test. Example: foo.test, footests/bar.test.js"
echo " FORMAT is optional. When BARE, it creates a minimal, bare test file."
exit... | true |
a2a70c751b31a90803db76489dd9e21e363cd401 | Shell | damir-sijakovic/bash_shorties | /scripts/set_jpg_copyright.sh | UTF-8 | 191 | 3.140625 | 3 | [] | no_license | #!/bin/sh
ECHO=/usr/bin/echo
UTIL_INFO="Type filename after script."
if [ $# = 0 ]; then
$ECHO $UTIL_INFO
else
convert -comment "©2019 Damir Šijaković" "$1" "$1"
identify -verbose "$1"
fi
| true |
e70c81d5c104176ecb2cdb8d2cbcc15b8c8ebe3f | Shell | vanduc95/til | /fluentd/lab/efk-docker/auto.sh | UTF-8 | 561 | 2.84375 | 3 | [] | no_license | #!/bin/bash
# Simple script to create and append log line by line simulately
# trap ctrl-c and ctrl_c()
#trap ctrl_c INT
#
#function ctrl_c() {
# rm -f ./vsmart-logs/fake_catalina.log
# exit 0
#}
#while IFS= read -r line;do
# sleep 1
# echo "$line" >> ./fluentd/data/example.log
#done < ./sample-logs/examp... | true |
96723032a4bdbd88b6e8e96e8d66de8d8adc3f37 | Shell | xuwang/cloud-framework | /scripts/vault2file.sh | UTF-8 | 412 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Copy secrets from vault to files, the vault paths and file paths is defined in $1 file
# The file format is
# <vault_path> <file_path>
function copy_sec() {
path=$1
file=$2
[[ -z "$path" ]] || [[ -z "$file" ]] && return
mkdir -p $(dirname $2)
vault-read.sh $path > $2
}
gre... | true |
ee02a21119835d1785799cf358e123ff5d2ccd90 | Shell | tautschnig/minisat | /tools/checker/fuzz-check-configurations.sh | UTF-8 | 1,896 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# This script runs a set of configurations on a set of randomly generated CNF
# formulas.
# Formulas to test per iteration
declare -i FORMULA_PER_CONFIG_RELEASE=3000
declare -i FORMULA_PER_CONFIG_DEBUG=400
FUZZ_MULTIPLY=${FUZZ_MULTIPLY:-1}
FORMULA_PER_CONFIG_RELEASE=$((FORMULA_PER_CONFIG_RELEASE * FUZZ_... | true |
2523be108c2f173770e92a91bd597a61cfcca4fe | Shell | bshastry/fuzzer-test-suite | /freetype2/build.sh | UTF-8 | 1,024 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2017 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
. $(dirname $0)/../common.sh
git clone --depth 1 git://git.sv.nongnu.org/freetype/freetype2.git BUILD
build_fuzzer
set -x
OUT=..
cd BUILD
sed -i 's/run aclocal/run \$HOME\/local\/bin\/aclocal... | true |
c650e38f42de55e6fa1bfa05027e4462a9787127 | Shell | BideoWego/genr8 | /express/index.sh | UTF-8 | 659 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Generating new Express app..."
echo "Creating files and folders..."
DIR=$(dirname $(readlink $(which genr8)))
DIR="$DIR/express/boilerplate"
cp -a $DIR/. .
echo "Initializing NPM project..."
echo "---------------------------"
echo
npm init
echo
echo "Installing packages with NPM..."
echo "----... | true |
ab96aa750a6d3da5d0d10c48681cade0672b73f2 | Shell | tddwizard/magento2-dockerized | /bin/functional-tests.sh | UTF-8 | 1,638 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
TROUBLESHOOTING="0"
while getopts ":t" opt; do
case $opt in
t)
TROUBLESHOOTING="1"
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
shift $(($OPTIND - 1))
#
# does not work in container?
#
#echo -e "\033[33mChecking requirements...\033[0m"
#if [ ! ... | true |
383be90afc4ac0625e83d11d896742026e8d3dc9 | Shell | toniMontalva/shellScripts | /scriptEj4.sh | UTF-8 | 227 | 3.359375 | 3 | [] | no_license | condicion=false
while [ $condicion != true ]; do
read -p "Introduzca un valor > 0: " valor
if [ $valor -gt 0 ]; then
condicion=true
for i in `seq 0 $valor`; do
echo $i
done
else
echo "Valor incorrecto"
fi
done
| true |
05241e90c4ecf60aca3e5dca0144a1da4c171e53 | Shell | DayanandaChittoor/Shell-programming | /functions/tempConversion.sh | UTF-8 | 516 | 3.828125 | 4 | [] | no_license | #!/bin/bash -x
function degCtodegF() {
out=`expr $(( $t * 9/5 )) + 32`
echo $out;
}
function degFtodegC() {
out=$(( `expr $t - 32` * 5/9 ))
echo $out;
}
read -p "Enter 1 for DegF_to_DegC or 2 for DegC_to_DegF: " option
read -p "Enter a input to perform conversion: " t
out=0;
fC=0;
fF=32;
bC=100;
bF=212;
case $optio... | true |
a7c1d7d6c1c0995ecfcb2ebd67c31bb43c4d7242 | Shell | lucaswannen/source_code_classification_with_CNN | /dataset_v2/bash/3840558.txt | UTF-8 | 798 | 3.28125 | 3 | [] | no_license | #!/bin/bash
declare -i time_start
function get_timestamp {
declare -i time_curr=`date -j -f "%a %b %d %T %Z %Y" "\`date\`" "+%s"`
echo "get_timestamp:" $time_curr
return $time_curr
}
function timer_start {
get_timestamp
time_start=$?
echo "timer_start:" $time_start
}
... | true |
ada3ae38acdab771ca10e044bf33e5c36596b137 | Shell | darey-io/infra-dev | /vagrant/CDH5-Automation/CLOUDERA_PROJECT_TEMPLATE_BUILD/deployWebserver/provision_httpd_67_v3.sh | UTF-8 | 1,495 | 3.6875 | 4 | [] | no_license | #!/bin/bash
CM_REPO_SERVER=$1
webServerParcelsDir=$2
webServerCDHDir=$3
export WEB_SERVER_TEMPLATE="http-addRepoDir-centos6.template"
yum install -y httpd
chkconfig --levels 235 httpd on
## ########################################################################
# view configuration files for httpd package
rpm -qc... | true |
c31037d5b91235c8d26662ba2a71dbe5a9cb5cd9 | Shell | carleton-spacehogs/pangenome-selection | /aux_files/get-pn-ps.sh | UTF-8 | 302 | 2.796875 | 3 | [] | no_license | ###BELOW IS TO GET THE PN/PS CALCULATIONS
for i in SAAV_Profile/*;
do file=$(echo $i | cut -d"/" -f 2);
contig=$(echo $file | cut -d"_" -f 1);
scv=$(echo $file | cut -d"_" -f 1-3);
anvi-script-calculate-pn-ps-ratio -a $i -b SCV_Profile/${scv}_SCV.txt -c ${contig}_contigs.db -m 10 -o pn_ps_03_25/${scv} | true |
632492f0304ed237cc70018b1590e34a41129364 | Shell | alanmeyer/postinstall | /wordpress_config.sh | UTF-8 | 988 | 3.109375 | 3 | [] | no_license | #!/bin/sh
# Wordpress Configuration
# Alan Meyer
# https://github.com/alanmeyer/postinstall
# https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04
APT_INSTALL='apt-get -y -f --allow-unauthenticated install'
cd ~
wget http://wordpress.org/latest.tar.gz -O latest.tar.gz
tar xzvf lat... | true |
838dafabef09c9a647a57b57327582922ed5c877 | Shell | jirislaby/slaby-scripts | /data/bash_profile | UTF-8 | 336 | 2.78125 | 3 | [] | no_license | HISTSIZE=10000
LESS="-M -R -X -F -i"
if less --help|grep -q -- --mouse; then
LESS="$LESS --mouse --wheel-lines=3"
fi
if [ -d "/opt/cross/" ]; then
for C in /opt/cross/*/bin/; do
PATH=$PATH:$C
done
fi
if [ -d "/dev/shm/jslaby" -a -x /usr/bin/ccache ]; then
export CCACHE_MAXSIZE=20G
export CCACHE_DIR=/dev/shm/j... | true |
1ffb3d3ea566474d7f4eda62a3e5f6affe327cc1 | Shell | budimanjojo/manjaro-rt | /linux-rt-manjaro-extramodules/open-vm-tools-modules/PKGBUILD | UTF-8 | 2,568 | 2.5625 | 3 | [] | no_license | # Based on the file created for Arch Linux by:
# Sergej Pupykin <pupykin.s+arch@gmail.com>
# Krzysztof Raczkowski <raczkow@gmail.com>
# Maintainer: Guinux <nuxgui@gmail.com>
# Co-Maintainer: Clittle <philm@manjarolinux.org>
pkgname=linux-rt-manjaro-open-vm-tools-modules
_pkgname=open-vm-tools-modules
groups=('linux-r... | true |
c71205ff1f82de1623581f906b08b6646c4fdde8 | Shell | mrWumpus/gvimServer | /g-set | UTF-8 | 225 | 3.390625 | 3 | [] | no_license | #!/bin/sh
if [ $# -eq 0 ]; then
echo `getGvimServer`
else
if [ "$1" = "." ]; then
GVIM_SERVER="__PWD"
elif [ "$1" = "-" ]; then
GVIM_SERVER="__DEFAULT"
else
GVIM_SERVER=$1
fi
export GVIM_SERVER
fi
| true |
874629d49df4dd2f464721f504b86e1a991c6b0b | Shell | loochao/nevernote-1 | /bin/nevernote.sh | UTF-8 | 3,222 | 3.21875 | 3 | [] | no_license | #! /bin/sh
###########################################
# Location variables. Edit the variables #
# below to your specific installation. #
# The ones below are examples only. #
###########################################
NEVERNOTE=.
JAMBI_LOCATION=lib
JAMBI_VERSION=4.6.3
JAMBI_PLATFORM=linux32-gcc
JAVA_LIB_D... | true |
b7080803caa14c1c293ccecb4833b47d0f8e489d | Shell | btamadio/MJBkg | /scripts/run_dressing_job_blind.sh | UTF-8 | 343 | 2.546875 | 3 | [] | no_license | #!/bin/bash
kinematicFile=$1
templateFile=$2
jobName=$3
templateType=$4
jobNum=$5
blindMJcut=$6
mkdir -p ../output_dressed/${jobName}
shopt -s expand_aliases
source /common/atlas/scripts/setupATLAS.sh
setupATLAS
lsetup root
../RunDresser ${kinematicFile} ${templateFile} ${jobName} ${templateType} ${jobNum} ${blindMJcu... | true |
6c8f1e768aa837f769706d531cb9fd3ddbb0ad50 | Shell | bling/dotfiles | /init.zsh | UTF-8 | 3,313 | 3.265625 | 3 | [
"MIT"
] | permissive | # vim: fdm=marker
pushd `dirname $0` > /dev/null
BASEDIR=`pwd`
popd > /dev/null
# FUNCTIONS {{{
function __symlink {
if [ ! -f "$HOME/$1" -a ! -d "$HOME/$1" ]; then
echo "symlinking $BASEDIR/$1 => $HOME/$1"
ln -s "$BASEDIR/$1" "$HOME/$1"
fi
}
function __clone {
if [ ! -d "$BASEDIR/$2" ]; then
gi... | true |
ef4b1fb282b3b219ac91dde5f3b9bef8e1e81727 | Shell | martinjos/popcluster | /run-assign.sh | UTF-8 | 241 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
odir="$1"
datafile="$2"
mkdir -p "$odir"/assign
for outfile in "$odir"/kmeans/*.txt; do
i=${outfile##*/}
i=${i%.*}
mpi_assign --cluster "$odir"/kmeans/$i.txt --assignment "$odir"/assign/$i.txt --data "$datafile"
done
| true |
07ac364481f3ac36613f808b3cd9023fa6e1db41 | Shell | bjoris33/humanGutConj_mSystems | /bin/pop_mapping_master.sh | UTF-8 | 1,410 | 2.75 | 3 | [] | no_license | #!/bin/bash
##############
# Author: Ben Joris
# Created: July 27th, 2020
# Purpose: Run all scripts to create anvio profile of the mapping
##############
mkdir ../population_mapping/
cat ../conjugative_systems/nucleotide_sequences/* >> ../population_mapping/unformated_contigs.fa
anvi-script-reformat-fasta ../popula... | true |
c0711b906f6bc574b04d467b3373b57dea656077 | Shell | tadassce/dotfiles | /bin/tmux-status | UTF-8 | 213 | 3.03125 | 3 | [] | no_license | #!/bin/zsh
host=`hostname`
time_now=`date +%H:%M`
# cal_next=`cal-next`
# wifi_name=`wifi-name`
# battery=`battery`
if [[ "${host:(-5):5}" == 'local' ]]; then
echo $time_now
else
echo "$host | $time_now"
fi
| true |
8b89b57a8cbfa9ccaf51cfd76fce15a469b0a7f6 | Shell | probberechts/dotfiles | /bin/notes | UTF-8 | 174 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [[ -z $PATTERN ]]; then
PATTERN='TODO|HACK|FIXME|OPTIMIZE'
fi
gawk 'match($0, /^.*('$PATTERN'):?\s?(.*)$/, ary) {print FILENAME":"FNR":"ary[1]":"ary[2]}' $@
| true |
8a59eb13cd8512f5ec160ab09faead07070ebbed | Shell | 285997881/dialog | /set-net.sh~origin_master | UTF-8 | 2,480 | 3.546875 | 4 | [] | no_license | #! /bin/sh
: ${DIALOG=dialog}
ipaddr=`ifconfig eth0|grep 'inet addr'|awk -F ":" '{print $2}'|awk '{print $1}'`
dev=`grep DEVICE < /etc/sysconfig/network-scripts/ifcfg-eth0 | awk -F '=' '{print $2}'`
boot_dhcp=`grep BOOTPROTO < /etc/sysconfig/network-scripts/ifcfg-eth0 | awk -F '=' '{print $2}'`
on_boot=`awk '/ONBOOT/'... | true |
9684e7b68fb36e6f9968167a1a3a88e6db9d8b5e | Shell | lsn235711/MEKF_code | /experiments/figure9_simulated_GWAS/submit_analysis.sh | UTF-8 | 1,686 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#
# Class: SLURM dispatcher
#
# Compute test statistics
#
# Author: Matteo Sesia
# Date: 02/19/2021
# Parameters
#DENS_LIST=(0.1 0.05 0.01)
DENS_LIST=(0.01)
DENS_LIST=(0.05 0.1)
#RES_LIST=("res_1" "res_2" "res_3" "res_4" "res_5" "res_7")
RES_LIST=("res_1" "res_5") #
AMP_LIST=(10 20 30 40 50 60 70 80 90 ... | true |
a37317916709726179299e38e5621bdac5aec207 | Shell | ShalokShalom/apps | /js/PKGBUILD | UTF-8 | 1,704 | 2.859375 | 3 | [] | no_license |
pkgname=js
pkgver=78.12.0
_pkgver=78.12.0esr
pkgrel=1
pkgdesc="JavaScript interpreter and libraries"
arch=('x86_64')
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/"
license=('GPL2')
depends=('nspr' 'gcc-libs' 'libffi' 'readline' 'icu')
makedepends=('python3-pip' 'python3-psutil' ... | true |
30fcf62a5a3b8aa22ee8610933dab76279429489 | Shell | cosmeaux/house | /scripts/fiddle-publish.sh | UTF-8 | 2,695 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# ---------------------------------------------------------------------------------------------------|
# Repo : https://github.com/bradyhouse/house_____________________________________|
# Specification : N/A______________________________________________________________... | true |
4baf49eca4dbd4eef0a73dd4e367c94f61038f14 | Shell | fromcj/scripts | /ecr-authenticate-tl.sh | UTF-8 | 371 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# IMPORTANT: requires that you have run aws configure --profile tl-registry to create a new profile with correct keys
RAW=$(aws ecr get-login --no-include-email --profile tl-registry)
echo ${RAW}
echo
REPLACED=$(echo ${RAW} | sed "s/https:\/\/711226717742.dkr.ecr.us-east-1.amazonaws.com/registry.transp... | true |
18c139d45f09e99daddf9c8161537984b7ecf4b4 | Shell | teja624/home | /.zsh/modules/bundler/cfg.zsh | UTF-8 | 363 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | __setup() {
local cores_num="$(sysctl hw.ncpu | awk '{print $2}')"
alias be="bundle exec"
alias bl="bundle list"
alias bp="bundle package"
alias bo="bundle open"
alias bout="bundle outdated"
alias bu="bundle update"
alias bi="bundle_install"
alias bcn="bundle clean"
alias bi="bu... | true |
1c67279c32b68a29e525d55339450d1bef93d0db | Shell | alirezabashi98/shell-me | /ali.sh | UTF-8 | 759 | 3.21875 | 3 | [] | no_license | #!/bin/bash
echo ''
REQUIRED_PKG1="figlet"
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $REQUIRED_PKG1|grep "install ok installed")
echo Checking for $REQUIRED_PKG1: $PKG_OK
if [ "" = "$PKG_OK" ]; then
echo "No $REQUIRED_PKG1. Setting up $REQUIRED_PKG1."
sudo apt-get --yes install $REQUIRED_PKG1
fi
REQUIR... | true |
65066838c539245f7d5f7c6b5778b761e635fd4e | Shell | kenmoini/atlassian-bamboo-k8s-image | /scripts/runAgent.sh | UTF-8 | 763 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#set -x
set -euo pipefail
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export LANGUAGE=C.UTF-8
#echo "whoami: $(whoami)"
#echo "id: $(id)"
#echo "ls User Home:"
#ls -al $BAMBOO_USER_HOME
#echo "ls Agent Home:"
#ls -al $BAMBOO_AGENT_HOME
#echo -e "\n"
if [ -z ${1+x} ]; then
echo "Please run the Docker im... | true |
839e534a4b32e617ff4f7cc9fea0e64ebe21b250 | Shell | waterstar/databox | /docker/containers/build.sh | UTF-8 | 210 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
SCRIPT_DIR="$(dirname "$(realpath -s "${BASH_SOURCE}")")"
################### BUILD CONTAINERS ###################
pushd $SCRIPT_DIR
for c in $(ls)
do
pushd $c && make build && popd
done
popd
| true |
de87fbf5cd599b5516191d6744eb4d618a483dc6 | Shell | wangchengww/killigenomics | /annotation/UPhO_Ensembl/prepareProteins.sh | UTF-8 | 223 | 2.765625 | 3 | [] | no_license | for i in ../ensembl/*; do
if [ -d $i ]; then
sp=`basename $i`
zcat $i/*.pep.all.fa.gz | hhvm preprocessAA.php > $i.filtered.fa 2> $i.filtered.tab
minreID.py $i.filtered.fa $sp \|
fi
done
cat *.fst > allproteins.fa
| true |
d9ced2d4195b9bfa75939705ff2d85878c8b1c83 | Shell | MarekDudek/azure-for-java-quickstarts | /kubernetes/welcome-minikube/bin/generate-echoserver-one.sh | UTF-8 | 877 | 3.0625 | 3 | [] | no_license | #!/bin/bash
THIS_FILE=$(readlink -f $0)
THIS_DIR=`dirname ${THIS_FILE}`
IFS=$'\n\t'
set -euox pipefail
pushd ${THIS_DIR}
kubectl config set-context pre-test --cluster=minikube --user=minikube --namespace=pre-test
kubectl config use-context pre-test
kubectl apply -f ../manifests/pre-test-namespace.yaml
DEPLOYMENT=... | true |
c8ca3c6222c605d6e0408cfaab8702f220d36e98 | Shell | hm1365166/opencsw | /csw/mgar/pkg/postfix/branches/postfix-2.4/files/svc-cswpostfix | UTF-8 | 132 | 2.5625 | 3 | [] | no_license | #!/bin/sh
set -x
if [ ! -f /etc/opt/csw/postfix/aliases.dir ]; then
/opt/csw/bin/newaliases
fi
exec /opt/csw/sbin/postfix "$@"
| true |
99f4876581e6997e6d356c125cafab6cf86346d1 | Shell | petronny/aur3-mirror | /nfstrace-git/PKGBUILD | UTF-8 | 872 | 2.9375 | 3 | [] | no_license | pkgname=nfstrace-git
pkgver=845.fdd4a8f
pkgrel=1
pkgdesc="NFS tracing/monitoring/capturing/analyzing tool."
arch=('any')
url="https://github.com/flyboy14/SamowarMP"
license=('GPL')
makedepends=('git' 'gcc' 'cmake' 'libpcap')
depends=('libpcap')
source=("$pkgname"::'git://github.com/epam/nfstrace.git')
md5sums=( 'SKIP' ... | true |
aeced501d1e30ba182445a858d2c07113936cdaf | Shell | htwangtw/hcp-surface-format | /NeocorticalResampler.sh | UTF-8 | 8,777 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
#
# --------------------------------------------------------------------------------
# Usage Description Function
# --------------------------------------------------------------------------------
show_usage() {
echo " Sample neocortical time series data to HCP format"
echo ""
echo " Usage:"
... | true |
011e6d1dce2a7d1fe0d92e1c40f1cd9f1792d01d | Shell | JadeGeek/Lock | /Lock.app/Contents/MacOS/main.command | UTF-8 | 576 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# main.command
# Created by Hugo Duksis
# Copyright (c) 2019 Hugo Duksis, All Rights Reserved.
# Get local path of Application
FILEPATH=$(dirname "$0")
BASEPATH=${FILEPATH%/*/*/*}
echo "$BASEPATH"
CGSESSION_PATH='(-lh "/System/Library/CoreServices/\"Menu Extras\"/User.menu/Contents/Resources/CGSession... | true |
2cd5d15b6093843a5fdcb1d7da7428527b8fe10a | Shell | edwardsnjd/dot-files | /configuration/local-bin/.local/bin/save-to-pocket | UTF-8 | 172 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
# USAGE
# save-to-pocket URL
#
# DEPENDENCIES
# curl
function save() {
local url="https://getpocket.com/save?url=$1"
open "$url"
}
save "$@"
| true |
9553496f52d55d8bf82aed14d1e11b56db46bcc8 | Shell | luxueq/x-pipe | /redis/dockerPackage/start-xpipe-container.sh | UTF-8 | 1,166 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#redis
if [ -d redis ];then
rm -fr redis
fi
mkdir redis
ports=(6379 6479 6579 6679 7379 7479 7579 7679)
for port in ${ports[*]}
do
#echo $port
mkdir -p redis/$port/data
touch redis/$port/redis.conf
chmod 777 redis/$port/redis.conf
tee redis/$port/redis.conf << EOF
loglevel deb... | true |
a4d172d2556697523cca568c0057ea94c98067fc | Shell | LFTEC/ubnt_ddns | /Edge Router/get_ip.sh | UTF-8 | 279 | 2.6875 | 3 | [] | no_license | #!/bin/vbash
#Program: 获取路由器IP
#AUTHOR: jiangyao
#Date: 20200216
run=/opt/vyatta/bin/vyatta-op-cmd-wrapper
unicom=`$run show interfaces pppoe pppoe0 | awk 'NR==3{print $2}'`
telecom=`$run show interfaces pppoe pppoe1 | awk 'NR==3{print $2}'`
echo "${unicom} ${telecom}" | true |
485ea77e5627b8856b0896c658b728788e3efa87 | Shell | mrozo/hut | /czlonkowie_xls_2_hackers_dsv.sh | UTF-8 | 652 | 3.734375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
if [[ "$1" = "-h" || "$1" = "--help" ]] ; then
echo"Convert XLS file with members list to a proper dsv members list.
Arguments:
- xls file path
- optional output file path. If not provided result will be printed to stdout
"
fi
TEMP_DIR="/tmp/$(basename "$0")_$(date | tr -s ' ,:' '_'... | true |
e5c8002f96b5f74bdc2dc8ab5822bc038892aae0 | Shell | william-oxman/pyserver-comparison | /run_all.sh | UTF-8 | 684 | 2.59375 | 3 | [] | no_license | #!/bin/zsh
echo 'SETTING UP VIRTUAL ENVIRONMENT AND INSTALLING REQUIREMENTS'
python3.9 -m venv venv
. venv/bin/activate
pip install -r requirements.txt > /dev/null 2>&1 &
gunicorn --bind 0.0.0.0:8080 -w 4 src.flask_app.flask_gunicorn_app:app > /dev/null 2>&1 &
echo 'TESTING FLASK + GUNICORN'
python manage.py --server ... | true |
70bee3d7e1580618339b065f6ab7dab4e225e5bc | Shell | marian-nmt/marian-regression-tests | /tests/training/validation/eps_stop_script.sh | UTF-8 | 233 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
prefix=eps_stop_script
num1=$(cat $prefix.temp 2>/dev/null || echo 112)
((num1=2+num1))
echo $num1 > $prefix.temp
#(( num1 > 5 )) && num2=2 || num2=1
num2=$(echo -n "$num1" | cut -c1-2)
((num1=num1%7))
echo $num2.$num1
| true |
830b6ba6eb612a0b7ff0eceb18d47101b45c4d71 | Shell | cha63506/mediawiki-svn | /testing/installer/installfiles/toolkit/check_isolation.install/update.sh | UTF-8 | 121 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
cd $DESTINATION_DIR/check_isolation
if test -n "$REVISION"; then
svn update -r $REVISION
else
svn update
fi
| true |
61e1dd82813effed13d3c38c13a9d593bf5cd829 | Shell | anvilresearch/connect-example-angularjs | /bin/replace-client-id.sh | UTF-8 | 1,759 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo This is no longer working. Use grunt instead. See README.md
exit
client_id=$1
proto=$2
host=$3
port=$4
server_host=$5
# sed with in place editing is not portable between OSX and Linux (see http://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux)
# Changing a... | true |
630a23e259110a288bb87d750c3dc49d70987c45 | Shell | rsbyrne/everest | /everest/linux/run.sh | UTF-8 | 288 | 3.484375 | 3 | [
"MIT"
] | permissive | SCRIPT=$1
N=$2
BASENAME=$(basename "$SCRIPT")
LOGSDIR="./logs"
rm -rf $LOGSDIR
mkdir -p $LOGSDIR
INTERPRETER=python3
for i in $(seq 1 $N)
do
OUTFILE=$LOGSDIR"/"$BASENAME"_"$i".out"
ERRORFILE=$LOGSDIR"/"$BASENAME"_"$i".error"
$INTERPRETER -u $SCRIPT 1> $OUTFILE 2> $ERRORFILE &
done
| true |
7207f6c5cae6adc9616b480faa9a708508da72d3 | Shell | The-Oxford-GBD-group/typhi_paratyphi_modelling_code | /mbg/mbg_core_code/mbg_central/share_scripts/link_table/launch.sh | UTF-8 | 5,857 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#
# This script contains launch scripts for the various phases of link table generation:
# 1. partition
# 2. build link tables
# 3. finalize/combine link tables
# 4. check that link table was generated correctly
# 5. clean up temporary directory
# 6. validate link table
#
# Args:
# d: shapefile directory
... | true |
4806bb681d87efe5e79dda12bb247b1e45425556 | Shell | 1-fares/linux_nginx_elasticsearch_php_image | /debian_install_software.sh | UTF-8 | 1,124 | 3.03125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
set -x
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
apt-get update && \
apt-get install \
bash \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
git \
autoconf \
bison \
libxml2-dev \
libsqlite3-dev \
libcurl4-openss... | true |
1c13a6c4eb8e1ec0caa6ec75932cd4e021ed1e5e | Shell | yograterol/fedora-dev | /entrypoint.sh | UTF-8 | 532 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
: ${SSH_USERNAME:=user}
: ${SSH_USERPASS:=$(dd if=/dev/urandom bs=1 count=15 | base64)}
__create_rundir() {
mkdir -p /var/run/sshd
}
__create_user() {
useradd $SSH_USERNAME
echo -e "$SSH_USERPASS\n$SSH_USERPASS" | (passwd --stdin $SSH_USERNAME)
echo ssh user password: $SSH_USERPASS
echo 'u... | true |
9a0611e9d16dc1773b0919ef9ae28dd2294537ee | Shell | praveenn7/KKN1 | /p10.sh | UTF-8 | 691 | 3.453125 | 3 | [] | no_license | <<Q
step 1: read a partition name from <STDIN>(ex: /dev/sda1)
step 2: read a partition Size from <STDIN>(ex: 100)
step 3: read a another disk partition name from <STDIN>
step 4: read a partition Size from <STDIN>
step 5: calculate Sum of two disks partition size - use expr
step 6: display partition details and total pa... | true |
8ae67be283223c74fcb4963669a276d6d1136a4b | Shell | g0loob/bachelor-project-consul | /vmsetup.d/vmsetup.sh | UTF-8 | 721 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get ... | true |
7e8abaea80d7b42bb7e507c9f4f70b090cac7312 | Shell | pemiesp/hadoop | /2_Install_Environment.sh | UTF-8 | 1,967 | 2.84375 | 3 | [] | no_license | #Update repository
apt-get update && apt-get upgrade -y
#Get the java version jdk1.8.0_181
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz
mkdir /opt/jdk
tar -zxf jdk-8u191-linux-x64.t... | true |
9bea3943477d2d2f1363a74877e3df1ea360d8bb | Shell | kodekloudhub/certified-kubernetes-administrator-course | /resources/high_cpu_node.sh | UTF-8 | 668 | 2.84375 | 3 | [] | no_license | #!/bin/bash
echo cluster1 $(kubectl --context cluster1 top node --no-headers | sort -nr -k2 | head -1) > /tmp/high_cpu_node
echo cluster2 $(kubectl --context cluster2 top node --no-headers | sort -nr -k2 | head -1) >> /tmp/high_cpu_node
echo cluster3 $(kubectl --context cluster3 top node --no-headers | sort -nr -k2 | h... | true |
cc8fb591ca446cf38a9d8bd93bb26f7eddd7ee13 | Shell | LinguList/pygraphistry | /docs/build.sh | UTF-8 | 219 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
EXCLUDES="../setup.py ../graphistry/util.py"
echo "SKIPPING " $EXCLUDES
sphinx-apidoc -o source .. $EXCLUDES
make html
PLATFORM=`uname`
if [ "$PLATFORM" == "Darwin" ]; then
open build/html/index.html
fi
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.