This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
file: proxy64.php | |
function: convert an image to a base64 string | |
author: Roel van der Ven | |
date: 16.06.2011 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entities": { | |
"user_mentions": [], | |
"urls": [], | |
"hashtags": [{ | |
"text": "omghackday", | |
"indices": [0, 11] | |
}] | |
}, | |
"text": "#omghackday yeah!", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] Importing base box 'bentobox'... | |
[default] Matching MAC address for NAT networking... | |
[default] The guest additions on this VM do not match the install version of | |
VirtualBox! This may cause things such as forwarded ports, shared | |
folders, and more to not work properly. If any of those things fail on | |
this machine, please update the guest additions and repackage the | |
box. | |
Guest Additions Version: 4.0.4 | |
VirtualBox Version: 4.0.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Roel@Eli:~/Sites/soundcloud [git:master] $ ioreg -l -p IODeviceTree | grep firmware-abi | |
| | "firmware-abi" = <"EFI64"> | |
Roel@Eli:~/Sites/soundcloud [git:master] $ sudo systemsetup -setkernelbootarchitecture x86_64 | |
Password: | |
setting kernel architecture to: x86_64 | |
changes to kernel architecture have been saved. | |
===================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Use this file as your .rvmrc in your SoundCloud directory | |
# | |
# $ vagrant up | |
# $ vagrant ssh | |
## (You're now inside the VM) | |
# $ sudo su soundcloud | |
# $ cd shared_folder | |
# | |
# The VM will now run bundle install, bootstrap your db + populate it, and start the app. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"profile": { | |
"name": "Marco", | |
"surname": "Hamersma", | |
"date-of-birth": "617950800", | |
"age": 21, | |
"hometown": "Oud-Beijerland", | |
"location": "Berlin, Germany", | |
"tagline": "Dutch. 21. Student Communication & Multimedia Design, Interaction Designer & Creative developer, likes making awesome stuff & playing guitar. Intern @SoundCloud", | |
"work": [{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def app_link_for_user(app) | |
if app.public? | |
app_path(app) | |
elsif app.user == current_user | |
self_edit_app_path(app) | |
else | |
app.url | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Roelven | |
email = [email protected] | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
interactive = auto | |
ui = auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
interactive = auto | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enqueue Javascripts | |
// Replace jQuery 1.4.4 with 1.5 on the frontend | |
// as seen on http://codex.wordpress.org/Function_Reference/wp_enqueue_script | |
// Do not do this on the wp-admin, jQuery 1.5 might break functionality at this point (March 2011) | |
function rv_enque_scripts() { | |
// get theme to use that for versioning and cache busting | |
$theme = get_theme(get_current_theme()); | |
if (!is_admin()) { | |
// remove jQuery 1.4.4 | |
wp_deregister_script('jquery'); |