- Website pre & post launch checklist
- Oh Shit Git - A list of Git commands depending on the need.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this import: | |
from sqlalchemy.sql import text | |
def upgrade(): | |
# ... | |
conn = op.get_bind() | |
conn.execute(text('UPDATE ...')) | |
# ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ssl | |
import socket | |
import asyncio | |
import logging | |
import collections | |
import time | |
from asyncio import sslproto | |
from email._header_value_parser import get_addr_spec, get_angle_addr | |
from email.errors import HeaderParseError |
This is the documentation of our API endpoint at ImprovMX.com. This lets you list, create, edit and remove domain and email aliases that you can forward to programatically.
For more information, visit ImprovMX.com
The base url's ImprovMX api can be accessed at
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
import zipfile, urllib2, argparse, os | |
try: | |
from BytesIO import BytesIO | |
except ImportError: | |
from io import BytesIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage: | |
// pdfshift({'source': 'https://en.wikipedia.org/wiki/PDF', 'use_print': true}, 'your_api_key').then(...) | |
function pdfshift(data, apiKey) { | |
/** | |
* Javascript function for PDFShift | |
* @param apiKey: Your API key from PDFShift. Optional. Can be null | |
* @param data: Parameters to send to PDFShift. Must contains at least the "source" | |
*/ | |
return new Promise(function (resolve, reject) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from urllib.parse import parse_qs, quote | |
import oauth2, time, requests, json | |
""" | |
Usage: | |
# To setup the access: | |
# GET /twitter/authorize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from flask import current_app | |
import mimetypes, requests, os | |
mimetypes.init() | |
def guess_mimetype(name): | |
type_found = mimetypes.guess_type(name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
This the CLI script to add tags to your reading list | |
You will need a Pocket application. You can create one at: | |
https://getpocket.com/developer/apps/new | |
/!\ Don't forget to set the variables defined after. | |
Requires Python3 and the "requests" library. |
This an ordered version of the original gist located at https://gist.github.com/marcanuy/06cb00bc36033cd12875
- -aa
- aa-
- -ab