openssl genrsa -out ca.home.org.key 2048
openssl req -new -x509 -key ca.home.key -out ca.home.crt
openssl req -in share.home.csr -noout -text
dump.list |
#!/bin/bash | |
# Tom Hale, 2016. MIT Licence. | |
# Print out 256 colours, with each number printed in its corresponding colour | |
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
set -eu # Fail on errors or undeclared variables | |
printable_colours=256 |
// Example of how to use boost::asio::async_result | |
#include <iostream> | |
#include <boost/asio.hpp> | |
#if BOOST_VERSION >= 106600 | |
template<typename CompletionToken> | |
typename boost::asio::async_result | |
<CompletionToken, void(boost::system::error_code, std::string)>::return_type |
#!/bin/bash | |
set -e | |
npx react-native init "$@" | |
POSITIONAL=() | |
while [ "$#" -gt 0 ] ; do | |
key="$1" | |
case $key in |
#!/usr/bin/env python3 | |
import os | |
import sys | |
import smtplib | |
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.utils import COMMASPACE | |
SMTP_ADDR = 'smtp.office365.com' |
#!/usr/bin/env bash | |
set -e | |
app_name=$1 | |
dry_run=${2:-false} | |
declare -a locations=( | |
/Applications | |
~/Library/Application\ Support | |
~/Library/Preferences |
#!/usr/bin/env bash | |
set -e | |
ff=$1 | |
pat=${2:-apollon-backend} | |
di=$(dirname $ff) | |
function kube { | |
kubectl --kubeconfig=$HOME/Downloads/wansong.kubeconfig -n c-dev "$@" |
create user iapsync with encrypted password 'iapsync'; | |
create database iapsync_db; | |
GRANT CONNECT ON DATABASE iapsync_db TO iapsync; | |
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO iapsync; |