Skip to content

Instantly share code, notes, and snippets.

View tristan-mastrodicasa's full-sized avatar
🎯
Focusing

Tristan tristan-mastrodicasa

🎯
Focusing
  • Toronto, Canada
View GitHub Profile
@paul121
paul121 / farmos_aggregator_farm_info_migration.py
Created June 3, 2020 15:21
Alembic migration that moves data from one column to another table.
"""Move farm info to separate table.
Revision ID: cbc5e5092520
Revises: d2422b5a6859
Create Date: 2020-06-02 23:36:50.018420
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git