Skip to content

Instantly share code, notes, and snippets.

View minusfive's full-sized avatar
🐢
I may be slow to respond.

Jorge Villalobos minusfive

🐢
I may be slow to respond.
View GitHub Profile
@minusfive
minusfive / mac-keys-unicode.md
Created July 28, 2023 02:00 — forked from zmwangx/mac-keys-unicode.md
Unicode characters for special keys on the Mac keyboard (not necessarily Mac specific). #symbols

⌘ – ⌘⌘ – the Command Key symbol
⌥ – ⌥⌥ – the Option Key symbol
⇧ – ⇧⇧ – the Shift Key symbol
⌃ – ⌃⌃ – the Control Key symbol
⎋ – ⎋⎋ – the ESC Key symbol
⇪ – ⇪⇪ – the Capslock symbol
⏎ – ⏎⏎ – the Return symbol
⌫ – ⌫⌫ – the Delete / Backspace symbol
⇥ – ⇥⇥ – the Tab Key symbol

@minusfive
minusfive / material-colors.scss
Created September 5, 2017 16:17
Google Material Colors - Scss
// Material Colors
// https://material.io/guidelines/style/color.html#color-color-palette
// Red
$mcolor-red-50: #ffebee;
$mcolor-red-100: #ffcdd2;
$mcolor-red-200: #ef9a9a;
$mcolor-red-300: #e57373;
$mcolor-red-400: #ef5350;
$mcolor-red-500: #f44336;

Keybase proof

I hereby claim:

  • I am minusfive on github.
  • I am minusfive (https://keybase.io/minusfive) on keybase.
  • I have a public key whose fingerprint is E5AF 7E9D BFFF E892 0683 DE20 BE2B A141 3A44 38B6

To claim this, I am signing this object:

@minusfive
minusfive / mount_tmp_as_tmpfs.sh
Created October 7, 2014 17:25
Speed up /tmp on Vagrant
$ sudo mount -t tmpfs tmpfs tmp
$ sudo unmount tmp
@minusfive
minusfive / git-subtree.sh
Created October 2, 2014 12:41
Push subtree to branch
# Must be ran from repo root
git subtree push --prefix <dir-path> <remote> <branch>
sudo su postgres
psql
update pg_database set datistemplate=false where datname='template1';
drop database Template1;
create database template1 with owner=postgres encoding='UTF-8'
lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0;
update pg_database set datistemplate=true where datname='template1';
@minusfive
minusfive / vertical-centering.css
Created May 5, 2014 17:22
Vertical centering
#container{
position: relative; // Or fixed, or absolute
}
#centered-element{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
@minusfive
minusfive / _buttons.sass
Created July 7, 2012 02:30
Sass Buttons Mixin
@import css3
=button( $color: #f6f6f6 )
display: inline-block
position: relative
cursor: pointer
padding: 0.45em 0.8em 0.6em
margin: 0
font-weight: 500
line-height: 1em
@minusfive
minusfive / debugging-pre.html
Created May 31, 2012 19:30
Debugging <pre></pre> tag
<pre style="position: absolute; top: 30px; right: 0; background: rgba(0,0,0,0.75); color: lightgreen; z-index: 9999; padding: 20px; max-width: 480px; white-space: pre-wrap;"></pre>
@minusfive
minusfive / mount_vboxsf.sh
Created May 15, 2011 01:13
Getting VirtualBox's shared folders to mount on Linux
$ sudo mount -t vboxsf sharename /home/username/mountpoint -o rw,exec,uid=1000,gid=1000,dev