Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@markstachowski
markstachowski / readme.markdown
Created November 12, 2017 22:15 — forked from paulherron/readme.markdown
Creating a 'Share on Google+' URL with this Dubious Clusterhack

#Creating a 'Share on Google+' URL with this Dubious Clusterhack

Disclaimer: This is a ridiculous set of hacks. I had fun messing about with this and wanted to share it, but I wouldn't recommend using it for anything important. It may stop working at any time.
tl;dr: Google doesn't support sharing arbitrary URLs via a simple share link, but you can work around it by doing a redirect via Google, like so: https://plus.google.com/share?url=http%3A%2F%2Fgoogle.com%2Fsearch%3FbtnI%3D1%26q%3Dshowstudio%26sourceid%3Dnavclient

Most social sites let you share a link by visiting a special URL, for example:

Twitter. http://twitter.com/home?status=http://showstudio.com
Facebook. http://www.facebook.com/sharer.php?u=http://showstudio.com

@markstachowski
markstachowski / Web Components Resources.md
Created November 12, 2017 22:16 — forked from ebidel/Web Components Resources.md
List of resources related to Web Components

1. Select a web site.

use wget to mirror www.mit.edu

Imgur

the directory hierarchy of the site.

Google Query String Parameters

Google Search

Query:

http://...

| URL Parameter | Accepted Values | Description |

@markstachowski
markstachowski / instructions.md
Created February 11, 2018 07:54 — forked from tpai/instructions.md
use both Tor and Privoxy with Mac OSX

1. install

brew install tor
brew install privoxy

2. copy and modify config file

@markstachowski
markstachowski / ffmpeg-install.sh
Created March 7, 2018 02:36 — forked from midwire/ffmpeg-install.sh
Install FFMPEG on OS X with HomeBrew and all libs and support
brew install ffmpeg \
--with-dcadec \
--with-faac \
--with-fdk-aac \
--with-ffplay \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-libass \
--with-libbluray \

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@markstachowski
markstachowski / mac.csv
Created March 8, 2018 21:03
reddit-top-2.5-million/data/
We can't make this file beautiful and searchable because it's too large.
created_utc,score,domain,id,title,ups,downs,num_comments,permalink,selftext,link_flair_text,over_18,thumbnail,subreddit_id,edited,link_flair_css_class,author_flair_css_class,is_self,name,url,distinguished
1360172163.0,477,imgur.com,180brh,"After using Windows my entire life, here's my review of Windows 8",620,143,194,http://www.reddit.com/r/mac/comments/180brh/after_using_windows_my_entire_life_heres_my/,,,False,http://c.thumbs.redditmedia.com/532fMbIf8cyJfSzJ.jpg,t5_2qh4u,False,,,False,t3_180brh,http://imgur.com/xeEkJII,
1363441493.0,449,i.imgur.com,1aepgm,Good Guy Dropbox - just noticed this today while installing Dropbox 2.0,504,55,27,http://www.reddit.com/r/mac/comments/1aepgm/good_guy_dropbox_just_noticed_this_today_while/,,,False,http://d.thumbs.redditmedia.com/zWyyBXlIZK_QE8qu.jpg,t5_2qh4u,False,,,False,t3_1aepgm,http://i.imgur.com/QE2FBGS.jpg,
1368368452.0,418,imgur.com,1e6mbi,Thought this accurately describes the kind of people who hate Macs,623,205,170,http://www.reddit.com/r/mac/comments/1e6mbi/tho
@markstachowski
markstachowski / osx-setup.sh
Created March 10, 2018 10:44 — forked from somebox/osx-setup.sh
Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc). Focused on Ruby/Rails development, includes rvm, xquartz, editor fonts, sublime text, and many tools.
#!/bin/bash
# A script to set up a new mac. Uses bash, homebrew, etc.
# Focused for ruby/rails development. Includes many utilities and apps:
# - homebrew, rvm, node
# - quicklook plugins, terminal fonts
# - browsers: chrome, firefox
# - dev: iterm2, sublime text, postgres, chrome devtools, etc.
# - team: slack, dropbox, google drive, skype, etc
@markstachowski
markstachowski / ricardo-learning.md
Created March 10, 2018 10:45 — forked from somebox/ricardo-learning.md
Learning Resources