Skip to content

Instantly share code, notes, and snippets.

Japanese Tools Compilation

Nome da Marca Nicho/Especialização
Allex (Hayashi Cutlery) Tesouras
Anex (Kaneko Mfg) Chaves de fenda de perfil baixo
Arrow-Line Desempenadeiras
ARS Corporation Tesouras de jardinagem
Canary (Hasagawa Cutlery) Cortadores de papelão

TL;DR:

The command rundll32.exe powrprof.dll,SetSuspendState 0,1,0 puts a Windows computer into sleep mode. It uses rundll32.exe to call the SetSuspendState function from the powrprof.dll library with parameters 0,1,0 to disable hibernation, force sleep, and reserve the last parameter as 0. Administrative permissions are required, and caution is advised as misuse can lead to system instability.


How To:

The command rundll32.exe powrprof.dll,SetSuspendState 0,1,0 is used to put a Windows computer into sleep mode using the Windows API.

@fnfontana
fnfontana / fix_winget.md
Last active August 25, 2023 14:15
Um breve artigo para ajudar a resolver os princiapis problemas que impedem o winget de funcionar corretamente.

Solucionando Problemas com o Winget no Windows 11

O Windows Package Manager (Winget) é uma ferramenta poderosa para gerenciar pacotes no Windows, mas às vezes pode encontrar problemas. Este guia destaca a solução que funcionou para resolver um problema específico com o Winget, bem como algumas outras abordagens que você pode tentar.

Solução Principal: Reparar o Winget através do PowerShell

Se o Winget parar de funcionar, o comando Repair-WinGetPackageManager pode ser a solução. Execute o seguinte comando no PowerShell como administrador:

Repair-WinGetPackageManager

Como restaurar as configurações do NeoVim no Windows para usar o mesmo arquivo de configuração do Vim (.vimrc).

  1. Descobrir o Caminho de Configuração do NeoVim: Abra o NeoVim e execute o comando :echo stdpath('config'). Isso retornará o caminho onde o NeoVim procura pelo arquivo de configuração.

  2. Criar a Pasta Necessária: Se a pasta retornada pelo comando não existir, crie-a manualmente.

  3. Criar o Arquivo init.vim: Na pasta criada, crie um arquivo chamado init.vim.

  4. Inserir Configurações no init.vim: Abra o init.vim e insira:

Restauração de Configurações do Neovim no Windows

Pré-requisitos

  • Backup das configurações do Neovim, incluindo o arquivo .vimrc e qualquer pasta relevante como .nvim ou nvim.

Passos

  1. Instale o Neovim no seu Windows. Você pode fazer isso baixando o instalador a partir do site oficial do Neovim e seguindo as instruções para instalação.

You can use a Windows PowerShell running as Administrator to enable and start the service:

Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent

KeePassXC and other compatible tools can now use the Windows OpenSSH agent.

Spicetify Basic Usage

Here's a table with user instructions for using Spicetify:

Task Command/Instructions
Install Spicetify Follow the instructions on the Spicetify website to downlo

Synopsis

Description

If some files should not be synchronized to (or from) other devices, a file called .stignore can be created containing file patterns to ignore. The .stignore file must be placed in the root of the synced folder. The .stignore file itself will never be synced to other devices, although it can #include files that are synchronized between devices. All patterns are relative to the synced folder root. The contents of the .stignore file must be UTF-8 encoded.

Note

Note that ignored files can block removal of an otherwise empty directory. See below for the (?d) prefix to allow deletion of ignored files.

# smooth scrooling
chrome://flags/#smooth-scrolling
# For security reasons, /boot is mounted as ro (read-only) by default on Raspberry Pi OS
# This causes the upgrade to fail when there is a kernel update available to install
# To write the new kernel files, /boot needs to be remounted as rw (read-write)
sudo su
mount -o remount,rw /boot
nano /etc/fstab # ro -> rw
reboot
# Update the kernel