Skip to content

Instantly share code, notes, and snippets.

View masonticehurst's full-sized avatar

Mason Ticehurst masonticehurst

  • New York
View GitHub Profile
@masonticehurst
masonticehurst / Antminer.cs
Last active June 21, 2021 02:52
Antminer Monitor Script
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AntminerMonitor
{
public class STATUS
{
@meepen
meepen / non-powerof2-png-gmod.lua
Last active February 22, 2021 17:40
Loads non power of 2 PNG into a Garry's Mod texture without fucking over scaling.
local function wait_png(matstr)
local html = vgui.Create("DHTML")
html:AddFunction("console", "memeify", function()
html.done = true
end)
local mat = Material(matstr)
local rw, rh = mat:GetInt "$realwidth", mat:GetInt "$realheight"
local f = file.Open("materials/"..matstr, "rb", "GAME")
local cont = f:Read(f:Size())