For reference: http://postgis.net/install
The most reliable way to get PostGIS on OSX is to download and install Postgres.app. Great for development and testing. Do not mix with other installations. Select the extension when prompted.
/* | |
* Modified from: https://codeshare.frida.re/@dki/ios-url-scheme-fuzzing/ | |
* | |
* iOS URL Scheme Fuzzing | |
* Usage: frida -U --codeshare dki/ios-url-scheme-fuzzing SpringBoard | |
* | |
* Open the specified URL | |
* openURL("somescheme://test"); | |
* | |
* Fuzz a particular URL - use {0} as placeholder for insertion points |
<snippet> | |
<content><![CDATA[import pdb; pdb.set_trace()]]></content> | |
<tabTrigger>pdb</tabTrigger> | |
<scope>source.python</scope> | |
<description>import pdb</description> | |
</snippet> | |
<!-- USAGE --> | |
<!-- 1. Go to Tools -> New Snippet --> |
from logging import getLogger, Formatter, StreamHandler, DEBUG, ERROR | |
class LeveledFormatter(Formatter): | |
_formats = {} | |
def __init__(self, *args, **kwargs): | |
super(LeveledFormatter, self).__init__(*args, **kwargs) | |
def set_formatter(self, level, formatter): |
# source: https://www.slideshare.net/CouponFollow/top-100-most-common-coupon-code-phrases | |
fall | |
black | |
MEMORIAL | |
TWEET20 | |
FREESHIP | |
earlybird | |
MONDAY | |
holidays |
def multireplace(string, replacements, ignore_case=False): | |
""" | |
Given a string and a replacement map, it returns the replaced string. | |
:param str string: string to execute replacements on | |
:param dict replacements: replacement dictionary {value to find: value to replace} | |
:param bool ignore_case: whether the match should be case insensitive | |
:rtype: str | |
""" |
#!/usr/bin/env python3 | |
import concurrent.futures.thread | |
import sys | |
import time | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
def remove_file(path): | |
print('Removing file %s' % path) |
Use: for testing against email regex | |
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
List of Valid Email Addresses | |
email@example.com | |
firstname.lastname@example.com | |
email@subdomain.example.com | |
firstname+lastname@example.com |
For reference: http://postgis.net/install
The most reliable way to get PostGIS on OSX is to download and install Postgres.app. Great for development and testing. Do not mix with other installations. Select the extension when prompted.