Skip to content

Instantly share code, notes, and snippets.

View LIttleAncientForestKami's full-sized avatar

Tomasz Borek LIttleAncientForestKami

View GitHub Profile
@LIttleAncientForestKami
LIttleAncientForestKami / sdkman-prep.sh
Last active February 16, 2018 14:35
Setting up Java on new Debian-based box
sudo apt install curl zip unzip
curl -s "https://get.sdkman.io" | bash
# source sdkman here
@LIttleAncientForestKami
LIttleAncientForestKami / gef.target
Created August 26, 2017 13:47
GEF (4) target file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="gef-integration" sequenceNumber="1">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="2.10.0.v201605250459"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="2.12.0.v20160526-0356"/>
<unit id="org.eclipse.sdk.ide" version="4.6.0.I20160606-1100"/>
<repository location="http://download.eclipse.org/releases/neon"/>
</location>
@LIttleAncientForestKami
LIttleAncientForestKami / idea64.vmoptions.default
Last active April 23, 2017 13:12
Ubuntu Xenial Sun(Oracle) Hotspot JDK 1.8.0_101-b13 Idea 17 Ultimate 64
-server
-Xms128m
-Xmx512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
@LIttleAncientForestKami
LIttleAncientForestKami / OswójLinięPoleceń.md
Last active December 9, 2016 16:39
Slajdy do prezentacji Oswój Linię Poleceń - 10 jednolinijkowców devopsa

Oswój linię poleceń

==========================================

. Dev + Ops = DevOps. . 10 prostych – acz fajnych – jednolinijkowców

Jeśli słyszeliście, że linia poleceń jest mocna, 
że warto się jej nauczyć, czy inne takie 
pogłoski… 

to dobrze słyszeliście.

@LIttleAncientForestKami
LIttleAncientForestKami / vimmize.sh
Last active August 27, 2016 18:22
Vim all the things!
# Vimperator
firefox https://addons.mozilla.org/pl/firefox/addon/vimperator/
# Vim with clipboard
sudo apt-get install vim-gnome
# Terminal (ZSH, TCSH)
## http://dougblack.io/words/zsh-vi-mode.html
bindkey -v
# Bash
@LIttleAncientForestKami
LIttleAncientForestKami / mvn.sh
Created November 19, 2015 00:34
JMH set up with Maven
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=org.openjdk.jmh \
-DarchetypeArtifactId=jmh-java-benchmark-archetype \
-DgroupId=org.sample \
-DartifactId=test \
-Dversion=1.0
var buildTaskList = function() {
var ol = document.getElementById('TaskList');
var list = document.createDocumentFragment();
var inputEl = function(i) {
var el = document.createElement('input');
el.setAttribute('type', 'image');
el.setAttribute('src', 'ncheck.png');
el.setAttribute('alt', 'Wykreśl');
el.setAttribute('onclick', 'RDZ.done('+i+'); this.disabled = true; return false;');
@LIttleAncientForestKami
LIttleAncientForestKami / OOM.java
Created June 30, 2015 06:52
OOM flavours, side gist for OOM-diag checklist, with thanks from Plumbr: https://plumbr.eu/outofmemoryerror/java-heap-space
/**
* Run with Heap set to 12MB and 13MB respectively
* Thanks Plumbr
*/
class OOM {
static final int SIZE=2*1024*1024;
public static void main(String[] a) {
int[] i = new int[SIZE];
}
}
@LIttleAncientForestKami
LIttleAncientForestKami / ad.txt
Created March 21, 2015 13:41
AsciiDoctor Vim

Syntax recognition in VIM:

git config --global mergetool.keepBackup false