- Delete unused or obsolete files when your changes make them irrelevant (refactors, feature removals, etc.), and revert files only when the change is yours or explicitly requested. If a git operation leaves you unsure about other agents' in-flight work, stop and coordinate instead of deleting.
- Before attempting to delete a file to resolve a local type/lint failure, stop and ask the user. Other agents are often editing adjacent files; deleting their work to silence an error is never acceptable without explicit approval.
- NEVER edit
.envor any environment variable files—only the user may change them. - Coordinate with other agents before removing their in-progress edits—don't revert or delete work you didn't author unless everyone agrees.
- Moving/renaming and restoring files is allowed.
- ABSOLUTELY NEVER run destructive git operations (e.g.,
git reset --hard,rm,git checkout/git restoreto an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t
Does this remind anyone else of the Emo Philips Northern Conservative Baptist Great Lakes Region Council of 1912 joke?
| Format | Base64 Encoded | Java Client Compatible | Kcat Compatible | Benthos Compatible | YAML Config Compatible |
|---|---|---|---|---|---|
| JKS File | ❌ | ✅ | ❌ | ❌ | ✅ |
| PKCS12 File | ❌ | ✅ | ❌ | ❌ | ✅ |
| PKCS8 PEM String | ✅ | ✅ | ✅ | ❌ | ❌ |
| PKCS8 PEM Unencrypted File | ✅ | ❌ | ✅ | ✅ | ✅ |
| PKCS1 Encrypted PEM File | ✅ | ❌ | ✅ | ✅ | ✅ |
| PKCS8 Encrypted PEM File (MD5 DES-CBC) | ✅ | ✅ | ✅ | ❌ | ✅ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/awk -f | |
| # This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
| # My copy here is written in awk instead of C, has no compelling benefit. | |
| # Public domain. @thingskatedid | |
| # Run as awk -v x=xyz ... or env variables for stuff? | |
| # Assumptions: the data is evenly spaced along the x-axis | |
| # TODO: moving average |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /************************************************ | |
| Retrieve a JWT from Auth0 for Postman | |
| 2020-05-15 : @mamund @greatwebapis | |
| NOTES: | |
| 1) create API definition in Auth0 with | |
| "client_credential" (machine-to-machine) | |
| 2) pull the following from Auth0 API config: | |
| - domain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #ifdef _MSC_VER | |
| #include <intrin.h> /* for rdtscp and clflush */ | |
| #pragma optimize("gt",on) | |
| #else | |
| #include <x86intrin.h> /* for rdtscp and clflush */ | |
| #endif |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
- There are always 24 hours in a day.
- February is always 28 days long.
- Any 24-hour period will always begin and end in the same day (or week, or month).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.googlecode.utterlyidle.* | |
| import com.googlecode.utterlyidle.servlet.ApplicationServlet | |
| import javax.servlet.http.HttpServlet | |
| import javax.servlet.http.HttpServletRequest | |
| import javax.servlet.http.HttpServletResponse | |
| class Application(bindings: List<Binding>): HttpHandler { | |
| val matcher = BindingMatcher(bindings = bindings) | |
| override fun handle(request: Request): Response { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # RUN AT YOUR OWN RISK, UNDERSTAND THE COMMANDS AND DO NOT RUN BLINDLY | |
| This will find all the duplicate photos in a `raw_photos` directory. | |
| create md5sum of all files (after `brew install coreutils`): | |
| find raw_photos -type f -exec gmd5sum "{}" + > files.md5 | |
| then sort that and you can find the files where the md5sum (the first field) is repeated for spot-checking and comparison |
NewerOlder