what | where |
---|---|
how to attach to a running container | http://stackoverflow.com/questions/20932357/docker-enter-running-container-with-new-tty |
enable docker rest api | http://stackoverflow.com/questions/18038985/how-to-connect-to-docker-api-from-another-machine |
sshd considered harmful | http://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* LazySingleton#getInstance instatiate a singleton on the first request. | |
* | |
* Due to the loading behavior of static fields, this aproach is guaranteed to be thread safe. | |
*/ | |
public final class LazySingleton { | |
private static class InstanceHolder { | |
public static final LazySingleton INSTANCE = new LazySingleton(); | |
} |
##get arguments
as array
var args = Array.prototype.slice.call(arguments);
see: http://devdocs.io/javascript/functions_and_function_scope/arguments
##find a regexps groups
var matches = /(hello \S+)/.exec('This is a hello world!');
alert(matches[1]);
Blogs
- http://lkrnac.net/blog/2014/05/multi-module-javascript-project/
- http://thanpol.as/grunt/Managing-large-scale-projects-with-Grunt/
- https://oncletom.io/2013/live-development-bower-component/#more
- http://briantford.com/blog/angular-bower
- http://www.thomasboyt.com/2013/09/01/maintainable-grunt.html
Tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.codewars.com/kata/540afbe2dc9f615d5e000425/train/javascript | |
var Sudoku = function(data) | |
{ | |
// Private methods | |
// ------------------------- | |
var n = data.length; | |
var rows = data; | |
var collumns = calcCollumns(data); | |
var blocks = calcBlocks(data); |
- EcmaScript support: http://kangax.github.io/compat-table/
- HTML5/CSS3/ES5 support: http://caniuse.com/
ansible all -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory -u vagrant --private-key .vagrant/machines/default/virtualbox/private_key -m ping
#Some links http://effectif.com/mac-os-x/installing-specific-version-of-homebrew-formula http://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula/4158763#4158763 https://github.com/Homebrew/homebrew-versions
#How to install particular version of a formula
- finding the commit of the formula change for the version your looking for:
cd $(brew --repository)
git log -- Library/Formula/<formula_name>.rb
orgit log -S '<version>' -- Library/Formula/<formula_name>.rb
- unlink previous installed version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Max Scheffler | |
email = [email protected] | |
[alias] | |
co = checkout | |
ci = commit | |
cia = !git add -A && git commit | |
ciad = !git add -A && git commit -m "." | |
st = status | |
br = branch |
OlderNewer