Skip to content

Instantly share code, notes, and snippets.

View Lavos's full-sized avatar

Kristopher Cost Lavos

View GitHub Profile
@Lavos
Lavos / openssl.MD
Created January 5, 2021 23:10 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@Lavos
Lavos / ai-dungeon-2-0001
Created December 7, 2019 02:01
Kris The Wizard
You are Kris, a wizard living in the kingdom of Larion. You have a staff and
a spellbook. You finish your long journey and finally arrive at the ruin you've
been looking for. You look around and see that it's not much different than
when you left it years ago. There is a large door with an ancient symbol carved
into it
> You read spellbook.
You open up the book and begin to read. The words seem to flow from your lips

Keybase proof

I hereby claim:

  • I am Lavos on github.
  • I am kcost (https://keybase.io/kcost) on keybase.
  • I have a public key whose fingerprint is 0130 A65C ED9B FF11 1501 D292 B0BB D6C5 3E74 F538

To claim this, I am signing this object:

var hc = new HoneContext({
hone_id: 'current hone id',
referrer: window.location.href
});
hc.lead("email");
@Lavos
Lavos / gist:5855260
Last active December 18, 2015 22:29
Clarity example of dynamic ad insertion
<script type="text/javascript">
CLARITY.push({
use: ['jquery', 'ads'],
run: function($, Ads){
Ads.site_code = 'buz.pitnb';
Ads.zone = 'homepage';
Ads.keywords = [];
$('body').click(function(){
var div = document.createElement('div');
@Lavos
Lavos / gist:977897
Created May 18, 2011 02:43
Showing BEEP some AHK scripting
; Spelunky gamepad controls
#IfWinActive ahk_class TRunnerForm
Joy9::
Send {Up down}
return