NOTE: 534 stars, 106 forks. I love you all. Please contribute tips and edits back to this cheat sheet -- email's will.sargent@gmail.com and you can treat gists like git repositories and send git diffs.
# A simple python script to extract names, and emails from | |
# a certain online directory | |
import os, json | |
from bs4 import BeautifulSoup | |
#get a list of the files in the current directory | |
inputfiles = os.listdir(os.getcwd()) | |
def postproc(inputfiles): |
#Mac OS X
/* --------------------------------------------------------------------------- | |
Boilerplate CSS Media Queries | |
Encoding: UTF-8 | |
Author: PaulUnd (http://www.paulund.co.uk/boilerplate-css-media-queries) | |
--------------------------------------------------------------------------- */ | |
/* =Smartphones (portrait and landscape) | |
--------------------------------------------------------------------------- */ | |
@media only screen |
sudo apt-get update | |
# General development essentials | |
sudo apt-get install -y build-essential ssh git gitk | |
# Databases: You may not need all of these; | |
# none are explicit dependencies of other items in this script. | |
# SQLite and MySQL are pretty generally used for web development, | |
# and ODBC is just something we use at work. | |
sudo apt-get install -y sqlite |
# A guide to prevent pain and suffering while upgrading to OS X Mavericks | |
# This will vary greatly depending on system set up, so read the instructions carefully | |
# Back up Virtulenvs | |
#################### | |
# Very important! | |
# For each virtualenv you have, run "pip freeze > requirements.txt" while in the activated virtualenv | |
# in order to prevent loss of dependencies during the upgrade. |
I haven't set up an install guide for the latest ubuntu release, largely because the last set of instructions worked pretty closely with the latest and greatest Ubuntu, 12.04 Precise Pangolin, however when installing today, I found that there were enough differences in the way that I configure my setup to justify an update, so here it goes. Yes, I'm late to the party, but a quick google search didn't find anything that I felt was as complete for my requirements as my previous install guides, so here I go.
As always with my install guides, I have included here is just about everything you'll need (and then some) to get started with ruby on rails development with Ubuntu 12.04 as a platform. These are my settings and preferences, and this is certainly not the only way of doing things, so keep that in mind.
sudo apt-get update && sudo apt-get upgrade
#!/bin/bash | |
__pwdln() { | |
pwdmod="${PWD}/" | |
itr=0 | |
until [[ -z "$pwdmod" ]];do | |
itr=$(($itr+1)) | |
pwdmod="${pwdmod#*/}" | |
done |
=Rails 3.0.pre on App Engine | |
You can Rails 3 on App Engine, but it won't be especially useful until bundler 10. You should try these instead: | |
- Rails 2.3.5: DataMapper version: http://gist.github.com/268192 | |
- Rails 2.3.5: TinyDS version: http://gist.github.com/269075 | |
==Install the Development Environment | |
The gems for the development environment include a pre-release appengine-tools gem that provides a pre-release version of jruby-rack. |