| name | description |
|---|---|
no-use-effect |
Enforce the no-useEffect rule when writing or reviewing React code.
ACTIVATE when writing React components, refactoring existing useEffect calls,
reviewing PRs with useEffect, or when an agent adds useEffect "just in case."
Provides the five replacement patterns and the useMountEffect escape hatch.
|
Discover gists
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server_name nas.yourdomain.com 192.168.xxx.xxx; | |
| location /sabnzbd { | |
| proxy_pass https://localhost:9080/sabnzbd; | |
| } | |
| location /sonarr { | |
| proxy_pass http://localhost:8989/sonarr; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* BEGIN Mokum.place tweaks */ | |
| /* ==UserStyle== | |
| @name Widescreen for Mokum | |
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @version 1.0.0 | |
| @description An ultra simple widescreen theme for Mokum.place | |
| @author app103 url(https://mokum.place/app103); | |
| ==/UserStyle== */ | |
| @-moz-document domain("mokum.place") { | |
| .container { width: 100% !important; |
- Copy content of
vsix-bookmarklet, create a bookmark in your browser. - Navigate to the web page of the VS Code extension you want to install.
- Click the bookmark you just created, then click the download button.

- After download finished, rename the file extension to
*.vsix. - In VS Code, select Install from VSIX... in the extension context menu.

Bucket notification integration with Kafka is a very useful feature in the RGW. However, some security features needed for such integrations are missing. so, in this project we will try to make bucket notifications over kafka more secure. The following features are missing:
- GSSAPI
- OAUTHBEARER
- mTLS
- passing in CA without a file (useful for rook integration)
The main challenge in the above would be in automating the tests, so they could easily run locally,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias: Ashley’s Light Fader | |
| description: > | |
| Fades a lamp over time. If you have any questions or comments about this | |
| script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under | |
| the Apache 2.0 license. (v2.01) | |
| fields: | |
| light: | |
| name: 💡 Light | |
| description: entity_id of the lamp. | |
| selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node{ | |
| timestamps{ | |
| stage('Samples'){ | |
| // Single quotes with no interpolation, at least not in Jenkins. | |
| // The dollar variable will be evaluated before being run by the | |
| // shell command, so variables which Jenkins makes available as | |
| // environment variables can still be accessed from within a | |
| // single-quoted string, passed to the sh task. | |
| sh 'echo $PATH' |
NewerOlder