Skip to content

Instantly share code, notes, and snippets.

View leetrout's full-sized avatar
🎸

Lee Trout leetrout

🎸
View GitHub Profile
@leetrout
leetrout / kpoint.py
Created March 14, 2019 15:54
Python 3 API Access for kPoint
import base64
import hmac
import os
import time
from urllib.parse import urlencode
CLIENT_ID = os.environ.get("KP_CLIENT_ID")
SECRET_KEY = os.environ.get("KP_SECRET_KEY")
EMAIL = os.environ.get("KP_EMAIL")
USER_NAME = os.environ.get("KP_USER_NAME")
@leetrout
leetrout / index.js
Created March 6, 2019 20:03
Marvel API without lib
// imports
const crypto = require('crypto');
const express = require('express');
const https = require('https');
// globals
const app = express();
const publicKey = process.env.PUBLIC_KEY;
const privateKey = process.env.PRIVATE_KEY;
const baseURL = "https://gateway.marvel.com:443/v1/public";
@leetrout
leetrout / Lab-Values.md
Created December 11, 2018 15:34
Emerging Technologies Lab Values

Our values reflect our culture and give us metrics to measure ourselves.

  1. We work together as a team.
  2. You are empowered to create unique work and drive us forward.
  3. You continuously seek opportunities to innovate and improve our processes, projects and products.
  4. You create an environment of teamwork, respect and service that exceeds the expectations of the university and sets a new bar for working group culture.
  5. You possess the opportunity and are committed to continual learning and growth.
  6. You strive to be involved in the planning and execution of the work that not only affects you but your lab mates and the lab as a whole.
@leetrout
leetrout / notes.txt
Last active November 15, 2018 21:51
Get VM Names
http://labbuildr.bottnet.de/modules/get-vmxipaddress/
PS C:\WINDOWS\system32> Get-VMXIPAddress -Config D:\VMs\Ubuntu2\Ubuntu2.vmx -VMXName Ubuntu2
VMXName IPAddress
------- ---------
Ubuntu2 192.168.43.129
package samuel
import (
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"fmt"
"net/http"
"net/url"
@leetrout
leetrout / mysql_pf.ps1
Created November 8, 2018 01:03
oc mysql port forward
oc port-forward $(oc get pods -l name=mysql -o=custom-columns=NAME:.metadata.name | select -last 1) 3306:3306
@leetrout
leetrout / introrx.md
Created February 2, 2018 00:09 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@leetrout
leetrout / emoji_leaders.js
Last active May 6, 2020 14:31
Slack Custom Emoji Leaderboard
// Run on https://<yourteam>.slack.com/customize/emoji
var out = "CUSTOM EMOJI LEADERS\n";
var usersCount = {};
$('#custom_emoji .author_cell').each((i, el) => {
let user = el.textContent.trim();
let u = usersCount[user] ? usersCount[user] : {user: user, count: 0};
u.count += 1
usersCount[user] = u;
});
@property
def device_ptr_id(self):
"""If content_type is a subclass of a core
device then this will let the reverse relationship work.
"""
return self.object_id
@leetrout
leetrout / notes.md
Created July 13, 2017 20:02
Advanced Ultimate Go w/ Bill Kennedy