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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e1997b250d092fcc70eb46b9f03b7004baf3b648 | Shell | Volibra/cardano-testnet-devops | /scripts/install-bootstrap.sh | UTF-8 | 913 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -eu
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get install && sudo apt-get install -y tzdata curl
curl -L --output /tmp/go1.17.linux-amd64.tar.gz https://golang.org/dl/go1.17.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf /tmp/go1.17.linux-amd64.tar.gz
rm -f /tmp/g... | true |
1262b20fb7b3f128920a21a1ff42251aa166a2a0 | Shell | sanjayrajputcse/raspberry-pi-server | /scripts/cron.sh | UTF-8 | 229 | 2.921875 | 3 | [] | no_license | #!/bin/bash
date
out=$(ps aux | grep "[r]aspberry-pi-server")
if [[ -z ${out} ]]
then
echo "starting raspberry-pi-server..."
/home/sanjay.rajput/run.sh
else
echo "raspberry-pi-server already running!!!"
fi | true |
509b54a5917eb5f7981140bd492a7e5e831520fd | Shell | theGeoffrey/infrastructure | /bin/deploy.sh | UTF-8 | 315 | 2.625 | 3 | [] | no_license | #!/bin/bash
set -e
export branch="deploy-$(date +%s)"
export current=`git rev-parse HEAD`
git checkout -b $branch
npm install
mv geoffrey/ui/dist ui-dist
git add -f ui-dist/* promo/dist/*
git commit -m"Add compiled UIs for deploy"
git push deploy $branch:master
git tag -f deployed $current
git push origin --tags | true |
4b5acb6f3484464df51766942c6be6a0ddc22692 | Shell | TheEarnest/EnKF_Script | /upgrade_st_archive_fanf.sh | UTF-8 | 197 | 2.640625 | 3 | [] | no_license | #!/bin/sh -e
PREFIX=NorCPM_F19_tn21_mem
CASEROOT=/home/nersc/ywang/NorESM/cases
for MEM in `seq -w 01 30`
do
cp -f ./st_archive_fanf.sh $CASEROOT/${PREFIX}${MEM}/Tools/st_archive.sh
done
| true |
7e21134b85bce1b27edcaccbcf232b9b36c65f73 | Shell | erlang/otp | /lib/megaco/examples/meas/mstone1.sh.skel.src | UTF-8 | 7,181 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# %CopyrightBegin%
#
# Copyright Ericsson AB 2007-2022. All Rights Reserved.
#
# 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
... | true |
0acaf267aada31f28f96c83dc2e3ad3554edca84 | Shell | herryslin/learning_script_shell | /check_config.sh | UTF-8 | 1,379 | 2.875 | 3 | [] | no_license | #!/bin/bash
config=$1
if [ $config = "config_lua" ];then
m=`/bin/hostname|cut -c 1-7`
n=`cat /opt/app/edge/etc/config.lua|grep myNode|awk '{print $3}'|cut -c 2-8`
if [ "$m"x = "$n"x ];then
echo 0;
else
echo 1;
fi
elif [ $config = "se... | true |
751762c9425d95fd756c7108e5bc345f74d1464f | Shell | deweysasser/docker-baseimage | /test/verify | UTF-8 | 427 | 3.578125 | 4 | [] | no_license | #!/bin/bash
# Purpose: verify the image does what it needs to
assert() {
desc="$1"; shift
if eval "$@" ; then
echo "$desc...PASS"
else
echo "$desc...FAIL"
problems=$((${problems:-0} + 1))
fi
}
# Give things a chance to start up
assert "Initialization happened" test -f /root/test-runonce
assert "Star... | true |
aa5e9f52cbf97a1d2458e95e2704b950f8885f60 | Shell | irwanmohi/test | /final/cek-tr.sh | UTF-8 | 898 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
red='\e[1;31m'
green='\e[0;32m'
NC='\e[0m'
MYIP=$(wget -qO- icanhazip.com);
echo "Script By geo"
clear
data=( `cat /var/log/trojan.log | grep -w 'authenticated as' | awk '{print $7}' | sort | uniq`);
echo "-------------------------------";
echo "-----=[ Trojan User Login ]=-----";
echo "--------------------... | true |
c53dd71e55a966c85012568ad31f3b8356a76d98 | Shell | andrerocker/random | /c/sockets/server.sh | UTF-8 | 266 | 3.1875 | 3 | [] | no_license | #/bin/bash
system=$(uname -s)
port=1337
if [[ $system == "Linux" ]]
then
# Possivel GNU Netcat \o/
echo "starting with gnu params"
nc -v -l -p $port -q 1 < client.c
else
# Possivel BSD Netcat :(
echo "starting with bsd params"
nc -l $port < client.c
fi
| true |
6e6df7da156a42549fa68af5b9afa2679e734400 | Shell | cjieming/jmtools | /sam2fastq.sh_ip | UTF-8 | 576 | 2.828125 | 3 | [] | no_license | #!/bin/bash
###############################
## USAGE
###############################
## sam2fastq.sh <samplename> <BAMFILE>
## --requires picard 2.9 SamToFastq
## --now is hardcoded picard and scratch paths
SNAME=$1
BAM=$2d
java \
-Xmx64g \
-Djava.io.tmpdir=/gne/scratch/HumGenet/${SNAME}/tmp \
-XX:ParallelGCThreads=... | true |
1fd8a6333ad79e5abe1e642d593c368f1e338e05 | Shell | stephenjwatkins/we-the-pixels | /deploy | UTF-8 | 838 | 3.21875 | 3 | [] | no_license | #!/bin/bash
echo "Running deployment script."
DATE=$(date +"%Y-%m-%dT%H-%M-%S")
BUNDLE_NAME="wtp.$DATE.tgz"
echo "Bundling WTP."
meteor bundle ./$BUNDLE_NAME
echo "SCPing to Staging."
scp -v ./$BUNDLE_NAME $1@stage.bitmo.co:/srv/bloojoo/wtp/releases
echo "Removing locally."
rm ./$BUNDLE_NAME
echo "Unbundling at S... | true |
f88238aad9bd18c7e32673f2343af0044430a81b | Shell | moukle/moocs | /06 -- DeepLearning - GAN Specialization/course_1/papers/rename_pdfs.sh | UTF-8 | 270 | 3.75 | 4 | [] | no_license | #!/bin/bash
for filename in ./*.pdf; do
proper_title=$(pdftitle -p $filename)
lower_title=${proper_title,,}
spaces_to_underscores=${lower_title// /_}
length=${#spaces_to_underscores}
if [[ $length > 0 ]] ; then
mv $filename $spaces_to_underscores.pdf
fi
done
| true |
23983dfddf26712c99e852271258692b072ed4b4 | Shell | roywong200200/dataSystem | /top.sh | UTF-8 | 402 | 2.6875 | 3 | [] | no_license | SERVERIP=$1
ID=$2
SERVERURL=$1":8002/postdata.html"
OUTPUT="$(top -bn2 | awk '/^top -/ { p=!p } { if (!p) print }' | grep 'Cpu(s)' | awk {'print $8'})"
echo "*********** This is Checking CPU utilization; Utilization : ${OUTPUT}"
# echo "${OUTPUT}"
wget -O- --post-data='[{"id":"'$ID'","value":"top","top":"'$OUTPUT'"... | true |
e426db26e72f9e707ea44c65e5c929a8ba5a0373 | Shell | seomin3/fabric | /ops.icehouse/install-horizon-server.sh | UTF-8 | 760 | 2.5625 | 3 | [] | no_license | #!/bin/bash
source ./include/fuction.sh
source ./include/controller.sh
###########################################
#
# horizon dashboard
#
##########################################
logg_big "horizon dashboard"
logg "install dashboard components"
install_pkgs 'memcached python-memcached mod_wsgi openstack-dashboard'
... | true |
19b4d8ba5cbb4cb28cce3db2f6d4be11cb9e8355 | Shell | mortenterhart/heroku-buildpack-wildfly | /test/compile_test.sh | UTF-8 | 2,950 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# shellcheck disable=SC1090
source "${BUILDPACK_HOME}/test/module_loader.sh"
import "wildfly"
import "assertions/capture_assertions"
import "assertions/file_assertions"
import "lib/deployment_helper"
### --- SETUP HOOKS ---
setUpOnce() {
echo "### setUpOnce ###"
TEST_CACHE="/tmp/test... | true |
e57bcc74bd7d70aed94d4c233ab9b4c1e3bd64d6 | Shell | jarvist/archer-bin | /launch_vasp.sh | UTF-8 | 6,783 | 3.5 | 4 | [] | no_license | #!/bin/sh
#Usage: ./launch_vasp.sh [Directories with vasp files]
# i.e. ./launch_vasp.sh ./ to submit job from PWD
#Change log
#Automagic .com CX1 (Imperial College London HPC) job submitter. A WIP.
#JMF 2007-09
#Bash is a stranger in an open car...
#2012-04-27: Finally got around to adding single CPU defaults (fo... | true |
0b57f47a3fb8f85dc55ea321684a75ba65db044f | Shell | n64decomp/007 | /extract_cdata.sh | UTF-8 | 2,336 | 3.6875 | 4 | [] | no_license | #!/bin/bash
if ! command -v md5sum &> /dev/null
then
echo "md5sum could not be found"
exit 1
fi
if ! command -v dd &> /dev/null
then
echo "dd could not be found"
exit 1
fi
if ! command -v dd &> /dev/null
then
echo "gzip could not be found"
exit 1
fi
ROM_FILENAME=
OUT_FILENAME=
ROM_MD5=
MD5... | true |
f05f8b443130218eba8003b835eb30ad1a4ce59d | Shell | TeoProt/Operating-Systems-Projects | /Projects/Project_1/function_sort_picture.sh | UTF-8 | 351 | 3.421875 | 3 | [] | no_license |
function sort_picture
cd $argv[1]
find . -name "*.jpg" | while read line;
echo $line
set folder (eval date -r $line +%Y/%B/%d)
echo $folder
if test -d $argv[2]/$folder
cp $line $argv[2]/$folder
else
mkdir -p $argv[2]/$folder
cp $line $argv[2]/$folder
end
end
end
sort_picture "path_to_be_sorte... | true |
46d3eea156ccca9a9346267c44b443ee9561bc19 | Shell | casanovg/itops-scripts | /virtual-machines/cloud/restore-mattermost-db.sh | UTF-8 | 2,544 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Restore Mattermost MySQL (MariaDB) databases and system files
# ..............................................................
# 2020-06-13 gustavo.casanova@gmail.com
SYSTEM_DIR="/opt/mattermost"
BACKUP_SYSTEM="/data/mattermost-data/backup-system"
BACKUP_DATABASE="/data/mattermost-data/backup-database"
BK... | true |
5cc689f766315b28683754c56c81b3806a6fc85f | Shell | douxing/dotfiles | /scripts/bootstrap.zsh | UTF-8 | 543 | 3.84375 | 4 | [] | no_license | #!/usr/bin/zsh
#
# bootstrap using zsh
PWDP=$(pwd -P)
link_file () {
local src=$1 dst=$2
ln -s "$src" "$dst"
}
# for file extension and base
# @see https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash
# @see https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expa... | true |
8f8d83d43f21f41ba693117bf78c35a830b039b0 | Shell | FizzyGalacticus/cards-against-humanity | /.husky/pre-commit | UTF-8 | 340 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
. "$(dirname $0)/_/husky.sh"
# Prevent commits to master
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "master" ]; then
echo -e "I can't let you do that Starfox...\nCommits to master are strictly prohibited"
exit 1
fi
# Lint & add files back to staging
node node_modules/.bin/fizzygalacti... | true |
a9f7959aa879d31bb3cdd8cb955fb197ec597db9 | Shell | xCrypt0r/Baekjoon | /src/15/15098.sh | UTF-8 | 485 | 2.921875 | 3 | [
"MIT"
] | permissive | : '
15098. No Duplicates
작성자: xCrypt0r
언어: Bash
사용 메모리: 18,284 KB
소요 시간: 8 ms
해결 날짜: 2021년 11월 13일
'
main() {
local words uniq=()
read -a words
for (( i = 0; i < ${#words[@]}; i++ )); do
for (( j = 0; j < ${#uniq[@]}; j++ )); do
if [[ ${words[i]} == ${uniq[j]} ]]; then
... | true |
80410d9cb8af42825dc60fcfe177ecc95990103d | Shell | arangodb/spring-boot-starter | /docker/find_active_endpoint.sh | UTF-8 | 271 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
COORDINATORS=("172.17.0.1:8529" "172.17.0.1:8539" "172.17.0.1:8549")
for a in ${COORDINATORS[*]} ; do
if curl -u root:test --silent --fail "http://$a"; then
echo "$a"
exit 0
fi
done
echo "Could not find any active endpoint!"
exit 1
| true |
ae64f552099e4034869b1341c75975b5f3a5ba95 | Shell | MKamnikar/i3-blocks-blocklets | /study-timew | UTF-8 | 1,464 | 3.953125 | 4 | [] | no_license | #!/bin/env bash
# Blocklet shows the amount of time I spent studying today.
# If there is ongoing study session currently active, it will
# display it's duration as well.
# Clicking behaviour: if study is active, cancel it, otherwise continue it.
# TODO: Add clicking commands. <13-08-20, Maks Kamnikar> #
# case $BLO... | true |
6c700a0667fde4db268fc9da58fc34aa4a37ccc3 | Shell | jjtainio/ifstat | /backend/ifstat.sh | UTF-8 | 916 | 3.71875 | 4 | [] | no_license | #!/bin/bash
#echo "output is"
#echo "timestamp|interface|tx kbps|rx kbps"
#echo ""
#
# run this script on system boot
#
mkdir -p /tmp/ifstat
declare -A R1
declare -A R2
declare -A T1
declare -A T2
while true
do
IFLIST=`ls -1 /sys/class/net/ |grep -v lo|grep -v eth0`
for if in $IFLIST; do
R1[$if]=`cat /sys/cl... | true |
d8d73c1da2d73cba2bdcd5af438d2c1783bf915d | Shell | ryoma-jp/tools | /signal_generator/batch/create_signal.sh | UTF-8 | 2,345 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #! /bin/bash
# optional arguments for signal generator:
# -h, --help show this help message and exit
# --type TYPE 波形の種類
# * 乱数 : random (default)
# * 正弦波 : sin
# * 余弦波 : cos
# * 三角波 : triangle
# ... | true |
78a0cbf12be1ca63e08ca1659545936d236864d2 | Shell | delkyd/alfheim_linux-PKGBUILDS | /reclass/PKGBUILD | UTF-8 | 1,293 | 2.671875 | 3 | [] | no_license | # Maintainer: Niels Abspoel <aboe76@gmail.com>
pkgname=reclass
pkgver=1.4.1
pkgrel=1
pkgdesc="hierarchical inventory backend for configuration management systems (salt, ansible, puppet)"
arch=('i686' 'x86_64')
url="http://reclass.pantsfullofunix.net/"
license=("PerlArtistic")
depends=('python2')
backup=('etc/reclass/re... | true |
c3807a4f05104d875b91f7137c1c504d37281621 | Shell | sclorg/mysql-container | /root-common/usr/share/container-scripts/mysql/pre-init/20-validate-variables.sh | UTF-8 | 3,284 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | function usage() {
[ $# == 1 ] && echo "error: $1"
echo "You must either specify the following environment variables:"
echo " MYSQL_USER (regex: '$mysql_identifier_regex')"
echo " MYSQL_PASSWORD (regex: '$mysql_password_regex')"
echo " MYSQL_DATABASE (regex: '$mysql_identifier_regex')"
echo "Or the follo... | true |
e0e8e81e9057416d8b74d1d6991399c30b0509f8 | Shell | LeeNCompanyInc/Waffle_Firmware | /imagegen/make_fw.sh | UTF-8 | 4,208 | 3.390625 | 3 | [] | no_license | #!/bin/bash
#set -e on
CURPATH=$(pwd)
REV=${REV:-"latest"}
REV=$(basename $(readlink -f $REV))
if [ -z "$REV" ]; then
echo "failed to find image builder directory."
exit 1
fi
BRAND=${BRAND:-"waffle"}
TARGET=${TARGET:-"ar71xx"}
SUBTARGET=${SUBTARGET:-"generic"}
FILES=${FILES:-"files"}
NO_FILES=${NO_FILES:-""}
PROFILE... | true |
6ae79112f3ac9ea836ab9237b51aca7473b3e38d | Shell | meta1203/VideoEditing | /2pass.sh | UTF-8 | 436 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
file="$1"
name="${file%.*}"
size=$2
length=`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$file"`
bitrate=`echo "${size}*8192/${length}-128" | bc`
bitrate=$bitrate"k"
ffmpeg -y -i "$file" -c:v libx264 -preset medium -b:v $bitrate -pass 1 -an -f mp4 /dev/null && \
f... | true |
1147820b2c25ccbfd8006958103f7a5c9ce5bea6 | Shell | d6y/CGP.jl | /scripts/local-spawn.sh | UTF-8 | 1,265 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Launch a number of Atari experiments on the current machine.
# There are (num games * num seeds) concurrent executions.
#
# Usage:
# $ cd CGP.jl
# $ ./scripts/local-spawn.sh > spawn-`date +%Y%m%dZ%H%M%S`.out
SEEDS=( 1 2 3 4 5 )
GAMES=( "space_invaders" )
MAX_FRAMES=18000 # Control number of frame... | true |
eb23597d169ef833a8e463f99ccfd63812790a8d | Shell | schanur/libbivalvia | /test/module/software_testing.sh | UTF-8 | 1,494 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit -o nounset -o pipefail
BIVALVIA_PATH="$(dirname "${BASH_SOURCE[0]}")/../../bivalvia"
source "${BIVALVIA_PATH}/software_testing.sh"
function print_abc {
echo "abc"
}
function do_nothing {
true
}
function echo_stdin {
echo "${1}"
}
test_string_equal_with_duration "" "" ... | true |
f0690ae868b2d73fd8755f2239efe49eb16d8b32 | Shell | Juan-cabrera-tw/nomad-instance | /modules/nomad/local/scripts/local-aws-cred.sh | UTF-8 | 859 | 2.75 | 3 | [] | no_license | cd modules/nomad/local/scripts
if ! [ -z "${AWS_ECR_PULL_ACCESSS_KEY}" ] && ! [ -z "${AWS_ECR_PULL_SECRET_KEY}" ]; then
echo "pipeline execution"
echo "AWS_ACCESS_KEY_ID=\"${AWS_ECR_PULL_ACCESSS_KEY}\"" >> aws.credentials
echo "AWS_SECRET_ACCESS_KEY=\"${AWS_ECR_PULL_SECRET_KEY}\"" >> aws.credentials
ec... | true |
7b862a42e2649c9c13e5bce22df52643864d01c2 | Shell | ThorMortensen/plusScripts | /+/nuc-scp | UTF-8 | 241 | 2.71875 | 3 | [] | no_license | #!/bin/bash
TARGET=$2
[[ $TARGET == port* ]] && PORT_NUMBER=$(echo $TARGET | tr -dc '0-9') && TARGET="support@192.168.$PORT_NUMBER.2"
auth-wrapper scp -o ProxyCommand="ssh -W %h:%p nuc" -o StrictHostKeyChecking=no -F none -A $1 $TARGET:$3
| true |
0468717e5d374d865c5c4da9b4fe3ca4b67e352d | Shell | PolymathNetwork/polymath-apps | /heroku.build | UTF-8 | 547 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh -e
usage() {
echo "OVERVIEW: Build apps according to BUILD_ENV value. Meant to be used for Heroku deployment"
exit
}
if [ "$1" = '-h' ] || [ "$1" = '--help' ]; then
usage
fi
echo $BUILD_ENV
if [ "$BUILD_ENV" = "issuer-web" ]; then
lerna run --parallel --stream --scope=@polymathnetwork/issuer... | true |
3366faf95b5809d601e5f36ce643edd530a1a096 | Shell | kstenerud/canonical-bin | /gitdiffstat.sh | UTF-8 | 1,195 | 3.8125 | 4 | [] | no_license | #!/bin/bash
set -eu
usage()
{
echo
}
show_help()
{
echo
}
show_commit_diffstats()
{
until_line=$1
until_commit=$2
until_import=$3
line_number=0
for commit in $(git log --oneline |awk '{print $1}' -); do
if [ $line_number -eq $until_line ]; then
return 0
fi
if [ $until_import -eq 1 ]; then
i... | true |
30738dab1f6f978642fc567346cf9c5a313650f9 | Shell | nikitasokolov25/Executable-Analyzer | /scripts/build_linux_linux.sh | UTF-8 | 201 | 3.0625 | 3 | [] | no_license | #!/bin/bash
if [ -d "../build/" ]
then
echo -e "\033[31mFound build fox folder\033[0m"
cd ../build/
cmake --build .
else
echo -e "\033[31mBUILD FOLDER DO NOT EXIST! RUN CONFIGURE FIRST\033[0m"
fi
| true |
0e80c4be2722d85e796384aa253f6e050d6e6a01 | Shell | olzv/rails-vue-template | /docker-entrypoint.sh | UTF-8 | 1,126 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# Created by https://github.com/olzv
set -e
if [[ "$DRY_RUN" == 'true' ]]; then
echo
echo "Running in DRY Mode!!!"
echo
echo "Cleaning up ruby gems"
rm -rf vendor/bundle/*
echo "Done."
echo
echo
echo "Cleaning up node_modules"
rm -rf node_modules
echo "Done."
echo
fi
bundle check... | true |
9533ba30b84cc151d662d6f045d8e852d55d7b5f | Shell | Ayannah/activemq-docker | /activemq-entrypoint.sh | UTF-8 | 258 | 3.4375 | 3 | [] | no_license | #!/bin/bash
set -e
run_activemq() {
chown -R activemq:activemq $ACTIVEMQ_BASE
exec gosu activemq /usr/local/bin/activemq ${@:-console}
}
case "$1" in
activemq)
shift 1
run_activemq "$@"
;;
*)
exec "$@"
esac
| true |
2d12b4c417d59ad6bd1448a7fed38eeb4abcb644 | Shell | nemo-packaging/qt5-ofono-git | /PKGBUILD | UTF-8 | 1,059 | 2.59375 | 3 | [] | no_license | # $Id$
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Contributor: Alexey Andreyev <aa13q@ya.ru>
# Maintainer: James Kittsmiller (AJSlye) <james@nulogicsystems.com>
_host="git.sailfishos.org"
_project=mer-core
_basename=ofono
_branch=master
_gitname=libq${_basename}
pkgname=qt5-$_basename-git
pkgver=0.99.r0.g5... | true |
6c7d0910970b19f5361858feffb85d80e276da55 | Shell | TileDB-Inc/TileDB-NYSE-Ingestor | /scripts/install-clangformat.sh | UTF-8 | 925 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
die() {
echo "$@" 1>&2 ; popd 2>/dev/null; exit 1
}
install_apt_pkg() {
add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main' &&
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
apt-get update -qq && apt-get install -qq -y clang-format-5.0
}
i... | true |
3d289e87b8a74e5ccb9e357abd529fe34e5e5c98 | Shell | itohdak/Competitive_Programming | /AtCoder/AHC/001/tools/run_all.sh | UTF-8 | 343 | 2.859375 | 3 | [] | no_license | #!/bin/bash
echo compiling...
g++atcoder ~/Competitive_Programming/AtCoder/AHC/001/A.cpp
for filename in `ls in`; do
echo processing $filename;
time cat ./in/$filename | ./a.out > /tmp/out.txt 2> /tmp/error.txt;
cargo run --release --bin vis ./in/$filename /tmp/out.txt;
gnome-open vis.html;
echo fi... | true |
2f6c17e38658fa79943cccdfd3c0c9c65b816449 | Shell | flavio-fernandes/odl-openstack-ci-1 | /tools/createFloat.sh | UTF-8 | 21,850 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
#
# This shell script will perform steps neutron and ovs would take in order to
# create a net, router, tenant vm and associate floating ip. With that, it
# will interact with a running Opendaylight as if it was a real Openstack
# environment.
# Ref: https://lists.opendaylight.org/pipermail/ovsdb-... | true |
27eb3c8e5cb966fc4b01147c08ba81376fc2126a | Shell | michielkleinnijenhuis/EM | /snippets/3DEM/scratch_restored_pipeline.sh | UTF-8 | 15,340 | 2.515625 | 3 | [] | no_license | export PATH=/data/ndcn-fmrib-water-brain/ndcn0180/anaconda2/bin:$PATH
# source activate scikit-image-devel_0.13
# conda install h5py scipy
# pip install nibabel
scriptdir="${HOME}/workspace/EM"
datadir="${DATA}/EM/M3/M3_S1_GNU/restored" && cd $datadir
dataset="m000"
xmax=5217
ymax=4460
xs=1000; ys=1000;
z=30; Z=460;
d... | true |
40efbe79d188d48efea10feb9ca57da27c05f78f | Shell | f0x52/dots | /zsh/.zshrc | UTF-8 | 2,023 | 2.53125 | 3 | [] | no_license | source ~/.localzsh
# export vars
typeset -U path
path+=("${HOME}/bin")
# enviroment
#export EDITOR="st -e nvim"
export EDITOR="nvim"
export ANSIBLE_NOCOWS=1
# aliases
alias :q="exit"
alias free="free -h"
alias grep="grep --color"
alias history="fc -l 1"
#alias ls="ls --color -F --group-directories-first"
# keys
type... | true |
54459e7c6a066685f90c5df8d823b64a5b62e0f7 | Shell | ophum/n0web | /src/proto-gen.sh | UTF-8 | 1,144 | 3.265625 | 3 | [] | no_license | #!/bin/bash
CLIENT_OUT_BASE_DIR=n0proto.ts
PROTOC_GEN_TS_PATH="$(yarn bin)/protoc-gen-ts"
mkdir -p ${CLIENT_OUT_BASE_DIR}
proto_dirs=`find ./vender/n0stack -type d | grep -v "\.git" | grep -v "test"`
for d in ${proto_dirs}
do
ls -1 $d/*.proto > /dev/null 2>&1
if [ "$?" = "0" ]; then
echo '=======================... | true |
a294a1963107782707a333ef721911a42b79d66c | Shell | appdesign1987/scripts | /Backup.sh | UTF-8 | 1,675 | 3.359375 | 3 | [] | no_license | #!/usr/bin/bash
#create folder for duplicity
mkdir /duplicity
#git clone duplicity backup
cd /duplicity && git clone https://github.com/zertrin/duplicity-backup.git
cd /duplicity/duplicity-backup && mv * ../
cd /duplicity && rm -R duplicity-backup
chmod +x /duplicity/duplicity-backup.sh
# check if we need to do a re... | true |
baafe6e4f46b53988734593b888ed2b6d2535bb4 | Shell | sssho/dotfiles | /.config/zsh/30_aliases.zsh | UTF-8 | 989 | 2.984375 | 3 | [] | no_license | if [[ -r "$XDG_CONFIG_HOME"/user/aliases ]]; then
source "$XDG_CONFIG_HOME"/user/aliases
fi
alias -g A="| awk '{ print }'"
alias -g L='|& less'
alias -g G='| grep --color=always'
alias -g S="| sed -e 's///g'"
alias -g X='| xargs'
alias -g H='--help | less'
if which bat &> /dev/null && which cachef &> /dev/null; t... | true |
976cbe9778c622d2206129e75890308c8a53045f | Shell | mmatschiner/kumara | /src/get_pairwise_distance.sh | UTF-8 | 1,891 | 2.984375 | 3 | [] | no_license | # m_matschiner Thu Apr 19 10:43:13 CEST 2018
# Make the output directory if it doesn't exist yet.
mkdir -p ../res/tables
# Set the input and output files.
infile="../data/fasta/chloroplast.aligned.gblocks.subset.nex"
table_all="../res/tables/dists.all.txt"
table_banks_and_solander="../res/tables/dists.banks_and_solan... | true |
c3f082ca833f67a647b92ed63fe5e851698b9afb | Shell | crg8055/USP-Lab-5th-Sem | /Week 4/2. Sum_of_even_no.sh | UTF-8 | 107 | 2.8125 | 3 | [] | no_license | echo "enter limit"
read n
i=2
while [ $i -lt $n ]
do
sum=$((sum+i))
i=$((i+2))
done
echo "sum:"$sum | true |
2a516a5d7b32fe4fb2212e74c9a05fb187235fc9 | Shell | mehuljn/crossover_project | /mybb_install/install.sh | UTF-8 | 1,084 | 3.03125 | 3 | [] | no_license | #!/bin/bash
CONFIG="./mybb_config"
ORIG="./mybb"
WWWROOT="/var/www/html"
# Clean-up and copy files.
cp -r "$ORIG"/* "$WWWROOT"/
sed -e "s/__MYBB_DOMAINURL__/${__MYBB_DOMAINURL__}/g" "${CONFIG}/settings.php" > "${WWWROOT}/inc/settings.php"
sed -e "s/__MYBB_DATABASE_HOST__/${__MYBB_DATABASE_HOST__}/g" \
-e "s/__... | true |
14c06a51121a0ef91c252c28c0501b46f521e323 | Shell | psnewer/leisu | /src/db/run_refresh.sh | UTF-8 | 474 | 2.703125 | 3 | [] | no_license | #!/bin/bash
cd `dirname $0`
rm ids.json
echo "{}" > ids.json
function checkError()
{
if [ $? -eq 0 ]
then
echo "$1 success"
else
echo "$1 failed"
exit 0
fi
}
python matchDB.py
checkError "matchDB"
python oddsDB.py
checkError "oddsDB"
cd /Users/miller/Documents/workspace/lei... | true |
49e94630762a5badf1453d2fc2278c89d697b7a1 | Shell | khoadoan/system-utils | /hadoop-utils/GetLogs.sh | UTF-8 | 1,257 | 3.890625 | 4 | [] | no_license | #!/bin/bash
. BashLib.sh || exit 1
. HadoopLib.sh || exit 1
jobId=${1:?bad or missing job id}
if [[ $jobId =~ ^task ]]
then
taskId=${jobId}
jobId=${taskId/task/job}
jobId=${jobId/_[mr]_[0-9]*/}
logMsg "jobId: ${jobId}"
logMsg "taskId: ${taskId}"
fi
srcDir=/mnt/var/log/hadoop/userlogs
tgtDir=/var/tmp/${jobId}
if... | true |
f1d55e14366ed3f7ff493d96653137c7cf47d585 | Shell | treykee/envgen-scripts | /preClone.sh | UTF-8 | 2,452 | 3.890625 | 4 | [] | no_license | #!/bin/bash
# Init
# Make sure only root can run our script
if [[ $EUID -ne 0 ]];
then
printf "This script must be run as root" 1>&2
exit 1
else
# Set variables
logServices=(rsyslog auditd)
logDir="/var/log"
logFiles=(/var/log/audit/audit.log /var/log/wtmp /var/log/lastlog /var/log/grubby /var/log... | true |
90d067923f17d035c93d4d2307e69005bcccf281 | Shell | VanirLab/vanir-gui-agent-linux | /appvm-scripts/etc/init.d/vanir-gui-agent | UTF-8 | 765 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# chkconfig: 345 90 90
# description: Starts Vanir GUI agent
#
# Source function library.
. /etc/rc.d/init.d/functions
start()
{
echo -n $"Starting Vanir GUI agent:"
rm -f /tmp/vanir-session-env /tmp/vanir-session-waiter
# start console-kit-daemon
/usr/bin/ck-list-sessions > /dev/null 2>&1... | true |
707b0de50c3102fbc703ada6af63daa44309d885 | Shell | Eason0210/scripts | /dfn | UTF-8 | 855 | 3.859375 | 4 | [] | no_license | #!/bin/bash
if [[ -n "$1" ]]; then
VESTING=$1
SOLD=$2
fi
function get_price() {
curl -s "https://api.coinbase.com/v2/prices/${1}-USD/sell" \
| jq -r '.data.amount'
}
function show_price() {
printf "$1 $%'.02f" $(get_price $1)
}
show_price "ADA"; printf "\n"
show_price "ETH"; printf "\n"
show... | true |
1fa8613b60d935290abe7e73137d47f8d2c5cafd | Shell | eraserhd/suggest-commit | /prepare-commit-msg | UTF-8 | 508 | 3.875 | 4 | [] | no_license | #!/bin/sh
# When the second (or third) arguments are present, we are doing something
# weird (such as merging or amending) and we don't want to change or suggest a
# commit message.
if [ $# != 1 ]
then
exit 0
fi
suggestion=`git diff -b --cached |suggest-commit`
if [ $? -ne 0 ]
then
# suggest-commit failed. The use... | true |
ade91adae67683f710330e5832fd80705a82cecd | Shell | ArroTahur/skriptimine | /praks7/yl1 | UTF-8 | 329 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#
echo -n "Kui vana sa oled? "
read vanus
if test $vanus -gt 0 -a $vanus -lt 11
then
echo "Oled laps"
elif test $vanus -ge 11 -a $vanus -lt 18
then
echo "Oled nooruk"
elif test $vanus -ge 18 -a $vanus -lt 63
then
echo "Oled t2iskasvanu"
elif test $vanus -ge 63
then
echo "oled seenior"
else
echo "vigane si... | true |
46595608cd5a18e596246ab0323716b81d052518 | Shell | bioconda/bioconda-recipes | /recipes/metawatt/build.sh | UTF-8 | 623 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
PREFIX=$CONDA_PREFIX
DESTDIR=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM/
mkdir -p $PREFIX/bin/
mkdir -p $DESTDIR
cp -r ./dist/* $DESTDIR
cp -r ./databases/ $DESTDIR
# companion script to run MetaWatt
echo '#!/usr/bin/env bash' > $DESTDIR/metawatt
echo "WD=\"$DESTDIR\"" >> $DESTDIR/metawatt
echo ... | true |
685e81f9135822f58303e83f7cab50eb0d3de0db | Shell | godaddy/asherah | /samples/go/aws/lambda/3-invoke.sh | UTF-8 | 2,327 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
FUNCTION_NAME=$(aws cloudformation describe-stack-resource \
--stack-name sample-lambda-go \
--logical-resource-id "function" \
--query 'StackResourceDetail.PhysicalResourceId' \
--output text)
encrypt() {
local partition=${1:-"partition-1"}
local raw_payload=${2:-"mysupersecrettex... | true |
6cccd2f9ee74b06d0349c505a140be616941f8ab | Shell | cheeteh/MySQLBackup | /Incremental/inc_db_backup_31.sh | UTF-8 | 9,414 | 3.328125 | 3 | [] | no_license | # #################################################################################################
# File $URL: file:///var/svn/fw-repo/branches/4.2.7/Iguazu/Iguazu-Web/src/main/webapp/WEB-INF/bin/inc_db_backup_31.sh $
# Revision $Revision: 14488 $
# Author $Author: randy $
# Last Revised $Date: ... | true |
60bc7ea63636abfedecc59d52a6fc3c97c2dac0a | Shell | jmunozti/KubernetesWithTerraform | /shell_script/deployApps.sh | UTF-8 | 986 | 3.03125 | 3 | [] | no_license | #!/bin/bash
set -e
echo "Begin"
echo "============================================"
#Deploying an app
rm -rf /home/ubuntu/KubernetesWithTerraform
git clone https://github.com/jmunozti/KubernetesWithTerraform.git
echo "Deploying an app"
cd /home/ubuntu/KubernetesWithTerraform/app/
#kubectl delete deploy/hello-app sv... | true |
e43e5517101e816053e7c02fe6c37ad0d1dd68a7 | Shell | gitter-badger/quinoa | /script/update_doc.sh | UTF-8 | 718 | 2.734375 | 3 | [
"BSD-3-Clause"
] | permissive | ################################################################################
#
# \file script/update_doc.sh
# \author J. Bakosi
# \date Tue 07 Jul 2015 06:19:16 AM MDT
# \copyright 2012-2015, Jozsef Bakosi.
# \brief Update documentation and upload to github pages
#
###############################... | true |
e56853bbec333f580af16b282163f66293f9fce7 | Shell | petronny/aur3-mirror | /gmpc-lyricwiki-git/PKGBUILD | UTF-8 | 1,103 | 2.78125 | 3 | [] | no_license | #Submitter: Madek <gonzalosegueñ@gmail.com>
#Maintainer: sysrmr <sysrmr qt gmail dot com>
pkgname=gmpc-lyricwiki-git
provides=('gmpc-lyricwiki')
conflicts=('gmpc-lyricwiki' 'gmpc-lyricwiki-svn')
pkgver=20120830
pkgrel=1
pkgdesc="A plugin for gmpc that obtains lyrics from lyricwiki"
url="http://gmpc.wikia.com/wiki/GMP... | true |
7c8c5e16161e0b850b8d3e67d1f90799fae9733f | Shell | liyustar/lyx_conf | /home_bin/xenc | UTF-8 | 377 | 4.09375 | 4 | [] | no_license | #!/bin/bash
if [ -z $1 ]; then
echo "usage: xenc <file | directory> [out]"
exit
fi
FILE_PATH=$1
FILE=$(basename $FILE_PATH)
if [ -z $2 ]; then
OUTFILE=$FILE.des
else
OUTFILE=$2
fi
# 将文件打包成tar格式
tar -cf $FILE.tar $FILE_PATH
# 将tar格式的文件用DES加密
openssl enc -e -des -in $FILE.tar -out $OUTFILE
# 删除中间文件
rm... | true |
e0e8a01d535cf6a0ba6e9118b042cb389e0447da | Shell | gedomagno/ovirt-engine-sdk-ruby | /automation/check-patch.sh | UTF-8 | 794 | 3.34375 | 3 | [] | no_license | #!/bin/sh -ex
# Create a settings file that uses the our artifactory server as
# proxy for all repositories:
settings="$(pwd)/settings.xml"
cat > "${settings}" <<.
<settings>
<mirrors>
<mirror>
<id>ovirt-artifactory</id>
<url>http://artifactory.ovirt.org/artifactory/ovirt-mirror</url>
<mirrorO... | true |
db95fe035dd6cf7b51bc82735cfbfc023375ec51 | Shell | tnakaicode/jburkardt | /r8row/r8row.sh | UTF-8 | 236 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#
cp r8row.hpp /$HOME/include
#
g++ -c -I /$HOME/include r8row.cpp
if [ $? -ne 0 ]; then
echo "Errors compiling r8row.cpp"
exit
fi
#
mv r8row.o ~/libcpp/$ARCH/r8row.o
#
echo "Library installed as ~/libcpp/$ARCH/r8row.o"
| true |
42ff074f7da2e1de0b975db83fc16deb35458941 | Shell | xapix-io/httpbin | /signal-listener.sh | UTF-8 | 643 | 3.625 | 4 | [
"ISC"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
# A wrapper around /entrypoint.sh to trap the SIGINT signal (Ctrl+C) and forwards it to the mysql daemon
# In other words : traps SIGINT and SIGTERM signals and forwards them to the child process as SIGTERM signals
signalListener() {
"$@" &
pid="$!"
trap "echo 'Stoppi... | true |
0dfdfa84b2facb197f929219de6ca72854ec6c60 | Shell | openbmc/openbmc | /meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils/ampere_power_on_driver_binder.sh | UTF-8 | 1,227 | 3.53125 | 4 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
# Each driver include driver name and driver path
declare -a DRIVER_NAMEs=(
"107-0070"
"100-0071"
"101-0071"
"102-0071"
"103-0071"
"104-0071"
"100-0050"
"101-0050"
"102-0050"
"100-004c"
"101-004c"
"102-004c"
)
# Driver path should include / at the end
decl... | true |
fd3b9a07cc196d8a2fbb28f964306b300656c82f | Shell | downspot/terraform-ec2-instance-daemontools | /destroy.sh | UTF-8 | 450 | 3.078125 | 3 | [] | no_license | #!/bin/sh
if (( $# != 1 )); then
echo "Usage: ${0} <preprod|prod>"
exit 1
fi
for i in clicks_trainer joiner recs_trainer ; do
terraform workspace list | grep example-contextual-bandit-${1}-${i} > /dev/null
if (( $? != 0 )); then
terraform workspace new example-contextual-bandit-${1}-... | true |
2a9dbed2b39233b3a9476f67677a730f492caa2d | Shell | alanbartels/geo_tools | /time_series/gen_mean_directory.sh | UTF-8 | 3,821 | 3.765625 | 4 | [] | no_license | #!/bin/bash
echo "Starting processing at: "`date`
img_dir=$1
out_dir=$2
tmp_dir=${out_dir}/tmp/
if [ ! -d "${tmp_dir}" ];
then
mkdir -p ${tmp_dir}
fi
img_list=(`find ${img_dir} -maxdepth 1 -type f -name "*.tif"`)
# create the temporary processing files that will be added to get average
# this is necessary beca... | true |
e0dccb052581a7e9af259e757f407150a59a6d06 | Shell | ZhaoHuiXin/Shell | /chapter04/t2.sh | UTF-8 | 320 | 3.640625 | 4 | [] | no_license | if [ $# -ne 2 ] #<==如果执行传参个数不等于2
then
echo "USAGE:/bin/sh $0 arg1 arg2" #<==给用户提示正确用法,$0打印脚本名字及路径
exit 1 #<==如果不满足要求,退出脚本,返回值为1
fi
echo $1 $2 #<==若参数满足要求,则打印$1和$2获取到的传参的字符串
| true |
9d37c694bde79b94392a7db34a4a61cafd4293b4 | Shell | alincc/domibus-docker | /dockerbuild/build/domibus/domibus-tomcat/install-domibus.sh | UTF-8 | 2,954 | 3.703125 | 4 | [] | no_license | #!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
# Set DEBUG TO 1 to activate debugging
DEBUG=0
echo "--------------CATALINA_HOME: " ${CATALINA_HOME}
echo "--------------DOMIBUS_CONFIG_LOCATION: ${DOMIBUS_CONFIG_LOCATION}"
echo "--------------DOCKER_DOMINSTALL: ${DOCKER_DOMINSTALL}"
echo "--------------DOC... | true |
dca38999db77249ece2213ff93b7be2b6848451f | Shell | JustinChristensen/dotfiles | /linux/bin/swaybar_status.sh | UTF-8 | 1,052 | 3.859375 | 4 | [] | no_license | #!/usr/bin/env bash
volume_status() {
local status='Unavailable'
local mute=$(pactl get-sink-mute @DEFAULT_SINK@)
local reg="\s+[0-9]+\s+\/\s+([0-9]+%)\s+\/\s+-?[0-9.]+\sdB"
if [[ "$mute" == "Mute: yes" ]]; then
status="Muted"
else
local vol=$(pactl get-sink-volume @DEFAULT_SINK@... | true |
9d0e78c95cfdeab82a203cd2c741c8658c850edc | Shell | justin-lyon/sfdx-bin | /bin/lib/sfdx.sh | UTF-8 | 2,682 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# Import utilities
. ./scripts/lib/utilities.sh
# Print SFDX Info
get_info () {
echo "*** Print SFDX Info"
sfdx --version
sfdx plugins --core
sfdx force:org:list
}
# Login to a Sandbox by JWT
jwt_login () {
echo "*** Logging in to $4 as $3 at $5."
sfdx force:auth:jwt:grant -d \
--clientid... | true |
2a5cf4d9dcf2842edc62f108a366ca9601249eca | Shell | j-dr/l-addgals | /src/scripts/make_finishing_files.sh | UTF-8 | 7,408 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#variables that get passed
OUTPATH=$1
NAME=$2
SHEARBASE=$3
FINAL_NAME=$4
SCRIPTS_DIR=${OUTPATH}/scripts
mkdir -p $SCRIPTS_DIR
#the shapes file
SHAPES_TEMPLATE=make_shapes_template.sh
SHAPES_EXE=${SCRIPTS_DIR}/make_shapes.sh
RUN_SHAPES_TEMPLATE=run_shapes.sh
RUN_SHAPES_EXE=${SCRIPTS_DIR}/run_shapes.sh
RUN... | true |
6966f55bbf0e540c876d73b71b1ad468104c30fa | Shell | cipriantruica/TM_TESTS | /run.sh | UTF-8 | 338 | 2.921875 | 3 | [] | no_license | #!/bin/bash
NUM_ITER=2
NUM_TOPICS_NEWS=20
NUM_CORES=1
FILE_NAME_CONF_CLEAN="dataset/"
OUTPUT_FILE="output/"
# change the compiler
#PyCC="python"
PyCC="/usr/share/anaconda/bin/python"
for i in `seq 1 5`
do
$PyCC tm_all_default.py $FILE_NAME_CONF_CLEAN $NUM_TOPICS_NEWS $NUM_ITER $NUM_CORES > $OUTPUT_FILE"news_cle... | true |
61690ba9d2fd9f9cfcdc0006bf1d02aaadf547c6 | Shell | punisherVX/kfk-setup | /code/setup/setup-3-tools.sh | UTF-8 | 4,204 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
sudo apt-get update
# Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key ad... | true |
1916a8b7f7cb701cdd1058ade2abbc6aa5f13930 | Shell | shellwedance/rook | /tests/scripts/create-bluestore-partitions.sh | UTF-8 | 1,226 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
#############
# VARIABLES #
#############
: "${BLUESTORE_TYPE:=${2}}"
: "${DISK:=${1}}"
SIZE=2048M
#############
# FUNCTIONS #
#############
function wipe_disk {
sudo sgdisk --zap-all --clear --mbrtogpt -g -- "$DISK"
sudo dd if=/dev/zero of="$DISK" bs=1M count=10
sudo parted -s "$DIS... | true |
1cfd8b74ca5146d7196c0079fad8c3413ad332fc | Shell | m-1-k-3/wick | /formulas/dnsmasq/files/dnsmasq | UTF-8 | 359 | 3.015625 | 3 | [
"MIT-0",
"Apache-2.0"
] | permissive | #!/usr/bin/env sh
# Force 127.0.0.1 to be prepended to the list of new domain name servers.
# This works around a bug in dhclient.
#
# See: http://www.fidian.com/problems-only-tyler-has/dhclient-not-honoring-prepend-config
#
# This is sh not Bash!
if [ -n "$new_domain_name_servers" ]; then
new_domain_name_servers="... | true |
2fec71a6f2fe23bec964308f7bcebb5ab9bd1518 | Shell | tinslice/docker-postgres | /fs/scripts/prepare-env-and-run.sh | UTF-8 | 2,695 | 3.75 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
_log() {
echo "`date +"%Y-%m-%d %T %Z"` ${1}"
}
export PG_SCRIPTS_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export PATH=/usr/lib/postgresql/${PG_VERSION}/bin:$PATH
PG_CONFIG="/etc/postgresql/${PG_VERSION}/main/postgresql.conf"
PG_DATA_PATH="/var/lib/postg... | true |
913cf1ed093113611142ebc8dde7714316f1a082 | Shell | fayizk1/go-carbon | /deploy/go-carbon.init.centos | UTF-8 | 1,836 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# chkconfig: - 91 35
# description: Starts and stops the go-carbon daemon
#
# pidfile: /var/run/go-carbon.pid
# config: /usr/local/etc/carbon.conf
carbon="/usr/local/bin/go-carbon"
prog=$(basename $carbon)
pidfile="/var/run/go-carbon.pid"
config="/usr/local/etc/go-carbon.conf"
# Source function library.
... | true |
0982a9a282bcca133e39804a2c74cb171d072dfa | Shell | koko004/screenfetch-space | /screenfetch-install-spaceshow.sh | UTF-8 | 836 | 2.671875 | 3 | [] | no_license | apt-get install screenfetch
totaldisk=$(df -h -x aufs -x tmpfs -x overlay -x drvfs --total 2>/dev/null | tail -1)
echo $totaldisk
disktotal=$(awk '{print $2}' <<< "${totaldisk}")
diskused=$(awk '{print $3}' <<< "${totaldisk}")
diskusedper=$... | true |
79b9f91b79100a065d1763879013a520fdde7ee2 | Shell | gmcvicker/MHC | /sh/get_imgt_allele_seqs.sh | UTF-8 | 276 | 3.125 | 3 | [] | no_license | #!/bin/bash
GENE_FILE=$HOME/data/IMGT/gene_names.txt
SCRIPT=$HOME/proj/MHC/python/get_imgt_alleles.py
cat $GENE_FILE | while read gene;
do
OUT_DIR=$HOME/data/IMGT/extracted/$gene
mkdir -p $OUT_DIR
echo $gene >&2
python $SCRIPT --gene $gene $OUT_DIR
done
| true |
bee9ac4750859dfa46eeb0965d58f39ee6c2a561 | Shell | tiger31/i3blocks-arrows | /i3arrows | UTF-8 | 2,378 | 3.875 | 4 | [] | no_license | #!/bin/zsh
while getopts ":c:o:" opt; do
case $opt in
c) file="$OPTARG"
;;
o) out="$OPTARG"
;;
\?) echo "Invalid option -$OPTARG" >&2
;;
esac
done
#Function that calculates actula backgroud of block and adds param into config
calc() {
#If we've found background param in this block, then w... | true |
1791df1941fb3adc0c2782d320700be669f102d3 | Shell | zilpeakshay/awesome-bash-commands | /box.sh | UTF-8 | 1,368 | 2.578125 | 3 | [
"CC0-1.0"
] | permissive | #!/usr/bin/env bash
echo "┌──────────────────────────────────────────────┐"
sleep 0.1
echo "│ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │"
sleep 0.1
echo "│ ░░░░ ╔═══╗ ░░░░░ AWESOME BASH COMMANDS ░░░░░ │"
sleep 0.1
echo "│ ░░░░ ╚═╦═╝ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │"
sleep 0.1
echo "│ ░░░ ╒══╩══╕ ░░░░░░░░░░░░░░░... | true |
ad5aa55c7964926f0191e87918536e2c16d2556b | Shell | mahesh-mahajan/403Forbidden | /403ForbiddenFix.sh | UTF-8 | 326 | 3.515625 | 4 | [] | no_license | #!/bin/bash
dir=/home/somevhostdomain.com/htdocs/;
while true; do
# the exit case when we get to the top level directory /
if [ -z "$dir" -o "$dir" = "/" ]; then
break;
fi;
echo chmodding o+x $dir;
# make the directory exectuable (openable) by others
chmod o+x $dir;
# go 'up' a directory
dir=`dirname $dir`; ... | true |
f3220393b17c2f7dc6ca9d784a7776839873ed94 | Shell | missingcharacter/janky-stuff | /bash/macos/mount_ntfs/mount_ntfs.sh | UTF-8 | 966 | 3.953125 | 4 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
function 10_chars() {
echo "${RANDOM}" | md5sum | head -c 10
}
function is_ntfs_readonly() {
local DISK="${1}"
local RET_VALUE='1'
local DISK_INFO
DISK_INFO="$(diskutil info "${DISK}")"
if grep -q 'File System Personality: NTFS' <<<"${DISK_INFO}" \
... | true |
b814c851e1c53fcfe2531c292a4d1ba02832a1c8 | Shell | lucasponce/hawkular-alerts-demo | /04_agent-process.sh | UTF-8 | 707 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | create_msg () {
TIMESTAMP=$(date +%s%3N)
VALUE="DOWN"
if [ $1 -gt 0 ]
then
VALUE="UP"
fi
MSG="["
MSG="$MSG{"
MSG="$MSG\"id\":\"demo-avail\","
MSG="$MSG\"timestamp\":$TIMESTAMP,"
MSG="$MSG\"value\":\"$VALUE\""
MSG="$MSG}"
MSG="$MSG]"
echo $MSG
}
send_data () {
MSG=$(create_msg $1)
TENANT="my-organiza... | true |
0a8f31c65e6d8bcdd7d9fbd18b02a3089bef5c50 | Shell | laaners/progetto-labiagi_pick_e_delivery | /catkin_ws/src/srrg_cmake_modules/ci_scripts/append_gtest_library.sh | UTF-8 | 1,628 | 3.65625 | 4 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive |
#!/bin/bash
##### tg This script is added in order to run tests on multiple package in the same git repo
##### libgtest.so is appended to the artifacts, this is necessary because of catkin build
##### have individual build folder for each package
#ds check input parameters
if [ "$#" -ne 2 ]; then
echo "ERROR: cal... | true |
65beb3f8874e33254efe77294172238df5177ed4 | Shell | saidiahd/OpenERP_Cloud_Configuration | /tools/kickstart/FirstBootMySqlConfigurations.sh | UTF-8 | 753 | 3.09375 | 3 | [] | no_license | #!/bin/sh
#
sudo apt-get -y update
sudo apt-get -y upgrade
#
export INS="/home/yourself/installers"
export PRG="/home/yourself/programs"
export FAILURE_NOTICE="______Looks_like_it_failed______"
#
export SRV_CONFIG="https://raw.github.com/martinhbramwell/OpenERP_Cloud_Configuration/master"
#
export ADMIN_USERZ_UID=your... | true |
0685cfbcc549b25b7c8b855cc9b3a5a7a98474af | Shell | ariesunitrends/dotfiles | /link.sh | UTF-8 | 254 | 3.046875 | 3 | [] | no_license | #!/bin/sh -e
if [ $# != 0 ]
then
exit 1
fi
BIN=$(dirname $(readlink -f $0))
ln -sf $BIN/bash/bashrc ~/.bashrc
ln -sf $BIN/bash/bash_aliases ~/.bash_aliases
ln -sf $BIN/vim/vimrc ~/.vimrc
ln -sf $BIN/ssh/config ~/.ssh/config
chmod 0600 ~/.ssh/config
| true |
9b8cd8e66bc2f767b49b29ec4b930f71caccaca7 | Shell | simonhicks/csv-utils | /bin/untable | UTF-8 | 660 | 4.03125 | 4 | [] | no_license | #!/bin/sh
show_help() {
echo ""
echo "USAGE: $(basename $0) [-h] [-w sep] [-s sep]"
echo ""
echo " w sep : the whitespace seperator used in the input table (default: \s)"
echo " s sep : the seperator to use in the output (default: ,)"
echo " h : print this help text"
ech... | true |
833662d8c030783f1fa5592c8f2f74b0e00c7236 | Shell | falcon-computing/genome-release | /test/regression/regression_test/2_bqsr.bats | UTF-8 | 1,134 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats
load ../../lib/common
helper_normalRun() {
#"Normal run for BQSR"
local -r id="$1"
local -r tag="$2"
run ${FCSBIN} baserecal \
-r ${ref_genome} \
-i $baseline_dir/bwa/${id}_marked.bam \
-o ${id}_BQSR.table \
--knownSites $db138_SNPs -f -L ${illumina_capture} ${tag}
echo ... | true |
3bfb0862dd931978f599e2eeb4b5f3c6e59922a9 | Shell | BaiChaYuLu/host_manager | /other /服务器安全脚本–适用于redhat centos.sh | UTF-8 | 10,673 | 3.34375 | 3 | [] | no_license | #!/bin/sh
###################################################################################
# Security Script for RedHat Linux
# Author:51iker
# Date:2008/12/23
#
##################################################################################
#—————————–Define Variable————————————-
export LANG=en
DATETIME=`date ... | true |
4da9df23ddbe9415b24c8bde286ce97118446037 | Shell | kjamison/Pipelines | /DiffusionTractography/scripts/MergeDotMat3.sh | UTF-8 | 3,168 | 3.1875 | 3 | [] | no_license | #!/bin/bash
set -e
echo -e "\n START: MergeDotMat3"
#bindir=/home/stam/fsldev/ptx2 #Eventually FSLDIR (use custom probtrackx2 and fdt_matrix_merge for now)
bindir=${HCPPIPEDIR}/global/binaries
Caret7_command=${CARET7DIR}/wb_command
if [ "$5" == "" ];then
echo ""
echo "usage: $0 <StudyFolder> <Subject> <count>... | true |
2762cd8d8a2a90cbbfa3d385892a9094edd8f087 | Shell | jcleary/blade | /app/views/projects/_script.html.erb | UTF-8 | 890 | 3.296875 | 3 | [] | no_license | #!/bin/bash
REPO=git@github.com:CorporateRewards/myrewards.git
FOLDER=target_app
BRANCH=feature/faster_tests
BLADE_API=<%= api_project_builds_url(@project) %>
function header {
echo " ---------------------------------"
echo " Blade Runner"
echo " ---------------------------------"
}
function setup_docker {
d... | true |
c69b7a3dd94e0c6ac07e072b7f51f8c4ade7fa5c | Shell | Zeal0usD/SSHAudit | /sshaudit.sh | UTF-8 | 1,752 | 4.34375 | 4 | [] | no_license | #!/bin/bash
##
# SSH internal audit
# - Check authentication logs for failed logins
# - Check user sudo command history
# - Check bash history
# - Panic button to kill user session
##
server_name=$(hostname)
function flogin_check() {
echo ""
echo "Failed logins on ${server_name} are: "
egrep "Failed|F... | true |
2543ebc4aee3db2abfd3073ef60f74283a737946 | Shell | bgeltz/dotfiles | /bin/bin/dates.sh | UTF-8 | 368 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
BIRTHDAYS=${HOME}/.gcal/birthdays
VIP_DATES=${HOME}/.gcal/brgdates
# Display birthdays and holidays
gcal -f ${BIRTHDAYS} --heading-text="Birthdays:" --starting-day=Monday --with-week-number --iso-week-number=yes -q US_OR -n- .+
# Display VIP dates
gcal -f ${VIP_DATES} --heading-text="2020:" -u 2020
gcal ... | true |
46dde5974043906096c94913afdf0e4c86449919 | Shell | jn7163/apps | /kpmcore/PKGBUILD | UTF-8 | 1,097 | 2.53125 | 3 | [] | no_license |
pkgname=kpmcore
pkgver=3.0.3
_commit=cbe21e7ef974fe3c95ef418bbf098af716e5ff33
pkgrel=1
pkgdesc="Library for managing partitions. Common code for KDE Partition Manager and other projects."
arch=('x86_64')
url="https://github.com/KDE/kpmcore"
license=('GPL2')
depends=('ki18n' 'kio' 'kiconthemes' 'kservice' 'libatasmart'... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.