Skip to content

Instantly share code, notes, and snippets.

@tbuser
tbuser / slic3r_makerbot_fix.pl
Created March 3, 2013 03:29
Slic3r 0.9.8 Post Processing Script to make it work with MakerWare 2.0 and Firmware 7 (only tested on a Rep1)
#!/usr/bin/perl -i
use strict;
use warnings;
# Slic3r 0.9.8 Post Processing Script to make it work with MakerWare 2.0 and Firmware 7 (only tested on a Rep1)
# Dualstrusion works
# Support on secondary extruder works
# Save this file somewhere, then under Print Settings, Output Options, Post-processing scripts, enter path to this file
# Under Printer Settings, General, set G-code flavor to MakerBot, extruders 2, bedsize 225 x 145, etc...
latest version now at: http://github.com/tbuser/openscad-bitmap
module make_atari_bitmap(char, block_size, height, include_base) {
if (char == "0") {
make_bitmap([
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,1,1,1,0,
0,1,1,1,1,1,1,0,
function foo() {
alert('bar');
}
namespace :db do
task :pull do
run "cd #{current_release} && RAILS_ENV=#{rails_env} rake db:data:dump"
download "#{current_release}/db/data.yml", "db/data.yml"
`rake db:reset db:data:load`
end
end
@tbuser
tbuser / Basecamp-style dynamic subdomains
Created January 7, 2009 20:46 — forked from anonymous/gist:44410
Basecamp-style dynamic subdomains
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
#
# <VirtualHost *:80>
# ServerName *.example.com
# </VirtualHost>
#
# 3) Set the current account from the subdomain
class ApplicationController < ActionController::Base