Skip to content

Instantly share code, notes, and snippets.

View carmelyne's full-sized avatar
🏡
Working from home

Carmelyne Thompson carmelyne

🏡
Working from home
View GitHub Profile
@carmelyne
carmelyne / updatechromiumnightly
Created October 27, 2011 10:53 — forked from craSH/updatechromiumnightly
Simple script to automatically download and install the latest available Chromium nightly build for Mac OSX
#!/bin/bash
#
# Simple script to update OSX Chromium to the latest nightly build.
# Will not download if you already have the latest (call with --force
# to override this check)
#
# Copyleft 2010 Ian Gallagher <crash@neg9.org>
#
LATEST=$(curl -s "http://build.chromium.org/f/chromium/snapshots/Mac/LATEST")
@carmelyne
carmelyne / gist:1209208
Created September 11, 2011 05:22
vimrc
set nocompatible
runtime! autoload/pathogen.vim
if exists('g:loaded_pathogen')
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
endif
filetype off
syntax on
-- MiniFriends by Hedyn Brand... Modified by XenaSkull
-- MiniFriends by Hedyn Brand... Modified by Dida for 3.3.5 API Changes (8-25-2010) MiniFriends.lua
BINDING_HEADER_MINIFRIENDS = "MiniFriends"
MINIFRIENDS_VERSION = "1.01"
MiniFriendsCount = 0
MFFlags = {}
MFF_Locked = 1 --Make window unmovable
/* note: space it; dont tab it pls */
body {
text-align:center;
margin-top: 10px;
background: #333333;
font: 76% Verdana, Arial, Helvetica, sans-serif;
min-width: 1000px;
}
Loading development environment (Rails 2.3.2)
>> @now = Time.zone.now
=> Thu, 07 May 2009 09:24:13 PDT -07:00
>> @now.strftime("%m/%d/%Y")
=> "05/07/2009"
>> @now.strftime("%Y/%m/%d")
=> "2009/05/07"
<!-- place in <head> -->
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAZFJWpftMwgnCCqt4vPRS7BR1HFqmY0hOxpFWSoKSv_ILnU21AhRd8Ow1u23lsYZWN5Fo-iaQ72-icQ" type="text/javascript"></script>
<!-- place in <head> or inside <body> -->
<script language="Javascript" type="text/javascript">
//<![CDATA[
function OnLoad() {
// create a search control
==================
Fatal Error
If your blog does not display, please contact the owner of this site.
If you are the owner of this site please check that MySQL is running properly
and all tables are error free.
Database Tables Missing.
Database tables are missing. This means that MySQL is either not running,
# If cached file exists, serve it and stop processing
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ /cache/%{HTTP_HOST}$1 [L]
# other redirection (imgs, js, css, ...)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !.*/mephisto/.*
RewriteCond %{REQUEST_URI} !.*html
RewriteCond %{REQUEST_URI} !^/cache
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/$1 -f
# more for routes
map.forgot_password '/forgot_password', :controller => 'users', :action => 'forgot_password'
map.reset_password '/reset_password', :controller => 'users', :action => 'reset_password'
# app/models/user_observer.rb
class UserObserver < ActiveRecord::Observer
def after_create(user)
UserNotifier.deliver_signup_notification(user)
end
Thank you!
<%= @user.login %>, your account has been activated.
You may now start using the member only features.
<%= @url %>