Nexus Cheatsheets
TL;DR for developer documentation. A collection of cheatsheets for quick reference.
~ Recently Updated
OrbStack
AJAX
Asynchronous JavaScript And XML for making HTTP requests in the browser
Angular 2
Angular 2 is the TypeScript-based rewrite of AngularJS, introducing components, modules, and a new template syntax.
Angular 4
Angular 4 introduced animations as a separate package, HttpClient (in 4.3), enhanced *ngIf with else/as syntax, and Renderer2.
Angular 5
Angular 5 made HttpClient the default, introduced the build optimizer, RxJS pipeable operators, forms updateOn, and i18n pipe improvements.
Angular CLI
Angular CLI (@angular/cli) is the official command-line tool for creating, developing, building, and testing Angular applications.
AngularDart
AngularDart is the Dart port of Angular, sharing the same architecture but using Dart instead of TypeScript. Used at Google for products like Google Ads.
CanJS
CanJS: MVVM framework with observables, stache templates, custom elements, and real-time data connections.
Clojure
Quick reference for Clojure - a dynamic, functional Lisp dialect on the JVM with immutable data structures and a powerful concurrency model.
F#
Quick reference for F# - a functional-first language on .NET with type inference, pattern matching, and seamless C# interop.
Jujutsu (jj)
Jujutsu (jj) - Git-compatible version control with automatic snapshots, no staging area, and first-class conflicts. Modern DVCS for Git users seeking better UX.
Julia
Quick reference for Julia - a high-performance dynamic language for scientific computing with multiple dispatch and a sophisticated type system.
Analytics
Ansible
Ansible
Ansible: playbooks, modules, and configuration patterns.
Ansible examples
Ansible examples: playbooks, modules, and configuration patterns.
Ansible modules
Place your modules inside tasks.
Ansible quickstart
Ansible is available as a package in most OS's.
Ansible roles
Ansible roles: playbooks, modules, and configuration patterns.
Apps
Atom
Symbols view enables Ctags support for Atom.
Flashlight
Prefix with / to do a web search.
Inkscape
Inkscape: keyboard shortcuts and feature reference.
Org Mode
[Org mode](https://orgmode.org/) is for keeping hierarchal notes (and more) in Emacs.
Sketch
Sketch: keyboard shortcuts and feature reference.
Spacemacs
[Spacemacs](http://spacemacs.org) is a distribution for Emacs.
Sublime Text
Replace ⌘ with Ctrl on Windows and Linux.
Weechat
Weechat: keyboard shortcuts and feature reference.
editorconfig
This example should be fine for most projects indented by 2 spaces. See: animate.css editorconfig
Visual Studio Code
[Visual Studio Code](https://code.visualstudio.com/), or VSCode, is an open-source code editor. This guide targets VSCode v1.19.
C-like
C Preprocessor
Quick reference for the [C macro preprocessor](https://en.m.wikipedia.org/wiki/C_preprocessor), which can be used independent of C/C++.
C# 7
out is used to declare a variable at the point where it is passed as an argument.
Go
Go (Golang): syntax, types, and standard library reference.
CLI
Animated GIFs
You'll need mplayer, imagemagick and gifsicle. This converts frames to .png, then turns them into an animated gif.
Ansi codes
Quick reference to ANSI color codes.
Bash scripting
This is a quick reference to getting started with Bash scripting.
Command Line Interface Pages
Command Line Interface Pages: command-line usage, options, and examples.
Curl
Curl: command-line usage, options, and examples.
Emacs
Emacs: command-line usage, options, and examples.
Find
These conditions only work in MacOS and BSD-like systems (no GNU/Linux support).
GNU grep
In BRE, these characters have a special meaning unless they are escaped with a backslash:
GnuPG
[GnuPG](https://gnupg.org/) is a complete and free implementation of the OpenPGP standard.
Makefile
= expressions are only evaluated when they're being used.
Man
Man: command-line usage, options, and examples.
Pass
Pass: command-line usage, options, and examples.
SSH
Quick reference for SSH - secure remote access, key management, port forwarding, and configuration for encrypted connections.
Screen
Screen or GNU Screen is a terminal multiplexer. In other words, it means that you can start a screen session and then open any number of windows (virtual terminals). This does not contain **all** of screen's commands and options, read [GNU's manual](https://www.gnu.org/software/screen/manual/screen.html#Commands) to see everything
Shell: named pipes
This creates a virtual file with the contents of the output of ls ./old.
YUM
YUM: command-line usage, options, and examples.
ffmpeg
ffmpeg: command-line usage, options, and examples.
fzf
Quick reference for fzf - a blazing fast command-line fuzzy finder for interactive filtering of any list including files, command history, and processes.
ncftp
ncftp: command-line usage, options, and examples.
pm2
pm2: command-line usage, options, and examples.
rTorrent
[rTorrent](https://rakshasa.github.io/rtorrent/) is a command-line torrent application. Here are some shortcut keys.
rclone
rclone: command-line usage, options, and examples.
rename
rename: Perl-based file renaming utility with regex support.
scp
scp: command-line usage, options, and examples.
sed
Here's some hints on using sed.
sh (POSIX Shell)
POSIX sh scripting reference. Portable shell commands that work across all UNIX systems without bash/zsh dependencies. Essential for cross-platform scripts and containers.
tar
Concatenate, Deflate, Inflate files
tmux
tmux: command-line usage, options, and examples.
top
See the processes in your Unix machine.
yazi
Quick reference for yazi - a blazing fast terminal file manager written in Rust with async I/O and a modern TUI interface.
zsh
Zsh is mostly compatible with Bash, so most everything in Bash's cheatsheet also applies.
Fish shell
Print the string with a trailing \n.
Rsync
Rsync: command-line usage, options, and examples.
Watchexec
[mattgreen/watchexec](https://github.com/mattgreen/watchexec) runs commands whenever certain files change.
adb (Android Debug Bridge)
wait-for-device can be specified after adb to ensure that the command will run once the device is connected.
composer
All composer commands, depending on your install, may need to use php composer.phar in the install folder for composer, instead of global/plain composer.
Cron
Cron: command-line usage, options, and examples.
Homebrew
Cask commands are used for interacting with graphical applications.
httpie
HTTPie is a command-line HTTP client.
AWK
AWK is a powerful text processing language for pattern scanning and processing. Named after its creators Aho, Weinberger, and Kernighan.
GNU Readline
GNU Readline is a library that provides command-line editing and history capabilities for interactive programs like Bash, GDB, and Python REPL.
CSS
Bootstrap 4
Bootstrap 4: flexbox grid, utility classes, cards, responsive navbar, and component reference.
CSS Grid
CSS Grid: css properties, selectors, and styling reference.
CSS antialiasing
Here's a 4-line snippet on how to get beautiful, antialiased text with CSS.
CSS tricks
CSS tricks: css properties, selectors, and styling reference.
Tachyons
Tachyons is a functional CSS toolkit with composable utility classes for rapid UI development. Mobile-first, highly performant, and human-readable.
UIkit
UIkit is a lightweight and modular CSS framework for developing fast and powerful web interfaces. Uses `uk-` prefix for all classes and attributes.
Bootstrap
Bootstrap: css properties, selectors, and styling reference.
Bulma
Wrap as many .column's' as you like in a .columns wrapper
CSS
CSS: css properties, selectors, and styling reference.
CSS flexbox
A fixed-height top bar and a dynamic-height content area.
CSS system fonts
This uses whatever system font is available. See: System shock - Designing Medium (medium.com)
Stylus
Stylus: css properties, selectors, and styling reference.
cssnext
cssnext: css properties, selectors, and styling reference.
Sass
This is a quick reference to Sass stylesheets.
Font Awesome
Foundation
Databases
Knex
[Knex](http://knexjs.org/) is an SQL query builder for Node.js. This guide targets v0.13.0.
MySQL
MySQL: query syntax, schema design, and operations.
PostgreSQL
$ psql #logs in to default database & default user
PostgreSQL JSON
> returns JSON, >> returns text.
SQL joins
Quick reference for SQL JOIN types, syntax, and patterns.
Devops
AWS CLI
See: <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html>
Chef
Chef: configuration, deployment, and operations reference.
CircleCI
CircleCI: CI/CD configuration, jobs, workflows, and pipeline reference.
Deis
Deis: configuration, deployment, and operations reference.
Docker CLI
Docker CLI: configuration, deployment, and operations reference.
Dockerfile
Using shell will turn on strict mode for shell commands.
Flynn
Flynn: configuration, deployment, and operations reference.
Heroku
[Heroku](https://heroku.com/) is a web hosting platform supporting many languages, and this guide is a reference to Heroku's [command-line interface](https://heroku.com/).
Travis.yml
Quick reference for [Travis CI](https://travis-ci.org) yaml configuration. See [official documentation](https://docs.travis-ci.com/user/customizing-the-build/).
Vagrant
[Vagrant](http://vagrantup.com) lets you build isolated virtual environments for your apps.
Vagrantfile
Vagrantfile: configuration, deployment, and operations reference.
docker-compose
Docker compose is now integrated into the official Docker installation. The functionality only improved over that change, and the simple syntax change is : V1 : docker-compose ARG to V2 docker compose
Elixir
Elixir metaprogramming
Most of these magic is defined in Kernel.SpecialForms.
ExUnit
ExUnit: elixir syntax, functions, and otp patterns.
Phoenix: Ecto
Phoenix: Ecto: elixir syntax, functions, and otp patterns.
Phoenix: Ecto models
This is for Phoenix 1.2 and below. Phoenix 1.3 has a new API..
Erlang ETS
Erlang ETS: elixir syntax, functions, and otp patterns.
Phoenix
Install Erlang, Elixir, Node.js, PostgreSQL first.
Phoenix 1.2
See Phoenix for a more updated cheatsheet.
Phoenix: Ecto migrations
Creates a migration (no models).
Phoenix: Routing
See: Mix.Tasks.Phoenix.Routes (hexdocs.pm)
Phoenix: Plug.Conn
Phoenix: Plug.Conn: elixir syntax, functions, and otp patterns.
Elixir
Elixir: elixir syntax, functions, and otp patterns.
Phoenix Ecto 1.3
Quick reference for Phoenix 1.3 with Ecto 2.x - legacy database integration for older Phoenix applications. Use Phoenix 1.7+ for new projects.
Git
Git branches
Creates a new branch locally then pushes it.
Git extras
Quick reference to some utilities in the [git-extras](https://github.com/tj/git-extras) utilities.
Git revisions
A list of revision specifications you can use with `git log` and many other Git commands. Summarized from `gitrevisions(7)` man page.
Git tricks
Git tricks: git commands, workflows, and best practices.
git log
git log: git commands, workflows, and best practices.
Git log format string
See the next tables on format variables.
Tig
You can substitute git log → tig.
HTML
Appcache
Note that Appcache is deprecated!
Applinks
<meta property="al:ios:url" content="applinks://docs" />
HTML
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
HTML emails
Inline your CSS as much as possible.
Internet Explorer
first-child: doesn't work for elements inserted via JS.
Legacy IE bugs
A bunch of bugs to take care of if you're going to target legacy IE browsers.
Microformats
Microformats: html elements, attributes, and semantic markup.
SVG
Quick reference for SVG elements, attributes, paths, gradients, filters, and animations
Share links
Share links: html elements, attributes, and semantic markup.
Layout thrashing
These are CSS properties that will cause "layout thrashing". Avoid changing them to prevent bottlenecks in your UI performance.
HTML meta tags
See: OpenGraph protocol (developers.facebook.com)
Input tag
datetime and datetime-local fields are not widely supported.
Xpath
Test queries in the Xpath test bed:
MJML
Quick reference for MJML (Mailjet Markup Language) - responsive email markup language that makes coding responsive emails easy.
Java & JVM
JavaScript
AJAX
Asynchronous JavaScript And XML for making HTTP requests in the browser
Aurelia
Aurelia: conventions-based framework with dependency injection, two-way binding, and web component support.
Axios
Axios: promise-based HTTP client for browser and Node.js with interceptors and automatic JSON.
CanJS
CanJS: MVVM framework with observables, stache templates, custom elements, and real-time data connections.
Canvas
Saves: strokeStyle fillStyle globalAlpha lineWidth lineCap lineJoin miterLimit shadowOffsetX shadowOffsetY shadowBlur shadowColor
Chart.js
Chart.js: simple yet flexible charting library for line, bar, pie, radar, and more.
DOM Range
Quick reference to the HTML [DOM createRange API](https://devdocs.io/dom/range).
DOM Selection
Quick introduction to the HTML [DOM selection API](https://devdocs.io/dom/selection).
JavaScript Arrays
JavaScript Arrays: javascript reference and quick guide.
JavaScript lazy shortcuts
.includes is ES6-only, otherwise use .indexOf(val) !== -1 if you don't polyfill.
Progressive Web Apps
A quick reference guide to building Progressive Web Apps (PWA) including manifest configuration, service worker lifecycle, caching strategies, and installability.
Promises
intro: A quick reference to the JavaScript Promise API.
SVG.js
SVG.js is a lightweight JavaScript library for manipulating and animating SVG elements. Quick reference for shapes, transforms, animations, and DOM operations.
Service Worker API
Service Workers are scripts that run in the background, enabling offline capabilities, push notifications, and background sync for web applications.
Socket.io
Quick reference for Socket.io - a library for real-time, bidirectional, event-based communication between browsers and servers using WebSockets.
Storybook
Quick reference for Storybook 8+ with CSF 3, TypeScript, and interaction testing.
applicationCache
This is a deprecated HTML feature. See: Using the application cache (developer.mozilla.org)
JavaScript speech synthesis
Web Speech API: SpeechSynthesis and SpeechSynthesisUtterance reference.
Jsdoc
JSDoc: JavaScript documentation comments, tags, and type annotations.
Web workers
Messages can be anything that can be serialized into JSON (objects, arrays, strings, numbers, booleans). See: structured clone
npm
npm: javascript reference and quick guide.
JavaScript Date
Months are zero-indexed (eg, January is 0).
fetch()
Non-2xx responses are still successful requests. Use another function to turn them to errors.
CoffeeScript
Quick reference for CoffeeScript - a little language that compiles into JavaScript with Ruby-inspired syntax and significant whitespace.
GSAP
[GSAP](https://gsap.com/) (GreenSock Animation Platform) is a professional-grade JavaScript animation library for building high-performance animations that work in every major browser.
JavaScript: this
A quick reference for how the `this` keyword works in every JavaScript context — global, functions, methods, classes, arrow functions, and event handlers.
KnockoutJS
[KnockoutJS](https://knockoutjs.com/) is a standalone JavaScript MVVM library with declarative bindings, automatic UI refresh, dependency tracking, and templating.
Meteor.js
Meteor is a full-stack JavaScript platform for developing modern web and mobile applications. It includes a key set of technologies for building connected-client reactive applications.
Tracking.js
Tracking.js is a lightweight browser computer vision library (~7KB) providing color tracking, face/eye/mouth detection, and feature detection. Note: This library is unmaintained since 2016.
Async/Await
Quick reference for JavaScript's async/await syntax for handling asynchronous operations with cleaner, more readable code than traditional Promise chains.
EJS
Embedded JavaScript templating - Simple, fast templating language for Node.js with plain JavaScript syntax.
ES2015+
A quick overview of new JavaScript features in ES2015, ES2016, ES2017, ES2018 and beyond.
ES2018
ES2018 (ES9) features: async iteration, object rest/spread, Promise.finally(), RegExp improvements
Electron
Electron is a framework for building cross-platform desktop applications using JavaScript, HTML, and CSS. Build native apps with web technologies.
Joi
Joi is a powerful schema description language and data validator for JavaScript. Validate objects, arrays, strings, numbers and more with an expressive fluent API.
Lerna
Quick reference for Lerna - a fast, modern build system for managing and publishing JavaScript/TypeScript monorepos, now maintained by Nx.
Objection.js
SQL-friendly ORM for Node.js built on Knex.js. Supports PostgreSQL, MySQL, and SQLite3.
Vue.js
[Vue.js](https://vuejs.org/) is an open-source Model–view–viewmodel JavaScript framework for building user interfaces and single-page applications.
Vue.js v1.0.28
**Deprecated:** this guide targets an old version of Vuej.js (v1.0.28). See the [updated Vue.js cheatsheet](vue) for new versions.
JavaScript libraries
101
[101](https://www.npmjs.com/package/101) is a JavaScript library for dealing with immutable data in a functional manner.
Angular 2
Angular 2 is the TypeScript-based rewrite of AngularJS, introducing components, modules, and a new template syntax.
Angular 4
Angular 4 introduced animations as a separate package, HttpClient (in 4.3), enhanced *ngIf with else/as syntax, and Renderer2.
Angular 5
Angular 5 made HttpClient the default, introduced the build optimizer, RxJS pipeable operators, forms updateOn, and i18n pipe improvements.
Angular CLI
Angular CLI (@angular/cli) is the official command-line tool for creating, developing, building, and testing Angular applications.
Angular.js
In controller you call with parameter and will use promises to return data from server.
Backbone.js
Backbone.js: quick reference for common patterns and api methods.
Blessed
Blessed: quick reference for common patterns and api methods.
Bookshelf.js
Bookshelf.js: quick reference for common patterns and api methods.
Browserify
Browserify is a bundler for JavaScript.
Browsersync
Browsersync: quick reference for common patterns and api methods.
Commander.js
var cli = require('commander');
Deku v1
Quick reference for [Deku](https://www.npmjs.com/package/deku), a minimal virtual DOM library. **Deprecated:** This is for Deku v1. See [deku](./deku) for a more updated cheatsheet.
Deku v2
Quick reference for [Deku](https://www.npmjs.com/package/deku), a minimal virtual DOM library.
Express.js
Express.js: quick reference for common patterns and api methods.
Fastify
Fastify lets you create HTTP servers in Node.js with good performance. This guide targets fastify v0.28.x.
Gulp
Gulp: quick reference for common patterns and api methods.
Harvey.js
[Harvey.js](http://harvesthq.github.io/harvey/) helps you build responsive interfaces.
Immutable.js
Immutable.js: quick reference for common patterns and api methods.
Jshint
Enable these options to not throw errors in these conditions.
Koa
Koa is a web framework for Node.js.
Middleman 3
Middleman 3: quick reference for common patterns and api methods.
Mocha HTML
This is a mocha template that loads js/css from cdn.
Mocha blanket
Use [blanket](https://npmjs.com/package/blanket) for easy coverage reporting for Mocha JavaScript tests.
Mocha.js
Mocha.js: quick reference for common patterns and api methods.
Mocha.js TDD interface
Mocha.js TDD interface: quick reference for common patterns and api methods.
Modella
[Modella](https://www.npmjs.com/package/modella) allows you to create simple models in JavaScript. This is a guide on basic usage of Modella in CoffeeScript.
Modernizr
<script src='//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js'></script>
Moment.js
This parses the given date using the given format. Returns a moment object.
Nock
Nock: quick reference for common patterns and api methods.
Nopt
Nopt: quick reference for common patterns and api methods.
Parsimmon
Parsimmon: quick reference for common patterns and api methods.
Polyfill.io
Polyfill.io is a service that serves JavaScript polyfills.
Q.js
Q.js: quick reference for common patterns and api methods.
Qunit
A quick reference for the [QUnit](https://yarnpkg.com/package/qunit) testing library in JavaScript.
Ractive.js
Ractive is a UI library for JavaScript.
Ramda
A quick reference to [Ramda](https://ramdajs.com/), a practical functional programming library for JavaScript with automatic currying, data-last arguments, and immutability.
Riot.js
Riot is a UI library for JavaScript.
Rollup.js
[Rollup](https://rollupjs.org/) Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application.
Sequelize
Sequelize is an ORM for JavaScript.
Sinon-chai
Sinon-chai: quick reference for common patterns and api methods.
Spine
Spine is an MVC framework for JavaScript.
Stencil
[Stencil](https://github.com/ionic-team/stencil) is a compiler for web components made by the Ionic team. This guide targets Stencil v0.0.5.
Superagent
Superagent: quick reference for common patterns and api methods.
Tape
Tape: quick reference for common patterns and api methods.
Three.js
Three.js is a JavaScript 3D library for creating and displaying 3D graphics in the browser using WebGL/WebGPU. This covers the most commonly used API patterns.
TypeScript
TypeScript is just like ES2015 with type-checking. All ES2015 (classes, etc) should work.
Underscore-string
Underscore-string: quick reference for common patterns and api methods.
Universal JS module loader
Universal JS module loader: quick reference for common patterns and api methods.
Velocity.js
Quick reference for [Velocity.js](http://velocityjs.org), a fast animation engine that works with and without jQuery.
Virtual-dom
Virtual-dom: quick reference for common patterns and API methods.
Vows
Vows: quick reference for common patterns and api methods.
Vuex
Quick reference for [Vuex](https://vuex.vuejs.org), the state management library for Vue.js. Covers Vuex 4 (Vue 3). Note: [Pinia](https://pinia.vuejs.org) is now recommended for new projects.
Webpack
This is a very basic "getting started with Webpack" guide for use with [Webpack](https://webpack.js.org) v3. This doesn't cover all features, but it should get you started in understanding the config file format.
Weinre
[weinre](https://www.npmjs.com/package/weinre) is a remote Web inspector. Note that it has been deprecated since 2016.
Yargs
Yargs: quick reference for common patterns and api methods.
Zombie
[Zombie](http://zombie.js.org/) is a full-stack testing solution for Node.js.
jQuery CDN
jQuery CDN: quick reference for common patterns and api methods.
js-model
js-model: quick reference for common patterns and api methods.
jscoverage
A small guide into installing [jscoverage](https://npmjs.com/package./jscoverage). Also see [mocha-blanket](./mocha-blanket).
minimist
All options are optional, but it's recommended you set string and boolean at least.
w2ui
Quick reference for [w2ui](https://w2ui.com), a lightweight JavaScript UI library with grid, layout, sidebar, toolbar, tabs, form, and popup widgets. Covers v2.0 (no jQuery dependency).
Camp
[Camp](https://github.com/espadrine/sc/) is a Node.js web server framework. This guide targets Camp v17.x.
Gremlins.js
[Gremlins](https://github.com/marmelab/gremlins.js) is a JavaScript library to do "monkey-testing" by providing random user input (clicks, scrolls, and so on).
Handlebars.js
Handlebars.js: quick reference for common patterns and api methods.
Jasmine
Note: This cheatsheet may be a little outdated. Also see the Jest cheatsheet. Jest uses Jasmine, and therefore has similar API.
Meow
[meow](https://npmjs.com/package/meow) is the easiest way to write command line apps for Node.js.
Parsley.js
[Parsley](http://parsleyjs.org/doc/) provides frontend form validation.
Shell.js
[ShellJS](https://github.com/shelljs/shelljs) is a portable (Windows/Linux/OS X) implementation of Unix shell commands on top of the Node.js API.
Sinon
Sinon: quick reference for common patterns and api methods.
bluebird.js
Also see the promise cheatsheet and Bluebird.js API (github.com).
co
[co](https://github.com/tj/co) allows you to use generators to manage async flow.
expect.js
Expect is a library for assertions in tests.
jQuery
jQuery: quick reference for common patterns and api methods.
Chai.js
Chai.js: quick reference for common patterns and api methods.
Flow
Most of what you need to do is to simply add annotations to function arguments!
Jest
A quick overview to [Jest](https://facebook.github.io/jest/), a test framework for Node.js. This guide targets Jest v20.
Lodash
Works for both arrays and objects.
Pug
Pug: quick reference for common patterns and api methods.
RxJS
[RxJS](https://rxjs.dev/) is a reactive programming library for composing asynchronous and event-based programs using observable sequences. This guide covers RxJS v7.x.
Yarn
These options are available for yarn install.
Angular 6
Angular 6 introduced ng update/add CLI commands, Angular Elements, RxJS 6, tree-shakable providers, and library support.
Jade
Jade/Pug template engine syntax. Renamed to Pug in 2016.
Choo
Choo is a 4kb functional framework for building single-page applications with minimal API and real DOM diffing.
D3.js
Quick reference for D3.js v7+ — JavaScript library for data-driven DOM manipulation and data visualization.
Ember.js
MobX
[MobX](https://mobx.js.org/) is a simple, scalable, signal-based state management library. It makes state management simple by transparently applying functional reactive programming.
NProgress
[NProgress](https://ricostacruz.com/nprogress/) is a slim progress bar for Ajax applications, inspired by Google, YouTube, and Medium. Created by Rico Sta. Cruz.
Jekyll
Ledger
Hledger
Queries are used on all commands (bal, reg, etc). (docs)
Ledger CSV format
Ledger CSV format: ledger cli commands and accounting patterns.
Ledger examples
Ledger examples: ledger cli commands and accounting patterns.
Ledger format
Ledger format: ledger cli commands and accounting patterns.
Ledger periods
Ledger periods: ledger cli commands and accounting patterns.
Ledger queries
Ledger queries: ledger cli commands and accounting patterns.
Ledger CLI
Ledger CLI: ledger cli commands and accounting patterns.
Markup
Emmet
Emmet is a markup language for expanding CSS rules into HTML
Haml
Haml: syntax reference and formatting guide.
Kramdown
Kramdown is a Markdown parser in Ruby.
Rdoc
Place this at the beginning of the file.
ReStructuredText
ReStructuredText is a markup language for writing documents.
Tomdoc
Tomdoc: syntax reference and formatting guide.
Yaml
Yaml: syntax reference and formatting guide.
Markdown
Markdown: syntax reference and formatting guide.
Textile
Textile: syntax reference and formatting guide.
Liquid
Quick reference for Liquid, the safe, customer-facing template language by Shopify. Used in Shopify themes and Jekyll sites.
macOS
Node.js
Node.js API
Node.js API: node.js apis, modules, and patterns.
Node.js path API
Quick reference to the [Node.js path API](https://nodejs.org/api/path.html).
assert
assert: node.js apis, modules, and patterns.
fs
fs.readFile('file.txt', function(err, data) { .. });
process
process: node.js apis, modules, and patterns.
Node.js streams
Node.js streams: node.js apis, modules, and patterns.
package.json
Highlighted lines are required.
forever
A simple CLI tool for ensuring that a given Node.js script runs continuously (i.e. forever). Community-maintained process manager for Node.js applications.
body-parser
Node.js body parsing middleware for Express. Parses incoming request bodies (JSON, URL-encoded, raw, text) before your handlers. Built into Express 4.16.0+.
package.json
package.json manifest reference for Node.js projects. Define metadata, dependencies, scripts, entry points, and npm package configuration.
PHP
Twig
Quick reference for Twig - a modern, fast, and secure template engine for PHP used by Symfony, Drupal, and many PHP applications.
Doctrine ORM
Quick reference for Doctrine ORM with PHP 8+ attributes syntax
Laravel
Laravel is a PHP web application framework with expressive, elegant syntax. This cheatsheet covers Laravel 11.x/12.x - routing, Eloquent ORM, Blade templates, validation, and Artisan commands.
PHP
Quick reference for PHP - a popular server-side scripting language for web development covering PHP 7+ and PHP 8 modern features.
PHP 7
Quick reference for PHP 7.0-7.4 new features including type declarations, operators, arrow functions, and more.
Phalcon
Quick reference for Phalcon - a high-performance PHP framework delivered as a C extension for maximum speed with minimal overhead.
Symfony
Quick reference for Symfony 8.0 - PHP web application framework with MVC architecture, Doctrine ORM, Twig templating, and powerful CLI tools.
Python
Jinja
Jinja: quick reference and cheatsheet.
Mako
Mako: quick reference and cheatsheet.
Python
Python: quick reference and cheatsheet.
Jinja2
Jinja2 template engine for Python. Used in Flask, Ansible, and many other frameworks.
Python 2 vs 3
Side-by-side comparison of Python 2 and Python 3 syntax differences for migration and compatibility.
Django
Quick reference guide for Django 5.1 - Python web framework for building web applications with clean, pragmatic design.
Flask
Quick reference guide for Flask, the Python micro web framework. Covers routing, templates, blueprints, and more.
Rails
Arel
Arel is an SQL abstraction library built into Ruby on Rails.
Rails
Rails: rails conventions, helpers, and configuration.
Rails controllers
Rails controllers: rails conventions, helpers, and configuration.
Rails form helpers
Field names will be prefixed with post (the class name), and values will be derived from this object (eg, f.text_field :name from @post.name).
Rails helpers
distanceoftimeinwords(Time.now, project.end_date) #=> 3 hours
Rails i18n
Rails i18n: rails conventions, helpers, and configuration.
Rails migrations
$ rails generate migration RemovePartNumberFromProducts part_number:string
Rails models
Rails models: rails conventions, helpers, and configuration.
Rails plugins
Generate a Rails Engine plugin:
Rails tricks
in config/environments/development.rb:
Routes
Routes: rails conventions, helpers, and configuration.
React
Apollo GraphQL
Apollo Client: React hooks for GraphQL queries, mutations, subscriptions, and caching.
Awesome Redux
Create action creators in flux standard action format.
Flux architecture
Flux is an architecture for building client-side web applications.
React PropTypes
A quick reference to the [prop-types](https://www.npmjs.com/package/prop-types) package for runtime type checking in React components.
React.js (v0.14)
**Deprecated:** this guide targets an old version of React (v0.14). See the [updated React cheatsheet](react) for new versions.
Relay Modern
[Relay](https://relay.dev/) is Meta's GraphQL client for React with ahead-of-time compilation, data masking, and automatic cache updates. This guide covers Relay v16+.
Styled Components
CSS-in-JS library for React and React Native. Write component-scoped CSS with template literals, dynamic theming, and TypeScript support.
Enzyme
Enzyme lets you write unit tests for React components. This guide covers Enzyme 3.x.
Enzyme v2
Shallow wrapping doesn't descend down to sub-components.
Redux Saga
[Redux Saga](https://redux-saga.js.org/) is a middleware for managing side effects in Redux using generator functions. This guide covers redux-saga v1.x.
Redux
A store is made from a reducer function, which takes the current state, and
Gatsby.js
[Gatsby.js](https://www.gatsbyjs.com/) is a React-based static site generator with a GraphQL data layer, plugin ecosystem, and support for SSG, DSG, and SSR rendering modes.
React Native
[React Native](https://reactnative.dev/) lets you build native mobile apps using React. This guide covers React Native 0.83+ with Expo and React Navigation 7.
React Router
[React Router](https://reactrouter.com/) is the standard routing library for React. This guide covers React Router v7 (latest) with notes for v6 users.
Unstated
Unstated is a minimal React state management library built on the Context API. Uses Container classes with familiar setState(). Note: Unmaintained since ~2019; see unstated-next for a hooks-based successor.
React.js
[React](https://reactjs.org/) is a JavaScript library for building user interfaces. This guide targets React v15 to v16.
Ruby
ActiveAdmin
Allows you to filter listings by a certain scope.
Bundler
bundle # same as bundle install
Minitest
Minitest: ruby syntax, methods, and idioms reference.
RSpec
RSpec is a Ruby library for testing.
Rake
Rake: ruby syntax, methods, and idioms reference.
Rspec-rails
RSpec is a Ruby library for testing. rspec-rails is its Rails integration.
Ruby
Quick reference to some features of the Ruby programming language.
Ruby 2.1
Quick reference to the [new features in Ruby 2.1](https://www.ruby-lang.org/).
Rubygems
A quick reference to common [rubygems](https://rubygems.org) CLI commands.
StimulusReflex
Trigger reflexes without writing any javascript with the data-reflex attribute.
rbenv
[rbenv](https://github.com/rbenv/rbenv) lets you manage installations of multiple Ruby versions.
Goby
Goby's language design is based on Ruby language's, slim and shaped up. Differences in syntax between them is very small.
Sinatra
Quick reference for Sinatra, the lightweight Ruby DSL for creating web applications with minimal effort.
Ruby libraries
Chunky PNG
Chunky PNG: api reference and common usage patterns.
Do gem
server = DO::Server.new('srv1', 'srv1.domain.local', 'root', :key =>
FFaker
FFaker: api reference and common usage patterns.
Machinist
Machinist is a fixture management library for Ruby.
PSD.rb
[PSD.rb](https://github.com/layervault/psd.rb) parses Photoshop documents in Ruby.
Packs (ruby)
Packs are a specification for an extensible packaging system to help modularize Ruby applications.
Pry
Pry is a runtime development console for Ruby.
Sequel
Sequel is a database toolkit for Ruby.
rack-test
rack-test: api reference and common usage patterns.
Meta-tags gem
Works in a controller or a view.
Ronn
Ronn generates Man pages. See [ronn(1)](https://rtomayko.github.io/ronn/ronn.1.html), [ronn-format(7)](https://rtomayko.github.com/ronn/ronn-format.7.html). Also see it on GitHub: [rtomayko/ronn](httpss://github.com/rtomayko/ronn).
Slim
You can use parentheses, brackets, or none at all.
Factory Bot
Factory Bot is a helper for writing factories for Ruby tests. It was previously known as Factory Girl. For older versions, use FactoryGirl instead of FactoryBot.
Capybara
Capybara: api reference and common usage patterns.
Vim
Projectionist
Projectionist: vim commands, motions, and configuration reference.
Vim Easyalign
Then press options (if available), then a delimiter.
Vim digraphs
Vim digraphs: vim commands, motions, and configuration reference.
Vim helpfiles
Use ft=help to preview it, and ft=text to edit it.
Vim-Unite
Vim-Unite: vim commands, motions, and configuration reference.
Vim-rails
Vim-rails: vim commands, motions, and configuration reference.
Vimscript functions
Vimscript functions: vim commands, motions, and configuration reference.
Vimscript snippets
command! YoFunctionHere call s:YoFunctionHere()
Tabular
[Tabular](https://github.com/godlygeek/tabular) is a Vim script for text alignment.
Vim
Vim is a very efficient text editor. This reference was made for Vim 8.0.
Vim scripting
You can either put this in a script (script.vim) and run it (:source script.vim), or you can type the commands individually in normal mode as :let and :echo.
Vimdiff
[Vim](https://www.vim.org/) is a very efficient text editor. This reference was made for Vim 8.0.
Others
AGENTS.md
AGENTS.md is an open specification - a "README for AI coding agents" - providing a predictable location for project-specific context and instructions. Used by 60k+ open-source projects and supported by all major AI coding tools.
Absinthe
[Absinthe](http://absinthe-graphql.org/) allows you to write GraphQL servers in Elixir.
AngularDart
AngularDart is the Dart port of Angular, sharing the same architecture but using Dart instead of TypeScript. Used at Google for products like Google Ads.
Apache Cordova
A quick reference to common [Apache Cordova](https://cordova.apache.org/) commands.
Bolt Quickstart
Bolt is available as a package for most platforms. See installing bolt
CIDR
CIDR: quick reference and cheatsheet.
Caskroom index
Caskroom index cheatsheet with commands, syntax, and examples.
Cheatsheet styles
This is a reference of styles that you can use on Devhints cheatsheets. How meta! You can refer to this when contributing your own cheatsheets to the [GitHub repo](https://github.com/rstacruz/cheatsheets/).
Claude Code
Claude Code is an AI-powered CLI assistant for software engineering tasks. This reference covers the most commonly used commands and features.
Clojure
Quick reference for Clojure - a dynamic, functional Lisp dialect on the JVM with immutable data structures and a powerful concurrency model.
Command line stuff
Command line stuff cheatsheet with commands, syntax, and examples.
Devise
Devise is a flexible authentication
Divshot
Divshot was a static hosting platform.
F#
Quick reference for F# - a functional-first language on .NET with type inference, pattern matching, and seamless C# interop.
Figlet (Part 1)
Run figlet with -f <font> to use a font. Part 1 of 2 (fonts 3-d through ivrit).
Figlet (Part 2)
Run figlet with -f <font> to use a font. Part 2 of 2 (fonts jazmine through wideterm).
Firebase
Firebase cheatsheet with commands, syntax, and examples.
Firefox
[iframe-sandbox]: https://developer.mozilla.org/en-US/docs/HTML/Element/iframe#attr-sandbox
Food delivery (Philippines)
Food delivery numbers & sites for top restaurant chains in Metro Manila. For numbers outside Metro Manila, check their websites.
Freenode
Freenode cheatsheet with commands, syntax, and examples.
Frequency separation retouching
Duplicate the layer twice. Perform these in each layer:
Google Analytics
Google Analytics cheatsheet with commands, syntax, and examples.
Google Webfonts
Short snippets on using [Google Webfonts](https://google.com/fonts) in a web page.
GraphQL
GraphQL queries look the same for both single items or lists of items.
HCL
HCL (HashiCorp Configuration Language) is the declarative language used by Terraform for infrastructure as code. This cheatsheet covers syntax, expressions, functions, meta-arguments, and Terragrunt extensions.
HTTP Status
WebDAV is an extension of HTTP that allows clients to perform remote Web content authoring operations. It provides a framework for users to create, change and move documents on a server. It adds the f
Imagemagick
A quick reference for common [Imagemagick](https://www.imagemagick.org) commands and switches.
Java
Modern Java cheatsheet covering Java 17+ features. Focuses on current best practices and modern syntax. Legacy patterns (pre-Java 8) are intentionally excluded.
Jujutsu (jj)
Jujutsu (jj) - Git-compatible version control with automatic snapshots, no staging area, and first-class conflicts. Modern DVCS for Git users seeking better UX.
Julia
Quick reference for Julia - a high-performance dynamic language for scientific computing with multiple dispatch and a sophisticated type system.
Less.js
Less.js cheatsheet with commands, syntax, and examples.
Licenses
Licenses cheatsheet with commands, syntax, and examples.
Linux
Linux cheatsheet with commands, syntax, and examples.
Lua
Lua cheatsheet with commands, syntax, and examples.
Make for assets
Make for assets cheatsheet with commands, syntax, and examples.
MoonScript
Quick reference for MoonScript - a dynamic scripting language that compiles to Lua with classes, comprehensions, and CoffeeScript-inspired syntax.
OrbStack
Pacman
Pacman is the package manager for Arch Linux and its derivatives.
Perl-pie
Use perl to search and replace across many files.
Phusion Passenger
This is an example nginx configuration.
PlantUML
PlantUML is a markup language for creating diagrams.
Premailer
[Premailer](https://github.com/premailer/premailer/) is a Ruby library that inlines CSS into HTML.
RESTful API
Here's an example of a possible error reply.
Rust
Quick reference for Rust - a systems programming language focused on safety, speed, and concurrency with zero-cost abstractions and memory safety without garbage collection.
Saucelabs
Saucelabs cheatsheet with commands, syntax, and examples.
Siege
[Siege](https://www.joedog.org/siege-home/) is an HTTP and HTTPS load testing tool.
SimpleForm
SimpleForm cheatsheet with commands, syntax, and examples.
Spreadsheet functions
Spreadsheet functions cheatsheet with commands, syntax, and examples.
Swift
Quick reference for Swift - Apple's modern, safe, and fast programming language for iOS, macOS, watchOS, tvOS, and server-side development.
Ubuntu
aptitude search mysql # Look for something
Unicode symbols
Unicode symbols cheatsheet with commands, syntax, and examples.
Vainglory
Vainglory: game items, builds, and strategy reference.
ZNC bouncer
A quick reference to the [ZNC](https://znc.bg) IRC bouncer's common commands.
Zed
Quick reference for Zed - a high-performance, multiplayer code editor built in Rust with built-in AI assistance and real-time collaboration.
iOS Provisioning Profiles
Needed for Adhoc & Appstore builds.
Screen resolutions
Screen resolutions cheatsheet with commands, syntax, and examples.
Watchman
Watchman cheatsheet with commands, syntax, and examples.
regexp
For multiline patterns (m flag), ^ and $ will act as start and end of line.
Semver
Given a version number MAJOR.MINOR.PATCH:
Date & time formats
Used by Ruby, UNIX date, and many more.
Krew
Official kubectl plugin manager for discovering, installing, and managing kubectl plugins.
MarkoJS
[MarkoJS](https://markojs.com/) is a compiler-based UI framework created by eBay with built-in streaming SSR, partial hydration, and an HTML-first syntax.
SolidJS
SolidJS is a reactive JavaScript framework for building user interfaces. Fine-grained reactivity, no Virtual DOM, components run once. ~7KB gzipped.
kubens
Fast Kubernetes namespace switching tool. Switch namespaces with interactive fuzzy search, previous namespace toggle, and force-set for non-existent namespaces.
strftime format
The strftime format is the standard date formatting for UNIX. It's used in C, Ruby, and more.
APEX
Quick reference for APEX - Salesforce's strongly typed, object-oriented programming language for the Force.com platform.
AWS EKS
Amazon Elastic Kubernetes Service (EKS) - Fully managed Kubernetes on AWS. Reference for EKS architecture, node types (EC2/Fargate), IAM/RBAC, networking, storage, add-ons, and troubleshooting common issues.
Astro
Astro is a modern web framework for building fast, content-focused websites with zero JS by default and Islands Architecture for interactive components.
Brainfuck
Brainfuck is a minimalist esoteric programming language created by Urban Müller in 1993. With only 8 commands, it's Turing-complete yet intentionally difficult to use—perfect for understanding computational fundamentals.
Bun
Fast all-in-one JavaScript runtime with bundler, test runner, and package manager. Drop-in replacement for Node.js with native TypeScript support.
C++
Quick reference for modern C++ (C++11 through C++23) covering STL containers, smart pointers, move semantics, and templates.
Common Lisp
Quick reference for Common Lisp development with SBCL and SLIME integration.
Crystal
Quick reference for Crystal - a statically-typed, compiled language with Ruby-like syntax that compiles to native code via LLVM.
Dart
Quick reference for Dart - a client-optimized language for fast apps on any platform and the primary language for Flutter development.
Deno
Quick reference for Deno - a modern JavaScript/TypeScript runtime with secure defaults, built-in tooling, and native TypeScript support.
Elm
Elm is a functional programming language for building reliable web applications with no runtime exceptions. Features the Elm Architecture (Model-Update-View), strong static typing, and friendly compiler errors.
Erlang
Quick reference for Erlang - a functional language built for massively concurrent, fault-tolerant, distributed systems with hot code swapping.
Groovy
Groovy is a powerful, optionally typed and dynamic language for the JVM with static compilation capabilities. This guide covers Groovy syntax, operators, closures, and Gradle DSL.
Haskell
Quick reference for Haskell - a purely functional programming language with strong static typing, lazy evaluation, and powerful type inference.
Helm
Helm is the package manager for Kubernetes. This guide covers Helm v4 (latest), v3, and migration from v2. Quick reference for install, upgrade, rollback, debugging, hooks, and troubleshooting.
JSON Schema
Quick reference for JSON Schema Draft 2020-12 - validate JSON documents with declarative schemas
JSON:API
Quick reference for JSON:API v1.1 specification - a standardized format for building APIs in JSON
Kubernetes Distribution
Quick reference for Kubernetes architecture, API versions, resource groups, and distribution management with kOps.
Lit
Quick reference for Lit - Simple, fast, web components library. Build encapsulated, reusable components with reactive properties, declarative templates, and scoped styles.
Next.js
[Next.js](https://nextjs.org/) is a React framework for building full-stack web applications. It provides server-side rendering, static generation, file-based routing, and built-in optimizations.
Nim
Quick reference for Nim - a statically typed compiled systems programming language with Python-like syntax, metaprogramming capabilities, and multiple backend targets (C/C++/JS).
Perl
Quick reference for Perl - a high-level, interpreted language renowned for text processing, regular expressions, and system administration.
Polymer 2
[Polymer 2](https://polymer-library.polymer-project.org/2.0/docs/) is a library for building web components using the Web Components standards. Note: Polymer is in maintenance mode — [Lit](https://lit.dev) is recommended for new projects.
Preact
Fast 3kB alternative to React with the same modern API. Preact provides the thinnest possible Virtual DOM abstraction on top of the real DOM.
Qwik
Qwik is a resumable web framework with ~1KB initial JavaScript load. No hydration needed - apps resume where server left off.
R
Quick reference for R - a language and environment for statistical computing, data analysis, and visualization widely used in data science.
Razor
Quick reference for ASP.NET Core Razor template syntax - the server-side markup language for creating dynamic web pages with C#.
ReasonML
ReasonML is a syntax extension for OCaml with first-class React support and JavaScript interop. This guide covers syntax, types, patterns, and interop.
Scala
Quick reference for Scala - a multi-paradigm language blending object-oriented and functional programming on the JVM.
Smalltalk
Smalltalk is a pure object-oriented programming language where everything is an object and computation happens through message passing. Its syntax is famously minimal—it fits on a postcard.
Solidity
Solidity is a statically-typed, object-oriented programming language for writing smart contracts on Ethereum and EVM-compatible blockchains.
Spring Boot
Spring Boot is an opinionated framework for building production-ready Spring applications with minimal configuration.
Svelte
Svelte is a radical new approach to building user interfaces. Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.
Terragrunt
Terragrunt is a thin wrapper for Terraform/OpenTofu that provides extra tools for keeping configurations DRY, working with multiple modules, and managing remote state.
VBA
Quick reference for VBA (Visual Basic for Applications) - the programming language for Microsoft Office automation, macros, and Excel scripting.
Vite
Fast, modern frontend build tool with native ESM, instant HMR, and optimized production builds. Vite provides a lightning-fast dev experience for modern web projects.
Zig
Quick reference for Zig programming language - a general-purpose systems language focused on robustness, optimal performance, and maintainability with compile-time execution and seamless C interop.
eksctl
Official CLI tool for Amazon EKS. Automates cluster creation, management, and operations using declarative YAML configs and CLI commands.
gRPC
High-performance RPC framework using Protocol Buffers over HTTP/2 with cross-language support
iOS Development
Quick reference for iOS development with SwiftUI and UIKit frameworks. Covers state management, navigation, networking, and iOS-specific APIs.
iOS Development with Swift
Quick reference for iOS-specific development with Swift. Covers SwiftUI, UIKit interop, state management, navigation, data persistence, and iOS APIs. For Swift language syntax, see the Swift cheatsheet.
kubectl
Command-line tool for Kubernetes. Deploy apps, inspect resources, debug pods, view logs, and manage clusters. Complete reference for kubectl commands, troubleshooting workflows, and common error fixes.
kubectx
Fast way to switch between Kubernetes clusters and contexts.