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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d9e3edf7260b259a9630dae33e79a383a55317aa | Shell | elastic/elasticsearch-js | /.buildkite/functions/cleanup.sh | UTF-8 | 1,952 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Shared cleanup routines between different steps
#
# Please source .ci/functions/imports.sh as a whole not just this file
#
# Version 1.0.0
# - Initial version after refactor
function cleanup_volume {
if [[ "$(docker volume ls -q -f name=$1)" ]]; then
echo -e "\033[34;1mINFO:\033[0m Removi... | true |
745c1d339920094fd8a81da0cc68d80b414f17aa | Shell | patriotyk/heroku-buildpack-postfix | /bin/compile | UTF-8 | 840 | 2.671875 | 3 | [] | no_license | #!/bin/sh -e
wget http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.4.6.tar.gz
tar -xf postfix-3.4.6.tar.gz
POSTFIX=$HOME/postfix
mkdir -p $POSTFIX/etc
ls -la
cp -r $1/configs/postfix $POSTFIX/etc
cd postfix-3.4.6
# make makefiles pie=yes shared=no dynamicmaps=no config_directory=$POSTFIX/etc... | true |
35c71b709fe9d538f1356587a1eff5c9835f2a54 | Shell | EdgeJ/packer-clearos-6 | /scripts/install-guest-additions.sh | UTF-8 | 338 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash -eux
# install guest additions
TEMP_DIR=$(mktemp -d)
KERN_DIR=/usr/src/kernels/$(uname -r)/build
export KERN_DIR
yum -y install kernel-devel
mount -t iso9660 -o loop /root/VBoxGuestAdditions.iso ${TEMP_DIR}
${TEMP_DIR}/VBoxLinuxAdditions.run
umount ${TEMP_DIR}
rm -rf /root/VBoxGuestAdditions.iso
yum -y re... | true |
5487c024c85631685525e466685bb5082f8c4e64 | Shell | Evidlo/scripts | /passmenu | UTF-8 | 1,524 | 3.875 | 4 | [] | no_license | #!/usr/bin/env bash
## Evan Widloski - 2016-01-05
## Based on the passmenu script
# Usage:
# passmenu : copy first line of password file to clipboard
# passmenu --type : type out first line of password file
# passmenu --type --tabbed : type out second line of password file (user... | true |
eedfdadc7e1c8ee51f8962590463a535ebc584d4 | Shell | platypython/qcrypt | /qcrypt | UTF-8 | 773 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# ------------------------------------------------------------------
# [Derrick] qcrypt
# encrypt files with a random password easily with
# gpg.
# ------------------------------------------------------------------
#VERSION=0.1.0
echoerr() { echo "$@" 1>&2; }
FILE=$1
gpg_path=$(which ... | true |
6aca002557954d54f32c5e9fe2f203acc19295b4 | Shell | fleadope/nextcloud-fpm | /14/rootfs/etc/service.d/nextcloud/run | UTF-8 | 820 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# set -e : Exit the script if any statement returns a non-true return value.
set -e
# Redirect STDERR to STDOUT
exec 2>&1
# Make environnement variables accessibles
[ -r /etc/envvars ] && . /etc/envvars
# Wait for database connection
if [ -n "$MYSQL_HOST" ]; then
host=$(echo $MYSQL_HOST | cut -d ":" ... | true |
1cb4cc721ce33c36c5124249c2e9c6a2f7fa97bd | Shell | tjtoml/dotfiles | /.i3/chromium.sh | UTF-8 | 164 | 2.6875 | 3 | [] | no_license | #!/bin/bash
wincount="$(i3-msg -t get_tree | grep -c Chromium)"
if [ "$wincount" -gt "0" ]; then
i3-msg "[class=Chromium] focus"
else
i3-msg "exec chromium"
fi
| true |
7d52e1d4802ce33454bb225af7c4db1cba60f5ae | Shell | yuokamoto/io_use_case | /start | UTF-8 | 8,839 | 3.5625 | 4 | [] | no_license | #!/bin/bash
STARTTIME="$(date -u +%s)"
DOCKER_PY_VER="3.1.3"
DOCKER_COMPOSE_VER="1.21.0"
IS_ROS=false
SALT_GRAINS="/etc/salt/grains"
RUNTIME="preinstalled"
CATKIN_WS=""
SALT_WHL="https://storage.googleapis.com/artifacts.rapyuta.io/salt-2017.7.0-py2-none-any.whl"
KEYSERVER="hkp://p80.pool.sks-keyservers.net:80"
DOCKER... | true |
5f698ba21177ce0e85490890f1602db6fd6e8935 | Shell | foostan/vagrant-docker | /serf/handle.sh | UTF-8 | 464 | 2.609375 | 3 | [] | no_license | #!/bin/bash
echo
echo "SERF_EVENT: ${SERF_EVENT}"
echo "SERF_SELF_NAME: ${SERF_SELF_NAME}"
echo "SERF_SELF_ROLE: ${SERF_SELF_ROLE}"
echo "SERF_SELF_TAG: ${SERF_SELF_TAG}"
echo "SERF_TAG_ROLE: ${SERF_TAG_ROLE}"
echo "SERF_USER_EVENT: ${SERF_USER_EVENT}"
echo "SERF_USER_LTIME: ${SERF_USER_LTIME}"
echo ... | true |
ac493b683f662b523e1e57e95063d51156000a9e | Shell | jamesxuhaozhe/ShellScripting | /learnagain/3_8.sh | UTF-8 | 156 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# double bracket is a way to evaluate the expression
if (( $2 > $1 && $3 > $2)); then
echo "increasing"
else
echo "not increasing"
fi
| true |
c9838a2ef13f61a2687478b2b9f54e2833616de8 | Shell | SRGOM/nixpkgs-draft | /ttf-indic-otf/ttf-indic-otf_builder.sh | UTF-8 | 217 | 2.640625 | 3 | [
"Unlicense"
] | permissive | source "$stdenv"/setup
fontdir=$out/share/fonts
shdir=$out/share/
fontfile=$(basename $src)
mkdir -p $fontdir
cp $src $fontdir
cd $fontdir
tar xvf $fontfile
mv indic/OpenType .
mv OpenType/doc $shdir
rm $fontfile
| true |
d6a8ee0aac9f9e90ace862891ab47fc93dc191ef | Shell | adig-pkgs/argparse | /PKGBUILD | UTF-8 | 722 | 2.796875 | 3 | [] | no_license | pkgname=argparse
pkgver=2.1
pkgrel=1
pkgdesc="Argument Parser for Modern C++"
arch=(any)
url="https://github.com/p-ranav/argparse"
license=("MIT")
makedepends=("cmake")
source=("https://github.com/p-ranav/argparse/archive/v${pkgver}.tar.gz")
sha512sums=("35746e0b526bd4406c954ab315f191abc57b08b48a047f108ddacc7baace406d3... | true |
7d7c6965ba94070885fb6bd205bcc1dd93aa0b53 | Shell | JessicaFavin/Gashapon | /doc/celande_script.sh | UTF-8 | 788 | 3.078125 | 3 | [] | no_license | #!/bin/bash
let "success = 0"
git add .
git commit -m "$*"
git checkout master
git pull
if [ $? -eq $success ]
then # conflicts ?
echo " "
echo "First pull is successful"
echo " "
git commit -m "$*"
git merge perso_celande
if [ $? -eq $success ]
then # conflicts ?
echo " "
echo "Merging is successful"
ec... | true |
c3ffa598bdf5a83061251ffe8e541d9559247d19 | Shell | oroc95/rancher-glusterfs-server | /bin/prepare-gluster.sh | UTF-8 | 1,163 | 3.640625 | 4 | [] | no_license | #!/bin/bash
set -e
[ "$DEBUG" == "1" ] && set -x
if [ "${GLUSTER_PEER}" == "**ChangeMe**" ]; then
# This node is not connecting to the cluster yet
exit 0
fi
echo "=> Waiting for glusterd to start..."
sleep 10
if gluster peer status | grep ${GLUSTER_PEER} >/dev/null; then
echo "=> This peer is already join... | true |
965b48e0452c8606168dfbe5274d986e17720cec | Shell | skymandr/dotfiles | /.wmii/wmiirc_local | UTF-8 | 7,655 | 3.4375 | 3 | [] | no_license | #!/bin/bash -f
# vim: set filetype=sh :
# Configuration variables
export MODKEY=Mod4
# Colours tuples: "<text> <background> <border>"
export WMII_URGENTCOLORS='#deb1a0 #840000 #2a0000'
export WMII_NOTICECOLORS='#feffef #808808 #303303'
export WMII_FOCUSCOLORS='#ffffff #1d4000 #133700'
export WMII_NORMCOLORS='#f0f0f0 #... | true |
979a272f496c9ff0859c13685c184d024ad7b8bc | Shell | nbozhenov/scratchpad | /scripts/emacs-pipe | UTF-8 | 960 | 3.96875 | 4 | [] | no_license | #!/bin/bash
set -o nounset
#set -o errexit # emacs and rm may return non-zero code, it's all right.
# arguments to be passed to emacs
args[0]="-q"
args[1]="-nw"
args[2]="-t"
args[3]="/dev/tty"
args[4]="-l"
args[5]="~/.emacs"
# index in 'args' array
count=5
# whether "-" argument was encountered
use_stdin=
# name for t... | true |
95fede9d85c7a7acee23b34eaad6160a403f98dc | Shell | provingground-moe/qserv | /admin/tools/docker/git/scripts/eups-builder.sh | UTF-8 | 883 | 3.34375 | 3 | [] | no_license | #!/bin/bash
# Install eups packages from source
# Use SRC_DIR to specify a list of source directory
# to build in a given order
set -e
set -x
if [ -z "$SRC_DIRS" ]; then
echo "ERROR: undefined \$SRC_DIRS"
exit 2
fi
# Launch eups install
. /qserv/stack/loadLSST.bash
for SRC_DIR in $SRC_DIRS
do
{
# Use subsh... | true |
348a7b9566c19f2068e500f820f1d68c14b84511 | Shell | DKalenscher/projects | /UNIX/Phone List Menu/phonefind | UTF-8 | 514 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#======================================================================
#Script Name: phonefind
# By: DMK
# Date: 11/6/2013
# Purpose: Searches for a specified record in the corp_phones file
#======================================================================
phonefile=~/Chapter6/source/... | true |
4b6d497ec97adfaba90dd29e860f96434fcd8640 | Shell | smart-classic/dm-semantic-service | /postgres/setup-cart.sh | UTF-8 | 658 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | # Create/setup the "cart" semantic services postgres databases
# v.20130322
# Check arguments
if [ "$1" != "prod" -a "$1" != "stage" -a "$1" != "dev" ]; then
echo "Usage: $0 {prod|stage|dev}"
exit 1
fi
# Build database name
if [ "$1" = "prod" ]; then
DB=org_smartplatforms_semantic_cart
else
DB=org_sma... | true |
1a05d34fe3218c776f3a2980c84f7cfbffb69ea2 | Shell | antenore/svntogit-community | /budgie-extras/repos/community-x86_64/PKGBUILD | UTF-8 | 1,790 | 2.609375 | 3 | [] | no_license | # Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
pkgname=budgie-extras
pkgver=1.2.90
pkgrel=1
pkgdesc='Additional Budgie Desktop enhancements for the user experience'
arch=('x86_64')
license=('GPL3')
url='https://github.com/UbuntuBudgie/budgie-extras'
depends=('budgie-desktop' 'wmctrl' 'xdotool' 'xprintidle' '... | true |
2a7ab867b0e9ddbcc53c1ba61bb7cfd37d04a55e | Shell | prasadt2704/shell-scripts | /pattern3.sh | UTF-8 | 197 | 2.796875 | 3 | [] | no_license | for (( row=0 ; row<10 ; row++ ))
do
for (( space=10 ; space>row ; space-- ))
do
echo -n " "
done
for (( star=1 ; star<=10 ; star++ ))
do
echo -n "* "
done
echo " "
done
| true |
9d06bd8d66fed509ecd905364829e29e6b845b4b | Shell | abernix/spaceglue | /images/onbuild/scripts/lib/build_app.sh | UTF-8 | 3,724 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e # Exit on any bad exit status
my_dir=`dirname $0`
# Shouldn't matter, but just in case.
export METEOR_NO_RELEASE_CHECK=1
# Because of CDN issues.
: ${METEOR_WAREHOUSE_URLBASE:="https://d3fm2vapipm3k9.cloudfront.net"}
export METEOR_WAREHOUSE_URLBASE
build_dir=$HOME/.build
echo "=> Copying the app"
... | true |
4eed99e053b0062449c4876b485d70a795ff3e52 | Shell | n00bc0der89/TwitterPOC | /movieuploader.sh | UTF-8 | 681 | 2.859375 | 3 | [] | no_license | moviename=('Chauranga' 'Wazir' 'Airlift' 'Jugni' 'Mastizaade' 'Fitoor' 'Neerja' 'Aligarh' 'Zubaan' 'Fan' 'Baaghi' 'Traffic' 'Azhar' 'Sarbjit' 'Cabaret' 'Phobia' 'Veerappan' 'Fredrick' 'Waiting' 'Housefull 3' 'Raaz Rebooted' 'Dhanak' 'Te3n' 'Junooniyat' 'Scandall')
q="'"
trim() {
local s2 s="$*"
# note: the bracket... | true |
f1e0073423bbe950ce25415b5d7fca621ebcb933 | Shell | liukz-data/mro-ftpdata-to-hive | /scripts/mro-ftpdata-to-hive.sh | UTF-8 | 4,245 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
# 将ftp上压缩数据入hive库表
# 导入Hive ORC表的一个分区中
# author: 刘科志
# create_time: 2020/01/03
# comment:
# parameters:
# 无
# 运行命令:
# sh mro-ftpdata-to-hive.sh 20181211
###################################################################################
export LANG=en_US.UTF-8
deal_date=`date +'%Y%... | true |
6516543a80456f20e442b906534ebee127a1fbde | Shell | MaheshJethalia/BAlaS | /ala-scan/budeAlaScan-dist/cppCode/comp_utils.sh | UTF-8 | 614 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
# encoding: utf-8
BYSD_DIR="colourBySD"
DIV_DIR="dividePDB"
GETSD="getSD"
function compUtil {
cd ${1}
make clean
make
cd ../
}
function cleanUtil {
cd ${1}
make clean
cd ../
}
function comp_util {
echo "Compiling ${GETSD}"
compUtil ${GETSD}
echo "Compiling ${BYSD_DI... | true |
da5c94651e61f6f966beb779bcd78eea82eb8656 | Shell | knowah/misctools | /fastaLen | UTF-8 | 269 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# source: https://www.danielecook.com/generate-fasta-sequence-lengths/
file="$1"
[ "$file" == "-" ] && unset file
awk '$0 ~ ">" {if (NR > 1) {print c;} c=0;printf substr($0,2,100) "\t"; } $0 !~ ">" {c+=length($0);} END { print c; }' < "${file:-/dev/stdin}"
| true |
cf2fe0ed0c75bde356a50841d8e57dda4380bba4 | Shell | n00tz/n00tz-compose | /dothething.sh | UTF-8 | 528 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
EXC=(homeautomation exclude)
LG='\033[1;32m' #Light Green
NC='\033[0m' #NO COLOR
RED='\033[0;31m' #Red
echo -e "${RED} Pruning Unused Docker Images"
docker image prune -a -f
echo -e "${LG} Image Prune Complete! ${NC}"
echo -e "Beginning image update and recreate process..."
for i in `find . -name docke... | true |
d7e1dd34dee2f1ce64cc7dc49aad7a42dbb800e1 | Shell | jeffreyhorner/feedserver | /build_dependencies.sh | UTF-8 | 1,404 | 2.796875 | 3 | [] | no_license | #!/bin/bash
if [ ! -d dependencies ]; then
mkdir dependencies
fi
cd dependencies
# Get and Build haywire
if [ ! -d "haywire" ]; then
echo "git clone https://github.com/jeffreyhorner/haywire"
git clone https://github.com/jeffreyhorner/haywire
cd haywire
cp ../../compile_haywire_dependencies.sh compile_depend... | true |
360e2fdba0c2db28a0e66beb325dda5662c5a21e | Shell | Haseonglee/image-object-detection-api | /entrypoint.sh | UTF-8 | 482 | 3 | 3 | [] | no_license | #!/bin/bash
#version: 1.0.0
# This file is patterned after the entrypoint in the base image:
# It calls scripts that are bundled with the base image.
# Update this file and update the Dockerfile to use it.
# Be conservative upon failures (don't try to continue)
set -euo pipefail
# Handle failures of this script
sourc... | true |
aa5f3feaa49f8c335a61d35577bed45e8c2d1835 | Shell | lcybrgl/scripts | /show-updates | UTF-8 | 562 | 3.765625 | 4 | [] | no_license | #!/usr/bin/env bash
paclog="/var/log/pacman.log"
currdate=`date +%Y-%m-%d`
function last_weeks()
{
sdate=`date --date="-${1} weeks" +%Y-%m-%d`
awk "/$sdate/,0" $paclog | egrep "upgraded|installed"
}
function last_days()
{
sdate=`date --date="-${1} days" +%Y-%m-%d`
awk "/$sdate/,0" $paclog | egrep "up... | true |
623f16d7afbe871cab706085f687a10fafcd6df8 | Shell | jonathanccalixto/ubuntu_config | /install_ruby_gem_rvm.sh | UTF-8 | 1,508 | 2.515625 | 3 | [] | no_license | echo "# upgrade ubuntu"
sudo apt-get update
sudo apt-get dist-upgrade -y
echo "# install mysql"
sudo apt-get install -y mysql-server-5.1 mysql-client-5.1 libmysql-ruby libmysqlclient-dev libmysqlclient15-dev
echo "# install ruby"
sudo apt-get install -y build-essential libssl-dev libreadline-dev curl ruby-full libope... | true |
4b728138ef5290f49ab15456ef7e39df1a6f134d | Shell | nginxinc/docker-nginx | /sync-awsecr.sh | UTF-8 | 3,608 | 3.90625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -eu
image="nginx"
registry="public.ecr.aws/z9d2n7e1"
declare -A aliases
aliases=(
[mainline]='1 1.25 latest'
[stable]='1.24'
)
architectures=( amd64 arm64v8 )
self="$(basename "$BASH_SOURCE")"
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
base=debian
versions=( mainline stable )
pulllist=()
de... | true |
5ca68ac0400da5498aee20e878a884460f17d897 | Shell | kde713/iamporter-python | /deploy.sh | UTF-8 | 218 | 2.640625 | 3 | [
"MIT",
"Python-2.0"
] | permissive | #!/usr/bin/env bash
rm dist/*
python setup.py bdist_wheel
if [ $# -ge 1 ] && [ $1 == "test" ]; then
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
else
twine upload dist/*
fi
rm -rf build | true |
ddde93f2cf58baf4bafa93337029efb12dd0da65 | Shell | bsundsrud/dotfiles | /bin/em | UTF-8 | 214 | 2.859375 | 3 | [] | no_license | #!/bin/bash
if [ "${0##*/}" = "emc" ]; then
## Force terminal mode
param="-t"
else
if [ "${0##*/}" = "emw" ]; then
param="-c"
else
param="-n"
fi
fi
emacsclient $param -a "" $@
| true |
581a4372f8543d4af1683eef49b4f88b6bbf9a33 | Shell | kdombeck/rpotter | /installOpenCv.sh | UTF-8 | 1,831 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
# gotten from http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/
sudo apt-get -y purge wolfram-engine
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential cmake pkg-config
sudo apt-get -y install libjpeg-dev libtiff5-dev libjasp... | true |
cc8db00433be79811e7154f251c714918bea4f89 | Shell | Begoodpapa/meetup2 | /assets/rf/IL/SS_ILDmxMsg/run_mit_AB3.sh | UTF-8 | 657 | 3.5625 | 4 | [] | no_license | if [ $1 = '-h' -o $1 = '--help' ]
then
echo "Usage: $0 [NUM_TIMES]"
exit 1
fi
TIMES=${1:-1}
source func_run_case.sh
echo "************* Total Run $TIMES times **************"
rm -rf ./logs
mkdir logs
cases="dmxmsg_input_sync_exceptional_case
dmxmsg_input_sync_reorder_test
dmxmsg_sliding_w... | true |
bc5b1ce3a8d947b0403140ae080dc7600448c0f4 | Shell | xiarendeniao/utils | /sh/createctags | UTF-8 | 801 | 3.875 | 4 | [] | no_license | #!/bin/sh
CreateCTag()
{
if [[ $# -lt 2 ]]
then
echo "invalid params "$*
exit 1
fi
code_dir_list=$1
ctags_file=$2
ctags_params="--extra=f"
if [[ $# -ge 3 ]]
then
ctags_params="$ctags_params $3"
fi
tmp_file=/tmp/c_tags_to_file
find $code_dir_list -n... | true |
7b7b316a70c5781e18bce278936e6771a810cb31 | Shell | CrashenX/zsh | /zshrc | UTF-8 | 7,538 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ... | true |
b1e0b85c01a0eb8b17fe0e5cd695f3ead8ec7847 | Shell | pulumi/pulumi | /scripts/tidy.sh | UTF-8 | 147 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
for f in $(git ls-files | grep "go\.mod")
do
(cd "$(dirname "${f}")" && go mod tidy -compat=1.20)
done
| true |
fa6226570ccb93fc6405a3adcff6d1e221de8271 | Shell | attacker34/hacks | /massclone | UTF-8 | 462 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script will mass-clone all repositories belonging
# to a GitHub organisation.
# Dependencies:
# - https://github.com/tomnomnom/gron
if [[ $1 == "" ]]; then
echo "./massclone <GitHub org name>"
exit 1
fi
mkdir $1 && cd $1
git=$(curl -s "https://api.github.com/orgs/$2/repos?per_page=200&type=sour... | true |
4173744de0d9fc2df8b9643df539bc07b224d893 | Shell | snoe925/tclsrcbuild | /build.sh | UTF-8 | 172 | 2.765625 | 3 | [] | no_license | #!/bin/bash
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
echo "Build on OS X"
cd src; make -f Makefile.osx
else
echo "Build on Linux"
cd src; make -f Makefile.linux
fi
| true |
64c8a652173eed8d0da4389d645bb6c0cdced394 | Shell | knuton/.dotfiles | /lib/todo.bash | UTF-8 | 77 | 2.59375 | 3 | [] | no_license | todo () {
if [ -n "$1" ]; then
todo.sh $@
else
todo.sh ls
fi
}
| true |
2e9a80606ffa9de8aade754194599c8c29bcd12a | Shell | kevineye/openshift-vagrant-experiment | /provision-master.sh | UTF-8 | 1,848 | 3.03125 | 3 | [] | no_license | #!/bin/sh
set -ex
# install ansible
yum -y install https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sed -i -e "s/^enabled=1/enabled=0/" /etc/yum.repos.d/epel.repo
yum -y --enablerepo=epel install ansible pyOpenSSL
# add out ansible config to system
cp /home/vagrant/sync/ansible-hosts /etc/... | true |
f0721afef0dde460d7f50de309b3d4458c29ea2b | Shell | puppetninja/openstack | /director-examples/nested-virt-on-nova/kvm-setup.sh | UTF-8 | 1,355 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#########################################################################
# This script is used to setup a RHEL instance as a KVM host
#########################################################################
# Set these variables
RHNUSER="<youruser>"
RHNPASS="<yourpassword>"
# Verify CPU has virt exten... | true |
a7bc131668e67c789055aac613b6893b86b3940a | Shell | miso484/Linux-Administration | /Debian10/10-FTPServer/1-installPure-FTPd_manually.sh | UTF-8 | 404 | 2.78125 | 3 | [] | no_license | # Install Pure-FTPd to configure FTP server to transfer files.
# install Pure-FTPd
apt -y install pure-ftpd
# run as a daemon
echo "yes" > /etc/pure-ftpd/conf/Daemonize
# prohibit Anonymous
echo "yes" > /etc/pure-ftpd/conf/NoAnonymous
# enable chroot
echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone
# only IPV4 if n... | true |
4361b262fe75e31ecd752639c29253a503443519 | Shell | AntouanK/iojs-install-script | /setup-iojs-mavericks.bash | UTF-8 | 355 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | IOJS_VER=${1}
IOJS_REMOTE="http://iojs.org/dist/${IOJS_VER}/iojs-${IOJS_VER}.pkg"
IOJS_PKG="/tmp/iojs-${IOJS_VER}.pkg"
if [ -n "${IOJS_VER}" ]; then
echo "installing io.js as iojs ${IOJS_VER}..."
curl -fsSL "${IOJS_REMOTE}" -o "${IOJS_PKG}"
sudo /usr/sbin/installer -pkg "${IOJS_PKG}" -target /
sudo chown -R $... | true |
52d0c16690108e02a66d4474aab828a633989e98 | Shell | archlinuxarm/PKGBUILDs | /extra/flashrom/PKGBUILD | UTF-8 | 1,433 | 2.90625 | 3 | [] | no_license | # Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Cilyan Olowen <gaknar@gmail.com>
# Contributor: fill <mailbox@fillo.ru>
# Contributor: Anton Shestakov <engored*ya.ru>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - set -Dpciutils=false -... | true |
b94b0a01e333257e0fc19bd372a0300892d8e1af | Shell | vAlmaraz/vagrant-base-config | /provision/setup.sh | UTF-8 | 293 | 3.015625 | 3 | [] | no_license | #!/bin/bash
echo "Provisioning virtual machine..."
echo "Configuring hostname"
echo "web" > /etc/hostname
hostname -F /etc/hostname
ip=$(ip addr show eth0 | grep -Po 'inet \K[\d.]+')
echo "$ip $ip hostname" >> /etc/hosts
apt-get update && apt-get upgrade -y
echo "Finished provisioning."
| true |
5b3a95adb2fc4f309e2cf68d89fd66c48bba86ec | Shell | lucasbasquerotto/env-base | /demo/entrypoint | UTF-8 | 727 | 3.296875 | 3 | [] | no_license | #!/bin/bash
set -eou pipefail
if [ ! -d /env ]; then
echo "[error] directory /env doesn't exist"
exit 1
fi
root_dir="/lrd"
project_dir="$root_dir/projects/demo"
mkdir -p "$project_dir/files/ctl/"
mkdir -p "$project_dir/secrets/ctl/"
envsubst < /tmp/main/vars.tpl.yml > "$project_dir/files/ctl/vars.yml"
mv /tmp/mai... | true |
9321e01e10ba1ea59142eccb902983bea1cf85f4 | Shell | elisethy/compciv | /homework/baby-name-gender-detector/classifier.sh | UTF-8 | 1,268 | 3.890625 | 4 | [] | no_license | # this script expects `helper.sh` to have created a
# file at ./data-hold/namesample.txt to use
datafile='data-hold/namesample.txt'
if [[ $# -eq 0 ]]; then
echo "Please pass in at least one name"
else
for name in "$@"; do
# name=Elise
name_matches=$(cat $datafile | grep -i "^$name,")
if [[ -z $name_matches ]];... | true |
0e5d0d5328fc30320889d8aea63682f99d324db6 | Shell | caseywdunn/bioconda-recipes | /recipes/samtools/0.1.17/build.sh | UTF-8 | 339 | 2.515625 | 3 | [] | no_license | #!/bin/bash
CFLAGS="-fPIC ${CFLAGS}"
env CFLAGS="${CFLAGS} $(pkg-config --cflags zlib)" \
LDFLAGS="${LDFLAGS} $(pkg-config --libs zlib)" \
make
install -d "${PREFIX}/include/${PKG_NAME}"
install -d "${PREFIX}/lib"
install bam.h sam.h bgzf.h khash.h faidx.h \
"${PREFIX}/include/${PKG_NAME}"
install libbam... | true |
f9035b4125f7fab71baabf8885214b125dd419da | Shell | GoogleCloudPlatform/magic-modules | /.ci/scripts/go-plus/gcb-terraform-vcr-tester/test_terraform_vcr.sh | UTF-8 | 15,993 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
pr_number=$1
mm_commit_sha=$2
build_id=$3
project_id=$4
build_step=$5
echo "PR number: ${pr_number}"
echo "Commit SHA: ${mm_commit_sha}"
github_username=modular-magician
gh_repo=terraform-provider-google-beta
NEWLINE=$'\n'
new_branch="auto-pr-$pr_number"
git_remote=https://github.com/$github_userna... | true |
2ef80bd88f83e888757b5661ca5942ad4132280e | Shell | kalyazin/tizen-sdk-query | /tests/fixtures/.info/ui-customizer/remove.sh | UTF-8 | 698 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash -x
## Register .desktop file
DESKTOP_FILE_PATH="${HOME}/.local/share/applications/ui-customizer.desktop"
${REMOVE_SHORTCUT} ${DESKTOP_FILE_PATH}
#xdg-desktop-menu uninstall ${MENU_DIRECTORY_NAME} ui-customizer.desktop
### END Register Menu ###
## Remove auto creating files
native_ui_effect_builder_path=tool... | true |
2b08477c548a5359a41946464bce5215c607107d | Shell | aspineon/hdp-docker | /stop-nodes.sh | UTF-8 | 121 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
nodes=("n0" "n1" "n2" "n3")
for node in "${nodes[@]}"
do
echo "stopping $node..."
docker rm -f $node
done
| true |
fef2bae6e6e7640898f21a830030f735e7b839e2 | Shell | ChidambaramR/CSE506_Grading | /script/testcase2_LargeFiles.sh | UTF-8 | 3,945 | 3.71875 | 4 | [] | no_license | #!/bin/sh
###
# TEST CASE: Checks for proper operation with input files being small or empty.
# The script assumes files large-1, large-2, large-3, large-4, large-1-2-3-4,
# already created in the backend. It supplies as inputs the large-1, large-2, large-3, large-4,
# across various test cases. It checks for correc... | true |
bf5f70c5b3233cb78129b695303a1300b32b66a2 | Shell | xdslab/redis | /4.0/test.sh | UTF-8 | 476 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
if [[ ! -z "${DEBUG}" ]]; then
set -x
fi
name=$1
image=$2
cid="$(docker run -d --name "${name}" "${image}")"
trap "docker rm -vf $cid > /dev/null" EXIT
redis() {
docker run --rm -i --link "${name}" "${image}" "${@}"
}
redis make check-ready max_try=10 host="${name}"
echo -n "Check... | true |
3f5532498fd93a23454836962c1a40e6c70f097f | Shell | leki75/dotfiles | /golang.sh | UTF-8 | 290 | 2.921875 | 3 | [] | no_license | #!/bin/sh
VERSION=1.12.5
OS=linux
ARCH=amd64
# Download go binaries
#curl -Ls https://dl.google.com/go/go${VERSION}.${OS}-${ARCH}.tar.gz | sudo tar -C /usr/local -xzvf -
# Add variables to zshrc
cat <<EOF >>~/.zshrc
export GOPATH=~/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
EOF
| true |
47791bdf9bf8953ed1888f94ca2d11c2ab2e16af | Shell | ksclarke/packer-graphite | /scripts/setup-base-system.sh | UTF-8 | 353 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
# Start the basic system installation; put in a stupid loop to work around Ubuntu mirror issues
for ATTEMPT in 1 2 3; do
sudo apt-get update -y --fix-missing
sudo unattended-upgrade
sudo apt-get install -ym nano htop nmap
if [ ! -z "`which nano`" ] && [ ! -z "`which htop`" ] && [ ! -z "`which nm... | true |
ee19b60c165faa104eff8d52b8f4d437ee0f8162 | Shell | mbahvw/tanzu-pipelines | /scripts/set-env.sh | UTF-8 | 754 | 4.0625 | 4 | [] | no_license | #!/bin/bash -e
: ${PARAMS_YAML?"Need to set PARAMS_YAML environment variable"}
# Give some information timestamps to know how long things take
echo $(date)
# YQ versions before 4.11.1 would remove document seperator when updating docs
# the issue has been fixed, but keeping this function in place to handle either co... | true |
7e7fe656ded58b2a2dfbb38a718fd9b346c0b2e0 | Shell | giulianoquites/named-labquites | /dns.sh | UTF-8 | 3,108 | 3.5 | 4 | [] | no_license | #!/bin/bash
clear
Menu(){
echo "------------------------------------------"
echo " LabQuites "
echo "------------------------------------------"
echo
echo "[ 1 ] DNS Master"
echo "[ 2 ] DNS Slave"
echo
echo -n "Number 1, 2 and 3 ? "
read opcao
case $opcao in
... | true |
76495977e4e430ef27f997266bce8dbd8b73b86a | Shell | MiguelCalz/up-ca-tp-integrador | /scripting-tp-integrador.sh | UTF-8 | 1,910 | 4.21875 | 4 | [] | no_license | # ----- Consignas ----- #
# 1-Pedir un número entero y mostrar esa cantidad de elementos de la sucesión de Fibonacci.
# 2-Pedir un número entero y mostrar por pantalla ese número en forma invertida.
# 3-Pedir una cadena de caracteres y evaluar si es palindromo o no.
# 4-Pedir el path a un archivo de texto y mostrar por... | true |
f966d9188885387cdbbb6886cf6e8d088fe3f22e | Shell | ppc64le/build-scripts | /g/github.com-jeffashton-win_pdh/github.com-jeffashton-win_pdh_ubi_8.5.sh | UTF-8 | 1,899 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# -----------------------------------------------------------------------------
#
# Package : github.com/JeffAshton/win_pdh
# Version : v0.0.0-20161109143554-76bb4ee9f0ab
# Source repo : https://github.com/jeffashton/win_pdh
# Tested on : UBI 8.5
# Language : GO
# Travis-Check : True
# Script License: Ap... | true |
0c927c3960de203a9159fe25b94c475a65ee6b9c | Shell | dentm42/VegaDNS-UpdateClient | /update-data.sh | UTF-8 | 1,215 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# The VegaDNS2 tinydns export endpoint
# Can be a space delimited list of VegaDNS2 servers
VEGADNS="${API_URL:-http://localhost:5000}/1.0/export/tinydns"
# Path to the tinydns directory
ROOT=${ROOT:-/etc/tinydns/root}
CUR="${ROOT}/data"
OLD="${ROOT}/data.old"
NEW="${ROOT}/data.new"
if [ -f "$CUR" ] ; the... | true |
b5085e09149b6f2d756e519282819f11680437d1 | Shell | nicrip/moos-ivp-marineswarm | /missions/tests/three_simple_auv/launch.sh | UTF-8 | 9,858 | 3.453125 | 3 | [] | no_license | #!/bin/sh
# Number of AUVs in the mission
N=3
# Swarm dimensions
W=2 # Number of AUVs per line
# (N determine the number of AUVs per column)
# Space between AUVs
GAP=300 # Distance (m)
# Name of the file containing the community names
FILE_NAMES_COMMUNITIES="auv_names.txt"
# Shoreside parameters
SHORESIDE_ADDRE... | true |
edb1afe112db95e692bf537c823d4af9ea8e6ee4 | Shell | conr2d/interchain-accounts | /network/init.sh | UTF-8 | 4,026 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# Configure predetermined settings
# val1: cosmos1mjk79fjjgpplak5wq838w0yd982gzkyfrk07am
# val2: cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs
BINARY=icad
CHAIN_DIR=./data
CHAINID_1=test-1
CHAINID_2=test-2
MNEMONIC_1="alley afraid soup fall idea toss can goose become valve initial strong forward bright dis... | true |
bf57433d7f3ab38ddfd259750dc9b0d6e229e5de | Shell | courtneypacheco/ci-artifacts | /build/root/usr/local/bin/run | UTF-8 | 2,857 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
#
# This file serves as entrypoint to the nightly testing of PSAP operators.
#
# SOURCE and HOME DIRECTORY: /opt/ci-artifacts/src
set -o pipefail
set -o errexit
set -o nounset
ci_banner() {
echo "===> Running PSAP CI Test suite <==="
echo "===> $0 $@ <=="
git show --quiet || echo "C... | true |
1aa9c711106d5b850aeb5ce93ac87b66ab90125f | Shell | jderoner/mealplan-cartbot | /start_server.sh | UTF-8 | 971 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
export FLASK_APP=./server.py
FLASK_HOST="127.0.0.1"
FLASK_DEBUG=0
FLASK_PORT=5002
for i in "$@"
do
case ${i} in
-d|--debug)
FLASK_DEBUG=1
shift
;;
-h=*|--host=*)
FLASK_HOST="${i#*=}"
shift
;;
*)
... | true |
ab8e8abf1498ea37f9cdaa96912d36e0bd5551d2 | Shell | abveritas/apps-testing | /2mandvd/PKGBUILD | UTF-8 | 1,631 | 2.796875 | 3 | [] | no_license | #
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=2mandvd
pkgver=1.7.3
pkgrel=2
pkgdesc="DVD Authoring Maker In Linux Environment."
url="http://2mandvd.tu... | true |
c2b5b90fa23f5a30ecad85cd2ea6663896806404 | Shell | GreenRaccoon23/mithril-keep | /server/compile | UTF-8 | 970 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
declare basepwd;
basepwd="$(basename "${PWD}")";
declare -r DIR_TOP="mithril-keep";
declare -r DIR_MID="server";
declare -r DIR_LOW="src";
declare dir="";
case "${basepwd}" in
"${DIR_TOP}" )
dir="${DIR_MID}/${DIR_LOW}";
;;
"${DIR_MID}" )
dir="${DIR_LOW}";
;;
"... | true |
bbe9017cb0dd9cb6dc8bbf98401acff366a426d9 | Shell | robinrodricks/FluentFTP | /FluentFTP.Dockers/glftpd/run-glftpd.sh | UTF-8 | 984 | 3 | 3 | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | #!/bin/bash
# stdout server info:
cat << EOB
*************************************************
* *
* Docker image: fluentftp glftpd *
* *
*************************************************
SERVER SETTINGS
... | true |
c40d4c8225ac0556f385298ee0480f732fd096a3 | Shell | 119Vik/magma-1 | /lte/gateway/python/magma/mobilityd/scripts/release_dhcp_ip.sh | UTF-8 | 477 | 3.28125 | 3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | #!/bin/bash
PORT_MAC=$1
BR=$2
NS="dhcp_cl"
PORT=$(ip netns exec "$NS" ip l sh |grep "$PORT_MAC" -B1 | head -1 | grep -v link|cut -d: -f 2| xargs)
if [ -z "$PORT" ]
then
PORT=$(ip l sh |grep "$PORT_MAC" -B1 |head -1 |grep -v link|cut -d: -f 2| xargs)
fi
PID=$(pgrep -f "dhclient.*$PORT")
if [[ -n $PID ]]
then
... | true |
3ff62ab62261b9972edc7022c72441f6a65b2bc4 | Shell | tufts-ml/time_series_prediction | /setup_env/byronperpetua.sh | UTF-8 | 273 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/env bash
# Setup script to set all environment variables
## Setup mac laptop
if [[ $HOME == "/Users/byronperpetua" ]]; then
if [[ -z $PROJECT_REPO_DIR ]]; then
PROJECT_REPO_DIR=$HOME/Documents/School/Tufts/project/time_series_prediction/
fi
fi
| true |
1e216d9ee85c3b49151ccd4c264ffb505610691e | Shell | Starli0n/f_automation | /asCode/aws/ec2/scripts/4_openshift/ascode_setup_new_infra_for_openshiftCluster | UTF-8 | 820 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# by stef@dev2ops.eu
# June 2017
# setup the infra as code in AWS for a new Openshift cluster
#
if [ "$#" -ne 1 ]; then
echo "Usage: $0 cluster_name"
exit 1
fi
cluster_name=$1
wd=~/devel/gli/aws/ec2/scripts/4_openshift
inventory_dir=~/devel/gli/ansible/openshift-ansible/inventory/byo
playbook_dir=~/de... | true |
365eb7f7c985a1c85e335fb5ba17b25c7f69ff66 | Shell | iocanel/dotfiles | /.zshrc | UTF-8 | 1,424 | 2.78125 | 3 | [] | no_license | source $HOME/workspace/src/github.com/zplug/zplug/init.zsh
setopt -o nomatch
eval $( dircolors -b $HOME/.dircolors )
# Load functions
fpath=( "$HOME/.zfunc.d" $fpath )
#
# Load configuration
for c in $HOME/.zshrc.d/*;do
source $c
done
for c in $HOME/.zshenv.d/*;do
source $c
done
# Then, source plugins and add... | true |
1112f86b0eda6742cba7468fdf43b5b32fa63d73 | Shell | cytopia/check_drupal | /bin/check_drupal | UTF-8 | 32,049 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Nagios plugin to monitor the state of drupal sites.
#
################################################################################
#
# V A R I A B L E S
#
################################################################################
# Some creds
INFO_NAME="check_drupal"
INFO_AUTHOR="cytopia <cyto... | true |
8fffbcf68f6f869563f318be8a11e74b15a919c1 | Shell | hobo71/hearthstone-card-images | /check.sh | UTF-8 | 572 | 3.984375 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
# Check JSON file validity.
for file in `find . -iname '*.json'`; do
jq . "$file" >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo check: $file not valid JSON.
exit 1
fi
done
# Check image validity.
index=0
images=`find . -iname '*.png'`
total=$(wc -l <<< "$images" | awk '{ print $1 }')
for imag... | true |
b1d2d61829bc722610a56c62ffa7e65dcbdee311 | Shell | juanelas/docker-sshd | /bin/adduser.sh | UTF-8 | 310 | 3.625 | 4 | [] | no_license | #!/bin/sh
user=${1?"You must specify a username."}
passwd=${2?"You must specify a password."}
adduser -D $user
if [ $? -eq 0 ]; then
echo "${user}:${passwd}" | chpasswd
if [ $? -eq 0 ]; then
echo "${user}:$(cryptpw ${passwd})" >> /home/.users
else
deluser $user
exit 1
fi
fi
| true |
2901023eda45bc7144fa0d2c6b8e7d2f3067df62 | Shell | xavoctechnocratspvtltd/xmysqlimport | /xmysqlimport | UTF-8 | 1,586 | 3.75 | 4 | [] | no_license | #!/bin/sh
# store start date to a variable
while getopts f:d:u:p:h: option
do
case "${option}"
in
f) FILEPATH=${OPTARG};;
d) DATABASE=${OPTARG};;
u) MYSQLUSER=${OPTARG};;
p) MYSQLPASSWORD=${OPTARG};;
h) MYSQLHOST=${OPTARG};;
esac
done
if [ -z "$FILEPATH" ]
then
echo "Please specify '-f /absolute/path/of/sql/... | true |
92c2b872db2f7dbc6f98d3d3379cb3ccaa9938a9 | Shell | vstavrinov/flashstreamer | /flashstreamer | UTF-8 | 2,808 | 3.671875 | 4 | [] | no_license | #!/bin/bash
DESCRIPTION="Capture video stream from web camera and send it to RTMP server"
COPYRIGHT="(C) Vladimir Stavrinov <vstavrinov@gmail.com> 2013"
VERSION=1.2.17
OWNER=webcam
if [ $(id -u) != $(id -u $OWNER) ]; then
if ! sudo -A /bin/true -u $OWNER : 2> /dev/null; then
echo "
Insufficient privileges.
You... | true |
ef759faa47a3f966f4f2ec3c91f7dfcbc708de9d | Shell | alexdavid/dotfiles | /i3blocks/screenshare.sh | UTF-8 | 230 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
if [ -n "$BLOCK_BUTTON" ]; then
systemctl --user stop xdg-desktop-portal-wlr
fi
if systemctl --user status xdg-desktop-portal-wlr > /dev/null; then
echo "Stop Screen Share"
echo "S"
echo "#FF0000"
fi
| true |
160b5d6a9028f9bc2e3f06e011187babf55cf75d | Shell | bboykov/dotfiles | /scripts/git-script-interactive-rebase-branch-commits | UTF-8 | 422 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
# Strict Mode - http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ ${CURRENT_BRANCH} == "master" ]]; then
echo "The current branch is master. Abort!"
exit 1
fi
NUMBER_OF_COMMITS=$(git log master.."$... | true |
c55c295a02263ada6ea4bf56f189b2db9f24f57f | Shell | sota1235/dotfiles | /zsh/zshrc.zsh | UTF-8 | 11,311 | 3.3125 | 3 | [] | no_license | ###
# ログイン時
###
# tmuxを起動する
if which tmux > /dev/null 2>&1 ; then
[[ -z "$TMUX" && ! -z "$PS1" ]] && tmux -2
fi
# キーバインドをEmacs風に
bindkey -e
###
# プロンプト設定
###
# 色を使用できるようにする
autoload -Uz colors; colors
# hook関数を登録できるようにする
autoload -Uz add-zsh-hook
# バージョン判定
autoload -Uz is-at-least
### vcs_info設定 ###
# 以下の3つのメ... | true |
c6e2e562ee1fef01728696c1965b84a2f16f1692 | Shell | Nagalakshmi36/practicesection | /repitition_functions_checkprimepalindrome.sh | UTF-8 | 1,006 | 3.4375 | 3 | [] | no_license | read choice
if [ $choice -eq 1 ]
then
echo "enter number"
read n
x=0
num=$n
rev=0
while [ $n -gt 0 ]
do
x=$(( $n % 10 )) # get Remainder
n=$(( $n / 10 )) # get next digit
# store previous number and current digit in reverse
... | true |
9eee7e27df3c9ac99b664dad7ed3b6fe46b2817a | Shell | ammarhakim/gkyl | /install-deps/mkdeps.sh | UTF-8 | 6,601 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# Defaults
PREFIX=$HOME/gkylsoft
# default build options
CC=gcc
CXX=g++
MPICC=mpicc
MPICXX=mpicxx
# by default, don't build anything. will check later to see if things
# should be installed.
BUILD_LUAJIT=
BUILD_LUAJIT_BETA3=
BUILD_LUAJIT_PPCLE=
BUILD_LUAROCKS=
BUILD_ADIOS=
BUILD_OPENMPI=
BUILD_EIGEN=
BUI... | true |
fb61f814df689a46fdefe99d01a1d7a181fefb5b | Shell | epatel/mmtools | /bin/ssh-remote-example | UTF-8 | 401 | 2.65625 | 3 | [] | no_license | #!/bin/bash
cat <<EOF
Access (from local) target-host on ssh-host:
ssh -R :<ssh-host-port>:<target-host>:<target-port> <username@ssh-host>
Access (remote via ssh-host) target-host from local-host:
ssh -L :<local-port>:<target-host>:<target-port> <username@ssh-host>
Examples:
ssh -R :808... | true |
1d70a2bc90266420fb40fdb56bbe232e45df6717 | Shell | giant17/dotfiles_old | /scripts/.local/bin/dtmux | UTF-8 | 166 | 2.828125 | 3 | [] | no_license | #!/bin/sh
tmuxSessions=$(tmux ls | awk '{print $1}' | sed 's|:| |g')
chosen=$(printf "$tmuxSessions" | dmenu -l 10 -p "Choose a tmux session:")
tmux at -t $chosen
| true |
33dfe03ced0c97798b7d91fae27e9b3421813fed | Shell | lisenet/switchvox-xen | /switchvox-xen-script.sh | UTF-8 | 3,421 | 3.046875 | 3 | [] | no_license | #--------------------------------------------
# Name: SWITCHVOX XEN SCRIPT
# Author: Tomas Nevar (tomas@lisenet.com)
# Version: v1.0
# Date: 27/06/2014 (dd/mm/yy)
# Licence: copyleft free software
#--------------------------------------------
#
# Script makes Swithvox SMB Amazon EC2 compatible
# Tested on S... | true |
1c7098c4af52524a743dcd26f46db9b32e0a23c2 | Shell | AlienFromStar/scripts | /sysbench_io.sh | UTF-8 | 2,060 | 3.90625 | 4 | [] | no_license | #!/bin/sh
#测试逻辑,从并发1个文件到最大数量文件下的每个不同文件读写测试模式压力测试,获取对应的请求数和吞吐量数据
#配置参数
BASEDIR="/data/sysbench/`date "+%Y-%m-%d"`"
FILE_TOTAL_SIZE=32G
RESULT_REPORT=${BASEDIR}/report.txt
#测试的写入方式
#seqwr 顺序写入
#seqrewr 顺序重写
#seqrd 顺序读取
#rndrd 随机读取
#rndwr 随机写入
#rndrw 混合随机读/写
TEST_MODE="seqwr seqrewr seqrd rndrd rndwr rndrw"
#创... | true |
612150a672fda3492b1cf3dc311b0e6b6b492fd0 | Shell | babim/docker-tag-options | /lib/libbash | UTF-8 | 121,249 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ____ _ _
# | __ ) __ _| |__ (_)_ __ ___
# | _ \ / _` | '_ \| | '_ ` _ \
# | |_) | (_| | |_) | | | | | | |
# |____/ \__,_|_.__/|_|_| |_| |_|
#
# contact: babim@matmagoc.com
# AQ.jsc Viet Nam
#
# this script checks to see if bash is running and if the version is >= 3.3
if [[ "${#BASH_VERSINFO... | true |
157d09623a1814699f76fc9a3d13d9545eb4b53f | Shell | varlogtim/xcalar-infra | /bin/pip-bundler.sh | UTF-8 | 6,630 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Use
# $ ./pip-bundler.sh bundle [-o output.tar.gz] [--] <pip-commands ...>
#
# To generate a bunlde containing the packages fetched
# from the command. Eg, ./INSTALL.sh bundle -r requirements.txt
# will bundle all the packages into wheel.zip, including
# this same script that can be called "on the oth... | true |
e241c0b32eb7d162279a95e31c8b94457ce1e690 | Shell | caseydavenport/operator | /deploy/scripts/ipv6_kind_cluster_update.sh | UTF-8 | 592 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# test directory.
TEST_DIR=./tests/k8st
# kubectl binary.
: ${kubectl:=./bin/kubectl}
# kind binary.
: ${KIND:=./bin/kind}
function checkModule(){
MODULE="$1"
echo "Checking kernel module $MODULE ..."
if lsmod | grep "$MODULE" &> /dev/null ; then
return 0
else
return 1
fi
}
echo "S... | true |
0d26313673c36b0b3d4ff0a1f55a3c6b4d4e9173 | Shell | eewueewu/skripti_alused | /praks6/yl2.sh | UTF-8 | 446 | 3.390625 | 3 | [] | no_license | #!bin/bash
#Luba kasutajale sisestada suvaline täisarv. Skript peab arvutama sisestatud arvu numbrite summat ja väljastama koos selgitava tekstiga.
#--------------------------------------------------------------------------------------------------------------------------------------
#
echo -n "Sisestage suvaline täisar... | true |
b747f28ab4d39af0f890499be61244fc1b07d66d | Shell | mamercad/firewalld-block-ipset | /firewalld-block-ipset.sh | UTF-8 | 2,608 | 3.90625 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/bin/bash
# Get script root directory, solution courtesy of Dave Dopson via (https://stackoverflow.com/a/246128)
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
SOURCE="$(readlink... | true |
713c4c908daa1e5a5a9d6d87eb3559a1f71c1dd0 | Shell | yanshg/packer | /base_boxes/packer/scripts/common/vmtools.sh | UTF-8 | 2,985 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
case "$PACKER_BUILDER_TYPE" in
virtualbox-iso|virtualbox-ovf)
mkdir /tmp/vbox
VER=$(cat /home/vagrant/.vbox_version)
mount -o loop /home/vagrant/VBoxGuestAdditions_$VER.iso /tmp/vbox
NEEDPATCH=''
if [ "x$VER" == "x4.3.12" ]; then
# need apply a patch for VirtualBox Guest Addit... | true |
4359aa69593b819f865c5d5198fdb9c45a415eae | Shell | Bernie-Mason/.bash | /global/Scripts/griu | UTF-8 | 3,957 | 4.46875 | 4 | [] | no_license | #!/bin/bash
#
# pattern based git rebase tool
#
# Rebases onto a branch based on a provided pattern.
# If more than one match is found, the tool provides a list of options that may be selected.
#
# By default the script only searches local branches. However it can also search remotes by
# providing the all action.
#
... | true |
bc7a3ed2151975ec46a5003f446b35934cef60d1 | Shell | T-Systems-MMS/skoop-deployment | /docker-compose/deploy-from-sources.sh | UTF-8 | 3,577 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Set default build context if not set as environment variable.
if [ -z "$BUILD_CONTEXT_DIR" ]; then
BUILD_CONTEXT_DIR="$HOME/skoop"
fi
# Prepare variables for build context directories.
SKOOP_SERVER_DIR="$BUILD_CONTEXT_DIR/skoop-server"
SKOOP_WEBAPP_DIR="$BUILD_CONTEXT_DIR/skoop-webapp"
MAVEN_C... | true |
6ec9587299322712dcb6c3c2617390b0caaeeba2 | Shell | shenyuanv/os-whoopsie-daisy | /backend/setup/run | UTF-8 | 1,720 | 3.296875 | 3 | [] | no_license | #!/bin/sh
set -e
IDS=
WORKING=
cleanup () {
[ -n "$IDS" ] && euca-terminate-instances $IDS
[ -n "$WORKING" ] && rm $WORKING
}
trap cleanup TERM INT
OUT="$(./create_instance init_cassandra.sh medium | tee /dev/fd/2 )"
CASSANDRA_IP="$(echo "$OUT" | grep "Instance available:" | cut -d' ' -f3)"
IDS="$IDS $(echo... | true |
f5a20c5a9947f52c869ac3f4d151d0fe53a3db99 | Shell | fredmeek/prismademo | /scan.sh | UTF-8 | 481 | 3.046875 | 3 | [] | no_license | #!/bin/sh
api_response=`curl -s -H 'content-type: application/json' https://scan.api.redlock.io/v1/iac --data-binary "@AWS_S3_TFT.json"`
rules_matched_count=`jq '.result.rules_matched|length' <<< $api_response`
echo "rules matched count: $rules_matched_count";
if [ "$rules_matched_count" -ne 0 ];then
echo "Build... | true |
754e1ee2f7a82ea73560e4624d9ff12e67715b7a | Shell | sunliang711/ss2 | /optimize/kcptun/kcptun | UTF-8 | 2,242 | 3.96875 | 4 | [] | no_license | #!/bin/bash
ROOT=/kcptun
cd "$ROOT"
prgname=$(ls server_linux*)
echo "---------------------------------------------------"
echo "kcptun app name is: $ROOT/$prgname"
echo "kcptun config file is :$ROOT/config.json"
echo "---------------------------------------------------"
start(){
if [ -z "$prgname" ];then
e... | true |
3a51cfda31d55a75b62bdd2b460d4d1f7211659a | Shell | turnkeylinux-containers/php-fpm | /overlay/usr/share/tklc/conf/php-fpm | UTF-8 | 1,100 | 3.03125 | 3 | [] | no_license | #!/bin/bash
set -exuo pipefail
apt-get install "php${PRODUCT_VERSION}-fpm"
set_config () { sed -i "s#^;\?\(${2}\) = .*\$#\1 = ${3}#" "${1}"; }
CONFIG="/etc/php/${PRODUCT_VERSION}/fpm/php-fpm.conf"
POOL_CONFIG="/etc/php/${PRODUCT_VERSION}/fpm/pool.d/www.conf"
set_config "${CONFIG}" daemonize no
set_config "${CONFIG}"... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.