Variable | Description |
---|---|
|
Path to the current user’s Application Data folder |
|
Path to the temporary folder for the current user |
|
Path to the current user’s profile folder |
|
Path to the Program Files folder |
|
Path to the Windows installation directory |
|
Current user’s username |
|
Path to the Windows directory |
|
Path to the current user’s home folder |
|
Path to the current user’s local AppData folder |
|
AppData/Microsoft/Windows/Start Menu/Programs/Startup folder |
Shortcut | Program |
---|---|
|
Control Panel |
|
System Properties |
|
Network Connections |
|
Programs and Features |
|
Display Properties |
|
Windows Firewall |
|
Internet Options |
|
Date and Time |
|
Sound |
|
Power Options |
|
Device Manager |
|
Computer Management |
|
Services |
|
Task Manager |
ps -A --format=pcpu,args --sort=-pcpu | head -n 11 | cut -c 1-100
sudo service --status-all sudo service smbd status sudo service smbd start sudo service smbd stop sudo systemctl list-units | grep smbd.service sudo systemctl list-units | grep docker.service sudo systemctl start docker.service sudo systemctl stop docker.service sudo systemctl enable docker.service sudo systemctl disable docker.service sudo systemctl status docker.service
Copy files from server to local:
scp [email protected]:/folder/*.* /local/folder/
Copy files from local to server:
scp /local/folder/*.* [email protected]:/folder/
In this example, the server IP is 192.168.1.55
Comando | C# | Node | Python |
---|---|---|---|
String interpolation |
|
|
|
ENV vars | Mac | Linux | PowerShell |
---|---|---|---|
Show all |
|
|
|
Show one |
|
|
|
Add new |
|
|
|
Comando | Linux / Mac | cmd or Powershell |
---|---|---|
AND operator (vários comandos) |
|
|
Line Break (útil para linhas muito grandes) |
|
|
Exibir caminho de app no path |
|
|
Localizar arquivo |
|
|
Variáveis de ambiente |
|
|
Persistir variáveis de ambiente |
|
Windows + R, type:
|
Testar uma porta |
|
|
Command substitution |
|
não tem |
Flush DNS |
|
|
Watch file |
|
|
remove all |
|
|
create file |
|
|
Objetivo | Comando |
---|---|
Baixar uma imagem |
|
Listar imagens: |
|
Remover uma imagem |
|
Remover imagens sem container associado |
|
Criar/Executar container (1) |
|
Criar/Executar container (2) |
|
Criar/Executar container (3) |
|
Objetivo | Comando |
---|---|
Criar container |
|
Listar containers |
|
Iniciar container |
|
Copiar arquivos para container |
|
Conectar em um container |
|
Acompanhar logs |
|
Parar container |
|
Remover container |
|
Remover containers parados |
|
Limpar tudo (!!!!) |
|
Objetivo | Comando |
---|---|
Docker compose ``iterativo'' |
|
Exemplo de docker-compose.yml ``iterativo'':
version: "3"
services:
service1:
image: mcr.microsoft.com//core/runtime:3.1
stdin_open: true
tty: true
command: "/bin/bash"
dotnet publish --configuration release --runtime linux-x64
dotnet publish --configuration release --runtime osx-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish --configuration Release --runtime win-x64 --self-contained -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet nuget locals all --clear
Instalar os plugins:
-
EditorConfig for VS Code
-
ESLint
-
vscode-icons
Configurar o settings.json (CTRL + SHIFT + P) - Preferences - Open Settings:
{
"editor.fontFamily": "'Source code pro', Consolas, 'Courier New', monospace",
"editor.fontSize": 14,
"window.zoomLevel": 0,
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "vscode-icons",
"vsicons.presets.foldersAllDefaultIcon": true,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"workbench.colorCustomizations": {
"tab.activeBorderTop": "#ff0000"
}
}
-
Open the Command Palette (Ctrl+Shift+P) and type `shell command' to find the Shell Command:
-
Install `code' command in PATH command.
Subnet CIDR examples:
+--------+-----------------+ | CIDR | Subnet Mask | +--------+-----------------+ | /32 | 255.255.255.255 | | /24 | 255.255.255.0 | | /16 | 255.255.0.0 | | /8 | 255.0.0.0 | +--------+-----------------+
Atalhos do Windows:
-
Network connections ⇒ Win+R ncpa.cpl
-
more…
-
etc…
Tirar o `verdão'' do background da exibição dos diretórios no comando
`ls
. Colocar isso no .bashrc
da pasta home
do usuário.
LS_COLORS='ow=01;36;40' export LS_COLORS
CTRL + D no Visual Studio igual ao Visual Studio Code: Tools ⇒ Options ⇒ Keyboard ⇒ Show Command containing string:
Edit.InsertNextMatchingCaret Edit.Duplicate
ssh no git:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Fonte Source Code PRO https://fonts.google.com/specimen/Source+Code+Pro
Instalar Java runtime 8 no MAC (pra usar com o VSTABI): https://www.java.com/en/download/mac_download.jsp
Instalar o Java Development Kit 8 no MAC (pra desenvolver com o Eclipse): https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
Link direto para o MAC OSX Mojave: https://itunes.apple.com/us/app/macos-mojave/id1398502828?ls=1&mt=12
Muito bom: https://loading.io/css/
trocar cor da janela do windows não ativado (chipa Microsoft!!!):
https://superuser.com/questions/1245923/registry-keys-to-change-personalization-settings
remove windows 10 watermark https://www.youtube.com/watch?v=X-E7syOcPEE
find ./* | xargs xattr -r -d com.apple.quarantine
Dica do Akita
As Administrator!!!!
wmic diskdrive list brief
wsl --mount \\.\PHYSICALDRIVE1
echo $env:JAVA_HOME
dotnet nuget locals all --clear
The root account is disabled by default in Ubuntu, so there is no root password, that’s why su fails with an authentication error.
WIP
Command | Visual Studio | Visual Studio Code | LunarVim | Rider |
---|---|---|---|---|
Info (Hover) |
|
|
|
|
Go to Definition |
|
|
|
|
Go to Implementation |
|
|
|
|
Go to References |
|
|
|
|
Rename Symbol |
|
|
|
|
Refactoring |
|
|
|
|
Format Document |
|
|
|
|
Quick Fix |
|
|
|
|
Peek Definition |
|
|
|
|
Navigate Back |
|
|
|
|
Navigate Forward |
|
|
|
|
Show Errors |
|
|
|
|
Open Terminal |
|
|
|
|
Use sudo to become root:
sudo -i