Skip to content

Instantly share code, notes, and snippets.

View theotow's full-sized avatar

Manuel Villing theotow

View GitHub Profile
let isDone: boolean = false;
var path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: './app.tsx',
context: path.join(__dirname, '/src'),
output: {
filename: 'bundle.js',
path: path.join(__dirname, 'dist'),
},
.aa{
&__hallo{
color: red;
}
}
@theotow
theotow / SassMeister-input-HTML.html
Created November 10, 2014 22:45
Generated by SassMeister.com.
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
<main>
<section class="cart">
<div class="cart__top">
<ul class="cart__bubbles">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
@theotow
theotow / gist:8577001
Created January 23, 2014 11:22
binary md5 hashing in nodejs
var md5 = crypto.createHash('md5').update(string).digest('binary');
md5 = new Buffer(md5, "binary").toString('base64');
@theotow
theotow / gist:8539570
Created January 21, 2014 12:59
logging
add following to /etc/rsyslog.d/50-default.conf
local0.* /var/log/local0
local1.* /var/log/local1
@theotow
theotow / gist:8539398
Created January 21, 2014 12:48
npm without symlinks
npm install --no-bin-links
@theotow
theotow / gist:8539036
Created January 21, 2014 12:21
mount in virtual box shared folder
sudo mount.vboxsf -o fmode=777,dmode=777,uid=1000,gid=1000 /sharename /vagrant
@theotow
theotow / gist:8531761
Created January 20, 2014 23:54
make luajit work with nginx, shared lib missing bug
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH