If you want to use a different ssh key file to log into github, follow these instructions:
Put this in your ~/.ssh/config file:
Host github.com
IdentityFile ~/.ssh/id_rsa.github
IdentitiesOnly yes # see NOTES below
import os | |
import shutil | |
def move_images(source_directory, target_directory): | |
# Create the target directory if it doesn't exist | |
if not os.path.exists(target_directory): | |
os.makedirs(target_directory) | |
for root, _, files in os.walk(source_directory): | |
for file in files: |
import os | |
import argparse | |
def find_thumbnails(directory): | |
thumbnails = [] | |
for root, _, files in os.walk(directory): | |
for file in files: | |
if file.endswith(".thumbnail.png") or file.endswith(".thumbnail.jpg"): | |
original_file = file.replace(".thumbnail", "") | |
if original_file in files: |
If you want to use a different ssh key file to log into github, follow these instructions:
Put this in your ~/.ssh/config file:
Host github.com
IdentityFile ~/.ssh/id_rsa.github
IdentitiesOnly yes # see NOTES below
I hereby claim:
To claim this, I am signing this object:
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)