Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add -allow-empty to the documentation commit
#!/bin/sh set -e export VSINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" export VisualStudioVersion="16.0" docfx ./docs/docfx.json SOURCE_DIR=$PWD TEMP_REPO_DIR=$PWD/../my-project-gh-pages echo "Removing temporary doc directory $TEMP_REPO_DIR" rm -rf $TEMP_REPO_DIR mkdir $TEMP_REPO_DIR ...
#!/bin/sh set -e export VSINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" export VisualStudioVersion="16.0" docfx ./docs/docfx.json SOURCE_DIR=$PWD TEMP_REPO_DIR=$PWD/../my-project-gh-pages echo "Removing temporary doc directory $TEMP_REPO_DIR" rm -rf $TEMP_REPO_DIR mkdir $TEMP_REPO_DIR ...
Fix Memory not output anything
#!/bin/bash # Base on article https://la-vache-libre.org/stress-ng-un-outil-pratique-pour-tester-la-stabilite-des-composants-de-votre-machine-en-charge-elevee/ while getopts n:r: option do case "${option}" in n) WORKER_COUNT=$OPTARG;; r) RESULT=$OPTARG;; esac don...
#!/bin/bash # Base on article https://la-vache-libre.org/stress-ng-un-outil-pratique-pour-tester-la-stabilite-des-composants-de-votre-machine-en-charge-elevee/ while getopts n:r: option do case "${option}" in n) WORKER_COUNT=$OPTARG;; r) RESULT=$OPTARG;; esac don...
Add script path prefix to jenkins-call-url command
function canonicalize() ( cd "${1%/*}" echo "${PWD}/${1##*/}" ) if [ -f build.gradle ]; then [ -z "${FORCE_UPGRADE}" ] && export JENKINS_USER="admin" || export JENKINS_USER="${JENKINS_USER:-admin}" export JENKINS_PASSWORD="${JENKINS_PASSWORD:-$(<"${JENKINS_HOME}"/secrets/initialAdminPassword)}" unset JENKIN...
function canonicalize() ( cd "${1%/*}" echo "${PWD}/${1##*/}" ) if [ -f build.gradle ]; then [ -z "${FORCE_UPGRADE}" ] && export JENKINS_USER="admin" || export JENKINS_USER="${JENKINS_USER:-admin}" export JENKINS_PASSWORD="${JENKINS_PASSWORD:-$(<"${JENKINS_HOME}"/secrets/initialAdminPassword)}" unset JENKIN...
Remove custom libogg path to match Unix makefile build script.
#!/bin/bash -e # continuous integration test script # run this from the top-level source directory OGG_PATH=/srv/jenkins/jobs/libogg/workspace VIDEOS=/usr/local/share/videos ./autogen.sh CFLAGS='-O2 -g' ./configure --enable-assertions --enable-check-asm --enable-logging --enable-accounting PKG_CONFIG_PATH=${OGG_PATH}...
#!/bin/bash -e # continuous integration test script # run this from the top-level source directory VIDEOS=/usr/local/share/videos ./autogen.sh CFLAGS='-O2 -g' ./configure --enable-assertions --enable-check-asm --enable-logging --enable-accounting make clean make distcheck make docs make ./examples/encoder_example -k ...
Add date and time to index file
#!/bin/sh source "./config" if [ -z $OUTDIR ] ; then OUTDIR=. fi ## setup OUT=${OUTDIR}/basic mkdir -p ${OUT} ## capture basic information ps -axjf >> $OUT/List_of_Running_Processes.txt pstree -ah >> $OUT/Process_tree_and_arguments.txt mount >> $OUT/Mounted_items.txt diskutil list >> $OUT/BasicInfo/Disk_utility.t...
#!/bin/sh source "./config" if [ -z $OUTDIR ] ; then OUTDIR=. fi ## setup OUT=${OUTDIR}/basic mkdir -p ${OUT} date >> ${OUT}/index ## capture basic information ps -axjf >> $OUT/List_of_Running_Processes.txt pstree -ah >> $OUT/Process_tree_and_arguments.txt mount >> $OUT/Mounted_items.txt diskutil list >> $OUT/Dis...
Remove nail PATH export and conditionalise rvm source
fpath=($ZSH/functions $fpath) autoload -U $ZSH/functions/*(:t) #plugins=(ant django extract git git-flow github history-substring-search pip python ruby ssh-agent dirpersist) plugins=(vi-mode extract history-substring-search python ruby ssh-agent osx copyfile gitignore) source ~/.rvm/scripts/rvm export RUBYOPT="-I ."...
fpath=($ZSH/functions $fpath) autoload -U $ZSH/functions/*(:t) #plugins=(ant django extract git git-flow github history-substring-search pip python ruby ssh-agent dirpersist) plugins=(vi-mode extract history-substring-search python ruby ssh-agent osx copyfile gitignore) if [ -f ~/.rvm/scripts/rvm ]; then source ~...
Update the current song script
#!/usr/bin/env bash # Inspired by: https://www.tylerewing.co/tmux-now-playing osascript <<APPLESCRIPT (* Test if iTunes is running. *) if is_app_running("iTunes") then tell application "iTunes" if (player state as text) is equal to "playing" then if current stream title is not equal to missing...
#!/usr/bin/env bash # Inspired by: https://www.tylerewing.co/tmux-now-playing osascript <<APPLESCRIPT tell application "System Events" set running_apps to (name of every process) end tell set app_names to {"iTunes", "Spotify"} repeat with app_name in app_names (* Test if the app is running. *) if running...
Revert "fix(pacman): systemct daemon-reload is done automatically"
pre_install() { useradd -U -l -M -r -s /usr/bin/nologin -d /var/lib/{{name}} -c "{{description}}" {{name}} } post_install() { openssl genrsa -out /etc/{{name}}/{{name}}.rsa 1024 openssl rsa -in /etc/{{name}}/{{name}}.rsa -pubout > /etc/{{name}}/{{name}}.rsa.pub chown {{name}}:{{name}} /etc/{{name}}/{{name}}.rsa* ...
pre_install() { useradd -U -l -M -r -s /usr/bin/nologin -d /var/lib/{{name}} -c "{{description}}" {{name}} } post_install() { openssl genrsa -out /etc/{{name}}/{{name}}.rsa 1024 openssl rsa -in /etc/{{name}}/{{name}}.rsa -pubout > /etc/{{name}}/{{name}}.rsa.pub chown {{name}}:{{name}} /etc/{{name}}/{{name}}.rsa* ...
Update git pull alias to update submodules recursively
alias g="git" # See `scmpuff/env.zsh` for the `gl` alias alias gap="git add -p" alias gcob="git checkout -b" alias gc="git commit" alias gdt="git difftool" alias gpl="git pull" alias gps="git push" alias gaa="git add --all" alias gca="git commit --amend" # amend commit without editing message alias gcam="git commit -...
alias g="git" # See `scmpuff/env.zsh` for the `gl` alias alias gap="git add -p" alias gcob="git checkout -b" alias gc="git commit" alias gdt="git difftool" alias gpl="git pull && git submodule update --init --recursive" alias gps="git push" alias gaa="git add --all" alias gca="git commit --amend" # amend commit witho...
Make sure that gtest-targets.mk gets regenerated with the right directory
#!/bin/sh cd "$(git rev-parse --show-toplevel 2>/dev/null)" >/dev/null 2>&1 python build/mktargets.py --directory codec/decoder --library decoder python build/mktargets.py --directory codec/encoder --library encoder --exclude DllEntry.cpp python build/mktargets.py --directory codec/common --library common --exclude asm...
#!/bin/sh cd "$(git rev-parse --show-toplevel 2>/dev/null)" >/dev/null 2>&1 python build/mktargets.py --directory codec/decoder --library decoder python build/mktargets.py --directory codec/encoder --library encoder --exclude DllEntry.cpp python build/mktargets.py --directory codec/common --library common --exclude asm...
Add iwyu to Bamboo debug Linux build.
#!/bin/bash set -o errexit set -o xtrace DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Run the common setup ${DIR}/setup-dependencies.sh # Install nupic.core dependencies pip install \ --cache-dir /usr/local/src/nupic.core/pip-cache \ --build /usr/local/src/nupic.core/pip-build \ --no-clean \...
#!/bin/bash set -o errexit set -o xtrace DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Run the common setup ${DIR}/setup-dependencies.sh apt-get install -y iwyu # Install nupic.core dependencies pip install \ --cache-dir /usr/local/src/nupic.core/pip-cache \ --build /usr/local/src/nupic.core/pip-...
Add compat for old appServerVersion constant pattern
@class AppServerVersionConstants(){ GLASSFISH_VERSION(){ echo "3.1.2.2" } JBOSS_VERSION(){ echo "eap-7.0.0" } JETTY_VERSION(){ echo "8.1.10" } JONAS_VERSION(){ echo "5.2.3" } RESIN_VERSION(){ echo "4.0.44" } TCAT_VERSION(){ echo "7.0.2" } TCSERVER_VERSION(){ echo "3.2.5" } TOMCAT_VER...
include string.util.StringUtil @class AppServerVersionConstants(){ GLASSFISH_VERSION(){ echo "3.1.2.2" } JBOSS_VERSION(){ echo "eap-7.0.0" } JETTY_VERSION(){ echo "8.1.10" } JONAS_VERSION(){ echo "5.2.3" } RESIN_VERSION(){ echo "4.0.44" } TCAT_VERSION(){ echo "7.0.2" } TCSERVER_VERSION()...
Add environment variable for version of the SDK
export BOUNDARY_SDK_HOME=$PWD export BOUNDARY_MIB_REPOSITORY="$BOUNDARY_SDK_HOME/runtime/mibrepository" export PATH=$PATH:"$BOUNDARY_SDK_HOME/src/main/scripts" alias bsdk='cd $BOUNDARY_SDK_HOME'
export BOUNDARY_SDK_HOME=$PWD export BOUNDARY_SDK_VERSION=0.00.03 export BOUNDARY_MIB_REPOSITORY="$BOUNDARY_SDK_HOME/runtime/mibrepository" export PATH=$PATH:"$BOUNDARY_SDK_HOME/src/main/scripts" alias bsdk='cd $BOUNDARY_SDK_HOME'
Kill cloud sql proxy after tests complete.
#!/bin/bash for required_variable in \ GOOGLE_CLOUD_PROJECT \ GOOGLE_APPLICATION_CREDENTIALS \ GOOGLE_CLOUD_STORAGE_BUCKET \ ALTERNATE_GOOGLE_CLOUD_STORAGE_BUCKET \ ; do if [[ -z "${!required_variable}" ]]; then echo "Must set $required_variable" exi...
#!/bin/bash for required_variable in \ GOOGLE_CLOUD_PROJECT \ GOOGLE_APPLICATION_CREDENTIALS \ GOOGLE_CLOUD_STORAGE_BUCKET \ ALTERNATE_GOOGLE_CLOUD_STORAGE_BUCKET \ ; do if [[ -z "${!required_variable}" ]]; then echo "Must set $required_variable" exi...
Add extra grep filtering to get rid of CI-specific issues
#!/bin/bash mkdir -p src/test/resources/results/actual/ EXPECTED_RESULT="src/test/resources/results/expected/report.txt" ACTUAL_RESULT="src/test/resources/results/actual/report.txt" ACTUAL_RESULT_PARSED="src/test/resources/results/actual/report_parsed.txt" mvn clean verify \ -Dmode=report \ -DjmeterCsv=src/t...
#!/bin/bash mkdir -p src/test/resources/results/actual/ EXPECTED_RESULT="src/test/resources/results/expected/report.txt" ACTUAL_RESULT="src/test/resources/results/actual/report.txt" ACTUAL_RESULT_PARSED="src/test/resources/results/actual/report_parsed.txt" mvn clean verify \ -Dmode=report \ -DjmeterCsv=src/t...
Make updating dotfiles be quiet
check () { git fetch changes=$(git diff) if [ "$changes" != "" ]; then echo 'YOU HAVE UNCOMMITTED CHANGES'; exit fi changes=$(git ls-files --others --exclude-standard) if [ "$changes" != "" ]; then echo 'YOU HAVE UNCOMMITTED FILES'; exit fi chan...
check () { git fetch changes=$(git diff) if [ "$changes" != "" ]; then echo 'YOU HAVE UNCOMMITTED CHANGES'; exit fi changes=$(git ls-files --others --exclude-standard) if [ "$changes" != "" ]; then echo 'YOU HAVE UNCOMMITTED FILES'; exit fi chan...
Fix autojump script to support Nix installations
if [ $commands[autojump] ]; then # check if autojump is installed if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation . $HOME/.autojump/etc/profile.d/autojump.zsh elif [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package . /usr/share/autojump/auto...
if [ $commands[autojump] ]; then # check if autojump is installed if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation . $HOME/.autojump/etc/profile.d/autojump.zsh elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installation . $HOME/.nix-profile/e...
Revert "Request api key and username from user" (doesn't work with piping)
mkdir -p ~/.histsync for file in {'bash-preexec.sh','histsync-client'}; do echo Downloading, $file curl "http://histsync.io/download-client/$file" > ~/.histsync/$file; done read -p "Github username: " username read -p "API key (from histsync.io profile): " key echo '# Add the following lines in your .bashrc / ...
mkdir -p ~/.histsync for file in {'bash-preexec.sh','histsync-client'}; do curl "http://histsync.io/download-client/$file" > ~/.histsync/$file; done echo '# Add the following lines in your .bashrc / .bash_profiles' echo '# ============' echo '# HistSync' echo 'source ~/.bash-preexec.sh' echo 'preexec() {' echo ' ...
Fix for external being not found
#!/bin/zsh # Source every file in custom for file in $(ls "${0:h}/functions"); do source "${0:h}/functions/$file" done # For any external imported files for file in $(ls "${0:h}/external"); do source "${0:h}/external/$file" done # Add zsh-completions to $fpath. fpath=("${0:h}/completion" $fpath) # Load and ...
#!/bin/zsh # Source every file in custom for file in $(ls "${0:h}/functions"); do source "${0:h}/functions/$file" done # For any external imported files if [ -e "${0:h}/external" ]; then for file in $(ls "${0:h}/external"); do source "${0:h}/external/$file" done fi # Add zsh-completions to $fpath...
Set default configuration before running tests
#!/usr/bin/env bash # Use tmp folder for git database TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp # Recreate tmp folder rm -rf "$TMP" mkdir -p "$TMP" cd "$TMP" # Create repository and master branch git init # Make fixture git commit -m "Dummy" --allow-empty git checkout -b feature_one 2> /dev/null git...
#!/usr/bin/env bash # Use tmp folder for git database TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp # Recreate tmp folder rm -rf "$TMP" mkdir -p "$TMP" cd "$TMP" # Create repository and master branch git init # Make fixture git commit -m "Dummy" --allow-empty git checkout -b feature_one 2> /dev/null git...
Add info to testing script
readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' $1; } SC_DIR=$(dirname "$(readlinkf `which seqcluster`)") unset PYTHONHOME unset PYTHONPATH export PYTHONNOUSERSITE=1 echo $SC_DIR "$SC_DIR/nosetests" -v -s -a "$@"
#!/usr/bin/env bash # bash script inspared from bcbio-nextgen: https://github.com/chapmanb/bcbio-nextgen/blob/master/tests/run_tests.sh # It allows to run specific test using the name like # ./run_test.sh test_align set -e readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' $1; } SC_DIR=$(dirname "$(readlinkf `whic...
Debug command for clean history and logout current session.
#!/bin/bash set -o xtrace # Update resolv.conf with "nameserver 127.0.0.1". sed -i 's/^#\(prepend domain-name-servers\).*$/\1 127.0.0.1;/g' /etc/dhcp/dhclient.conf /etc/init.d/networking restart /etc/init.d/resolvconf restart cat /etc/resolv.conf # Print the clean history command. cat <<-EOF rm -f $HISTFILE && unse...
#!/bin/bash set -o xtrace # Update resolv.conf with "nameserver 127.0.0.1". sed -i 's/^#\(prepend domain-name-servers\).*$/\1 127.0.0.1;/g' /etc/dhcp/dhclient.conf /etc/init.d/networking restart /etc/init.d/resolvconf restart cat /etc/resolv.conf # Print the clean history command. cat <<-EOF # Command for clean his...
Revert "Fix RabbitMQ credentials for development environment"
#!/bin/sh rabbitmqctl add_vhost "travis.development" rabbitmqctl add_user travis_worker travis_worker_password rabbitmqctl set_permissions -p "travis.development" travis_worker ".*" ".*" ".*" rabbitmqctl set_permissions -p "travis.development" guest ".*" ".*" ".*"
#!/bin/sh rabbitmqctl add_vhost "travis.development" rabbitmqctl add_user travisci_worker travisci_worker_password rabbitmqctl set_permissions -p "travisci.development" travisci_worker ".*" ".*" ".*" rabbitmqctl set_permissions -p "travisci.development" guest ".*" ".*" ".*"
Add EMAIL_REPLY_TO_ID to docker env
#!/usr/bin/env bash set -eo pipefail function exit_with_msg { echo $1 exit $2 } echo -n "" > docker.env env_vars=( NOTIFY_API_URL API_KEY FUNCTIONAL_TEST_EMAIL FUNCTIONAL_TEST_NUMBER EMAIL_TEMPLATE_ID SMS_TEMPLATE_ID LETTER_TEMPLATE_ID ) for env_var in "${env_vars[@]}"; do e...
#!/usr/bin/env bash set -eo pipefail function exit_with_msg { echo $1 exit $2 } echo -n "" > docker.env env_vars=( NOTIFY_API_URL API_KEY FUNCTIONAL_TEST_EMAIL FUNCTIONAL_TEST_NUMBER EMAIL_TEMPLATE_ID SMS_TEMPLATE_ID LETTER_TEMPLATE_ID EMAIL_REPLY_TO_ID ) for env_var in "${e...
Add inkscape in to dependencies
#!/bin/bash # For generate the thesis. sudo apt-get install texlive-full if [[ ${1} == "--dev" ]] ; then echo "Install packages for developing..." sudo apt-get install okular geany-plugin-spellcheck hunspell-hu fi echo "Done!"
#!/bin/bash # For generate the thesis. sudo apt-get install texlive-full inkscape if [[ ${1} == "--dev" ]] ; then echo "Install packages for developing..." sudo apt-get install okular geany-plugin-spellcheck hunspell-hu fi echo "Done!"
Change directory to avoid server path to be incuded in the *sum files
#!/bin/sh cd /data/off-fr/html mongodump --collection products --db off-fr tar cvfz data/openfoodfacts-mongodbdump.tar.gz dump sha256sum data/openfoodfacts-mongodbdump.tar.gz > data/sha256sum md5sum data/openfoodfacts-mongodbdump.tar.gz > data/md5sum
#!/bin/sh cd /data/off-fr/html mongodump --collection products --db off-fr tar cvfz data/openfoodfacts-mongodbdump.tar.gz dump pushd data/ > /dev/null sha256sum openfoodfacts-mongodbdump.tar.gz > sha256sum md5sum openfoodfacts-mongodbdump.tar.gz > md5sum popd > /dev/null
Use app envs in entrypoint
#!/bin/bash # Configure crowd.properties echo "session.lastvalidation=session.lastvalidation" > ${LDAP_HOME}/crowd.properties \ && echo "session.tokenkey=session.tokenkey" >> ${LDAP_HOME}/crowd.properties \ && echo "crowd.server.url=${CROWD_URL}/services/" >> ${LDAP_HOME}/crowd.properties \ && echo "applic...
#!/bin/bash # Configure crowd.properties echo "session.lastvalidation=session.lastvalidation" > ${LDAP_HOME}/crowd.properties \ && echo "session.tokenkey=session.tokenkey" >> ${LDAP_HOME}/crowd.properties \ && echo "crowd.server.url=${CROWD_URL}/services/" >> ${LDAP_HOME}/crowd.properties \ && echo "applic...
Use glibtoolize rather than libtoolize on mac
#! /bin/sh -e rm -rf autom4te.cache aclocal -I m4 autoheader libtoolize --copy automake --add-missing --copy autoconf
#! /bin/sh -e rm -rf autom4te.cache aclocal -I m4 autoheader case `uname` in Darwin*) glibtoolize --copy ;; *) libtoolize --copy ;; esac automake --add-missing --copy autoconf
Fix copypasta with 4.2 bundler install
#!/bin/bash if [ "$RAILS_VERSION" == "4.2" ] then gem uninstall -v ">= 2" -i $(rvm gemdir)@global -ax bundler || true gem install bundler -v "< 2" gem install bundler -v "< 2" else gem install bundler fi
#!/bin/bash if [ "$RAILS_VERSION" == "4.2" ] then gem uninstall -v ">= 2" -i $(rvm gemdir)@global -ax bundler || true gem install bundler -v "< 2" else gem install bundler fi
Add bash completion for exercism opts
_exercism () { local cur prev COMPREPLY=() # Array variable storing the possible completions. cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} commands="configure download open submit troubleshoot upgrade version workspace help" config_opts="--show" version_opts="--latest" if [ "${#...
_exercism () { local cur prev COMPREPLY=() # Array variable storing the possible completions. cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} opts="--verbose --timeout" commands="configure download open submit troubleshoot upgrade version workspace help" config_opts="--show" version...
Disable GCOV builds in ubuntu-latest
#!/bin/bash set -uo pipefail set -e set -vx MAKE_J=$(nproc) export CROSS="ccache powerpc64le-linux-gnu-" make -j${MAKE_J} all ./opal-ci/fetch-debian-jessie-installer.sh make -j${MAKE_J} check (make clean; cd external/gard && CROSS= make -j${MAKE_J}) ( cd external/pflash; echo "Building for ARM..." make clean &&...
Use basename instead of sed
if [[ $BASH_PREVIEW ]]; then unset BASH_PREVIEW #Prevent infinite looping echo " Previewing Bash-it Themes " THEMES="$BASH_IT/themes/*/*.theme.bash" for theme in $THEMES do BASH_IT_THEME=$(echo $theme | sed "s/\//\n/g" | tail -1 | sed "s/.theme.bash//") echo " $BASH_IT_THEME" echo "" | ...
if [[ $BASH_PREVIEW ]]; then unset BASH_PREVIEW #Prevent infinite looping echo " Previewing Bash-it Themes " THEMES="$BASH_IT/themes/*/*.theme.bash" for theme in $THEMES do BASH_IT_THEME=$(basename -s '.theme.bash' $theme) echo " $BASH_IT_THEME" echo "" | bash --init-file $BASH_IT/bash_...
Set up databases in dev environment
#!/bin/bash --login set -e # Install packages sudo apt-get update --quiet sudo -E apt-get install --quiet --assume-yes curl git libpq-dev libmysqlclient-dev # Install rvm and ruby if ! rvm use ruby-2.2.0; then # Install mpapis public key gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 curl -sSL http...
#!/bin/bash --login set -e # cd straight to /vagrant on login if ! grep -q 'cd \/vagrant' ~/.bashrc; then echo 'cd /vagrant' >> ~/.bashrc fi cd /vagrant # Don't prompt for mysql root password export DEBIAN_FRONTEND=noninteractive # Install packages sudo apt-get update --quiet sudo -E apt-get install --quiet --ass...
Fix exit code check when setting alias for gshuf.
cite about-alias about-alias 'general aliases' # List directory contents alias sl=ls alias ls='ls -G' # Compact view, show colors alias la='ls -AF' # Compact view, show hidden alias ll='ls -al' alias l='ls -a' alias l1='ls -1' alias _="sudo" if [ $(uname) = "Linux" ] then alias ls="ls --color=auto" fi...
cite about-alias about-alias 'general aliases' # List directory contents alias sl=ls alias ls='ls -G' # Compact view, show colors alias la='ls -AF' # Compact view, show hidden alias ll='ls -al' alias l='ls -a' alias l1='ls -1' alias _="sudo" if [ $(uname) = "Linux" ] then alias ls="ls --color=auto" fi...
Disable transformer test to get travis green
#!/bin/bash set -e DIR=$(dirname "${BASH_SOURCE[0]}") $DIR/build_sdk.sh $DIR/test.sh $DIR/browser_test.sh $DIR/node_test.sh $DIR/analyze.sh $DIR/format.sh $DIR/transformer_test.sh
#!/bin/bash set -e DIR=$(dirname "${BASH_SOURCE[0]}") $DIR/build_sdk.sh $DIR/test.sh $DIR/browser_test.sh $DIR/node_test.sh $DIR/analyze.sh $DIR/format.sh # TODO(vsm/ochafik): Re-enable when this is addressed: # https://github.com/dart-lang/dev_compiler/issues/458 # $DIR/transformer_test.sh
Allow script to start at a certain point
#!/bin/bash (cd experiments; git pull) for branch in raft-45 raft-46 raft-56 raft-58 raft-58-initialization raft-42 raft-66; do echo "==================== Running $branch ==================" git checkout $branch git pull sbt assembly && java -d64 -Xmx15g -cp target/scala-2.11/randomSearch-assembly-0.1.jar akk...
#!/bin/bash START_WITH=$1 (cd experiments; git pull) for branch in raft-45 raft-46 raft-56 raft-58 raft-58-initialization raft-42 raft-66; do if [ "$START_WITH" != "" -a "$START_WITH" != $branch ]; then continue fi if [ "$START_WITH" != "" -a "$START_WITH" == $branch ]; then START_WITH="" fi echo ...
Make the code more scalable
CURRENT_PATH=$(pwd) FILES=("$HOME/.bashrc" "$HOME/.vimrc" "$HOME/.tmux.conf") # $1 => question function confirm(){ local input echo -n "$1 [y/N]" read input if [[ "$input" != "Y" && "$input" != "y" ]];then echo "exiting" exit fi } # Check if .bashrc or .vimrc exits before create symlink function che...
CURRENT_PATH=$(pwd) FILES=("/.bashrc" "/.vimrc" "/.tmux.conf") INPUT_TYPE="$1" # $1 => question function confirm(){ local input echo -n "$1 [y/N]" read input if [[ "$input" != "Y" && "$input" != "y" ]];then echo "exiting" exit fi } # Check if .bashrc or .vimrc exits before create symlink function ch...
Upgrade to Consul version to 1.5.2.
#!/bin/bash ########################################################################### # Download and Install Consul # # This script is prepared for caching of the download directory # ########################################################################### C...
#!/bin/bash ########################################################################### # Download and Install Consul # # This script is prepared for caching of the download directory # ########################################################################### C...
Use cp everywhere, instead of being inconsistent and using both mv and cp.
#!/bin/sh isocmd="genisoimage" rm -rf isofs/System/ mkdir -p isofs/boot/grub if [ ! -e '/usr/bin/genisoimage' ] then isocmd="mkisofs" fi mkdir -p isofs/System mv src/metodo/metodo.exe isofs/System mv src/user/user.exe isofs/System for x in `find -name '*.lib'`; do cp $x isofs/System done $isocmd -R -b bo...
#!/bin/sh isocmd="genisoimage" rm -rf isofs/System/ mkdir -p isofs/boot/grub if [ ! -e '/usr/bin/genisoimage' ] then isocmd="mkisofs" fi mkdir -p isofs/System cp src/metodo/metodo.exe isofs/System cp src/user/user.exe isofs/System for x in `find -name '*.lib'`; do cp $x isofs/System done $isocmd -R -b bo...
Fix paths in startup script
#!/bin/bash if [ ! -r /config/ost-config.php ]; then echo "ERROR: Could not read /config/ost-config.php." exit 1 fi ln -sf /config/ost-config.php /var/www/html/include/ost-config.php if [ "$OSTICKET_SETUP" = "yes" -o "$OSTICKET_SETUP" = "true" ]; then echo "Running in SETUP mode." if [ ! -w /var/www/...
#!/bin/bash if [ ! -r /config/ost-config.php ]; then echo "ERROR: Could not read /config/ost-config.php." exit 1 fi ln -sf /config/ost-config.php /var/www/html/dota-support/include/ost-config.php if [ "$OSTICKET_SETUP" = "yes" -o "$OSTICKET_SETUP" = "true" ]; then echo "Running in SETUP mode." if [ !...
Update to latest Cog version
#!/bin/bash NAME="$1" mkdir $NAME cd $NAME ../Cuis-Smalltalk-Dev/bin/copyImage.sh $NAME ../Cuis-Smalltalk-Dev/bin/getCog.sh 13.30 2761
#!/bin/bash NAME="$1" mkdir $NAME cd $NAME ../Cuis-Smalltalk-Dev/bin/copyImage.sh $NAME ../Cuis-Smalltalk-Dev/bin/getCog.sh 13.33 2776
Add vulkan unit tests to Kokoro
#!/bin/bash # Fail on any error. set -e # Display commands being run. set -x cd git/SwiftShader git submodule update --init mkdir -p build && cd build cmake .. make --jobs=$(nproc) # Run the GLES unit tests. TODO(capn): rename. ./unittests ./ReactorUnitTests
#!/bin/bash # Fail on any error. set -e # Display commands being run. set -x cd git/SwiftShader git submodule update --init mkdir -p build && cd build cmake .. make --jobs=$(nproc) # Run the reactor unit tests. ./ReactorUnitTests # Run the GLES unit tests. TODO(capn): rename. ./unittests # Run the Vulkan unit t...
Enable redirects for downloading Racket
#!/bin/sh set -uex cd /tmp curl -O https://github.com/plt/racket/archive/master.tar.gz tar -zxf master.tar.gz cd racket-master/src ./configure --prefix=/app/vendor make -sj30 make -sj30 install
#!/bin/sh set -uex cd /tmp curl -L10 -O https://github.com/plt/racket/archive/master.tar.gz tar -zxf master.tar.gz cd racket-master/src ./configure --prefix=/app/vendor make -sj30 make -sj30 install
Test against 1.6 and 1.7
#!/usr/bin/env bash set -eux versions=(1.6.0 1.7.0-RC1 1.7.0-RC2 1.7.0-master-SNAPSHOT) for i in ${versions[@]} do cp pom.xml pom-$i.xml perl -i -pe 's/\[1.6.0,\)/'"$i"'/g' pom-$i.xml mvn clean test -f pom-$i.xml done for i in ${versions[@]} do rm pom-$i.xml done
#!/usr/bin/env bash set -eux versions=(1.6.0 1.7.0) for i in ${versions[@]} do cp pom.xml pom-$i.xml perl -i -pe 's/\[1.6.0,\)/'"$i"'/g' pom-$i.xml mvn clean test -f pom-$i.xml done for i in ${versions[@]} do rm pom-$i.xml done
Upgrade Java 17 version in CI image
#!/bin/bash set -e case "$1" in java8) echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.gz" ;; java11) echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.13_...
#!/bin/bash set -e case "$1" in java8) echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.gz" ;; java11) echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.13_...
Upgrade Java 18 version in CI image
#!/bin/bash set -e case "$1" in java8) echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u332-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u332b09.tar.gz" ;; java11) echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.15...
#!/bin/bash set -e case "$1" in java8) echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz" ;; java11) echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz" ;; java17)...
Add flag -f to rm -r tests/*.test, so as to not complain if the files are not there (probably because the tests had not been run).
#!/bin/bash rm -f `find . -type f -a -name libtool` rm -f `find . -type f -a -name gmon.out` rm -f `find doc -type f -a -name *.log` rm -f configure rm -f ltmain.sh rm -f libtool rm -f install-sh rm -f aclocal.m4 rm -f config.guess rm -f config.sub rm -f config.log rm -f config.h rm -f config.status rm -f stamp-h* rm ...
#!/bin/bash rm -f `find . -type f -a -name libtool` rm -f `find . -type f -a -name gmon.out` rm -f `find doc -type f -a -name *.log` rm -f configure rm -f ltmain.sh rm -f libtool rm -f install-sh rm -f aclocal.m4 rm -f config.guess rm -f config.sub rm -f config.log rm -f config.h rm -f config.status rm -f stamp-h* rm ...
Enable font smoothing for macOS 10.14
#!/bin/sh -x # Some ideas from: # - https://mths.be/macos # Enable Secure Keyboard Entry in Terminal.app defaults write com.apple.terminal SecureKeyboardEntry -bool true # Press & hold = entering same character defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # Enable full keyboard access fo...
#!/bin/sh -x # Some ideas from: # - https://mths.be/macos # Enable Secure Keyboard Entry in Terminal.app defaults write com.apple.terminal SecureKeyboardEntry -bool true # Press & hold = entering same character defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # Enable full keyboard access fo...
Add content option when sharing.
#!/bin/bash # On multiuser machines, output and grep on $USER too MPV_PID=$(ps axo '%p %c'|grep [m]pv$|awk '{print $1}') if [ "$(echo ${MPV_PID}|wc -w)" -ne 1 ] ; then echo "Error: too many mpv PIDs: \"${MPV_PID}\" ($(echo ${MPV_PID}|wc -w))" exit 1 fi IFS=' ' for F in $(lsof -p ${MPV_PID} -Ftn |grep -A1 ^tREG|g...
#!/bin/bash function die() { echo $*; exit -1; } # On multiuser machines, output and grep on $USER too MPV_PID=$(ps axo '%p %c'|grep [m]pv$|awk '{print $1}') if [ "$(echo ${MPV_PID}|wc -w)" -ne 1 ] ; then echo "Error: too many mpv PIDs: \"${MPV_PID}\" ($(echo ${MPV_PID}|wc -w))" exit 1 fi IFS=' ' for F in $(lso...
Add alias for git permission reset
#!/bin/sh alias gl='git pull --prune' alias glg="git log --graph --decorate --oneline --abbrev-commit" alias gp='git push origin HEAD' alias gpa='git push origin --all' alias gd='git diff' alias gc='git commit' alias gca='git commit -a' alias gco='git checkout' alias gb='git branch' alias ga='git add' alias gaa='git ad...
#!/bin/sh alias gl='git pull --prune' alias glg="git log --graph --decorate --oneline --abbrev-commit" alias gp='git push origin HEAD' alias gpa='git push origin --all' alias gd='git diff' alias gc='git commit' alias gca='git commit -a' alias gco='git checkout' alias gb='git branch' alias ga='git add' alias gaa='git ad...
Fix a minor bug (calling shell function via exec)
#!/bin/bash BL=( /sys/class/backlight/* ) if [ ! -w "${BL[0]}/brightness" ]; then if [ "$1" != "no-sudo" ]; then no_sudo() { zenity --warning --text="No sudo utility found -- install gksu or kdesu" exit } SUDO=no_sudo if which gksudo > /dev/null 2>&1; then S...
#!/bin/bash BL=( /sys/class/backlight/* ) if [ ! -w "${BL[0]}/brightness" ]; then if [ "$1" != "no-sudo" ]; then no_sudo() { zenity --warning --text="No sudo utility found -- install gksu or kdesu" exit } SUDO=no_sudo if which gksudo > /dev/null 2>&1; then S...
Install global npm deps as part of node insall.sh
# Install the latest stable nave the node.js environment switcher Node.js curl -fsSL https://raw.github.com/isaacs/nave/master/nave.sh > /usr/local/bin/nave && chmod ugo+x /usr/local/bin/nave # Install a global node.js nave usemain stable
# Install the latest stable nave the node.js environment switcher Node.js curl -fsSL https://raw.github.com/isaacs/nave/master/nave.sh > /usr/local/bin/nave && chmod ugo+x /usr/local/bin/nave # Install a global node.js nave usemain stable # Install global deps npm install -g jshint npm install -g grunt npm install -g...
Comment out already existing directory.
# Generate docs. mkdir -p public/api python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml # Copy docs to bundle #cp -pR ./public/api ~/repos/wekan/.build/bundle/programs/web.bro...
# Generate docs. #mkdir -p public/api python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml # Copy docs to bundle #cp -pR ./public/api ~/repos/wekan/.build/bundle/programs/web.br...
Add --silent flag to npm install
#!/bin/bash # source config source /mapic/config/env.sh || exit 1 # TODO: find a better way ? export SYSTEMAPIC_PGSQL_USERNAME \ SYSTEMAPIC_PGSQL_PASSWORD \ SYSTEMAPIC_PGSQL_DBNAME # ensure log folder mkdir -p /mapic/modules/mile/log # ensure node modules are installed NODE_MODULES_DIR=/mapic/modules/...
#!/bin/bash # source config source /mapic/config/env.sh || exit 1 # TODO: find a better way ? export SYSTEMAPIC_PGSQL_USERNAME \ SYSTEMAPIC_PGSQL_PASSWORD \ SYSTEMAPIC_PGSQL_DBNAME # ensure log folder mkdir -p /mapic/modules/mile/log # ensure node modules are installed NODE_MODULES_DIR=/mapic/modules/...
Clean npm cache after install
#!/bin/bash echo "Installing dependencies" npm install -g coffee-script npm install -g bower npm install --verbose bower install --verbose apt-get update apt-get install nfs-common apt-get install cifs-utils apt-get install transmission-daemon echo "Mount network shared drive" mount -t cifs -o username=root,password...
#!/bin/bash echo "Installing dependencies" npm install -g coffee-script npm install -g bower npm install --verbose bower install --verbose apt-get update apt-get install nfs-common apt-get install cifs-utils apt-get install transmission-daemon # Clean cache npm cache clean rm -rf /tmp/* echo "Mount network shared d...
Add more options to run helper script
#!/bin/sh #Run seafile docker container with host folder as a volume #Default volume path on host. VOLUME_PATH="/home/docker/seafile" #Or you can add it to ~/.docker-sunx-seafile file [ -f ~/.docker-sunx-seafile ] && source ~/.docker-sunx-seafile docker run -ti -v $VOLUME_PATH:/home/seafile -p 127.0.0.1:8000:8000 -p ...
#!/bin/sh #Run seafile docker container with host folder as a volume #Default volume path on host. VOLUME_PATH="/home/docker/seafile" #Container hostname CONTAINER_HOSTNAME="seafile.domain.com" #Container name CONTAINER_NAME="seafile" #Restart policy RESTART_POLCY="unless-stopped" #Some extra arguments. Like -d ant -t...
Replace generation time with generation tree
#!/bin/bash DIR=$(dirname $(dirname $(realpath $0))) TARGET=$(dirname $DIR)/s9e.github.com/TextFormatter/coverage cd $DIR/tests rm -f $DIR/docs/coverage/* phpunit -d memory_limit=256M -c $DIR/tests/phpunit.xml --coverage-html $TARGET REGEXP=s/`echo $(dirname $(dirname $DIR)) | sed -e 's/\\//\\\\\//g'`//g sed -i $REG...
#!/bin/bash DIR=$(dirname $(dirname $(realpath $0))) TARGET=$(dirname $DIR)/s9e.github.com/TextFormatter/coverage cd $DIR/tests rm -f $DIR/docs/coverage/* phpunit -d memory_limit=256M -c $DIR/tests/phpunit.xml --coverage-html $TARGET REGEXP=s/`echo $(dirname $(dirname $DIR)) | sed -e 's/\\//\\\\\//g'`//g sed -i $REG...
Add travis_wait for installing ccn2
#!/usr/bin/env bash # Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. set -e set -x if [ "$#" -ne 1 ]; then echo "Usage: $0 INSTALL_DIR" exit 1 fi INSTALL_DIR=$1 mkdir -p $INSTALL_DIR # Install torch curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash &>/dev/nu...
#!/usr/bin/env bash # Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. set -e set -x if [ "$#" -ne 1 ]; then echo "Usage: $0 INSTALL_DIR" exit 1 fi INSTALL_DIR=$1 mkdir -p $INSTALL_DIR # Install torch curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash &>/dev/nu...
Fix installation of Openstack trunk on Precise
#!/bin/bash -xue function is_centos { [[ -f /etc/centos-release ]] } function is_deb { [[ -f /etc/debian_version ]] } function common { if is_centos; then sudo yum install -y wget fi wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python - sudo easy_install pip sudo easy_i...
#!/bin/bash -xue function common { source jenkins/openstack-ci-scripts/jenkins/distro-utils.sh if is_centos; then sudo yum install -y wget fi if [[ $os_CODENAME == "precise" ]]; then sudo add-apt-repository --yes cloud-archive:icehouse fi wget https://bootstrap.pypa.io/ez_set...
Fix for how we get shellcheck
#!/usr/bin/env bash set -o errexit # exit on first error set -o nounset # don't allow use of unset variables set -o pipefail # produce a failure return code if any pipeline command errors set -o xtrace # echo commands shopt -s failglob # cause globs that don't get expanded to cause errors . ci/travis_retry.sh ec...
#!/usr/bin/env bash set -o errexit # exit on first error set -o nounset # don't allow use of unset variables set -o pipefail # produce a failure return code if any pipeline command errors set -o xtrace # echo commands shopt -s failglob # cause globs that don't get expanded to cause errors . ci/travis_retry.sh ec...
Add StrictModes=no to work around cygwin problem. Reported by Yang Tse <yangsita@gmail.com>.
#!/bin/sh # Written by Simon Josefsson. # Start sshd, invoke parameters, saving exit code, kill sshd, and # return exit code. srcdir=${srcdir:-$PWD} SSHD=${SSHD:-/usr/sbin/sshd} cmd="./ssh2${EXEEXT}" srcdir=`cd $srcdir; pwd` PRIVKEY=$srcdir/etc/user export PRIVKEY PUBKEY=$srcdir/etc/user.pub export PUBKEY chmod g...
#!/bin/sh # Written by Simon Josefsson. # Start sshd, invoke parameters, saving exit code, kill sshd, and # return exit code. srcdir=${srcdir:-$PWD} SSHD=${SSHD:-/usr/sbin/sshd} cmd="./ssh2${EXEEXT}" srcdir=`cd $srcdir; pwd` PRIVKEY=$srcdir/etc/user export PRIVKEY PUBKEY=$srcdir/etc/user.pub export PUBKEY chmod g...
Fix redirect (for realz this time)
#!/bin/bash set -ex aws --region=us-west-2 s3 sync --acl public-read --exclude ".*" ./dist/ s3://apps.other.chat/ aws --region=us-west-2 s3api put-object --bucket apps.other.chat --acl public-read --key otherjs/0.0.x/other.min.js --website-redirect-location /apps.other.chat/otherjs/0.0.1%2B3880ffe/other.min.js --conte...
#!/bin/bash set -ex aws --region=us-west-2 s3 sync --acl public-read --exclude ".*" ./dist/ s3://apps.other.chat/ aws --region=us-west-2 s3api put-object --bucket apps.other.chat --acl public-read --key otherjs/0.0.x/other.min.js --website-redirect-location /otherjs/0.0.1+3880ffe/other.min.js --content-type applicatio...
Split generation of 32- and 64-bit installers on windows
#!/bin/bash DISTDIR="`pwd`/release" VERSION=0.9.4 ELECTRON_VERSION=1.2.7 create_package() { os="$1" arch="$2" icon="$3" rm -rf "$DISTDIR/Millie-${os}-${arch}.zip" ./node_modules/.bin/electron-packager . "Millie" --platform=$os --arch=$arch --icon=$icon --overwrite --prune --ignore=release --ignore=distro.sh --...
#!/bin/bash DISTDIR="`pwd`/release" VERSION=0.9.4 ELECTRON_VERSION=1.2.7 create_package() { os="$1" arch="$2" icon="$3" rm -rf "$DISTDIR/Millie-${os}-${arch}.zip" ./node_modules/.bin/electron-packager . "Millie" --platform=$os --arch=$arch --icon=$icon --overwrite --prune --ignore=release --ignore=distro.sh --...
Put timestamp in front of commit sha
#!/usr/bin/env bash set -euo pipefail export AWS_DEFAULT_REGION=us-east-1 VERSION=circle-${CIRCLE_SHA1}-$(date +%s) ARCHIVE=${VERSION}.zip docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker build -t jeffreycharles/number-switcher-3000:${VERSION} . docker push jeffreycharles/number-switcher...
#!/usr/bin/env bash set -euo pipefail export AWS_DEFAULT_REGION=us-east-1 VERSION=circle-$(date +%s)-${CIRCLE_SHA1} ARCHIVE=${VERSION}.zip docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker build -t jeffreycharles/number-switcher-3000:${VERSION} . docker push jeffreycharles/number-switcher...
Use latest nats server release
#!/bin/sh set -e # check to see if gnatsd folder is empty if [ ! "$(ls -A $HOME/gnatsd)" ]; then mkdir -p $HOME/gnatsd cd $HOME/gnatsd wget https://github.com/nats-io/gnatsd/releases/download/v0.9.2/gnatsd-v0.9.2-linux-amd64.zip -O gnatsd.zip unzip gnatsd.zip mv gnatsd-v0.9.2-linux-amd64/gnatsd . else ec...
#!/bin/sh set -e # check to see if gnatsd folder is empty if [ ! "$(ls -A $HOME/gnatsd)" ]; then mkdir -p $HOME/gnatsd cd $HOME/gnatsd wget https://github.com/nats-io/gnatsd/releases/download/v0.9.4/gnatsd-v0.9.4-linux-amd64.zip -O gnatsd.zip unzip gnatsd.zip mv gnatsd-v0.9.4-linux-amd64/gnatsd . else ec...
Remove remnants of ceilometer from mongodb data file
#!/bin/bash set -e source functions.sh if [ "$1" = "--coverage" ]; then COVERAGE_ARG="$1" shift fi export PATH=${PATH:+$PATH:}/sbin:/usr/sbin check_for_cmd mongod # Start MongoDB process for tests MONGO_DATA=`mktemp -d /tmp/CEILO-MONGODB-XXXXX` MONGO_PORT=29000 trap "clean_exit ${MONGO_DATA}" EXIT mkfifo ${MONGO_...
#!/bin/bash set -e source functions.sh if [ "$1" = "--coverage" ]; then COVERAGE_ARG="$1" shift fi export PATH=${PATH:+$PATH:}/sbin:/usr/sbin check_for_cmd mongod # Start MongoDB process for tests MONGO_DATA=`mktemp -d /tmp/AODH-MONGODB-XXXXX` MONGO_PORT=29000 trap "clean_exit ${MONGO_DATA}" EXIT mkfifo ${MONGO_D...
Add quotes around the echo statement to prevent word splitting.
#!/bin/bash ## Author: Hersh Singh [hershdeep@gmail.com] ## Arch Installer Script Configuration # Script configuration AIS_MNT=/mnt AIS_TIMEZONE=US/Eastern AIS_HOST=dabba AIS_USER=hersh # Global configuration export EDITOR=vi # Define colors for 'tput' textrev=$(tput rev) textred=$(tput setaf 1) textblue=$(tput set...
#!/bin/bash ## Author: Hersh Singh [hershdeep@gmail.com] ## Arch Installer Script Configuration # Script configuration AIS_MNT=/mnt AIS_TIMEZONE=US/Eastern AIS_HOST=dabba AIS_USER=hersh # Global configuration export EDITOR=vi # Define colors for 'tput' textrev=$(tput rev) textred=$(tput setaf 1) textblue=$(tput set...
Use a particular version of dvisvgm
#!/usr/bin/env bash # Exit on error set -e # Echo each command set -x git clone https://github.com/mgieseki/dvisvgm cd dvisvgm ./autogen.sh ./configure --enable-bundled-libs make sudo make install cd .. make web
#!/usr/bin/env bash # Exit on error set -e # Echo each command set -x git clone https://github.com/mgieseki/dvisvgm cd dvisvgm git checkout 6001b3c0d5578f0647bf4cb9caaad0975a9e21d1 ./autogen.sh ./configure --enable-bundled-libs make sudo make install cd .. make web
Add git status in bash
# Sourced by /bin/bash # Inherits from the all shell env. source $HOME/.shellenv # Prompt colors RESET="\e[39m" BLUE="\e[34m" L_MAGENTA="\e[95m" RED="\e[31m" # Custom prompt export PS1="\n$BLUE\w$RESET\n${L_MAGENTA}\$ ❯ $RESET"
# Sourced by /bin/bash # Inherits from the all shell env. source $HOME/.shellenv # Prompt colors RESET="\e[39m" BLUE="\e[34m" L_MAGENTA="\e[95m" RED="\e[31m" DARK_GREY="\e[90m" # Git function helpers function parse_git_dirty { [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)...
Update Netlify script with local Docker image tests
#!/usr/bin/env bash # Install Flit to be able to install all python3 -m pip install flit # Install with Flit python3 -m flit install --deps develop # Finally, run mkdocs python3 -m mkdocs build
#!/usr/bin/env bash set -x set -e # Install pip cd /tmp curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3.6 get-pip.py --user cd - # Install Flit to be able to install all python3.6 -m pip install --user flit # Install with Flit python3.6 -m flit install --user --deps develop # Finally, run mkdocs python3...
Remove unnecessary number from col & tab variables
#!/bin/sh -e # Format output of alias print dump into more readable format awk -F= 'BEGIN { print "ALIAS | COMMAND"; print "--------------------------------"; } /^alias/ { # replace all multi-spaces with a single space gsub(/\s+/, " ", $0); col1Len = ...
#!/bin/sh -e # Format output of alias print dump into more readable format awk -F= 'BEGIN { print "ALIAS | COMMAND"; print "--------------------------------"; } /^alias/ { # replace all multi-spaces with a single space gsub(/\s+/, " ", $0); colLen = ...
Fix the benchmark shell script
#!/usr/bin/env bash # # Yet Another UserAgent Analyzer # Copyright (C) 2013-2017 Niels Basjes # # 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 # ...
#!/usr/bin/env bash # # Yet Another UserAgent Analyzer # Copyright (C) 2013-2017 Niels Basjes # # 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 # ...
Handle exit codes during package removal a bit better
# travis-worker pre-remove script __stop_travis_worker() { if ! status travis-worker >/dev/null 2>&1 ; then return fi if stop travis-worker ; then return fi echo "Failed to stop travis-worker (exit $?)" echo 'Sending SIGKILL' killall -9 travis-worker if stop travis-worker ; then return ...
# travis-worker pre-remove script __stop_travis_worker() { if ! status travis-worker >/dev/null 2>&1 ; then return fi stop travis-worker exit_code="$?" if [ $exit_code -eq 0 ] ; then return fi echo "Failed to stop travis-worker (exit $exit_code)" echo 'Sending SIGKILL' killall -9 travis-w...
Add the /etc/sysconfig/modules/snd_bcm2835.modules example needed to load sound moudle
#!/bin/bash # systemd launch script for the speakIP.pl script start() { echo "Starting speakIP..." /root/NativeRaspberryPiBeaconParser/bin/speakIP.pl & } stop() { echo "Stopping speakIP..." pids=`ps ax | grep "speakIP.pl" | awk '{print $1}'` if [ -z "$pids" ] ; then echo "speakIP is not run...
#!/bin/bash # systemd launch script for the speakIP.pl script. This requires espeak and the sound module loaded, for example: # /etc/sysconfig/modules/snd_bcm2835.modules ##!/bin/bash # # exec /sbin/modprobe snd_bcm2835 start() { echo "Starting speakIP..." /root/NativeRaspberryPiBeaconParser/bin/speakIP.pl & }...
Use defaults for zgen autoupdate
#!/bin/zsh # if the init scipt doesn't exist if ! zgen saved; then zgen load willghatch/zsh-cdr # Fish shell-like syntax highlighting zgen load zsh-users/zsh-syntax-highlighting # Directory listings for zsh with git features zgen load supercrabtree/k # Jump back to a specific parent directory i...
#!/bin/zsh # if the init scipt doesn't exist if ! zgen saved; then zgen load willghatch/zsh-cdr # Fish shell-like syntax highlighting zgen load zsh-users/zsh-syntax-highlighting # Directory listings for zsh with git features zgen load supercrabtree/k # Jump back to a specific parent directory i...
Remove darwin from the case
cite 'about-alias' about-alias 'pbcopy and pbpaste shortcuts to linux' case $OSTYPE in linux*) XCLIP=$(command -v xclip) [[ $XCLIP ]] && alias pbcopy="$XCLIP -selection clipboard" && alias pbpaste="$XCLIP -selection clipboard -o" ;; darwin*) ;; esac # to use it just install xclip on your dis...
cite 'about-alias' about-alias 'pbcopy and pbpaste shortcuts to linux' case $OSTYPE in linux*) XCLIP=$(command -v xclip) [[ $XCLIP ]] && alias pbcopy="$XCLIP -selection clipboard" && alias pbpaste="$XCLIP -selection clipboard -o" ;; esac # to use it just install xclip on your distribution and it woul...
Change the way how conda is installed and remove source.
#!/bin/bash SPARK_URL=http://d3kbcqa49mib13.cloudfront.net/spark-2.1.0-bin-hadoop2.7.tgz SPARK_FILENAME=spark-2.1.0-bin-hadoop2.7.tgz set -e echo "Hello World" apt-get update apt-get -y install wget curl software-properties-common bzip2 # install openjdk add-apt-repository -y ppa:openjdk-r/ppa apt-get update apt-g...
#!/bin/bash SPARK_URL=http://d3kbcqa49mib13.cloudfront.net/spark-2.1.0-bin-hadoop2.7.tgz SPARK_FILENAME=spark-2.1.0-bin-hadoop2.7.tgz set -e echo "Hello World" apt-get update apt-get -y install wget curl software-properties-common bzip2 # install openjdk add-apt-repository -y ppa:openjdk-r/ppa apt-get update apt-g...
Enhance Rust Clippy alias: do not rebuild all for lint warnings
alias rust-repl='rustup run nightly-2016-08-01 ~/.cargo/bin/rusti' alias rusti=rust-repl alias clippy='cargo clean && rustup run nightly cargo clippy' alias rust-lint=clippy
alias rust-repl='rustup run nightly-2016-08-01 ~/.cargo/bin/rusti' alias rusti=rust-repl alias clippy='rustup run nightly cargo clippy' alias rust-lint=clippy
Add dim and blink modes :flashlight:
#!/bin/bash normal=$(tput sgr0) bold=$(tput bold) underline=$(tput smul) #Colors fg_black=$(tput setaf 0) fg_red=$(tput setaf 1) fg_green=$(tput setaf 2) fg_yellow=$(tput setaf 3) fg_blue=$(tput setaf 4) fg_magenta=$(tput setaf 5) fg_cyan=$(tput setaf 6) fg_white=$(tput setaf 7)
#!/bin/bash normal=$(tput sgr0) dim=$(tput dim) bold=$(tput bold) underline=$(tput smul) blink=$(tput blink) #Colors fg_black=$(tput setaf 0) fg_red=$(tput setaf 1) fg_green=$(tput setaf 2) fg_yellow=$(tput setaf 3) fg_blue=$(tput setaf 4) fg_magenta=$(tput setaf 5) fg_cyan=$(tput setaf 6) fg_white=$(tput setaf 7)
Fix long filenames and readlink -f incompatibility on OSX
# set -e DIR="$(dirname $(readlink -f $0))" TMUX=$1 NAME=$2 CMD=$3 DETACH=$4 BASE="$DIR/../" WATCHFILE="$BASE.run_$NAME.watch" if [ "$TMUX" = "pid" ]; then PID=`ps ax | grep "$WATCHFILE" | grep rm || echo -1` echo "PID: $PID" exit 0 fi if [ ! -x "$TMUX" ]; then echo "Could not find executable tmux a...
# set -e DIR=$(dirname "$0") TMUX=$1 NAME=$2 CMD=$3 DETACH=$4 BASE="$DIR/../" WATCHFILE="$BASE.run_$NAME.watch" if [ "$TMUX" = "pid" ]; then PID=`ps ax | grep "$WATCHFILE" | grep rm || echo -1` echo "PID: $PID" exit 0 fi if [ ! -x "$TMUX" ]; then echo "Could not find executable tmux at $TMUX" >&2 ...
Check status before tailing log.
#!/bin/bash tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR cp $CONFIGDIR/$CONFIGFILE $WORKDIR $WORKDIR/control restart $WORKDIR/control tail
#!/bin/bash WAIT_SERVICE_READY=10 function check_service(){ status=$($WORKDIR/control status) echo $status | grep -q "stoped" if [ $? -eq 0 ] ; then return 1 else return 0 fi } tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR cp $CONFIGDIR/$CONFIGFILE $WORKDIR $WORKDIR/control restart sleep $WAIT_SERVICE_RE...
Revert "Adding remote command to niam deployment" Already taken care of in playbook
#!/bin/bash cd /opt/infrastructure/ansible/niam/ &&\ ansible-galaxy install -r requirements.yml &&\ ansible-playbook site.yml --become-user=ubuntu --vault-password-file /keys/grits_vault_password --private-key /var/lib/jenkins/.ssh/id_rsa --tags niam #Upload new docker image to S3 ssh -i /var/lib/jenkins/.ssh/id_rsa ...
#!/bin/bash cd /opt/infrastructure/ansible/niam/ &&\ ansible-galaxy install -r requirements.yml &&\ ansible-playbook site.yml --become-user=ubuntu --vault-password-file /keys/grits_vault_password --private-key /var/lib/jenkins/.ssh/id_rsa --tags niam #Upload new docker image to S3 sudo docker save niam > /tmp/niam.ta...
Make sure that we use an up to date version of setuptools, wheel, and twine when publishing package.
#!/usr/bin/env bash ( cd ../ rm -r build/ dist/ django_qr_code.egg-info/ python setup.py check && python setup.py sdist && python setup.py bdist_wheel && twine upload dist/* )
#!/usr/bin/env bash ( python -m pip install --upgrade pip pip install --upgrade setuptools wheel twine cd ../ rm -r build/ dist/ django_qr_code.egg-info/ python setup.py check && python setup.py sdist && python setup.py bdist_wheel && twine upload dist/* )
Add CI build for wasm32 platform.
#!/bin/bash echo 'deb http://debian.ethz.ch/debian stretch main contrib' >> /etc/apt/sources.list apt update apt upgrade -y apt install -y clang cmake build-essential libxxf86vm-dev libxrandr-dev xorg-dev libglu1-mesa-dev libxrandr2 libglfw3 libglfw3-dev # libglfw3-wayland cargo test
#!/bin/bash echo 'deb http://debian.ethz.ch/debian stretch main contrib' >> /etc/apt/sources.list apt update apt upgrade -y apt install -y clang cmake build-essential libxxf86vm-dev libxrandr-dev xorg-dev libglu1-mesa-dev libxrandr2 libglfw3 libglfw3-dev # libglfw3-wayland cargo test cargo build --target wasm32-unkn...
Add `--delete` option to rsync to remove old files
#!/bin/bash set -e # exit with nonzero exit code if anything fails # clear and re-create the out directory if [[ $TRAVIS_BRANCH == 'master' ]] && [[ $TRAVIS_PULL_REQUEST = false ]] then # add remote ssh-key to key-storage # first add remote host to known hosts ssh-keyscan -t rsa $DEPLOY_HOST 2> /dev/null | sort -u ...
#!/bin/bash set -e # exit with nonzero exit code if anything fails # clear and re-create the out directory if [[ $TRAVIS_BRANCH == 'master' ]] && [[ $TRAVIS_PULL_REQUEST = false ]] then # add remote ssh-key to key-storage # first add remote host to known hosts ssh-keyscan -t rsa $DEPLOY_HOST 2> /dev/null | sort -u ...
Add the whatis database to catpages too
#!/bin/sh # Create the catpages dist - must follow manpages dist script, for obvious # reasons. if [ -d ${RD}/trees/manpages/usr/share/man ]; then su -m man -c 'catman ${RD}/trees/manpages/usr/share/man' > /dev/null 2>&1; ( cd ${RD}/trees/manpages/usr/share/man; find cat* | cpio -dumpl ${RD}/trees/catpages/usr/shar...
#!/bin/sh # Create the catpages dist - must follow manpages dist script, for obvious # reasons. if [ -d ${RD}/trees/manpages/usr/share/man ]; then su -m man -c 'catman ${RD}/trees/manpages/usr/share/man' > /dev/null 2>&1; ( cd ${RD}/trees/manpages/usr/share/man; find cat* whatis | cpio -dumpl ${RD}/trees/catpages/u...
Set MANPAGER manually (WHY ?)
#!/bin/bash --norc ManpageTitle=$(ps -p $(ps -p $$ -o ppid=) -o args= | awk '{print $NF}') ManpageTitle="MANPAGE\ :\ $ManpageTitle" col -b | gvim -R -c -geometry 120x65 "set ft=man nomod nolist titlestring=$ManpageTitle" - > /dev/null
#!/bin/bash --norc ManpageTitle=$(ps -p $(ps -p $$ -o ppid=) -o args= | awk '{print $NF}') ManpageTitle="MANPAGE\ :\ $MAN_PN" col -b | MANPAGER='toto' gvim -geometry 120x65 -R -c "set ft=man nomod noma nolist titlestring=$ManpageTitle" -c "let \$MANPAGER='$MANPAGER'" - > /dev/null
Install pyp from forked repository.
#!/bin/bash set -e # Script for installing pyp (Python Power at the Prompt) # Prerequisites: - gcc # - wget name="pyp" version="" target_dir=$ROOT package=$name-$version # download package tmp_dir=$(mktemp -d) && cd $tmp_dir && echo $tmp_dir wget -O $name 'https://docs.google.com/uc?authuser=0&id=0...
#!/bin/bash set -e # Script for installing pyp (Python Power at the Prompt) # Prerequisites: - gcc # - wget name="pyp" version="2.13-beta" target_dir=$ROOT package=$name-$version # download package tmp_dir=$(mktemp -d) && cd $tmp_dir && echo $tmp_dir wget -O $package.tar.gz "https://github.com/djhs...
Replace the command with the right one (since we have certbot now)
#!/bin/bash # TODO detect that the certificate got changed and restart apache letsencrypt-renewer --config-dir /etc/letsencrypt/
#!/bin/bash # TODO detect that the certificate got changed and restart apache certbot renew
Reduce verbosity of wget in CI scripts
[ "$COVERITY_BUILD" -ne 0 ] || exit 0 ARCHIVE="coverity_tool.tgz" WithMsg "Testing token" test "${COVERITY_SCAN_TOKEN}" && WithMsg "Downloading coverity scan tool" wget https://scan.coverity.com/download/linux64 --post-data "token=${COVERITY_SCAN_TOKEN}&project=koplyarov%2Fjoint" -O "$ARCHIVE" && Verbose tar -xvzf "$...
[ "$COVERITY_BUILD" -ne 0 ] || exit 0 ARCHIVE="coverity_tool.tgz" WithMsg "Testing token" test "${COVERITY_SCAN_TOKEN}" && WithMsg "Downloading coverity scan tool" wget --no-verbose https://scan.coverity.com/download/linux64 --post-data "token=${COVERITY_SCAN_TOKEN}&project=koplyarov%2Fjoint" -O "$ARCHIVE" && Verbose...
Install PeachPy regardless of whether or not the source exists
#!/bin/bash -ex USE_NDK=false if [[ "$1" = "--ndk" ]]; then USE_NDK=true if [[ ! -d $ANDROID_NDK ]]; then echo Error: ANDROID_NDK not a directory: $ANDROID_NDK exit 1 fi fi if [[ ! -d NNPACK ]]; then rm -rf NNPACK git clone --recursive git@github.com:silklabs/NNPACK.git fi cd NNPACK/ if [[ ! -d env...
#!/bin/bash -ex USE_NDK=false if [[ "$1" = "--ndk" ]]; then USE_NDK=true if [[ ! -d $ANDROID_NDK ]]; then echo Error: ANDROID_NDK not a directory: $ANDROID_NDK exit 1 fi fi if [[ ! -d NNPACK ]]; then rm -rf NNPACK git clone --recursive git@github.com:silklabs/NNPACK.git fi cd NNPACK/ if [[ ! -d env...
Use mysqld to replace mysqld_safe
#!/bin/bash # Starts up MariaDB within the container. # Stop on error set -e DATA_DIR=/data LOG_DIR=/var/log/mysql chown -R mysql /var/log/mysql chown -R mysql /data if [[ -e /firstrun ]]; then source /scripts/first_run.sh else source /scripts/normal_run.sh fi pre_start_action post_start_action # Start MariaD...
#!/bin/bash # Starts up MariaDB within the container. # Stop on error set -e DATA_DIR=/data LOG_DIR=/var/log/mysql chown -R mysql /var/log/mysql chown -R mysql /data if [[ -e /firstrun ]]; then source /scripts/first_run.sh else source /scripts/normal_run.sh fi pre_start_action post_start_action # Start MariaD...
Update & modernize Plan style.
pkg_name=libarchive pkg_distname=$pkg_name pkg_origin=core pkg_version=3.3.2 pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_description="Multi-format archive and compression library" pkg_upstream_url=https://www.libarchive.org pkg_license=('BSD') pkg_source=http://www.libarchive.org/downloads/${pkg_di...
pkg_name=libarchive _distname=$pkg_name pkg_origin=core pkg_version=3.3.2 pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_description="Multi-format archive and compression library" pkg_upstream_url="https://www.libarchive.org" pkg_license=('BSD') pkg_source="http://www.libarchive.org/downloads/${_distn...
Add directory if it doesn't exist
#!/bin/sh rm -Rf build/* cp -R haxelib.json haxedoc.xml src demo LICENSE.txt README.md build-detox.hxml build-jquery.hxml build cd build zip -r package.zip haxelib.json haxedoc.xml src demo LICENSE.txt README.md build-detox.hxml build-jquery.hxml cd ..
#!/bin/sh mkdir -p build rm -Rf build/* cp -R haxelib.json haxedoc.xml src demo LICENSE.txt README.md build-detox.hxml build-jquery.hxml build cd build zip -r package.zip haxelib.json haxedoc.xml src demo LICENSE.txt README.md build-detox.hxml build-jquery.hxml cd ..
Add alias for show merge conflicted files
# The rest of my fun git aliases alias gl='git pull --prune' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gp='git push origin HEAD' alias gd='git diff' alias gc='git commit' alias gca='git commit -a' alias g...
# The rest of my fun git aliases alias gl='git pull --prune' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gp='git push origin HEAD' alias gd='git diff' alias gc='git commit' alias gca='git commit -a' alias g...
Use camelCase for npm aliases
eval "$(npm completion 2>/dev/null)" # Install and save to dependencies alias npms="npm i -S " # Install and save to dev-dependencies alias npmd="npm i -D "
eval "$(npm completion 2>/dev/null)" # npm package names are lowercase # - https://twitter.com/substack/status/23122603153150361 # Thus, we've used camelCase for the following aliases: # Install and save to dependencies in your package.json # npms is used by https://www.npmjs.com/package/npms alias npmS="npm i -S " ...
Clarify the scope of a comment.
#!/bin/bash set -eux cd git/re2 case "${KOKORO_JOB_NAME}" in */windows-*) CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64') ;; *) # Work around a bug in older versions of bash. :/ set +u CMAKE_G_A_FLAGS=() ;; esac cmake -D CMAKE_BUILD_TYPE=Debug "${CMAKE_G_A_FLAGS[@]}" . cmake --b...
#!/bin/bash set -eux cd git/re2 case "${KOKORO_JOB_NAME}" in */windows-*) CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64') ;; *) CMAKE_G_A_FLAGS=() # Work around a bug in older versions of bash. :/ set +u ;; esac cmake -D CMAKE_BUILD_TYPE=Debug "${CMAKE_G_A_FLAGS[@]}" . cmake --b...
Install Carp::Always outside of Carton too
#!/bin/bash set -u set -o errexit PWD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$PWD/set_mc_root_dir.inc.sh" cd "$MC_ROOT_DIR" source ./script/set_perl_brew_environment.sh echo "Using Perl version: `perl -e 'print substr($^V, 1)'`" if [ `uname` == 'Darwin' ]; then # Mac OS X CPANM=/usr/local...
#!/bin/bash set -u set -o errexit PWD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$PWD/set_mc_root_dir.inc.sh" cd "$MC_ROOT_DIR" source ./script/set_perl_brew_environment.sh echo "Using Perl version: `perl -e 'print substr($^V, 1)'`" if [ `uname` == 'Darwin' ]; then # Mac OS X CPANM=/usr/local...
Make test checks for changes before committing
the_terminal_is_very_narrow() { [ `tput cols` -lt 80 ] } echo_wide_success() { echo -n " Success." echo " " } echo_wide_failure() { echo -n " Failure." echo " ...
the_terminal_is_very_narrow() { [ `tput cols` -lt 80 ] } echo_wide_success() { echo -n " Success." echo " " } echo_wide_failure() { echo -n " Failure." echo " ...
Add --warnings-as-errors to smoke test
#!/bin/bash set -e GENEREATE_CREDO_CHECK="lib/my_first_credo_check.ex" mix credo --mute-exit-status mix credo list --mute-exit-status mix credo suggest --mute-exit-status mix credo lib/credo/sources.ex:1:11 --mute-exit-status mix credo explain lib/credo/sources.ex:1:11 --mute-exit-status mix credo.gen.check $GENER...
#!/bin/bash set -e GENEREATE_CREDO_CHECK="lib/my_first_credo_check.ex" mix compile --force --warnings-as-errors mix credo --mute-exit-status mix credo list --mute-exit-status mix credo suggest --mute-exit-status mix credo lib/credo/sources.ex:1:11 --mute-exit-status mix credo explain lib/credo/sources.ex:1:11 --mu...