This file contains hidden or 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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions |
This file contains hidden or 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
cinst googlechrome | |
cinst git | |
cinst nodejs | |
cinst ccleaner | |
cinst procexp | |
cinst putty | |
cinst teamviewer | |
cinst sublimetext3 | |
cinst googledrive | |
cinst cmder |
This file contains hidden or 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
@echo off | |
powercfg.exe -x -monitor-timeout-ac 0 | |
powercfg.exe -x -monitor-timeout-dc 0 | |
powercfg.exe -x -disk-timeout-ac 0 | |
powercfg.exe -x -disk-timeout-dc 0 | |
powercfg.exe -x -standby-timeout-ac 0 | |
powercfg.exe -x -standby-timeout-dc 0 | |
powercfg.exe -x -hibernate-timeout-ac 0 | |
powercfg.exe -x -hibernate-timeout-dc 0 |
This file contains hidden or 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
for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d" |
This file contains hidden or 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
-- <Tabela Feia de exemplo> | |
SELECT | |
'Caixa de canetas BIC' AS txt_produto, | |
'23765' AS txt_cod_prod, | |
CAST(1 as bit) AS bit_ativo | |
INTO #Tabela_Feia -- Tabela Temporária | |
INSERT INTO #Tabela_Feia (txt_produto, txt_cod_prod, bit_ativo) VALUES ('Elásticos', '12345', 0); | |
INSERT INTO #Tabela_Feia (txt_produto, txt_cod_prod, bit_ativo) VALUES ('Caderno', '23456', 1); | |
INSERT INTO #Tabela_Feia (txt_produto, txt_cod_prod, bit_ativo) VALUES ('Borracha', '34567', 0); |
This file contains hidden or 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
## if ((gcm choco.exe -ErrorAction SilentlyContinue) -eq $null) | |
# { | |
# iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
# } | |
# Initial Config | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
#Packages | |
cinst cmder -y |
This file contains hidden or 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
var regexRemoveAntesDosNumeros = new RegExp(/(\D*)(\d*)*(\,(\d|\ )*)/g); | |
this.value = this.value.replace(regexRemoveAntesDosNumeros, "$2$3$4").replace(/\s+/g,' '); // Remove possíveis espaços vazios em dobro | |
// test string = a, 595, 535, 563 abc, 523 abcacascas ,543123 | |
// test site https://regex101.com/ |
NewerOlder