Skip to content

Instantly share code, notes, and snippets.

View themainframe's full-sized avatar
🕶️
Hacking the Gibson

Damo themainframe

🕶️
Hacking the Gibson
View GitHub Profile
@pmalin
pmalin / ImGui_Party_3D_001_annotated.inl
Last active November 26, 2020 12:53
3D Spinning Glass - Annotated
// Breaking Down My ImGui Party Entry "3D Spinning Glass" - @P_Malin
// https://github.com/ocornut/imgui/issues/3606#issuecomment-733261493
// This is an annotated version of https://gist.github.com/pmalin/550058583492478beedd7b31ab468174
// I've added comments and whitespace to document how this works and some size optimizations used
// define types that we use often enough that having the #define is a character saving
#define V ImVec2
#define F float
// function R applies a generic 2d (R)otation by 'r' to the inputs x and y passed by reference
@Juul
Juul / lte_mbim_from_scratch.md
Last active May 4, 2024 16:40
How to use 4G LTE modems like the MC7455 on both Debian/Ubuntu and OpenWRT using MBIM

The purpose of this document is to get you familiar with the concepts and command line tools involved with connecting to the internet using modern 4G LTE modems on both Debian/Ubuntu and OpenWRT.

This writeup is based on my experiences with the Sierra Wireless AirPrime MC7455 modem and a Calyx (Sprint) SIM card, but it should apply to most modern 4G LTE modems.

High level overview

These are the steps required:

  • Physically connect antennas
@oznu
oznu / README.md
Last active April 30, 2024 20:58
How to Bootcamp / Dual Boot Windows 10 on a mid-2011 iMac using USB

How to Install / Bootcamp Windows 10 on a mid-2011 iMac using USB

Apple has released support for bootcamping Windows 10, but only on 2012 Macs and later. Despite not being supported. it is possible to install Windows 10 on earlier iMacs and it seems to run quite well.

IMPORTANT: Unplug all external and physical hard drives (where possible) that you won't be installing to to avoid accidentally erasing them. Also make note of which drives and partitions remain (e.g. System and Storage hard drives), and be super careful to not erase the wrong one.

RECOVERY: If you nuke your machine, restore your time machine backup. Instructions here.

Requirements

@joeblau
joeblau / OSX Secure Disk Wipe.md
Last active June 12, 2023 07:37
Securely erase an external disk using dd on OSX

Securely erase an external disk using dd on OSX

  1. Plug in your SD card, HDD, or other block device and then use the following command to see which /dev/diskN node it's located on:
diskutil list
  1. Unmount the disk where “N� is the number of the disk taken from the above command:
@eric1234
eric1234 / zurb3_event_fix.js
Created June 24, 2013 16:41
Zurb 3 iOS radio/checkbox event fix
// So custom form UI elements work on iOS
// https://gist.github.com/eric1234/5851499
(function() {
old_custom_forms = $.fn.foundationCustomForms;
$.fn.foundationCustomForms = function() {
old_custom_forms();
$('span.custom').on('click', function() {});
}
})();
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt