Today I Learned
A collection of concise write-ups on small things I learn day to day across a variety of languages and technologies. Sometimes I find them by knowing what I'm looking for. Other times I go looking for anything that will help. Most times I end up saying "neat" and creating an entry.
These TILs are a mix between "this is a useful thing that I learned that could help others" and "this is something really annoying that took forever to find out and I know I'll come across it again at some point so I want it committed for posterity".
80 TILs across 21 categories and growing!
- C++
- CSS
- Elixir
- git
- JavaScript
- MySQL
- nginx
- Node.js
- node.js
- PostgreSQL
- Powershell
- Python
- Rails
- ripgrep
- Ruby
- Rust
- TypeScript
- Unix
- vim
- VS Code
- WebAssembly
- Base encoding methods
- Get last value in IEx
- Inspect with labels
- Maximum integer size
- Releases
- Test coverage
- Test setup
- Turn on history in IEx
- Avoiding
git-checkout
- Copy file between branches
- Find file creation date
- Get list of commits between two tags
- Getting file from another branch
- Push commit with tags
- Set commit message editor
- Sync deleted remote branches
- Chunking a string
- ESLint debug output
- Regular expression flags
- Regular expression non-capture groups
Buffer.concat
Dirent
s- File system flags in Node
- High resolution timer
- Processing PDF files
- Random integers
- Readable stream async generator
- Readline interface
- Readline interface 2
EXCEPT
keyword- Filter clause
- Finding next primary key for table
- Finding public table names
- Grouping sets
- with clauses
include_str!
Option
intoResult
- Ranges with a custom step
- Resize vector with fill
- u32 from u8 buffer
- Windows
- Count matches in file
file
utility- Find process running on port
- Finding size of folder
- Force quit hung ssh
- Killing other ssh connections
- List directories only
mv
Tips and Tricks- Oh My Zsh Aliases
- Quickly paste clipboard to file
- Return just matched strings with
grep
shutdown
aliases- Sorting directories by size
- String manipulation
tar
with nested directories- U2F
- Using variables in .env file on the command line
which
- Yubico Authenticator on Fedora
zmv
I shamelessly stole this idea from jbranchaud/til.
This repository is licensed under the MIT license. See LICENSE
for details.