Skip to content

Instantly share code, notes, and snippets.

# Change Java Runtime:
sudo update-alternatives --config java
# Delete Open-JDK
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
# Install OpenJDK with FontFix
$ sudo apt-get install libfreetype6
# install font fixed OpenJDK (https://launchpad.net/~no1wantdthisname/+archive/openjdk-fontfix)

Optimizing Webapp Generator

1. Install dependencies

Install the LibSass, node-bourbon and jit-grunt grunt plugin:

npm install --save-dev node-bourbon
npm install --save-dev jit-grunt
@aegyed91
aegyed91 / README.md
Last active August 29, 2015 14:08
Vim configuration
@aegyed91
aegyed91 / memoization.js
Last active August 29, 2015 14:13
JS learning
// a constructor function
var Backbone = {
Module: {
extend: function(attributes) {
this.defaults = {
type: 'Ape',
name: 'Ati'
};
this.attributes = $.extend({}, this.defaults, attributes);
'use strict';
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
_ = require('lodash'),
browserSync = require('browser-sync'),
reload = browserSync.reload,
nodemon = require('gulp-nodemon'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
@aegyed91
aegyed91 / gist:d6b39d0f423826ca20d1
Last active August 29, 2015 14:27 — forked from benjamingr/gist:0237932cee84712951a2
Promise unhandled rejection tracking global handler hook

Possibly Unhandled Rejection NodeJS Promise Hook

###Unhandled Rejection Tracking

Several promise libraries such as bluebird and when as well as some native promise implementations offer potentially unhandled rejection tracking. This means that the following:

Promise.reject(new Error("err")); // never attach a `catch`
@aegyed91
aegyed91 / nginx.conf
Created September 29, 2015 22:09 — forked from turtlesoupy/nginx.conf
node.js upstream nginx config
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@aegyed91
aegyed91 / mime.types
Last active September 18, 2018 20:48
vita.hu nginx configs
types {
# Data interchange
application/atom+xml atom;
application/json json map topojson;
application/ld+json jsonld;
application/rss+xml rss;
application/vnd.geo+json geojson;
application/xml rdf xml;
@aegyed91
aegyed91 / example-project-settings.json
Last active February 26, 2016 23:58
VS Code config
// Place your settings in this file to overwrite default and user settings.
{
//-------- Search configuration --------
// Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the file.exclude setting.
"search.exclude": {
"**/dist": true
},