Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
9571389
Upgrade to Node v16 and new GitHub action steps (#1814)
rstacruz Mar 29, 2022
03a1464
update markdown (#1811)
whinc Apr 4, 2022
5a312cd
Fixed bug in WaitGroup example (#1809)
deefstes Apr 4, 2022
2060d12
Update top.md (#1604)
TimetravelerDD Apr 4, 2022
cd27a16
Update heroku.md (#1807)
akshaydrunk Apr 6, 2022
1c43d9f
Add Logical Or example to RSpec (#1554)
mycarrysun Apr 7, 2022
685ac70
jinja: fix typo in front-matter (#1825)
hydrargyrum May 6, 2022
8b42b19
Update mako.md
rstacruz May 6, 2022
484fba6
Added new resources (#1823)
mariuszmichalowski May 7, 2022
689e6a5
Update rdoc.md
rstacruz May 18, 2022
f142dce
Fix typo (#1834)
May 19, 2022
e7d44f5
Update rdoc.md (#1832)
cbliard May 19, 2022
b86ebd8
Updated docker-compose.md (#1827)
jaw3l May 20, 2022
994a66d
Fix back button showing up on home (#1835)
yowmamasita May 21, 2022
b50655f
Update top.md (#1837)
sontru Jun 3, 2022
5b68e05
Add usage of strict shell (#1841)
OmegaSquad82 Jun 9, 2022
34e7fe3
Removed unnecessary dot from the require-dev command (#1842)
kkomelin Jun 9, 2022
955bc18
fix react confusion Fragments don't require keys! (#1847)
raigorx Jun 13, 2022
3a367c9
Update git-log-format.md (#1853)
zgrannan Jul 7, 2022
05b5e05
Added link to Introduction section (#1854)
iamtew Jul 7, 2022
14068e6
Add @async to JSDoc `Other keywords` section (#1819)
cayleyh Jul 7, 2022
d62209e
Added restart policy to other options (#1831)
throny Jul 7, 2022
e02473b
add ${PIPESTATUS[c]} special var (#1800)
freeeflyer Jul 7, 2022
68758d5
Add tar cheatsheet (#1870)
ztec Aug 11, 2022
5fb0ab2
Added few methods to JS Array (#1865)
Sharvan45 Aug 11, 2022
3cd65f1
Update environment versions
rstacruz Sep 14, 2022
d8fb418
Improve indent (#1874)
disksing Sep 14, 2022
288baef
Update mysql.md (#1879)
whinc Sep 14, 2022
fac4d1e
Update kotlin.md (#1885)
lovelyingtam Oct 5, 2022
6999e94
Update typescript.md (#1863)
JonghwanWon Oct 27, 2022
271e0b7
bash.md: update with best practices (#1897)
tripleee Oct 30, 2022
09d5779
added capturing group reference term (#1896)
original-taste Oct 30, 2022
0a6785c
Add Healthcheck cheatsheet (#1892)
lmarvaud Nov 1, 2022
58232cc
Bump runtime versions (Node.js v18) (#1900)
rstacruz Nov 1, 2022
f1dfc08
Bump github-pages gem (v227) (#1901)
rstacruz Nov 1, 2022
655647d
npm: add "npm rm" (#1839)
hmvs Nov 1, 2022
1a0c86e
grep: slashes do not need backslashes (#1899)
tripleee Nov 1, 2022
a5abcae
sed: fix "!p" example (#1898)
tripleee Nov 1, 2022
287295e
docker: Add depends_on long syntax (#1891)
lmarvaud Nov 1, 2022
5f5ce3e
Using latest rollup babel plugin (#1536)
atomicpages Nov 1, 2022
b7f08ce
Update subgrid value (#1797)
ingadi Nov 1, 2022
71a0a65
update some links from http to https where supported (#1647)
lpmi-13 Nov 1, 2022
5522b61
fix(mysql): fix mysql backup typo (#1628)
diodonfrost Nov 1, 2022
076c9d6
Fix merge flag name (#1623)
lucendio Nov 1, 2022
859d8e4
fix: make the meaning of ^ and $ more precise (#1905)
WindowsXp-Beta Dec 2, 2022
83017d3
Update bash.md (#1917)
soniah Dec 15, 2022
58a1129
Update tig cheatsheet (#1918)
dshahbaz Dec 22, 2022
0004412
tig: Fix traling newline in header (#1930)
dshahbaz Jan 2, 2023
d7fc5cc
Update gnupg.md (#1932)
lzrdblzzrd Jan 4, 2023
66b6648
go-updates: Added variables and constants additions (#1931)
igenexxx Jan 4, 2023
c8aa8f2
Add import useState (#1906)
junsantilla Jan 4, 2023
9cc370f
Added 2 movement shortcuts (#1903)
AndiKod Jan 4, 2023
9b0e8f2
Added nested list items, moved image embedding with reference to own …
TheDarkTron Jan 18, 2023
0d16abc
Include have_current_path into expectations (#1938)
notapatch Jan 18, 2023
04d0b8d
Removed :q! and :qa! (#1944)
TheDarkTron Jan 27, 2023
11cfb5c
Added Search & Replace command (#1943)
TheDarkTron Jan 27, 2023
cd02bb5
Correct the `--include` option (#1948)
yuezk Jan 31, 2023
5efbf15
Added basic syntax for dictionaries and lists (#1947)
TheDarkTron Jan 31, 2023
b91885e
Alternative form of long prefix/suffix removal (#1941)
daniel347x Jan 31, 2023
6b4c9ef
Add npm-version command to npm cheatsheet (#1553)
wbqd Jan 31, 2023
6afbde3
Update find.md (#1783)
peter-scholtens Jan 31, 2023
9c1026d
Update vimscript.md (#1952)
Feb 24, 2023
877f83f
Update _data/carbon.yml
rstacruz Mar 10, 2023
cc9f243
Refresh README: mention similar projects (#1961)
Mar 13, 2023
ab9ab48
Add Command Line Interface Pages (CLIP) page syntax examples (#1953)
Mar 13, 2023
711ba22
Content formatting update (#1965)
rstacruz Mar 13, 2023
c8d1d57
Content formatting update (part 2) (#1966)
rstacruz Mar 13, 2023
ea5f910
Content formatting update (part 3) (#1967)
rstacruz Mar 14, 2023
db559f8
Remove bad negative example from capybara sheet (#1798)
getschomp Mar 14, 2023
05890aa
Update clip.md
rstacruz Mar 14, 2023
39a6c1a
Content formatting update (part 5) (#1969)
rstacruz Mar 14, 2023
748c2a6
Update Google Analytics settings (#1970)
rstacruz Mar 14, 2023
62e5f5f
bash: Recover broken links using Web Archive (#2004)
Habetdin Jun 2, 2023
726e5c0
Consistent Dates in js-date.md (#2006)
dip-land Jun 6, 2023
76e9d99
Update graphql.md (#2014)
tylercaceres Jun 23, 2023
ca529c9
Minor update to the Variables section to BASH cheat sheet. (#2016)
bschonec Jun 23, 2023
a2d0c92
fix typo in tar.md (#2020)
altJake Jul 19, 2023
90dbde9
Update fish-shell.md (#2022)
miili Jul 19, 2023
ba8d918
docker system commands added (#1778)
njmsaikat Jul 19, 2023
9c2b6d7
mako: Fix snippet and frontmatter (#1824)
rstacruz Jul 19, 2023
3b16d4c
Update vimscript.md (#2008)
Omcsesz Jul 20, 2023
af33da8
Update to github-pages@228 (#2067)
rstacruz Oct 11, 2023
122e4d4
sequel.md: many_to_many {left,right}_{id=>key} (#2073)
3ynm Dec 13, 2023
afb4634
Fix typo for grep (#2075)
ahangarha Dec 13, 2023
1dbdb9c
Fix spelling (#2069)
m-sekhon Dec 13, 2023
de4bb16
Add multi range brace expansion to bash.md (#2071)
Iftakharpy Dec 13, 2023
95c60a0
Update announcement
rstacruz Dec 13, 2023
e21b17f
Changed basics section to start/detach/list/reattach since these is t…
TheDarkTron Feb 4, 2024
6fbdf3e
Update dependencies, Ruby, Node (#2099)
rstacruz Feb 4, 2024
c7d50cd
Add contains exactly and match array expectations (#2106)
DArrigoni Feb 14, 2024
7317522
Adds Indirection and prefix name expansion (#2102)
caruccio Feb 14, 2024
3be6961
Yum cheatsheet (#2101)
GuillaumeDorschner Feb 14, 2024
ccd9745
yum: update formatting
rstacruz Feb 14, 2024
d328285
new sed commands (#2104)
mygitlabo Feb 14, 2024
3e4487a
Fix formatting of /bash
rstacruz Mar 15, 2024
d4cac4c
Fix some formating issues
rstacruz Mar 15, 2024
4f18d6a
Update cron.md (#2116)
dmetzler1988 Mar 15, 2024
4690717
Two changes : Correction on Fish cheatsheet & version update on Docke…
BSD-Yassin Mar 15, 2024
dc066dc
Remove redundant syntax (#2111)
tomposmiko Mar 15, 2024
bdf7fc2
applescript handler example (#2124)
jwenerd Mar 21, 2024
e8bfec3
Fix some typos (#2121)
ydah Mar 21, 2024
dc91d7f
Remove a case that is not negative examples in the capybara sheet (#2…
ydah Mar 21, 2024
2ac6e0e
Update Node/Ruby versions (#2125)
rstacruz Mar 24, 2024
1c9e012
Add Cloudflare Pages redirects file (#2126)
rstacruz Mar 24, 2024
021ec16
Remove auto deployment to gh-pages (#2127)
rstacruz Mar 24, 2024
bf05953
Disable publishing to gh-pages branch (#2129)
rstacruz Mar 27, 2024
44bdd41
Major rewrite (!) (#2130)
rstacruz Mar 28, 2024
faa73e5
Bump HTTP caching in assets
rstacruz Mar 28, 2024
a733564
Fix Cloudflare beacon
rstacruz Mar 28, 2024
feb02eb
Update carbon CDN URL
rstacruz Mar 28, 2024
49f5585
Remove Cloudflare beacon
rstacruz Mar 28, 2024
d138253
Use aggressive CSS inlining
rstacruz Mar 28, 2024
a7b5dbe
Remove inactive cheatsheets (#2131)
rstacruz Mar 29, 2024
4b05ba3
Update kotlin.md (#2096)
spijkermenno Mar 29, 2024
9ef88ff
Run workflow on pull request
rstacruz Mar 29, 2024
ba20f0b
Fix typo. Add second star to the beginning of jsdoc block. (#2085)
luka598 Mar 29, 2024
e067bd5
Updated out of date link in go.md (#2092)
slockhax Mar 29, 2024
8e03519
Add example of `not` operator to lua.md (#2095)
weaversam8 Mar 29, 2024
758a48d
Update pm2.md (#2080)
ArtemSkachko Mar 29, 2024
d62bbeb
Fix before/after with no arg (#2042)
rbarreca Mar 29, 2024
641915c
Prevent double-build in PR's
rstacruz Mar 30, 2024
511de90
Formatting updates (#2133)
rstacruz Apr 3, 2024
42dd9ef
Readability updates (#2134)
rstacruz Apr 3, 2024
7f81a61
Remove vestegial files (#2135)
rstacruz Apr 8, 2024
1325a4c
Add search to tmux, explain mouse support for scrolling (#2036)
artemisart Apr 8, 2024
fffa95b
Bump updated for tmux
rstacruz Apr 8, 2024
5c9fd72
Include warning on polyfill.io sheet; use CF instead (#2146)
Christopher-Hayes Jun 27, 2024
403cc72
New shortcut for vim.md (#2143)
cinarcivan Jun 27, 2024
edfb8bb
Update cache GitHub action (#2147)
rstacruz Jun 27, 2024
27970b1
Add missing syntax highlighting to python.md (#2154)
DaveLak Jul 16, 2024
746bae2
Update jsdoc.md to use the @import keyword (#2159)
Kipre Jul 29, 2024
1fa8ae1
Python: add Set and modify Dict (#2163)
nkoroste Sep 24, 2024
25eaa9a
Update tar.md to show file-listing (#2162)
msiebuhr Sep 24, 2024
db4b936
fix: annoying browser suggestions (#2160)
aarsh21 Sep 24, 2024
83e30b2
:memo: Add packs.md (#2152)
WaKeMaTTa Sep 24, 2024
6253384
Embedded Images in Markdown (#2174)
denius Jan 20, 2025
0df6062
Updated the $X() usage as it supports chromium (#2183)
codebymad May 10, 2025
17bd2c9
Fix playwright (#2188)
rstacruz Jun 29, 2025
93d0654
Bash: add Herestring & Process substitution chapters (#2184)
pismy Jun 29, 2025
1ba47a8
Add additional keywords to jsdocs.md (#2171)
alesm0101 Jun 29, 2025
b00d106
bash: adjust example to read from file into array (#2187)
kjetilho Jun 30, 2025
c2ffe99
Add Set Theory section to vim-digraphs cheatsheet (#2186)
gwpl Jul 4, 2025
1f681bd
Remove duplicate `:disabled` (#2195)
tylerwoodcook Aug 23, 2025
01ee3a8
adding an alternate shorter way that does not depend on the basename …
cubangeorge Aug 23, 2025
97db63d
Add Claude Code cheatsheet with comprehensive command reference (#2190)
cifren Aug 23, 2025
05aa18e
Add AGENTS.md (+1 more changes)
rstacruz Nov 1, 2025
793a262
Update AGENTS.md (+1 more changes)
rstacruz Nov 1, 2025
4ed3884
Update _docs/writing-guidelines.md
rstacruz Nov 1, 2025
f4cc3b1
chore(node): update Node.js version to 22.21.1 in .node-version
rstacruz Nov 4, 2025
6b3b354
Added rclone page (#2199)
praveen-pravi6B Nov 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 0 additions & 11 deletions .babelrc

This file was deleted.

1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

37 changes: 37 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* eslint-env node */
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:astro/recommended',
'prettier'
],
env: {
browser: true // enables window, document, etc
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
ignorePatterns: ['dist/**'],

overrides: [
{
files: ['*.test.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
},
{
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro']
}
// rules: {
// override/add rules settings here, such as:
// "astro/no-set-html-directive": "error"
// },
}
]
}
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

File renamed without changes
73 changes: 31 additions & 42 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,39 @@
name: Build and test
on: push

name: Run tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# https://github.com/actions/cache/blob/master/examples.md#node---yarn
- name: "Cache: Get yarn cache directory path"
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: "Cache: Set up yarn cache"
uses: actions/cache@v2
id: yarn-cache
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

# https://github.com/actions/cache/blob/master/examples.md#ruby---bundler
- name: "Cache: Set up bundler cache"
uses: actions/cache@v2
bundler-cache: true
- uses: actions/setup-node@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-

- name: Use Node.js
uses: actions/setup-node@v1
with: { node-version: '12.x' }

- name: Use Ruby
uses: actions/setup-ruby@v1
with: { ruby-version: '2.7' }
node-version-file: .node-version
- uses: pnpm/action-setup@v3
with: { run_install: false }

- name: Setup dependencies
# https://github.com/pnpm/action-setup?tab=readme-ov-file#use-cache-to-reduce-installation-time
- name: Get pnpm store directory
shell: bash
run: |
yarn --frozen-lockfile
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3

- run: yarn build
- run: yarn test
- run: yarn test:smoke
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install playwright browsers
run: pnpm playwright install --with-deps chromium
- name: Run tests
run: pnpm run ci
83 changes: 0 additions & 83 deletions .github/workflows/deploy.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/rebase.yml

This file was deleted.

36 changes: 26 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
_output
_site
.jekyll-metadata
/node_modules
/vendor
.idea/

# Generated by 'yarn dev'
/_includes/2017/critical/*
/assets/packed/*
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

.cache

# playwright
test-results
15 changes: 0 additions & 15 deletions .gitpod.yml

This file was deleted.

1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.21.1
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
src/sass/vendor
vendor
.cache
dist
*.md
pnpm-lock.yaml
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none"
"trailingComma": "none",
"plugins": ["prettier-plugin-astro"]
}
13 changes: 0 additions & 13 deletions .projections.json

This file was deleted.

1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.2
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
8 changes: 8 additions & 0 deletions .vscode/markdown.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Test snip": {
"prefix": ["about"],
"body": "Copyright. Foo Corp 2028",
"description": "Adds copyright...",
"scope": "markdown"
}
}
1 change: 0 additions & 1 deletion 101.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: 101
category: JavaScript libraries
layout: 2017/sheet
updated: 2017-09-21
intro: |
[101](https://www.npmjs.com/package/101) is a JavaScript library for dealing with immutable data in a functional manner.
Expand Down
5 changes: 0 additions & 5 deletions 404.html

This file was deleted.

25 changes: 25 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Agent guidelines for devhints.io

## Commands

- **Dev server**: `pnpm dev` (requires Ruby for markdown caching)
- **Build**: `pnpm build`
- **Test**: `pnpm test` (runs Vitest in watch mode)
- **Run single test**: `pnpm vitest run <file-path>` or `pnpm vitest <file-path>` (watch mode)
- **All tests (CI)**: `pnpm ci` (runs all linters, tests, and build)
- **Lint**: `pnpm eslint:check` or `pnpm prettier:check`
- **Format**: `pnpm format` (runs both ESLint and Prettier fixes)

## Code style

- **Package manager**: pnpm (v8.15.4+)
- **Framework**: Astro with TypeScript (strict mode), Tailwind CSS
- **Imports**: Use `~/` alias for `src/` directory; Prettier organizes imports automatically
- **Types**: Use Zod schemas for runtime validation (see `SheetFrontmatter.ts`); TypeScript strict mode enabled
- **Naming**: camelCase for variables/functions, PascalCase for components/types
- **Error handling**: Distinguish operational (expected) vs unexpected errors; return error objects for operational errors
- **Testing**: Vitest with globals enabled; use `it.each()` for repeated test cases; prefer object constants over helper functions

## Markdown files

Consult @_docs/writing-guidelines.md for formatting *.md files.
Loading