Skip to content

Instantly share code, notes, and snippets.

@gthomas
gthomas / PGTBYHF
Created March 1, 2013 18:12
Postgres: The Bits You Haven't Found notes from Waza 2013
Postgres: The Bits you haven't found
====================================
Postgres has a ton of really great features that you _probably_ don't know about yet.
Peter van Hardenberg works on Heroku Postgres and has used a lot of them.
You can get the slides here, along with links to further reading on each feature:
http://postgres-bits.herokuapp.com/
Among the more mindblowing features were:
* LISTEN/NOTIFY
<html>
<body>
<div style="width: 100%; position: relative;">
<div style="width: 300px; height: 100px; position: relative; margin-left: auto; margin-right: auto; background-color: blue;"></div>
</div>
</body>
</html>
<html>
<body>
<div style="width: 100%; position: relative;">
<div style="width: 300px; height: 100px; position: relative; margin-left: auto; margin-right: auto; background-color: blue;"></div>
</div>
</body>
</html>
#!/bin/sh
# IMPORTANT: Run this script as sudo or else it won't work
# Original script: http://my.safaribooksonline.com/book/programming/java/9781449309558/hacking-elastic-beanstalk/hackingelectric#X2ludGVybmFsX0ZsYXNoUmVhZGVyP3htbGlkPTk3ODE0NDkzMDk1NTgvSV9zZWN0MTRfZDFlMjAyNQ==
echo 'Installing nginx...sit tight'
yum -y install nginx
echo 'Fixing nginx configuration'
sed -i 's/ 1;/ 4;/g' /etc/nginx/nginx.conf
rm /etc/nginx/conf.d/default.conf
@gthomas
gthomas / fun
Last active December 25, 2015 15:39 — forked from tholman/fun
cd ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets && echo aHRtbCxib2R5LGgxLGgyLGgzLGg0LGg1LHAsc3BhbixkaXYgeyAgZm9udC1mYW1pbHk6ICdDb21pYyBTYW5zIE1TJyAhaW1wb3J0YW50O30= | base64 --decode >> Custom.css
1. Connect the laptop to the wi-fi hotspot and verify it's getting a decent connection
2. Connect the phone to the laptop over USB, connect to Cozmo and start SDK mode.
3. Open iTerm2 and type these commands
cd cozmo-finders-keepers
./start.sh
4. Open VLC and connect to the udp stream (should be in the playlist already)
5. Maximize the window twice and it will fit the size of the feed
6. Open OBS -- it should already be configured with the video stream
7. Get the stream key from whomever set up the Facebook live stream
8. Click "start streaming" in OBS