🔓 Not Secure
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
chrome.runtime.onMessage.addListener((req, sender, res) => { | |
if (req.message === 'capture') { | |
// console.log('chrome.runtime.onMessage.addListener', req, sender, res); | |
chrome.tabs.captureVisibleTab(sender.tab.windowId, {format: 'png'}, (image) => { | |
// console.log('chrome.tabs.captureVisibleTab', image); // image is base64 | |
res({image: image}); | |
}); | |
} |
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
# https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow | |
datetime.datetime.now(datetime.timezone.utc) |
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
python -c 'import os; print(os.urandom(16))' | |
# b'_5#y2L"F4Q8z\n\xec]/' |
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
# https://emailregex.com/ | |
r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" |
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 smtplib | |
import ssl | |
SENDER_EMAIL = '[email protected]' | |
RECEIVER_EMAIL = '[email protected]' | |
SERVER_API_TOKEN = '…' | |
for host in ['legacy-smtp.postmarkapp.com', 'smtp.postmarkapp.com', 'future-smtp.postmarkapp.com']: | |
for port in [25, 2525, 587]: | |
context = ssl.create_default_context() |
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
$ pqsl | |
# CREATE DATABASE database; | |
# \q |
🔓 Not Secure
🔓 Not Secure
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
# I wrote an Ivy (https://darrenmulholland.com/docs/ivy/) extension | |
# to allow multiple paths to the same node by using the keyword | |
# `redirects` in `./src/foo.md` (e.g., `redirects: bar, foo-bar`). | |
import ivy | |
import copy | |
@ivy.hooks.register('render_page') | |
def copy_page(page): | |
node = page['node'] |
NewerOlder