Skip to content

Instantly share code, notes, and snippets.

@noghartt
noghartt / cc.md
Last active April 28, 2024 12:26
Resources to learn more about Computer Science and related stuffs
module SystemF where
open import Agda.Primitive
open import Prelude
open import Data.List
weaken-∈ : {a : Set} (Γ₁ : List a) {Γ x y} x ∈ (Γ₁ ++ Γ) x ∈ (Γ₁ ++ y ∷ Γ)
weaken-∈ [] (zero refl) = suc (zero refl)
weaken-∈ [] (suc i) = suc (suc i)
weaken-∈ (x ∷ Γ₁) (zero p) = zero p
@alexishida
alexishida / nginx-config-auth-cert-ssl.md
Last active April 28, 2024 12:23
Tutorial to configure Nginx client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Original: https://gist.github.com/mtigas/952344

Convert SSL certificate from CRT format to PEM

openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 28, 2024 12:22
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@bigspawn
bigspawn / download-from-facecast.md
Last active April 28, 2024 12:18
How download video from facecast.net
@ksnabb
ksnabb / wgs84-distance.js
Created April 25, 2014 07:23
JavaScript: WGS84 distance (Harvesin)
/*
Pass in two WGS84 points as arrays in x y order to calcuate the
meter distance between them.
distance([longitude1, latitude1], [longitude2, latitude2])
The distance is calculated with the help of the harvesin formula
*/
var distance = function(coords1, coords2) {
@cdseoo
cdseoo / emeditor.key
Created May 19, 2023 00:17
emeditor v22 lifetime key
DEMZF-UCKEE-HB222-DJDDH-594U5
DMAZF-UCKEE-A6222-8CADP-HQZ7H
DPAZF-UCKEE-FH222-ET546-DLRGT
DRNZF-UCKEE-UK222-RWNLU-XVZH7
DSBZF-UCKEE-BF222-K24JB-S9JLC
DSHZF-UCKEE-D3222-NMB93-UKSQF
DTHZF-UCKEE-BW222-Q2BKZ-NXPU8
DVAZF-UCKEE-J7222-5UHCT-QSRFE
DVEZF-UCKEE-PR222-ZAPFE-4C49Q
#!/usr/bin/env python3
'''
always getting the most recent frame of a camera
================================================
Usage:
------
freshest_camera_frame.py