Assume that you want to set 127.0.0.1:10809 as HTTP proxy and 127.0.0.1:10808 as SOCKS proxy.
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
| High level error codes | |
| 0x1080 PEM - No PEM header or footer found | |
| 0x1100 PEM - PEM string is not as expected | |
| 0x1180 PEM - Failed to allocate memory | |
| 0x1200 PEM - RSA IV is not in hex-format | |
| 0x1280 PEM - Unsupported key encryption algorithm | |
| 0x1300 PEM - Private key password can't be empty | |
| 0x1380 PEM - Given private key password does not allow for correct decryption | |
| 0x1400 PEM - Unavailable feature, e.g. hashing/encryption combination |
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
| Windows Registry Editor Version 5.00 | |
| ; Windows terminal | |
| ; Sets up the "Windows Terminal" top level item | |
| [HKEY_CLASSES_ROOT\Directory\shell\MenuWindowsTerminal] | |
| "MUIVerb"="Windows Terminal" | |
| "Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_0.10.781.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe" | |
| "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuWindowsTerminal" |
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
| REM Download ffmpeg from https://www.ffmpeg.org/download.html. | |
| REM Place ffmpeg.exe in the folder with the vob files | |
| REM Merge all vob files into one | |
| REM VTS_01_0.VOB is usually the menu which you may not want | |
| if exist VTS_01_7.VOB ( | |
| copy /b VTS_01_1.VOB+VTS_01_2.VOB+VTS_01_3.VOB+VTS_01_4.VOB+VTS_01_5.VOB+VTS_01_6.VOB+VTS_01_7.VOB ConCat.vob | |
| ) else if exist VTS_01_6.VOB ( | |
| copy /b VTS_01_1.VOB+VTS_01_2.VOB+VTS_01_3.VOB+VTS_01_4.VOB+VTS_01_5.VOB+VTS_01_6.VOB ConCat.vob | |
| ) else if exist VTS_01_5.VOB ( |
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
| #include "Arduino.h" | |
| #include <WiFi.h> | |
| #include "esp_log.h" | |
| #include "esp_system.h" | |
| #include "esp_event.h" | |
| #include "mqtt_client.h" | |
| #define SECURE_MQTT // Comment this line if you are not using MQTT over SSL | |
| #ifdef SECURE_MQTT |
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
| const unsigned char shmtable[6][12]={ | |
| {11,10,10,9,9,9,8,9,9,10,11,9}, | |
| {20,20,21,21,22,22,22,22,21,21,20,19}, | |
| {11,10,10,9,9,9,8,9,9,10,11,10}, | |
| {20,20,21,21,22,22,22,22,21,21,20,19}, | |
| {12,11,11,10,10,10,9,10,10,11,12,10}, | |
| {19,19,20,20,21,21,21,21,20,20,19,18}}; | |
| const unsigned char miltable[6][12]={ | |
| {20,19,19,19,20,20,21,21,21,21,20,20}, |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
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
| Moved to: | |
| https://github.com/cra0zy/code-nautilus | |
| since people want to add features to it and no notification arrive from comments on gist. |
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
| 'use strict'; | |
| const crypto = require('crypto'); | |
| const ENC_KEY = "bf3c199c2470cb477d907b1e0917c17b"; // set random encryption key | |
| const IV = "5183666c72eec9e4"; // set random initialisation vector | |
| // ENC_KEY and IV can be generated as crypto.randomBytes(32).toString('hex'); | |
| const phrase = "who let the dogs out"; | |
| var encrypt = ((val) => { |
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
| /*# 1- Identify the UART interface, GPIO pins and Alternate Function #########*/ | |
| /* For example: | |
| * B-L475E-IOT01A: | |
| * PB6 ------> USART1_TX | |
| * PB7 ------> USART1_RX | |
| * | |
| * NUCLEO-L476RG: | |
| * PA2 ------> USART2_TX | |
| * PA3 ------> USART2_RX | |
| * |
NewerOlder