All notes are stored in markdown in this github repo.
Filter by category:
all
bash celery chrome cli conceptual css django docker git go http js markdown node postgresql python react sql sqlalchemy sqlite ssh tmux typescript vim vscode
- js Check dependencies and their versions in a node project - 2025-05-31
- js
Array.prototype.at
get the element at a specified index. - 2025-05-23 - sql Escape single quotes in a SQL query - 2025-05-19
- react
useMemo
hook - 2025-05-10 - sqlalchemy Log SQL to stdout - 2025-05-03
- python
datetime.replace
- 2025-05-03 - postgresql Select a random row - 2025-04-22
- http Use a file to specify the http payload with curl - 2025-04-13
- http Skip certificate verification for https in curl - 2025-04-13
- tmux Moving panes in tmux - 2025-03-26
- postgresql Get the postgres version - 2025-03-26
- postgresql List all values of a Postgres enum - 2025-03-24
- postgresql Useful queries to check existing connections - 2025-03-18
- typescript ! operator in typescript - 2025-01-08
- js
Array.prototype.flatMap
- 2024-12-30 - js
Array.prototype.flat
to flatten nested arrays. - 2024-12-30 - cli
networkQuality
tool in macos - 2024-12-26 - js Use
%c
to apply styling toconsole.log
output - 2024-11-27 - js
console.groupCollapsed
function - 2024-11-21 - django How to keep the database from the previous test run with
pytest-django
- 2024-11-18 - http Check Latency with
curl
- 2024-11-18 - chrome Copy Property Path Option in Chrome DevTools - 2024-11-18
- js JavaScript
console.dir
Function - 2024-11-18 - postgresql Dump and restore PostgreSQL databases - 2024-10-16
- docker
docker compose up
can be used to execute only one service - 2024-10-16 - postgresql Use COPY to export to CSV - 2024-10-12
- python The
-u
cli flag in Python - 2024-09-28 - python
re.DOTALL
flag in python regular expressions - 2024-09-28 - python
%history
magic function in ipython - 2024-09-28 - git Applying a stash without removing it from the list - 2024-09-14
- cli
alias
prints all defined aliases - 2024-09-14 - django Use
override_settings
as a context manager - 2024-08-17 - js Escape sequence to add emojis to javascript strings - 2024-08-10
- python Escape sequence to use emojis in Python strings - 2024-08-10
- python CPU profiling with
cProfile
- 2024-07-31 - docker Docker compose watch - 2024-07-21
- docker Using YAML anchors and aliases in docker compose files - 2024-07-20
- docker Extensions in the compose file - 2024-07-20
- go Doubly Linked List in Go - 2024-07-12
- docker Port forwarding in docker run - 2024-07-11
- docker Setting environment variables in a container with docker run - 2024-07-11
- python
str.isnumeric
method to check if all characters are numeric - 2024-06-21 - js Get the data attributes of a DOM element with javascript - 2024-06-21
- go
utf8.RuneCountInString
utility function to count runes in a string. - 2024-06-06 - python Using
functools.cache
to memoize functions - 2024-06-05 - css Add style rules for dark mode - 2024-06-01
- python File copy functions in
shutil
- 2024-06-01 - tmux Resizing panes in tmux - 2024-05-24
- bash
*
in shell globbing does not match hidden files - 2024-05-23 - node Uninstalling packages and dependencies - 2024-05-09
- go
strings.Repeat
in go - 2024-04-30 - python
str.splitlines
- 2024-04-30 - go
slices.Reverse
- 2024-04-30 - docker Check volume size in docker - 2024-04-22
- go
slices.Contains
- 2024-04-18 - http Tools to test HTTP clients - 2024-04-12
- docker
docker compose restart
- 2024-04-12 - docker
docker compose exec
- 2024-04-12 - python
types.SimpleNamespace
- 2024-04-11 - python
operator.attrgetter
- 2024-04-11 - django Avoid autogenerated
varchar_pattern_ops
indices created when usingdb_index=True
orunique=True
- 2024-04-11 - python Python stdlib functions to calculate GCD (greatest common divisor) and LCM (lowest common multiple) - 2024-03-27
- python
collections.Counter
'smost_common
method - 2024-03-21 - chrome Cmd + Shift + A (Ctrl + Shift + A in windows) - 2024-03-21
- go
log.Fatalln
andlog.Fatalf
- 2024-03-20 - cli
tr
command in linux - 2024-03-16 - python
slice
built-in object - 2024-03-09 - python
bisect
module - 2024-03-08 - cli What does
real
,user
andsys
from the output oftime
mean? - 2024-02-28 - git Search codebase history using
git log -S
- 2024-02-28 - git List tags and see the changes in the commit a tag points to - 2024-02-13
- js Optional chaining with methods in JS - 2024-02-03
- js String.prototype.concat - 2024-02-03
- js
document.activeElement
- 2024-02-03 - typescript Using the
as
operator for mocks in jest tests - 2024-02-03 - js Array.isArray - 2024-02-01
- python Using
glob.glob
to find files - 2024-01-04 - sqlite Create a sqlite database - 2023-12-30
- vscode Customize directories where VSCode search for virtualenvs - 2023-12-29
- python
typing.NamedTuple
- 2023-12-20 - python
pytest --trace
- 2023-12-20 - git Stash individual files - 2023-12-11
- go Use
reflect.Typeof
get the type of a variable - 2023-12-10 - go Using
log.Fatal
- 2023-12-10 - go
defer
- 2023-12-10 - python Customize iPython shell - 2023-12-08
- bash Multi line comments in a bash script - 2023-12-04
- python Using
unittest.mock.patch
as a class decorator - 2023-12-03 - tmux Show pane numbers - 2023-12-03
- git
git apply
to apply a patch - 2023-12-03 - python The
end
optional kwarg of theprint
built-in function. - 2023-11-12 - python How to reference values using hex in strings - 2023-11-12
- react
useCallback
- 2023-09-26 - react
memo
- 2023-09-26 - python Debug f-strings - 2023-08-03
- django
python manage.py sqlmigrate
- 2023-07-26 - python
default
kwarg inmax
builtin - 2023-07-26 - vim Print the content of registers - 2023-07-04
- chrome Replay an AJAX request in Chrome - 2023-07-04
- js
done
function in Jest tests - 2023-07-04 - react
screen.logTestingPlaygroundURL()
to debug queries when using testing-library - 2023-06-09 - js React strict mode - 2023-06-09
- typescript
Pick
generic - 2023-06-02 - postgresql Identify long running queries and kill them. - 2023-05-31
- celery Debugging celery tasks - 2023-05-22
- js The comma operator (,) - 2023-04-27
- git Pull and resolve conflicts by using changes from the origin. - 2023-04-13
- django Check the database connection settings from the Django shell - 2023-03-24
- tmux List clients connected to a tmux session. - 2023-03-08
- vim Check what Python interpreter vim is using. - 2023-03-08
- python Check what interpreter is running from a Python REPL or script - 2023-03-08
- tmux Disconnect sessions from tmux - 2023-03-03
- markdown Nested lists in markdown - 2023-02-21
- js Destructure and renaming in ES6 - 2023-02-03
- django Check Django version from the command line - 2023-01-20
- tmux Tmux scrolling - 2023-01-18
- bash Difference between single and double quotes in bash. - 2023-01-16
- bash For loops in bash - 2023-01-16
- js Nullish coalescing operator (??) - 2023-01-07
- git How do I git rebase the first commit? - 2023-01-06
- git Fixing commits with
git commit --fixup
andgit rebase -i --autosquash
- 2023-01-06 - python Pretty print JSON - 2022-12-31
- http Content-Type HTTP header - 2022-12-31
- http Accept HTTP header - 2022-12-31
- python Using multiple
pytest.mark.parametrize
decorators - 2022-12-29 - cli Edit cli command in $EDITOR - 2022-12-24
- docker Execute command in running container - 2022-12-23
- python Poetry Cheatsheet - 2022-12-21
- python What does
/
represent in the argument list of a function - 2022-12-13 - python What does
...
mean in python? - 2022-12-13 - python
dict.setdefault
- 2022-12-12 - python What does an asterisk represent in the argument list of a function - 2022-12-12
- cli Lsof to get the process listening on a given port - 2022-12-11
- python
itertools.count
to create an iterator that returns an infinite sequence of numbers - 2022-11-30 - git Show changes in staged files. - 2022-11-26
- git To amend the previous commit and keep the same log message, run: - 2022-11-22
- css Pseudo-elements - 2022-11-16
- css Pseudo-classes - 2022-11-16
- git Rebase when pulling - 2022-11-14
- django Django performance debugging tools - 2022-11-14
- python Dictionary view objects - 2022-11-14
- vscode Keyboard shortcut to resize built-in VSCode's terminal - 2022-11-08
- tmux Reload tmux configuration - 2022-11-03
- node Check what global packages has been installed and where. - 2022-10-30
- python
itertools.product
to calculate the cartesian products of input iterables - 2022-10-18 - js JS
encodeURI
andencodeURIComponent
functions - 2022-09-27 - cli w command - 2022-08-26
- js Tagged Template Literals - 2022-05-31
- react useEffect react hook - 2022-05-24
- js JS Promises. - 2022-05-15
- chrome Throttle network connection in Chrome - 2022-04-21
- git Rename the current branch. - 2022-03-11
- git Check what's stashed and the changes they introduce. - 2022-03-11
- ssh Disconnecting from unresponsive connection - 2022-03-11
- tmux Reconciling Tmux and SSH Agent Forwarding. - 2021-12-21
- git Multiple SSH Keys for different Github Accounts - 2021-12-20
- ssh SSH Agent forwarding - 2021-12-16
- git Remove everything from the staging area. - 2021-11-10
- js Debugging jest tests with breakpoints. - 2021-11-10
- js Computed property names - 2021-11-10
- git Adding changes by hunk to the staging area. - 2021-10-01
- js JS
console.count()
andconsole.countReset()
functions - 2021-09-30 - js
**
operator - 2021-06-21 - react React Fragments - 2021-05-26
- docker Debugging with ipdb in a docker-compose environment - 2021-05-13
- ssh Execute command in a remote machine via ssh - 2021-03-13
- bash Obtain the definition of an alias - 2021-03-13
- bash Bash Special Variables - 2021-02-17
- conceptual Concurrency and Parallelism - 2020-01-10