Skip to content

Instantly share code, notes, and snippets.

View JCJAT's full-sized avatar

John JCJAT

  • Bangkok, Thailand
View GitHub Profile
@ghotz
ghotz / exiftool-snippets.md
Last active January 27, 2023 00:49
Exiftool copy & paste snippets

Exiftool snippets

General

Filtering only some extensions:

  • photos -ext jpg -ext orf -ext ori -ext dng -ext heic
  • videos -ext mp4 -ext mov -ext mts -ext avi
  • sidecar -ext xmp -ext mie
@thinhbuzz
thinhbuzz / dbschema-license-key-generator.html
Created August 1, 2018 07:51
DbSchema License Key Generator
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>DbSchema License Key Generator</title>
</head>
<body>
@christopheranderton
christopheranderton / opera-mac-internal-pages-and-more.md
Last active February 26, 2024 04:15
A list of internal (and external) pages and useful information for macOS/OS X users (and others) of the Chromium/Blink based version of the web browser Opera.

Opera Development Icon

@ghotz
ghotz / exiftool-example-argsfile.ps1
Last active September 15, 2023 21:00
PowerShell examples to feed arguments to Exiftool without the initialization overhead of launching the process each time
#
# Exiftool example to process multiple commands without paying the initialization time
# for each call writing to an argument file
#
cls;
$Inputdir = "C:\Photos\Personal\[2007]\[2007-00-00] Test & Test"
# initializes argument file
if (Test-Path c:\temp\tmp.args) { del c:\temp\tmp.args; };
$null | Out-File c:\temp\tmp.args -Append -Encoding Ascii;
@davidfowl
davidfowl / dotnetlayout.md
Last active May 3, 2024 08:40
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@jboner
jboner / latency.txt
Last active May 3, 2024 15:17
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD