Skip to content

Instantly share code, notes, and snippets.

View LIttleAncientForestKami's full-sized avatar

Tomasz Borek LIttleAncientForestKami

View GitHub Profile
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>edu.lafk</groupId>
<artifactId>simple-project</artifactId>
<version>1</version>
</project>
@LIttleAncientForestKami
LIttleAncientForestKami / index.html
Last active August 29, 2015 14:14
Basic clustering JSP
<meta http-equiv="Refresh" content="0;url=jsp/testSession.jsp">
git config --global mergetool.keepBackup false
@LIttleAncientForestKami
LIttleAncientForestKami / ad.txt
Created March 21, 2015 13:41
AsciiDoctor Vim

Syntax recognition in VIM:

@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];
}
}
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 / 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
@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 / 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 / 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