openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar
openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar
This document describes how to set up Windows 10 for cross-platform development (Go, NodeJS, etc) with Windows Subsystem for Linux (WSL).
Most of the information here is collected from
This is all based on the [alpha release][1].
From the built-in help system:
For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).
These are simple setting = value listings where the value is a format string in which other variables can be referenced.
# taboola_start | |
0.0.0.0 popup.taboola.com | |
0.0.0.0 www.popup.taboola.com | |
0.0.0.0 taboola.com | |
0.0.0.0 www.taboola.com | |
0.0.0.0 cdn.taboolasyndication.com | |
0.0.0.0 taboolasyndication.com | |
0.0.0.0 www.taboolasyndication.com | |
0.0.0.0 www.cdn.taboolasyndication.com | |
0.0.0.0 trc.taboola.com |
# Block Taboola | |
0.0.0.0 popup.taboola.com | |
0.0.0.0 www.popup.taboola.com | |
0.0.0.0 taboola.com | |
0.0.0.0 www.taboola.com | |
0.0.0.0 cdn.taboolasyndication.com | |
0.0.0.0 taboolasyndication.com | |
0.0.0.0 www.taboolasyndication.com | |
0.0.0.0 www.cdn.taboolasyndication.com | |
0.0.0.0 trc.taboola.com |
-- | |
-- This example shows how bad MySQL is when handling foreign key locks. | |
-- Deadlock happens when multiple transactions are inserting child records | |
-- pointing to the same parent and then try to update the parent record. | |
-- | |
-- The solution is to always try to update the parent record first | |
-- but it could be hard to track the when database schema is more complex. | |
-- | |
-- Based on: https://bugs.mysql.com/bug.php?id=48652 | |
-- |
import os | |
import re | |
date_re = re.compile("(\d\d\d\d)(\d\d)(\d\d).md") | |
for root, dirs, files in os.walk("./"): | |
for filename in files: | |
if filename.endswith(".md"): | |
new_filename = filename | |
m = date_re.match(filename) |
import os | |
import re | |
date_re = re.compile("(\w+) (\d+)(rd|th|st|nd), 2021.md") | |
month_to_number = { | |
'January': "01", | |
'February': "02", | |
'March': "03", | |
'April': "04", | |
'May': "05", |
(function() { | |
var ziws = {typingTimeoutId: null,wsEvtListener: null}; | |
ziws.wsEvtListener = document.addEventListener('input', inputTypingHandler); | |
function inputTypingHandler(event) { | |
if (event.target.type === 'password') return; | |
var email = event.target.value; | |
clearTimeout(ziws.typingTimeoutId); | |
ziws.typingTimeoutId = null; | |
if (!_isValidEmail(email)) return; | |
ziws.typingTimeoutId = setTimeout(function () { |
- (void)checkAllTheBadLaunchStates { | |
NSURL *bundleURL = [[NSBundle mainBundle] bundleURL]; | |
if ([bundleURL.path hasPrefix:@"/Applications"] && [bundleURL ag_isQuarantined]) { | |
log_error(self, @"Application has been translocated"); | |
NSString *title = OPLocalizedString(@"The system has quarantined 1Password.", @"title: 1Password has been quarantined by macOS."); | |
NSString *message = OPLocalizedString(@"1Password was not moved to the Applications folder correctly. To fix this issue, 1Password will copy a command to the Clipboard that you can paste in Terminal.", @"message: we're in AppTranlocation jail, updates will fail, no extensions will work."); | |
NSString *defaultButton = OPLocalizedString(@"Open Terminal", @"button: opens the Terminal app"); | |
NSString *secondaryButton = OPLocalizedString(@"Quit 1Password", @""); | |
op_showAlert(title, message, defaultButton, secondaryButton, nil, NO, ^(NSAlert *alert, NSModalResponse response) { | |
if (response == NSAlertFirstButtonReturn) { |