Skip to content

Instantly share code, notes, and snippets.

View originalhat's full-sized avatar
👾
L I M I T L E S S

Devin Brown originalhat

👾
L I M I T L E S S
View GitHub Profile
@originalhat
originalhat / gist:e834dc7764690ce38a07
Last active August 29, 2015 14:10
Large Monitor Support for MBP

Large Monitor Support MBP

e.g. Dell 3011, 3014, etc.

  1. close lid so that you see the external monitor screen only
  2. run script
  3. copy generated output to /System/Library/Displays/Overrides/
  4. restart

AngularJS

Scopes

Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events.

Include Exclude
FRUIT All fresh fruit Citrus fruits
Include Exclude
Almost all fresh fruit Almost all fresh fruit Citrus fruits (orange, grapefruit, lemon, lime, etc)
INSERT INTO admin_auxes (aux) VALUES ('Chuck Norris'' tears cure cancer. Too bad he has never cried');
INSERT INTO admin_auxes (aux) VALUES ('Chuck Norris counted to infinity - twice');
INSERT INTO admin_auxes (aux) VALUES ('Chuck Norris does not hunt because the word hunting infers the probability of failure. Chuck Norris goes killing');
INSERT INTO admin_auxes (aux) VALUES ('If you can see Chuck Norris, he can see you. If you can''t see Chuck Norris you may be only seconds away from death');
INSERT INTO admin_auxes (aux) VALUES ('When the Boogeyman goes to sleep every night he checks his closet for Chuck Norris');
INSERT INTO admin_auxes (aux) VALUES ('Chuck Norris built a time machine and went back in time to stop the JFK assassination. As Oswald shot, Chuck Norris met all three bullets with his beard, deflecting them. JFK''s head exploded out of sheer amazement');
INSERT INTO admin_auxes (aux) VALUES ('Chuck Norris has already been to Mars; that''s why there are no signs of life there');
INSERT INTO admin

Local Git Clone

Clone a git repository from one local machine to another.

$ git clone git+ssh://user@0.0.0.0/~/source/location/repo

@originalhat
originalhat / 14.md
Last active August 29, 2015 13:57
Fourteen fourteeners in 2014.

14ers of 2014

Sangre de Cristo Range

Blanca Peak

  • Route:
  • RT:
  • EG:
  • Elevation: 14,345 FT

CSRF

c.f. guides.rubyonrails.org/security.html#csrf

  1. Update the following code with your targeted host + route + user (attacker) + params + etc.
  2. Sigin as an admin on the specified host (victim).
  3. Open the following webpage (locally).
@originalhat
originalhat / gist:9211390
Created February 25, 2014 15:42
psql: FATAL: role "postgres" does not exist

Problem

psql: FATAL:  role "postgres" does not exist

Solution

createdb