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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
527047be5f901817d1fc416e4617021db4c90c44 | Shell | maniak-academy/gcp-vault-terraform-deployment | /templates/script.tpl | UTF-8 | 4,257 | 2.96875 | 3 | [] | no_license | #!/bin/bash
#Get IP
local_ipv4="$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)"
#Utils
sudo apt-get install unzip
sudo hostnamectl set-hostname vault.maniak.io
#Download Consul
#Download Consul
export CONSUL_VERSION="1.9.3"
export CONSUL_URL="https://releases.hashicorp.com/consul"
curl --silent... | true |
9c3f8575b89fc08a3a70cf763edf13c8a38cccd3 | Shell | greatofdream/protondecay | /cut/hepsub.sh | UTF-8 | 287 | 2.546875 | 3 | [] | no_license | hepsub=$1
echo ${hepsub}
shift 1
echo $@
scriptfile=$1
shift 1
heplog=$1
shift 1
# scriptfile=$2
# scriptfile="${scriptfile%.*}.sh"
echo "ulimit -v" >${scriptfile}
echo $@ >> ${scriptfile}
chmod +x ${scriptfile}
echo "${hepsub} ${scriptfile} ${heplog}"
${hepsub} ${scriptfile} ${heplog}
| true |
9ad281b0fbdac2a90687761725867f5fa7955372 | Shell | cfchou/icecream | /scripts/recreate_db.sh | UTF-8 | 643 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash -e
CONTAINER=my_mongo
# data preload to mongoDB
ICECREAM_JSON=icecream.json
APIKEY_JSON=apikey.json
DB=icecream
# aliases
mongod="docker run --name $CONTAINER \
--rm -p 27017:27017 \
-d mongo:3.6"
mongod_stop="docker stop $CONTAINER"
mongo_import="docker exec -i my_mongo mon... | true |
74336f75faaec7dc96d4672ba87f1a5a4a0ec820 | Shell | kubernetes-sigs/kubespray | /contrib/azurerm/clear-rg.sh | UTF-8 | 311 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
AZURE_RESOURCE_GROUP="$1"
if [ "$AZURE_RESOURCE_GROUP" == "" ]; then
echo "AZURE_RESOURCE_GROUP is missing"
exit 1
fi
ansible-playbook generate-templates.yml
az group deployment create -g "$AZURE_RESOURCE_GROUP" --template-file ./.generated/clear-rg.json --mode Complete
| true |
00df44dcb306252d37c08f4c495b3d6e43ee891d | Shell | jws85/Dotfiles | /roles/base/files/scripts/pdf2images | UTF-8 | 792 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# Given a PDF, digest it into images -- specifically group 4 CCITT TIFFs
# Requires poppler-utils and netpbm
# Note that pdfimages is a SEPARATE command in poppler-utils that does
# something else entirely (extracting actual image data out of text PDFs)
command -v pdftoppm >/dev/null 2>&1 || echo "Need to ... | true |
dbd3001bc616e2b6ab3410ccf8f3b181adfe0ff1 | Shell | beni55/git-scrum | /git-task-start | UTF-8 | 440 | 3.609375 | 4 | [] | no_license | #!/bin/bash
set -e
source "${0%[\\/]*}"/_git-common.sh
if [ "" == "$1" ]; then
echo "Specify a task name to start"
exit 1
fi
git task-sync || ( echo "git-task-sync failed"; exit 1 )
task=$1
if [[ $task == task-* ]]; then
task=${task:5}
fi
echo Starting "'"task-$task"'"
remote=$(git config "branch.master.remote... | true |
8c6ea9d39b0903c9bf34f90281b3d3389bf47e02 | Shell | Rustandi/pipeline-as-code-with-jenkins | /chapter4/distributed/master/setup.sh | UTF-8 | 1,047 | 3.046875 | 3 | [] | no_license | #!/bin/bash
echo "Installing Amazon Linux extras"
amazon-linux-extras install epel -y
echo "Install Jenkins stable release"
yum remove -y java
yum install -y java-1.8.0-openjdk
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/... | true |
c7a7ce6902388788a32b41b8b17f56b54ede029b | Shell | deividasskiparis/tensorflow-jupyter-aws-docker | /scripts/start.sh | UTF-8 | 128 | 3.078125 | 3 | [] | no_license | #!/bin/sh
set -e
if [ "$1" == "develop" ]; then
source develop.sh
else
echo "Received unknown command $1"
exit 1
fi | true |
d20b6408e78ff794797f3966dfd4a506222d4ba9 | Shell | lvdmaaten/TensorComprehensions | /tc/benchmarks/scripts/report.sh | UTF-8 | 261 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
[ -z "$BACKEND" ] && echo "Need to set BACKEND (P100 or V100)" && exit 1;
TC_DIR=$(git rev-parse --show-toplevel)
BENCHMARKS=$(find ${TC_DIR}/build/tc/benchmarks/benchmark*)
for b in ${BENCHMARKS}; do
$b --gtest_filter="*${BACKEND}*";
done
| true |
1acc1c2d63bd6323f488dcd1006001d24218bd7f | Shell | anu-bioinfo/ACHR.cu | /travis/build-run.sh | UTF-8 | 582 | 3.046875 | 3 | [
"MIT"
] | permissive | #! /bin/sh
# Exit on error
set -ev
os=`uname`
TRAVIS_ROOT="$1"
MPI_IMPL="$2"
# Environment variables
export CFLAGS="-std=c99"
#export MPICH_CC=$CC
export MPICC=mpicc
case "$os" in
Linux)
export PATH=$TRAVIS_ROOT/open-mpi/bin:$PATH
;;
esac
# Capture details of build
case "$MPI_IMPL" in
openmpi... | true |
e618016678d27cd5096c9493e7c665635e46eaac | Shell | isabella232/tove | /garbage/run.sh | UTF-8 | 382 | 2.640625 | 3 | [] | no_license | #!/bin/bash
set -e
trap 'error ${LINENO}' ERR
rm -rf workload_dir
mkdir workload_dir
rm -rf traces_dir
mkdir traces_dir
rm -rf bin
mkdir bin
go build -o bin/workload workload.go
cd workload_dir
alice-record --workload_dir . \
--traces_dir ../traces_dir \
../bin/workload
cd ..
go build -o bin/checker checker.g... | true |
2544448f7b71a3267284c929d113419b7ca759d7 | Shell | maghoff/mustachio | /test/get_spec.sh | UTF-8 | 186 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -ue
cd "$(dirname "$0")"
if [ ! -e spec-1.1.3 ]
then
curl -L 'https://github.com/mustache/spec/archive/v1.1.3.tar.gz' | tar zxf -
ln -s spec-1.1.3/specs .
fi
| true |
ec20240d9616a63445e3ecb7b302f1b0d1e2308f | Shell | DYSLEVIUM/learning-bash | /09stringProcessing.sh | UTF-8 | 322 | 3.890625 | 4 | [] | no_license | #! /bin/bash
echo "enter 1st string"
read s1
echo "enter 2nd string"
read s2
if [ $s1 == $s2 ]
then
echo "equal string"
elif (( $s1 < $s2 ))
then
echo "$s1 is less than s2"
else [ $s1 \> $s2 ]
echo "$s1 is greater than s2"
fi
# concatenation
c=$s1$s2
echo $c
# tooglecase
echo ${s1^}
# uppercase
echo ${s1^... | true |
eaff14b0f3ff6520ef31e7656d988f5b8dd6fa8d | Shell | intrafind/if-sitesearch | /ops/update-searchbar.sh | UTF-8 | 2,844 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env sh
searchbarVersion=`date -u +"%Y-%m-%d"`
get_latest_searchbar_release() {
rm -rf $searchbarVersion
mkdir -p $searchbarVersion/app
wget -O latestSearchbarRelease.xml http://ml-if-nexus:8081/repository/releases/com/intrafind/if-app-searchbar/maven-metadata.xml
sed -i '/<versions>/,/<\/ve... | true |
e95a0a1c67ba51278b2476851c26c90f77c3d334 | Shell | himanshurajora/Linux-shell-programming-lab | /p2.sh | UTF-8 | 241 | 3.296875 | 3 | [] | no_license | echo "enter any number n"
read n
if [ `expr $n % 2` -eq 0 ]
then
echo "Yes Even"
else
echo "Not Even"
fi
#**********************************
#Using BC
#if [ `echo "$n%2" | bc` -eq 0 ]
#then
#echo "Yes Even"
#else
#echo "Not Even"
#fi
| true |
5891ad0e34e2abef4f58d4ac1770297eb5c9332c | Shell | gpac/testsuite | /scripts/encryption_segment.sh | UTF-8 | 2,400 | 2.734375 | 3 | [] | no_license | #!/bin/sh
#test encryption and decryption of init segement and segment files
test_begin "encryption-segment"
if [ $test_skip = 1 ] ; then
return
fi
mp4file="$TEMP_DIR/source.mp4"
mpdfile="$TEMP_DIR/file.mpd"
$MP4BOX -add $EXTERNAL_MEDIA_DIR/counter/counter_30s_I25_baseline_640x360_192kbps.264:dur=10 -new $mp4file ... | true |
a62bd40fa1c6a0902a0abd361d794026eee6d247 | Shell | pdelteil/recon | /ultimate_recon.sh | UTF-8 | 6,440 | 3.5625 | 4 | [] | no_license | #!/bin/bash
TOOLS_PATH='/home/kali/software'
while getopts ":d:" input;do
case "$input" in
d) domain=${OPTARG}
;;
esac
done
if [ -z "$domain" ]
then
echo "Please give a domain like \"-d domain.com\""
e... | true |
0a7cfed96f8453fac2be72e4e3e35f8606faae91 | Shell | Siphonay/epitech_projects | /projects/projet_pushswap/push_swap_bootstrap/let-me-out-of-this-island | UTF-8 | 938 | 3.765625 | 4 | [] | no_license | #!/bin/bash
function check_result()
{
expected=("4" "8" "15" "16" "23" "42")
while [ "$#" != "0" ]; do
if [ "$1" != "${expected[0]}" ]; then
echo "Fail."
exit 1
fi
expected=("${expected[@]:1}")
shift
done
if [ "${expected[0]}" != "" ]; then
echo "Fail."
exit 1
fi
echo "Success"
... | true |
890902d4b8cbfcdf7ccd8a3a8057deda26f225fc | Shell | MangoRaft/mongodb | /3.2/run.sh | UTF-8 | 1,028 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -m
mongodb_cmd="mongod --storageEngine $STORAGE_ENGINE --httpinterface --rest"
if [ "$AUTH" == "yes" ]; then
mongodb_cmd="$mongodb_cmd --auth"
fi
if [ "$KEYFILE" == "yes" ]; then
mongodb_cmd="$mongodb_cmd --keyFile mongodb-keyfile"
fi
if [ "$JOURNALING" == "no" ]; then
mongodb_cmd="$mo... | true |
85428db57d3a59636e7cdc12665199f4bbbd82f6 | Shell | ktakase00/uveats_demo | /bin/lock.sh | UTF-8 | 261 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
APP_NAME=web
SRC_DIR=${HOME}/cabin/${APP_NAME}
DEST_DIR=${HOME}/repo/apps/${APP_NAME}
cp -pR ${SRC_DIR}/.bundle ${DEST_DIR}
cp -p ${SRC_DIR}/Gemfile.lock ${DEST_DIR}
cp -p ${SRC_DIR}/yarn.lock ${DEST_DIR}
ln -s ${SRC_DIR}/node_modules ${DEST_DIR}
| true |
0945860a85b3c9691bb427981a1334ac75804041 | Shell | kekiefer/meta-ettus | /recipes-navigation/gps-config/files/ettus-e300/gps_prep | UTF-8 | 1,062 | 3.328125 | 3 | [
"MIT"
] | permissive | #! /bin/sh
#
# Copyright National Instruments Corp <moritz.fischer@ni.com> (c) 2015
# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
#
# Filename: gps_prep
# Date: 20150421 (YMD)
# source function library
. /etc/init.d/functions
gps_supply_on(){
echo "GPS: Activating GPS antenna sup... | true |
eeda1d32f7dd1af0c00089043006c6b37d1f4ccf | Shell | dave2309/mybin | /reduce | UTF-8 | 138 | 2.8125 | 3 | [] | no_license | #!/bin/bash
if [ ! -d ./small ]; then
mkdir small
fi
for f in *.JPG; do convert -verbose -resize 40% $f small/${f%.JPG}-small.jpg; done
| true |
a46cb0d032d983d9ba8f4b665570272f710a0e89 | Shell | ionutbalutoiu/ironic-hyperv | /create-uefi-hyperv-node.sh | UTF-8 | 1,364 | 3.265625 | 3 | [] | no_license | #!/bin/bash
set -e
if [ $# -ne 11 ]; then
echo "USAGE: $0 <node_name>" \
"<deploy_kernel_name>" \
"<deploy_ramdisk_name>" \
"<cpus>" \
"<ram_mb>" \
"<disk_gb>" \
"<port_mac_address>" \
... | true |
618acc574e8a6006e398cc9c9d2fdbbe997ca82f | Shell | Alexandra-Panarina/project | /add_photo.sh | UTF-8 | 781 | 3.765625 | 4 | [] | no_license | #!/bin/bash
INPUT_DIR=$1
OUTPUT_DIR=$2
parse(){
EXT=$1
for i in $(ls ${INPUT_DIR} | grep $EXT); do
name=$(echo ${i} | sed "s/\.${EXT}//g" | sed 's/\n//g')
echo ${name}.${EXT}
done
}
detect_lastnum(){
last_num=$(ls $OUTPUT_DIR | sed 's/.xml//g' | sed 's/.png//g' | sort -n | tail -n 1)
echo $last_num
}
init()... | true |
2b03a54a05e83c0fdc7969ae3d8a134545f18cc5 | Shell | littlewine/snorkel-ml | /set_env.sh | UTF-8 | 418 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | source activate snorkel27
export SNORKELHOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Snorkel home directory: $SNORKELHOME"
export PYTHONPATH="$PYTHONPATH:$SNORKELHOME:$SNORKELHOME/treedlib"
if [[ $SPARK_HOME ]]; then
export PYTHONPATH="$PYTHONPATH:$SPARK_HOME/python"
fi
echo "Using PYTHONPATH=${PYTH... | true |
cfe3bac46d19c4e8e46e4c1f1071246a683c7ce3 | Shell | lj-ditrapani/init | /other/virtualbox.sh | UTF-8 | 849 | 2.53125 | 3 | [] | no_license | # First, ensure Virtualization technology is enabled in the bios (Intel-Vi-D Intel-Vi AMD-V)
# Update distro (hirsute) to whatever (jammy)
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian jammy contrib" \
| sudo tee -a /etc/apt/source... | true |
2abf2bb041a53fabd6b7783da6e466c078e6fed8 | Shell | kwoodson/aos-cd-jobs | /build-scripts/rcm-guest/publish-kn-binary.sh | UTF-8 | 2,349 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euxo pipefail
SSH_OPTS="-l jenkins_aos_cd_bot -o StrictHostKeychecking=no use-mirror-upload.ops.rhcloud.com"
KN_VERSION=${1:-0.2.3}
KN_URL=${2:-http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/openshift-serverless-clients/0.2.3/1.el8/data/signed/fd431d51/x86_64/openshift-serverless-clie... | true |
976ff0faa674786b906d517df61ac1276799f71f | Shell | dangzhiqiang/OpenIndiana-disk | /install.sh | UTF-8 | 242 | 2.765625 | 3 | [] | no_license | #!/usr/bin/bash
#
# Author: Dang Zhiqiang<c_dddd@163.com>
# Note: install disk command
chmod a+x disk.py
cp disk.py /usr/bin/disk
if [ -f /usr/bin/disk ]; then
echo "Install disk command success"
else
echo "Install disk command failed"
fi
| true |
7413bad8088387e6e77f70a8b4bab88a238e6eb2 | Shell | sialm/dotfiles | /linux/install.sh | UTF-8 | 194 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if command -v apt-get >/dev/null 2>&1
then
echo " Installing linux utilities"
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wget curl tmux vim git
fi
| true |
b1b5120364be2187c29b27eb0f0c53eec249b316 | Shell | ucsb-gradescope-tools/sample-cpp-seeded-diff-autograder | /grade.sh | UTF-8 | 1,649 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
EXPECTED_FILES="makeBox.cpp"
MAKE_TARGET=""
DIFF_TOOLS=gs-diff-based-testing
# YOU SHOULD NOT NEED TO EDIT BELOW THIS POINT.
echo $EXPECTED_FILES
if [ -d $DIFF_TOOLS ]; then
cd $DIFF_TOOLS
git pull origin master
cd ..
else
git clone https://github.com/ucsb-gradescope-tools/${DIFF_TOOLS}.git
fi
... | true |
201c567644fd36a7002bd0361cab209e2a0a9e81 | Shell | bhuneshwar21/AUV | /opt/opt3/trybash/tryp2.sh | UTF-8 | 395 | 3.328125 | 3 | [] | no_license | #! /bin/bash
PROGRAM=~/AUV/opt/linetrack/opt2
TMOUT=10s
T2=1s
PROCESSNAME=opt2 # name of the process to be monitored
MYPID=`pidof $PROCESSNAME`
function run_with_tmout {
$PROGRAM &
PID=$!
echo "Cam On" &
sleep $TMOUT
kill -9 $PID &
sleep $T2
}
for ((i=0; i < 3; i++)); do
run_with_tmout #./myprog ... | true |
31f19a84e30cfd9fdf15569255a09d4af04af50b | Shell | nE0sIghT/vortex-overlay | /sys-kernel/vortex-build/files/vortex-functions.sh | UTF-8 | 576 | 3.328125 | 3 | [] | no_license | #!/bin/sh
#
# Author: Yuri <nE0sIghT> Konotopov
# License: GNU GPL v3 or any later version
#
function get_latest_kernel() {
eselect kernel list | tac | grep -m 1 linux
}
function get_latest_kernel_id() {
echo $(get_latest_kernel) | awk '{ print $1 }' | tr -d []
}
function get_latest_kernel_version() {
echo $(get_... | true |
efcbcdb3d2f86cfc0ac82683d553c3919ce84346 | Shell | Synnr-Skip/build_script | /patch_functions.sh | UTF-8 | 5,711 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (C) 2017 Vincent Zvikaramba
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | true |
9855bdbbda519a00db392b2f468c52deb2f3f77e | Shell | lefant/dotfiles-lefant | /deep-zsh/zshuser-lefant.sh | UTF-8 | 2,546 | 3 | 3 | [] | no_license | . ~/.common.sh
export EMAIL="e@lefant.net"
#export DEBEMAIL="Fabian Linzberger <e@lefant.net>"
#export DARCS_EMAIL="Fabian Linzberger <e@lefant.net>"
#export REPORTBUGEMAIL="Fabian Linzberger <e@lefant.net>"
export GIT_AUTHOR_NAME="Fabian Linzberger"
export GIT_COMMITTER_NAME="Fabian Linzberger"
#export GIT_AUTHOR_EMA... | true |
5863a7ade8a3eab2dde33f4a9c1ffa299c712f2d | Shell | bitslab/CompilerInterrupts | /benchmarks/accuracy_and_overhead/phoenix/phoenix-2.0/perf_test.sh | UTF-8 | 15,222 | 3.34375 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash
CI=1000
PI="${PI:-5000}"
RUNS="${RUNS:-5}"
AD=100
CUR_PATH=`pwd`
SUB_DIR="${SUB_DIR:-""}"
DIR=$CUR_PATH/phoenix_stats/$SUB_DIR
THREADS="${THREADS:-"1 2 4 8 16 32"}"
dry_run() {
# Dry run - so that any disk caching does not hamper the process
case "$1" in
histogram)
command="MR_NUMTHREADS=1 ti... | true |
bebddd98bf62829b002663b53536aa7cb41d12e3 | Shell | SonderEASE/Blog | /_scripts/travis/cibuild.sh | UTF-8 | 465 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Travis CI build jobs.
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy
# © 2019 Cotes Chung
# Published under MIT License
if [[ $TRAVIS_PULL_REQUEST = "false" ]]; then # triggered by author
git clone https://${GH_PAT}@github.com/${GH_USER}/${BUILDER_REPO}.git \
../${BUILDER_REPO} --depth... | true |
2d0524d7801850d5ad0decd593ba1fecd6603650 | Shell | joeheyming/parrot.live | /make-parrots.sh | UTF-8 | 1,004 | 3.984375 | 4 | [] | no_license | #!/bin/bash
set -x
# generates all the parrot gifs
# Requirements: wget, ImageMagick, image2ascii
mkdir -p /tmp/parrots;
cd /tmp/parrots
rm -rf ./*
wget https://cultofthepartyparrot.com/ -O /tmp/parrots/parrot.html
imgs=$(cat /tmp/parrots/parrot.html | grep -o '<img .*src=.*>' | sed -e 's/<img .*src=['"'"'"]//' -e ... | true |
5f572721142e6c4ceb299cf576400d96b7de45ba | Shell | ericbroska/SmoothMouse | /Installer/Scripts/PrefPane/postinstall | UTF-8 | 855 | 3.140625 | 3 | [] | no_license | #!/bin/sh
DAEMON_LOCATION="/Library/PreferencePanes/SmoothMouse.prefPane/Contents/SmoothMouseDaemon.app/Contents/MacOS/SmoothMouseDaemon"
DAEMON_LAUNCHAGENT="$HOME/Library/LaunchAgents/com.cyberic.smoothmouse.plist"
sudo find "$HOME/Library/Caches" -iname "*cyberic.smoothmouse*" -exec rm -rf {} \;
sudo ln -sf "/Librar... | true |
8e774861550827bd726831d96ae8c2abdc35e1bb | Shell | ofrzeta/vagrant-openshift | /setup-dnsmasq | UTF-8 | 527 | 2.921875 | 3 | [] | no_license | #!/bin/sh
manageip=$(hostname -I | awk '{ print $1 }')
managenet=$(echo $manageip | awk -F "." '{ print $1 "." $2 "." $3 }')
sudo ip route del default via ${managenet}.1
sudo sed -i "/$managenet/d" /etc/resolv.conf
myip=$(hostname -I | awk '{ print $2 }')
mydns=$(grep nameserver /etc/resolv.conf | awk '{ print $2 }... | true |
23bf06a1ba6cf061b5aeb9e0aa90303adc1f6c37 | Shell | robfig/plovr | /closure/closure-templates/gen_parser.sh | UTF-8 | 664 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Generates a JAR of .java files for the .jj files.
JAVACC="$1"
EXPRESSION_PARSER_JJ="$2"
SOY_FILE_PARSER_JJ="$3"
TEMPLATE_PARSER_JJ="$4"
OUTPUT_FILE="$5"
cd $TMP
mkdir -p com/google/template/soy/exprparse
java -classpath $JAVACC org.javacc.parser.Main $EXPRESSION_PARSER_JJ
mv *.java com/google/template... | true |
489ba95b2fe4462c81c2f6815d5b721beb24ff06 | Shell | telmofriesen/oficinas3-bellator | /Software/EstacaoBase/old/testes/name.sh | UTF-8 | 156 | 3.125 | 3 | [] | no_license | #!/bin/bash
for x in 13*; do
echo -n $x
echo -n " - "
name=`cat $x/descricao 2> /dev/null`
if [ $? -eq 0 ]; then
echo $name
else
echo ""
fi
done
| true |
65b6a13b417d1edc04cbffcf4e1ce55b0342715f | Shell | Swanand-gobalto/Maintenance_Scripts | /awsdms_exceptions_past_30_mins.sh | UTF-8 | 1,292 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#alert 1 check if any awsdms exceptions for the past 30 mins
#execute it : sh dba/awsdms_exceptions_past_30_mins.sh metrics-prod-master.cpenagls1m4q.us-west-2.rds.amazonaws.com 5432 analyze_monitor_db >> /home/postgres/dba/awsdms_exceptions_past_30_mins.log 2>&1
BINDIR=/usr/bin
HOST=$1
T_PORT=$2
DATA... | true |
57752b5b98406b68bbd930f01e663d7dd1460021 | Shell | zjsxwc/vpn_for_centos7 | /centos7.x_pptp+l2tp.sh | UTF-8 | 3,747 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# Build by mayitbe.net
wget -c http://dl.fedoraproject.org/pub/epel/7/x86_64/x/xl2tpd-1.3.6-7.el7.x86_64.rpm
wget -c http://dl.fedoraproject.org/pub/epel/7/x86_64/p/pptpd-1.4.0-2.el7.x86_64.rpm
yum -y install openswan net-tools ppp xl2tpd-1.3.6-7.el7.x86_64.rpm pptpd-1.4.0-2.el7.x86_64.rpm
rm -rf xl2tpd-1... | true |
acd53871dac8f6be5aeaadc0b6147640e83b032c | Shell | Haymitch1992/my-blog | /deploy.sh | UTF-8 | 390 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成静态文件
npm run build
# 进入生成的文件夹
cd docs/.vuepress/dist
# 如果是发布到自定义域名
echo 'wangzhiwei.work' > CNAME
git init
git add -A
git commit -m 'deploy'
# 如果你想要部署到 https://USERNAME.github.io
git push -f git@github.com:Haymitch1992/Haymitch1992.github.io.git master
cd -
| true |
fb555b07dd8052a65aa2d70d8505bcf805d552eb | Shell | oliv5/profile | /.config/vim/vim-spf13/setup.sh | UTF-8 | 419 | 2.9375 | 3 | [] | no_license | #!/bin/sh
# https://github.com/spf13/spf13-vim.git
# http://vim.spf13.com/
set -e
# Backup current installation
if ls -d ./spf13-vim*/ >/dev/null 2>&1; then
tar --remove-files -cvzf "./spf13-vim.$(date +%Y%m%d-%H%M%S).tgz" ./spf13-vim*/ 2>/dev/null
fi
# Download the setup script and run it
(curl https://j.mp/spf13-v... | true |
3de14b33443efe4932e975b81d26a40f6e82d347 | Shell | DSpeichert/ut2004 | /scripts/run-root.sh | UTF-8 | 519 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
echo "Setting permissions on ${UT2004_HOME}/.ut2004"
mkdir -p "${UT2004_HOME}/.ut2004"
chown -R ut2004:ut2004 "${UT2004_HOME}/.ut2004"
chmod -R a=,u=rwX "${UT2004_HOME}/.ut2004"
if [ "${COMPRESS_DIR:-}" != "" ]; then
echo "Setting permissions on ${COMPRESS... | true |
ca328bac10aaa53dd4bff427695e56bb808d4766 | Shell | rahulrajaram/dotfiles | /bashrc | UTF-8 | 2,177 | 2.609375 | 3 | [] | no_license | export VISUAL=vim
export EDITOR="$VISUAL"
export mine="/Applications/RubyMine.app/Contents/MacOS/rubymine"
alias sublime="/Users/rahulrajaram/Library/Application Support/Sublime Text 3/"
# apm shortcuts
# rake and bundle tasks
alias hh="history"
alias binst="bundle install"
alias bupdate="bundle update"
alias docs="cd... | true |
becdb109cc173cfd2a815b19bd9ee132b3d0b0a6 | Shell | Jaymon/.bash | /bin/mostused | UTF-8 | 909 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
# -*- mode: sh -*-
# vi: set ft=sh :
###############################################################################
#
#? mostused -> lists the most used commands on the shell
#
###############################################################################
if [[ $1 == "--help" ]] || [[ $1 == "-h"... | true |
312235e81479dfc84d84b81442ff36dcdb71b729 | Shell | ishalyminov/ruscorpora_syntax | /train_malt.sh | UTF-8 | 824 | 3.09375 | 3 | [] | no_license | if [ $# -lt 2 ]; then
echo "Usage: train_malt.sh <source texts root> <output file>";
return 1;
fi
INPUT=$1
DATASETS_FOLDER=datasets
MODEL_FILE_NAME=$2
TRAIN_FILE_NAME=train.malttab
mkdir -p $DATASETS_FOLDER
mkdir -p $DATASETS_FOLDER/corpus_converted
echo "Converting SynTagRus tags to Ruscorpora"
python synta... | true |
073c073daa1b9144b209df6ba89e8f19c911109e | Shell | kjohnson/since-unreleased | /bin/since-unreleased.sh | UTF-8 | 737 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# Find files in the directory ./ (root)
# find $1 -type f
# Include files with extensions .php, .js, or .jsx
# \( -name "*.php" -o -name "*.js" -o -name "*.jsx" \)
# Exclude the directories vendor (composer) and node_modules (npm)
# -not \( -path "./vendor/*" -o -path "./node_modules/*" \)
# Replace the... | true |
590cb8610eab1681fdd95960e0fdd6711f991f67 | Shell | sunsistemo/chronogrator | /Run/run_verlet_times | UTF-8 | 979 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
f="verlet_times.txt"
printf "# rv \treal\tuser\tsys\n" > "$f"
rmin=$(python -c 'print 2 ** (1/6.)')
rv2=$(python -c 'print 1.05 * 2 ** (1/6.)')
temp=0.728
for rv in $(seq 2.5 0.001 3.5) ; do
cat > fort.15 <<endofdata
ibeg , delt tmax tequil nsamp
0 0.001 1.5 0.00 1
npart temp ... | true |
99cc987c327bf350efcba47c3a9a623848614734 | Shell | dudaji/dudaji-guide | /dotfiles/.bash_profile | UTF-8 | 247 | 2.75 | 3 | [] | no_license | # Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Source my bashrc
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
if [ $ITERM_SESSION_ID ]; then
export PROMPT_COMMAND='echo -ne "\033]0;${PWD##*/}\007"'
fi
alias ls='ls -G'
| true |
b53a893bc4d9e3747f23a22046e16518d7c2d300 | Shell | jorgef1299/Mini-ASV | /librpip-pwm-init | UTF-8 | 775 | 2.53125 | 3 | [] | no_license | #!/bin/sh
#start the PWM clock with our binary
/usr/local/bin/librpip-util/pwmclk
#start the PWM clock by sending some audio :-/
#speaker-test -Dhw:CARD=ALSA,DEV=0 -f300 -c1 -p100 -P2 -l1 > /dev/null 2>&1
#enable the PWM(s). Try both in leu of parsing config.txt.
echo "0" > /sys/class/pwm/pwmchip0/export
echo "1" >... | true |
0cfc18e3f9e63eba92007b049cc84b810596dd52 | Shell | binaryjungle/git_quick_reference | /09_git_branch.sh | UTF-8 | 970 | 3.140625 | 3 | [] | no_license | #List of all branches in current local repository
git branch
#Create new branch
git branch new_branch_01
#Switching branch
git checkout new_branch_01
#Create and Switch at same time
git checkout -b new_branch_02
#Find what branches are subset of what other branches
#Stay on a branch and execute below command
git br... | true |
b0be05ca9cdd3ed98afa400fb9674815b95e2777 | Shell | penguineer/systools | /svn_find.sh | UTF-8 | 198 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DIR=$1
#no argument?
if [ -z "$DIR" ]; then
DIR=.
fi
find $DIR -type d -path '*\/\.svn' | \
sed 's/\/\.svn.*\.*//' |\
sort -u |\
perl -lne's!/\.svn$!!i;$a&&/^$a/||print$a=$_'
| true |
e0872f0135a1b9583b2f31bdb539797cfdef2a7c | Shell | faddat/crypto | /persistence/persistence_commission.sh | UTF-8 | 1,793 | 3.140625 | 3 | [] | no_license | #!/bin/bash
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
DELEGATOR='Delegator_address' # your address created or imported
VALIDATOR='Validator_address' # can get from Keplr (https://wallet.keplr.app/#/core/stake?modal=detail&validator=persistencevaloper1s8yr8sar5vkv56r9dv4rhv4ttzryzj4xjahvsl) - Persisten... | true |
4df77707e78923e025be9ac1925afddcd9e461b8 | Shell | delkyd/alfheim_linux-PKGBUILDS | /ozon-colors-icon-theme-git/PKGBUILD | UTF-8 | 806 | 2.671875 | 3 | [] | no_license | # Maintainer: steelstrings <steelstring.of.a{at}gmail{dot}com>
pkgname=ozon-colors-icon-theme-git
_pkgname=ozon-icon-theme-folders
pkgver=r4.4fa2a1e
pkgrel=1
pkgdesc="Additional folder colors for the default Ozon OS icon theme"
arch=('any')
url="https://github.com/ozonos/ozon-icon-theme"
license=('GPL3')
depends=('gtk... | true |
8ccf7afd66faa76356d09860774fd58b6042eee7 | Shell | delkyd/alfheim_linux-PKGBUILDS | /caps2esc/PKGBUILD | UTF-8 | 773 | 2.609375 | 3 | [] | no_license | # Maintainer: Francisco Lopes <francisco@oblita.com>
pkgname=caps2esc
pkgver=1.0.3
pkgrel=1
pkgdesc="caps2esc: transforming the most useless key ever in the most useful one"
arch=('i686' 'x86_64')
license=('GPL3')
url="https://github.com/oblitum/caps2esc"
depends=('libevdev')
makedepends=('gcc')
source=("https://raw.gi... | true |
7f0b5e3a2768539099fb6f612ac79e4039c13c70 | Shell | pengduo/VirtualMachineHandler | /packer/packer-debian/scripts/provision.sh | UTF-8 | 1,216 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/bash -eux
# Add PPA
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >/etc/apt/sources.list.d/ansible.list
# Required by Debian 9; otherwise apt-key will fail.
apt-get -y install dirmngr
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
# apt cdrom after-install ... | true |
bdccc25969ab7f22ef391b3a4b1dc0d7cf2bd3bb | Shell | RyanThomas/urban-epi | /src/bash/task_manager.sh | UTF-8 | 3,279 | 3.671875 | 4 | [] | no_license | #!/bin/bash
# Wite taskfile -- only for cluster
#for city in ${VEC}/city_boundaries/*.shp ; do
#echo build_grass.sh $city >> taskfile.txt; done
# This script takes a single argument in the form of a filepath to a shapefile.
# To run all the scripts at once, run the commands in the taskfile in sequence.
# Load the... | true |
fdb033e9686f62c30e4eef857a142d53ba2af5a3 | Shell | ishiprak/utility-bash-scripts | /toogg | UTF-8 | 397 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
fn=${1%.*}
# ffmpeg -i "$1" -acodec libmp3lame "$fn.mp3"
ffmpeg -i "$1" -vn -y "$fn.ogg"
# http://bytefreaks.net/gnulinux/bash/ffmpeg-extract-audio-from-webm-to-ogg
# http://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash
# http://stackoverflow.com/questions/2711001/how-to-apply-s... | true |
f26c444c8cb38262d287e4fb9b65bf760c512f2d | Shell | mindovermiles262/brewnotes | /generate_key.sh | UTF-8 | 313 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# Generates 64-character alphanumberic string then adds
# it as $wgSecretKey in /var/www/html/LocalSettings.php
#
# AD 2018-11-09
SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1)
EXPORT_STR="\$wgSecretKey = \"$SECRET\";"
echo $EXPORT_STR >> /var/www/html/LocalSettings.php
| true |
f87497d98b05a050a655b4ce2715b01cbe02dcde | Shell | planetlab/build-old | /modules.update | UTF-8 | 858 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# redirect this into modules.list to get it refreshed
#
# run on several distros as we filter out duplicates anyways
# centos5 has more of our modules, but skips sfa
fcdistros="centos5 f12"
( for fcdistro in $fcdistros; do
# make stage1=true PLDISTRO=planetlab PLDISTROTAGS=planetlab-tags.mk DISTRONAM... | true |
ed862337025a28d5ef627ccb5cee8e4d03c1345e | Shell | digideskio/NBICreatorResources | /Scripts/deployStudioDependencyCheck.bash | UTF-8 | 1,695 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
checkCommand="/Users/erikberglund/GitHub/Scripts/Tools/sharedLibraryDependencyChecker.bash"
path_tmpCheckCommandVariables="/tmp/${0##*/}_variables"
path_output="/tmp/${0##*/}_out.txt"
fillVolume="/Users/erikberglund/Documents/NBICreator/DeployStudio/sysBuilder/1.6.16/sysBuilder/10.10/fill_volume.sh"
prefi... | true |
896f53837c19e6e7e622e06bacc60805f13d154c | Shell | qiuzt/mimic-code | /mimic-iv/buildmimic/duckdb/import_duckdb.sh | UTF-8 | 16,600 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Copyright (c) 2021 Thomas Ward <thomas@thomasward.com>
# Copyright (c) 2019 MIT Laboratory for Computational Physiology
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without... | true |
8149ac905cb5ec22c949d4355c2e9348dc180242 | Shell | Leamundis/validationLinux1 | /scriptValidationLinux1.sh | UTF-8 | 7,720 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
clear
# First function loaded
start()
{
echo "Salut!"
#sleep 1
echo -e "Bienvenu dans ce script de Validation de \e[34mLinux 1!\e[0m"
#sleep 1
echo "Commenons par les paramètres de base"
#sleep 1
echo -e "Veux-tu installer Vagrant? (\e[32my\e[0m/\e[31mn\e[0m)"
askVagrant
}
# Vagrant installation
a... | true |
7ba3b36c0d945519f85096349e69d0b9563c5cdb | Shell | radtek/Scripts | /scripts/Backups/backup/backup/backup_online.sh | UTF-8 | 1,788 | 3.296875 | 3 | [] | no_license | # Executa backup online Oracle - BASEDB
# DIRETORIO DE LOGS
DIR_LOG=/o01/app/oracle/oracledba/logs
# DIRETORIOS DE BACKUP EM DISCO
DIR_BKP="/o03/oradata/oradb1/bkp"
# Arquivo temporario de log (email)
LOG_TMP=/tmp/bkponline_oradb1.log
# Lista de emails
LISTAMAIL="gedielrs@hotmail.com, junior_amaral_poa@yahoo.com.b... | true |
1c58132cadba0dac5cd74bbd7d8f8233fa4df194 | Shell | technovangelist/katacoda-scenarios | /101v2/dd101-part2-5usethetools/background.sh | UTF-8 | 1,828 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# mkdir k8s-yaml-files
curl -s https://datadoghq.dev/katacodalabtools/r?raw=true|bash
touch status.txt
echo "">/root/status.txt
if [ ! -f "/root/provisioned" ]; then
wall -n "Cloning the Github Repo"
git clone https://github.com/burningion/distributed-tracing-with-apm-workshop trace
cd trace
wall -n... | true |
dfc9cc831ae9e2f8041f20c220f1cd46b444d4ed | Shell | zeehang/CS35L | /lab2/Lab/sameln.sh | UTF-8 | 985 | 3.703125 | 4 | [] | no_license | #!/bin/bash
directory=$1
declare -a files
preprocess=`ls $directory | sort`
preprocessHidden=`ls -a $directory | grep "^\." | sort`
counter=0
#first add hidden files
for f in $preprocessHidden
do
if [ -f $directory/$f ]
then
files[$counter]="$directory/$f"
counter=$((counter+1))
fi
done
#add the... | true |
e01ce79b098bdc90cd349312aeb3b7577a195ab2 | Shell | etorth/mir2x | /tools/wpnmaker/src/main.sh | UTF-8 | 2,861 | 3.921875 | 4 | [] | no_license | #!/bin/bash
echo weapon graphics package builder
echo version 0.0.1
printUsage()
{
echo "Usage:"
echo " main.sh gender index path-to-pkgviewer-output [path-to-output]"
echo " gender : 0 : male"
echo " 1 : female"
echo " index : 1 : [w]m-weapon1.wil"
echo " ... | true |
01f59ed3907cf75d19ebae333f4f6b740ff6b427 | Shell | markzz/abs | /community/python-grooveshark/PKGBUILD | UTF-8 | 1,226 | 2.546875 | 3 | [] | no_license | # $Id$
# Maintainer: Claudiu Traistaru <claudiu2004@gmail.com>
pkgname=('python-grooveshark' 'python2-grooveshark')
pkgver=3.0
pkgrel=3
pkgdesc="A simple python wrapper for grooveshark"
arch=('i386' 'amd64')
url="https://github.com/koeklma/pygrooveshark"
license=('BSD')
makedepends=('python-distribute' 'python2-distri... | true |
7a190e450aa4adc00a4f2b9802dc5267f8ec9bee | Shell | marian-nmt/marian-regression-tests | /tests/training/cost-functions/test_ce-mean-words.sh | UTF-8 | 902 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -x
#####################################################################
# SUMMARY: Train using the 'ce-mean-words' cost function
# AUTHOR: snukky
# TAGS: gcc5-fails sync-sgd
#####################################################################
# Exit on error
set -e
# Test code goes here
rm -rf ce-mean-... | true |
6b16c0a2b3475a4cb10bc27ea2bfd5f9147b030b | Shell | ryanwoodsmall/oldsysv | /sysvr3/301/usr/src/cmd/graf/src/toc.d/ttoc.sh | UTF-8 | 1,048 | 3.484375 | 3 | [] | no_license | # Copyright (c) 1984 AT&T
# All Rights Reserved
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#ident "@(#)graf:src/toc.d/ttoc.sh 1.4"
: ttoc mm-file
:
LIB=/usr/lib/graf
BIN=/usr/bin/graf
trap "rm -f /tm... | true |
19ed9857308801e844e5527f4afd63d52bc54de6 | Shell | dmstr/vado-ligure | /template/vm-provision-stretch-zfs-init.sh | UTF-8 | 710 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
echo "Running 'zfs init' provisioning..."
# define device name for disk to check
DISK_DEV_NAME=/dev/sdb
M_POINT=/var/lib/docker
DOCKER_RUNS=0
export DEBIAN_FRONTEND=noninteractive
echo 'deb http://deb.debian.org/debian stretch contrib' > /etc/apt/sources.list.d/debian_stretch_contrib.list... | true |
3cb74f6d5da48ec75daf71a5d78fa7bf8ba682e0 | Shell | georgematos/PrepareMySystem_UbuntuGnomeVersion | /scripts/instalarTerminator.sh | UTF-8 | 166 | 3.21875 | 3 | [] | no_license | #!/bin/bash
instalarTerminator() {
APP="Terminator"
echo "Instalando $APP"
sudo apt-get install terminator
STATUS=$?
exibirMensagemDeStatus $STATUS $APP
}
| true |
b1d72d78ea9a640632307c4cf5e256fd79066ae3 | Shell | lefeverde/htc_cluster_scripts | /stringtie_abundance_master.sh | UTF-8 | 1,489 | 3.375 | 3 | [] | no_license | #!/bin/bash
project_name=$1
sample_ids=$2
core_num=${3:-2}
mem_num=${4:-16}
# Trying to make
# boiler plate code less
# hardcoded
cur_module=StringTie
cmd_string=stringtie
merged_gtf=${project_name}/assemblies/${project_name}_stringtie_merged.gtf
while read SAMPLE_ID; do
# idea for master script was taken from:... | true |
7f308496248b2a257ad7027cdf6516c2add0aee3 | Shell | tatoru-antivirus/tatoru-client-rails | /initialize_dummy.sh | UTF-8 | 2,067 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DUMMY_APP_PATH="spec/dummy"
# Delete old dummy app
if [ -d "$DUMMY_APP_PATH" ]; then rm -rf $DUMMY_APP_PATH; fi
# Generate new dummy app
DUMMY_APP_PATH=$DUMMY_APP_PATH DISABLE_MIGRATE=true bundle exec rake dummy:app
if [ ! -d "$DUMMY_APP_PATH/config" ]; then exit 1; fi
rm $DUMMY_APP_PATH/.ruby-version
... | true |
b4222a1ae4663ec99029c66df315d34af40fc0c7 | Shell | suchoudh/Routine | /_workingReport.sh | UTF-8 | 362 | 3.109375 | 3 | [] | no_license | #! /bin/bash
histo="=====================================================================+"
read datewd value # This generates the histogram --2
while [ -n "$datewd" ] ; do
# Use a default width of 70 for the histogram
echo -n "$datewd "
echo ${histo:0:$value}
read datewd value
done
... | true |
ccccb3dce0f70d0f1b5f81af600031dc24b1a976 | Shell | sbmorvant/EPBI414 | /EPBI414/Week 6/MorvantHW6pt1ssh.txt | WINDOWS-1252 | 941 | 3.515625 | 4 | [] | no_license | #!/bin/bash
###############################################
# #
# MorvantHW6pt1ssh.txt #
# Authored by: Stephen Morvant II #
# Initial version creation: 2016/10/02 #
# Last updated on: 2016/10/07 #
# ... | true |
d56f19a94c01a00d4c20863e75d9b458e57c3c17 | Shell | zhangaz1/dotfiles-38 | /zsh/01_path.zsh | UTF-8 | 245 | 2.984375 | 3 | [
"MIT"
] | permissive | typeset -U path
if [[ "$OSTYPE" == "darwin"* ]]; then
path=(
#Homebrew
/usr/local/bin
#GNU Bison (Necessary on macOS for https://github.com/asdf-community/asdf-php
/usr/local/opt/bison/bin
# System Path
$path
)
fi
| true |
7b3c90336af7dc49f432424c80e209b327a3d649 | Shell | roy4801/107_Gernic_Programming | /lab01/gen.sh | UTF-8 | 2,084 | 3.640625 | 4 | [] | no_license | #!/bin/bash
COLOR_OFF=$'\033[0m'
COLOR_GREEN=$'\e[0;32m'
COLOR_RED=$'\e[0;31m'
# check the C-code need to switch mode
function info()
{
echo -e "${COLOR_GREEN}$1${COLOR_OFF}"
}
function warn()
{
echo -e "${COLOR_RED}$1${COLOR_OFF}"
}
# print func
# Usage: print <msg>
# It will replace "/rd/" with "${COLOR_RED}"... | true |
46056ba2257dd5b924df87f694cdbad9d9184895 | Shell | KdeOs/main | /audit/PKGBUILD | UTF-8 | 1,431 | 2.640625 | 3 | [] | no_license | #
# Apps Packages for Chakra, part of chakra-project.org
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
pkgname=audit
pkgver=2.2.1
pkgrel=3
pkgdesc='User space utilities for storing and searching the audit records generated by the audit subsystem in the Linux kernel.'
url="http://people.redhat.com/sgrubb/$pk... | true |
a45c88bce90eee9e5c512a55b690c349a63bba08 | Shell | optedoblivion/bin-scripts | /sysappin | UTF-8 | 2,655 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# Martin Brabham (optedoblivion@cyngn.com)
NC='\x1B[0m' #NO COLOR
RED='\x1B[1;31m'
GREEN='\x1B[1;32m'
CYAN='\x1B[0;36m'
if [ $# -lt 1 ]; then
echo
echo -e "${CYAN}System App Installer${NC}"
echo -e " ${CYAN}Usage: $0 <path/to/app.apk> [-p/--private]${NC}"
echo
exit 0
fi
# Check an... | true |
2c0c09b3ca18bce267b3d45a26906ab005ede9d5 | Shell | eemperor/ash-linux-formula | /ash-linux/el6/STIGbyID/cat2/files/V38439.sh | UTF-8 | 1,193 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# STIG URL: http://www.stigviewer.com/stig/red_hat_enterprise_linux_6/2014-06-11/finding/V-38439
# Finding ID: V-38439
# Version: RHEL-06-000524
# Finding Level: Medium
#
# A comprehensive account management process that includes automation
# helps to ensure the accounts designated as requiring att... | true |
f36dd6329d8414db9bd8f2c48adfa1716e09c5e3 | Shell | HuffordLab/NAM-genomes | /quality-control/scripts/runSTARmap_index.sh | UTF-8 | 824 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
module load star
cd /work/LAS/mhufford-lab/arnstrm/newNAM/analyses/f-rnaseq/index
wget ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/plant/Zea_mays/latest_assembly_versions/GCA_000005005.6_B73_RefGen_v4/GCA_000005005.6_B73_RefGen_v4_genomic.fna.gz
gunzip GCA_000005005.6_B73_RefGen_v4_genomic.fna.gz
genome=GCA_... | true |
3787fb695813b826100c7e364d243a545413ad05 | Shell | jisosomppi/manymachines | /makebox.sh | UTF-8 | 634 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | ## Jussi Isosomppi, 2018
## Script for making a custom Vagrant box based on an existing one
## Sources:
## https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one
## https://www.vagrantup.com/docs/virtualbox/boxes.html
cd
mkdir vagrant
# move premade basebox Vagrantfile and rename it
cp ~/ma... | true |
6972f90a5986219dd8bad66af02d871868be33b0 | Shell | alces-software/symphony | /cobbler/snippets/profile | UTF-8 | 246 | 2.515625 | 3 | [] | no_license | if ! [ -z $symphonyprofile ]; then
case $symphonyprofile in
compute)
yum -e 0 -y --config http://symphony-repo.mgt.symphony.local/configs/$tree/yum.conf groupinstall "Compute Node" "Development Tools"
;;
*)
;;
esac
fi
| true |
9d02a369d03730290019cdd4b1f4f1d23530bb3e | Shell | demsey/openembedded | /contrib/angstrom/omap3-mkcard.sh | UTF-8 | 935 | 3.6875 | 4 | [
"MIT"
] | permissive | #! /bin/sh
# mkcard.sh v0.4
# (c) Copyright 2009 Graeme Gregory <dp@xora.org.uk>
# Licensed under terms of GPLv2
#
# Parts of the procudure base on the work of Denys Dmytriyenko
# http://wiki.omap.com/index.php/MMC_Boot_Format
LC_ALL=C
if [ $# -ne 1 ]; then
echo "Usage: $0 <drive>"
exit 1;
fi
DRIVE=$1
dd if=/dev/... | true |
3b6c3956f65da44c1b8a6371b3c8d583fbdeaa79 | Shell | aakashkhaksa/UNIX-LAB-2019 | /01 AAKASH/fabonacci.sh | UTF-8 | 188 | 3.1875 | 3 | [] | no_license | #!/bin/bash
echo "How terms needed :"
read n
x=0
y=1
i=2
echo "Fibonacci series: "
echo "$x"
echo "$y"
while [ $i -lt $n ]
do
i=$((i+1))
z=$((x+y))
echo "$z"
x=$y
y=$z
done | true |
52b11cbb5dbc91e25ae6296f40e9013364f60b63 | Shell | jakewright/dotfiles | /git.sh | UTF-8 | 371 | 2.546875 | 3 | [] | no_license | # General git helpers
alias ga="git add ."
alias gb="git branch"
alias gc="git commit"
alias gd="git diff"
alias gl="git log"
alias gp="git push -u"
# The --force-with-lease option is like --force
# but will not overwrite other people's changes.
alias gpf="git push --force-with-lease"
alias gs="git status"
alias reb... | true |
82e1b41037d1579c8c9c5ebd564b3c307773c4f4 | Shell | lscspirit/toolbox | /scripts/host_stat.sh | UTF-8 | 1,362 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
gather() {
local uname=`uname`
case "$uname" in
Darwin) local mem_stat=`top -l 1 | sed -En 's/PhysMem:.*[^0-9\.]+([0-9\.]+)M used, ([0-9\.]+)M free\./\1 \2/gp' | awk '{ total = $1 + $2; print "mem_used=" $1 ",mem_free=" $2 ",mem_total=" total; }'`
local cpu_stat=`top -l 1 | sed -En 's/... | true |
3e99ffa571dc4fa8227f1ec1e4ac5e8084667f97 | Shell | programingjd/packer_lfs | /src/main/resources/linux_api_headers.sh | UTF-8 | 243 | 2.703125 | 3 | [] | no_license | #!/bin/bash
SOURCES=$LFS/sources
BUILD=$LFS/build
tar xf $SOURCES/linux-*.tar.* --directory $BUILD
cd $BUILD/linux-*
make mrproper
make INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /tools/include
cd $BUILD
rm -rf $BUILD/*
| true |
5362a851a8d4017545cfbda3a0a9fe1f777212d6 | Shell | abbruzze/kernal64 | /Kernal64/build/remoteclient.sh | UTF-8 | 242 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
HOME=`dirname "$0"`
HOME=`cd "$HOME"; pwd -P`
LIB=$HOME/lib
CP=
if [ ! -x $JAVA_HOME/bin/java ]; then
JAVA=java
else
JAVA=$JAVA_HOME/bin/java
fi
$JAVA -Xms32M -Xmx32M -cp $CP ucesoft.cbm.remote.RemoteC64Client $*
| true |
863aec9c35856001981e70fa22eb4d10356692f8 | Shell | PlayerLegend/prog-dir | /src/shell-utils/storefile/storefile.sh | UTF-8 | 1,689 | 3.859375 | 4 | [] | no_license | #!/bin/sh
set -e
if test -z "$STORE_DIR"
then
>&2 echo "Environment variable STORE_DIR is undefined"
exit 1
fi
set_path() {
path="$STORE_DIR"/"$(echo "$1" | cut -c1,2)"/"$(echo "$1" | cut -c3,4)"/"$1"
}
check_path() {
if ! test "$(sha256sum "$path" | cut -d' ' -f1)" = "$(basename "$path")"
then
... | true |
a8334c80062014a69f85ca6be0a1e790ef2d6525 | Shell | SharedHealthNLP/StructTempRel-EMNLP17 | /scripts/evaluate_general.sh | UTF-8 | 816 | 3.125 | 3 | [] | no_license | #!/bin/bash
#sh scripts/run.sh
#args={gold_path,sys_path,tag}
PROJECT=.
TOOL_PATH=$PROJECT/data/TempEval3/Tools/tools
NORMALIZER=$TOOL_PATH/TimeML-Normalizer/TimeML-Normalizer.jar
EVALUATOR=$TOOL_PATH/evaluation-relations/temporal_evaluation.py
GOLD_PATH=$1
SYS_PATH=$2
GOLD_NORM_PATH=$GOLD_PATH'-normalized'
SYS_NORM_... | true |
1e8d8a2f4fd793fdc20796ec163935d7f3e2ec62 | Shell | MeteoSwiss-APN/mch-python-blueprint | /tools/update_env.sh | UTF-8 | 683 | 3.921875 | 4 | [
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash -x
# update_env.sh
# Create a default package and update the root environment file
main()
{
# Create a temporary default project
local tmpdir="_tmp"
if [[ -d "${tmpdir}" ]]; then
\rm -rfv "${tmpdir}" || return
fi
copier -f --vcs-ref=HEAD . "${tmpdir}" || return
# Use scrip... | true |
a4863fc0e24cb63c1f5ef3aebb3dfcba86f3b8d6 | Shell | javachengwc/java-apply | /doc/linux/shell/编译打包工程shell.sh | UTF-8 | 1,348 | 2.59375 | 3 | [] | no_license | CONF=/data/deploy/confbak/app
SRC=/data/program/app
DEPLOY=/data/deploy/app
PROJECTS=(app-core app-service app-manage app-task)
cd ${SRC}
git pull origin master
for i in ${PROJECTS[*]}; do
cd ${SRC}/modules/${i}
echo `pwd`"----------------------------"
if [[ $i == "app-task" ]] ; then
cp -avf ${CON... | true |
fb8da3c15b2c347203023ebeea29b2fc94e7a04e | Shell | m-creations/docker-neo4j | /image/root/start-neo | UTF-8 | 499 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#
# We want to change the password to the content of $PASSWORD
# but it should be different than the default
if [ "$PASSWORD" == "neo4j" ] ; then
printf "\n\nPlease provide a password other than the default 'neo4j' with -e PASSWORD=...\n\n"
exit 1
fi
/initialise-neo &
cmd="$@"
if [ -z "$cmd" ] ;... | true |
7887ec89a213b3bb612d1e22a617d864c8c5933c | Shell | felixfan/pipelines | /HLA-VBSeq/HLA_VBSeq_Fastq.sh | UTF-8 | 1,916 | 2.96875 | 3 | [] | no_license | #!/usr/bin/env bash
### typing HLA using exome sequencing data
### run on Ubuntu 14.04 LTS
### @ Felix Yanhui Fan felixfanyh@gmail.com
### @ 17 Aug 2016
### From bam to HLA typing
SAMPLE=$1
FQ1=$2
FQ2=$3
OUTDIR="/home/felixfan/uwork/ADExomeHLA2016/HLA-VBSeq_results"
TOOLDIR="/home/felixfan/ubin/HLA-VBSeq"
TMPDIR="/ho... | true |
12871634e7d4dd387d641fcffae6d8c4cfcf74fb | Shell | shivanshu-semwal/dotfiles | /linux/Scripts/basic/idleshutdown | UTF-8 | 592 | 3.046875 | 3 | [] | no_license | #!/bin/bash
idletime=$((1000 * 60 * 60 * 2)) # 2 hours in milliseconds
# idletime=$((1000 * 60 * 1)) # 5 min in milliseconds
while true; do
idle=$(xprintidle)
echo $idle
if (($idle > $idletime)); then
#sudo shutdown -P now
notify-send "Shutdown in a minute"
sleep 60
d... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.