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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
abb06dda1b3a043adcb44f402c953ddf3c44eb5b | Shell | chlordk/PostgreSQL-DBA-tools | /dba_scripts/table_sizes.sh | UTF-8 | 1,752 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# SHOWS TABLES AND SIZES FOR ALL TABLES
# SHOULD BE RUN AS SUPERUSER
PORT=""
USER=""
TBL=""
usage() {
echo "Usage: $0 -d <dbname> [-t <table> -p <port> -U <user>]"
exit 1
}
while getopts "d:p:t:U:u" OPT;
do case "${OPT}" in
d) DBNAME=$OPTARG
;;
p) PORT="-p $OPTARG"
;;
t) TB... | true |
d007238e47b79e7719f696cad32738ac30c8861e | Shell | rjmeats/AWS-Trials | /AWSTrials/CLI/misc/ssm.sh | UTF-8 | 417 | 2.71875 | 3 | [] | no_license | . ../aws_env_setup.sh
echo
echo $SHELL at $(date)
echo
echo "Describe parameters:"
echo
aws ssm describe-parameters
echo
echo "List Amazon Linux Parameter Store namespaces:"
echo
echo "for the default region"
echo
# NB Doesn't run properly when run direct from Bash - not clear why, puts a C:\..... prefix onto pat... | true |
2dab1ae5d83a54edcd1ebfc1cc66eba7b4e3eb4e | Shell | geos333/dotfiles | /.themes/Dark/panel | UTF-8 | 6,440 | 3.25 | 3 | [
"MIT"
] | permissive | #! /bin/sh
FONT="-xos4-terminesspowerline-medium-r-normal--12-120-72-72-c-60-iso10646-1"
FONT2="Awesome:size=11"
ICONS="-xos4-terminusicons2mono-medium-r-normal--12-120-72-72-m-60-iso8859-1"
ICONS2="-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1"
BG="#1F201D"
source $(dirname $0)/panel_icons
if xdo id -a ... | true |
86122c3c1bccb45ce71722d1f60fa3686511cdaf | Shell | neelimapp/napalm_custom_test | /napalm_custom_test/test_commit_confirm.sh | UTF-8 | 534 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
RETURN_CODE=0
PYTEST="/home/gituser/VENV/napalm_auto_test/bin/py.test"
# Exit on the first test failure and set RETURN_CODE = 1
echo "Starting tests...good luck:" \
&& echo \
&& echo "---- Commit Confirm Methods ----" \
&& echo "Cisco IOS" \
&& $PYTEST -s -v test_napalm_cfg.py::test_commit_confirm --test_de... | true |
e113ad3cd372bc98754e86dc7e6e47a41ab4a05c | Shell | lianshufeng/docker | /native/install_k8s.sh | UTF-8 | 2,425 | 3.140625 | 3 | [] | no_license | #!/bin/sh
# 暂只兼容 centos7 以上
#
#
#安装docker
install_docker(){
echo "install docker "
curl -fsSL https://raw.githubusercontent.com/lianshufeng/docker/master/native/install_docker_no_compose.sh | sh
}
#更新为docker-ce
update_docker(){
echo "update docker "
curl -fsSL https://raw.githubusercontent.com/lianshufeng/docker... | true |
b3cbdd163f19e4e80bf980a732424fa17aac981d | Shell | melonpan0130/Shell_Program | /03_setvar.sh | UTF-8 | 109 | 2.546875 | 3 | [] | no_license | #!/bin/bash
name="Eunju"
echo $name
fruits="apple"
echo "I like $fruits"
today=`date`
echo "Today is $today"
| true |
6d86a36b40964507ea4a72c2725f7528465e8544 | Shell | jitsi/jitsi-videobridge | /resources/graceful_shutdown.sh | UTF-8 | 3,467 | 4.28125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# 1. The script issues shutdown command to the bridge over REST API.
# If HTTP status code other than 200 is returned then it exits with 1.
# 2. If the code is ok then it checks if the bridge has exited.
# 3. If not then it polls bridge statistics until participant count drops to 0.
# 4. Gives some tim... | true |
682f2ec27f869b27d2f60ff47cde1038b23740d0 | Shell | KaOSx/main | /dconf/PKGBUILD | UTF-8 | 806 | 2.921875 | 3 | [] | no_license |
pkgname=dconf
pkgver=0.40.0
_pkgver=0.40
pkgrel=8
pkgdesc="A low-level configuration system."
arch=('x86_64')
url="https://wiki.gnome.org/Projects/dconf"
license=('LGPL2.1')
depends=('glib2')
makedepends=('gobject-introspection' 'intltool' 'docbook-xsl' 'python3' 'meson' 'ninja')
source=("https://download.gnome.org/so... | true |
e65e6ba1e7ceb085f9e5a0ba8bd00f426ed8213c | Shell | zimmicz/volby-cz-parser | /bin/extract_data.sh | UTF-8 | 1,005 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
CUR_DIR=$(dirname $0)
source ${CUR_DIR}/../etc/settings.env
# Input parameters
while [[ $# > 0 ]]
do
key="$1"
case $key in
-i|--input-file)
INPUT_FILE="$2"
shift
;;
-w|--work-dir)
WORK_DIR="$2"
shift
;;
... | true |
8d19123b8012b44fc2b461724b83c80a7e67e90d | Shell | Allypost/bash-scripts | /choose-sound-profile-output | UTF-8 | 1,546 | 3.828125 | 4 | [] | no_license | #!/usr/bin/env bash
entries=()
message=''
function list-entries() {
pactl list cards |
grep -P '\t\toutput:' |
grep -Ev "input" |
grep -Ev '\Wavailable: no\W' |
cut -d':' -f2- |
awk -F ' Output ' '{print $1}' |
awk -F ': ' '{print $2 "\t" "[profile: " $1 "]"}'
}
function update_entries() {
... | true |
157847c4fbfc8127c4f218865a2ec802974d51aa | Shell | 18hb/dotfiles | /bashrc | UTF-8 | 336 | 2.796875 | 3 | [] | no_license | #if [ -f ~/dotfiles/bashrc ]; then
# . ~/dotfiles/bashrc
#fi
export LANG=ja_JP.UTF-8
alias ls='ls -G'
alias ll='ls -al'
alias vi='vim'
alias tmux='tmux -2'
#source /etc/bash_completion.d/git
if [ "$USER_RCFILE_LOADED" = "" ]; then
export USER_RCFILE_LOADED=1
else
export USER_RCFILE_LOADED=`expr $USER_RCFILE... | true |
1a36c209e32563a7a8adbb64b8f276105b4d558e | Shell | Tubbz-alt/anarel-manage | /recipes/external/yaml-cpp/build.sh | UTF-8 | 369 | 2.65625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | #!/bin/bash -x
echo "######## env ############"
env
echo "#########################"
# reset to master branch as of Feb 22, 2017, 738 commits to master,
# whereas 681 to 0.5.3 branch that still uses boost
git reset --hard bedb28fdb4fd52d97e02f6cb946cae631037089e
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
m... | true |
9c137a863f94fdd260012e10bd7dd19a85c5b5e1 | Shell | mlangbehn/ursula | /bin/ursula | UTF-8 | 427 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
env=$1
playbook=$2
hosts=$1/hosts
ssh_config=$1/ssh_config
export ANSIBLE_SSH_ARGS="-o ControlMaster=auto -o ControlPath=~/.ssh/ursula-%l-%r@%h:%p -o ControlPersist=yes "
if [ -e $ssh_config ]; then
export ANSIBLE_SSH_ARGS="$ANSIBLE_SSH_ARGS -F $ssh_config"
fi
export ANSIBLE_NOCOWS=1
ansible-playbook ... | true |
954b038d227c51af299a372826e9be78941b77a3 | Shell | enixdark/gitops-demo | /03_Install_Helm/01_install_helm.sh | UTF-8 | 533 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# 0. Istall minikube
#
# Follow the instructions at: https://kubernetes.io/docs/tasks/tools/install-minikube/
# 1. Start minikube
minikube start
# 2. Install the Helm Client
curl -LO https://git.io/get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh
# 3. Install Tiller
kubectl -n kube-system create sa ... | true |
a5f73866771557b83ca69a4d4a81717dee6bb2ec | Shell | RyanMcG/dotfiles | /bin/myredshift | UTF-8 | 249 | 2.765625 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
set -e
HOSTN=`hostname`
GAMMA=1
HI=6500
LO=5000
case $HOSTN in
uecf4bb44a7f953ee8483) # Amazon Ubuntu Laptop
;;
zenbook)
GAMMA="0.9:0.95:0.8"
HI=5200
LO=4000
;;
esac
redshift -m randr -g $GAMMA -l 38:-122 -t "$HI:$LO" $@
| true |
70991319650ed94ab41431d7c141504f513b86d0 | Shell | lafiosca/lard-example-crud-api | /setup/create-cognito-stacks.sh | UTF-8 | 1,004 | 3.375 | 3 | [] | no_license | #!/bin/bash
# "set -e" makes it so if any step fails, the script aborts:
set -e
uuidgenPath=`which uuidgen` || ! echo 'uuidgen not found in path'
echo "Using ${uuidgenPath}"
cd "${BASH_SOURCE%/*}"
source ./definitions.sh
echo
echo "Creating Cognito resource stacks for ${ProjectName}"
echo
echo "1. Creating develop... | true |
b109f3be7f39f8ccb1f7e11c69f3b8b03578b38c | Shell | hsivonen/packed_simd | /ci/android-install-ndk.sh | UTF-8 | 735 | 2.59375 | 3 | [
"MIT",
"BSL-1.0",
"Apache-2.0"
] | permissive | #!/usr/bin/env sh
# Copyright 2016 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICE... | true |
81323356bd5efc3c2cf3941b5b858368be961e3c | Shell | platform-project/nojitsu | /bin/nojitsu | UTF-8 | 588 | 3 | 3 | [] | no_license | #!/bin/sh
# Project: nojitsu
# Description: System of nothingness
# Paradigm: Spirit of absence. No thought. No code.
# Version: 0.0
# Author: The Platform Authors <platform@entilda.com>
# Homepage: https://platform-project.github.io/nojitsu
#
nojitsu(){
echo "nojitsu: spirit of abs... | true |
1b42917384d8f4d754d44fe50e6f7758222ceb13 | Shell | mgborges/varCalling | /exoma_23.sh | UTF-8 | 6,275 | 3 | 3 | [] | no_license | ## Processing for exome data
## This uses only single-subject calls
## By Benilton Carvalho - Nov/14
## Altered by Murilo - Jun/16
BATCH=exoma23
THREADS=10
DATAPATH=/home/bioinf/exoma/exoma23/raw
export TARGETS=/home/benilton/exoma23/agilentV5UTR_Targets.list
export BAITS=/home/benilton/exoma23/agilentV5UTR_Targets.l... | true |
d186f2fe2567e999e8382381992d79a00b2f06b6 | Shell | gzchenhj/config | /监控web目录/web_ng1.sh | UTF-8 | 288 | 2.9375 | 3 | [] | no_license | #!/bin/bash
md5=`md5sum -c /scripts/check_md5sum.db|grep -i false|wc -l`
f=`find /usr/local/nginx/html/ -type f |wc -l`
if [ $md5 -ne 0 ]
then
echo "md5sum -c /scripts/check_md5sum.db|grep -i false"
elif [ $f -ne 1849 ]
then
echo "webfile is change" :
else
echo "webfile is ok"
fi
| true |
62359ce9c7da8a31fa308ecdd178a33d6d3d54ab | Shell | derekteay/docker-multi-runtime-container | /node_test.sh | UTF-8 | 1,094 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#
# Script to test node.js runtime
echo "=============== Node.js =============="
echo "[*] Creating myapp directory..."
echo
# Create directory and cd to it
mkdir myapp
cd myapp
# Create the package.json file
echo "[*] Creating package.json file..."
echo
echo '{
"name": "myapp",
"version": "1.0.0",
... | true |
4d34cdd8571ed8222b970b4b10c9a95a1acbf1f1 | Shell | mhinkka/articles | /Assessing Big Data SQL Frameworks for Analyzing Event Logs/scripts-aws/test.sh | UTF-8 | 3,741 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#Usage: test.sh <frameworks to test> <test names> <number of events> <run name> <number of repeats>
#Example: . test.sh "presto hive postgresql impala spark spark-caching" "flows" "100000 1000000 10000000 100000000" test 3
export HDFS_NAMENODE_URL=hdfs://10.0.207.57:8020
export IMPALA_DAEMON_ADDRESS=10.0.1... | true |
e81ee1f63a201de950058b0766ff1f32fd976e11 | Shell | david-driscoll/omnisharp-server-roslyn-binaries | /build.sh | UTF-8 | 1,272 | 2.734375 | 3 | [
"MIT"
] | permissive | echo update submodules...
git submodule update --init --recursive
git submodule foreach git pull origin master
pushd omnisharp-roslyn
./build.sh
popd
rm -rf lib/server
mkdir -p lib/server
cp -a omnisharp-roslyn/artifacts/build/omnisharp/* lib/server
curl -LO http://nuget.org/nuget.exe
mono nuget.exe install kre-clr-wi... | true |
8b435e27b1545b10f753914e84b6c7ce9e246021 | Shell | c4pone/dotfiles | /scripts/install-docker-compose.sh | UTF-8 | 250 | 2.671875 | 3 | [] | no_license | #!/bin/sh
if ! hash docker-compose 2>/dev/null; then
sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
fi
| true |
058f76726b8e972da903543c00eefa5effffb49d | Shell | jdeblese/slackware-s6 | /etc/rc.d/rc.ntpd | UTF-8 | 1,364 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Start/stop/restart ntpd.
. /etc/s6-init/s6shfunc
# Start ntpd:
ntpd_start() {
echo -n "Starting NTP daemon..."
s6_start ntp
echo
# The kernel is now mocking around with the the hardware clock if
# ntpd is running, so if the hardware clock (wall clock) is set to
# 'localtime' execute hwclock --... | true |
27279c87b71e660fd7129f0816b3076a8fdf09b4 | Shell | daemanos/bin | /forward | UTF-8 | 1,262 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# forward: watch a directory for new files and send them to a remote server
#
# Usage: forward [-r] LOCAL_DIR ADDRESS [REMOTE_DIR]
# Arguments:
# LOCAL_DIR the local directory to watch
# ADDRESS the address of a server to forward to
# REMOTE_DIR the remote directory to forward to (s... | true |
6e49345a8f03af4a9ea7ed2f3a6ba70972383417 | Shell | jlucktay/dotfiles-chezmoi | /bin/executable_get-path.sh | UTF-8 | 638 | 3.671875 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
shopt -s globstar nullglob
IFS=$'\n\t'
background_white="$(tput setab 7)"
foreground_black="$(tput setaf 0)"
reset_colours="$(tput sgr0)"
echo "$background_white${foreground_black}PATH unsorted:$reset_colours"
while IFS=':' read -ra split_path; do
# Split off sorted $PATH arra... | true |
b08d44b8d1f664661a80586f9d1621be5db85234 | Shell | dtxbcsy/daodao_step1 | /run_one.sh | UTF-8 | 543 | 2.546875 | 3 | [] | no_license | DATAPATH=/search/zf/bh1/data
city=`echo $1 | python url_encode.py`
url="http://www.daodao.com/Search?q=$city"
#COOKIE_DATA=cookie
#wget --load-cookies=$COOKIE_DATA --save-cookies=$COOKIE_DATA --keep-session-cookies $url -O $DATAPATH/$city -U "Chrome/32.0.1700.102 Safari/537.36"
sh /search/zf/proxy/wget.sh $url $DATAP... | true |
eaaa5ee32331b51e41a6985ceefaaefbc7b185f7 | Shell | zhengjia/dotfiles | /bash_profile | UTF-8 | 1,127 | 3.359375 | 3 | [] | no_license | shopt -s histappend
rake() {
if [[ -e ./Gemfile ]] && which bundle; then
#echo "using bundle exec"
bundle exec rake "$@"
else
#echo "not using bundle exec"
command rake "$@"
fi
}
# cd into current directory in finder
function ff { osascript -e 'tell application "Finder"'\
-e "if (${1-1} <= (cou... | true |
2ab356b4b8c01379158d2b669766fb8d8c92c596 | Shell | djtran/dotfiles | /polybar/.config/polybar/music.sh | UTF-8 | 184 | 2.75 | 3 | [] | no_license | #!/bin/bash
if [[ "$(playerctl status)" = "Playing" ]]
then
echo -n " : $(playerctl metadata xesam:artist;) - $(playerctl metadata xesam:title)"
else
echo -n "";
fi
| true |
9f2fa649087a549d6784dff3628888f4dbcf910f | Shell | tzmartin/dotfiles | /bootstrap.sh | UTF-8 | 396 | 3.0625 | 3 | [] | no_license | # Load ~/.extra, ~/.bash_prompt, ~/.exports, ~/.aliases and ~/.functions
# ~/.extra can be used for settings you don’t want to commit
for file in ~/dotfiles/.{extra,bash_prompt,exports,aliases,functions}; do
[ -r "$file" ] && source "$file"
#echo "Installing ... $file"
done
unset file
# init z https://github.com/r... | true |
262ad2946a153006613341d05522f2f4deb88f80 | Shell | aaardalannn/Performance | /runMe.sh | UTF-8 | 673 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#https://stackoverflow.com/questions/31328300/python-logging-module-logging-timestamp-to-include-microsecond/31335874
rm -vf logGenerator.log nBytes.txt fluent-bit_output.log foo.pdf nBytes_fb.txt fluent-bit_output.log
touch logGenerator.log
touch fluent-bit_output.log
python log_generator.py --logFile ... | true |
c5f20c22e1775745216b74f9579c5aa3f0206677 | Shell | MonkeyDHero/Learning-IO-Access-Patterns-to-improve-prefetching-in-SSDs- | /Data Download Scripts/download_all_subtraces_of_388.sh | UTF-8 | 1,823 | 3.921875 | 4 | [] | no_license | #!/bin/bash
#
# This script can only be run from the computer on which it was
# originally downloaded.
#
# This auto-generated script was downloaded from http://iotta.snia.org.
# It will download the 2 subtraces of MSR Cambridge Traces
#
echo "Downloading the 2 subtraces of MSR Cambridge Traces" 1>&2
cookies=$(mktemp)
... | true |
46b8f47bc3f3c280f5dd99100ab1ce6883a3ea59 | Shell | nicosommi/dotfiles | /install-cp.sh | UTF-8 | 632 | 2.625 | 3 | [] | no_license | printf "${BLUE}Installing nico's dotfiles...${NORMAL}\n"
cp ~/dotfiles/zsh/.zshrc ~/.zshrc
cp ~/dotfiles/vim/.vimrc ~/.vimrc
cp ~/dotfiles/tmux/.tmux.conf ~/.tmux.conf
# Git hooks templates (ctags)
git config --global init.templatedir '~/.git_template'
mkdir -p ~/.git_template
cp -R git_templates/* ~/.git_template
cp ... | true |
9cfd6984f1001459f860a033f6f8aa4b89103b59 | Shell | OpenSH4/qboxhd | /src/initramfs/etc/init.d/loop_images.sh | UTF-8 | 566 | 3.6875 | 4 | [] | no_license | #!/bin/sh
#
# @brief Display forever up to 3 images using <program> waiting <sleep>
# seconds between each one.
# Usage: images_loop.sh <sleep> <program> <image0> <image1> [image2]
#
# Copyright (c) 2010 Duolabs Spa
#
# Author: Pedro Aguilar (pedro@duolabs.com)
#
if [ "$1" == "" -o "$2" == "" -o "$3" ==... | true |
b26feeeebd993e4abb96e7fc371ee656a5e2a853 | Shell | ronin13/Scripts | /getimap | UTF-8 | 654 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#exit
if ! mount | grep -q wormole;then
echo "Booh.... "
exit
fi
if ps auxww | grep -q getmail | grep -v grep;then
exit
fi
echo "#########################`date`####################" >> ~/logs/getmail.log
left=$(/bin/df -h | grep home | head -1 | awk '{ print $5 }' | tr -d '%')
if [[ $left... | true |
5bf280372e9c31b4ccd6def851972109b5fc39f7 | Shell | vignestraining/Assignment | /Assignment -2/Elasticsearch.sh | UTF-8 | 1,114 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#pulling elasticsearch image
sudo docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.1
# Vignes.txt file contains containerid that can be used for health check
sudo docker run -itd -p 9200:9200 -p 9300:9300 --name elasticsearch -e "discovery.type=single-node" docker.elastic.co/elasticsearch/e... | true |
7481d15820224a2aa27a615e53073ed7fb80a88a | Shell | marcingorecki/RPiCam | /etc/init.d/cam_master | UTF-8 | 797 | 3 | 3 | [] | no_license | #! /bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# ... | true |
a09524e1c9297e72df8d8b38e2d0e0de76998a56 | Shell | shun-getto-systems/docker-wrapper-commands | /bin/logs | UTF-8 | 402 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
docker_wrapper_logs(){
local line=$1; shift
local target=$DOCKER_WRAPPER_LOGS_TARGET
if [ -z "$line" ]; then
line=-100
fi
if [ -z "$target" ]; then
target=$DOCKER_WRAPPER_APP_TARGET
fi
if [ -z "$target" ]; then
echo '$DOCKER_WRAPPER_LOGS_TARGET or $DOCKER_WRAPPER_APP_TARGET is... | true |
c168b0fb3b5cef12f30da34b62d322ffbe4847a1 | Shell | cornell-zhang/uptune | /conda/conda-build.sh | UTF-8 | 887 | 3.640625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# adjust the Python versions you would like to build
array=( 3.5 3.6 3.7 3.8)
echo "Building conda package ..."
conda config --add channels conda-forge
conda config --add channels powerai
# building conda packages
for i in "${array[@]}"
do
conda-build --python $i -c conda-forge .
done
CONDA_PATH=$HO... | true |
c2498376493a15b0eb76db38ebcc5dc7b25bef1b | Shell | devkinetic/ddev | /containers/ddev-dbserver/files/migrate_file_to_volume.sh | UTF-8 | 2,076 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
set -eu
set -o pipefail
# This script is used to migrate a ddev bind-mounted database to a docker-volume mounted database
# It is actually just for the initial migration of v1.0.0-era databases to (hopefully) v1.1.0
# docker-volume-mounted databases, around 2018-08-02. It should end up being not us... | true |
ce3815a26f6b51282ab7894e9d82e1652bc11688 | Shell | Sh3llSh0ck3d/mamutools | /printline.sh | UTF-8 | 1,554 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Catline
# http://cixtor.com/
# https://github.com/cixtor/mamutools
# http://en.wikipedia.org/wiki/Cat_(Unix)
#
# The cat program is a standard Unix utility that concatenates and lists files. The
# name is an abbreviation of catenate, a synonym of concatenate. The Single Unix
# Specification specifies th... | true |
ddcb90c78134579a13b6b19bd7cfdae00854e43f | Shell | milhnl/dotfiles | /XDG_BIN_HOME/submerge | UTF-8 | 1,276 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env sh
set -eu
checksub() { ffmpeg -i "$1" -c copy -map 0:s -f null - -v 0 -hide_banner; }
#They both give the exact same result, but I trust JSON a bit more
streams() {
ffprobe "$1" 2>&1 1>/dev/null | sed '
/^ *Stream #/!d;
s/^ *Stream #//;
s/: Audio: /: audio: /;
s/: V... | true |
b8000fb9539353ec25c4d41de53ed0d5f9ea65fb | Shell | sitya/heroku-buildpack-php | /bin/web.sh | UTF-8 | 977 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Copy this file to your PHP applications /app folder and put the line below into your Procfile:
# web: /app/web.sh
#
# Fail fast
set -o pipefail
set -eu
export PATH="$HOME/.heroku/php/bin:$HOME/.heroku/php/sbin:$PATH"
APP_CONFIG=/app/config
ROOT=/app/.heroku/php
# This is your properly configu... | true |
000421659254755e7badc7f9d603a555c3dedc25 | Shell | bytemine/univention-openvpn | /univention-openvpn/94openvpn4ucs.inst | UTF-8 | 30,477 | 2.65625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
## joinscript api: bindpwdfile
VERSION=1
SERVICE="OpenVPN"
export UNIVENTION_APP_IDENTIFIER="openvpn4ucs-2.0"
. /usr/share/univention-lib/base.sh
. /usr/share/univention-lib/ldap.sh
#. /usr/share/univention-lib/umc.sh
. /usr/share/univention-join/joinscripthelper.lib
joinscript_init
NEWKEY="/etc/openvp... | true |
f41370ed57a046571a86e2ef78b62ddc52f1a25a | Shell | alphagov-mirror/flooddata | /scripts/stations.sh | UTF-8 | 2,214 | 3.765625 | 4 | [
"MIT",
"OGL-UK-2.0"
] | permissive | #!/bin/bash
#
# process new unzipped stations xml files into an equivalent tsv
#
set -e
cd ${FLOODDATA:?}
mkdir -p cache www www/stations
export tmpfile=/tmp/stations.$$
export header=/tmp/stations-header
find files/ENT_7001 -name \*.xml |
while read xml
do
tsv=cache/$xml.tsv
if [ "$xml" -nt... | true |
7884af8c78212346521d5413c4458dd439656e52 | Shell | ViViDboarder/drone-webdav | /push.sh | UTF-8 | 1,661 | 3.734375 | 4 | [] | no_license | #! /bin/bash
set -e
ARGS=()
# Use WEBDAV_USERNAME as default, if provided.
if [ -z "$PLUGIN_USERNAME" ] && [ -n "$WEBDAV_USERNAME" ]; then
PLUGIN_USERNAME="$WEBDAV_USERNAME"
fi
# Use WEBDAV_PASSWORD as default, if provided.
if [ -z "$PLUGIN_PASSWORD" ] && [ -n "$WEBDAV_PASSWORD" ]; then
PLUGIN_PASSWORD="$WEBDAV_... | true |
96a88646bcf1fe57fbd79d3d87531b81facc1f15 | Shell | dreamer/dotfiles | /scripts/firefox-nightly | UTF-8 | 498 | 3.390625 | 3 | [] | no_license | #!/bin/bash
download () {
pushd ~/Downloads/
curl -L --output firefox-nightly.tar.bz2 \
"https://download.mozilla.org/?product=firefox-nightly-latest-l10n-ssl&os=linux64&lang=en-GB"
echo "Unpacking…"
tar xjf firefox-nightly.tar.bz2
mkdir -p ~/opt
mv firefox ~/opt/firefox-nightly
popd
}
run () {
pushd ~/opt/... | true |
56fec21e356529111d600d57198715ed38bed315 | Shell | stroomdev10/gaffer-doc | /scripts/updateVersions.sh | UTF-8 | 1,333 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if [ -z "$1" -o -z "$2" ]; then
echo "Usage: ./updateVersions.sh <new gaffer version> <new gaffer-tools version>"
exit 1
fi
git reset --hard
git clean -fd
git checkout master
git pull
gafferVersion=$1
gafferToolsVersion=$2
git checkout -b updating-versions-$gafferVersion-$gafferToolsVers... | true |
b4042e81144e1f58f0d8794f054314ab9fb9d290 | Shell | yayankov/Operating-systems-FMI | /shell-script/forExam/29.sh | UTF-8 | 392 | 3.53125 | 4 | [] | no_license | #!/bin/bash
if [ ${1} = "-n" ]; then
N=${2}
shift 2
else
N=10
fi
temp=$(mktemp)
for FILE; do
while read line; do
timestamp=$(echo ${line} | awk -F ' ' '{print $1,$2}')
IDF=$(echo ${FILE} | sed -E "s/.log$//")
data=$(echo ${line} | cut -d ' ' -f3-)
echo "${timestamp} ${IDF} ${data}" >> ${temp}
done < <... | true |
a9e672da72a7bfeb44b1e1284abfd05ac213a49a | Shell | attilioborri/bash_utilties | /YouTube/YoutubeDownloadMP3FromList | UTF-8 | 304 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Open List.txt
cat List.txt | while read line; do
youtube-dl -f 140 $line # Download audio (m4a)
done
# Convert M4A to MP3
for f in *.m4a
do
name=`echo "$f" | sed -e "s/.m4a$//g"`
ffmpeg -i "$f" -vn -ar 44100 -ac 2 -ab 128k -f mp3 "$name.mp3"
done
# Delete temp files
rm *.m4a
| true |
f80a44f92f77f61c95bd3df5ac95d9083422b8d7 | Shell | pheanex/BachelorThesis | /Scripts/iperf-multiple-clients | UTF-8 | 768 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# author kmanna
# date 03.06.2014
# Start multiple parallel throughput-Tests to other VMs
# Assumes iperf servers have been started, e.g.
# iperf -s -p PORT
export vmstart=$1
export vmend=$2
export self=$3
export send_count=$4
export bw=$5
if [[ -z "$vmstart" ]] || [[ -z "$vmend" ]] || [[ -z "$self" ]] ||... | true |
a254852535f3151151aa6c9cffb77574f87affae | Shell | mystatus/covid19-reports | /packages/server/generate-dev-certs.sh | UTF-8 | 2,531 | 2.734375 | 3 | [] | no_license | #!/bin/bash
mkdir server/keys
export ORGANIZATION="COVID Reports Dev"
export ORGANIZATIONAL_UNIT="COVID Reports Dev"
export CERTIFICATE_AUTHORITY_NAME="coviddevca"
export SERVER_CA_NAME="coviddevlocal"
# Create Certificate Authority
rm -rf server/certs
mkdir server/certs
openssl req -x509 -nodes -days 365 -newkey rs... | true |
aa306fd4b338b070eccb35536f9e8de18f8b9fe1 | Shell | Eventdisplay/Eventdisplay_AnalysisScripts_CTA | /utilities/prepareAnalysis.sh | UTF-8 | 3,340 | 3.3125 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# prepare analysis package into a new directory:
# - links hyper array evndisp files
# - links for sub array directories
# - analysis files
# - code compilation
if [ ! -n "$1" ]; then
echo "
./prepareAnalysis.sh <data set>
"
exit
fi
DSET="$1"
DDIR="$CTA_USER_DATA_DIR/analysis/AnalysisData/${... | true |
8db5aa2ba19e9e71cca8a3c8d6a052853a32e66b | Shell | godane/abs | /extra/p7zip/PKGBUILD | UTF-8 | 1,450 | 2.921875 | 3 | [] | no_license | # $Id: PKGBUILD 85904 2010-07-22 04:49:57Z dgriffiths $
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
# Contributor: TuxSpirit<tuxspirit@archlinux.fr> 2007/11/17 21:22:36 UTC
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=p7zip
pkgver=9.13
pkgr... | true |
0878018e65aface5dc59c405331f83ac2c06dd9f | Shell | haugene/dotfiles | /bin/openprs | UTF-8 | 2,788 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
##############################################################################
# openprs
# -----------
# Get the openprs for all of a users github repos
#
# :authors: Jess Frazelle, @jfrazelle
# :date: 8 June 2015
# :version: 0.0.1
############################################################################... | true |
a84481a7e5024fbb5c5b17df84e816aeb8156953 | Shell | cristian1604/docker-server | /apache/scripts/install-php-cs-fixer.sh | UTF-8 | 321 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
SHELL_BIN="${SHELL##*/}" # get filename
SHELLRC="$HOME/.${SHELL_BIN}rc"
composer global require friendsofphp/php-cs-fixer
if grep ".composer/vendor/bin" $SHELLRC; then
echo "Composer vendors installed"
else
echo "" >> $SHELLRC
echo "export PATH=$PATH:$HOME/.composer/vendor/bin" >> $SHELLRC
fi... | true |
45117f80335d8872cb114f6c13e1b22ca8791acd | Shell | ef-ctx/platforms | /java/install | UTF-8 | 768 | 2.71875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
# Copyright 2016 tsuru authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
SOURCE_DIR=/var/lib/tsuru
source ${SOURCE_DIR}/base/rc/config
apt-get update
apt-get install -y --no-install-recommends \
openjdk-7-jdk... | true |
7caa709024c6ae6f3284cfc0c6977ec466669a9a | Shell | broadinstitute/PANOPLY | /panda/panda-src/bin/obsolete/get_split_samples.sh | UTF-8 | 735 | 2.90625 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Copyright (c) 2020 The Broad Institute, Inc. All rights reserved.
#
echo -e "\n---------------------------"
echo -e "get split samples ---------"
echo -e "---------------------------\n"
source config.sh
source $src/tedmint-lib.sh
fissfc sample_list -w $wkspace -p $project -t sample > samples_list.tx... | true |
ea5ab64b61366d1e6f5600eed31fa0a24a247c64 | Shell | enterstudio/bokeh | /scripts/dev_environment | UTF-8 | 1,754 | 4.09375 | 4 | [] | permissive | #!/bin/bash
# CLI user interface
if [ "$1" == "-h" ]; then
usage="$(basename "$0") [-h] -- program to install all the bokeh dependencies
where:
-h show this help text
-e ENVIRONMENT were you want to install the dependencies, defaults to bokeh
-b install BUILD dependencies,... | true |
f9a2a9197e9c3d300a5552a93e8362bb8947de72 | Shell | ilaishai/ArchConfigs | /Files/.scripts/media/decreaseVol | UTF-8 | 114 | 2.53125 | 3 | [] | no_license | #!/bin/bash
for SINK in $(pacmd list-sinks | grep 'index:' | cut -b 12)
do
pactl set-sink-volume $SINK -5%
done
| true |
61d91cab0c9d6bbd1b0ea1fa47b4f48f15af3cea | Shell | gharper/scripts | /moreutils.sh | UTF-8 | 1,988 | 3.828125 | 4 | [] | no_license | #!/usr/bin/env bash
# Uses https://joeyh.name/code/moreutils/
printf "\nchronic: runs a command quietly unless it fails\n"
printf "\tnchronic noisyscript.sh"
printf "\ncombine: combine the lines in two files using boolean operations\n"
printf "\tcombine file1 and file2\n"
printf "\tcombine file1 not file2\n"
printf ... | true |
42ba2d0b7b8fd97660d5a3d764a2687c92d9d10e | Shell | BackofenLab/IntaRNA-benchmark | /intarna-benchmark-sge.sh | UTF-8 | 1,389 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#$ -N intaRNA-benchmark
#$ -cwd
#$ -pe smp 24
#$ -R y
#$ -l h_vmem=1G
#$ -o /scratch/bi03/gelhausr/intaRNA/IntaRNA-benchmark/sge-out/
#$ -j y
#$ -M gelhausr@informatik.uni-freiburg.de
#$ -m a
# This script will require a conda environment with:
# - the necessary dependencies of intaRNA
# - python3 | pandas... | true |
a002e3e78d3d1fabd1ba87fb1702157dc657caf2 | Shell | HashDataInc/docs | /build.sh | UTF-8 | 738 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR}
rm -rf _book
if [ ! -e node_modules ]; then
npm install markdown-parser2
gitbook install --log error
fi
for d in */; do
if [ ! -f ${d}/book.json ]; then
continue
fi
echo "Generate PDF for book $... | true |
536f23449f1291f251aa3638dce945829a08673f | Shell | Chillimeat/natto-nemesis | /Add_Japanese_Support.sh | UTF-8 | 1,454 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -e
##################################################################################################################
echo "################################################################"
echo "######### Adding Japanese Support! ################"
echo "############################... | true |
d69936a064cefee9690a00dda519f92029f0ad0d | Shell | dsvi/NotesTree | /PKGBUILD | UTF-8 | 1,052 | 2.6875 | 3 | [
"Zlib"
] | permissive | # Fixer-upper: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: baltic <1000Hz.radiowave at google mail>
pkgname=notes-tree
pkgver=1.0
pkgrel=2
pkgdesc="Note taking (knowledge base) app with tree like notes structure"
arch=('i686' 'x86_64' 'aarch64')
url="https://bitbucket.org/baltic/notestree/src"
license=('ZLIB... | true |
142d1893f8b4152455adfc1346713bd355bae529 | Shell | sipb/homeworld | /tools/shellcheck-all.sh | UTF-8 | 700 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
failed=""
while IFS="" read -r -d '' file
do
if grep -Eq '^#!(.*/|.*env +)(sh|bash)' "$file" || [[ "$file" =~ \.(ba)?sh$ ]]
then
# SC1091: Some of our scripts include configuration files which are not known statically.
# TODO(... | true |
55232b71e4eaee4603d9b9a3270b7b7184a4c855 | Shell | delkyd/alfheim_linux-PKGBUILDS | /whysynth/PKGBUILD | UTF-8 | 682 | 2.59375 | 3 | [] | no_license | # Maintainer: Sean Bolton <sean at smbolton dot com>
pkgname=whysynth
pkgver=20120903
pkgrel=2
pkgdesc="A versatile softsynth plugin for the DSSI Soft Synth Interface"
url="http://www.smbolton.com/whysynth.html"
depends=('alsa-lib' 'liblo' 'gtk2' 'fftw')
makedepends=('dssi')
license=('GPL')
source=(http://www.smbolton.... | true |
1fe2710afd513cd9fce9caba019665e3cab5c509 | Shell | hugobarona/serverless-cognitive | /etc/deploy.sh | UTF-8 | 2,145 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# CHANGE THESE VALUES!
# Note. Pick a location where Vision API is available
resGroup="Demo.ServerlessVision"
location="northeurope"
# CHANGE THESE VALUES IF YOU WISH
suffix="$RANDOM"
storeAcct="visiondemostore$suffix"
functionName="visiondemofunc$suffix"
echo "### Creating resource group"
az group crea... | true |
b2d0820f03935980912000c3b2cd1cbc84ec47d2 | Shell | ple-utt239/macports-ports | /audio/sinsy/files/sinsy_demo | UTF-8 | 456 | 2.703125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
SINSY="@PREFIX@/bin/sinsy"
VOICE_DIR="@PREFIX@/lib/sinsy/voice/hts_voice_nitech_jp_song070_f001-0.90"
VOICE_FILE="${VOICE_DIR}/nitech_jp_song070_f001.htsvoice"
DIC_DIR="@PREFIX@/lib/sinsy/dic"
WAVFILE="/tmp/sinsy-demo-$$.wav"
INFILE="${VOICE_DIR}/SAMPLE.xml"
echo "${SINSY} -m ${VOICE_FILE} -o ${WAVFILE} -... | true |
db7bd14629960a874fbae0d6ed60c18338ddcf8c | Shell | JiaqiGao/Advanced_Networks-P3 | /trace_script | UTF-8 | 787 | 2.71875 | 3 | [] | no_license | #! /bin/sh
declare -a websites=("www.youtube.com" "www.yahoo.com" "www.facebook.com" "www.reddit.com" "www.instructure.com" "www.stackoverflow.com" "www.linkedin.com" "www.irs.gov" "www.nytimes.com" "www.cnn.com" "www.salesforce.com" "www.okta.com" "www.wikipedia.org" "www.imgur.com" "www.dropbox.com" "www.etsy.com" "w... | true |
65e23e8308446291f24badbdc86729ece138ec06 | Shell | petronny/aur3-mirror | /anyterm/anytermd.rc.d | UTF-8 | 822 | 3.5625 | 4 | [] | no_license | #! /bin/bash
### /etc/rc.d/anytermd: Initscript for Anyterm
. /etc/conf.d/anytermd
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/anytermd`
case "$1" in
start)
stat_busy "Starting Anyterm Daemon"
[ -z "$PID" ] && /usr/sbin/anytermd \
$ANYTERMD_OPTIONS \
-c "$ANYTERMD_COMMAN... | true |
eccd0a1e0a09566af1f243bec1a2c042e75fc629 | Shell | Reseed-Farm/regen-s2-ard | /scripts/s2-ard.sh | UTF-8 | 2,430 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#pull Regen Network Sentinel-2 ARD
#docker pull regennetwork/s2-ard
# run Regen Network Sentinel-2 ARD
#docker run --name s2-ard -dit ard
#docker run -dit -v "C:\Users\sambe\Documents\regen\grasslands_projects\s2-ard\src:/app/" --name s2-ard ard
docker restart s2-ard
start=$SECONDS
# parse named argument... | true |
62c4e63e12f644eb88ed7c96b4d253bea5134877 | Shell | Novabutter/Ubuntu-12.04.2-LTS-Binary-Check | /og-binaries-Ubuntu-12.04.2.sh.orig | UTF-8 | 802 | 2.6875 | 3 | [] | no_license | #!/bin/sh
##################### RUN AS ROOT ####################
echo "--- System Binaries ---" > binaryVerifyOG.txt
echo "" >> binaryVerifyOG.txt
for i in /bin/*
do
binary=$(echo "$i" | cut -d "/" -f3)
md5sum=$(md5sum $i | cut -d " " -f1)
echo "$i $md5sum" >> binaryVerifyOG.txt
done
echo "" >> binaryVerifyOG.txt
e... | true |
5af7c58f5fb7e892897a5d132c713c33baa2943f | Shell | LabNeuroCogDevel/preproc_pipelines | /pipes/template | UTF-8 | 403 | 3.03125 | 3 | [] | no_license | #!/usr/bin/bash
PIPE_FOR="INITIALS of who pipeline is written for"
PIPE_DESC80="80 char or less desc"
PIPE_DESC="
This pipeline processes rest data
"
PIPE_DEPENDS=()
PIPE_VERSION="YYYYMMDD"
FINALOUT=()
function check_complete {
wantonlyoneid $@ || return 1
has_finalout $1 || return 1
return 0
}
function run_pipe... | true |
9a6dcf31ab2045688154a839d492bb6eff1a531a | Shell | faycute/tools | /aws/update_users_name/update_users_name.sh | UTF-8 | 510 | 3.5625 | 4 | [] | no_license | #!/bin/bash
SCRIPT_DIR=$(cd $(dirname $0); pwd)
. $SCRIPT_DIR/env.sh
USER_NAMES=$(aws iam list-users --output text --query Users[].UserName --profile $PROFILE)
for old_user_name in $USER_NAMES
do
if [[ $old_user_name == *$TARGET_STRING* ]]; then
new_user_name=$(echo $old_user_name | sed -e "s/$TARGET_STRING/$N... | true |
db83a326be44e593a73428a831ad36707928b72a | Shell | notalex/level-up-coder | /level-up | UTF-8 | 835 | 3.484375 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
set -e
source ./lib/progress-bar.sh
source ./db/user-config.sh
source ./lib/fib-helper.sh
read -rp "What will you work on? " task
read -rp "for how many minutes? " currentMins
progress-bar $(($currentMins * 60))
hours=$totalHours
mins=$(($currentMins + $prevMins))
if [ $((60 - $mins)) -le 0 ]... | true |
e08256aef219bd6439a2b6f0663ec811a44392f4 | Shell | olsydor/summer-school | /Task_2/Task2.sh | UTF-8 | 401 | 3.40625 | 3 | [] | no_license | #Constants
#DB_Constants
DB_NAME=moodle
DB_USER=moodleuser
#generation file name
underscore="_"
curdatetime='date +%d%m%Y_%H%M'
filename=$DB_NAME$underscore$curdatetime".sql"
UP=$(pgrep mysql | wc -l);
if [ "$UP" -ne 1 ];
then
echo "MySQL is down.";
sudo service mysql start
else
echo "All is w... | true |
01db31c26c67bb42f4ae893c254d923e35787ab4 | Shell | Bertoni94/bash | /examen2.sh | UTF-8 | 857 | 3.1875 | 3 | [] | no_license | #!/bin/bash
continuar=C
while [ $continuar = C ]:
echo "Presione \n 1 para crear un grupo \n 2 para agregar un usuario \n 3 crear un
usuario a un grupo"
read var1
do
{
if [ $var1 = 1 ]:
then
echo "escriba el nombre del grupo"
read var2
sudo addgroup $var2
echo "se a creado tu grupo"
echo "C para continuar, S... | true |
ce20b668ff948914e94a83211e7ee030d2902558 | Shell | barryb/cloudtools | /host-recipes/rds-backup/initial-config.sh | UTF-8 | 1,492 | 3.421875 | 3 | [] | no_license | #!/bin/sh
# The script updates installed packages and adds any required ones for backing up the RDS server.
# Some initial config, including installing git and the cloud credentials needs to be done prior to this
# ideally, by using the user_data file for amazon cloud servers
LOGFILE="/tmp/setup.log"
(
echo "Initi... | true |
1ad558890d5b78d35d638a80ce91651ef759faac | Shell | Sifchen/CodeBeispieleStudium | /unix/ueb01/lister.sh | UTF-8 | 876 | 3.21875 | 3 | [] | no_license | #!/bin/sh
#Autoren: Minf103095(Daniel Pigotow) , Minf103430(Michael Smirnov)
#Letzte Aenderung 19.04.2019 13:14
#Das Skript soll in dem Ordner in dem es sich befindet zunächst einen Unterordner mit dem Namen info anlegen.
#Sollte der Unterordner bereits existieren, so soll dies ignoriert werden und nicht zu einer Feh... | true |
f518df4565f3d1a0858231793845b4a255f0cd9b | Shell | bopopescu/ops-1 | /centos7-init/3.system.sh | UTF-8 | 976 | 2.8125 | 3 | [] | no_license |
## selinux
cp -v selinux /etc/selinux/config
## sudo
sudof="/etc/sudoers"
sudoer_opt1='Defaults logfile=/var/log/sudo.log'
sudoer_opt2='Defaults !syslog'
sudoer_opt3='Defaults timestamp_timeout=120'
sudoer_ops4='Defaults !tty_tickets'
for sudo_opt in "$sudoer_opt1" "$sudoer_opt2" "$sudoer... | true |
b78426daafcb2c74f64fc6b95bac6540b045de13 | Shell | plesner/script | /bash/prompt.sh | UTF-8 | 3,935 | 3.78125 | 4 | [] | no_license | # The default user which we won't bother to show.
_prompt_default_user="plesner"
# The default machine which we won't bother to show.
_prompt_default_hostname="hackenschmidt"
# Mappings from names to the abbreviations to use in the pwd.
_prompt_path_segment_abbrevs=(
Documents=D
neutrino=n
)
# How long are we wi... | true |
e70fbee2b8fe2d8c0a62a83f5d7d7c7e28601219 | Shell | arthur-flam/apiADP | /scrap.sh | UTF-8 | 392 | 3.09375 | 3 | [] | no_license | #!/bin/bash
mkdir data
from=$(date +"%Y-%m-%d" --date="7 days ago")
today=$(date +"%Y-%m-%d")
to=$(date +"%Y-%m-%d" -d "3 months")
current=$from
while [ "$to" != "$current" ] ;
do
./getFlights.sh $current
file=data/flights-$current.xml
./load.py $file && \
gsutil cp $file gs://adp-flights/$today/$curre... | true |
c5b29a4c10674d41d807effbcb0017d068b94ded | Shell | bnavetta/night-kitchen | /scripts/release.sh | UTF-8 | 528 | 3.53125 | 4 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
set -eou pipefail
cd "$(git rev-parse --show-toplevel)"
if [ -n "$(git status --porcelain)" ]; then
echo "Working directory is not clean!" >&2
exit 1
fi
if [ $# -ne 1 ]; then
echo "Usage: $0 <version>" >&2
exit 1
fi
version="$1"
echo "Releasing v$version"
sed -i "s/^pkgver=.*/pkgver='$... | true |
69d710f50d5f22fb90fa6a3a191b258f67642270 | Shell | cnicol-gwlogic/surface-water-network | /ci/do_install.sh | UTF-8 | 624 | 3.796875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
set -e
# This script is called from another install.sh script
if [ -z ${URL+x} ]; then
echo "This script cannot be called directly" 1>&2
exit 1
fi
REPODIR=$(pwd)
PREFIX=$HOME/.local
if [ -d "$PREFIX/bin/$BIN" ]; then
echo "Using cached install $PREFIX/bin/$BIN"
else
echo "Building $PREFIX/bin... | true |
7ab267960648b41094f08ee23efc305e16052be5 | Shell | mvilera/vsftpd-test | /create-user.sh | UTF-8 | 2,196 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Created by Marco Vilera.
set -e
# SOLICITAMOS INFORMACION DEL USUARIO
echo "Please enter the USERNAME and press [ENTER]: "
read USERNAME
echo "Please enter the PASSWORD and press [ENTER]: "
read -s PASSWORD
echo "Do you wish the new user have SSH access? answer [yes/no] then press [ENTER]: "
read SHELL_A... | true |
d64ee3bca3253668acdf77a82be429e78513b4b7 | Shell | keiouok/atcoder | /make_dir.sh | UTF-8 | 463 | 3.640625 | 4 | [] | no_license | #!/bin/bash
MIN_NUM=1
MAX_NUM=200
GAP=1
for i in `seq -w $MIN_NUM $GAP $MAX_NUM`
do
if [ ! -e $i ]; then
mkdir $i
fi
for file in a b c d e f
do
if [[ ! -f ./$i/$file.py ]]; then
cp ../a.py ./$i/$file.py
fi
done
done
cp ./make_dir.sh ../make_dir.sh
echo "[Finished] making directory from $MIN_NUM to $MAX_NUM."
echo "... | true |
5d33399db18e941a6adacc830f6c05c506db7740 | Shell | spiralofhope/compiled-website | /scripts/edit.sh | UTF-8 | 1,990 | 3.09375 | 3 | [] | no_license | :<<'heredoc'
FIXME: I will eventually change my setup to automatically start the compiled website daemon.
When that is done, this file will have to kill the old process and start a new one.
- If you get a file deletion error, manually kill the ruby process.. then re-save main.rb and things should work out.
-- This is ... | true |
04dabff061fa919c5936336a5f0ec4f16db69b6a | Shell | KaOSx/apps | /ack/PKGBUILD | UTF-8 | 654 | 2.546875 | 3 | [] | no_license |
# do not build on server, perl issues
pkgname=ack
pkgver=3.7.0
pkgrel=1
pkgdesc="A Perl-based grep replacement, aimed at programmers with large trees of heterogeneous source code"
arch=('x86_64')
url="https://beyondgrep.com/"
license=('GPL' 'PerlArtistic')
depends=('perl-file-next')
options=('!emptydirs')
groups=('pro... | true |
68fe59a876793dd301b51c3bc0aada81270bf144 | Shell | Seiderlord/ParalleleProgrammierung | /week12/jobEX1.sh | UTF-8 | 1,306 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# Executes job in the queue "std.q" unless you have special requirements.
#$ -q std.q
# Changes to the current working directory before performing any further action
#$ -cwd
# Name of your job. Unless you use the -o and -e options, output will
# go to a unique file name.ojob_id for each job.
#$ -N ResEx1... | true |
127474acb9caad30bcf83238cd832b50118c90b8 | Shell | openstack/neutron-vpnaas-dashboard | /devstack/plugin.sh | UTF-8 | 2,131 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | # plugin.sh - DevStack plugin.sh dispatch script neutron-vpnaas-dashboard
VPNAAS_DASHBOARD_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd)
VPNAAS_ENABLED_DIR=$VPNAAS_DASHBOARD_DIR/neutron_vpnaas_dashboard/enabled
HORIZON_ENABLED_DIR=$DEST/horizon/openstack_dashboard/local/enabled
function install_neutron_vpnaas_dashboard... | true |
bd9bf6b1884906f90b17e9b54782fea99f8b0fb1 | Shell | kxtry/android-stress-script | /script/mytail.sh | UTF-8 | 2,946 | 3.328125 | 3 | [] | no_license | #!/bin/sh
path_current=`pwd`
path_script=$(cd "$(dirname "$0")"; pwd)
path_data=$path_script/../data
target=$1
param=$2
if [ "$target" == "" ]; then
echo "should like mytail.sh 192.168.30.25 temp,frame"
exit 1
fi
elapseLast=0
pidLast=0
while true
do
run_time=$(date "+%Y%m%d%H%M")
if [ ! -d "$path_data/${ta... | true |
b6675517804df322ba2bc7e43eaf697e70fef442 | Shell | pujita96/tf-devstack | /rhosp/undercloud/02_deploy_as_stack.sh | UTF-8 | 637 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
my_file="$(readlink -e "$0")"
my_dir="$(dirname $my_file)"
if [ -f ~/rhosp-environment.sh ]; then
source ~/rhosp-environment.sh
else
echo "File ~/rhosp-environment.sh not found"
exit
fi
# ssh config to do not check host keys and avoid garbadge in known hosts files
mkdir -p ~/.ssh
chmod 700 ... | true |
87839698ec041c00bfa2132896c55eb71226a4c1 | Shell | henrypbriffel/virtual-environments | /images/linux/scripts/installers/homebrew-validate.sh | UTF-8 | 458 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
################################################################################
## File: homebrew-validate.sh
## Desc: Validate the Homebrew can run after reboot without extra configuring
################################################################################
# Validate the installation
echo ... | true |
9cde5a7194f2f508e2376d795e509a078a588b46 | Shell | Garophel/dotfiles | /scripts/util/volume-ctrl.sh | UTF-8 | 800 | 3.21875 | 3 | [] | no_license | #!/bin/bash
pasink=0
usage() {
echo "$0 <command>"
echo ' up'
echo ' down'
echo ' mute'
}
if [ -z "$1" ]; then
echo 'Provide a command!'
usage
exit 1
fi
case "$1" in
up)
#pactl set-sink-mute $pasink false
#pactl set-sink-volume $pasink +5%
... | true |
69ef6cf62fdae219dab559f45c89a39102a6f30e | Shell | XuJianxu/dm | /tests/openapi/run.sh | UTF-8 | 2,087 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -eu
cur=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $cur/../_utils/test_prepare
export PATH=$PATH:$cur/client/
WORK_DIR=$TEST_DIR/$TEST_NAME
function prepare_database() {
run_sql 'DROP DATABASE if exists openapi;' $MYSQL_PORT1 $MYSQL_PASSWORD1
run_sql 'CREATE DATABASE openapi;' $MYSQL_PORT... | true |
582cad5ac9e71549c63ef48aefd595b8110a43b0 | Shell | skak/skaktop-home | /skript/google | UTF-8 | 272 | 3.09375 | 3 | [] | no_license | #!/bin/bash
if [[ "$*" == "" ]] || [[ "$*" == "--help" ]]; then
echo "Usage:"
echo "$0 <search term and as many spaces as you would like goes here>..."
echo "This will yield results in w3m."
exit 0
else
w3m http://www.google.ca/search?q="$*";
exit 0
fi
exit 0
| true |
b1c81fd81688de435410999d88c6f3923a82c660 | Shell | mshokrnezhad/DRA_in_D2D | /script_ng.sh | UTF-8 | 389 | 2.578125 | 3 | [] | no_license | #!/bin/bash
g++ -g node_generator_v01.cpp -o ng.out
#g++ -g node_generator_v02.cpp -o ng.out
#g++ -g node_generator_v03.cpp -o ng.out
for n in `seq 60 60`;
do
for itr in `seq 1 10`;
do
echo "n=$n,iteration=$itr"
echo "n=$n,iteration=$itr" >> R01_LoN.txt
echo "n=$n,iteration=$itr" >> R01_LoS.txt
echo "n=$n... | true |
e5e3037589a0e0975323bb70a4457fe075e40793 | Shell | gerardaus/dotfiles | /bin/dwm-brightness | UTF-8 | 372 | 3.75 | 4 | [] | no_license | #!/bin/zsh
#
# Set brightness with xbacklight, but never go below 1 (as that's "off").
#
# Increment to use.
incr=2
cur=$(light -G)
case "$1" in
"up")
if [[ $cur -eq 0 ]]; then
light -S 1
else
light -A $incr
fi
;;
"down")
if [[ $cur -le 0 ]]; then
light -S 0
else
light -U $incr
fi
;;
*)
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.