Clearly and concisely describe the feat/bug.
- First step...
- Second step...
- And so on...
type Prettify<T> = { [K in keyof T]: T[K] } & {}; | |
class Hello { | |
id?: number; | |
name?: string; | |
created_at?: string; | |
getFullName() { | |
return this.name; | |
} |
declare namespace NodeJS { | |
export interface ProcessEnv { | |
readonly NODE_ENV: 'development' | 'production'; | |
readonly NODE_PORT?: string; | |
readonly API_URL?: string; | |
} | |
} |
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
[*.{js,ts}] | |
indent_style = space | |
indent_size = 2 |
{ | |
"compilerOptions": { | |
"module": "NodeNext", | |
"moduleResolution": "NodeNext", | |
"target": "ES2020", | |
"sourceMap": true, | |
"outDir": "dist", | |
}, | |
"include": ["src/**/*"], | |
} |
## List folder sizes sorted asc | |
du -sh ./* | sort -h | |
## Remove folders/files based on .gitignore | |
for f in ./* ./**/* | |
do | |
if [ -d "$f" ] && [ -d "$f/.git" ] | |
then | |
echo "Directory $f" | |
git --git-dir $f/.git clean -Xdf -e !.env* -- $f |
- Spark Chat | |
O spark a partir da versão 2.8 usa um protocolo de transferência de arquivo diferente, na porta 7777. Para funcionar basta baixar a versão 2.7.7 encontrada nesse link: https://github.com/igniterealtime/Spark/releases/tag/v2.7.7 | |
Baixe a versão .tar.gz, é requerido o java8 na máquina. Para instalar: | |
sudo add-apt-repository ppa:openjdk-r/ppa | |
sudo apt-get update | |
sudo apt-get install openjdk-8-jdk | |
tar -xvzf spark_2_7_7.tar.gz |
sudo find . -name "node_modules" -type d -prune | xargs du -chs | |
sudo find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
code --install-extension ms-vscode.sublime-keybindings | |
code --install-extension msjsdiag.debugger-for-chrome | |
code --install-extension PeterJausovec.vscode-docker | |
code --install-extension PKief.material-icon-theme | |
code --install-extension redhat.vscode-yaml | |
code --install-extension Shan.code-settings-sync | |
code --install-extension william-voyek.vscode-nginx |
// https://askubuntu.com/a/51953 | |
// If you want all new files in a particular directory to be owned by a particular group, just apply the setgid bit on it: | |
chgrp www-data /some/dir | |
chmod g+s /some/dir | |
// If you have an existing tree of directories that you want to apply this behaviour to, you can do so with find: | |
find /some/dir -type d -exec chgrp www-data {} + |