I hereby claim:
-
I am jseidl on github.
-
I am seidlmeister (https://keybase.io/seidlmeister) on keybase.
-
I have a public key ASAWNARMunt5JtZa3-cX1E11oI571jglDlAnMworEuMAiwo
CURLINFO_EFFECTIVE_URL => 1048577 | |
CURLINFO_HTTP_CODE => 2097154 | |
CURLINFO_FILETIME => 2097166 | |
CURLINFO_TOTAL_TIME => 3145731 | |
CURLINFO_NAMELOOKUP_TIME => 3145732 | |
CURLINFO_CONNECT_TIME => 3145733 | |
CURLINFO_PRETRANSFER_TIME => 3145734 | |
CURLINFO_STARTTRANSFER_TIME => 3145745 | |
CURLINFO_REDIRECT_COUNT => 2097172 | |
CURLINFO_REDIRECT_TIME => 3145747 |
CURLOPT_NOTHING = 0; | |
CURLOPT_FILE = 10001; | |
CURLOPT_URL = 10002; | |
CURLOPT_PORT = 3; | |
CURLOPT_PROXY = 10004; | |
CURLOPT_USERPWD = 10005; | |
CURLOPT_PROXYUSERPWD = 10006; | |
CURLOPT_RANGE = 10007; | |
CURLOPT_INFILE = 10009; | |
CURLOPT_ERRORBUFFER = 10010; |
$old_site = 'http://example.com'; | |
$new_site = 'http://newsite.com'; | |
$wpdb_prefix = 'wp'; | |
# Replace slugs | |
update ${wpdb_prefix}_posts set guid = replace(guid, $old_site, $new_site); | |
# Replace title, excerpt and content | |
update ${wpdb_prefix}_posts set post_title = replace(post_title, $old_site, $new_site); | |
update ${wpdb_prefix}_posts set post_excerpt = replace(post_excerpt, $old_site, $new_site); |
([A-Z][a-z]+)+\d+ | |
## Matches names like | |
# AaeeshaMcLaughlin3182 | |
# AbarcaSchott193 | |
# AbegayleDay2122 | |
# AbejideDawnay2765 |
import httplib | |
import urlparse | |
def unshorten_url(url): | |
parsed = urlparse.urlparse(url) | |
if parsed.scheme == 'https': | |
h = httplib.HTTPSConnection(parsed.netloc) | |
else: |
def number_text_to_integer(self, text): | |
parts = text.split(' ') | |
accumulator = 0 | |
oper = 'sum' | |
units = ['','one','two','three','four','five','six','seven','eight','nine'] | |
teens = ['','eleven','twelve','thirteen','fourteen','fifteen','sixteen', 'seventeen','eighteen','nineteen'] | |
tens = ['','ten','twenty','thirty','forty','fifty','sixty','seventy', 'eighty','ninety', 'hundred'] |
#!/usr/bin/env python | |
import sys, sqlite3, time, os | |
FILENAME = sys.argv[1] | |
SINCEDB_NAME = '.sincedb' | |
conn = sqlite3.connect(SINCEDB_NAME) | |
c = conn.cursor() |
#!/usr/bin/env python | |
""" | |
Calculate sll1AddHash32 hashes | |
based on pseudocode from https://github.com/mandiant/Reversing/blob/master/shellcode_hashes/make_sc_hash_db.py | |
@author Jan Seidl <[email protected]> | |
""" | |
import sys |
I hereby claim:
I am jseidl on github.
I am seidlmeister (https://keybase.io/seidlmeister) on keybase.
I have a public key ASAWNARMunt5JtZa3-cX1E11oI571jglDlAnMworEuMAiwo
type: picture-elements | |
image: !file /local/images/other/tesla.png | |
elements: | |
{% set sensors = [ | |
('binary_sensor.tesla_model_3_online_sensor', False), | |
('binary_sensor.tesla_model_3_parking_brake_sensor', True), | |
('climate.tesla_model_3_hvac_climate_system', False), | |
('device_tracker.tesla_model_3_location_tracker', False), | |
('sensor.tesla_model_3_mileage_sensor', False) | |
] |