tsconfig.json This prevents typehints for big types from showing ... N more ...
{
  "compilerOptions": {
    "noErrorTruncation": true,
  }
}
| :: Launch inside the rust server directory | |
| @echo off | |
| :start | |
| echo "Starting Rust server... To stop the server, type 'quit' in this window and press Enter." | |
| RustDedicated.exe -batchmode -maxmemory 8192 ^ | |
| +server.port 28015 ^ | |
| +server.level "Procedural Map" ^ | |
| +server.seed 995522 ^ | 
| https://code.google.com/p/android/issues/detail?id=32696#c5 | |
| If you have a certificate that is not | |
| trusted by Android, when you add it, it goes in the personal cert store. | |
| When you add a cert in this personal cert store, the system requires a | |
| higher security level to unlock the device. But if you manage to add your | |
| cert to the system store then you don't have this requirement. Obviously, | |
| root is required to add a certificate to the system store, but it is quiet | |
| easy. | 
| import { appendFileSync, readFileSync } from 'fs'; | |
| import { readdir } from 'fs/promises'; | |
| import { join } from 'path'; | |
| const ROOT = './src'; | |
| const OUT = 'samples_clipped.txt'; | |
| const init = async () => { | |
| const entries = await readdir(ROOT, { | |
| recursive: true, | 
| const arr = [1, 2, 3, 4, 5, 6]; // -> [[1,2],[3,4],[5,6]] | |
| arr.reduce((acc, cur, i) => { | |
| const pos = ~~(i / 2); | |
| acc[pos] = acc[pos] ?? []; | |
| if (i % 2 === 0) acc[pos].push(cur); | |
| else acc[pos].unshift(cur); | |
| return acc; | 
| # Adjust the following variables as necessary | |
| REMOTE=origin | |
| BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| BATCH_SIZE=250 | |
| # check if the branch exists on the remote | |
| if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
| # if so, only push the commits that are not on the remote already | |
| range=$REMOTE/$BRANCH..HEAD | |
| else | 
| const { Connection, PublicKey } = require('@solana/web3.js'); | |
| const { getMint } = require('@solana/spl-token'); | |
| async function checkTokenFreezable(tokenAddress) { | |
| // Connect to Solana mainnet | |
| const connection = new Connection('https://api.mainnet-beta.solana.com'); | |
| try { | |
| // Create PublicKey from the token address | |
| const mintPubkey = new PublicKey(tokenAddress); | 
tsconfig.json This prevents typehints for big types from showing ... N more ...
{
  "compilerOptions": {
    "noErrorTruncation": true,
  }
}
imagick cli
convert favicon.ico -define icon:auto-resize=64,48,32,16 compressed_favicon.ico| Portable Version KEYS: | |
| P6Z3T-UYJC9-YAK3F-APN9M-6ZDSD | |
| FGZPK-93CWX-Q33Y6-D5URV-YXC3X | |
| 9CZQX-9YAQA-PF33L-XVUQH-NSD48 | |
| 8RZ3L-H3Y5L-W2RY5-Z5M8N-C7Z2U | |
| CCZNU-LW3LF-K9V2T-MYZFF-94667 | |
| EWZM6-3W4UX-KH922-C96GK-VGBH2 | |
| Standard Version KEYS: | |
| 4AZNW-S2YHE-LLMWM-J6EL8-7QKDL |