This is a short outline of how to install the C++ workload with Visual Studio or the build tools using winget.
To find VS releases with winget use search.
winget search buildtools
The install command will install the VS installer with the core of the selected product installed. That isn't much. So if you use either of these commands to insll VS or the build tools you will need to launch the VS installer afterwards and select the relevant C++ workloads you need.
winget install Microsoft.VisualStudio.2022.BuildTools
winget install Microsoft.VisualStudio.2022.Community
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
| <?php | |
| /* | |
| * PHP array_reduce_key (v0.11) - array_reduce with additional parameters | |
| * array_reduce with key, | |
| * (javascript like reduce method) | |
| * (if initial value of carry is not specified, null is used) | |
| * | |
| * PHP array_reduce_JS (v0.12) - array_reduce with additional parameters | |
| * (javascript like reduce method) | |
| * if initial value of carry is not specified, first item of input ARRAY is used, and CALLBACK starts on the second item |
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
| call plug#begin() | |
| Plug 'drewtempelmeyer/palenight.vim' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'wlangstroth/vim-racket' | |
| Plug 'sheerun/vim-polyglot' | |
| Plug 'rust-lang/rust.vim' | |
| Plug 'preservim/tagbar' | |
| Plug 'universal-ctags/ctags' | |
| Plug 'luochen1990/rainbow' | |
| Plug 'vim-syntastic/syntastic' |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
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
| KEYMAPOPTS="us us" | |
| HOSTNAMEOPTS="-n alpine" | |
| INTERFACESOPTS="auto lo | |
| iface lo inet loopback | |
| auto eth0 | |
| iface eth0 inet dhcp | |
| hostname alpine | |
| " | |
| TIMEZONEOPTS="-z UTC" |
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
| { | |
| "layout": { | |
| "id": "com.apple.keylayout.Colemak", | |
| "localizedName": "Colemak", | |
| "lang": "en" | |
| }, | |
| "rawMapping": { | |
| "KeyA": { | |
| "value": "a", | |
| "valueIsDeadKey": false, |
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
| // Copied by https://gist.github.com/dotcypress/8fd12d6e886cd74bba8f1aa8dbd346aa, | |
| // thanks for improving code style | |
| const { createHash, createHmac } = require('crypto'); | |
| const TOKEN = "ABC:12345..."; | |
| // I prefer get the secret's hash once but check the gist linked | |
| // on line 1 if you prefer passing the bot token as a param | |
| const secret = createHash('sha256') | |
| .update(TOKEN) |
NewerOlder
