Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew mcandre

View GitHub Profile
View diskutility-unborking.md

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

View unpacker.rb
#!/usr/bin/env ruby
file = File.new('/tmp/default.pcm.dat', 'rb')
while bytes = file.read(4) do
puts bytes.unpack('l>')[0]
end
View davinci-resolve-fix-paste.md

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 Jul 28, 2020
VSCode: Fix Paste Indentation
View vscode-fix-paste-indentation.md

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 Jul 10, 2020
Windows Tablet unsplit screen
View windows-tablet-unsplit-screen.md
  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 Jun 16, 2020
Launch Valorant (from CLI, Steam, GOG, etc.)
View launch-valorant.md
"C:\Riot Games\Riot Client\RiotClientServices.exe" --launch-product=valorant --launch-patchline=live
@mcandre
mcandre / windows-disable-expose-on-tile.md
Created Jun 5, 2020
Windows Disable Expose on Tile
View windows-disable-expose-on-tile.md

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 / captive-portal-free-browsing.md
Created Apr 16, 2020
Captive Portal Free Browsing
View captive-portal-free-browsing.md

Captive Portal Free Browsing

  1. Set primary DNS server to 45.55.142.122.
@mcandre
mcandre / microsoft-windows-persist-window-dimensions.md
Created Apr 15, 2020
Microsoft Windows Persist Window Dimensions
View microsoft-windows-persist-window-dimensions.md

Microsoft Windows Persist Window Dimensions

  1. Hold Control while selecting the Close button.
  2. Relaunch the application.
You can’t perform that action at this time.