THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # This is an example of metaprogramming in the Elixir language. | |
| # | |
| # We will define a domain specific language (DSL) for the definition | |
| # of a service which is watched by several sensors. | |
| # Each sensor watches some property/functionality of the service and | |
| # returns the result of the check. | |
| # | |
| # To determine if the service is functioning properly, we need functions | |
| # to run all the sensors' code and gather the returned data. | |
| # |
| <?php | |
| /** | |
| * Simple Magento integration test PHPUnit bootstrap | |
| */ | |
| chdir(__DIR__ . '/../..'); | |
| $mageFile = 'htdocs/app/Mage.php'; | |
| umask(0); |
[Plover][] is an awesome open source stenography program, but to run the software [you need an NKRO keyboard][nkro]. The [ErgoDox keyboard][ergodox] can be made to run in NKRO mode by following these steps.
These instructions are based on this document, which assumes you're using Windows. I'm using a mac, and I had to download and install the [CrossPack for AVR Development][crosspack] before the build process worked.
The NKRO firmware and Plover keymap can be found in the simon_layout branch of @shayneholmes fork of tmk_keyboard. Get the source:
| #!/bin/bash | |
| machines=() | |
| for machine in `VBoxManage list runningvms|cut -d" " -f 1`; do | |
| machines+=("$machine") | |
| done | |
| if [ ${#machines[@]} -eq 1 ]; then | |
| machinename=$(echo ${machines[@]} | cut -d'_' -f 1) |
| input { | |
| file { | |
| type => "magento-exception" | |
| path => "/path/to/magento/www/var/log/exception.log" | |
| codec => multiline { | |
| pattern => "^%{TIMESTAMP_ISO8601}" | |
| negate => true | |
| what => previous | |
| } | |
| } |
Get Git log in JSON format
git log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},'The only information that aren't fetched are:
%B: raw body (unwrapped subject and body)%GG: raw verification message from GPG for a signed commit| function elixir_version() { | |
| if [ -f "$PWD/mix.exs" ]; then | |
| echo "$ELIXIR_VERSION " | |
| fi | |
| } | |
| function ruby_version() { | |
| if [ -f "$PWD/Gemfile" ]; then | |
| echo "${RUBY_VERSION#*-} " | |
| fi |