This file contains 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
<scheme name="Forrst" version="142" parent_scheme="Default"> | |
<metaInfo> | |
<property name="created">2023-03-29T17:02:29</property> | |
<property name="ide">WebStorm</property> | |
<property name="ideVersion">2023.1.0.0</property> | |
<property name="modified">2023-03-29T17:03:46</property> | |
<property name="originalScheme">Forrst</property> | |
</metaInfo> | |
<colors> | |
<option name="CARET_COLOR" value="8961e" /> |
This file contains 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
// npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint eslint-config-ultra-refined typescript --save-dev | |
module.exports = { | |
extends: ['ultra-refined'], | |
overrides: [ | |
{ | |
extends: [ | |
'ultra-refined', | |
'plugin:@typescript-eslint/recommended', | |
], | |
files: [ |
This file contains 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
export const toBigInt = (value, radix = 36) => { | |
return [...value.toString()].reduce((acc, val) => (acc * BigInt(radix)) + BigInt(parseInt(val, radix)), 0n); | |
}; | |
export const gen = (date = Date.now()) => { | |
return ((BigInt(date) << (64n - 41n)) ^ (BigInt(crypto.getRandomValues(new Uint8Array(32)) | |
.join('')) % (2n ** (64n - 41n)))); | |
}; | |
export const time = (uuid) => { |
This file contains 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
#!/usr/bin/env bash | |
# In case of "creating events dirs: mkdir /run/user/1000/libpod: permission denied" | |
sudo rm -rf ${HOME}/.local/share/containers |
This file contains 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
{ | |
"debug.terminal.clearBeforeReusing": true, | |
"debug.toolBarLocation": "docked", | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": "explicit" | |
}, | |
"editor.fontSize": 13, | |
"editor.formatOnPaste": true, | |
"editor.formatOnSave": true, | |
"editor.formatOnType": true, |
OlderNewer