Skip to content

Instantly share code, notes, and snippets.

View enorms's full-sized avatar

Eric Norman enorms

  • https://angel.co/ericnorman
  • San Francisco, CA
  • X @enxeth
View GitHub Profile
//
// This sketch will print some of interesting predefined constants to Serial.
//
// For more information, look at
// http://electronics4dogs.blogspot.com/2011/01/arduino-predefined-constants.html
// helper macro
#define LINE(name,val) Serial.print(name); Serial.print("\t"); Serial.println(val);
void setup()
@enorms
enorms / gist:f82876f44bd2746777193b9afc895101
Last active September 12, 2020 04:48
inline code highlighting for Canvas
<code style="color:black;">code_to_highlight</code>
@enorms
enorms / README.md
Created May 21, 2021 00:58 — forked from hubgit/README.md
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files

@enorms
enorms / clear nvram with reboots.md
Last active June 8, 2021 19:56
Clear nvram via Terminal, MacOS

boot in recovery mode 1

sudo nvram internet-recovery-mode=RecoveryModeDisk

clear nvram and confirm 2[3]

nvram -c
nvram -p
@enorms
enorms / diff files not in repo.sh
Created June 10, 2021 23:56
compare two files not in repo
git diff --no-index path/to/file/1.txt path/to/file/2.txt
@enorms
enorms / gist:c378cd69de6633c0507f3ceda959e140
Created June 11, 2021 06:31
git pull in one file from branch
git checkout origin/main -- {filename}
git checkout stash@{0} -- arduino/src/README.md
<!--- cspell:dictionaries python --->
<!--- cspell:ignore variable_name --->
@enorms
enorms / git_alias.txt
Last active June 30, 2021 23:02
Git alias
# add
git config --global alias.st status
# view
git config --get-regexp alias
ipfs dag get bafybeiccfclkdtucu6y4yc5cpr6y3yuinr67svmii46v5cfcrkp47ihehy | python -m json.tool