Skip to content

Instantly share code, notes, and snippets.

View dasMulli's full-sized avatar

Martin Andreas Ullrich dasMulli

  • Tieto Austria
  • Vienna, Austria
View GitHub Profile
xaphod / gist:7aab1302004f6e933593a11ad8f5a72d
Last active March 1, 2018 07:16
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 March 4, 2017 15:22
.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 March 22, 2015 00:21
Hello World Enterprise Edition
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
sheerun / certgen.rb
Last active April 10, 2022 15:39
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 December 6, 2023 12:45
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 August 2, 2012 15:06
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