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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
81bdeb4dab41885619bea8427777601608f6b951 | Shell | freegit9527/practice-code | /language/Shell/script/try_var.sh | UTF-8 | 875 | 3.453125 | 3 | [] | no_license | #!/bin/bash -
#===============================================================================
#
# FILE: try_var.sh
#
# USAGE: ./try_var.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: liuxueyang (lxy), liuxueyang457@163... | true |
67f589d6b3bb204f3ccb7e2602f8a49914dbc407 | Shell | maranemil/minify_recursive | /minify_recursive.sh | UTF-8 | 2,599 | 4.34375 | 4 | [] | no_license | #!/bin/sh
## original source
# https://github.com/chia/minify_recursive/blob/master/minify_recursive.sh
# Configuration
YUICOMPRESSOR_PATH="/path/to/yuicompressor-2.4.8.jar"
# if you want to enable it for specific directory set it here, by default its current dir
CURRENT_DIR=$PWD
# First argument must be either css... | true |
1da862a7e3ba11d50f76cf33786c54b61813428f | Shell | uniformbuffer/polybar-rofi-themes | /.config/polybar/scripts/update-color.sh | UTF-8 | 932 | 3.265625 | 3 | [] | no_license | #!/bin/bash
function set_color (){
if [[ "$1" =~ ([a-zA-Z0-9\-]+)":".*("#"[a-zA-Z0-9]+)";" ]] ;
then
sed -i -e "s/theme-${BASH_REMATCH[1]} = .*/theme-${BASH_REMATCH[1]} = ${BASH_REMATCH[2]}/g" $HOME/.config/polybar/config.ini
fi
}
raw=$(cat $HOME/.config/rofi/themes/colors.rasi | grep "@import")
if [[ "$raw" =~ "... | true |
d19ac3bc0931bc53ce9c8fdc1bab64b77ea3de95 | Shell | the4thdoctor/pg-scripts | /init_scripts/pgbouncer | UTF-8 | 2,627 | 3.921875 | 4 | [
"PostgreSQL"
] | permissive | #!/bin/bash
### BEGIN INIT INFO
# Provides: pgbouncer
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Should-Start: postgresql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start pgbouncer... | true |
6c6c6912b635b43071bfa52ef6ab3e071a011d44 | Shell | nopsys/CogNOSExperiments | /Performance/scripts/buildAndInstall.sh | UTF-8 | 1,085 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
SCRIPT_PATH="$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )"
if [ ! -d $SCRIPT_PATH ]; then
echo "Could not determine absolute dir of $0"
echo "Maybe accessed with symlink"
fi
source "$SCRIPT_PATH/../../scripts/basicFunctions.inc"
BASE_DIR="$SCRIPT_PATH/../.."
source "$SCRIPT_PAT... | true |
8a57f3630b45280ee590c0a84dd1b48065ce9ae4 | Shell | manuel-192/m-m | /PKGBUILDs/pacman-ext/mirror-swap-eos | UTF-8 | 1,034 | 3.890625 | 4 | [] | no_license | #!/bin/bash
DIE() {
local progname="$(basename "$0")"
echo "$progname: error: $1" >&2
exit 1
}
GetMirror() {
local name="$1"
grep "^Server[ ]*=[ ]*http" $eosmlist | grep -iw "$name" | head -n1
}
Main() {
[ -n "$1" ] || DIE "please give 2 mirror names"
[ -n "$2" ] || DIE "please give 2 mir... | true |
42c7a8160e28f39109dfa684fa566e884ed66be5 | Shell | strimzi/strimzi-kafka-operator | /docker-images/kafka-based/kafka/scripts/kafka_mirror_maker_2_connector_config_generator.sh | UTF-8 | 4,497 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
if [ "$KAFKA_MIRRORMAKER_2_TLS_CLUSTERS" = "true" ]; then
if [ -n "$KAFKA_MIRRORMAKER_2_TRUSTED_CERTS_CLUSTERS" ]; then
TLS_CONFIGURATION=$(cat <<EOF
# TLS / SSL
ssl.truststore.password=${CERTS_STORE_PASSWORD}
EOF
)
fi
if [ -n "$KAFKA_MIRRORMAKER_2_TLS_AUTH_CERTS_CLUSTE... | true |
be06c9ac3bb1534ca9d2f5485569345098f5a185 | Shell | cherylling/OS-kerneltest | /测试套/debug_kprobes_t/debug_kprobes_t_src/testcase/sdv/testRegKprobe_007-3.sh | UTF-8 | 374 | 2.53125 | 3 | [] | no_license | #!/bin/bash
. conf.sh
KO=testRegKprobe_007-3.ko
grep_dmesg1="register_kprobe pass"
echo_mesg1="register_kprobe failed!"
set_up
insmod_success testKprobes_008-A.ko || exit 1
insmod_success $KO || exit 1
if ! grep_mesg "$KO" "$grep_dmesg1" "$echo_mesg1" ; then
clean_up $KO
exit 1
fi
rmmod_ko $KO || e... | true |
3548be92188479c67c7a46e9ab62ebe7ec862642 | Shell | swaron/fruit | /fruit-web/src/main/webapp/static/tools/build.sh | UTF-8 | 939 | 2.71875 | 3 | [
"MIT"
] | permissive |
basedir=$(dirname $0)
cd ${basedir}
if [ -x "/usr/local/bin/node" ]
then
/usr/local/bin/node r.js -o app.build.js
/usr/local/bin/lessc -x -ru --source-map ../libs/bootstrap/3.2.0/less/bootstrap.less ../js/bootstrap/3.2.0/less/bootstrap.min.css
/usr/local/bin/lessc -x -ru --source-map ../libs/bootstrap/3.2.0/less/them... | true |
acea60bb7f74c71fcab05b0d153cd52bffd6c3de | Shell | damienChesneau/docker-gerrit | /gerrit-entrypoint.sh | UTF-8 | 1,321 | 3.53125 | 4 | [] | no_license | #!/bin/bash
set -e
function set_gerrit_config {
gosu ${GERRIT_USER} git config -f "${GERRIT_SITE}/etc/gerrit.config" "$@"
}
function set_secure_config {
gosu ${GERRIT_USER} git config -f "${GERRIT_SITE}/etc/secure.config" "$@"
}
if [ "$1" = "/gerrit-start.sh" ]; then
chown -R ${GERRIT_USER} "${GERRIT_SITE}"
... | true |
b3c2c73b519d2a27d6fb5f34ce67b0744b13fc69 | Shell | IzaakWN/CombineHarvester | /TauID2017/copyResults.sh | UTF-8 | 1,139 | 3.53125 | 4 | [] | no_license | #! /bin/bash
function peval { echo ">>> $@"; eval "$@"; }
while getopts m:t:r option; do
case "${option}" in
t) TAG=${OPTARG};;
m) MESSAGE=${OPTARG};;
r) RM=1;;
esac
done
[ $TAG ] && [[ $TAG != _* ]] && TAG="_${TAG}"
HOST="ineuteli@lxplus.cern.ch"
DIR="TauPOG/plots/TauID/ttbarMeasurement"
EOS="/eos/user/i/ineu... | true |
cced2519fa322f45fbfbe710745050273600ab6e | Shell | Linuus/dotfiles | /.zshrc | UTF-8 | 1,034 | 2.703125 | 3 | [] | no_license | # 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 |
765f49f1b111d29e323b075e3a2b0ebb7dff4bc4 | Shell | mattmurr/scripts | /fzf-passmenu | UTF-8 | 232 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
pushd "${PASSWORD_STORE_DIR:-$HOME/.password-store}"
PASSFILE=`fd -t file -e gpg --color=always \
| sed 's/\.gpg//; s/^\.\///' | fzf --ansi`
popd
[ -z "$PASSFILE" ] && exit 0
pass $1 -c $PASSFILE 1>/dev/null
| true |
d93e7b6ccfee0826f60b94254414f27cfedd6cf9 | Shell | Pyq2022/ImageSensor-ext | /BuilderScripts/compress.sh | UTF-8 | 7,803 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# EYELOCK_WS_EXT is assumed to be set as environment variable
# -----------------------------------------------------------------------------------------------------------
# initializations
TARGET_DIR="${EYELOCK_WS_EXT}/dist/EyelockExtFW"
if [[ -d ${TARGET_DIR} ]]
then
rm -rf "${TARGET_DIR}"
fi
mkdir "$... | true |
ad3c65f0558e4437c554642e2cdc3b71b70ddb89 | Shell | siwo24/docker-tomcat-with-war-from-ssh | /run.sh | UTF-8 | 396 | 2.796875 | 3 | [] | no_license | #!/bin/bash
if [ ! -f /.tomcat_admin_created ]; then
/create_tomcat_admin_user.sh
fi
rm -rf ${CATALINA_HOME}/webapps/*
sshpass -p ${SIWO_SSH_PASSWORD} scp -P ${SIWO_APP_SSH_PORT} -o StrictHostKeyChecking=no ${SIWO_SSH_USER}@${SIWO_IPADDRESS}:${SIWO_PATH_TO_APP}/${SIWO_APP_DIR}/${SIWO_APP_NAME}##${SIWO_APP_VERSI... | true |
a6672e372357ae1db0eb187356c1a69359c208d9 | Shell | mhl787156/wacc_07 | /runWaccFile.sh | UTF-8 | 917 | 3.4375 | 3 | [] | no_license | #!/bin/bash
EXECUTABLE=$(echo "$BASH_ARGV" | sed 's/\(.*\)\..*/\1/')
echo $EXECUTABLE
EXE=`basename $EXECUTABLE`
END=".s"
echo $EXE$END
SFLAG=0
for var in "$@"
do
if [ $var == "-s" ]
then
SFLAG=1
fi
done
if [ $SFLAG -eq 0 ]
then
echo
echo "MAKING!..........................."
echo
make
... | true |
8bb1420c02f1f12ef23e7433948b18a3ccdf18fe | Shell | ryapric/boilerplate | /docker/deb-sysinit.sh | UTF-8 | 1,358 | 4.375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# This script will intialize system requirements for a Debian-based Docker host.
# Specifically, the system will receive:
# - Docker
# - Docker Compose (and python3 utilities to install it, if not present)
#
# Sometimes the host will throw segfaults on Docker Compose install, so it will
... | true |
f0be26e9293ed4b62f22fafc4888828d8e015227 | Shell | moeC137/tagesschau-computer-generated-transcript-archive | /renamer.sh | UTF-8 | 210 | 3.453125 | 3 | [] | no_license | #! /bin/bash
for f in *.srt ; do
new=${f:6:4}${f:5:1}${f:3:3}${f:0:3}${f:10}
if [[ -f $new ]] ; then
echo "Can't rename $f: $new already exists!" >&2
else
mv "$f" "$new"
fi
done
| true |
db344260310bbc2e0e67258793198e6877dae05f | Shell | doomicon/admin-scripts | /locjdbc.sh | UTF-8 | 627 | 3.125 | 3 | [] | no_license | #!/bin/bash
# Cronjob monitor wildfly heap
arrconn=($(/opt/wildfly/bin/jboss-cli.sh -c --controller=$(hostname) --command="/subsystem=datasources/data-source=OracleDS/statistics=pool:read-resource(recursive=true, include-runtime=true)" | grep 'ActiveCount\|AvailableCount'| awk '{print $3}' | sed 's/[,||"]//g'))
#
connu... | true |
2b0a624ed1271049a508e56a8bb913b15ae9a5a8 | Shell | roberth/uu-cs-orc | /timekeeper/run-ghci | UTF-8 | 256 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# A wrapper for ghci with the right dependencies and settings
if ! test ./run-ghci = "$0"
then echo "Invoke as ./run-ghci";
exit 1
fi
if which nix-shell >/dev/null
then nix-shell --show-trace --pure --run "cabal repl"
else cabal repl
fi
| true |
1576c5c5f985928ea70040c5ec5c75868257621c | Shell | vd9hosigi6/gcamp-ros2-seminar | /Setup/ros2_setup.sh | UTF-8 | 1,782 | 3 | 3 | [] | no_license | #!/bin/bash -e
# Reference sites
# https://www.stereolabs.com/blog/ros-and-nvidia-jetson-nano/
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install curl
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
expo... | true |
39ddb95c3c6a47bc988cbe3abc9e0be8016a5893 | Shell | dywisor/omir | /site/src/rootfs/base/FACTORY/site/hooks/rc.firsttime/31-syspatch.sh | UTF-8 | 497 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
[ "${OFEAT_SYSPATCH:-0}" -eq 1 ] || exit 0
print_action "syspatch"
if __retlatch__ syspatch; then
# signalize reboot required
want_auto_reboot
# run again in case there are more pending patches
if __retlatch__ syspatch; then
:
elif [ ${rc} -eq 2 ]; then
: # no patches a... | true |
d0fb214ecf717821852de4da8f0df40055efede2 | Shell | Vizzuality/trase | /bin/git-hooks/postcheckout-bundle-install.sh | UTF-8 | 515 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
PREV_COMMIT=$1
POST_COMMIT=$2
IS_BRANCH_CHECKOUT=$3
check_run() {
echo "Checking for changes in $1"
if [[ -f $1 ]]; then
DIFF=`git diff --shortstat $PREV_COMMIT..$POST_COMMIT $1`
if [[ $DIFF != "" ]]; then
echo "$1 has ch... | true |
a48595731758e640baf8c1f912ad8c2bc452347d | Shell | karamkky/jamf-pro-scripts-1 | /readSingleLineEA.sh | UTF-8 | 361 | 3.46875 | 3 | [] | no_license | #!/bin/sh
# read File a single line from a text file
readFile="/Applications/PCClient.app/Contents/Resources/config.properties"
lineNumber="23"
if [ -e $readFile ]; then
result=`cat "$readFile" | sed -n "$lineNumber p"`
# echo $result
echo "<result>"&& echo $result|tr -d '\n' && echo "</result>"
else
ec... | true |
0fda349ca9b69b538103d29928824870be0de66d | Shell | netqyq/shell-examples | /code/CH12/subsenv.sh | GB18030 | 353 | 3.203125 | 3 | [
"MIT"
] | permissive | #subsenv.shűShell趨bash Shellѡ
#!/bin/bash
( #Shell
set -C #-Cѡֹضʱļ
:> outputnull #ͼðoutputnullļ
)
#ڸShellһļShell-CѡǷԸShellЧ
cat subsenv.sh > outputnull
| true |
5943dbeea63bf4e27132bc66c845373bfaaeb68e | Shell | piboye/conet | /tools/code_stats.sh | UTF-8 | 2,558 | 4.1875 | 4 | [] | no_license | #!/bin/bash
function help()
{
cat <<-EOF
Code stats tools.
Usage code_stats <--options...>
options:
--build BUILD file
--c++ c/c++ code
--html html
--js js code
--llyy lex and yacc
--php php code
--proto proto file
--python python code
--s... | true |
413b962046e3b1edd9ecdf1f454754e22a36180e | Shell | patrickpei/vu | /ees1510/update.sh | UTF-8 | 880 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# Copy over notes
mkdir -p lectures
rm -f lectures/*.md
cp ~/Documents/Github/Vanderbilt/2018-fall/EES1510/lecture-notes/* ./lectures
# README title
printf "## EES1510: The Dynamic Earth: Introduction to Geological Sciences - Dr. Lily Claiborne\n\n" > index.md
# Reading assignments
cat ~/Documents/Github... | true |
5860e94cca02cb5e3f302fcd8940a80804d88bb2 | Shell | Abdelouahedd/dotfiles | /.zshrc | UTF-8 | 1,491 | 2.703125 | 3 | [] | no_license | # If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/$USER/.oh-my-zsh"
# zsh theme loaded from ~/.oh-my-zsh/themes
#ZSH_THEME="agnoster"
ZSH_THEME="cloud"
# Uncomment the following line to use case-sensitive c... | true |
982d7c3de748e5f4b00a81d022b0cf1a1740f728 | Shell | QPC-database/eks-distro | /projects/kubernetes/kubernetes/build/create_images.sh | UTF-8 | 1,767 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2020 Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | true |
bce086c67e18ff2105e4fc20b3c224d77157f7c2 | Shell | luca-98/cma-docker-container | /backup-db.sh | UTF-8 | 883 | 3.4375 | 3 | [] | no_license | #!/bin/bash
REMOTE_NAME="cma-backup-db"
SERVER_NAME="CMA"
TODAY=$(date +"%F")
BACKUP_DIR="/mnt/sdb/database-backup"
BACKUP_TODAY_DIR="$BACKUP_DIR/$TODAY"
BACKUP_FILE="`date +%H:%M:%S`"
POSTGRES_CONTAINER_ID="cma-docker_cma-db_1"
# Begin
mkdir -p $BACKUP_TODAY_DIR
# Backup database
docker exec -t $POSTGRES_CONTAINER_... | true |
2bf524f3bd10467a3dfa3203e302e981eac525f4 | Shell | nizur/dotfiles | /.bashrc | UTF-8 | 2,476 | 2.890625 | 3 | [] | no_license | # Sample .bashrc for SUSE Linux
# Copyright (c) SUSE Software Solutions Germany GmbH
# There are 3 different types of shells in bash: the login shell, normal shell
# and interactive shell. Login shells read ~/.profile and interactive shells
# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all
# se... | true |
1ba505bb3f5880582302133c31270d0a50f8f387 | Shell | JLO64/Hardware-Donations-Desktop-App | /Bash_Scripts/ARK-OS_Pasting | UTF-8 | 517 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# Script to paste files that were downloaded
cd ..
Color='\033[1;34m'
NC='\033[0m' # No Color
echo -e "${Color}Please enter the location to search in: ${NC}"
read part
CURRENTDIR=$(pwd)
PARTHOMEDIR=$part/home/user
echo -e "${Color}Copying Kiwix files${NC}"
cp -rvf /home/user/Desktop/ARK-OS_Installer/Ki... | true |
af375b033fc7f4923f606a06d5a38542a8a5cc73 | Shell | mariuslundgard/simpleweb | /scripts/docker-build.sh | UTF-8 | 384 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# Get current git branch
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
BRANCH=$([ -z "$TRAVIS_BRANCH" ] && echo "$GIT_BRANCH" || echo "$TRAVIS_BRANCH")
function build {
echo "docker build >>> mariuslundgard/simpleweb:$1"
docker build -t mariuslundgard/simpleweb:$1 .
}
if [ $BRANCH = "master" ]
then
... | true |
18bf3a49299d264cb87ce272aa109bd1aa6c0ab8 | Shell | MrHomebrew/Lakka-LibreELEC-1 | /projects/L4T/filesystem/etc/systemd/nvfb.sh | UTF-8 | 3,125 | 3.234375 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this... | true |
6c90b824fa1c6027508a06ef3b735d2a3146a0a4 | Shell | kyma-incubator/marketplaces | /scripts/release.sh | UTF-8 | 3,389 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
readonly SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
readonly REPOSITORY_DIR="$( cd "${SCRIPT_DIR}/../" && pwd )"
readonly RELEASE_VERSION="${PULL_BASE_REF}" # PULL_BASE_REF is provided by Prow
readonly ORGANIZATION="${REPO_OWNER:-"kyma-incubator"}" # REPO_OWNER is provide... | true |
cc923e77594ce0d276cbacb957848b8677e61694 | Shell | brnv/dotfiles | /bin/screenshot | UTF-8 | 1,125 | 3.390625 | 3 | [] | no_license | #!/bin/bash
filename="$HOME/screenshots/$(date +%F-%T | tr : T).png"
if [ "$1" == "import" ]; then
import -trim $filename
elif [ "$1" == "border" ]; then
maim --nokeyboard -s $filename && notify-send "Screenshot with border ready"
convert -bordercolor black -border 1x1 $filename{,.new}
mv $filename{.n... | true |
612c2dc4ebb2d2fa6725b5a2fc7eaec54354bc39 | Shell | shursulei/pythonBigdata | /shell/edit_importdefined.sh | UTF-8 | 515 | 3.046875 | 3 | [] | no_license | #!/bin/bash
shell_dir=/fss;
list="server_ip_domain.txt"
server_ip=(`cat $shell_dir/$list|grep -v "#"|awk -F ':' '{print $1}'`)
app_dir=(`cat $shell_dir/$list|grep -v "#"|awk -F ':' '{print $2}'`)
domain=(`cat $shell_dir/$list|grep -v "#"|awk -F ':' '{print $3}'`)
for((i=0;i<${#server_ip[@]};++i));
do
if [ "$localhost" ... | true |
672f97797e5e1cedc3dd8b3034aaab7d93b59acf | Shell | esclaudio/vagrant | /scripts/provision.sh | UTF-8 | 2,991 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function package_exists() {
dpkg -l "$1" &> /dev/null
}
MYSQL_USER=$1
apt-get update
apt-get -y upgrade
# Apache
if ! package_exists 'apache2' ; then
apt-get install -y apache2
fi
# MySQL
if ! package_exists 'mariadb-server' ; then
apt-get install -y mariadb-server mariadb-client
fi
# PH... | true |
769c1bfc0babae8248565575b5b81a95b957b7dc | Shell | laromicas/firefox-lambda | /xvfb-lambda-entrypoint.sh | UTF-8 | 454 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
kill_child_processes() {
kill -TERM "$lambda"
wait "$lambda"
kill -TERM "$xvfb"
}
# Kill child processes on SIGINT or SIGTERM
trap kill_child_processes SIGINT SIGTERM
XVFB_WHD="${XVFB_WHD:-1280x720x16}"
# Start Xvfb
Xvfb :99 -ac -screen 0 "$XVFB_WHD" -nolisten tcp &
xvfb=$!
# Set DISPLAY environm... | true |
cf2618576b4135f89203ec3b3171213fb0dec1a8 | Shell | SakinaZahra/SP | /task3.sh | UTF-8 | 766 | 3.1875 | 3 | [] | no_license | #!/bin/bash
UNIX=( "Debian" 'Red Hat' "Ubuntu" "Suse" "Fedora" )
echo "The whole array is :" ${UNIX[*]}
echo "The length of array is :" ${#UNIX[@]}
echo "The length of index 2 is :" ${#UNIX[2]}
echo "The length of index 2 is :" ${#UNIX[2]}
echo "Extracting two elements : " ${UNIX[@]:2:2 }
echo "After Searching and R... | true |
e314cbebefae0a08244b75825c2e1a024d347403 | Shell | LucaDillenburg/Shell-Boost | /bin/utils/constants.sh | UTF-8 | 178 | 2.859375 | 3 | [
"MIT",
"BSL-1.0"
] | permissive | #!/bin/bash
function __get_repo_url {
echo "https://github.com/LucaDillenburg/Shell-Boost"
}
function __echo_repo_link {
echo $(__link $(__get_repo_url) $(__get_repo_url))
}
| true |
af73cfdd06842bf69c20d54becc1067f49288b08 | Shell | pgaba007/Shell-Scripts | /leap.sh | UTF-8 | 277 | 3.21875 | 3 | [] | no_license | echo "enter the year you want to check for"
read year
if [[ `expr $year % 100` -eq 0 && `expr $year % 400` -eq 0 ]]
then
echo "ENTERED YEAR IS A LEAP YEAR"
elif [ `expr $year % 4` -eq 0 ]
then
echo "ENTERED YEAR IS A LEAP YEAR"
else
echo "ENTERED YEAR IS NOT A LEAP YEAR"
fi
| true |
5b373c7dc983126e04d3a433e6ced9d88d2570dc | Shell | gabibbo97/arch-setup | /config/roles/apps/zsh/templates/functions/ksmtoggle.zsh | UTF-8 | 271 | 3.203125 | 3 | [] | no_license | ksmtoggle() {
# Check status
if [ "$(cat /sys/kernel/mm/ksm/run)" = "0" ]; then
echo "1" | sudo tee /sys/kernel/mm/ksm/run > /dev/null
printf 'KSM enabled\n'
else
echo "0" | sudo tee /sys/kernel/mm/ksm/run > /dev/null
printf 'KSM disabled\n'
fi
}
| true |
4a9c2c592a4ccae08101a1f05807b4cfcb0454d9 | Shell | arwes/arwes | /apps/perf/scripts/dev.sh | UTF-8 | 349 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ -z $1 ]
then
echo "[INFO] No test names provided."
echo "[INFO] Tests names can be provided as first parameter separated by comma."
echo "[INFO] Using all available performance tests."
npx webpack serve
else
echo "[INFO] Building and watching performance tests \"$1\"..."
npx cross-env TEST_N... | true |
287961d35ae8078e8c08efe0978d4114ff1e4d69 | Shell | herruzo99/CParPractica2 | /test/test_4cores.sh | UTF-8 | 2,810 | 2.59375 | 3 | [] | no_license | # with set -e if any diff fails the scripts ends
set -e
mkdir -p output_modificado
# 150 Standard output_modificado with different arguments
for i in {1..20}
do
echo "Fase $(($i))"
mpiexec -n $(($i*13%3 + 1)) ../evolution 200 25 1000 1000 1 10 $((4424+$i*127)) 6534 2461 $(($i*19059 % 4000 +1)) 5 5 10 10 10 10 | sed --e... | true |
9c7cab9c424e03daaccea62d32aff5f0c2cfcdb5 | Shell | ms705/ciel | /scripts/ciel-killall.sh | UTF-8 | 318 | 3.296875 | 3 | [
"ISC",
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/bash
PROCS=`pgrep -f ciel-process-aaca0f5eb4d2d98a6ce6dffa99f8254b -d ,`
if [[ $PROCS == "" ]]; then
echo "No tagged Ciel processes running"
exit 1
else
PGRPS=`ps --pid $PROCS --no-headers -o pgrp | awk --assign ORS=, "/\w+/ {gsub(/[[:space:]]*/,\"\",\\$0); print \\$0}"`
pkill -9 -g $PGRPS
fi | true |
3d3f23043a214e5a5ba373a9e0c11e0d856933ff | Shell | QPC-database/aws-gateway-load-balancer-suricata-ids-ips-nsm | /Dockerfiles/rulesFetcher/rules-fetcher.sh | UTF-8 | 1,771 | 3.75 | 4 | [
"MIT-0"
] | permissive | #!/bin/bash
shopt -s extglob
IFS=","
removeRuleSources () {
if [[ -n $(ls /var/lib/suricata/update/sources/) ]]; then
for I in /var/lib/suricata/update/sources/*; do
source=$(grep "source:" $I | sed -e 's/source: //')
if [[ ! "$rule_sources_to_be_used" = *$source* ]]; then
... | true |
a4e5463a4703a62101dbb1fd4a48912c4669f833 | Shell | ccolorado/configfiles | /home/bin/vimnote | UTF-8 | 447 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#
# Script that opens note files from a note directory
# with vim on "Note" mode implementing autocompletion
# for current notes
declare -a COMMANDS=($(ls -1 ~/Notes/))
# declare -a COMMANDS=(foo bar blah)
# ---- Completion Start----
# complete -C vimnote vimnote
if [[ -n $COMP_LINE ]]; then
for c in $... | true |
c8a891906526beaaf89de89238edee8b8118bdc2 | Shell | tony-waters/gradle-simple | /.s2i/bin/assemble | UTF-8 | 395 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "-------> assemble called"
echo "---> Installing application source"
cp -Rf /tmp/src/. ./
ls -la /tmp/src
ls -la ./
echo "---> Building"
./gradlew build -x test
echo "---> Copying jar"
#cp /build/libs/gradle-simple.jar ./app.jar
if [ -z $ARTIFACT_PATH ]; then
ARTIFACT_PATH="/build/libs"
fi
cp $... | true |
a8468cb502b67f3cc447401df70e6e5c0821bbc5 | Shell | jkim796/sensor_plot | /test/monitor.sh | UTF-8 | 212 | 3.171875 | 3 | [] | no_license | #!/bin/bash
currdir=~/pusher_test
inotifywait -m -e create --format '%w%f' ${currdir} | while read NEWFILE
do
echo file ${NEWFILE} has been created!
NEWFILE=$(basename ${NEWFILE})
python test.py ${NEWFILE}
done
| true |
a1d7b14d6e8a7c72d5e77b52dd329cfc1f85abdd | Shell | Boud/dotfiles | /zsh/10-variables.sh | UTF-8 | 284 | 2.734375 | 3 | [] | no_license | # Coreutils binaries for macOS
if [[ "$OSTYPE" == "darwin"* ]]; then
export PATH="/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
fi
# Export some binaries that could be in ~/.bin
export PATH=$PATH:"$HOME/.bin/"
# GPG
export GPG_TTY=$(tty)
| true |
9fdf2c1353a350f7501eaa18ad8b3dadfa07cd5b | Shell | akaWolf/pine64-archlinux | /mk_arch_pine64_image.sh | UTF-8 | 2,461 | 3.578125 | 4 | [] | no_license | #!/bin/sh -eu
image="./image"
dest="./mnt"
device=""
trap error_handler 1 2 3 6 ERR
cleanup()
{
echo "release resources"
[[ -d "${dest}/proc" ]] && umount --quiet "${dest}/proc" || true
[[ -d "${dest}/dev" ]] && umount --quiet --recursive "${dest}/dev" || true
[[ -d "${dest}/sys" ]] && umount --quiet --recursiv... | true |
8cfd420f8e58e12a5d81153f50079e067cdba8d9 | Shell | slagle/tripleo-image-elements | /elements/qpidd/os-refresh-config/post-configure.d/73-qpidd | UTF-8 | 332 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -eu
username=$(os-apply-config --key qpid.username)
password=$(os-apply-config --key qpid.password)
sasldb_file=$(grep sasldb_path /etc/sasl2/qpidd.conf | cut -d \: -f 2 | cut -d " " -f 2)
echo "$password" | saslpasswd2 -c -p -f $sasldb_file -u QPID $username
chown qpidd.qpidd $sasldb_file
service qp... | true |
1e0c6ea3672dfeb233522af0c5eda4f2db68ec0d | Shell | PaddlePaddle/Paddle | /tools/nvcc_lazy.sh | UTF-8 | 4,359 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | true |
012e36c3da3cdc095981e35f947f5a7e9ef88d24 | Shell | SNachar/witsmarker | /launch_matlab_daemon | UTF-8 | 457 | 3.296875 | 3 | [] | no_license | #!/bin/bash
# Check if the pipe exists
if [[ ! -p /tmp/mlpipe ]]; then
mkfifo /tmp/mlpipe;
fi
if [[ -z "$(lsof /tmp/mlpipe)" ]]; then
echo "Launching Matlab"
MATLAB="matlab -nodesktop -nosplash;"
CMD="tail -f /tmp/mlpipe | $MATLAB 1> /tmp/matlab.out 2>/tmp/matlab.err &"
nohup bash -c... | true |
677e4cb66c220d5bd66178837bdd8bbd5edad925 | Shell | thejosess/Informatica-UGR | /2ºAÑO/1ºCuatrimestre/SO/practicas/PracticaModuloI/ArchivosParaExamen/practicasFS/EXAMEN FS/Desde la practica 5/ejeadicional4 | UTF-8 | 609 | 3.8125 | 4 | [] | no_license | #!/bin/bash
if [ $# -eq 1 ]
then
es_archivo=`test -f $1 && echo true || echo false`;
if [ $es_archivo == "true" ]
then
columnas=`tput cols`
while read linea
do
ancho_linea=`echo $linea|wc -c`
espacios=$[ $[ $columnas - $ancho_linea ] / 2 ]
printf "%${espacios}s %s\n" "" "$linea"
done < $1
else
echo "No es un ... | true |
d12dab755c0fd4666fca99b3ac0a0e4f15daad10 | Shell | ytyeason/images-open-and-sorting | /open.bash | UTF-8 | 450 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#TONGYOU YANG 260669495
pics=`ls *.dat | cut -d'.' -f1`
ps | grep 'eog' > mission
b=`wc -l mission | cut -d' ' -f1`
number=`expr "$b" "+" "$1"`
a=0
while [ 1 ]
do
if [ "$a" -lt "$number" ]
then
pic=`echo $pics | cut -d' ' -f1 `
eog -n $pic.jpg &
pics="`echo $pics | cut -d' ' -f2-` ${pic} "
... | true |
1d77d96b38601eb2ec55f39487be8a436bb45ba8 | Shell | EnTeQuAk/dotfiles | /bin/upgrade_pg.sh | UTF-8 | 517 | 2.640625 | 3 | [
"Unlicense"
] | permissive | ## Set the old version that we want to upgrade from.
export FROM_VERSION=9.5
pacman -S --needed postgresql-old-upgrade
chown postgres:postgres /var/lib/postgres/
su - postgres -c "mv /var/lib/postgres/data /var/lib/postgres/data-${FROM_VERSION}"
su - postgres -c 'mkdir /var/lib/postgres/data'
su - postgres -c "initdb ... | true |
68b826d153a5e39d5c2021c40f34efa409a979d5 | Shell | staceysv/safelife | /gcloud/sync-current | UTF-8 | 226 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Convenience script to sync current run data to the local machine.
# Places synced data in the 'data' folder in the current working directory.
exec rsync --rsh $(dirname $0)/ssh -r $1:~/current_job/data/ ./data
| true |
cb0b58f7bf19ab6389d05fa0c2b98cacf91536c3 | Shell | pages-alex-alex2006hw/doc | /etc/bashrc | UTF-8 | 2,744 | 2.859375 | 3 | [] | no_license | # @file .bashrc
#
# load default bashrc
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#---------------------------------------------------------------
# paths, library paths
#---------------------------------------------------------------
# path
export PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X... | true |
b1902ee9530ce079c53f6b80735f17c0bf5dca9a | Shell | termux/termux-packages | /packages/teleport-tsh/build.sh | UTF-8 | 632 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://github.com/gravitational/teleport
TERMUX_PKG_DESCRIPTION="Secure Access for Developers that doesn't get in the way"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=11.0.3
TERMUX_PKG_REVISION=3
TERMUX_PKG_SKIP_SRC_EXTRACT=true
termux_step_make_install() {
... | true |
f7cef50f88ed74618dc8e8761979704c4ddb4869 | Shell | dukeabacus/make-busy | /run-app | UTF-8 | 361 | 3.375 | 3 | [] | no_license | #!/bin/sh
export PHPRC=./php.ini
APP=$1
[ -z $APP ] && echo "please specify a folder with tests" && exit 0
[ ! -d $APP ] && echo "$APP must be a folder with php test files" && exit 0
shift
echo START APP:$APP
for SUITE in $(ls $APP)
do
#echo "checkng $SUITE"
if [ -d "$APP/$SUITE" ]
then
./run-s... | true |
54aed01dc4777eb6d83b5d6e6be27083051d64f2 | Shell | mxj1668/mmm | /build/Lede_x86_64/diy-1.sh | UTF-8 | 2,928 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# 基本不需要添加啥插件了,我搜集了各位大神的插件都集成一个软件包直接打入源码里面了
# 要了解增加了什么东西,就到我的专用软件包里面看看看吧,如果还是没有你需要的插件,请不要一下子就拉取别人的插件包
# 相同的文件都拉一起,因为有一些可能还是其他大神修改过的容易造成编译错误的
# 想要什么插件就单独的拉取什么插件就好,或者告诉我,我把插件放我的插件包就行了
# 软件包地址:https://github.com/281677160/openwrt-package
# 拉取插件请看《各种命令的简单介绍... | true |
08a0607b1c8e417fbf7fc2cdc660c909f1dbc9bd | Shell | knowledge0603/kill_free_frps_port | /kill_free_frps_port.sh | UTF-8 | 1,299 | 2.859375 | 3 | [] | no_license | #! /bin/bash
echo "start task :`date '+%Y-%m-%d %H:%M:%S'`"
result_listen=$(ss -apt | grep frps | grep LISTEN)
result_estab=$(ss -apt | grep frps | grep ESTAB)
result_listen_sed=$(ss -apt | grep frps | grep LISTEN |sed 's/^.*pid=//g'|sed 's/,.*$//g')
result_estab_sed=$(ss -apt | grep frps | grep ESTAB |sed 's/^.*pid=//... | true |
ff8f02a70fe35b4c5c4b79c92ce5a27cfae443c6 | Shell | redlink-gmbh/search-ci-env | /start.sh | UTF-8 | 374 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Docker CMD script
# SIGTERM-handler
sigterm_handler() {
service mongodb stop
exit 143; # 128 + 15 -- SIGTERM
}
# setup handlers on callback
# kill the last background process (tail) and execute the custom handler
trap 'kill ${!}; sigterm_handler' SIGTERM
# run mongodb
service mongodb start... | true |
b46bbaf1a12865e87687f026dc239c55474b5d95 | Shell | clayne/concurrency-hierarchy-bench | /scripts/data.sh | UTF-8 | 533 | 2.96875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
set -euo pipefail
# echo "FAST_ITERS=${FAST_ITERS:=1000}"
# echo "SLOW_ITERS=${SLOW_ITERS:=10}"
echo "RDIR=${RDIR:=./results}"
echo "CPUS=${CPUS:=$(nproc)}"
mkdir -p "$RDIR"
# up to CPU-count threads
echo "Collecting fast data"
./bench --progress --csv > "$RDIR/data_fast.csv"
echo "Collecting slow data"... | true |
9d69ed079119f2f4c6c47c6d5857c9cab47aad8b | Shell | drewmard/ukb_vqtl | /scripts/phewas/variant_index_query.sh | UTF-8 | 655 | 3 | 3 | [
"MIT"
] | permissive | # for uk biobank snps
SNPLIST_OLD=/athena/elementolab/scratch/anm2868/vQTL/ukb_vqtl/output/sig_results/bmi.SNP_sig_list.txt
SNPLIST=/athena/elementolab/scratch/anm2868/vQTL/ukb_vqtl/output/sig_results/bmi.SNP_sig_list2.txt
cat $SNPLIST_OLD | tail -n +2 | head -n -1 > $SNPLIST
output=/athena/elementolab/scratch/anm2868... | true |
5c18f2eb274b8a933fffea94ccf28819d1bfe832 | Shell | tuxslack/perfect-ubuntu | /perfect-16.04.sh | UTF-8 | 19,160 | 2.671875 | 3 | [] | no_license | /*
Post-install script for Ubuntu 16.04.
Just-add-water, Looking fine Javascript Development Enviroment
https://github.com/andreystarkov/perfect-ubuntu
*/
HOME_ROOT="/home/deo"
GIT_NAME="andreystarkov"
GIT_EMAIL="im@andreystarkov.ru"
OUT=" >> ~/Desktop/perfect.log 2>&1"
function cecho(){
local exp=$1;... | true |
1137611582e8f0cfb567f7b06d5160cf9442f524 | Shell | xiaolinpeter/lucene-solr | /solr/bin-test/test | UTF-8 | 5,120 | 4.03125 | 4 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown",
"CDDL-1.1",
"NAIST-2003",
"CC-BY-SA-3.0",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-other-copyleft",
"ANTLR-PD",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL... | permissive | #!/bin/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 "License"); you ... | true |
70563037e25117d3d1a9254e066e61c40ec3c3ae | Shell | yzbz/book | /shell/test-1.sh | UTF-8 | 718 | 3.515625 | 4 | [] | no_license | #!/usr/bin/env bash
cur_path=$(pwd);
echo $cur_path; #获取当前目录地址
shellDir=$(cd $(dirname $0); pwd)
#当前文件的所在目录
cur_name="${cur_path##*/}"
echo $cur_name; #当前文件名
# #:表示从左开始算起,并且截取第一个匹配的字符
#
# ##:表示从左开始算起,并且截取最后一个匹配的字符
# %:表示从右开始算起,并且截取第一个匹配的字符
# %%:表示从右开始算起,并且截取最后一个匹配的字符
if [ -z "$3" ]; then
i... | true |
7b91b05b67152e90219e999a0a1e9b0fcb6dfffc | Shell | dkessner/simrecomb | /create_package.sh | UTF-8 | 453 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
datestamp=$(date +%y%m%d)
if [ $(uname) == "Darwin" ]; then
platform=osx
else
platform=linux
fi
filename_archive=simrecomb_${platform}_${datestamp}.zip
echo Building docs.
pushd docs
pdflatex simrecomb_docs.tex > /dev/null
popd
echo Building executables.
bjam
echo Creating $filename_archive.
z... | true |
c54b2510325cc939c3b409b1fa2e0ecd35a39f96 | Shell | jkogara/dotfiles | /tag_links.sh | UTF-8 | 583 | 3.65625 | 4 | [] | no_license | #Print http links to commits with matching comments
#Usage: tag_links STORY_NUMBER_OR_QUOTED_GIT_COMMENT_TEXT
function tag_links (){
BASEURL="http://10.109.64.38:8040/commits/"
REPO_NAME=`basename $(git remote show -n origin | grep Fetch | cut -d: -f2-) | sed 's/\.git$//g'`
FULL_URL=$BASEURL$REPO_NAME
for file in `git... | true |
730ec369e27951000ffc796f5bbb01ba849d8b09 | Shell | joezuntz/grid-wl | /launch_and_run.sh | UTF-8 | 3,526 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
# Example run:
# ./launch_and_run.sh srm://gridpp09.ecdf.ed.ac.uk/dpm/ecdf.ed.ac.uk/home/gridpp/lsst/zuntz/y1a1-v2-z/software/2016-02-01/im3shape-grid.tar.gz srm://gridpp09.ecdf.ed.ac.uk/dpm/ecdf.ed.ac.uk/home/lsst/DES0005+0043-z-meds-y1a1-gamma.fits.fz srm://gridpp09.ecdf.ed.ac.uk/dpm/ecdf.ed.ac... | true |
beee01114a908cc9f182e8de162acc92228733ae | Shell | Douglasli/frameworks | /scalemamba/install_dependencies.sh | UTF-8 | 776 | 2.890625 | 3 | [
"MIT"
] | permissive | mylocal="$HOME/local"
mkdir -p ${mylocal}
cd ${mylocal}
# install supporting mpir library
wget http://mpir.org/mpir-3.0.0.tar.bz2
tar -xvf mpir-3.0.0.tar.bz2
rm mpir-3.0.0.tar.bz2
cd mpir-3.0.0
./configure --enable-cxx --prefix="${mylocal}/mpir"
make && make check && make install
# install OpenSSL 1.1.1
cd $mylocal... | true |
cf15043005e99828c87cf06035014f183f3abf4d | Shell | bwbroersma/docker-postgres-upgrade | /upgrade/docker-upgrade-entrypoint-wrapper.sh | UTF-8 | 2,479 | 3.875 | 4 | [] | no_license | #!/bin/sh
set -u -o pipefail;
# probably we will end up with a copy of
# https://github.com/docker-library/postgres/blob/2353eaaa68b7f4febfa08571a6499367a36b560d/12/alpine/docker-entrypoint.sh
if [ "$1" = 'postgres' ]; then
if [ -s $PGDATA/PG_VERSION ]; then
PG_MAJOR_OLD=$(cat $PGDATA/PG_VERSION);
if [ $PG_MAJOR... | true |
53f307afff88d8711d55ba00eb3b0b9e4e35073c | Shell | phil-gab99/Uni-Session1 | /Bash Codes/greetme.sh | UTF-8 | 398 | 2.8125 | 3 | [] | no_license | #! /bin/bash
####
# @Philippe Gabriel
# @Version 0.0 2020-04-24
# ./greetme.sh
#
# Le but de ce programme est d'interagir avec l'usager via différentes
# commandes
####
echo Bonjour $USER
echo; date;
echo; cal;
echo; hostname;
echo; cat /etc/os-release;
echo; ls;
echo; ps -u root;
echo; echo $TERM;
echo; echo $PATH;
... | true |
dee7d5b03af263caaa166cc277bc0fe0dc602d36 | Shell | dslm4515/BMLFS | /build-scripts/libpciaccess.build | UTF-8 | 1,547 | 3.171875 | 3 | [] | no_license | #! /bin/bash
# libpciaccess (X11 PCI access library)
# Source: https://www.x.org/releases/individual/lib/libpciaccess-0.16.tar.bz2
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Recommended: util-macros (required if building X11)
# Optiona... | true |
d4f010f8c027602a667efe73ba79bb0976f78c52 | Shell | vendall/hawaii-aur | /kde-solid-git/PKGBUILD | UTF-8 | 876 | 2.96875 | 3 | [] | no_license | # Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=kde-solid-git
pkgver=20130226
pkgrel=1
pkgdesc="Hawaii: Solid from KDE"
arch=('i686' 'x86_64')
url="http://www.kde.org"
license=('LGPL')
depends=('qt5-base-git' 'udisks')
makedepends=('extra-cmake-modules-git' 'git' 'qt5-svg-git')
replaces=('kde-so... | true |
54e079682a621e511e4f5d4ccab9dc4c95ff7312 | Shell | zhangaz1/sanctuary-scripts | /bin/doctest | UTF-8 | 723 | 3.296875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -euf -o pipefail
# shellcheck source=functions
source "${BASH_SOURCE%/*}/../sanctuary-scripts/functions"
run_custom_script doctest "$@"
set +f ; shopt -s nullglob
# shellcheck disable=SC2207
files=($(get source-files))
set -f ; shopt -u nullglob
prefix="$(get comment-prefix)"
opening="$(get ... | true |
23e74adeeb2603ff6d1cf1a1b6e4e3636337504a | Shell | xeb/mono-xunit-example | /runtests.sh | UTF-8 | 667 | 2.84375 | 3 | [] | no_license | #!/bin/sh
if [ $1 == "-debug" ] || [ $1 == "--debug"] ; then
DEBUG_ARGS="--debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:5555"
echo "--- DEBUG ENABLED, bound on port 5555 ---"
fi
rm -rf test-results/*.xml
mkdir -p test-results
xbuild /p:Configuration=Debug MonoXunit.sln
mono $DEBUG_ARGS --ru... | true |
0986673e5c75e757a6fd752f8a709e4c8f245312 | Shell | shyiko/dotfiles | /bash.d/grep.bash | UTF-8 | 133 | 2.8125 | 3 | [] | no_license | if [[ $OSTYPE == darwin* ]]; then
export GREP_OPTIONS="--color=auto" # BSD grep
else
alias grep="grep --color=auto" # GNU grep
fi | true |
44c6d3571d86812e750fb2a04f023aec0ca38503 | Shell | tennysontbardwell/motifs-play | /temporal-count.sh | UTF-8 | 652 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
fun() {
input=$1
delta=1200
output="$input.temporal-count-$delta"
# words=$(wc $input | cut -d " " -f2)
# if [ "$words" -lt 500 ]; then
# echo Skipping $input word count is $words
# return
# else
# echo Word Count is $words
# fi
if [ ! -f $ou... | true |
6280f643c618551ad1626ad6b051cb233872cfa9 | Shell | matthew-fuller/socok8s | /script_library/deployment-actions-openstack.sh | UTF-8 | 4,682 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Ensure variables are always set before going forward.
# Will prevent this script to be runned unless called from run.sh (by design)
set -o nounset
set -o errexit
echo "Deploying on OpenStack"
source ${scripts_absolute_dir}/pre-flight-checks.sh check_openstack_env_vars_set
function deploy_network(){
... | true |
3d85f5b2590eb15215b8404379c76f06d05656ba | Shell | scqxray/sakuli | /docker/sakuli-ubuntu-xfce/scripts/sakuli_startup.sh | UTF-8 | 1,016 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
/root/scripts/vnc_startup.sh
# modify $SAKULI_TEST_SUITE permissions to ensure, that volume-mounted log files can be deleted afterwards
modify_testsuite_permissions(){
while test $# -gt 0; do
case "$1" in
run)
shift #shift to suite parameter value
ch... | true |
aaee920236e6500eaabb92e4ecc491f4897bed69 | Shell | skyformat99/data_collector | /build/dummy_epro_device/build.sh | UTF-8 | 459 | 3.234375 | 3 | [] | no_license | #!/bin/bash
if [ "$1" == cmake ]; then
#Delete all files except the compile script
find ! -name 'build.sh' ! -name 'configuration.txt' -type f -exec rm -f {} +
cmake ../../dummy_epro_device/ -DCMAKE_BUILD_TYPE=Debug
make clean
make VERBOSE=1
exit 0
fi
if [ "$1" == clean ]; then
make clean
... | true |
d046837ee51693269ebe35168f4db2166b8f195e | Shell | wsfreund/RootCoreMacros | /setrootcore.sh | UTF-8 | 10,938 | 3.703125 | 4 | [] | no_license | show_help() {
cat << EOF
Usage: ${0##*/} [--silent] [--release=Base,2.4.23] [--no-env-setup]
[--grid]
Set current shell to use this folder RootCore environment. This should be
sourced, otherwise it won't change your shell environment and you may
have issues using RootCore.
When no CVMFS is available, ... | true |
55aafdf857ac70d6d942f34e2a35c183150a522f | Shell | cloudmark/maltapropertyparser | /grabRemaxPage.sh | UTF-8 | 787 | 3.65625 | 4 | [] | no_license | #!/bin/bash
TEMP_DIR=./temp/remax
DATA_FILE="data.csv"
rm -rf $TEMP_DIR
mkdir -p $TEMP_DIR
NEXT="1"
PAGE=0
while [ "$NEXT" -ne "0" ]
do
PAGE=$(($PAGE+1))
echo "Parsing Page -> $PAGE"
TEMP_FILE="$TEMP_DIR/temp_$PAGE.html"
echo "" > $TEMP_FILE
echo "Created Temp File: $TEMP_FILE"
cp queryRemaxParam.txt $TEMP_FILE... | true |
eb5058804a58bcd224eeeb1d2f75d8dc8345331a | Shell | raymondhongray/quick-start-packet | /Docker/scripts/gethpoa_entrypoint.sh | UTF-8 | 3,110 | 3.640625 | 4 | [] | no_license | #!/bin/bash
source .env.default
# $POA_SIGNER_PRI_KEY is from docker-compose at container running time ,not iamge building time
# $POA_SIGNER_ADDRESS is from docker-compose at container running time ,not iamge building time
# $POA_SIGNER_PWD is from docker-compose at container running time ,not iamge building time ... | true |
a2c8350377fcda6da8df015f1225828bc92d7160 | Shell | mahesh-km/monitoring-server | /Collecting Log/Server_side/Check-flag | UTF-8 | 243 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#This script will check the flag is existing or not;
#Run on server side.
DIRECTORY='/opt/mmonit-2.4/'
if [ find ${DIRECTORY} -maxdepth 1 -type d | xargs -I currentDir -t find currentDir/collect-log ]
then
echo "flag found!"
fi
| true |
19cd847621c34b6c7887d5d79392d29ee5d9964f | Shell | nucleoosystem/odoo-bedrock | /install/python3.sh | UTF-8 | 501 | 3.1875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/bin/bash
set -Eeuxo pipefail
if [ "${PYTHONBIN}" != "python3.6" ] ; then
# ubuntu 18 has pyton 3.6 only, so use the deadsnakes ppa
apt-get install -y --no-install-recommends software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get install -y --no-install-recommends ${PYTHONBIN}-ve... | true |
cda27403add182f724f32896e7f3cb3de2b496fb | Shell | wimil/laravideo-setup | /scripts/prompt.sh | UTF-8 | 1,100 | 3.34375 | 3 | [] | no_license | install_type=""
server_name=""
server_id=""
ftp_dir=""
function get_install_type() {
echo -ne "\033[32m Tipo de instalacion [ejemplo: storage]: \033[0m"
read installType
if [[ -z "$installType" ]]; then
get_install_type
else
install_type=$installType
fi
}
function get_server_name()... | true |
8b304949c4dee79f60c19fa63dd33b7bcf79b989 | Shell | redhat-openstack/diskimage-builder | /elements/pkg-map/extra-data.d/10-create-pkg-map-dir | UTF-8 | 322 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -eux
set -o pipefail
sudo mkdir -p $TMP_MOUNT_PATH/usr/share/pkg-map/
for ELEMENT in $IMAGE_ELEMENT ; do
for DIR in ${ELEMENTS_PATH//:/ }; do
if [ -f "$DIR/$ELEMENT/pkg-map" ]; then
sudo cp $DIR/$ELEMENT/pkg-map $TMP_MOUNT_PATH/usr/share/pkg-map/$ELEMENT
fi
done
don... | true |
87fed6f554f5195b5da237a6ae8d47b096c5a9a4 | Shell | vegito11/Day-Today | /Bash/Terminal_Special/command_execution_status.sh | UTF-8 | 412 | 2.71875 | 3 | [] | no_license | #!/bin/bash
echo -e ' \n $? => Exit status of last completed background command <-> '$?' '
# exit status of last command
echo -e ' \n $? => (0) if success of last command execution <-> '$?' '
echo -e ' \n $$ => The process number of the current shell <-> '$$' '
echo -e ' \n $! => The process number of the last b... | true |
45d78684ce70ca35b446d28c867260a9dba9526b | Shell | etienne-monier/dotfiles | /__setup__/polybar.sh | UTF-8 | 713 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash -
if [ ! -d "$HOME/.polybar" ]; then
## Dependencies
sudo apt-get -y install cmake cmake-data libcairo2-dev libxcb1-dev \
libxcb-ewmh-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev \
libxcb-util0-dev libxcb-xkb-dev pkg-config python3-xcbgen xcb-proto \
libxcb-xrm-dev i... | true |
524508aab6f55e01db457fdaf48dc9d476218bc5 | Shell | lich0x2b/configs | /info.sh | UTF-8 | 222 | 2.734375 | 3 | [] | no_license | #!/bin/sh
FAN=$(awk '{print $2}' /proc/acpi/fan/FN00/state)
TEMP=$(awk '{print $2}' /proc/acpi/thermal_zone/THRM/temperature)
FREQ=$(cpufreq-info | awk '/current CPU frequency/ {print $5"MHz"}')
echo -n "$FREQ $TEMP $FAN"
| true |
feae90b8fff23971087662451a99fed57bcf74de | Shell | istorkbox/istorkbox-tech | /install/centos7_install_jdk7.sh | UTF-8 | 1,423 | 3.515625 | 4 | [] | no_license | #!/bin/bash
#jdk-7u80-linux-x64.tar.gz
#https://blog.csdn.net/ithomer/article/details/9288353
echo 'start install jdk8'
#install wget
if type wget >/dev/null 2>&1; then
echo '...'
else
echo 'start install wget'
yum -y install wget
fi
cd /usr/local
# check downloads directory
if [ ! -d 'src' ]; then
mkdir 'src'... | true |
2b52ed7e2dcc1beec5a5cf83f66b7aa75e88f654 | Shell | chrisguest75/shell_examples | /36_git/helpers/git_refresh_all_repos.sh | UTF-8 | 2,386 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash
set -euf -o pipefail
readonly SCRIPT_NAME=$(basename "$0")
readonly SCRIPT_PATH=${0}
# shellcheck disable=SC2034
readonly SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
function help() {
cat <<- EOF
usage: $SCRIPT_NAME options
OPTIONS:
-h --help -? show this help
-p --path ... | true |
baa42f8e6932dcaf990ea3dc530b2eab5ea9ccc2 | Shell | iJasonCui/big_database | /Sybase/SybaseASE/send_mail/send_mail.sh | UTF-8 | 6,305 | 4.1875 | 4 | [] | no_license | #!/bin/sh
#
# Lavalife Inc.
#
# Ihar Kazhamiaka
# May 2004
#
# send_mail.sh
#
# This script sends e-mail messages in accordance with a mail list.
#
# check number of parameters
if [ $# -lt 2 -o $# -gt 5 ] ; then
echo "Usage: $0 <message file> <sending task> <message type> <mail list> <subject line>"
e... | true |
a87235fa7e04f4e456edd05e96b97d1c63f66f3b | Shell | rhlobo/dotfiles-public-old | /.byobu/color.tmux | UTF-8 | 497 | 3.15625 | 3 | [] | no_license | #!/bin/sh
# Function originally defined in /usr/lib/byobu/include/shutil
color_map() {
case "$1" in
k) _RET="black" ;;
r) _RET="red" ;;
g) _RET="green" ;;
y) _RET="yellow" ;;
b) _RET="blue" ;;
m) _RET="magenta" ;;
c) _RET="cyan" ;;
w) _RET="white" ;;
d) _RET="color0" ;;
K) _RET="#555555" ;;
R) _... | true |
e3e14492aa1cd4141c078d9e9f2a087ed6b3847b | Shell | delkyd/alfheim_linux-PKGBUILDS | /pam-phidgetrfid/PKGBUILD | UTF-8 | 1,044 | 2.578125 | 3 | [] | no_license | # Maintainer: /dev/rs0 <rs0@secretco.de.com>
pkgname=pam-phidgetrfid
pkgver=1.0.6
pkgrel=4
pkgdesc="A PAM module that interfaces with a Phidget RFID tag scanner, passing IDs scanned by the scanner down the PAM stack as authentication tokens."
arch=('i686' 'x86_64')
url="http://pam-phidgetrfid.sourceforge.net/"
licens... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.