Skip to content

Instantly share code, notes, and snippets.

@anhtran
anhtran / convert_to_webp.py
Created June 13, 2019 05:09
Building, convert images to WebP in a single command
import glob
import os
import click
from webptools import webplib as webp
@click.group()
def cli():
pass
@anhtran
anhtran / utils.py
Last active June 1, 2019 10:00
An util for Django to download image from url (support WebP)
import os
import re
import secrets
from io import BytesIO
from pprint import pprint
from urllib.parse import urlsplit
import arrow
import requests
import user_agents
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"