Skip to content

Instantly share code, notes, and snippets.

View ericdagenais's full-sized avatar

Eric Dagenais ericdagenais

View GitHub Profile
username: vagrant
password: vagrant
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@interface NSManagedObject (Serialization)
- (NSDictionary*) toDictionary;
- (void) populateFromDictionary:(NSDictionary*)dict;
+ (NSManagedObject*) createManagedObjectFromDictionary:(NSDictionary*)dict
inContext:(NSManagedObjectContext*)context;
@end
Index: libavformat/mov.c
===================================================================
--- libavformat/mov.c (revision 17434)
+++ libavformat/mov.c (working copy)
@@ -104,6 +104,11 @@
unsigned flags;
} MOVTrackExt;
+typedef struct {
+ unsigned int track_duration;
@ericdagenais
ericdagenais / pgadmin2datagrip.rb
Last active January 26, 2022 21:00
Windows: Import PgAdmin 3 Connections to Navicat and DataGrip
require 'win32/registry'
passwords = Hash.new
file = nil
begin
file = File.new("#{ENV['APPDATA']}\\postgresql\\pgpass.conf", "r")
while (line = file.gets)
c = line.split(':')
key = "#{c[0]}:#{c[1]}:#{c[2]}:#{c[3]}"
passwords[key] = c[4].strip if c.length > 4