- GitHub: use
ghCLI for PRs, issues, comments, reviews, etc. No direct API calls. - Tests: after code, note tests important. Search existing tests first, follow their style.
- RSpec: run
*_spec.rbfiles with asdf. - Rails: when running tests, check Rails test logs for better context
- Code style: match indentation of current file.
- Readability: human-readable code. Document new methods (e.g. YARD for Ruby).
- Web search: URLs → use Chrome MCP.
- Ruby ERB templates: double quotes.
| javascript:/* debug.css | MIT License | zaydek.github.com/debug.css */ | |
| if (!("is_debugging" in window)) { | |
| is_debugging = false; | |
| var debug_el = document.createElement("style"); | |
| var tag_names = Array.from(new Set( | |
| Array.from(document.querySelectorAll("*")) | |
| .map(function (el) { return el.tagName.toLowerCase(); }) | |
| )).filter(function (tag) { return tag !== "g" && tag !== "path"; }); |
| import * as React from 'react' | |
| import { createPortal } from 'react-dom' | |
| type FrameProps = React.IframeHTMLAttributes<HTMLIFrameElement> & { | |
| head?: React.ComponentType<any> | |
| children?: React.ReactNode | |
| } | |
| const Frame = React.memo(({head, children, ...iframeProps}: FrameProps)=> { | |
| const node = React.useRef<HTMLIFrameElement>() | |
| const [doc, setDoc] = React.useState<Document>() |
- Nilaus Base in a book: https://nilaus.atlassian.net/wiki/spaces/PM/pages/2506129413/Factorio+S51+-+Base-In-A-Book
- Robo-rush jump start base: https://gist.github.com/cellularmitosis/b692424f70d845178c7d39a7790a85ea
- Robo-rush jump start base (with mall): https://www.reddit.com/r/factorio/comments/u5b5en/my_roborush_jump_base_and_mall/
- Robo shop: https://www.reddit.com/r/factorio/comments/wjdtfu/my_extended_version_of_nilaus_robot_rush/
steven-tk's moduler mall: https://github.com/steven-tk/factorio-blueprints/tree/main/Modular%20Mall%203.x- Lossless Nucler Power in 2.0: https://factorioprints.com/view/-OCW71Di3RZj1-SoncP8
| Executing instructions from https://github.com/jacobalberty/unifi-docker/tree/2cb3b97bed46cedab278f7c2d99fee8de3fd080d#setting-up-running-stopping-upgrading, | |
| with São Paulo's timezone: | |
| docker run -d --init \ | |
| --restart=unless-stopped \ | |
| -p 8080:8080 -p 8443:8443 -p 3478:3478/udp \ | |
| -e TZ='America/Sao Paulo' \ | |
| -v ~/unifi:/unifi \ | |
| --user unifi \ | |
| --name unifi \ |
-
Filelight - application to visualize the disk usage on your computer (https://apps.kde.org/filelight/)
-
Flameshot - Powerful yet simple to use screenshot software (https://github.com/flameshot-org/flameshot)
-
Joplin - open source note-taking app (https://joplinapp.org/)
-
ShareX - Screen capture, file sharing and productivity tool (https://github.com/ShareX/ShareX)
This is a quick guide on how to setup dm_crypt under WSL2 for working with encrypted volumes. I use an encrypted volume to store things like password recovery codes and 2nd factor backup codes etc. I recently switched over to using WSL2 and wanted to figure out how to enable this functionality there. This is the distilled howto for getting it to work.
First thing you have to do is create a custom WSL2 kernel. Inside your already installed and running WSL2 (ubuntu) installation:
- Install some required packages.
| /* ==UserStyle== | |
| @name 9/30/2022, 3:33:22 PM | |
| @namespace github.com/openstyles/stylus | |
| @version 0.0.1 | |
| @description Margin-top on chess.com board | |
| @author github.com/tiagoamaro | |
| ==/UserStyle== */ | |
| @-moz-document domain("chess.com") { | |
| #board-layout-main { |
Glossário:
- Git vs GitHub
- Repositório
- Licensa de software (MIT, GNU, etc.)
- Terminologia git:
- Commit
| { | |
| "contatos": [ | |
| { | |
| "id": 1, | |
| "nome": "John Doe", | |
| "email": "john@doe.email", | |
| "telefone": "1111-1111" | |
| }, | |
| { | |
| "id": 2, |