Skip to content

Instantly share code, notes, and snippets.

@florido
florido / Launch Center Pro action menu
Created January 9, 2017 04:55 — forked from viticci/Launch Center Pro action menu
iOS bookmarklet for Launch Center Pro
javascript:window.location='launchpro://?url='+encodeURIComponent('launchpro://?url=[list:URL: ' +location.href+'|๐Ÿ”ต Tweetbot=tweetbot://viticci/post?text={{'+location.href+'}}|๐Ÿ“Œ Pinswift=pinswift://x-callback-url/add?url={{'+location.href+'}}|โœ… To Check Out=drafts://x-callback-url/create?text={{'+location.href+'}}&action={{Stuff To Check Out}}|๐Ÿ”ด Reminder=fantastical2://parse?sentence={{'+location.href+'}}&reminder=1|๐Ÿ”’ Open In 1Password=op'+location.href+'|๐Ÿ”— Clean Link=clean-links://x-callback-url/clean?url={{'+location.href+'}}]')
@florido
florido / homebrew-python27.markdown
Created January 19, 2017 19:30 — forked from rcackerman/homebrew-python27.markdown
Installing/updating Python 2.7 with Homebrew

Installing Python 2.7 with Homebrew

For Mac 10.8.x

1) Install XCode 4.4

Get it from the App Store.

@florido
florido / maxproc
Created February 22, 2017 14:40 — forked from rcrowley/maxproc
#!/bin/sh
sysctl -w kern.maxproc=2048
sysctl -w kern.maxprocperuid=1024
echo kern.maxproc=2048 >>/etc/sysctl.conf
echo kern.maxprocperuid=1024 >>/etc/sysctl.conf
echo limit maxproc 1024 2048 >>/etc/launchd.conf
@florido
florido / brettquix.txt
Created February 27, 2017 23:56 — forked from ttscoff/brettquix.txt
Brett's Quix File
@Brett's searches
@Brett's custom searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
@florido
florido / Liberal Regex Pattern for Web URLs
Created March 9, 2017 21:01 — forked from gruber/Liberal Regex Pattern for Web URLs
Liberal, Accurate Regex Pattern for Matching Web URLs
The regex patterns in this gist are intended only to match web URLs -- http,
https, and naked domains like "example.com". For a pattern that attempts to
match all URLs, regardless of protocol, see: https://gist.github.com/gruber/249502
# Single-line version:
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|s
@florido
florido / unzip.sh
Created March 9, 2017 22:08 — forked from 4np/unzip.sh
Unzip multipart zip file on Mac OS X / Linux / Unix oneliner
cat *.zip > combined.zip;zip -FF combined.zip --out combined-fixed.zip;rm combined.zip;yes A|unzip -qq combined-fixed.zip;rm combined-fixed.zip
@florido
florido / emoji_bookmarklet.md
Created March 10, 2017 15:56 — forked from vibragiel/emoji_bookmarklet.md
Bookmarklet to show quick unicode emojis for quick copy&pasting.

#Emoji bookmarklet

This bookmarklet shows the unicode Emojis in your native font for quick copy&pasting. Depending on your system, some (or all) of them may not render properly.

Create a bookmark in your bookmarks toolbar and paste the following code into the URL/Location field:

javascript: (function () {
alert("๐Ÿ˜ ๐Ÿ˜‚ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜…  ๐Ÿ•ฆ ๐Ÿ•ง ๐Ÿ˜Š ๐Ÿ˜‹ ๐Ÿ˜Œ ๐Ÿ˜ ๐Ÿ˜ ๐Ÿ˜’ ๐Ÿ˜“ ๐Ÿ˜” ๐Ÿ˜– ๐Ÿ˜˜ ๐Ÿ˜š ๐Ÿ˜œ ๐Ÿ˜ ๐Ÿ˜ž ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ข ๐Ÿ˜ฃ ๐Ÿ˜ค ๐Ÿ˜ฅ ๐Ÿ˜จ ๐Ÿ˜ฉ ๐Ÿ˜ช ๐Ÿ˜ซ ๐Ÿ˜ญ ๐Ÿ˜ฐ ๐Ÿ˜ฑ ๐Ÿ˜ฒ ๐Ÿ˜ณ ๐Ÿ˜ต ๐Ÿ˜ท ๐Ÿ˜ธ ๐Ÿ˜น ๐Ÿ˜บ ๐Ÿ˜ป ๐Ÿ˜ผ ๐Ÿ˜ฝ ๐Ÿ˜พ ๐Ÿ˜ฟ ๐Ÿ™€ ๐Ÿ™… ๐Ÿ™† ๐Ÿ™‡ ๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š ๐Ÿ™‹ ๐Ÿ™Œ ๐Ÿ™ ๐Ÿ™Ž ๐Ÿ™ โœ‚ โœ… โœˆ โœ‰ โœŠ โœ‹ โœŒ โœ โœ’ โœ” โœ– โœจ โœณ โœด โ„ โ‡ โŒ โŽ โ“ โ” โ• โ— โค โž• โž– โž— โžก โžฐ ๐Ÿš€ ๐Ÿšƒ ๐Ÿš„ ๐Ÿš… ๐Ÿš‡ ๐Ÿš‰ ๐ŸšŒ ๐Ÿš ๐Ÿš‘ ๐Ÿš’ ๐Ÿš“ ๐Ÿš• ๐Ÿš— ๐Ÿš™ ๐Ÿšš ๐Ÿšข ๐Ÿšค ๐Ÿšฅ ๐Ÿšง ๐Ÿšจ ๐Ÿšฉ ๐Ÿšช ๐Ÿšซ ๐Ÿšฌ ๐Ÿšญ ๐Ÿšฒ ๐Ÿšถ ๐Ÿšน ๐Ÿšบ ๐Ÿšป ๐Ÿšผ ๐Ÿšฝ ๐Ÿšพ ๐Ÿ›€ โ“‚ ๐Ÿ…ฐ ๐Ÿ…ฑ ๐Ÿ…พ ๐Ÿ…ฟ ๐Ÿ†Ž ๐Ÿ†‘ ๐Ÿ†’ ๐Ÿ†“ ๐Ÿ†” ๐Ÿ†• ๐Ÿ†– ๐Ÿ†— ๐Ÿ†˜ ๐Ÿ†™ ๐Ÿ†š ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡ฏ๐Ÿ‡ต ๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿˆ ๐Ÿˆ‚ ๐Ÿˆš ๐Ÿˆฏ ๐Ÿˆฒ ๐Ÿˆณ ๐Ÿˆด ๐Ÿˆต ๐Ÿˆถ ๐Ÿˆท ๐Ÿˆธ ๐Ÿˆน ๐Ÿˆบ ๐Ÿ‰ ๐Ÿ‰‘ ยฉ ยฎ โ€ผ โ‰ 8โƒฃ 9โƒฃ 7โƒฃ 6โƒฃ 1โƒฃ 0โƒฃ 2โƒฃ 3โƒฃ 5โƒฃ 4โƒฃ #โƒฃ โ„ข โ„น โ†” โ†• โ†– โ†— โ†˜ โ†™ โ†ฉ โ†ช โŒš โŒ› โฉ โช โซ โฌ โฐ โณ โ–ช โ–ซ โ–ถ โ—€ โ—ป โ—ผ โ—ฝ โ—พ โ˜€ โ˜ โ˜Ž โ˜‘ โ˜” โ˜• โ˜ โ˜บ โ™ˆ โ™‰ โ™Š โ™‹ โ™Œ โ™ โ™Ž โ™ โ™ โ™‘ โ™’ โ™“ โ™  โ™ฃ โ™ฅ โ™ฆ โ™จ โ™ป โ™ฟ โš“ โš  โšก โšช โšซ โšฝ โšพ โ›„ โ›… โ›Ž โ›” โ›ช โ›ฒ โ›ณ โ›ต โ›บ โ›ฝ โคด โคต โฌ… โฌ† โฌ‡ โฌ› โฌœ โญ โญ• ใ€ฐ ใ€ฝ ใŠ— ใŠ™ ๐Ÿ€„ ๐Ÿƒ ๐ŸŒ€ ๐ŸŒ ๐ŸŒ‚ ๐ŸŒƒ ๐ŸŒ„ ๐ŸŒ… ๐ŸŒ† ๐ŸŒ‡ ๐ŸŒˆ ๐ŸŒ‰ ๐ŸŒŠ ๐ŸŒ‹ ๐ŸŒŒ ๐ŸŒ ๐ŸŒ‘ ๐ŸŒ“ ๐ŸŒ” ๐ŸŒ• ๐ŸŒ™ ๐ŸŒ› ๐ŸŒŸ ๐ŸŒ  ๐ŸŒฐ ๐ŸŒฑ ๐ŸŒด ๐ŸŒต ๐ŸŒท ๐ŸŒธ ๐ŸŒน ๐ŸŒบ ๐ŸŒป ๐ŸŒผ ๐ŸŒฝ ๐ŸŒพ ๐ŸŒฟ ๐Ÿ€ ๐Ÿ ๐Ÿ‚ ๐Ÿƒ ๐Ÿ„ ๐Ÿ… ๐Ÿ† ๐Ÿ‡ ๐Ÿˆ ๐Ÿ‰ ๐ŸŠ ๐ŸŒ ๐Ÿ ๐ŸŽ ๐Ÿ ๐Ÿ‘ ๐Ÿ’ ๐Ÿ“ ๐Ÿ” ๐Ÿ• ๐Ÿ– ๐Ÿ— ๐Ÿ˜ ๐Ÿ™ ๐Ÿš ๐Ÿ› ๐Ÿœ ๐Ÿ ๐Ÿž ๐ŸŸ ๐Ÿ  ๐Ÿก ๐Ÿข ๐Ÿฃ ๐Ÿค ๐Ÿฅ ๐Ÿฆ ๐Ÿง ๐Ÿจ ๐Ÿฉ 
@florido
florido / ffmpeg-commands
Last active March 12, 2017 06:38 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list thatโ€™s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]โ€ฆ {[outfile options] outfile}โ€ฆ
Getting help:
-h โ€” print basic options
-h long โ€” print more options
-h full โ€” print all options (including all format and codec specific options, very long)

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@florido
florido / dnsmasq OS X.md
Created March 14, 2017 00:49 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.

Requirements

Install