Skip to content

Instantly share code, notes, and snippets.

View olivierodo's full-sized avatar
418 IM_A_TEAPOT

OliverOdo olivierodo

418 IM_A_TEAPOT
  • FWD | Atalent-Consulting
  • Bangkok
  • 22:53 (UTC +07:00)
  • X @olivierodo
View GitHub Profile
@bmatcuk
bmatcuk / create-usb.sh
Created May 30, 2019 04:38
Creating a Bootable Windows USB from ISO on a Mac
# First, we need to find our device. BEFORE inserting your USB drive, run the
# following:
diskutil list
# This will output a bunch of info about all of the disk drives connected to
# your Mac. Each entry will have a header in the form "/dev/diskX", where X is
# some number starting at 0. Now, insert your USB drive and run the command
# again. You should see a new entry. Make note of the name (ie, /dev/diskX).
diskutil list
@branneman
branneman / better-nodejs-require-paths.md
Last active April 27, 2024 04:16
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@ryanflorence
ryanflorence / .vimrc
Created November 21, 2011 03:28
Random color scheme for vim
function RandomColorScheme()
let mycolors = split(globpath(&rtp,"**/colors/*.vim"),"\n")
exe 'so ' . mycolors[localtime() % len(mycolors)]
unlet mycolors
endfunction
call RandomColorScheme()
:command NewColor call RandomColorScheme()