Skip to content

Instantly share code, notes, and snippets.

View roland-ewald's full-sized avatar

Roland Ewald roland-ewald

View GitHub Profile
@roland-ewald
roland-ewald / atlassian-markup.sublime-syntax
Created December 14, 2018 17:03 — forked from msurovcak/atlassian-markup.sublime-syntax
Simple Sublime Text 3 Syntax File for JIRA and Confluence markup language
%YAML 1.2
---
name: JIRA and Confluence markup syntax
scope: source.atlassian-markup
license: MIT
variables:
other_text_mods: '\^|\~|\?\?'
projects: '(GD|PAAS)'
icons: '\((!|\?|/)\)'
contexts:
@roland-ewald
roland-ewald / git-recently-checkout-branches.sh
Created November 14, 2018 10:24 — forked from mislav/git-recently-checkout-branches.sh
Show list of recently checked-out branches in reverse-chronological order
#!/bin/bash
set -e
git reflog -n100 --pretty='%cr|%gs' --grep-reflog='checkout: moving' HEAD | {
seen=":"
git_dir="$(git rev-parse --git-dir)"
while read line; do
date="${line%%|*}"
branch="${line##* }"
if ! [[ $seen == *:"${branch}":* ]]; then
@roland-ewald
roland-ewald / pandoc.css
Created February 22, 2017 10:05 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@roland-ewald
roland-ewald / README.md
Created January 24, 2017 20:02 — forked from aseemk/README.md
A bookmarklet for "selecting all" (technically, "toggling all") checkboxes on the Amazon AWS S3 console.
@roland-ewald
roland-ewald / continous-qunit.ps1
Last active August 29, 2015 14:27 — forked from jfromaniello/continous-qunit.ps1
The powershell continuously watch for file changes in a directory, then it executes PhantomJs with the Run-Qunit.js attached to your htm qunit test harness.
# watch a file changes in the current directory,
# execute all tests when a file is changed or renamed
$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = get-location
$watcher.IncludeSubdirectories = $true
$watcher.EnableRaisingEvents = $false
$watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite -bor [System.IO.NotifyFilters]::FileName
while($TRUE){
@roland-ewald
roland-ewald / mandelbrot.sql
Last active August 29, 2015 14:25 — forked from rupey/mandelbrot.sql
Mandelbrot plot in postgres
WITH RECURSIVE
x(i) AS ( VALUES (0)
UNION ALL SELECT i + 1
FROM x
WHERE i < 101),
Z(Ix, Iy, Cx, Cy, X, Y, I) AS (
SELECT
Ix,
Iy,
X :: FLOAT,
#!/bin/bash
usage ()
{
cat <<UsageHERE
boot2docker-fwd -- Helper function to quickly manage port forwards between the boot2docker-vm and the host
Usage: boot2docker-fwd [ -n RULE_NAME ] [ -h HOST_PORT ] [ -p {tcp|udp} ] [ -i HOST_IP ] GUEST_PORT
or boot2docker-fwd -d RULE_NAME
or boot2docker-fwd -l
or boot2docker-fwd -A