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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d80c3ae8ae18a068d8676d193c1063d1bc65b7f0 | Shell | wf4ever/prototype1-testsuite | /TestROAddData.sh | UTF-8 | 3,339 | 3.734375 | 4 | [] | no_license | # !/bin/bash
#
# Test creation of research object
#
# Exit status:
# 0: success
# 1: failure
# anything else is some other error
#
# Prerequisites:
# ${DropBoxDir}
# connects via DropBox to a storage area that is being monitored by
# the RO SRS DropBox interface shim. Defined in TestConfig.sh.
# ARQ... | true |
a3b0c44a5913297d64ee538a277d5dc7d85de1f0 | Shell | cpf624/shell-tools | /file/file_xml_struts | UTF-8 | 831 | 3.09375 | 3 | [] | no_license | #!/bin/bash
#author:jhat
#email:cpf624@126.com
#date:2011-07-23
#describe:
if [ $# -eq 0 ];then
file="struts.xml"
else
file="$1.xml"
fi
cat > "$file" << EOF
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtd... | true |
1645f5292951cf10bdaba1a38a9aa8bdbc254b6f | Shell | cofyc/k8s-toolkit | /kubeadm/certificates/renew-apiserver.sh | UTF-8 | 1,271 | 3.234375 | 3 | [] | no_license | #!/bin/bash
ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cd $ROOT
source ./init.sh
echo "CERT_DIR: $CERT_DIR"
echo "SERVICE_CIDR: $SERVICE_CIDR"
echo "APISERVER_CERT_EXTRA_SANS: $APISERVER_CERT_EXTRA_SANS"
read -r -p "Are you sure? [y/N] " response
if [[ ! $response =~ ^([yY][eE][sS]|[yY])$ ]]; ... | true |
692e7ed55669984e389989eb5b528b335c24cd1b | Shell | t0rr3sp3dr0/SandGround | /ubuntu/xenial/unity/pre.sh | UTF-8 | 941 | 2.96875 | 3 | [] | no_license | #!/bin/bash
export container=docker
export DEBIAN_FRONTEND=noninteractive
export DISPLAY=:11
export LANG=C.UTF-8
apt-get -y update
apt-get -y install --no-install-recommends xterm
apt-get -y clean
apt-get -y autoremove
rm -fRv /var/lib/apt/lists/*
until snap install core --edge
do
sleep 0
done
apt-get -y update
... | true |
2f8b33f5cc65139d7fbde1d34cf9ce189fd89301 | Shell | dgraph-io/charts | /charts/dgraph/scripts/get_alpha_list.sh | UTF-8 | 474 | 3.4375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
get_alpha_list() {
## No of replicas in Alpha statefulset
REPLICAS=${REPLICAS:-"3"}
## helm release name
RELEASE=${RELEASE:-"my-release"}
## namespace used during deployment
NAMESPACE=${NAMESPACE:-"default"}
## Build List
for (( IDX=0; IDX<REPLICAS; IDX++ )); do
LIST+=("$RELEAS... | true |
ae366f8b71377f5b2966d61176cd522dc3278d64 | Shell | carloe/dotfiles | /install.sh | UTF-8 | 1,002 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#
# Colonize dem dots about the native system
#
echo "Backing up existing dot files"
if [ ! -d ~/!olddots ]; then
mkdir ~/!olddots
fi
if [ -f ~/.bash_profile ]; then
mv ~/.bash_profile ~/!olddots
fi
cp .bash_profile ~/
if [ -f ~/.bashrc ]; then
mv ~/.bashrc ~/!olddots
fi
cp .bashrc ~/
if [ -f ~/.scr... | true |
a7804db4ce42f1d47c280ed64bb994fb4ef310fd | Shell | Korede-TA/umbrella | /scripts/upload-docs | UTF-8 | 950 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
readonly OPTS='--file-ext html --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true'
if [ $# = 1 ]; then
modules="packages/$1/"
else
modules="packages/*/"
fi
for m i... | true |
6764986d41b5d46ea719f18195c2e8d0baef3ce4 | Shell | apsislabs/phi_attrs | /bin/run_tests | UTF-8 | 475 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source bin/helpers/docker
runOnDocker ruby3
echo "== Starting unit tests =="
bundle exec appraisal rspec
if [ $? -ne 0 ]; then
echo -e "\n== RSpec failed; push aborted! ==\n"
exit 1
fi
echo "== Starting rubocop =="
bundle exec rubocop --format worst --format simple --format offenses
if [ $... | true |
525d8f420f8f9b2e938eee9e61a8a8d79b39ca46 | Shell | kimansfield/apsiTests | /startServers | UTF-8 | 389 | 2.859375 | 3 | [] | no_license | #!/bin/bash
#source $HOME/bin/APSITest/configfile
source ./configfile
COUNT=0
PORT=8192
runServers()
{
cd $APSI_DIR
build/$PLATFORM/apsiproxy/apsiproxy -s -p $PORT
}
echo "How many server's do you want to start?"
read N
while [ $COUNT -lt $N ];
do
#byobu new-window
runServers &
let COUNT=COUNT+1
#let PORT=PORT+1... | true |
6d0f94e1920d681b53f631e848a53e8165ef1d26 | Shell | FrankieFabuloso/coach-que | /go | UTF-8 | 2,543 | 3.78125 | 4 | [] | no_license | #!/bin/bash
function create_db {
env=${1:-test}
echo "Going to create db in ${env}"
createdb coach-que-${env}
}
function drop_db {
env=${1:-test}
echo "Going to drop db in ${env}"
dropdb coach-que-${env}
}
function migrate_db {
env=${1:-test}
echo "Going to migrate db in ${env}"
NODE_ENV=${env} ./n... | true |
9e6a6e23c755f375143c01689f42128d09725094 | Shell | Teejay12/shell-script | /project/components/mongodb.sh | UTF-8 | 1,063 | 3.171875 | 3 | [] | no_license | #!/bin/bash
source components/common.sh
COMPONENT=mongodb
PRINT "Setup MongoDB Repository"
echo '[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc' >/etc/yum.repos.d/mo... | true |
6c7e9cc7777e61b6293c5a0bc1844e0adf74388d | Shell | aereal/dotfiles | /bin/git-up | UTF-8 | 177 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env zsh
# $1: remote name (default: origin)
# $2: branch name (default: HEAD)
set -e
git push --set-upstream "${1:-origin}" $(git symbolic-ref --short ${2:-HEAD})
| true |
3af7034b6cb3778b84b3588c5afa297d5f12e0ab | Shell | MainShayne233/provision | /libexec/provision-edit | UTF-8 | 354 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
load_commonsh
main() {
local package_name
local package_script
ensure_args "1" "$#"
package_name="$1"
if (package_script "$package_name" >/dev/null 2>&1); then
package_script="$PACKAGES_DIR/$package_name"
$EDITOR "$package_script"
else
echo "there is no package for $packag... | true |
f029e56dda903509b76ce04ea298b0c7a7ad7782 | Shell | kishansinghverma/Shell_Scripts | /readstdin.sh | UTF-8 | 44 | 2.671875 | 3 | [] | no_license | read x
read y
echo "Sum Is:" $(( $x + $y ))
| true |
a164d1ebc4b699d934dbbda0557320d5952d0fed | Shell | squantrill/vsat-tools | /sats4cal.sh | UTF-8 | 1,326 | 3.140625 | 3 | [] | no_license | #Download sat channel data to allow successeful calibration of vsat equipment
#
#Taken from Thrane Thrane manual:
#Satellite requirements for successful calibration
#Elevation Elevation angle: 5 – 70 degrees
# Not allowed for calibration: Inclined orbit.
#
#System encryption DVB-S or DVB-S2 Polarisation Horizonta... | true |
4d679e7d2184954739dff0b0d89ca0ca29ac9705 | Shell | iqiancheng/useful-scripts | /test-cases/installer.sh | UTF-8 | 213 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if which git &> /dev/null; then
[ ! -d "/tmp/useful-scripts-$USER" ] &&
git clone git@github.com:iqiancheng/useful-scripts.git "/tmp/useful-scripts-$USER"
fi
export PATH="$PATH:/tmp/useful-scripts-$USER"
| true |
8cdff6fe9f886b40b3e8c9354064fd7cdea4c464 | Shell | MihalykoAntal/Nexogen.Libraries.Metrics | /deploy.sh | UTF-8 | 569 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#exit if any command fails
set -e
if [ -z "$TRAVIS_TAG" ]
then
ARGS="-c Release --version-suffix ${TRAVIS_BUILD_NUMBER}"
else
ARGS="-c Release /p:PackageVersion=${TRAVIS_TAG#v}"
fi
dotnet pack ./Nexogen.Libraries.Metrics $ARGS
dotnet pack ./Nexogen.Libraries.Metrics.Extensions $ARGS
dotnet pack... | true |
4925af5435cecd34d7a9047709b92daea8a3d3a4 | Shell | AnamikaNagarr/ss_scripts | /Pricing_test_script.sh | UTF-8 | 1,004 | 3.015625 | 3 | [] | no_license | #!/bin/bash
set -x
export PodName=$PodName
export Version=$Version
export AWS_PROFILE=v2dev
export VpcName=V2Dev
export Stack=IDX
export Component=IDX
export InstanceCount=1
export WORKSPACE=/var/lib/jenkins/orca
export aws_path=`which aws`
#scp -P 2222 /var/lib/jenkins/orca/scripts/dellpricing-refre... | true |
e41fdf33dd4cebb030f052e7649e929f6d377eed | Shell | arorapuneet57/shell_work | /eol_final1.sh | UTF-8 | 1,883 | 3.390625 | 3 | [] | no_license | # declare variables
MOUNT_DIR="/tmp/config"
#OPENSTACK_DIR="/root/vm-init/results"
OPENSTACK_DIR="/tmp"
USER_DATA="$OPENSTACK_DIR/user_data"
OVF_XML_PATH="$MOUNT_DIR/ovf-env.xml"
# mount the cdrom
mkdir -p $MOUNT_DIR
# mount /dev/sr0 /config
mount /dev/cdrom $MOUNT_DIR
# check config_drive properly mounted
if [ $? !... | true |
cb401fe06ae8bfeb00aa5550a1521e75e6bb4fb9 | Shell | maikelwever/sfa-mer | /task-mer.sh | UTF-8 | 1,751 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
TOOLDIR="$(dirname $0)"
source "$TOOLDIR/utility-functions.inc"
# Carries the sequence of steps under the Mer SDK.
# - Set up Ubuntu for building CyanogenMod.
# I'm highly suspicious this step could just as well be done on Mer SDk itself but lets leave it for another time..
# - Set up Scratchbox2 for cro... | true |
ace93eba399c4a2a126480a314f9232307ff51c3 | Shell | akaimirror/yjl | /Bash/last-merge-time.sh | UTF-8 | 1,634 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Calculating merge time from last `emerge` run.
# Copyright 2010 Yu-Jie Lin
# Licensed under the BSD
LOGFILE=/var/log/emerge.log
[[ ! -r "$LOGFILE" ]] && echo "You do not have permission to open $LOGFILE. Please run as root." 1>&2 && exit 1
sed -n '
/Started emerge on/ {s/\([0-9]\+\):.*/\1/;h}
/>>> emer... | true |
1f7b5d35023b50caf491eee5590accdf7377a932 | Shell | madf/stg | /projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnConnect | UTF-8 | 1,702 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#Этот скрипт вызывается в момент, когда пользователь
#успешно прошел авторизацию на сервере. Задача скрипта - перестроить
#файрвол так, что бы пользователь получил доступ в интернет
# Login
LOGIN=$1
#user IP
IP=$2
#cash
CASH=$3
#user ID
ID=$4
#Selected dirs to connect
DIRS=$5
iptables -A INPUT -s $I... | true |
a8ed541ee06df63853f881de87d7ac8ffb56cc87 | Shell | sajjadwasim84/asimov | /asimov/function_power.sh | UTF-8 | 806 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#Created Date Mon Feb 17 18:17:58 PST 2020
#.....................................................
# Purpose Of The Script Make Function For Power Utlization
#.....................................................
#Start
# /mnt/home/sajjadwasim/bash_scripts_2.0/power_reading_html.txt = report
# echo -... | true |
ef9fc062207245fb5ae9a0c4e75f9eb4041198de | Shell | petronny/aur3-mirror | /arm-linux-gnueabihf-raspi/links.sh | UTF-8 | 619 | 3.75 | 4 | [] | no_license | #!/bin/bash
## This will create symbolic links for every file in directory.
## I do this to go around later anoyances since it is possible that
## sometimes makefile will look for gcc under diffirent name.
## Other possible solution is to EXPORT diffirent naming in PKGBUILD,
## but this seems easier and more robust.
... | true |
c1344be5cca4f1fbe760ca93724e19fd090a8c35 | Shell | HansArvet/skriptimine | /praks4a/yl4.sh | UTF-8 | 609 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#
#kataloogi pakkimine
echo -n "Sisesta kataloogi nimi mida tahad pakkid:" #küsib kasutajalt kataloogi nime mida soovib pakkida
read kata #loeb kasutaja vastust
echo -n "Sisestage kaust kuhu tahate backup-ida:" #küsib kasutajalt kuhu soovib kokku pakkitud kataloogi panna
read backup #loeb kasutaja vastust
t... | true |
a2c29632a6ce7a9b9daf81f4720a7c79c9424246 | Shell | rudylorren/dot | /notify.sh | UTF-8 | 393 | 3.046875 | 3 | [] | no_license | #!/bin/sh
# how long should the popup remain?
duration=3
# define geometry
barx=10
bary=10
barw=120
barh=20
# colors
bar_bg='#333333'
bar_fg='#ffffff' # white is default
# font used
bar_font='Tamsyn'
# compute all this
baropt='-g ${barw}x${barh}+${barx}+${bary} -B${bar_bg} -f ${bar_font}'
#Create the popup and ma... | true |
76c37697fbefaec07ff0eb336d5957b7a384e8c8 | Shell | heshan101/my_repo | /junos.sh | UTF-8 | 690 | 3.015625 | 3 | [] | no_license | #!/bin/bash
circuit="$1"
#echo $circuit
HOST1=`echo $circuit | cut -d : -f 1`
PORT1=`echo $circuit | cut -d : -f 2-`
if [[ "${HOST1}:${PORT1}" == *"dr"* ]] && [[ "${HOST1}:${PORT1}" == *"/"* ]] ; then
sshpass -f sshpass.txt ssh "${HOST1}" << EOF
show interfaces ${PORT1} | match "Physical interface"
show in... | true |
b32277a1aa5ac87b4017e6f13a7e6fb4c377c3f5 | Shell | vkushnir/zabbix_stuff | /archive/externalscripts/snmp.str2num.sh | UTF-8 | 245 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# Use snmp.str2num.sh <snmp version> <snmpcommutity> <agent> <OID>
if [ $# -ne 4 ]; then
exit 1
fi
snmpget="/usr/bin/snmpget"
value=$(${snmpget} -v $1 -c $2 -Oqv $3 $4 )
if [ $? -ne 0 ]; then
exit 1
fi
echo ${value//[!0-9]/}
| true |
199752e957b4c371a3b980260b6436e6c2ef7d3b | Shell | 02605/shell_study | /break_continue.sh | UTF-8 | 107 | 2.8125 | 3 | [] | no_license | #!/bin/bash
for (( i=1;i<=10;i=i+1 ))
do
if [ "$i" -eq 3 ]
then
# break
continue
fi
echo $i
done
| true |
f457ed3f40bd22b8b5c2d6589e6bf27eda12b9d0 | Shell | adatao/DDF | /pa/conf/distributed/pa-env.sh | UTF-8 | 973 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Put environment-specific overrides here. conf/pa-env.sh will source this last
#
echo ""
echo "######## Running In DISTRIBUTED Mode ########"
echo ""
export LOG_DIR="/mnt/log/"
echo "LOG_DIR="${LOG_DIR}
export TMP_DIR="/mnt/tmp"
echo "TMP_DIR="${TMP_DIR}
export SPARK_MASTER=`cat /root/spark-ec2/cluste... | true |
384be38af72de14256364c9075a2e5a0653af839 | Shell | yochananmarqos/pkgbuilds | /mdwriter-git/PKGBUILD | UTF-8 | 965 | 2.5625 | 3 | [] | no_license | # https://aur.archlinux.org/packages/mdwriter-git
groups=('modified')
pkgname=mdwriter-git
pkgver=r26.796f36c
pkgrel=1
pkgdesc="Markdown Editor"
arch=('any')
url="https://gitlab.gnome.org/GabMus/mdwriter"
license=('GPL3')
depends=('gtksourceview5' 'libadwaita' 'python' 'python-markdown-del-ins' 'webkit2gtk-5.0')
maked... | true |
4398f59c403a63bbf2828dc6d005eacf5315af44 | Shell | OpenRoberta/openroberta-lab | /Resources/image-v1/lejos_scripts/startpan | UTF-8 | 6,994 | 3.953125 | 4 | [
"MIT",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | #! /bin/sh
# run this command with 7 parameters the mode the AP name/address
# IP address, the netmask, broadcast, gateway, dns server and domain.
# if any is missing a default will be read from the file system
. /etc/default/lejos
. ${LEJOS_HOME}/bin/funcs.sh
# local functions
writeDHCPConf()
{
echo interface br0 >... | true |
becc3a18674bee9f9d335c868981a94658e61c59 | Shell | RomanKubiak/ctrlr | /Scripts/post-commit | UTF-8 | 10,877 | 3.953125 | 4 | [
"GPL-2.0-only",
"BSD-3-Clause"
] | permissive | #!/bin/bash
OSNAME=""
DATE=`date`
UBUNTU_PACKAGES="g++ libxrandr-dev libxinerama-dev libxcursor-dev \
libasound2-dev binutils-dev \
libfreetype6-dev xorg-dev \
libgl1-mesa-dev libglapi-mesa \
libxrandr-dev libudev-dev libgl1-mesa-dev libiberty-dev"
CTRLR_ROOT=""
PACKAGE=""
BUILD_LOG_WIN32=""
BUILD_LOG_WIN64=""
OUTPUT=... | true |
8be65eeced0fc4000876104f30df31a01f53f796 | Shell | cliicy/doexcel | /postgres/vanda3.2t/gen_fio.sh | UTF-8 | 1,053 | 4.03125 | 4 | [] | no_license |
function generate_fio_csv() {
# this function is to convert Sysbench test output to CSV file,
# and convert iostat result (CPU/IO) to CSV file.
output_dir=$1
pushd ${output_dir}
if [ ! -e csv ]; then mkdir csv; fi
latc="lat (us)"
bwh=" write throughput MB/s"
latv=" "
bwv=" "
fo... | true |
e13e3a50572fd35ad83cbc575daa873fb64c05d3 | Shell | eagleflo/dotfiles | /.zshrc | UTF-8 | 1,695 | 2.796875 | 3 | [] | no_license | autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit
complete -C "$(which aws_completer)" aws
autoload -Uz vcs_info
precmd() { vcs_info }
autoload -Uz colors && colors
export CLICOLOR=1
type vivid &> /dev/null && export LS_COLORS=$(vivid generate gruvbox-light)
type exa &> /dev/null && alias ls=exa... | true |
c8bcfa336af31f4b2e7f4bc116aaed0d70a53ac9 | Shell | CarbonLifeForm/CarbFW | /carbfw6.sh | UTF-8 | 14,732 | 3.765625 | 4 | [] | no_license | #!/bin/sh
####
# Because I want to be running a classic IPv6 network, I'm going to have to do
# minimal firewalling at the perimeter and most of it at the node.
# v0.1
# CarbonLifeForm, psych0tik.net
# Copyright 2010-2010
# License: as-is
####
#**********
# WARNINGS
#**********
# 1) This script automatically passes ... | true |
27e881d506631e1357322fcdc0107f90e263a507 | Shell | n-kats/dockerfiles | /build.sh | UTF-8 | 188 | 3.40625 | 3 | [
"MIT"
] | permissive | TARGET="${1:-.}"
find "${TARGET}" -name Dockerfile | while read -r line; do
dir="$(dirname "$line")"
build_name="$(basename "${dir}")"
docker build -t "${build_name}" "${dir}"
done
| true |
535e9b75a853f9fa012967bcbd1bf75001ed1b58 | Shell | shurupov/yii-lamp-vagrant-template | /vagrant-vm/init/initvm.sh | UTF-8 | 2,052 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#Variables
DBPASSWD=12345
#first preparing
sudo mkdir /opt/project
sudo mkdir /opt/project/pma
sudo mkdir /opt/project/pma/logs
sudo mkdir /opt/project/logs
sudo apt-get update -q
#install mysql
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $DBPASSWD"
sudo debconf-se... | true |
e26bdf7df77829b1ca9b20c526f188afca8bae66 | Shell | wulczer/stripe-ctf-2-vm | /packer-scripts/install.sh | UTF-8 | 381 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Download and install Packer at a suitably recent version.
#
# Written for OS X, but adaptable to other Unixes.
#
set -o nounset
set -o errexit
rm -f /tmp/packer.zip /tmp/packer
curl \
-Ss \
"https://releases.hashicorp.com/packer/0.12.2/packer_0.12.2_darwin_amd64.zip" \
-o /tmp/packer.zip
unzip... | true |
054299cb5c9223934e6e56f2274d77c86734ca37 | Shell | simonamp/Hall_A_Moller | /moller/mag_optim/m_opt.com | UTF-8 | 1,391 | 3.25 | 3 | [] | no_license | #! /bin/bash
#
# -- Starts tasks for m_optp simulation
# Paremeters: e0 e1 de
# e0 - initial energy in MeV
# e1 - final energy in MeV (may be not reached exactly)
# de - energy increment (in MeV)
# dir - directory (extension) for histograms
#
PROG=`basenam... | true |
378c0f250a2f38172881fc412b97b9d18e780ed8 | Shell | matthieu637/smile | /makeDriver | UTF-8 | 831 | 3.1875 | 3 | [] | no_license | #!/bin/bash
debug='-D CMAKE_BUILD_TYPE=Debug' # debug='' pour build en release
#Trouve le nombre de core
core=`grep -c ^processor /proc/cpuinfo`
jobs=`expr $core + 1`
if [ ! -e ./library ]; then
echo "Placez vous dans library/"
exit 1
fi
if [ ! -e library/build ]; then
mkdir library/build
fi
if [ ! -e driver... | true |
04abd7ebb7d3c3f2287d8b9f5cf8dddcd8c48a9c | Shell | frankkips/Bash-Practice | /second.sh | UTF-8 | 186 | 3.234375 | 3 | [] | no_license | #!/bin/bash
num=1
while [ $num -le 10 ]; do
echo $(($num * 3))
num=$(($num + 1))
done
frank=9
until [ $frank -gt 10 ]; do
echo $(($frank * 3))
num=$(($frank+1))
done
| true |
07a36b423119e50550e135a421338691e935a1a5 | Shell | taskforceheadbanger/dockarmaiii | /assets/baked-headless-pw.sh | UTF-8 | 535 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#mkdir /home/steam/serverfiles/arma3
# ArmA3
mkdir -p "/home/steam/.local/share/Arma 3"
mkdir -p "/home/steam/.local/share/Arma 3 - Other Profiles"
cd /home/steam
#/opt/steamer/arma3server start
echo "ServerIP = $SERVER_IP"
echo "ServerPORT = $SERVER_PORT"
#tail -f /var/steam/log/console/arma3-server-co... | true |
b188181c512ff0dc9dcde22ca0b55b03b9209ab0 | Shell | rosetta-home/kitting_system | /priv/certs/generate_ca.sh | UTF-8 | 896 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | PASSWORD="PASSWORD"
NAME="CRTLabs"
CERTS=./priv/certs/root
# Make the config Client specific
cat ./priv/certs/openssl.conf > ./priv/certs/use.conf
echo "CN=$NAME" >> ./priv/certs/use.conf
# Create the necessary files
mkdir -p $CERTS/keys $CERTS/requests $CERTS/certs $CERTS/crl
touch $CERTS/database.txt
echo 01 > $CE... | true |
ceb40da98802d00f718f9f8aec9bcd8f17e15bd4 | Shell | yama1968/Spikes | /ClickHouse/pg.sh | UTF-8 | 605 | 2.671875 | 3 | [] | no_license | #
ch="clickhouse-client -n"
clickhouse-client --query="drop table Node1"
$ch < pg_setup.sql
iteration=0
while [ 0 -ne 0$($ch --query="
SELECT count(*)
FROM Node1
WHERE HasConverged = 0") ]
do
$ch < pg_step_opt.sql
iteration=$(($iteration+1))
echo $iteration iterations
$ch -t --query="SELECT count(*), H... | true |
14b0c80da4d8639d13258ba2651baab62bbe17fc | Shell | romeOz/rock-cache | /tests/data/travis/redis-setup.sh | UTF-8 | 252 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if (php --version | grep -i HipHop > /dev/null); then
echo "Skipping Redis on HHVM"
exit 0
fi
mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc
echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
| true |
36ddcdfda1f4a0ec74f91530438b406980657496 | Shell | nickloman/biorhino-tools | /scripts/br-bwa-se-picard-mrkdup.sh | UTF-8 | 1,920 | 3.671875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
HELPDOC=$( cat <<EOF
Maps given single-end library to given reference with bwa and uses picard to
removes duplicates.
Usage:
bash inodb-bwa-se-picard-mrkdup.sh [options] <single reads> <qname> <ref> <rname>
Options:
-h This help documentation.
EOF
)
# Halt on error
set -e
# Parse options
w... | true |
87873a25460df14d33f3e8c11fd8555a9483e3d5 | Shell | stickyvalentine/dupemover | /dupemover.sh | UTF-8 | 1,562 | 4.1875 | 4 | [] | no_license | #!/bin/bash
# Make sure we've got fdupes
dpkg -s 'fdupes' &> /dev/null
if [ $? -ne 0 ]; then
echo "fdupes is not installed but is required!"
exit 1
fi
source_path=$1
dest_path=$2
dupelist='dupelist'
# Make sure user gave source_path
if [ -z $source_path ]; then
echo "You need to give me an source path a... | true |
5fc31cbd4d3195c98ad6d346205cdb8d250b3480 | Shell | OpenMandrivaAssociation/acmetool | /get-source.sh | UTF-8 | 248 | 2.53125 | 3 | [] | no_license | #!/bin/sh
rm -rf acmetool
mkdir acmetool
export GOPATH=`pwd`/acmetool
go get -v -d github.com/hlandau/acme/...
( cd $GOPATH/src/github.com/hlandau
go get -v -d -u ./...
)
tar cf - --exclude .git acmetool | xz -9 >acmetool-`date '+%Y%m%d'`.tar.xz
| true |
eac338d7343f68cfa93fd4ed4e48b9c1418c3e80 | Shell | steneva/os-course | /05-b-3400 | UTF-8 | 91 | 2.59375 | 3 | [] | no_license | #!/bin/bash
read filePath;
read string;
cat $filePath | grep -s "$string" -m 1
echo $?
| true |
d7fb90bce688d1af31b4f852bc780cbc66bce34c | Shell | kkasravi/transpiler | /bin/generate | UTF-8 | 450 | 2.640625 | 3 | [] | no_license | #!/bin/ksh
cd /Developer/pegjs/examples
rm -f javascript.js javascript.pegjs input
cp ~/transpiler/src/javascript.pegjs .
../bin/pegjs javascript.pegjs javascript.js
head -n 9 ~/transpiler/src/parser.es >parser.es
let firstpart="$(cat javascript.js|wc -l)-1"
let secondpart="$(cat javascript.js|wc -l)-2"
cat javascript.... | true |
97158b0da7a49cec2a63ae8cd2cc29267ec16c0b | Shell | Raf-Batista/env_setup | /scripts/utilitites/display_git_branch.sh | UTF-8 | 403 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt
# Show git branch in terminal in green
printf '\n' >> ~/.bashrc
echo 'git_branch() {' >> ~/.bashrc
echo " git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'" >> ~/.bashrc
echo '}' >> ~/.bashrc
printf '\n' >> ~/.bashrc
echo... | true |
06fc9d6bdfa03d51663372fbb4bea09ed34b3771 | Shell | wiemk/dotfiles | /core/bash/.config/bash/source/functions/editor.sh | UTF-8 | 892 | 2.515625 | 3 | [
"MIT"
] | permissive | # vi: set ft=sh ts=4 sw=4 sts=-1 sr noet si tw=0 fdm=manual:
# shellcheck shell=bash
init_debug
# Create own scope for neovim and child processes
if has "$EDITOR"; then
if [[ -d /run/systemd/system && -z $CONTAINER ]]; then
edit() {
if ! type -t is_tmux &>/dev/null || ! is_tmux; then
systemd-run --quiet --u... | true |
58647abfbcf998774eafa622535e96d9f5c22a2d | Shell | evkuz/vm119 | /script/check_messages_hostname.sh | UTF-8 | 400 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Скрипт будет проверять вывод /var/log/messages на предмет соответствия hostname в этом файле и в реале.
CMD_MESSAGES="tail --lines=1 /var/log/messages | cut -d ' ' -f4"
CMD_SHORT_HOSTNAME="hostname -s"
if [ "$CMD_MESSAGES" == "$CMD_SHORT_HOSTNAME"]; then
# Надо сравнить вывод этих команд
| true |
972f0357f5a13c1db2cd8b391ce22973c91e5f0c | Shell | cuvh/homepage | /bin/deploy.sh | UTF-8 | 778 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$TRAVIS_BRANCH" == "master" ]; then
BUCKET=enhancv.com
else
BUCKET=ecv-$TRAVIS_BRANCH
fi
echo "Bucket: "$BUCKET
aws s3api create-bucket --bucket $BUCKET --region us-east-1
aws s3 website s3://$BUCKET --index-document index.html --error-document error.html
echo "[PRODUCTION DEPLOY] Uploading HTML... | true |
4519cd5e4171d1bed3890e23110f6f3c7140319b | Shell | wronnyhuang/bin | /.bashrc | UTF-8 | 6,110 | 3.453125 | 3 | [] | no_license | # ~/.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
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups ... | true |
496f814ee5cfa69cb0396adec3c6ad75fd4741e8 | Shell | stanislawbartkowski/MyBench | /tests/gbt/run.sh | UTF-8 | 1,001 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | source $FUNCTIONSRC
setenv
prepare() {
spark_prepare GradientBoostedTreeDataGenerator
}
rungbt() {
read -r NUM_CLASSES_GBT MAX_DEPTH_GBT MAX_BINS_GBT NUM_ITERATIONS_GBT LEARNING_RATE_GBT <<<`getconfvar numClasses maxDepth maxBins numIterations learningRate`
required_listofpars NUM_CLASSES_GBT MAX_DEPTH_GB... | true |
f5a2c1f73119498eec26871c4e7bb78beef72490 | Shell | neoinsanity/samples | /tools/weather/bin/zip_extractor.sh | UTF-8 | 156 | 3.390625 | 3 | [] | no_license | #!/bin/bash
if [ $# -eq 0 ]
then
echo "File path to zip code database must be provided."
exit 1
else
cat $1 | grep -o "^\"[0-9]*\","
fi
| true |
2d9ec304243895dcdf418972f1148abe0159daf7 | Shell | edwino-stein/ufrr-14.2-ed1-trabalho2 | /createFolder.sh | UTF-8 | 269 | 3.4375 | 3 | [] | no_license | #!/bin/sh
# createFolder.sh
#
# Programa auxiliar para criar pastas em ambientes unix.
#
# Versao 1.0
#
# Created by Edwino Stein on 29/11/14.
#
folderName=$1
if [ ! -d "$folderName" ]; then
mkdir "$folderName";
else
rm -R "$folderName";
mkdir "$folderName";
fi | true |
d205291d68fea4b6295e3cfd64123bb76ebecd1b | Shell | KaOSx/core | /linux/dracut-install | UTF-8 | 422 | 2.921875 | 3 | [] | no_license | #!/bin/bash
KERNEL_VERSION=5.19.10-1
if [ -f /usr/bin/dracut ]; then
echo ":: Building initramfs for linux-${KERNEL_VERSION}"
dracut -f --no-hostonly-cmdline "/boot/initramfs-linux.img" --kver ${KERNEL_VERSION}
echo ":: Building initramfs for linux-fallback"
dracut -f --no-hostonly --no-hostonly-cmdline "/bo... | true |
cec60efb5ba663d275506fa659905be296feaf05 | Shell | AndrewIammatteo/BitcoinCacheMachine | /commands/stack/entrypoint.sh | UTF-8 | 3,284 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -Eeuo pipefail
cd "$(dirname "$0")"
BCM_CLI_VERB=${2:-}
if [ -z "${BCM_CLI_VERB}" ]; then
echo "Please provide a BCM stack command."
cat ./help.txt
exit
fi
STACK_NAME=${3:-}
function validateStackParam(){
if [ -z "${STACK_NAME}" ]; then
echo "Please provide a BCM stack name."... | true |
0f534ebc7fabea3ff11d0c6cdfb3b8c3bb832857 | Shell | sorinros/snmptools | /snmp_get_interface_status.sh | UTF-8 | 1,686 | 3.484375 | 3 | [] | no_license | #! /bin/bash
# C Mahmoud Basset
# v13/11/2012
if [ ! -f ./lib_snmp.sh ]
then
echo "fichier lib_snmp.h introuvable"
exit 1
fi
. lib_snmp.sh
IFS=$(echo -en "\n\b")
function test_all_switch() {
local c
local i
local j
local sw
local com
for j in `cat $1|grep -v "^#"`
do
sw=`echo $j | awk -F"--" '{print $2... | true |
58f9b731bd8e28f75f7699457b2fec9b6aa1112e | Shell | lifoxin/study | /ss/status.sh | UTF-8 | 157 | 2.875 | 3 | [] | no_license | #!/bin/bash
ps -ef | grep -v grep | grep ssserver >> /dev/null 2>&1
if [ $? -eq 0 ]
then
echo "server is running"
else
echo "server was stoped"
fi
| true |
21a03e0aeb4f7f04825b03307a55854a80792905 | Shell | oracle/dtrace-utils | /test/unittest/proc/tst.exitcore.sh | UTF-8 | 1,681 | 3.453125 | 3 | [
"UPL-1.0"
] | permissive | #!/bin/bash
#
# Oracle Linux DTrace.
# Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
#
# This script tests that the proc:::exit probe fires with the correct argument
# when the proces... | true |
10394bd6097be93ebd88ad2ce5427e81e7841aa3 | Shell | cs-wang/fabric-common | /bin-manage/pullBIN.sh | UTF-8 | 1,300 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
#NOTE This script only work for 1.0.0-rc1 or above
#
CURRENT="$(dirname $(readlink -f ${BASH_SOURCE}))"
Parent=$(dirname $CURRENT)
VERSION="1.0.0"
ARCH=$(echo "$(uname -s | tr '[:upper:]' '[:lower:]' | sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')" | awk '{print tolower($0)}')... | true |
0f1cf97063b6470ff448882c6518079a92925a24 | Shell | zhoubofsy/ssh_through | /set_ssh_pubkey.sh | UTF-8 | 304 | 2.859375 | 3 | [] | no_license | #!/bin/sh
# get current user
current_user=$USER
# create local pub key
if [ -f ~/.ssh/id_rsa.pub ]; then
echo "pubkey exists"
else
expect ./auto-ssh-keygen.exp
fi
while read line
do
echo "$line $current_user"
expect ./open_12n_without_pwd.exp $line $current_user
done < ./target_list
| true |
c58effc5f28d55b3bc42d69a37e8767af7b2928c | Shell | nficano/nickficano.com | /bin/yarn | UTF-8 | 217 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# project specific wrapper around yarn.
set -e
YARN="$(which -a yarn | sed -n 2p)"
FRONTEND_DIR="$(git rev-parse --show-toplevel)/frontend"
[ -z "$YARN" ] && exit 2
env "$YARN" --cwd $FRONTEND_DIR "$@"
| true |
13acc996f49a7693cfa10368ef9f9a44f531d7ae | Shell | joubin/gitlabhq | /scripts/clean-old-cached-assets | UTF-8 | 443 | 3 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-SA-4.0"
] | permissive | #!/usr/bin/env bash
# Clean up cached files that are older than 4 days
find tmp/cache/assets/sprockets/ -type f -mtime +4 -execdir rm -- "{}" \;
find tmp/cache/webpack-dlls/ -maxdepth 1 -type d -mtime +4 -exec rm -rf -- "{}" \;
du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprock... | true |
af545eb6c7d22a5fb1ec6c28200585f20de676a1 | Shell | crhamilt/skeletal_mri | /archive_priorities/scripts/msk_n4BiasFieldCorrection.sh | UTF-8 | 1,422 | 2.875 | 3 | [] | no_license | #!/bin/bash
echo "IW>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo "Iteration " $((ii+1))
echo
echo $(date)
echo $(whoami)
echo $(pwd)
echo
echo
echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<IW "
echo
echo
cp ${1}/t1w_36ms.nii.gz ${1}/t1w_36ms_n4_0.ni... | true |
e1d25d0c0cd2f24848dab18c136c175c325f69b3 | Shell | zephinzer/version-tagging-scripts | /iterate | UTF-8 | 2,037 | 4.40625 | 4 | [] | no_license | #!/bin/bash
help() { printf "
*******
iterate
*******
this script gets the latest merged version available in the current branch, ups
the version number depending on the argument passed in. exits with 0 on successful
updating, exist with 1 if tag could not be applied for any reason.
versioning has to be in semver for ... | true |
c490d606ca8d99a8d460bf29a7e3ed64df530240 | Shell | adimux/park-montreal | /conversion_coords/do_conversion_updates.sh | UTF-8 | 564 | 3.484375 | 3 | [] | no_license | #!/bin/bash
input_updates="input/arronds/to_update"
input_old="input/arronds/old"
output="output"
output_updates="output/to_update"
echo "Do conversions on jsons file that needs to be in the db because they are updates"
no_files=true
ls $input_updates | while read file; do
no_files=false
echo "File : $file"
php co... | true |
4191db7790959b185407df1a40f1c7be2753da82 | Shell | flyzjhz/DWR-956_decrypted_fw | /decrypted_and_extracted/dwr956_v1.0.0.9_r06_nb_p02003/root/etc/rc.d/mtlk_init_rdlim.sh | UTF-8 | 1,514 | 3.46875 | 3 | [] | no_license | #!/bin/sh
return_status=true
# Defines
if [ ! "$MTLK_INIT_PLATFORM" ]; then
. /tmp/mtlk_init_platform.sh
fi
command=$1
apIndex=$2
# Get corresponding wlan network interface from mapping file
wlan=`find_wave_if_from_index $apIndex`
start_mtlk_init_rdlim()
{
print2log DBG "mtlk_init_rdlim.sh Start"
if [ ! -e /tm... | true |
9a7ba581dfc668e43dd8b3e514fad9883bc6d21d | Shell | parisholley/deis | /contrib/vagrant/provision-vagrant-controller.sh | UTF-8 | 3,755 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Usage: ./provision-vagrant-controller.sh
#
set -e
function echo_color {
echo -e "\033[1m$1\033[0m"
}
THIS_DIR="$(cd $(dirname $0); pwd)" # absolute path
CONTRIB_DIR=$(dirname "$THIS_DIR")
CODE_BASE_DIR="$CONTRIB_DIR/../controller"
# For those upgrading from the pre-containerize branch, the... | true |
d08bf6f68c8f8b028b21e901913a7ce09e0270d5 | Shell | dak180/-wzXcodeScripts | / Helper Scripts/docBuild.sh | UTF-8 | 2,492 | 3.234375 | 3 | [] | no_license | #!/bin/sh
export PATH=$PATH:/sw/bin:/opt/local/bin:/usr/local/bin
# Config
nowd=$(git rev-parse HEAD | cut -b 1-7)
mWarzoneHelp="macosx/WarzoneHelp/Contents/Resources"
mWarzoneHelpLproj="${mWarzoneHelp}/en.lproj"
cd "$(git rev-parse --show-toplevel 2>/dev/null)"
mkdir -p "${mWarzoneHelpLproj}"
cp -af macosx/Resources... | true |
04bb6cdc45b5ec492ce50a6ccf8345827efcb3c5 | Shell | casi/dotfiles | /.bash_aliases | UTF-8 | 3,647 | 3.515625 | 4 | [
"MIT"
] | permissive | system_type=$(uname -s)
if [ "$system_type" == "Darwin" ]; then
alias ls='ls -G';
# brew upgrade
alias bup='brew update; brew upgrade; brew upgrade --cask; brew autoremove; brew cleanup'
# gem update
alias gup='gem update --system; gem update; gem cleanup'
# Get macOS Software Updates, update Homebrew and ... | true |
57cb0cf1c0b93155110524c3e98fa04c9e727810 | Shell | eucleo/java-vms | /build-primitives-and-objects.sh | UTF-8 | 189 | 2.640625 | 3 | [] | no_license | #!/bin/bash
if [[ -z ${1} ]]; then
echo "Give me the name of ONE java file with a main and stuff!"
exit 1
fi
javac ${1}.java
jar cf ${1}.jar ${1}.class
native-image -cp ${1}.jar ${1}
| true |
3cb1d73dac4c6c02409475c7d09f481a4a5d3be9 | Shell | 1010stone/Cytokinin-ATAC | /RNA-Seq_analyses/processing/RNA_MERGED.sh | UTF-8 | 422 | 2.890625 | 3 | [] | no_license | #!/bin/bash -l
# Script to merge sam files and make BigWig files.
names="ROOTS_BA ROOTS_NAOH SHOOTS_BA SHOOTS_NAOH"
module load samtools deeptools
for names in $names
do
samtools merge MERGED/$names.merged.bam file_1.bam file_2.bam file_n.bam \
samtools index MERGED/$names.merged.bam
bamCoverage -o MERGED/$names.a... | true |
ba6a85ec9622b773571440f0dfad694bb633b634 | Shell | seantrane/dotfiles | /functions/run_or_fail | UTF-8 | 479 | 4.03125 | 4 | [
"ISC"
] | permissive | #!/usr/bin/env bash
#
# Run a command successfully, or exit
#######################################
# Run a command successfully, or exit
# Globals:
# sed
# tr
# Arguments:
# 1 - Command(s) string
# Returns:
# None
#######################################
run_or_fail () {
cmd=$(echo "$*" | tr '\n' ' ' | sed '... | true |
33a7dd0d955ffd4641604cbbfe0f52168c02b875 | Shell | arslanabbasi/apache-spark | /start-cluster.sh | UTF-8 | 1,919 | 3.546875 | 4 | [] | no_license | #!/bin/bash
set -e
set -x
usage()
{
echo "Usage: start-cluster.sh <num-slaves>"
exit 1
}
if [ $# -lt 1 ]; then usage; fi
. ./env.sh
if [ -z $(docker network ls -f name=$SPARK_NET -q) ]
then
echo "Creating network $SPARK_NET"
docker network create --label $SPARK_NET --internal $SPARK_NET > /dev/null
fi
... | true |
805b01a28e81d8ee2fb8c392be6613e9b406276f | Shell | Guschu/teamcontrol | /entrypoint.sh | UTF-8 | 412 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
source /etc/profile
set -e
# Source environment variables from .env file
set -a
. .env
set +a
# Remove a potentially pre-existing server.pid for Rails.
rm -f /teamcontrol/tmp/pids/server.pid
bundle exec rake db:migrate
bundle exec rake db:seed
# Precompile the assets
bundle exec rake assets:precompile
# ... | true |
e278463ad2d1adf13fef4b09395054d6230fe0c2 | Shell | graalvm/simplelanguage | /sl | UTF-8 | 6,691 | 3.046875 | 3 | [
"UPL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
#
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# The Universal Permissive License (UPL), Version 1.0
#
# Subject to the condition set forth below, permission is hereby granted to any
# person obtaining a co... | true |
6468b7019cf60983a6d8c22e99bdd07d065e43a5 | Shell | steelalive/dot | /bin/debug | UTF-8 | 4,382 | 4.125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
color_def="$HOME/.colorrc"
if [[ -f $color_def ]]; then
. $color_def
else
# color definitions
black="$(tput setaf 0)"
darkgrey="$(
tput bold
tput setaf 0
)"
lightgrey="$(tput setaf 7)"
white="$(
tput bold
tput setaf 7
)"
red="$(tput setaf 1)"
lightred="$(
tput bold
tput setaf 1
)"
... | true |
f51cc9db1481d3cb2a75aeac514612bd82a666c6 | Shell | RitwikSaikia/udacity_drln_playground | /docker/build.sh | UTF-8 | 725 | 3.796875 | 4 | [] | no_license | #!/bin/bash
IMAGE_NAME=drlnd_playground
extra_args=""
MODE=cpu
BASE_IMAGE=ubuntu:16.04
DOCKER=docker
while test $# -gt 0
do
#Converting arg=$1 to lower case to make args case insensitive
arg="$(tr [A-Z] [a-z] <<< "$1")"
echo $arg
case $arg in
cpu)
MODE=cpu
BASE_IMAGE=ubuntu:16.04... | true |
4cd1f95602d0fa0cd350fb5cb2637e586aac9a54 | Shell | arkivm/aurora | /tests/aurora | UTF-8 | 2,953 | 3.65625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
NEWFS=$SRCROOT/tools/newfs_sls/newfs_sls
MNT="/testmnt"
SLSCTL=$SRCROOT/tools/slsctl/slsctl
SLSROOT="$SRCROOT/root.tar.gz"
SLSMINROOT="$SRCROOT/minroot.tar.gz"
STRIPESIZE="$(( 64 * 1024 ))"
STRIPENAME="st0"
STRIPEDISKS="nvd0 nvd1 nvd2 nvd3"
# Load and unload kernel modules
loadsls()
{
kldload "$SRCROO... | true |
49ba5c0337cac9a8ed7e7f267a24d4f474e045cf | Shell | newagequanta/lpic_1 | /keytest.sh | UTF-8 | 346 | 3.421875 | 3 | [] | no_license | #!/bin/bash
TRIES=0
while [[ $TRIES -lt 3 ]]; do
echo "Enter some keys"
read KEYS
echo $KEYS
echo "Do you see the keys as you typed them? (y or n)"
read RESPONSE
if [[ $RESPONSE = "y" ]]; then
echo "Test successful!"
exit 0
else
echo "Try again"
TRIES=$(( $TRIES+1 ))
fi
done
echo "Please take you k... | true |
faf82081f1c844ce0b3f62307a2bcf215646116b | Shell | apple/swift | /utils/find-overlay-deps-closure.sh | UTF-8 | 3,913 | 3.96875 | 4 | [
"Apache-2.0",
"Swift-exception"
] | permissive | #!/bin/bash
# Find the transitive closure of overlay dependencies for a single overlay.
# Runs the following command in a loop until the list stops growing:
# xcrun -sdk macosx clang -arch x86_64 -x objective-c - -M -fmodules < <(echo '@import SceneKit;@import AppKit;')
# There are two ways an overlay ``foo`` shows up... | true |
9882be9f8f27dc1bdac5e3f6e3bb7c46813892d4 | Shell | rahatchd/vim-relief | /install.sh | UTF-8 | 1,371 | 3.8125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
backup="bak_$(date +%F_%H-%M-%S)"
reliefdir=$PWD
echo "installing vim-relief"
# backups
if [ ! -d "$reliefdir/backup" ] ; then
echo "creating backups directory : $reliefdir/backup"
mkdir backup
fi
mkdir backup/$backup
# copy dotfiles
dotfiles=( "reliefrc" "vimrc" "tmux.conf" )
for dotfile in "${d... | true |
cecf3984c95cf23d37446479422a62d61e1acbf1 | Shell | traktorist3872548/linuxHpDriver | /packages/installVnc | UTF-8 | 794 | 2.625 | 3 | [] | no_license | #!/bin/bash
apt-get -y remove vino
apt-get -y install x11vnc
mkdir /etc/x11vnc
#setup password:
x11vnc -storepasswd 123456 /etc/x11vnc.pass
nano /lib/systemd/system/x11vnc.service
# PUT THIS TO /lib/systemd/system/x11vnc.service-----------
[Unit]
Description=Start x11vnc at startup.
Requires=display-manager.service
Aft... | true |
608157327035c78443b0b4ad98480a77682f7a3f | Shell | paujim/ami-centos7 | /bootstrap.sh | UTF-8 | 721 | 2.53125 | 3 | [] | no_license | #!/bin/bash
echo "..........................................................................Update"
sudo yum -y update
# Prerequisites
echo "...................................................................Prerequisites"
sudo yum -y install zip unzip python36
# aws.cli
echo ".......................................... | true |
164941194491b6554a7e1699cef1e09cf9986026 | Shell | KublaikhanGeek/heartbeat | /report.sh | UTF-8 | 1,314 | 3.5 | 4 | [] | no_license | #!/bin/sh
#### Create by : Dennis
#### Last Modified Date : 2015/10/12
#### Version : V1.0.0
#### Decription : If the process of mxreport is not exist,the shell will do starting the
#### the process of mxreport and printing the start log to logfile. If the
#### ... | true |
7640c181ee110736106e7f9b4cac693d1526c0e3 | Shell | woodsmc/sisyphus | /examples/command_line_client/run_command_line_insert_mongodb.sh | UTF-8 | 1,384 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
###############################################################################
# (c) Copyright 2018 Mind-Flip Limited
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# ... | true |
3aee6fcebaa7f5b01e765e069990340d1a1223cf | Shell | misterecco/compilers | /zad_02/test.sh | UTF-8 | 1,215 | 3.859375 | 4 | [] | no_license | #!/bin/sh
FAILED=0
test_good () {
SRC=$1.lat
EXEC=$1
INPUT=$1.input
OUTPUT=$1.output
EXEC_OUT=$1.out
./latc_x86_64 $SRC 2> /dev/null
if [ -f $INPUT ]; then
./$EXEC < $INPUT > $EXEC_OUT
else
./$EXEC > $EXEC_OUT
fi
diff -b $OUTPUT $EXEC_OUT > /dev/null
if ... | true |
75f3ee51a7d7ee544ec3e63964463c1824e080b5 | Shell | ilventu/aur-mirror | /tmpwatch/PKGBUILD | UTF-8 | 602 | 2.78125 | 3 | [] | no_license | # Maintainer: Simon Perry <pezz at sanxion dot net>
# Contributor: Daniele Paolella <dp@hostess-promoter.com>
pkgname=tmpwatch
pkgver=2.11
pkgrel=1
pkgdesc="Removes files which haven't been accessed for a period of time"
arch=('i686' 'x86_64')
url="http://fedorahosted.org/tmpwatch/"
license=('GPL2')
depends=('glibc')
s... | true |
07ea8719df18f4958013429c55366e47df228e8d | Shell | vaibhavsuri/offset2014 | /Simulator/src/runtests.sh | UTF-8 | 7,750 | 3.703125 | 4 | [] | no_license | #!/bin/bash
constant=""
sim_output=""
result=""
nosim=0
pairRegEx='(\([0-9]+,[0-9]+\))'
myp=0
myq=0
herp=0
herq=0
#Parameters for simulator
offset=0
strategy="dumb1"
opponent="dumb"
strategy_dir="offset/${strategy}"
opponent_dir="offset/${opponent}"
#Parameter Sweeps (arbitrarily chosen by Richard)
psweep="1 2 3"... | true |
d269eeac5df51dab0cbd900d5680fa53039e5e04 | Shell | lynnjyl/Weibo | /divide.sh | UTF-8 | 705 | 3.265625 | 3 | [] | no_license | #! /bin/sh
start=0
for (( i=1; i<=15; i++ ))
do
filename="r${i}.json"
echo -e $filename
lines=100000
end=$(($start+$lines))
head -n ${end} t17.json | tail -n ${lines} > $filename
size=$(du -sk $filename | awk '{print $1}')
while [[ $size -lt 360000 ]]
do
lines=$(($lines+10000))
end=$(($start+$lines))
h... | true |
052d5a297c76b996cb6252068ee1790411f4b667 | Shell | Ganter123/jungleworks-scripts- | /pm2_restart.sh | UTF-8 | 994 | 2.96875 | 3 | [] | no_license | #!/bin/bash
process=`su - pm2 -c 'pm2 ls | grep "online" | wc -l'`
if [[ $process -gt 0 ]];
then
su - pm2 -c 'pm2 save'
else
su - pm2 -c 'pm2 kill'
su - pm2 -c 'pm2 resurrect'
fi
if getent passwd yelo > /dev/null 2>&1;
then
process=`su - yelo -c 'pm2 ls | grep "online" | wc -l'`
if [[ $process -gt ... | true |
9bc2070456127c2ddd6bf0387ed0108f3d643d46 | Shell | noelnamai/kent | /src/hg/makeDb/doc/makeEnsembl.txt | UTF-8 | 773,849 | 2.765625 | 3 | [] | no_license | # for emacs: -*- mode: sh; -*-
# This file is a record of building the Ensembl gene track for all UCSC
# genome browsers. The end of this file has a historical record of
# Robert's experiments with an automated process.
#
############################################################################
# when all done, r... | true |
d903c6dccf338d00c7bd12680cce45c44344183e | Shell | vasilyrud/fuzzview | /install/cmake.sh | UTF-8 | 327 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# To use:
# bash cmake.sh /path/to/install
cd $HOME
wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.sh
chmod +x cmake-3.14.0-Linux-x86_64.sh
mkdir -p $1
bash cmake-3.14.0-Linux-x86_64.sh --prefix=$1 --skip-license
rm cmake-3.14.0-Linux-x86_64.sh
$1/bin/cmake --v... | true |
c61af68e6b9406e1cfc170bebb62b23bcf266188 | Shell | hasnaas/LPIC1 | /DoubleSpacing.sh | UTF-8 | 338 | 4 | 4 | [] | no_license | #!/bin/bash
#Double spaces the provided file in argument
#Writes the result to standard output
if test $# -eq 1
then
if test -e $1; then
cat $1 | while read line
do
echo $line
echo
done
else
echo "Your file does not exist"
exit 1
fi
else
echo "Incorrect syntax, please provide a filename"
echo "$0 FILE... | true |
1d5652e7e18852bbe8bca8a5be6b0bef4a0cc88c | Shell | roblav96/dotfiles | /modules/rclone.sh | UTF-8 | 657 | 3.390625 | 3 | [] | no_license | # alias rc="rclone"
function rcwd() {
local ip="$(getip)"
local v && for v in "$@"; do
local base="$v"
local remote="$v"
if [[ -d "$remote" ]]; then
remote="$(realpath "$remote")"
base="$(basename "$base")"
elif [[ ! "$remote" =~ ":" ]]; then
remote="$remote:"
fi
echo rclone serve webdav "'$remo... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.