- fast, no setup needed, tests a function, low complexity
- slow, needs setup, tests a component or service that makes up a system
| #!/usr/bin/env bash | |
| # | |
| # Username To Lowercase | |
| # ===================== | |
| # | |
| # Script for converting gerrit:-scheme usernames to lowercase directly | |
| # in a checkout of refs/meta/external-ids of the All-Users git repo. | |
| # | |
| # Copyright: Tyler Cipriani <[email protected]> 2019 | |
| # License: GPLv3+ |
| #!/usr/bin/env python3 | |
| # exif-for-fp | |
| # ~~~~~~~~~~~ | |
| # | |
| # Copyright: Tyler Cipriani (c) 2019 | |
| # License: GPLv3 | |
| # | |
| # Crawl featured picture gallery pages and extract camera/lens | |
| # total and display that data |
| (/^ヮ^)/*:・゚✧ grep -aP '\bman\b' ~/.muh_history | awk '{print $(NF)}' | sort | uniq -c | sort -rn | head -20 | |
| 54 date | |
| 53 ssh | |
| 50 bash | |
| 37 curl | |
| 35 sudo | |
| 34 man | |
| 32 ssh-keygen | |
| 32 rsync | |
| 31 ascii |
| """ | |
| Cycle Time | |
| ========== | |
| > The time from deciding that you need to make a change to having it in | |
| > production is known as the _cycle time_. | |
| > | |
| > -- _Continuous Delivery_ by Jez Humble and David Farley | |
| This is an attempt to approximate cycle time for MediaWiki core at the point |
| #!/usr/bin/env bash | |
| BASE="/home/thcipriani/public_html/docker" | |
| INDEX="${BASE}/index.html" | |
| IMAGES="$(wm-docker-tags --repos)" | |
| IMAGE_LIST= | |
| mkdir -p "$BASE" | |
| make_image_index() { |
| import hudson.util.RemotingDiagnostics | |
| def groovyScript = 'println "df -h /srv".execute().text' | |
| def computerNamePrefix = 'integration-slave-' | |
| for (slave in hudson.model.Hudson.instance.slaves) { | |
| def computer = slave.computer | |
| def computerName = computer.getName() |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| wmf-folks | |
| ~~~~~~~~~ | |
| A naïve attempt to answer the burning question: *exactly* how many | |
| people work at the Wikimedia Foundation now? | |
| """ | |
| import requests |