1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-06-14 22:27:33 +02:00

2230 Commits

Author SHA1 Message Date
Manjunath Prabhakar
0df6062c3a
Updated the $X() usage as it supports chromium (#2183)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2025-05-11 01:12:59 +10:00
Denis Telnov
6253384e7d
Embedded Images in Markdown (#2174)
[GFM](https://loilo.github.io/gfm-preview/) now supports the ability to
embed Base64 encoded images in Markdown.
2025-01-20 14:34:19 +11:00
Mohamed Ziata
83e30b2c0e
📝 Add packs.md (#2152)
Adding a page per `packs` documentation on
https://github.com/rubyatscale/packs

`packs` is a system to modualize ruby projects.

---------

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2024-09-24 23:25:54 +10:00
Aarsh
db4b9363e0
fix: annoying browser suggestions (#2160)
I was looking for notes and then when i was searching svelte i couldn't
see the possible search hits.so i turned autocomplete off now it works
like charm.
2024-09-24 23:24:33 +10:00
Morten Siebuhr
25eaa9a78c
Update tar.md to show file-listing (#2162) 2024-09-24 23:23:51 +10:00
Nick Korostelev
1fa8ae160f
Python: add Set and modify Dict (#2163) 2024-09-24 23:23:27 +10:00
Cyprien
746bae2ebe
Update jsdoc.md to use the @import keyword (#2159)
Added the newer import syntax that works on TS 5.5
2024-07-29 21:40:12 +10:00
David Lakin
27970b1495
Add missing syntax highlighting to python.md (#2154)
Fixes missing code highlighting in half of the Python code snippets.

The top half of the page had code examples formatted as code blocks with
4 space character indentations and no syntax highlighting as a result.

The bottom half on the other hand, used code blocks surrounded by
"```py" formatting brackets which hints to many markdown renders that
syntax highlighting should be applied.

This unifies the code blocks in the top half of the page to use the same
formatting syntax used in the bottom half with syntax highlighting.

This change was prompted by requests to add the syntax highlighting in
comments on the https://devhints.io/python page.
2024-07-16 22:32:46 +10:00
Rico Sta. Cruz
edfb8bba78
Update cache GitHub action (#2147)
The `actions/cache`acrion uses the deprecated Node 16 runtime. Upgrading
actions/cache should fix this.
2024-06-27 21:00:10 +10:00
Çınar Civan
403cc72ee3
New shortcut for vim.md (#2143)
New shortcut `:q!` added for quit without checking changes in `vim.md`
file.
2024-06-27 20:38:14 +10:00
Chris​‌​‮ ‬Hayes‌​​​
5c9fd725cf
Include warning on polyfill.io sheet; use CF instead (#2146)
A warning is added to the polyfill.io sheet in relation to the malicious
script that is now being served by polyfill.io. Removed all links to
that domain.

The code snippets have also been updated to use Cloudflare's script
instead. This allows users to keep using polyfill securely while they
move their codebase away from using this polyfill.

Cloudflare press release:
https://blog.cloudflare.com/polyfill-io-now-available-on-cdnjs-reduce-your-supply-chain-risk

Fixes #2145

---------

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2024-06-27 20:35:59 +10:00
Rico Sta. Cruz
fffa95b86b
Bump updated for tmux 2024-04-08 18:36:29 +10:00
Mathis Chenuet
1325a4c6e6
Add search to tmux, explain mouse support for scrolling (#2036) 2024-04-08 18:34:11 +10:00
Rico Sta. Cruz
7f81a61d0d
Remove vestegial files (#2135)
Files that should have been removed in the recent refactors, but
weren't.
2024-04-08 18:33:43 +10:00
Rico Sta. Cruz
42dd9eff84
Readability updates (#2134)
This PR updates the headings to avoid thin font weights and low
constrast ratios.

<table>
<tr>
<th>Before</th>
<th>After</th>
</tr>
<tr>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/b7313b99-0376-49c1-84cd-e3476b2c84ff)

</td>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/c2aec010-9976-4543-910b-dd9112995846)

</td>
</tr>
<tr>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/e214d4a5-9a20-4a86-abc8-3261fc418192)

</td>
<td>


![image](https://github.com/rstacruz/cheatsheets/assets/74385/71a91afc-aa7b-4b8b-adf2-30a976c4a324)

</td>
</tr>
</table>
2024-04-03 23:37:00 +11:00
Rico Sta. Cruz
511de900ba
Formatting updates (#2133)
- Update some sheets which have very long sections
- Remove `layout: 2017/sheet` (everything has the same layout now)
- Remove outdated sheets
2024-04-03 18:30:24 +11:00
Rico Sta. Cruz
641915c80c
Prevent double-build in PR's 2024-03-30 18:53:37 +11:00
Rob Barreca
d62bbeb024
Fix before/after with no arg (#2042)
No arg defaults to :each not :all 


https://www.rubydoc.info/github/rspec/rspec-core/RSpec%2FCore%2FHooks:before
2024-03-29 18:55:47 +11:00
Artem
758a48d9c5
Update pm2.md (#2080)
about counters :)
2024-03-29 18:55:36 +11:00
Sam Weaver
8e03519c2b
Add example of not operator to lua.md (#2095) 2024-03-29 18:55:22 +11:00
slockhax
e067bd588d
Updated out of date link in go.md (#2092)
Previous link for the Go wiki was no longer valid. Updated to the
current wiki site location.

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2024-03-29 18:48:34 +11:00
luka598
ba20f0bf67
Fix typo. Add second star to the beginning of jsdoc block. (#2085)
Change this
```js
/*
 * @alias Foo.bar
 * @name Foo.bar
 */
```
to this
```js
/**
 * @alias Foo.bar
 * @name Foo.bar
 */
```

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2024-03-29 18:48:15 +11:00
Rico Sta. Cruz
9ef88ffade
Run workflow on pull request 2024-03-29 18:46:24 +11:00
Menno Spijker
4b05ba3b0a
Update kotlin.md (#2096)
Added return type on method.

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2024-03-29 18:44:16 +11:00
Rico Sta. Cruz
a7b5dbe1e7
Remove inactive cheatsheets (#2131)
Remove some very old ones that may not be relevant anymore.
2024-03-29 18:41:21 +11:00
Rico Sta. Cruz
d138253d1e
Use aggressive CSS inlining 2024-03-28 23:57:44 +11:00
Rico Sta. Cruz
49f5585e62
Remove Cloudflare beacon 2024-03-28 22:01:42 +11:00
Rico Sta. Cruz
feb02eb551
Update carbon CDN URL 2024-03-28 21:13:20 +11:00
Rico Sta. Cruz
a7335649e2
Fix Cloudflare beacon 2024-03-28 21:07:58 +11:00
Rico Sta. Cruz
faa73e54b0
Bump HTTP caching in assets 2024-03-28 20:10:10 +11:00
Rico Sta. Cruz
44bdd413fb
Major rewrite (!) (#2130) 2024-03-28 19:59:22 +11:00
Rico Sta. Cruz
bf059536c6
Disable publishing to gh-pages branch (#2129)
* Delete .github/workflows/deploy.yml

* Move to links.ts
2024-03-28 00:44:09 +11:00
Rico Sta. Cruz
021ec16bf1
Remove auto deployment to gh-pages (#2127) 2024-03-25 10:36:00 +11:00
Rico Sta. Cruz
1c9e012802
Add Cloudflare Pages redirects file (#2126) 2024-03-24 23:57:02 +11:00
Rico Sta. Cruz
2ac6e0ed0c
Update Node/Ruby versions (#2125)
* Update versions

* Bump GitHub workflows
2024-03-24 23:48:08 +11:00
Yudai Takada
dc91d7f64e
Remove a case that is not negative examples in the capybara sheet (#2122)
The above case is a new Bad case added by https://github.com/rstacruz/cheatsheets/pull/1798 . It is designated as Bad due to performance issues, but it is not actually a Negative example. In practice, the following would be the same test:

```ruby
expect(page).to have_button('Save')
!expect(page).to have_button('Save')
```

This is not an example that will appear on the capybara cheat sheet, because it is a problem with how RSpec is written. I think it should be removed because it creates confusion.
2024-03-22 08:53:55 +11:00
Yudai Takada
e8bfec363f
Fix some typos (#2121)
* mispelling ==> misspelling

* boundry ==> boundary

* Subsituted ==> Substituted

* expresion ==> expression

* bandwith ==> bandwidth

* Contstructor ==> Constructor

* chaning ==> changing

* retrive ==> retrieve

* mached ==> matched

* devlopment ==> development

* inheritence ==> inheritance

* browers ==> browsers

* avalible ==> available

* funciton ==> function

* calulate ==> calculate
2024-03-22 08:53:26 +11:00
Jared Wenerd
bdf7fc2505
applescript handler example (#2124) 2024-03-22 08:53:08 +11:00
Tamas Papp
dc066dc18f
Remove redundant syntax (#2111)
Either use the `function` or `()` but not both, it's redundant.
2024-03-16 00:26:36 +11:00
BSD-Yassin
46907176f9
Two changes : Correction on Fish cheatsheet & version update on Docker compose (#2115)
* fixed conditional equal operator as per the official documentation https://fishshell.com/docs/current/cmds/test.html

* updated docker compose cheatsheet, added good to remember functionalities and added V2 mention

---------

Co-authored-by: yassin <yassin.bousaadi@sword-group.com>
2024-03-16 00:25:32 +11:00
Daniel Metzler
4f18d6a46b
Update cron.md (#2116)
Added missing special strings for crontab
2024-03-16 00:24:53 +11:00
Rico Sta. Cruz
d4cac4c37e
Fix some formating issues 2024-03-16 00:23:32 +11:00
Rico Sta. Cruz
3e4487a8ed
Fix formatting of /bash 2024-03-16 00:21:53 +11:00
JoeSSi
d328285853
new sed commands (#2104)
* delete and insert text with sed

* regex ranges and replacements

---------

Co-authored-by: joessi <jossipro9@gmail.com>
2024-02-15 07:43:19 +11:00
Rico Sta. Cruz
ccd97452a6
yum: update formatting 2024-02-15 07:42:47 +11:00
Guillaume Dorschner
3be696141e
Yum cheatsheet (#2101)
See the documentation used : https://access.redhat.com/sites/default/files/attachments/rh_yum_cheatsheet_1214_jcs_print-1.pdf
2024-02-15 07:41:45 +11:00
Mateus Caruccio
7317522a8c
Adds Indirection and prefix name expansion (#2102) 2024-02-15 07:40:36 +11:00
Drew Arrigoni
c7d50cdbe1
Add contains exactly and match array expectations (#2106) 2024-02-15 07:40:15 +11:00
Rico Sta. Cruz
6fbdf3efbe
Update dependencies, Ruby, Node (#2099)
* Update deps

* Update GitHub actions

* Update netlify runtimes

* Add csv

* Downgrade to Ruby 3.2.3
2024-02-04 22:35:55 +11:00
TheDarkTron
e21b17f5e7
Changed basics section to start/detach/list/reattach since these is the dominant usecase (#2098) 2024-02-04 19:25:40 +11:00