Skip to content

Instantly share code, notes, and snippets.

karl82 karl82

  • Arrakis
Block or report user

Report or block karl82

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:984549af672618792ed4eaebe8726293
# Better handling modified files
git status --porcelain --untracked-files=no| awk '/^.M/ { print $2;}' | while read file; do
hash=$(git log -n 1 --pretty=format:%h -- $file)
git commit --fixup $hash $file
done
@karl82
karl82 / gist:474eac5494c4999e2ae9140cdcaf9b6a
Created Feb 18, 2017
Graal/truffel sporadic exception org.graalvm.compiler.code.SourceStackTraceBailoutException
View gist:474eac5494c4999e2ae9140cdcaf9b6a
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pascal 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ pascal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/karl/src/pascal-truffle/pascal/src/main/resources
[INFO]
@karl82
karl82 / InstanceOfTest.java
Created Jun 4, 2016
null instanceof Anything is always false
View InstanceOfTest.java
import org.testng.annotations.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
public class InstanceOfTest {
@Test
public void testNullInstanceOf() throws Exception {
View brew-cask-upgrade-list
for c in `brew cask list`; do ! brew cask info $c | grep -qF "Not installed" || echo $c; done
@karl82
karl82 / brew-cask-upgrade-all
Last active Mar 25, 2016
brew cask upgrade existing
View brew-cask-upgrade-all
for c in `brew cask list`; do ! brew cask info $c | grep -qF "Not installed" || (brew cask uninstall --force $c && brew cask install $c); done
View .zshrc
# Path to your oh-my-zsh installation.
export ZSH=/Users/####/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
@karl82
karl82 / gist:ef5b8e2e39ea13927725
Last active Sep 25, 2015 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
View gist:ef5b8e2e39ea13927725
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
@karl82
karl82 / .gitconfig
Last active Sep 22, 2016
.gitconfig
View .gitconfig
[core]
editor = vim
autocrlf = input
[color]
status = auto
[merge]
tool = vimdiff
[push]
default = simple
[alias]
View MyTrigger.java
package cz.rank.spring;
import org.springframework.scheduling.Trigger;
import org.springframework.scheduling.TriggerContext;
import java.util.Date;
/**
* Created by karl on 7/30/15.
*/
You can’t perform that action at this time.