Skip to content

Instantly share code, notes, and snippets.


Martin Andreas Ullrich dasMulli

  • Tieto Austria
  • Vienna, Austria
View GitHub Profile
xaphod / gist:7aab1302004f6e933593a11ad8f5a72d
Last active Mar 1, 2018
Scroll keyboard up just enough to show control. Swift 3.
View gist:7aab1302004f6e933593a11ad8f5a72d
// note that currentFirstResponder is obtained by this:
// static var currentFirstResponder: UIResponder?
// func findFirstResponder(sender: Any) {
// currentFirstResponder = self
// }
// class func currentFirstResponder() -> UIResponder? {
// currentFirstResponder = nil
// UIApplication.shared.sendAction(#selector(findFirstResponder), to: nil, from: nil, for: nil)
goldshtn /
Created Mar 4, 2017
.NET Core on Linux LLDB analysis scripts
#!/usr/bin/env python
# Example of an LLDB script that loads SOS and runs a command
# for analysis of a .NET Core application on Linux/macOS.
# Requires LLDB matching the version of for your
# CoreCLR version, and gdb.
# USAGE: [--memory] [--stacks] COREFILE
# NOTE: To run this as stand-alone, you might need to fix some bad symlinks
lolzballs /
Created Mar 22, 2015
Hello World Enterprise Edition
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
sheerun / certgen.rb
Last active Apr 10, 2022
Docker TLS certificate generator
View certgen.rb
# Generates necessary certificates to ~/.docker
# Usage:
# bundle install
# ruby certgen.rb <domain>
require 'certificate_authority'
require 'fileutils'
if ARGV.empty?
dergachev /
Last active Oct 4, 2022
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

olivierlacan /
Created Aug 2, 2012
My git log custom output aliases
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global "log --graph --decorate --pretty=oneline --abbrev-commit --all"
git config --global alias.mylog "log --pretty=format:'%h %s [%an]' --graph"

To check that they've been added correctly, first run git config --list. You should see something like this in the midst of all your other configuration:

alias.hist=log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short