Skip to content

Instantly share code, notes, and snippets.

View pcewing's full-sized avatar

Paul Ewing pcewing

  • Blizzard Entertainment
View GitHub Profile
@pcewing
pcewing / rsync_notes.md
Created October 10, 2019 01:05
Syncing music to flash drive via rsync

Assuming we have a flash drive mounted at the path /mnt/FlashDrive/Music/, we can sync up our own music directory to the flash drive using rsync as follows:

rsync --recursive --delete ~/Music/ /mnt/FlashDrive/Music/

Note that the trailing slashes on the folders are very important!

@pcewing
pcewing / netcore_output_path.md
Last active August 9, 2019 17:27
Demo of microsoft/msbuild issue #4600 - Publish does not respect intermediate paths

Goal

Set up a .NET Core/Standard solution with multiple projects such that they all build and publish into a centralized directory without polluting the source directory.

Solution Setup

These setup steps should be followed before attempting to reproduce the issue using either method below.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pcewing
pcewing / clang_format.sh
Created March 23, 2019 06:30
Find file and format them in place with clang-format
#!/usr/bin/env bash
find ./src -type f -iname '*.c' -exec clang-format -style=file -i {} \;
find ./include -type f -iname '*.h' -exec clang-format -style=file -i {} \;
@pcewing
pcewing / bloomer_update.svg
Created March 15, 2019 01:04
Wireless Bloomer Keyboard Concept
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pcewing
pcewing / secrets.md
Last active February 24, 2019 04:21
A quick example of storing secrets on Linux using bash and GnuPG
$ mkdir secrets
$ cd secrets
$ echo "This is my secret text file" > secret.txt
$ ls
secret.txt
$ echo -n "Enter passphrase: " && read -s passphrase && echo
Enter passphrase: 
$ echo "$passphrase" | gpg --batch --yes --passphrase-fd 0 \
>    --symmetric secret.txt
[
[
{
"c": "#cfaf00",
"a": 7
},
"Tab",
"Q",
"W",
"E",
@pcewing
pcewing / Atreus62_Dock_LeftPrint.svg
Created April 24, 2018 05:00
Atreus62 Dock Files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pcewing
pcewing / seeds.md
Last active March 30, 2025 19:42
Descenders Seeds
  • Highlands Mellow Jump Course: 10052780000
  • Another fun highlands jump course: 10060689982
  • Decent Peaks Jumps: 40002839024
  • Decent Canyon Stunts: 30051868939
  • Decent Forest Stunts: 20020797859
  • Awesome Canyoun Stunts: 30040845600
  • Best Canyon course: 30030686541
  • Dirt Jumps (Canyon): 30030809329
  • Good straight steep canyon: 30080048490
  • Fun no-break canyon course: 30050366302