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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
136724ce69f3c5f25b248770904c09ea136fffc4 | Shell | bgoonz/UsefulResourceRepo2.0 | /_REPO/MICROSOFT/cocos2d-x/tools/jenkins-scripts/slave-scripts/tests/tizen-build.sh | UTF-8 | 652 | 2.828125 | 3 | [
"MIT"
] | permissive | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
COCOS2DX_ROOT="$DIR"/../../../..
cd ${COCOS2DX_ROOT}
cocos compile -p tizen --tizen-arch arm -s tests/cpp-tests
if [ ! $? = 0 ]; then
echo "compile cpp-tests error"
exit 1
fi
cocos compile -p tizen --tizen-arch arm -s tests/cpp-empty-test
if [ ! $? = 0 ];... | true |
6082cb8d8fd32165031b1b9bc36acc6f47a5886a | Shell | zenika-open-source/hygie | /.circleci/scripts/docker_push.sh | UTF-8 | 298 | 2.640625 | 3 | [
"MIT"
] | permissive | VERSION=$1
VERSION="${VERSION:1}"
echo "> build"
docker build -t my-webhook:$VERSION ../../.
echo "> login"
docker login -u $DOCKER_USER -p $DOCKER_PASS
echo "> tag"
docker tag my-webhook:$VERSION dxdeveloperexperience/hygie:$VERSION
echo "> push"
docker push dxdeveloperexperience/hygie:$VERSION
| true |
5873498cadd4666ca5b080659b6c30d99203aee4 | Shell | YingLin-NOAA/pcpanl | /util.dev/send2rzdm.sh | UTF-8 | 2,035 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#BSUB -J pcpanl_send2rzdm
#BSUB -P RTMA-T2O
#BSUB -o /gpfs/dell2/ptmp/Ying.Lin/cron.out/send2rzdm_pcpanl.%J
#BSUB -e /gpfs/dell2/ptmp/Ying.Lin/cron.out/send2rzdm_pcpanl.%J
#BSUB -n 1
#BSUB -q "dev_transfer"
#BSUB -W 0:10
#BSUB -R "rusage[mem=300]"
#BSUB -R affinity[core(1)]
set -x
module purge
module load... | true |
dc8640f2420ce80469d32d440f4e296bfc20c442 | Shell | yw595/AllUtils | /Bioinformatics/trimLines.sh | UTF-8 | 103 | 2.515625 | 3 | [] | no_license | #!/bin/bash
awk -v maxLen=$3 'length>maxLen && $0 ~ />/{len=length;$0=substr($0,0,maxLen)};1' $1 > $2
| true |
4d97c780af7573235e177cbe9d0d369efd7702b1 | Shell | preghenella/uTOF | /scripts/processStripRun.sh | UTF-8 | 295 | 3.171875 | 3 | [] | no_license | #! /bin/bash
# loop over strips
for strip in {0000..1637}; do
while [ $(ps -ef | grep uTOFstripWriter | grep -v grep | wc -l) -ge 3 ]; do sleep 60s; done
if [[ $strip == "0000" ]]; then ./processStrip.sh $strip true
else ./processStrip.sh $strip false
fi
sleep 60s
done | true |
523bf113467f9cab0333f2e44fde69a6e2900789 | Shell | kujyp/snippets | /shell/cut.sh | UTF-8 | 398 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
CUDA_VERSION_MAJOR=8
CUDA_VERSION_MINOR=0
CUDA_VERSION_PATCH=61
CUDA_VERSION=${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR}.${CUDA_VERSION_PATCH}
echo $CUDA_VERSION | cut -d '.' -f1 # == 8
echo $CUDA_VERSION | cut -d '.' -f2 # == 0
echo $CUDA_VERSION | cut -d '.' -f3 # == 61
echo $CUDA_VERSION | cut ... | true |
7970a481a8bba28326f4ded6780b8ab5cbf3bd5d | Shell | longbigbronzeelephantfish/tp3-boilerplate-test | /mariadb/run | UTF-8 | 834 | 4.03125 | 4 | [] | no_license | #!/bin/bash
if [ $1 = 'create' ]
then cmd="docker create --name db -p 3306:3306 -v /dev-data:/var/lib/mysql --env-file ./secrets.env mariadb"
elif [ $1 = 'start' ]
then cmd="docker start db"
elif [ $1 = 'status' ]
then cmd="docker ps -f name=db"
elif [ $1 = 'stop' ]
then cmd="docker stop db"
elif [ $1 = 'delete' ... | true |
8988468b6370906dd541d84015521196c6c2e192 | Shell | lukechilds/umbrel-os | /stage2/01-sys-tweaks/files/rc.local | UTF-8 | 2,671 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP addres... | true |
c10ff251d7777c162449770782f98760e3f036ad | Shell | PostHog/charts-clickhouse | /scripts/clickhouse_operator_sync.sh | UTF-8 | 3,400 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# This tool fetches and formats 'Altinity/clickhouse-operator'
# k8s resource definitions into our chart.
#
# Why do we need this? The 'clickhouse-operator' doesn't expose a Helm
# package so we need to collect and bundle the resources by our own.
#
set -e
set -u
set -o pipefail
CURRENT_DIR="$( ... | true |
63d2dccecca07ae292a336b5330020ff237fe1d0 | Shell | hobama/ideam | /tasks/apigateway/patch.sh | UTF-8 | 2,034 | 2.78125 | 3 | [] | no_license | #!/bin/ash
RED='\033[0;31m'
NC='\033[0m'
YELLOW='\033[1;33m'
GREEN='\033[0;32m'
echo -e "${YELLOW}[ INFO ]${NC} Deleting API upstream URL"
curl -XDELETE "http://localhost:8001/apis/landing"
if [ $? -eq 0 ]; then
echo -e "${GREEN}[ OK ]${NC} Success Deleting Landing API upstream URL"
else
echo -e "${RE... | true |
8d1bebd51d317c199141825b9c101b7a20781af3 | Shell | hasanalanya/Master_Bash_Shell_Scripting | /script.sh | UTF-8 | 217 | 3.3125 | 3 | [] | no_license | #!/bin/bash
read -p "give me a number " numb
echo "-----------------------"
if [ $num -eq 18 ]; then
echo "it is 18"
else
echo "it is not 18"
fi
if [ $num -ne 18 ]; then
echo not 18"
else
echo "it is not 18"
fi | true |
cb003f196912912aa8c3b2a75de3301ebe55f8c5 | Shell | raphael-proust/mirage | /regress/block/kv_ro_direct.sh | UTF-8 | 307 | 2.8125 | 3 | [] | no_license | #!/bin/sh
case $1 in
prerun)
rm -rf tmpx
mkdir -p tmpx
echo 12345 > tmpx/bar
dd if=/dev/zero of=tmpx/bar2 count=1 bs=4098
echo 12345 >> tmpx/bar2
dd if=/dev/zero of=block/simplekv.img bs=512 count=8192
mir-fs-create tmpx block/simplekv.img
rm -rf tmpx
;;
*)
;;
esac
| true |
351750ef92867b42f63ec927b94e3220c2b2c82b | Shell | notaiax/42piscine | /d10/ex06_migriver/test.sh | UTF-8 | 376 | 2.828125 | 3 | [] | no_license | #!/bin/sh
try() {
echo "$2" | cat -e > /tmp/test-d10-ex06
echo "./do-op $1; want: $2."
./do-op $1 | cat -e | diff - /tmp/test-d10-ex06
}
try "" ""
try "42 + 21" "63"
try "1 + 1" "2"
try "42amis - -20toto12" "62"
try "1 p 1" "0"
try "1 + toto3" "1"
try "toto3 + 4" "4"
try "foo plus bar" "0"
try "25 / 0" "Stop :... | true |
b07c6f861714724edfcfed77dc6faadf33ee4c75 | Shell | samar-agrawal/remix | /remix/scripts/hogwarts.sh | UTF-8 | 381 | 3.203125 | 3 | [
"MIT"
] | permissive | max=59
for i in $(seq -f %02g 4 $max)
do
echo "Downloading and converting chapter: ${i}"
wkhtmltopdf http://www.fictionalley.org/authors/bethany/LEAH${i}.html lily_evans_${i}.pdf
done
echo "Merging files to a single pdf"
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=hogwarts_history.pdf lily_evans_*.p... | true |
87aab7929573ca78931264de7c9819abdf77681b | Shell | maxssinistre/korn | /soundcloud_search.ksh | UTF-8 | 2,687 | 3.640625 | 4 | [] | no_license | #!/bin/ksh
CONFIG=.temp
DATE=$(date +%Y%m%d%H%M%S)
ALBUM=0
SETS=0
TRACKS=0
EVERY=1
function usage {
echo "
app for downloading from souncloud and searching
-c page count to download
-p parralellism - how many downloads at once allowed
-s put what you want to search for here.
*note enclose search... | true |
33f4ae40f82ad21a2182f59675187ea20de1aa3d | Shell | TUDSSL/TICS | /msp430-gcc-tics/download-sources.sh | UTF-8 | 852 | 4.03125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
dirname="msp430-gcc-7.3.1.24-source-full"
filename="$dirname.tar.bz2"
download_url="http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/6_0_1_0/exports/msp430-gcc-7.3.1.24-source-full.tar.bz2"
if [ -d $dirname/gcc ]; then
if [ $(ls $dirname -1 | wc -l) -gt 1 ]; then
echo "More ... | true |
75d0e88bc9bb719fed7a3617010bd651a5b15692 | Shell | gcman/dotfiles | /bin/change-brightness | UTF-8 | 311 | 2.75 | 3 | [] | no_license | #!/bin/sh
# Arbitrary but unique message id
msgId="991050"
xbacklight "$@" > /dev/null
brightness="$(printf %.f $(xbacklight))"
dunstify -a "change-brightness" -r "$msgId" "Brightness: ${brightness}%" "$(getProgressString 15 "#" "-" $brightness)"
canberra-gtk-play -i audio-volume-change -d "change-volume"
| true |
b536d15418496f20226f20794e25adce75d15365 | Shell | aholster/libunit | /framework/scripts/maingen | UTF-8 | 684 | 3.34375 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -ne 1 ];then
echo "ERROR: WRONG NUMBER OF ARGUMENTS"
exit -1
fi
IFS=$'\n'
DIRECTS=$(find ./ -mindepth 1 -maxdepth 1 ! -name *.git* -type d)
printf "#include \"header.h\"\n\n" > $1
printf "int main(int argc, char **argv)\n" >> $1
printf "{\n" >> $1
printf " t_unit *lst;\n\n" >> $1
for direct... | true |
5ca659850e00eaa383ae97c4176fbeaf3bca728d | Shell | aabarbosa/shell | /logging/service.sh | UTF-8 | 342 | 2.96875 | 3 | [] | no_license | mes=$1
file=$2
echo " CPU Usage Time"
grep "^$mes" $file |
egrep -o 'user [0-9]m[0-9].[0-9]+s sys [0-9]m[0-9].[0-9]+s' |
grep -E "user|sys" | sed s/[a-z]//g | awk '{print $1 + $2}'
echo
echo " Histogram"
awk '{print $2}' $file | uniq -c | awk '{$1=sprintf("%-*s", $1, ""); gsub(" ", "=", $1); printf(... | true |
a75e69916581f244af90124cca752768c15d7e3b | Shell | mac01021/dot-local | /script/clean-pyc | UTF-8 | 114 | 3.109375 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
echo "USAGE: clean-pyc {pkg_dir}"
exit
fi
find $1 -name \*.pyc | xargs rm
| true |
1bb83964a475ea3adf1eabe6b33a882da097d447 | Shell | slaclab/smurf-processor-base-docker | /scripts/start_server.sh | UTF-8 | 6,690 | 3.90625 | 4 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
###############
# Definitions #
###############
# Shell PID
top_pid=$$
# This script name
script_name=$(basename $0)
# Firmware file location
fw_top_dir="/tmp/fw"
########################
# Function definitions #
########################
# Trap TERM signals and exit
trap "echo 'An ERROR was fou... | true |
1d7e95e7434c88c4b66358565c347780d07daf79 | Shell | gsimsekfb/calculator-for-testing | /scripts/configure-robo | UTF-8 | 3,197 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env bash
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Get root directory of project
PROJECT_DIR=$(dirname $SCRIPTS_DIR)
cd $PROJECT_DIR
# cmake -H. -Bbuild
# ############################################ 1. openssl #################################
# echo
# echo "---- 1) ... | true |
da14dcd8d34751f6d7d0781c1cab526efea65318 | Shell | shearn89/utilitehs | /toggle-static.sh | UTF-8 | 597 | 3.515625 | 4 | [] | no_license | #!/bin/bash
static_mode () {
sudo tee /etc/network/interfaces <<-EOF
auto lo
iface lo inet loopback
auto p2p1
iface p2p1 inet static
address 192.168.240.96
netmask 255.255.255.0
gateway 192.168.240.254
EOF
}
dhcp_mode () {
sudo tee /etc/network/interfaces <<-EOF
auto lo
iface lo inet loopback
auto p2p1... | true |
d00245b4396fe16666756969cd5d505dca3e0c47 | Shell | photon-platform/.photon | /init/.archive/php.sh | UTF-8 | 825 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
source ~/.photon/ui/_main.sh
clear -x
ui_banner "php"
echo
h1 "php"
echo
sudo apt install -y php
# this currently installs:
# libapache2-mod-php7.2
# php-common
# php7.2
# php7.2-cli
# php7.2-common
# php7.2-json
# php7.2-opcache
# php7.2-readline
echo
h1 "php accessories"
echo
sudo apt install ... | true |
41c92a422fa118814bf81cf8af49a1eb3ccefb67 | Shell | zhiliaoniu/toolhub | /workspace/shell/array.sh | UTF-8 | 157 | 2.890625 | 3 | [] | no_license | #!/bin/sh
arr=( 1 2 3 4 5 )
unset arr[2]
echo ${arr[@]:2} #${arr[1]}
declare -A arr2
arr2=( [one]=one-1 )
arr2[two]=two-2
echo ${arr2[*]}
echo ${!arr2[*]}
| true |
619610c47f489a1a629de6cecc8c718dac20902d | Shell | lgarron/dance-hacking | /python/tools/mp3ify | UTF-8 | 535 | 4.0625 | 4 | [] | no_license | #!/bin/bash
command_exists () {
type "$1" &> /dev/null ;
}
function convert_wav_to_mp3 {
if command_exists lame
then
lame --preset extreme "${1}" "${2}"
else
# 256k is a decent tradeoff for files that might still be reprocessed in the future.
ffmpeg -i "${1}" -ab 256k "${2}"
fi
}
FILE_TYPE="... | true |
661b6d6f2a956613a1a1e8d3c5e5b42286cce8ae | Shell | navikt/dagpenger-old | /scripts/kafka-rest-consume | UTF-8 | 372 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -x
TOPIC=${1:-dagpenger}
CONSUMER_NAME=${2:-${TOPIC}_shell_consumer}
CONSUMER_INSTANCE=${3:-shell_consumer_instance}
docker-compose exec kafka-rest \
bash -c "curl -X GET \
-H 'Accept: application/vnd.kafka.avro.v1+json' \
http://kafka-rest:8082/consumers/$CONSUM... | true |
9ae3be00abb3ec17db1124169619e26a9e652d3f | Shell | seanlokeee/ServianCD | /ansible/run_ansible.sh | UTF-8 | 1,550 | 3.5625 | 4 | [] | no_license | #tells OS to invoke the specified shell to execute commands in this script
#!/bin/bash
set +ex #disables printing of executed commands to the terminal
#convert to json format - removing comma, spaces inside brackets and newlines
#Acts like an array due to brackets, use jq to extract value of array[0]
HOSTS_IP=$(cd .... | true |
67243edea7216b69e2e75c800daf708353e546d9 | Shell | redtommy/kkFileView | /server/src/main/bin/startup.sh | UTF-8 | 2,314 | 3.5 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
#
#############################
# First_Author: 凯京科技
# Second_Author: sanxi
# Version: 1.1
# Date: 2021/09/17
# Description: v1.1:修改进程启动机制为pid形式。
#############################
#
DIR_HOME=("/opt/openoffice.org3" "/opt/libreoffice" "/opt/libreoffice6.1" "/opt/libreoffice7.0" "/opt/libreoffice7.1" "/op... | true |
5ecec54cfe681d1c5f35591d2e291289140a4db8 | Shell | pessoa91/scripts_and_configs | /.bashrc | UTF-8 | 1,377 | 2.578125 | 3 | [] | no_license | #
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ll='ls --color=auto -al'
alias la='ls --color=auto -l'
alias ls='ls --color=auto'
alias hib='systemctl hibernate'
alias pvim='gvim -p'
alias fathura='zathura --fork'
alias L='ssh -Y lhcscrub@lxplus.cern.ch'
alias P='ssh ... | true |
e9c8ea277101786904f0645ef1d6c4673da97083 | Shell | CustomROMs/android_vendor | /st-ericsson/validation/hardware/hats/tools/autotest/scripts/HATS_validation/HDMI_registers/HDMI_Registers.sh | UTF-8 | 4,828 | 3.625 | 4 | [] | no_license | #!/bin/sh
#Guillaume Camus
export LOGFILE=/var/log/HDMI_registers.log
if [ -f $LOGFILE ]; then
rm $LOGFILE
fi
echo "*****************************************************************************" | tee -a $LOGFILE
echo "******************************* HDMI Registers ******************************" | tee -a $LOGFILE
ec... | true |
0f81d8805d544bb457ea6ad6b59cf9464ef69cc3 | Shell | emansoliman/BDMS-Bash--master | /displayTables.sh | UTF-8 | 1,275 | 3.96875 | 4 | [] | no_license | #!/bin/bash
function showTables(){
available_databases=($(ls ./database/$1))
if [[ ${#available_databases[@]} > 0 ]]
then
_db=($(ls ./database/$1))
printf "Your Table(s) \n "
for i in "${_db[@]}"
do
if ! [[ $i == metaData* ]]
then
e... | true |
52bb7a7a686a5f462e65cb3f5c8e8186822a84b1 | Shell | artemdudkin/shell-runner | /data/deploy | UTF-8 | 679 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
command=$1
if [ "$command" == "gtd" ]; then
echo "Deploy '$command', cloning..."
rm -rf ~/_deploy/gtd
mkdir -p ~/_deploy/
cd ~/_deploy/
if git clone git@github.com:artemdudkin/gtd.git gtd; then
cd gtd/
echo "Clone ok, installing libs..."
npm i
echo "Libs ok, building..."
if npm run pro... | true |
482c97f87a2c8d965e1f0aff22f0784fc85eb216 | Shell | uas-at-ucla/suas-2019 | /tools/installation/install.sh | UTF-8 | 5,520 | 3.875 | 4 | [] | no_license | #!/bin/bash
## Start timer of install script
start=`date +%s`;
##########################################################################
# Configuratons
echo "\nHello! Welcome to the UCLA UAS 2018 Software Installation!\n";
## Change to script directory so that the script can be called from anywhere.
cd "$(dirname... | true |
4dfeefdcb620bb73ee52045592b70d274e727a8a | Shell | dacodas/orihime-go | /tools/x509/go-testing/hexdump | UTF-8 | 343 | 2.75 | 3 | [] | no_license | #!/bin/bash
# This is a terrifying pipeline, `od` doesn't output individual octets but rather hexadectets, so there might be an extraneous 0x00 at the end
# `hexdump -C` doesn't display this regrettable behavior, but I'm unsure how to make it happen with `od`
od -x -An --endian=big | tr -d ' \n'| sed -E 's/.{2}/0x&, /... | true |
4752620d3157f0f6239f0ef04d0274e70dd38737 | Shell | dzup/bajavideos | /vk | UTF-8 | 535 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#
# Descarga videos de vk
# Ernesto Bazzano (El Bazza)- Licencia AGPL
# basado en el trabajo de Dzup para u3mx.com
#
# descarga el contenido de laa pagina de embed
html=$(wget "$1" -qO -)
# obtiene variables
echo "vtag
uid
host
title"| while read NOMBRE; do
eval $NOMBRE=$(echo "$... | true |
b255bf47f0d3de91e138b6a9120fc35cf0c00227 | Shell | apache/arrow | /dev/release/05-binary-upload.sh | UTF-8 | 3,673 | 3.21875 | 3 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"NTP",
"OpenSSL",
"CC-BY-4.0",
"LLVM-exception",
"Python-2.0",
"CC0-1.0",
"LicenseRef-scancode-protobuf",
"JSON",
"Zlib",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-licens... | permissive | #!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... | true |
875ac220d45e9a8a6597ca7e472e79eb23a8be72 | Shell | howardcochran/hcc-dotfiles | /bin/pingmon | UTF-8 | 976 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Quick & dirty script to monitor connectivity to a host by pinging.
# It is noisy when server is not responding but quiet when it is answering
# normally, except that it outputs one message on transition from
# not-answering to answering.
# This makes it much easier to use for monitoring purposes than plai... | true |
a4c9fd7aa4a44cb6214acbbd091fef61dc0d1755 | Shell | iit-Demokritos/clarin-el-annotation-tool | /docker/restart.sh | UTF-8 | 367 | 3.53125 | 4 | [] | no_license | #!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ ! -f "${SCRIPT_DIR}/env" ]; then
echo "File does not exist: ${SCRIPT_DIR}/env" 1>&2
echo "Please copy file \"${SCRIPT_DIR}/env-dist\" to \"${SCRIPT_DIR}/env\", and modify it accordingly!" 1>&2
exit 1
fi
bash... | true |
d94d272bb8ec8cdb14cf37e49c6f49157b08718e | Shell | marqui5/op | /shell.sh | UTF-8 | 20,714 | 3.09375 | 3 | [] | no_license | #!/bin/bash
编写shell脚本循环创建100个用户(user_[0-99])
for((i = 0; i < 100; i++));
do
useradd user_$i;
done
# 统计shell.sh文件的行数
wc -l shell.sh
# 查看版本信息
uname -a
cat /proc/version
lsb_release -a
ls /boot
# 统计cpu占用前十的进程
ps aux | sort -k3 | head -10
# 查看物理CPU个数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
# 查看每个物理CPU中cor... | true |
fbee427b8d52b806ae0b848588ce1fda2f9e6e4a | Shell | esirola/oh-my-zsh | /plugins/srs/srs.plugin.zsh | UTF-8 | 925 | 3.140625 | 3 | [
"MIT"
] | permissive | # -*-sh-*-
(( ${+ES_SRS_ROOT} )) || export ES_SRS_ROOT=$HOME/sp
function srspath {
source $ES_SRS_ROOT/$1/activate.sh
export CPPFLAGS="-I$ES_SRS_ROOT/$1/QuantLib -I$ES_SRS_ROOT/$1/QuantKit -I$ES_SRS_ROOT/$1/Shaft"
export LDFLAGS="-L$ES_SRS_ROOT/$1/splibs/current/lib64"
export PATH="$ES_SRS_ROOT/$1/spl... | true |
c785bda39339e4590c974c23a8d7d3540c56b7e7 | Shell | ivnmaksimovic/ci-cd | /conf/template.conf | UTF-8 | 667 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Name of the app as it will be on the server
APPNAME="example.com"
# Server ip address
SERVER_IP="100.100.10.100"
# Server user with proper permissions to ssh into server
SERVER_USER="username"
# Path on server where to upload the build
SERVER_BUILDS_PATH="/home/${SERVER_USER}/apps/${APPNAME}/b... | true |
12b7b05df7fc7488672f1c2ba9c4cd55ff7d5190 | Shell | howardqiao/ugeek-screen-setup | /screen_setup.sh | UTF-8 | 15,980 | 2.75 | 3 | [] | no_license | #!/bin/bash
BLACKLIST="/etc/modprobe.d/raspi-blacklist.conf"
CONFIG="/boot/config.txt"
CMDLINE="/boot/cmdline.txt"
FONT="ProFont6x11"
FBCP="/usr/local/bin/fbcp"
SPEED="80000000"
ROTATE="90"
FPS="60"
RESOLUTION="640x480"
RESOLUTION_TEMP="640x480"
HDMIGROUP="2"
HDMIMODE="4"
HDMICVT=""
OUTPUT_DEVICE="BOTH"
SCREEN_BLANKING... | true |
d6dd970ef235269d775d9f77276b6aee16ce876c | Shell | el-chay/shell-tournament | /self-edit.bash | UTF-8 | 291 | 2.859375 | 3 | [] | no_license | #!/bin/bash
echo Hello there ...
# @@DELETE-START@@
if grep -q @@DELETE-START@@ $0; then
function self_delete { sleep 10; sed /@@DELETE-START@@/,/@@DELETE-END@@/d $0; }
nohup self_delete &> /tmp/self-delete.log &
fi
echo You can see this only once
# @@DELETE-END@@
echo 'Bye bye!'
| true |
e1917196cc1611f685a3e66ccb040c33fac0dbc4 | Shell | animuxOS/Genesis64 | /usr/share/animux-installer/modules/00-hd-tools.bm | UTF-8 | 6,426 | 3.953125 | 4 | [] | no_license | #!/bin/bash
#
# Steps that need to be done:
# Find alls disks
# Check each disk for Linux-Partitions (>2.2 GB)
# echo found disks
#
function fdisk_l
{
LANGUAGE=C LANG=C LC_ALL=C fdisk -l "$@"
}
function find_swap_partitions
{
NOSWAP=""
checkbootparam "noswap" && NOSWAP="yes"
[ -n "$NOSWAP" ] && ... | true |
b4fd10a4d971fcd09e4c1132e47b4e2af7667f19 | Shell | Gurvinder748418/Linux_Bash_script | /Bash_Scripts/simple_FileCheck/file_check.sh | UTF-8 | 92 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
FILE=$1
if [ -e "$FILE" ]
then
echo "file exit "
else
echo "file not exit"
fi
| true |
68dcbdb2216d441f7e9d2ba876e4cae547c80407 | Shell | ride2ubaye/pip-issue8413 | /tests.sh | UTF-8 | 482 | 2.671875 | 3 | [] | no_license | #!/bin/bash
PYPI=https://pypi.org/simple/
#NEW_RESOLVER="--unstable-feature=resolver"
for i in {1..10};
do
echo "pip issue#8413 - iteration $i";
rm -rf venv.$i
python3 -m venv venv.$i
source ./venv.$i/bin/activate
pip install --upgrade --index-url $PYPI --no-cache-dir pip setuptools wheel pipde... | true |
174ea8700237c9b0bc253237223c369134785dc1 | Shell | gravitational/teleport | /build.assets/changelog.sh | UTF-8 | 492 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# This script generates a PR diff between the provided base tag and the tip of
# the specified base branch.
set -eu
COMMIT=$(git rev-list -n 1 v$BASE_TAG)
DATE=$(git show -s --date=format:'%Y-%m-%dT%H:%M:%S%z' --format=%cd $COMMIT)
gh pr list \
--search "base:$BASE_BRANCH merged:>$DATE" \
--lim... | true |
a38d3301e86cbe7a7126d608725a9aeb3415e46a | Shell | mcclanahoochie/from_google_code | /bash_scripts/format_sources.sh | UTF-8 | 829 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
echo "formatting files..."
ARGS=' --style=java --indent=spaces --pad-oper --pad-header --unpad-paren --add-brackets --add-one-line-brackets --keep-one-line-blocks --keep-one-line-blocks --keep-one-line-statements --align-pointer=type '
find . -name '*.cpp' -print -exec astyle $ARGS {} \;
find . -name '*.c... | true |
3bd6e7b9170e105516fad753a00eb60efb9e4078 | Shell | madpin/daftlistings | /deploy_docs.sh | UTF-8 | 289 | 2.75 | 3 | [
"MIT"
] | permissive | if [ $# -eq 0 ]
then
echo "No commit message supplied"
exit 0
fi
mkdocs build
mv -v site ~/
git checkout gh-pages
rm -rf *
cp -a ~/site/ .
git add .
git commit -m "$1"
git push
rm -rf ~/site
git checkout master
virtualenv env
source env/bin/activate
pip install -r requirements.txt
| true |
aff11c195d432894a0319ab69b00553545ed7279 | Shell | michaelsalisbury/builder | /kickstart/ubuntu/l.xubuntu-Disk-Station/early_command.sh.disk-station.v00 | UTF-8 | 9,570 | 3.15625 | 3 | [] | no_license | #!/bin/sh
#!/bin/dash
LOGS="/root/root/early_command"
main(){
# SOURCE common functions
source_funcs common_funcs
#pause_install_early /tmp/early-command-pause -n 30 .. /tmp/early-command-pause ..
# TESTING; setup DNS and Apt-Cache-Proxy
#chroot /root /bin/sed -i '1,/^iface lo inet loopb... | true |
c8e3e3cce829a41495adcc656f15ee972d963956 | Shell | ibm-avocados/docker-cp4apps | /scripts/run.sh | UTF-8 | 1,966 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# $1 - ENTITLED_REGISTRY_PASSWORD - the key for the entitled registry (https://myibm.ibm.com/products-services/containerlibrary)
# $2 - APIKEY - IBM Cloud API key
# $3 - CLUSTER - The cluster ID
# $4 - Absolute path of the data/ directory on the host machine
CP4APPS_VERSION="4.2.1"
# Disable chec... | true |
dfb4d09c37a971305497bf843c2955b4a3027bc8 | Shell | GagziW/flower-baseline | /src/run-clients_pt.sh | UTF-8 | 394 | 2.953125 | 3 | [] | no_license | #!/bin/bash
SERVER_ADDRESS="12.12.12.101:8888" #"192.168.15.91:8888"
NUM_CLIENTS=2
I_START=0
I_END=1
echo "Starting $NUM_CLIENTS clients."
for ((i = $I_START; i <= $I_END; i++))
do
echo "Starting client(cid=$i) with partition $i out of $NUM_CLIENTS clients."
python client_pt.py \
--cid=$i \
--ser... | true |
cc6877713ee9760e686f992b4bde20583546dd98 | Shell | tskalicky/ngs | /phylogeny/PB_GTRCAT_m6A_METTLs_META.sh | UTF-8 | 2,573 | 2.515625 | 3 | [] | no_license | #!/bin/bash
#PBS -l select=1:ncpus=8:mem=20gb:scratch_local=20gb:os=debian9
#PBS -l walltime=720:00:00
#PBS -q default@wagap-pro.cerit-sc.cz
#PBS -j oe
#PBS -N PB_m6A_METTLs_trees
# initialize the required application
module add raxml-8.2.8
module add phylobayes-3.3b
module add blast+-2.6.0
#NOTE - os=debian9 parametr ... | true |
d20a6b26791c7b3efd45e862cc90fa0e7d3a2013 | Shell | Manjaro-Pek/lemonpanel | /bin/volume | UTF-8 | 603 | 3.28125 | 3 | [] | no_license | #!/bin/bash
panel_volicon()
{
volStatus=$(pulseaudio-ctl full-status | awk '{print $2}')
volLevel=$(pulseaudio-ctl C)
if [ "$volStatus" == "yes" ]
then echo $GREEN " ${volLevel}"
elif [ "$volStatus" == "no" ]
then echo $RED " ${volLevel}"
else echo " ?... | true |
5a97b896efb5f9173d0b873c284152fcf47b61ef | Shell | droooi/scrap | /rename2 | UTF-8 | 1,009 | 3.390625 | 3 | [] | no_license | #!/bin/bash
if [ ${1:-normal} = "--help" ]; then
echo rename2 昔mac osXにrenameが無かった時に作った
echo 注意 カレントディレクトリの全ファイルが対象
echo -----------------------
echo Example
echo rename2 pattern_str replace_str {opt}
echo "opt:all (全一致)"
echo ls => abc.sh xxx.c zzabcd.js
echo rename2 abc def
echo abc.sh => def.sh
... | true |
3a6250df15bc95ecb113cdbcbf42f4d3f9e892b1 | Shell | aee11/tcztools | /install | UTF-8 | 357 | 2.875 | 3 | [] | no_license | #!/bin/sh
#copy-over install (instead of mounting the tcz)
for dep in $(cat tcztools.tcz.dep); do
tce-load -i $dep &>/dev/null
done
sudo mkdir -p /usr/local/lib/tcztools
for f in aliases die config; do
sudo ln -sf "$PWD"/$f /usr/local/lib/tcztools/
done
for f in tcz-pack tcz-submit tcz-umount; do
sudo ln... | true |
30dc8632ccdc73971f0c50f579c2ace63180235b | Shell | mercury131/otus-linux | /lesson5/auto/watcher.sh | UTF-8 | 171 | 3.421875 | 3 | [] | no_license | #!/bin/bash
WORD=$1
LOG=$2
DATE=`date`
if grep -q $WORD $LOG; then
echo "WORD $WORD found in $LOG - $DATE"
else
echo "WORD $WORD NOT found in $LOG - $DATE"
fi
| true |
1b3af0017c174f3e08462576cdec7c7209f2829c | Shell | ElKoper/LinuxConfiguration | /source/.bashrc_other/bashrc_prompt.sh | UTF-8 | 1,574 | 3.359375 | 3 | [] | no_license | # Bold: 1 - true, 0 - false
Bold=0
# Colors with \[ ... \] enclosure (bash ignore them when computing the length of the prompt)
Black='\[\e[${Bold};30m\]'
Red='\[\e[${Bold};31m\]'
Green='\[\e[${Bold};32m\]'
Yellow='\[\e[${Bold};33m\]'
Blue='\[\e[${Bold};34m\]'
Purple='\[\e[${Bold};35m\]'
Cyan='\[\e[${Bold};36m\]'
LGra... | true |
40545817dfd08634982e55285b522ca24eb9ac4e | Shell | njt1340953658/TableList | /publish.sh | UTF-8 | 951 | 3.25 | 3 | [] | no_license | #!/usr/bin/env bash
if [ -d "./dist" ];then
echo "\033[31m ====dist文件夹已存在=======end====\033[0m"
read -p "您是否要重新执行打包命令(y/n): " command
if [ "$command" == "y" ];then
rm -rf dist
exitIfNeed '删除dist文件失败'
echo -e "\033[44;37mcommand =====开始build========start=====\033[0m"
yarn build
exitIfNeed '====Build ubo... | true |
f48cf4068369dd5ee5166bc23ce110d1249480ed | Shell | syvanpera/dotfiles-yadm | /scripts/rofi-tools.sh | UTF-8 | 573 | 3.171875 | 3 | [] | no_license | #!/usr/bin/env bash
function main() {
local sel=$(echo -e "1 display setup\n2 scrot to blog\n3 nerd font\n4 k8s namespace\n5 k8s context\n6 edit configs" | rofi -dmenu -p 'Tools')
case "${sel}" in
"1 display setup") ~/scripts/rofi-display-setup.sh;;
"2 scrot to blog") ~/scripts/scrot-to-blog.s... | true |
0e43d86d0e50ec056aba5132d4ddca38a881e480 | Shell | oesteban/bidsutils | /BIDSto3col/BIDSto3col.sh | UTF-8 | 4,396 | 4.15625 | 4 | [] | no_license | #!/bin/bash
#
# Script: BIDSto3col.sh
# Purpose: Convert a BIDS event TSV file to a 3 column FSL file
# Author: T Nichols t.e.nichols@warwick.ac.uk
# Version: 1.1 17 Feb 2016
#
# Extension to give created 3 column files
ThreeColExt="txt"
# To avoid headaches with spaces in filenames, replace spaces in event names
... | true |
0fbb66fa4b01516c4a3b0abf4259beeb3fb66ebe | Shell | nevesnunes/env | /linux/bin/rip-iso.sh | UTF-8 | 284 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -eu
info=$(isoinfo -d -i /dev/sr0)
# ||
# isosize -x /dev/sr0
bs=$(echo "$info" | grep -i 'block size' | grep -oE '[0-9]*')
[ -n "$bs" ]
vs=$(echo "$info" | grep -i 'volume size' | grep -oE '[0-9]*')
[ -n "$vs" ]
dd if=/dev/sr0 of="$PWD/out.iso" bs="$bs" count="$vs"
| true |
c1c0e4c2d0e60776e23b5a922c1c37aca69cb69c | Shell | ohsu-comp-bio/dryads-research | /experiments/AML_scRNA_analysis/run_analysis.sh | UTF-8 | 4,113 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=AML_scRNA
#SBATCH --verbose
# Example usage:
# export SBATCH_TIMELIMIT=500;
# sbatch --mem-per-cpu=8000 --account='compbio' -c 4 --exclude=$ex_nodes \
# --output=$slurm_dir/AML-scRNA.out --error=$slurm_dir/AML-scRNA.err \
# dryads-research/experiments/AML_scRNA_analysis/run_analysis.sh \... | true |
518706475ecdaaab95834b3ee7817ccd906e320f | Shell | FrankensteinAI/Netron | /tools/caffe-generate | UTF-8 | 668 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p ../third_party
identifier=caffe
repository=https://github.com/BVLC/${identifier}.git
if [ -d "../third_party/${identifier}" ]; then
pushd "../third_party/${identifier}" > /dev/null
echo "Fetch ${repository}..."
git fetch -p
echo "Reset ${repository}..."
git reset --hard origi... | true |
bb72bc0affc2f113c2254582587cdb149f194de7 | Shell | akouzeli/house_to_rent | /spitogatos_south.sh | UTF-8 | 739 | 3.09375 | 3 | [] | no_license | #!/bin/bash
programname=$0
function usage {
echo "usage: $programname [number_of_days]"
echo " number_of_days can be 3, 7, 30"
exit 1
}
[ -h $1 ] && { usage; }
num=${1:-3}
# Houses with individually adjustable heating - South
ads_south="http://www.spitogatos.gr/search/results/residential/rent/r102/m10... | true |
2c741b3b433f594821e08cdfeed0d4dff7a9cb41 | Shell | hunterxx0/holberton-system_engineering-devops | /0x0F-load_balancer/1-install_load_balancer | UTF-8 | 396 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bash
# configure web-02 to be identical to web-01.
sudo apt-get update -y
sudo apt-get install haproxy -y
sudo -i "s|ENABLED=0|ENABLED=1|" /etc/default/haproxy
sudo sed -i '1i \listen holberton\n\tbind *:80\n\tmode http\n\tbalance roundrobin\n\tserver 1080-web-01 35.231.7.140:80 check\n\tserver 1080-web... | true |
522a154663b809b57ef17127ae193cc42eb49d14 | Shell | neufbox/2.1.5 | /packages/net/batman/files/etc/init.d/batmand | UTF-8 | 1,778 | 3.15625 | 3 | [] | no_license | #!/bin/sh /etc/rc.common
START=90
. /lib/config/uci.sh
uci_load batmand
start () {
interface=$(uci get batmand.general.interface)
if [ "$interface" = "" ]; then
echo $1 Error, you must specify at least a network interface
exit
fi
announce=$(uci get batmand.general.announce)
gateway_class=$(uci get batmand.gene... | true |
dd126554bfe83f0440fdf68fce9162436f719502 | Shell | silenvx/bin | /z2m.sh | UTF-8 | 537 | 3.6875 | 4 | [] | no_license | #!/bin/sh
# zipの中にあるファイルを片っ端からmplayerに渡すプログラム
if [ -f "$1" ];then
pipe=`mktemp -u`
trap "rm \"${pipe}\";exit 1" 1 2 3 9 15
trap "rm \"${pipe}\"" 0
mkfifo "${pipe}"||{ echo 'error: mkfifo';exit 1; }
IFS=$'\n'
for zipInFile in `zipinfo -1 "${1}"|sed -e 's/\[/\\\\\[/g' -e 's/\]/\\\\\]/g'` ;do
... | true |
92421f86fe6c8b57bf67f5865ad9759edab2e1a8 | Shell | TakashiUNUMA/household_accounts | /calculate.sh | UTF-8 | 503 | 3.5625 | 4 | [] | no_license | #!/bin/sh
#
# calculate.sh
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2014/05/24
#
if test $# -lt 1 ; then
echo "USAGE: sh $(basename $0) [input file]"
exit 2
fi
infile=$1
awk '{print $0}' ${infile}
echo "---------------------------"
awk 'NR>3 {sum += $2}END{printf ("Total: %12d... | true |
66fc7112a15e455e009fa7166c0ae70b1b2afb23 | Shell | johatfie/scripts | /mac_upgrade | UTF-8 | 470 | 2.546875 | 3 | [] | no_license | #!/bin/bash
# Requirements:
# - homebrew: https://brew.sh/
# - homebrew tap: buo/cask-upgrade - https://github.com/buo/homebrew-cask-upgrade
# - homebrew mas (Mac App Store command-line interface - https://github.com/mas-cli/mas)
# Update, upgrade all and cleanup
brew update && brew upgrade && brew cu --all --yes --cl... | true |
39048768c4899a4f123f0bfe6448db20ae1f9d25 | Shell | mfvalin/rpnphy | /bin/ouv_exp_rpnphy | UTF-8 | 1,884 | 3.625 | 4 | [] | no_license | #!/bin/ksh
myself=$0
DESC='Open a new RDE experiment with pre-set SRCPATH'
USAGE="USAGE: ${myself##*/} [-h] [-v] [--dodeps]"
#---- Functions ------------------------------------------------------
#====
usage_long() {
toto=$(echo -e $USAGE)
more <<EOF
$DESC
$toto
Options:
-h, --help : print... | true |
b6a15167eae54a515af9644bbc565e396d79673f | Shell | sdothum/dotfiles | /bin/bin/functions/package/arch/upgrade | UTF-8 | 647 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/dash
# sdothum - 2016 (c) wtfpl
# Package
# ══════════════════════════════════════════════════════════════════════════════
# ........................................................... Package management
usage() { usage: "$(basename $0) <package>*"; exit 1; }
conf=/etc/pacman.conf
if [ -z $1 ] ;then
gr... | true |
b51efa578f35b05a635e5aa82386a4879a09fb02 | Shell | nqminds/nqm-tdx-terminal-cli | /package-tool.sh | UTF-8 | 1,497 | 3.453125 | 3 | [
"MIT"
] | permissive | # Create the os package folder
mkdir -p bin/os/
npm install --no-save puppeteer-core
cp config.app.json config.app.json.temp
sed -i 's/"puppeteer"/"puppeteer-core"/g' config.app.json
# Create the packaged binary
pkg package.json --out-path bin/os
mv config.app.json.temp config.app.json
mv ./bin/os/nqm-tdx-terminal-cl... | true |
d88876f16d6c5a331d35b6ba8a491932724be21b | Shell | nzw0301/supervised_fasttext.pytorch | /imdb-classification.sh | UTF-8 | 1,407 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env bash
cd data/imdb
sh imdb.sh
perl ../wikifil.pl < train-data.txt > train-data.txt.normalized
perl ../wikifil.pl < test-data.txt > test-data.txt.normalized
paste train-label train-data.txt.normalized | sed -e 's/^/__label__/g' > train.tsv
paste test-label test-data.txt.normalized | sed -e 's/^/__label__... | true |
18b3d770a53371968830ec9f55488ce2ac34f16a | Shell | gchq/stroom | /dist/set_log_levels.sh | UTF-8 | 7,084 | 4.15625 | 4 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"CDDL-1.0",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"MPL-1.0",
"CC-BY-4.0",
"LicenseRef-scancode-public-domain",
"EPL-1.0"
] | permissive | #!/usr/bin/env bash
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Script to change the log level of multiple class/packages
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set -e
setup_colours() {
# Shell Colour constants for use in 'echo -e'
# e.g. echo -e "My message ${GREEN}with j... | true |
a19dc4aa1e4d825f71347e0218eff857379d7df5 | Shell | lamngockhuong/identity | /app.sh | UTF-8 | 2,533 | 4.15625 | 4 | [] | no_license | #!/bin/bash
IMAGE=ngockhuong/identity:1.0.0
CONTAINER=identity_app
SHARE_VOLUME=app-data
createVolume() {
echo "Create $SHARE_VOLUME volume"
docker volume create --driver local \
--opt type=none \
--opt device=~/develop/project/my-workspace/java/identity/data \
--opt o=bind \
-... | true |
b0d86e25ae1ff8b2af89bc4f48aea9e909cb3590 | Shell | silvanegli/ASL17 | /scripts/upload_script.sh | UTF-8 | 1,416 | 2.5625 | 3 | [] | no_license | #!/bin/bash
#for th in {1..3}; do
# #add parameters to the command
# scp setup_vm_memtier.sh siegliasl$th.westeurope.cloudapp.azure.com:
# ssh siegli@siegliasl$th.westeurope.cloudapp.azure.com "sudo sh /home/siegli/setup_vm_memtier.sh" &
#done
#for th in {4..5}; do
#add parameters to the command
# scp... | true |
bcb58245ad725bfcf5e6d9ba52bae74bdbdad72b | Shell | feidianbo/origin-server | /cartridges/openshift-origin-cartridge-haproxy-1.4/info/bin/deploy.sh | UTF-8 | 670 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Import Environment Variables
for f in ~/.env/*
do
. $f
done
source /etc/openshift/node.conf
source ${CARTRIDGE_BASE_PATH}/abstract/info/lib/util
start_attached_dbs
${CARTRIDGE_BASE_PATH}/abstract/info/bin/deploy.sh
# For auto-scaling disabled, ensure the haproxy control daemon is stopped.
disabl... | true |
8ed32daf00599813c5b183229691354b15e3c815 | Shell | achilsowa/teacher | /app/scripts/minifycss.sh | UTF-8 | 255 | 2.921875 | 3 | [] | no_license | #!/bin/bash
echo '' > $2
if [ -e "$1/$2.css" ]; then rm "$1/$2.css"
fi
if [ -e "$1/$2.min.css" ]; then rm "$1/$2.min.css"
fi
for file in `ls $1/*.css`
do
cat $file >> "$1/$2.css"
done
java -jar yuicompressor-2.4.8.jar "$1/$2.css" > "$1/$2.min.css"
| true |
8ab285986fc1e07fbe762e311a769acb37795036 | Shell | jensp/Arch-Linux-on-i586 | /core/zlib/PKGBUILD | UTF-8 | 641 | 2.84375 | 3 | [] | no_license | # Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgname=zlib
pkgver=1.2.3.3
pkgrel=3
pkgdesc="A compression/decompression Library"
arch=('i586' 'i686' 'x86_64')
license=('custom:zlib')
url="http://www.zlib.net/"
groups=('base')
depends=('glibc')
source=("ftp://ftp.archlinux.org/other/zlib/zlib-${pkgver}.tar.gz")
m... | true |
6151ae3f9783ad063d1846a71cbd1a31e9559d0d | Shell | steven-zou/ops-manager-example | /build-pivotal-file | UTF-8 | 1,824 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
script_dir="$( cd "$( dirname "$0" )" && pwd )"
installation_dir="$script_dir/../installation"
version_num="${1:-1.0-build.0}"
stemcell_version="${2:-$($installation_dir/web/scripts/opsman_stemcell_version 2> /dev/null)}"
output_dir="${3:-/tmp}"
set -e
if [[ ! "$#" -eq 3 ]]; then
echo "Usage: ... | true |
b6727ecfe58caf1e1e3f7135d2e1c4b323b9df5a | Shell | KevinGuancheDarias/owge | /docker-ci/dev/images_creation/scripts/wait_mysql.sh | UTF-8 | 532 | 3.6875 | 4 | [] | no_license | #!/bin/sh
retries=120
while (test -z "`mysql -h "$MYSQL_HOST" -u $MYSQL_USER -p"$MYSQL_PASSWORD" $MYSQL_DB -e "SELECT 1 FROM configuration;" 2> /dev/null`"); do
sleep 1
counter=`expr $counter + 1`
if [ $counter -gt $retries ]; then
>&2 echo "We have been waiting for MySQL too long already; failing."... | true |
83016b29b6dca078f36f1195f839911ee4b52b76 | Shell | Schachte/Bash_Framework_Gen | /bin/genNC | UTF-8 | 1,863 | 4.25 | 4 | [] | no_license | #!/bin/bash -p
#---------------------------------------------------------------------------
# genNC - generate Navigation Cell data
#
# This is a sample methodology for developing the data
# needed to fill in the navigationCell data in genPages.
#
# The idea is this... everywhere that a port.conf file lives,
# in the u... | true |
905d418407b72d2003db237761af58086fef9ae9 | Shell | greko6/HAP | /docker/hass/config/bin/make_config/binary_sensor.sh | UTF-8 | 1,742 | 2.890625 | 3 | [] | no_license | #!/bin/bash
cat ../../../../mqtt-bridge/events.log | grep -i contact | grep -iv subscribi |\
grep closed | grep -i smartthings | grep -iv mqtt | cut -d' ' -f 8- | sed -e 's/\ =\ closed//g' |\
sort | uniq | grep -e "^/" | while read i
do
name=`echo $i | sed -e 's/\/contact//g' | awk -F "/" '{print $NF}'`
echo '- p... | true |
2640ed24542cd969dbd458fe32837f4747b85791 | Shell | KdeOs/core | /isl/PKGBUILD | UTF-8 | 833 | 2.703125 | 3 | [] | no_license |
pkgname=isl
pkgver=0.12.1
pkgrel=1
pkgdesc="Library for manipulating sets and relations of integer points bounded by linear constraints"
arch=('x86_64')
url="https://www.ohloh.net/p/isl"
depends=('gmp')
license=('MIT')
options=('!libtool')
source=("ftp://ftp.linux.student.kuleuven.be/pub/people/skimo/isl/${pkgname}-${... | true |
db878e162e34d3bdc93b3390a5859d3131c08a09 | Shell | seips-net/rvm | /scripts/functions/build_config | UTF-8 | 11,736 | 3.703125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
__rvm_setup_compile_environment()
{
typeset __type
typeset -a __types
__types=(
requirements osx_gcc architectures gcc47 bison smartos sunos openbsd
auto_conf_make flags_docs flags_tcltk flags_shared_static flags_threads
)
for __type in "${__types[@]}"
do
rvm_debug "__rvm_se... | true |
2e532c9354941875f98af68c9c3a0fa9ba44d994 | Shell | TwoTau/dotfiles | /polybar/scripts/datetime.sh | UTF-8 | 151 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
hour="$(($(date +"%-I")-1))"
TIMES=( )
echo "${TIMES[$hour]} $(date +"%b %-d / %l:%M:%S %p")" | true |
86002819676a742ed39eac26e35398308ba12cae | Shell | cloudogu/nexus | /resources/util.sh | UTF-8 | 9,789 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# variables
ADMINUSER="dogu-tool-admin-$(doguctl random)"
ADMINPW="$(doguctl random)"
NEXUS_DATA_DIR=/var/lib/nexus
LOGBACK_CONF_DIR="${NEXUS_WORKDIR}/etc/logback"
LOGBACK_FILE="${LOGBACK_CONF_DIR}/logback.xml"
LOGBACK_TEMPLATE_FILE=/logback.xml.tpl
LOGBACK_OVE... | true |
99146f574f774193451f9c2993f6d54a41afb4f2 | Shell | oraoto/archlinux-firecracker | /scripts/build-arch-kernel.sh | UTF-8 | 1,462 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
KERNEL_VERSION=5.11.2
mkdir -p build
cd build
## Install build tools
# pacman -Syu base-devel bc pahole --ignore linux-firmware
## Get kernel source
curl -o linux.tar.xz "https://mirrors.tuna.tsinghua.edu.cn/kernel/v5.x/linux-$KERNEL_VERSION.tar.xz"
tar xf linux.tar.xz
cd linux-$KERNEL_VERSION/... | true |
b815019118eb37003c96d65b6eed12a9dacf2c80 | Shell | ljodal/dotfiles | /home/.zshrc | UTF-8 | 1,750 | 3.015625 | 3 | [] | no_license | # Enable completions from zsh-completions
fpath=(/usr/local/share/zsh-completions $fpath)
autoload -Uz compinit && compinit
export EDITOR=nvim
# Aliases
alias ll='ls -lG'
alias la='ls -AlG'
# Add local bin files to path
export PATH="$HOME/.bin:$PATH"
# gettext (installed with homebrew)
export PATH=$PATH:/usr/local... | true |
90c8c6004d21bcdb8ac236672586b727b42c5436 | Shell | nikkofu/odoo | /odoo_install.sh | UTF-8 | 8,555 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
################################################################################
# Script for installing Odoo on Ubuntu 14.04, 15.04, 16.04 and 18.04 (could be used for other version too)
# Author: Yenthe Van Ginneken
#-------------------------------------------------------------------------------
# This sc... | true |
05fb8619e155de045191b4712bee0873e443994b | Shell | rhanes/kubernetes-gated-deployments | /release.sh | UTF-8 | 759 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
SHA=$(git rev-parse --short HEAD)
TAG=$(git describe)
docker build -t godaddy/kubernetes-gated-deployments:$SHA .
docker tag godaddy/kubernetes-gated-deployments:$SHA godaddy/kubernetes-gated-deployments:$TAG
perl -i -pe "s/tag: [a-zA-Z0-9\.]*/tag: $TAG/" helm/kubernetes-gated-deployments/values.ya... | true |
3aa5076dfa8594ce6d8ef9d419aefb543108422f | Shell | klyed/binance-chain-bridge | /tests/init.sh | UTF-8 | 715 | 2.78125 | 3 | [] | no_license | #!/bin/bash
set -e
echo "Cleaning previous demo environment"
./demo/clean.sh
echo "Building tss clients"
docker build -t tss ./src/tss
echo "Starting ethereum test networks"
BLOCK_TIME=3 ./demo/start-ethereum-environment.sh
echo "Starting binance test network"
./demo/start-binance-environment.sh
echo "Starting val... | true |
25956bff771ddcecf1e71c45fa011b90520a23a8 | Shell | brimworks/make-common | /bin/backtrace | UTF-8 | 323 | 3.546875 | 4 | [] | no_license | #!/bin/sh
# Simple script for running program in gcc and obtaining a backtrace
# if the program fails. Uses a temp file in the current directory.
exe="$1"; shift
trap 'rm backtrace.$$.gdb; exit $?' EXIT
echo "run $@" > backtrace.$$.gdb
echo "where" >> backtrace.$$.gdb
set -e
gdb -f -x backtrace.$$.gdb -batch "$ex... | true |
86e2f4080600df503e5d337e176d722266d8a637 | Shell | arypurnomoz/kubernetes-elasticsearch.docker | /run.sh | UTF-8 | 892 | 3.171875 | 3 | [] | no_license | #!/bin/bash
set -e
if [ ! "$NAMESPACE" ]; then
>&2 echo \$NAMESPACE variable required
exit 1
fi
if [ ! "$SELECTOR" ]; then
>&2 echo \$SELECTOR variable required
exit 1
fi
PEER_NODES=$(curl -s \
--cacert /run/secrets/kubernetes.io/serviceaccount/ca.crt \
-H "Authorization: Bearer `cat /run/secrets/... | true |
72e5a798454cac9a29c9fb7b1279a2141ede4075 | Shell | LIParadise/home_dir | /.zsh/.zshrc | UTF-8 | 5,157 | 3.1875 | 3 | [] | no_license | # mbed-cli bash completion
# https://github.com/eddiezane/lunchy/issues/57
# for more details
autoload -U +X bashcompinit && bashcompinit
autoload -U +X compinit && compinit
# source /home/liparadise/.bash_completion.d/mbed
# End of mbed-cli bash completion
# NTUOSC ml environmental variables
export WORKON_HOME=$HOME... | true |
92daaf4e822532063bdd1dd5f6ec4f85d27342d2 | Shell | xen0bit/gattacker | /mac_adv | UTF-8 | 762 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
echo "Advertise with cloned MAC address"
BDADDR=helpers/bdaddr/bdaddr
. ./config.env
HCIDEV="hci0"
if [ $# -lt 2 ]; then
echo "Usage: sudo $0 -a <advertisement_file> [ -s <services_file> ] "
exit
fi
TARGETID=`echo $2 |cut -d "/" -f 2 | cut -d "_" -f 1`
TARGETMAC=`echo $TARGETID | fold -w2 | paste -... | true |
dd7a263397a2df301db5966e439896faf8694c2e | Shell | cnichols-git/learn_bash | /redirction_1.sh | UTF-8 | 220 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#Echo a full sentence to the terminal
echo "The quiter you are the more you will hear."
#Echo a different full sentence, but redirect it to /dev/null
echo "I am redirecting this to /dev/null" >> /dev/null
| true |
f30b7e1dae245b2a177abc17894f4be67be52e59 | Shell | koraa/pdfbrochure | /pdfbrochure.sh | UTF-8 | 2,436 | 3.6875 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #! /bin/sh
### HELPER #########################################################
inc() { (( $1 = ${!1} + 1)); }
dec() { (( $1 = ${!1} - 1)); }
### HELP ###########################################################
usage() {
(
echo "$@"
echo ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.