Skip to content

Instantly share code, notes, and snippets.

View zzzbra's full-sized avatar
👺

Zach Brady zzzbra

👺
View GitHub Profile
@iosifnicolae2
iosifnicolae2 / Readme.md
Last active March 12, 2024 19:42
Youtube is Boring

How To Make Youtube Less Boring

Tutorial: https://www.youtube.com/watch?v=hIqMrPTeGTc
Paste the below code in your browser console (F12 > Console):

(()=>{
    markAllVideosAsNotBeingInteresting({
        iterations: 1
    });
})();
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active May 28, 2024 21:32
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@kopasetik
kopasetik / vernacular_shibboleths.md
Last active April 9, 2016 19:48
Vernacular Spectacular

Mr Walé’s Inclusion Fusion Vernacular Spectacular!
or Decoupling from (Bad) Shibboleths in the Developer Community
Link to Slides

A problem with developers is that we often say and do things that are esoteric and treat them as criteria for being a “developer.” This conflicts with the fact that a developer can come any background.

Today I’m going to talk about shibboleths. What’s a shibboleth? A shibboleth is a proverbial line in the sand that determines who belongs and who is an outsider. Many are in programming. Text editors, paradigms, languages, type systems, are all topics of… um…, “vigorous conversation.”

If you want to think about it in terms of middle school Venn Diagrams, the developer community does not do enough to encourage seeing different developer groups as unions instead of as intersections. This can have a lot of different manifestations. Say you're working on a pr

@trivett
trivett / learning_on_your_own.md
Last active January 30, 2016 21:21
Learning on your own

#Some useful resources for learning on your own.

Hello all! It was truly an honor introducing you all to web programming and helping you grow as programmers. Personally, this was an incredible experience for me, and I hope that you are happy with your experience.

But this is only the beginning! Programming is a never-ending process of learning

  • Ruby docs READ THE DOCS!
  • Rails Guides Best docs for Rails topics.
  • GA alumni perks The best perk in my opinion is the 50% off on O'Reilly books. O'Reilly has an incredible selection of up-to-date books on all sorts of programming/IT topics.
  • Dash for Mac Good mac app for quickly searching documentation.
@paulirish
paulirish / what-forces-layout.md
Last active May 31, 2024 22:37
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active May 30, 2024 06:59
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@robinsloan
robinsloan / langoliers.rb
Last active April 7, 2024 13:22
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: