Skip to content

Instantly share code, notes, and snippets.

Avatar

Brandon mookman288

View GitHub Profile
@mookman288
mookman288 / config.md
Created Apr 5, 2022
Cmder/Conemu WSL Debian Vim Arrow Key Home End Support
View config.md

%LOCALAPPDATA%\Microsoft\WindowsApps\debian.exe -cur_console:p5

View get-windows-product-key.vbs
Set WshShell = CreateObject("WScript.Shell")
response = InputBox("Your Digital Product ID", "Windows Serial Key", ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
View gist:37ac01768e860cb21dae235417c39b5a
/9j/4AAQSkZJRgABAgAAAQABAAD//gAQTGF2YzU4LjE4LjEwMAD/2wBDAAgICAkICQsLCwsLCw0MDQ0NDQ0NDQ0NDQ0ODg4REREODg4NDQ4OEBARERITEhERERETExQUFBgYFxccHB0iIin/xACdAAABBQEBAQAAAAAAAAAAAAACBQADBAEGBwgBAAMBAQEBAAAAAAAAAAAAAAABAgMEBQYQAAEDAwIDBQYEAwYFAgcBAAEAAwIRIQQxEgVRQYFxImETsUKhkQYyFCPBUtHwcuFi8TM0FZKCsqIkBxajQzVEY3N0VBEBAQACAgICAgIDAQEBAAAAAAECESEDEjEEQSJRE3FhoTIFI4H/wAARCAFoAWgDASIAAhEAAxEA/9oADAMBAAIRAxEAPwD2FGEKJcbYJWVWlClSrUJJWoapE0IkIT6KlKol+bJTi6giPHJTgoCRNZVNANMarKJoA6oVqYQAlYAKIiQgqgGmgnIRiSVFHIjKgGqDkT1WoKpqSGnqsTrQWQG0QEUW3WEFABVaEK1AM3WLVqcAKLU9E6phlUJTMkFaqQIJ1Q1KzcUG01Woap1QG6JgoEYCA1DoiQlBtqsTTQDWp2W0CAvVUm5VwUYVJSVQEpoClSrSUwFGdEYSJMLBCU0JVKQx++SmooWvvkrCAEFEgNtEQ0ugHVVvV8aQePcYlgANtkGc/mF5jP6wzGcra7LfA9h/RCpi9y9aNLEFDJ+ERUyA7yvKx9QS2icHY+LpIm3yVZ76jm5VsmI8wTdA8XrsXIzFiD3KOUqLwyf1BkMOVbyTHyrVKWL9bZTZpOjg/nuRyfi9ZyZVbKScJ6Lr9AdFzTf1mw60Yzhtkfl7VS4BxOE+IOt7rTNYmulTWiXI09SCdUEJCUQfJGjSR1CdUFQiBAQRkoKko6hYbpAIWrFoKejOidUyUNQmTSsJQ1KjkSgMkarCsWEpaA+iFNakGLKp0otCDMFHVYmgNqhJTWUQNmiWAIkGwLbJp1PJAWwpFEFIqSZQ1WlRkpUq
@mookman288
mookman288 / gemma.txt
Last active Nov 22, 2016
NeoPixel chase and fade with vibration sensor support on Gemma.
View gemma.txt
#include <Adafruit_NeoPixel.h>
#include <math.h>
#define LEDCOUNT 8
#define PINLED 1
#define PINSENSOR 0
#define RGB 3
#define STEPS 20
#define TIMER 4
#define TIMEOUT 5
@mookman288
mookman288 / x_almostthere_x.php
Last active Jun 22, 2016
Creating a progress bar demonstration
View x_almostthere_x.php
<?php
$value = get_post_meta($post_id, 'progress_value', true);
?>
<div class="progress-bar">
<div class="inner-progress-bar" style="width: <?php print(round(100 - ($value * (100 / 7)), 1)); ?>%;"></div>
</div>
@mookman288
mookman288 / SteamWH
Last active Aug 29, 2015
A script just to handle wormhole propagation clumsily.
View SteamWH
//Declare variables.
var $worm = jQuery('#abilityitem_26');
var $time = jQuery('#abilityitem_27');
var $gold = jQuery('#abilityitem_22');
var _interval;
//Set an interval to click the worm.
var _MHTH = setInterval(function() {
//Clear old intervals.
clearInterval(_interval);
View Definition.xml
<Shapes xmlns="http://www.evolus.vn/Namespace/Pencil"
xmlns:p="http://www.evolus.vn/Namespace/Pencil"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
id="Blueprint_CSS.Icons"
displayName="Blueprint CSS"
description="Blueprint CSS Grid"
author="Alice Kaerast"
url="http://blueprintcss.org/">
View Sass Numbers (1-100)
//Declare variables.
$numbers: (
0: "zero",
1: "one",
2: "two",
3: "three",
4: "four",
5: "five",
6: "six",
7: "seven",
@mookman288
mookman288 / ajaxify-html5.js
Last active Oct 13, 2015 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery, Possible Sliding, and Bug Fixes!
View ajaxify-html5.js
//http://james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/
var ie = (function(){
var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',