Skip to content

Instantly share code, notes, and snippets.

View akampjes's full-sized avatar

Andrew Kampjes akampjes

View GitHub Profile
@sagarrakshe
sagarrakshe / tech-lead.txt
Created July 12, 2017 09:48
Books on technical leadership
http://www.amazon.com/Leading-Geeks-Manage-Deliver-Technology/dp/0787961485
http://www.amazon.com/The-Geek-Leaders-Handbook-Backgrounds/dp/0971246823
http://www.amazon.com/Technical-Minds-Leading-Getting-Technically-Minded/dp/145158315X
http://www.amazon.com/Frustration-Free-Technical-Management-Techniques/dp/1609100352
http://www.amazon.com/Managing-Humans-Humorous-Software-Engineering/dp/159059844X
http://www.amazon.com/Becoming-Technical-Leader-Problem-Solving-Approach/dp/0932633021
http://www.amazon.fr/Talking-Tech-Leads-Novices-Practitioners/dp/150581748X
https://www.amazon.com/Chief-Technology-Officer-Responsibilities-Technical/dp/0982304048
https://www.amazon.com/CTOs-at-Work-Scott-Donaldson/dp/1430235934
@jeremykendall
jeremykendall / postgres-dump-restore.markdown
Last active April 27, 2021 20:27
PostgreSQL: dump and restore (to db with different name and roles even)

Postgres Export and Import

Export

pg_dump -U [superuser] -Fc [dbname] > db.dump

Import

@pnc
pnc / observer.md
Last active September 9, 2023 23:32
Using Erlang observer/appmon remotely

Using OTP's observer (appmon replacement) remotely

$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769

Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:

$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
@profh
profh / decode_session_cookie.rb
Last active June 23, 2021 13:25
A simple script to decode Rails 4 session cookies
@idleberg
idleberg / fish_shell.md
Last active March 27, 2024 22:37
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish
@dideler
dideler / 1-affordances-and-signifiers.md
Last active March 18, 2024 07:37
The Design of Everyday Things (First offering on Udacity)https://www.udacity.com/course/design101

Lesson 1: Affordances and Signifiers

Don't solve the problem given (as it's stated), figure out what the real underlying problem is.

To understand design, you have to be a good observer and question things. Travel with a camera and take photos. Don't use flash, use natural lighting when possible.

Affordances are the relationships (read: possible actions) between an object and an entity (most often a person). For example, a chair affords sitting for a human. Affordances enable interactions between entities and objects (similarly, anti-affordances prevent or reduce interactions). The presence of an affordance is determined by the properties of the object and of the abilities of the entity who's interacting with the object.

Signifiers are signals, communication devices. These signs tell you about the possible actions; what to do, and where to do it. Signifiers are often visible, but invisible (secret) signifiers do exist, like clicking a YT video to play

@Najaf
Najaf / mechanize-cheat-sheet.rb
Last active October 15, 2019 11:17
Mechanize Cheat Sheet, take a look at the real documentation here: http://mechanize.rubyforge.org/
# Initialize Mechanize Agent
agent = Mechanize.new
# Visit a web page
agent.get 'http://localhost:3000/'
# get the url of the current page
agent.page.uri #=> http://localhost:3000
# agent remembers the scheme + host, so no need to supply it when navigating somewhere else