Skip to content

Instantly share code, notes, and snippets.

View gist:96eba65078acafba54032d11d3b33a7b
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDNB/bC0UfRPKRjoOawJIN/vznujxKqahTT+Lav/VFiEIrfzBSWqvtR9ys1JvzlGfL4u++1DCmmi5xzvr7x/3uWhRRS/MPkVJZ0tiEOmsbmyRcbMxgc2UB4TdJkoC6jTCWUKLRcCi3UaVZ6u/oWD2QdFggD544nx71jHYJYYOETqsZVWycveMi+20fQXXFu569YxHYPGZzCXu9dEVmDrnhIPV95A8dPzvImczqBrg4D3Ui++v8kgC3RDJyM4piZV7uIYSYO9vXdkzdGivYBFePsEhMuFDY/VReD8Fhtojy5DIEwjIsu1rLy3KJlOAh1R72g3rAw9Ra9R0lYteVyWldM622L2XovouHDqi/oQnxSPjxwqPQ/HaBUi17IdXHO7I+Uhjh9z/YAGseHMH2qrOd+QdUiljDCv9r7qlF0DOUrjn3drSPJSaAY7cLQwIpGwF2IpWo/gv880feLIHt3jlOvHNVFSXlyvrBA6E4Wh1lzutamz7831irok6Err6O0+mE= yubikey
View gist:e140a791ff2d52e889ea84e0d2bb3772
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDNB/bC0UfRPKRjoOawJIN/vznujxKqahTT+Lav/VFiEIrfzBSWqvtR9ys1JvzlGfL4u++1DCmmi5xzvr7x/3uWhRRS/MPkVJZ0tiEOmsbmyRcbMxgc2UB4TdJkoC6jTCWUKLRcCi3UaVZ6u/oWD2QdFggD544nx71jHYJYYOETqsZVWycveMi+20fQXXFu569YxHYPGZzCXu9dEVmDrnhIPV95A8dPzvImczqBrg4D3Ui++v8kgC3RDJyM4piZV7uIYSYO9vXdkzdGivYBFePsEhMuFDY/VReD8Fhtojy5DIEwjIsu1rLy3KJlOAh1R72g3rAw9Ra9R0lYteVyWldM622L2XovouHDqi/oQnxSPjxwqPQ/HaBUi17IdXHO7I+Uhjh9z/YAGseHMH2qrOd+QdUiljDCv9r7qlF0DOUrjn3drSPJSaAY7cLQwIpGwF2IpWo/gv880feLIHt3jlOvHNVFSXlyvrBA6E4Wh1lzutamz7831irok6Err6O0+mE= desmond@desvpn
@deslee
deslee / ca.md
Created Jan 6, 2021 — forked from soarez/ca.md
How to setup your own CA with OpenSSL
View ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

View led_strip.py
# Simple test for NeoPixels on Raspberry Pi
import threading
import board
import neopixel
import colorsys
from random import randint
def hsv2rgb(h,s,v):
return tuple(round(i * 255) for i in colorsys.hsv_to_rgb(h,s,v))
View keybase.md

Keybase proof

I hereby claim:

  • I am deslee on github.
  • I am desmondl (https://keybase.io/desmondl) on keybase.
  • I have a public key ASCLSO1RCJDwpykzSivQuOfgOCSQFVCHWKcak6Aj1Q1BLQo

To claim this, I am signing this object:

View App.js
import React, { useState, useEffect, useRef } from 'react';
const states = {
PromptUserToMovePointer: "Move your cursor around",
PromptUserToHoldStill: "Hold still!",
DisplayingCat: "Displaying cat..."
}
export default ({ }) => {
const [uiState, setUiState] = useState(states.PromptUserToMovePointer)
View Program.cs
using System;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
namespace ef_play
{
class Program
{
public class Blog
View gist:05575ffdfea5095673bc2a75019a85f1
using System;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
namespace ef_play
{
class Program
{
public class Blog
View black.css
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
View post_slack_message.js
import { WebClient } from '@slack/client'
postMessage(teamData: TeamData, channel: string, text: string): Promise<any> {
const web = new WebClient(teamData.bot.bot_access_token);
return web.chat.postMessage({
channel: channel.substring(2, channel.length-1),
text: text
})
}