30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
#!/bin/bash | |
set -euo pipefail | |
openssl req -new -text -passout pass:abcd -subj /CN=localhost -out server.req -keyout privkey.pem | |
openssl rsa -in privkey.pem -passin pass:abcd -out server.key | |
openssl req -x509 -in server.req -text -key server.key -out server.crt | |
chmod 600 server.key | |
test $(uname -s) = Linux && chown 70 server.key | |
docker run -d --name postgres -e POSTGRES_HOST_AUTH_METHOD=trust -v "$(pwd)/server.crt:/var/lib/postgresql/server.crt:ro" -v "$(pwd)/server.key:/var/lib/postgresql/server.key:ro" postgres:12-alpine -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key |
const MY_DOMAIN = "agodrich.com" | |
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2" | |
const DISQUS_SHORTNAME = "agodrich" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", |
jupyter: | |
image: jupyter/datascience-notebook | |
environment: | |
- PASSWORD=${PASSWORD} | |
nginx: | |
image: nginx | |
links: | |
- jupyter |
#!/bin/sh | |
# https://help.ubuntu.com/community/apcupsd | |
# don't actually run this | |
exit 0 | |
# install apcupsd | |
sudo apt-get -y install apache2 apcupsd apcupsd-cgi |
# coding: utf-8 | |
require 'rubygems' | |
require 'hpricot' | |
require 'fileutils' | |
require 'time' | |
require 'ya2yaml' | |
require File.join(File.dirname(__FILE__), "downmark_it") | |
require 'nokogiri' | |
require 'cgi' |
// ==UserScript== | |
// @name BitMex USD Converter | |
// @namespace https://bitmex.com/ | |
// @version 0.11 | |
// @description Get some sanity into your gambling. | |
// @author koinkraft | |
// @grant none | |
// @include https://bitmex.com/* | |
// @include https://www.bitmex.com/* | |
// @require https://code.jquery.com/jquery-2.1.4.min.js |
# coding: utf-8 | |
# Original File: https://github.com/mojombo/jekyll/blob/master/lib/jekyll/migrators/wordpress.rb | |
# Modified by Yu-Cheng Chuang <ducksteven@gmail.com> | |
# Licensed under MIT License (same as the original file) | |
# This version of wordpressdotcom.rb is compatible | |
# with the real-world Wordpress.com export file, which: | |
# | |
# - Makes paragraphs (<p>) and line breaks (<br>) |
import requests # pip install requests | |
import json | |
import base64 | |
import hashlib | |
import time #for nonce | |
api_key = '' | |
api_secret = '' | |
#url = 'https://bitfinex.com/api/v1/order/new' |
# Flick Badges | |
# Find your user id here: http://idgettr.com/ It should be something like "25711589%40N00". | |
flickr_user: 25711589%40N00 | |
flickr_count: 6 |