Skip to content

Instantly share code, notes, and snippets.

@cocoalabs
cocoalabs / gist:2fb7dc2199b0d4bf160364b8e557eb66
Created August 15, 2016 21:50
Color Terminal for bash/zsh etc..
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
@dirkk0
dirkk0 / gist:b474e1218dcc02025e25
Created July 7, 2015 19:03
Compiling Gear VR native apps on Ubuntu 14.04
I couldn't find a decent installation tutorial how to set up the Oculus SDK on the Ubuntu command line, so I created one.
This blog helped me a lot:
http://aaron.jaxns.net/category/gear-vr-development/
I didnt't triple check this, so if there are problems, please bear with me.
If there is any interest, I can go in more detail and create a 'do-all' script.
a) Install Android:
https://gist.github.com/dirkk0/9b325888a268a595bfce
@benjamindean
benjamindean / Code.desktop
Last active July 20, 2019 12:19
Linux desktop entry for Visual Studio Code. Goes to "/usr/share/applications/". For this to work, Code should be linked to `code` executable: https://code.visualstudio.com/Docs/setup
[Desktop Entry]
Name=Code
Exec=code %U
Terminal=false
Icon=code
Type=Application
StartupNotify=true
Categories=TextEditor;Development;Utility;
MimeType=text/plain;

Git Cheat Sheet

Commands

Getting Started

git init

or

@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@mokagio
mokagio / sticky.css
Created February 26, 2012 20:53
Twitter Bootstrap + Sticky Footer + Fixed Nav Bar
html, body, .container, .content {
height: 100%;
}
.container, .content {
position: relative;
}
.proper-content {
padding-top: 40px; /* >= navbar height */