Skip to content

Instantly share code, notes, and snippets.

@andineck
andineck / java.sh
Created November 3, 2015 09:49
Java Ubuntu Version
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
# choose java version
sudo update-alternatives --config java
@andineck
andineck / measure.sh
Created September 22, 2015 13:59
measure time
curl -o /dev/null -s -w %{time_total}\\n intesso.com
@andineck
andineck / 1-readme.md
Created September 4, 2015 06:42
Argument Parsing with node.js

Argument Parsing with node.js

and the great modules: minimist and subarg

@andineck
andineck / 0-readme.md
Last active September 2, 2015 08:27
github: add repo via command line

github cmd

  1. how to create and init a git repository
  2. how to create and init a git repository for an organization
@andineck
andineck / update_ubuntu.sh
Created August 17, 2015 05:11
update ubuntu
sudo apt-get update # Fetches the list of available updates
sudo apt-get upgrade # Strictly upgrades the current packages
sudo apt-get dist-upgrade # Installs updates (new ones)
@andineck
andineck / 1 readme.md
Last active August 29, 2015 14:23
javascript variables

understand javascript variables

run:

node variables.js
@andineck
andineck / 1 readme.md
Last active August 29, 2015 14:22
shared module

node.js module hickups

modules in node are great. sharing them in npm is even better.

  • make sure you understand, that module when you require the same module from within the same directory, you get the reference to the same thing.
  • if you require the same module in files wich are located in different directories, you get two new module instances.

run

node b.js
@andineck
andineck / 1 badass-grid.markdown
Last active August 29, 2015 14:21
badass grid
@andineck
andineck / path-to-regexp#54.js
Created May 12, 2015 20:21
path-to-regexp PR54 tests.
// patch: "path-to-regexp": "git://github.com/pillarjs/path-to-regexp.git#asterisk-match"
var patch = require('./patch/node_modules/path-to-regexp');
// old: "path-to-regexp": "^0.1.3"
var old = require('./0.1.3/node_modules/path-to-regexp');
var assert = require('assert');
// routes: 0: route, 1: path, 2: param
var routes = [
['*', '/test/route/aA/bB/cC', '/test/route/aA/bB/cC'],