Skip to content

Instantly share code, notes, and snippets.

View simonv3's full-sized avatar

Psi simonv3

  • Wherever there is danger
View GitHub Profile
@simonv3
simonv3 / podsync.md
Last active July 11, 2021 18:51
Podsync & Pocket Casts

Say you want to listen to youtube videos as a podcast but you're too stubborn to use the AWS instant install thing on the podsync home page.

Before you start: if you're using Pocket Casts you'll want to make sure this all works before adding the podcast. Pocket Casts will cache your podcasts and then if you goofed it will always be referencing the non-working podcast. You can fix that by changing the subdomain you use. But it's just easier if you get it right from the start. You can test that it works by using something like Apple Podcasts, which will not cache and will just work if it works.

I'm kind of expecting that you're comfortable (though not necessarily experienced in) logging into your router, accessing the terminal and doing git commands, managing domain names, and that docker works on your system.

  1. Use a Dynamic DNS service to set up

Keybase proof

I hereby claim:

  • I am simonv3 on github.
  • I am simonv3 (https://keybase.io/simonv3) on keybase.
  • I have a public key ASCzLNsMVvFlCerFImQppB55FonfAgiLdJ_yyT32OFMOewo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simonv3
simonv3 / i-learned.md
Last active March 10, 2016 20:48
what i learned

I've been keeping track of "learned" nuggets of information - wise words if you will - that I've learned working for a variety of clients on a couple of projects.

Project Management

  1. The best way to understand the scope of a client project is to have your client use the final product. Everything you do beforehand is an attempt to figure this out before the deadline.
  2. Even if you have a testing environment set up for your client to play around with, they will do their testing on the live site.
  3. Your client won't test the project until it becomes relevant to them. See 2.
  4. You need a team.
  5. It's really hard to do full stack design and development on your own. See 1 - you need 4.
  6. Work on projects in your timezone.
  7. Get a work e-mail address. See 6.
What's your favorite logo option? What's your second favorite logo option? Do you have any other thoughts, concerns, etc?
6b 21a
4 5
7 27
5 4 3 is good too. 7 & 8 have weird associations for me (jimmy neutron and the java mascot or KKK hood or something)
7 8
5 27 I think the vote should be heavily weighted towards choosing a monochrome logo (that is a single color logo like: 5, 7, 27, etc...) as a base or consider assuming that if the popular vote is a multi-colored variation that the base icon will / can also be used as our "icon" as numerous colored and ornameneted versions can we built up a solid base
7 4
7 5
16 11

Keybase proof

I hereby claim:

  • I am simonv3 on github.
  • I am simonv3 (https://keybase.io/simonv3) on keybase.
  • I have a public key whose fingerprint is 54A2 918F 15C8 ED48 83AB 3094 C8DC A2CE 0BA1 F1EB

To claim this, I am signing this object:

For some reason it's always a struggle to get a flexible Django install running on Webfaction. This ended up working.

Create a mod_wsgi application - latest version of mod_wsgi and Python probably.

Go into the application and clone this repo:

git clone git@github.com:<gh_username>/<gh_project_name>.git <app_name>
@simonv3
simonv3 / Move Mailing List
Last active August 29, 2015 14:18
Various OpenFarm Shorts
# Using Gibbon, go through the mailing list and update any old users.
gb = Gibbon::API.new
list = gb.lists.list({ filters: { list_name: 'Subscribers' } })
list_id = list['data'][0]['id']
# don't need the below two things because Mailchimp actually doesn't allow resubscription.
# unsubscribed = gb.lists.members({:id => list_id, :status => "unsubscribed"})
# unsubscribed_emails = unsubscribed['data'].map{ |us| us.email }
new_users = User.all.reject{|u| u.mailing_list == false}
new_emails = new_users.map{|u| {email: {email: u.email}, merge_vars: {DNAME: u.display_name}}}
@simonv3
simonv3 / goodreads-bookmarklet.html
Last active September 30, 2016 17:13
Goodreads Bookmarklet. Based on the bookmarklet provided by goodreads, but actually working.
<a href="javascript: var array = document.URL.match(/amazon\.(.*?)\/.*?\/((\d|[A-Z]){10})/); if (array == null) {alert('Sorry, this doesn\'t appear to be an Amazon book page.'); } else {var x = window.open('https://www.goodreads.com/review/isbn/'+ array[2] + '?tld=' + array[1] + '&from=bm', 'add_review'); x.focus(); }"class="mediumText">Add to Goodreads</a>
mkdir -p ~/downloads
cd ~/downloads
# QT
git clone git://gitorious.org/+wkhtml2pdf/qt/wkhtmltopdf-qt.git wkhtmltopdf-qt
cd wkhtmltopdf-qt
git checkout staging
QTDIR=. ./bin/syncqt
./configure -release -static -fast -exceptions -no-accessibility -no-stl -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-qt3support -xmlpatterns -no-phonon -no-phonon-backend -webkit -no-scripttools -no-mmx -no-3dnow -no-sse -no-sse2 -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -graphicssystem raster -opensource -nomake tools -nomake examples -nomake demos -nomake docs -nomake translations -no-opengl -no-dbus -no-multimedia -openssl -no-declarative -largefile -rpath -no-nis -no-cups -no-iconv -no-pch -no-gtkstyle -no-nas-sound -no-sm -no-xshape -no-xinerama -no-xcursor -no-xfixes -no-xrandr -no-mitshm -no-xinput -no-xkb -no-glib -no-openvg -no-xsync -no-audio-backend -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon -confirm-license -prefix "../wkqt"