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
| // only outputs if console available and does each argument on its own line | |
| function log() { | |
| if (window && window.console && window.console.log) { | |
| var i, len; | |
| for (i=0, len=arguments.length; i<len; i++) { | |
| console.log(arguments[i]); | |
| } | |
| } | |
| } |
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
| #!/usr/bin/env ruby | |
| puts "looking for the gems to upgrade..." | |
| gem_info = Struct.new(:name, :version) | |
| to_reinstall = [] | |
| Dir.glob('/Library/Ruby/Gems/**/*.bundle').map do |path| | |
| path =~ /.*1.8\/gems\/(.*)-(.*?)\/.*/ | |
| name, version = $1, $2 | |
| bundle_info = `file path` | |
| to_reinstall << gem_info.new(name, version) unless bundle_info =~ /bundle x86_64/ | |
| 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
| # Delete unnecessary files | |
| run "rm public/index.html" | |
| run "rm public/favicon.ico" | |
| run "rm public/images/rails.png" | |
| run "rm public/javascripts/prototype.js" | |
| run "rm public/javascripts/effects.js" | |
| run "rm public/javascripts/dragdrop.js" | |
| run "rm public/javascripts/controls.js" | |
| # Copy database.yml for distribution use |
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
| class Comment | |
| include MongoMapper::EmbeddedDocument | |
| include Gravatarable | |
| key :name, String | |
| key :email, String | |
| key :url, String | |
| key :body, String | |
| key :created_at, Time | |
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
| /* MrCrankyPants - block users and images from Propane! | |
| * to use, place it in ~/Library/Application Support/Propane/unsupported/caveatPatchor.js (yes, it must be that file name) | |
| * | |
| * Created by ripping code off of https://gist.github.com/825404 and https://gist.github.com/310162 | |
| */ | |
| Campfire.MrCrankyPants = Class.create({ | |
| options: { | |
| blockedUsers: ['Abe L.', 'George W.'], | |
| usersDisallowedToPostImages: ['Theodore R.'], |
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
| #!/bin/bash | |
| # Compile and install/update (or install via Apt) FFmpeg Codecs | |
| # Compile and install/update FFmpeg suite | |
| # Compile with hardware acceleration | |
| # Modified from https://retroresolution.com/compiling-ffmpeg-from-source-code-all-in-one-script/ | |
| echo "Begining Installation of FFmpeg Suite" | |
| #Update APT Repository | |
| echo "Updating the APT repository information" |
OlderNewer