Skip to content

Instantly share code, notes, and snippets.

Source: https://answers.microsoft.com/en-us/insider/forum/all/windows-10-pc-refuses-to-stay-asleep/4004437e-5424-4314-a4c6-aa6444c7ded9
Follow the steps:
a) Type cmd on the Start screen and right click on it. Select Run as administrator.
b) Type the following command and hit Enter:
Powercfg -devicequery wake_armed
c) You will get the name/names of the devices. To disable a specific device from waking the computer, run the following command:
Unidade E: não está acessível
Parâmetro incorreto
chkdsk E: /f /r
@rfpe
rfpe / variaveis-email-pagarme.txt
Last active January 23, 2020 11:39
Variáveis para utilização nos layouts de e-mails de recorrência na pagar.me.
Aqui está a lista de variáveis para utilizar caso precise personalizar os e-mails de gerenciamento de assinatura enviados pela pagar.me. As variáveis foram obtidas através do Suporte e esta informação não está facilmente disponível no artigo de ajuda (https://pagarme.zendesk.com/hc/pt-br/articles/360000216332-E-mails-de-gerenciamento-da-assinatura-)
Nome da Empresa = {{ company.name }}
Razão Social = {{ company.full_name }}
Cobranças da assinaturas = {{ subscription.charges }}
Fim do Periodo Atual = {{ subscription.current_period_end }}
Inicio do Periodo Atual = {{ subscription.current_period_start }}
Id da assinatura = {{ subscription.id }}
Status da assinatura = {{ subscription.status }}
@rfpe
rfpe / tinyproxy.conf
Created May 28, 2018 17:49 — forked from nk23x/tinyproxy.conf
tinyproxy.conf + tinyproxy_filter (work) using custom adblock filters
##
## tinyproxy.conf -- tinyproxy daemon configuration file
##
Port 3128
Timeout 15
LogFile "/var/log/tinyproxy.log"
LogLevel Info
@rfpe
rfpe / remove_html_tags.txt
Created November 11, 2017 14:19
Regex to replace HTML tags from a string
<[^>]*>
@rfpe
rfpe / backup_dynamodb.txt
Created August 26, 2016 17:37
Backup data from AWS
1. Install python
2. Download boto (https://pypi.python.org/pypi/boto)
3. Install boto (python setup.py install)
4. Download DynamoDump (https://github.com/bchew/dynamodump)
5. To backup :
python dynamodump.py -m backup -r sa-east-1 -s "*" --accessKey <AK> --secretKey <SK>
sa-east-1 -> São Paulo
@rfpe
rfpe / gist:3ade32a039325fe42ecbbc8bde57a8d1
Created June 11, 2016 22:09
Oracle VirtualBox is not enabling VT-X (64 bit SO)
http://www.howtogeek.com/213795/how-to-enable-intel-vt-x-in-your-computers-bios-or-uefi-firmware/
Uninstall "Hyper-v" from Windows Resources
@rfpe
rfpe / gist:e0097bfa35f92f8edb04efeb19612f6e
Created April 1, 2016 03:43
IDT High Definition Audio CODEC fix for Windows 10
IDT Panel not working on Windows 10
Speakers not working on Windows 10
IDT High Definition Audio CODEC
####
1. Select IDT High Definition Audio CODEC on Device Manager.
2. Select Driver tab.
3. Click Update Driver... button.
4. Select -> Browse my computer for driver software.
5. Select -> Let me pickup a list of device drivers on my computer.
@rfpe
rfpe / ghost_pwd_reset_script.txt
Created December 4, 2014 00:37
Ghost blog password reset
1. Download sqlite3
2. Place the exe file into the directory content/data
3. Open a Prompt
4. sqlite3 ghost.db
5. Use:
update users set status = 'active';
update users set password = '$2a$10$BQToDNdBtBKCvnrTmMi5m.NK.7i6Qx7YASs.jTkE86I5zqxzE8klC';
select email, name from users;
@rfpe
rfpe / Excel_CalcularParcelamento.txt
Last active August 29, 2015 14:09
Calcular total de parcelamentos por mês no Excel
Tabela:
+----+---------------+---------------+------------+
| | A | B | C |
+----+---------------+---------------+------------+
| 1 | Venda | Num Parcelas | Vencimento |
| 2 | R$ 400,00 | 4 | novembro |
| 3 | R$ 333,00 | 3 | dezembro |
| 4 | R$ 1.000,00 | 2 | janeiro |
| 5 | R$ 2.000,00 | 1 | fevereiro |