Skip to content

Instantly share code, notes, and snippets.

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
@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
#!/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
<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>
@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
Postgres
-18 years old
-Learned a lot of tricks via Oleg and Teodor
-Still has a clean code base (should probably suck after 18 years)
Forecast:
12 crazy features you might have missed
demo
wrap up
@gthomas
gthomas / data.json
Last active December 11, 2015 22:08
[
["1359482582.265136", 1000],
["1359483116.188611", 1100],
["1359483123.188611", 1150],
["1359483124.188611", 1200],
["1359483125.188611", 1300]
]
@gthomas
gthomas / RTConfNotes.txt
Created October 25, 2012 20:05
RealTimeConf notes
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
disqus used
thoonk, gevent and nginx_http_push to make disqus more "realtime"
https://github.com/NorthIsUp/disqus-realtime-presentation
https://ep2012.europython.eu/conference/talks/making-disqus-realtime
-----
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:wieden-kennedy/coke-superbowl-2013-admin.git
[branch "master"]
remote = origin