Skip to content

Instantly share code, notes, and snippets.

View geekgonecrazy's full-sized avatar
🚀
Building and Launching!

Aaron Ogle geekgonecrazy

🚀
Building and Launching!
View GitHub Profile
@geekgonecrazy
geekgonecrazy / jwt-rsa256-keypair.go
Last active August 7, 2023 23:25 — forked from sdorra/keys.go
Golang RSA Key Generation
/*
* Genarate rsa keys.
*/
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@geekgonecrazy
geekgonecrazy / Import Emoji.md
Last active April 14, 2021 21:25
Import Emoji into Rocket.Chat

Usage

To use this drop these two files in beside a folder called emoji filled with the emoji you want to upload.

Run npm install to grab the needed dependencies.

Modify the host, user, and pass in the file.

Then run: node import-emoji.js

@geekgonecrazy
geekgonecrazy / ExportPNG.jsx
Created August 17, 2012 21:38
Illustrator script to export artboard to png then create thumbnail in photoshop.
/*
Script to Export Illustrator files as PNG's then make a thumbnail.
Runs in CS5 only
Overdocumented so that I know what the heck is going on if I have to look at it again.
*/
//Disable Alerts. We want this to be as unobtrusive as possible.
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

Bcrypt hash Compare issues

Bcrypt hashes generated by golang will not validate in node.js and vice versa

Golang

Get one external dependency:

go get golang.org/x/crypto/bcrypt

Then run:

@geekgonecrazy
geekgonecrazy / rocket_theme_dark.js
Created October 17, 2019 02:57 — forked from edvinassabaliauskas/rocket_theme_dark.js
Dark theme enabler for Rocket.Chat. Theme taken from https://github.com/0x0049/Rocket.Chat.Dark
var ThemeEnabler = {
isThemeOn: false,
controls: null,
onAppLoaded: async function() {
this.checkCookie()
do {
@geekgonecrazy
geekgonecrazy / app.py
Last active May 30, 2019 16:36
Leapcast
#!/usr/bin/python
# Python program that emulates ChromeCast device
from twisted.internet import reactor
from twisted.internet.protocol import DatagramProtocol
import tornado.ioloop
import tornado.web
import tornado.websocket
import threading
@geekgonecrazy
geekgonecrazy / postmortem.md
Created June 3, 2018 07:52 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
const fs = require('fs');
const { exec } = require('child_process');
const file = fs.readFileSync('replicasets4.txt').toString();
// const file = fs.readFileSync('pods.txt').toString();
(async () => {
const lines = file.split('\n');
const total = lines.length;
@geekgonecrazy
geekgonecrazy / Go-get-private-github.md
Last active January 28, 2018 01:53
Configure for go get

Get personal access token from github

git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"

@geekgonecrazy
geekgonecrazy / rocketchat.py
Created July 14, 2017 16:37 — forked from Deepakkothandan/rocketchat.py
Rocketchat callback plugin for Ansible
# (C) 2016, Deepak Kothandan
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,