- Freak douchebag guy with bob marley backpack
- Lose control once you see a girl
- Say coffee as possesive name
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
sudo gpasswd -a $USER fuse | |
mkdir ~/drive_dir | |
sshfs -o idmap=user $USER@my_ip:/path ~/drive_dir | |
#umount | |
fusermount -u ~/drive_dir |
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
/* | |
* Copyright (c) 2011 Yahoo! Inc. All rights reserved. | |
*/ | |
/*jslint nomen: true */ | |
(function () { | |
'use strict'; | |
function mix(target, source){ |
####How to create a bootable usb linux setup on mac (based on Trisquel tutorial )
$ hdiutil convert -format UDRW -o ~/path/to/linux.dmg ~/path/to/linux.iso
Insert your USB stick.
$ diskutil list
again to figure out the device file assigned to your USB stick (e.g. /dev/disk2).
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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), | |
mimer = require('mimer'), // npm install mimer | |
spawn = require('child_process').spawn, | |
port = process.argv[2] || 9000; | |
http.createServer(function(request, response) { |
NOTE: If you recently upgrade to Mountain Lion you probably need fix Homebrew + GCC
Change the /usr/local
permission to yourself:
$ chown -R `whoami` /usr/local
Make sure you have a clean installation, if you had installed MacFuse before or you need uninstall it first:
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
<article class="post"> | |
<h1 class="post__title">Title</h1> | |
<picture class="post__picture"> | |
<img src="article/picture.jpg" alt="Something" /> | |
</picture> | |
<p class="post__description"> | |
Lorem ipsum... | |
</p> | |
</article> | |
<article class="post post--highlight"> |
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
//based on https://gist.github.com/addyosmani/fd3999ea7fce242756b1 | |
javascript:!function(a){for(a.__CSSDebug__=!a.__CSSDebug__,i=0;A=document.all[i++];)A.style.outline=a.__CSSDebug__?"solid hsl("+9*(A+A).length+",99%,50%)1px":null}(window); |
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
/* | |
Another way of splitting a gulpfile into multiple files based on: | |
http://macr.ae/article/splitting-gulpfile-multiple-files.html | |
https://github.com/gulpjs/gulp/blob/master/docs/recipes/split-tasks-across-multiple-files.md | |
*/ | |
'use strict'; | |
var gulp = require('gulp'), | |
plugins = require('gulp-load-plugins')(), |
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
Object.assign({}, { a: 1, b: undefined }) | |
Object {a: 1, b: undefined} | |
jQuery.extend({}, { a: 1, b: undefined }) | |
Object {a: 1} | |
// lodash | |
_.extend({}, { a: 1, b: undefined }) | |
Object {a: 1, b: undefined} |