Skip to content

Instantly share code, notes, and snippets.

View cgoodale's full-sized avatar

Cameron Goodale cgoodale

View GitHub Profile
@peteretelej
peteretelej / Add-Old-Repo-Github.md
Last active January 28, 2026 23:01
Add old code project to github with correct timestamps

How to add an Old Project to GitHub While Retaining Timestamps for old changes

This guide will help you create a new Git repository from an existing project while preserving the original file modification timestamps. This way, your commit history will reflect the chronological changes made to the project.

Follow these steps: (needs bash & git)

Steps

1. Initialize the Repository

@leostera
leostera / gist:3535568
Created August 30, 2012 17:58
Selenium WebDriver Python Bindings and Facebook Login
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
usr = ""
pwd = ""
driver = webdriver.Firefox()
# or you can use Chrome(executable_path="/usr/bin/chromedriver")
driver.get("http://www.facebook.org")
assert "Facebook" in driver.title