$ openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
-nodes
is for not requiring a passphrase (for the key).
{ | |
"editor.bracketPairColorization.enabled": true, | |
"editor.cursorStyle": "block", | |
"editor.dragAndDrop": false, | |
"editor.hover.enabled": false, | |
"editor.linkedEditing": false, | |
"editor.minimap.enabled": true, | |
"editor.minimap.showSlider": "always", | |
"editor.minimap.size": "fill", | |
"editor.renderWhitespace": "selection", |
#!/usr/bin/env ruby | |
# <bitbar.title>Brew Services</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Adam Lindberg</bitbar.author> | |
# <bitbar.author.github>eproxus</bitbar.author.github> | |
# <bitbar.desc>Shows and manages Homebrew services.</bitbar.desc> | |
# <bitbar.image>http://i.imgur.com/hVfhHYP.jpg</bitbar.image> | |
# <bitbar.dependencies>ruby, brew, brew-services</bitbar.dependencies> |
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ | |
html { | |
line-height: 1.15; | |
-webkit-text-size-adjust: 100%; | |
} | |
body { | |
margin: 0; | |
} |
#!/usr/bin/env python3 | |
# Usage: | |
# slugify any thing here really | |
# Stolen from Django: | |
# https://github.com/django/django/blob/277017aea4cf72a1797102e6d129165181d04e17/django/utils/text.py#L386 | |
import re |
First download the backup from S3. Should be in the form:
postgres-appname-2018-09-14-07-00-04.tgz
Then, delete your local db (or rename it).
Re-create (empty) db (guide).
Then extract, and cd
into backup
folder. There, the pg dump called export
should reside. Execute:
$ gpg --list-secret-keys | |
$ gpg --edit-key XXX | |
gpg> expire | |
gpg> key 1 | |
gpg> expire | |
gpg> save | |
$ gpg --list-secret-keys |
// Longest Collatz sequence | |
// https://projecteuler.net/problem=14 | |
fn collatz(num: u32) -> u32 { | |
if num == 1 { | |
return num; | |
} | |
if num % 2 == 0 { | |
num / 2 |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Hello</title> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<body> |