==========================================
. 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.
sudo apt install curl zip unzip | |
curl -s "https://get.sdkman.io" | bash | |
# source sdkman here |
<?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> |
-server | |
-Xms128m | |
-Xmx512m | |
-XX:ReservedCodeCacheSize=240m | |
-XX:+UseConcMarkSweepGC | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-ea | |
-Dsun.io.useCanonCaches=false | |
-Djava.net.preferIPv4Stack=true | |
-XX:+HeapDumpOnOutOfMemoryError |
# 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 |
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;'); |
/** | |
* 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]; | |
} | |
} |
git config --global mergetool.keepBackup false |