- Create or find a gist that you own.
- Clone your gist (replace
<hash>with your gist's hash):# with ssh git clone [email protected]:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
| # You can use smaller curve prime256v1 | |
| openssl req -x509 -new -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -days 3650 -noenc -keyout example.com.privkey.p8 -out example.com.cer -subj "/CN=example.com" -addext "subjectAltName=DNS:example.com,DNS:*.example.com" |
| const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
| const asyncForEach = async (array, callback) => { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array) | |
| } | |
| } | |
| const start = async () => { | |
| await asyncForEach([1, 2, 3], async (num) => { | |
| await waitFor(50) |
| # RS256 | |
| # private key | |
| openssl genrsa -out rs256-4096-private.rsa 4096 | |
| # public key | |
| openssl rsa -in rs256-4096-private.rsa -pubout > rs256-4096-public.pem | |
| # ES512 | |
| # private key | |
| openssl ecparam -genkey -name secp521r1 -noout -out ecdsa-p521-private.pem | |
| # public key |
| *** RSA | |
| # Generate self-signed certificate with RSA 4096 key-pair | |
| openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout rsakey.pem -out rsacert.pem | |
| # print private and public key | |
| openssl rsa -in rsakey.pem -text -noout | |
| # print certificate | |
| openssl x509 -in rsacert.pem -text -noout |
<hash> with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist
Picking the right architecture = Picking the right battles + Managing trade-offs
| <Window x:Class="App.WPF.Windows.DocumentDetailsWindow" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowStartupLocation="CenterScreen" | |
| xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
| Title="Document Details" Height="700" Width="700"> | |
| <i:Interaction.Triggers> | |
| <i:EventTrigger EventName="Closing"> | |
| <i:InvokeCommandAction Command="{Binding CloseCommand}" /> | |
| </i:EventTrigger> | |
| </i:Interaction.Triggers> |