Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
| /* -------------------------------------------------------------------------- */ | |
| /* More here; */ | |
| /* -------------------------------------------------------------------------- */ | |
| // https://gist.github.com/rphlmr/0d1722a794ed5a16da0fdf6652902b15 | |
| export function distinctOn<Column extends AnyColumn>(column: Column) { | |
| return sql<Column["_"]["data"]>`distinct on (${column}) ${column}`; | |
| } | |
| export function jsonBuildObject<T extends SelectedFields>(shape: T) { |
First, the Auth construct adds an /auth route to the API.
const auth = new Auth(stack, 'auth', {
authenticator: {
handler: 'auth.handler',
},
});
const api = new Api(stack, 'api', {| Random rd = new Random(); | |
| string remote_port = rd.Next(9000, 9999).ToString(); | |
| // Open real Chrome | |
| Process process = new Process(); | |
| process.StartInfo.UseShellExecute = true; | |
| process.StartInfo.FileName = "chrome"; | |
| process.StartInfo.Arguments = "https://thgiang.com --load-extension=\"C:\\Users\\Admin\\Desktop\\my_extension\" --disable-gpu --new-window --remote-debugging-port=" + remote_port + " --user-data-dir=\"C:\\Profile\" --proxy-server=\""+proxy+"\" --disable-infobars --disable-notifications --window-size=1366,768"; //--window-position=0,0 --window-size=1200,800 --disable-images | |
| process.Start(); | |
| Thread.Sleep(1000); |
| /* | |
| Autoload all current vue files as component and register them by their name. | |
| --- | |
| Author: Gkiokan Sali | |
| Date: 2019-05-09 | |
| */ | |
| import Vue from 'vue' | |
| const requireContext = require.context('./', false, /.*\.vue$/) |
| <template> | |
| <div id="homepage"> | |
| <h1>Les dernières Articles</h1> | |
| <div class="article" v-for="article in articles"> | |
| <h2> {{ article.title }} </h2> | |
| <p> {{ article.content }} </p> | |
| </div> | |
| </div> | |
| </template> |