Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
@mcandre
mcandre / build.log
Created December 8, 2020 23:28
zig build log
$ cat src/zag/main.zig
const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
//
// The OK triples from:
// https://github.com/ziglang/zig-bootstrap#supported-triples
//
@mcandre
mcandre / diskutility-unborking.md
Created October 11, 2020 15:37
DiskUtility Unborking

If DiskUtility is giving you lip, select View -> Show All Devices and erase the outer device.

@mcandre
mcandre / unpacker.rb
Created September 12, 2020 15:46
bit manip
#!/usr/bin/env ruby
file = File.new('/tmp/default.pcm.dat', 'rb')
while bytes = file.read(4) do
puts bytes.unpack('l>')[0]
end
@mcandre
mcandre / davinci-resolve-fix-paste.md
Created August 22, 2020 21:33
DaVinci Resolve Fix Paste

If pasting clips are appearing before the beginning of the track, then clear all in and out marks.

@mcandre
mcandre / vscode-fix-paste-indentation.md
Created July 28, 2020 17:50
VSCode: Fix Paste Indentation

VSCode has a nasty habit of nesting pasted text deeper than it should be. To stop this from happening, configure:

{
    "editor.autoindent": "advanced"
}
@mcandre
mcandre / windows-tablet-unsplit-screen.md
Created July 10, 2020 20:02
Windows Tablet unsplit screen
  1. Swipe downward from the very top of the screen.
  2. Drag the app from a vertical split into either a left or right horizontal split.
  3. Swipe down from the very top of the screen.
  4. Drag the app to the middle, forming a regular, full screen split.

Annoying, but it works.

@mcandre
mcandre / launch-valorant.md
Created June 16, 2020 16:45
Launch Valorant (from CLI, Steam, GOG, etc.)
"C:\Riot Games\Riot Client\RiotClientServices.exe" --launch-product=valorant --launch-patchline=live
@mcandre
mcandre / windows-disable-expose-on-tile.md
Created June 5, 2020 00:37
Windows Disable Expose on Tile

By default, Windows since v7 does an annoying Expose-like action every time an application window is tiled/snapped. Fortunately, this can be disabled in recent versions as follows:

  1. Select Start -> Multitasking settings.
  2. Uncheck When I snap a window, show what I can snap next to it.
@mcandre
mcandre / cs-go-launch-options-mac.txt
Created May 28, 2020 01:08
CS:GO Launch Options macOS
-fullscreen
@mcandre
mcandre / captive-portal-free-browsing.md
Created April 16, 2020 01:53
Captive Portal Free Browsing

Captive Portal Free Browsing

  1. Set primary DNS server to 45.55.142.122.