Complete guide for deploying a V2Ray VLESS-H2-TLS server on AWS EC2 using Systems Manager (SSM)
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
| # gitcleanup: remove merged branches and their worktrees, after ensuring everything is up‑to‑date | |
| # Usage: gitcleanup [target-branch] | |
| # | |
| # 1. Ensure the target branch exists, is clean, and up‑to‑date with origin. | |
| # 2. For every local branch already merged into the target: | |
| # • If the branch has a worktree and that worktree is clean, fast‑forward it with `git pull --ff-only`. | |
| # • If the worktree remains clean, remove the worktree and delete the branch. | |
| # • If the branch has no worktree, delete the branch directly. | |
| # 3. Stale worktree records are pruned first. |
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
| # gitcleanup: remove merged branches and their worktrees, after ensuring everything is up‑to‑date | |
| # Usage: gitcleanup [target-branch] | |
| # | |
| # 1. Ensure the target branch exists, is clean, and up‑to‑date with origin. | |
| # 2. For every local branch already merged into the target: | |
| # • If the branch has a worktree and that worktree is clean, fast‑forward it with `git pull --ff-only`. | |
| # • If the worktree remains clean, remove the worktree and delete the branch. | |
| # • If the branch has no worktree, delete the branch directly. | |
| # 3. Stale worktree records are pruned first. |
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
| customModes: | |
| - slug: code | |
| name: 💻 Code | |
| roleDefinition: You are Roo, a highly skilled software engineer with extensive | |
| knowledge in many programming languages, frameworks, design patterns, and | |
| best practices. | |
| groups: | |
| - read | |
| - edit | |
| - command |
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
| Howdy partner! You are an expert level JavaScript developer. Please stick to the following the best practices in your work: | |
| - When you write a function, please always add detailed JSDoc and as many inline comments as appropriate to help other developers understand what the function is doing. JSDoc should go directly above the line where the function is defined. The imports do not need documentation. | |
| - Line spacing between different concerns, whether it is in a function, a component or an API route, is always encouraged to improve readability. | |
| - Similarly, the solution implemented should favour readability over succinctness or performance, unless it is specifically requested or you feel it is necessary to avoid critical performance issues. | |
| - When dealing with loops, please use for(... of ...) instead of forEach as much as possible. Also, please try to avoid reduce when accumulating data and instead use a for loop in conjunction with a local array or variable. filter and map chaining is acceptable and encourag |
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
| import { | |
| cancelDiscovering, | |
| discoverReaders, | |
| initialize, | |
| setConnectionToken, | |
| } from '@stripe/stripe-terminal-react-native/src/functions'; | |
| import { | |
| reportProblemSilently, | |
| showSeriousProblem, | |
| } from '../../util/errorHandling'; |
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
| ! 2022-02-28 https://www.quora.com | |
| www.quora.com##[class*="blocking_wall"] | |
| www.quora.com##*:style(filter: none !important) | |
| www.quora.com##.qu-overflow--hidden:style(overflow:auto!important) |
You have two options:
- Dumpfile
- SQL
Dumpfile is totally headless and can be done by the CLI unattended using pg_dump and pg_restore. However, it is a binary file so you cannot make any adjustments to the contents between dump and restore.
SQL outputs a massive INSERT script that allows you to see what is going on, and make any syntax changes that might be needed if your Postgres versions are different. Since it does not use pg_restore, you need to manually respond to a password prompt via psql if you go this way.
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
| const IGNORE = 0; | |
| const WARN = 1; | |
| const ERROR = 2; | |
| module.exports = { | |
| root: true, | |
| "extends": "airbnb", | |
| "parser": "babel-eslint", | |
| "rules": { | |
| "import/no-named-as-default-member": IGNORE, |
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
| #!/bin/bash | |
| CYAN="$(tput bold; tput setaf 6)" | |
| RESET="$(tput sgr0)" | |
| clear | |
| if command -v python3 > /dev/null 2>&1; then | |
| if [ $(python3 -c "print('ye')") = "ye" ]; then | |
| clear |
NewerOlder