- Create a private key:
openssl genrsa 2048 > private-key.pem- Create a Certificate Signing Request (CSR):
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/bin/bash | |
| PASS=`pwgen -s 40 1` | |
| mysql -uroot <<MYSQL_SCRIPT | |
| CREATE DATABASE $1 default character set utf8 COLLATE utf8_general_ci; | |
| CREATE USER '$1'@'localhost' IDENTIFIED BY '$PASS'; | |
| GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost'; | |
| FLUSH PRIVILEGES; | |
| MYSQL_SCRIPT |
| /* | |
| * Gets Thread token for current thread. | |
| * Returns NULL on failure. | |
| */ | |
| HANDLE GetCurrentThreadToken() | |
| { | |
| HANDLE hToken; | |
| if (!OpenThreadToken( |
| #include <stdio.h> | |
| #include <Windows.h> | |
| #include <winternl.h> | |
| #pragma comment(lib,"ntdll.lib") | |
| EXTERN_C NTSTATUS NTAPI NtTerminateProcess(HANDLE,NTSTATUS); | |
| EXTERN_C NTSTATUS NTAPI NtReadVirtualMemory(HANDLE,PVOID,PVOID,ULONG,PULONG); | |
| EXTERN_C NTSTATUS NTAPI NtWriteVirtualMemory(HANDLE,PVOID,PVOID,ULONG,PULONG); | |
| EXTERN_C NTSTATUS NTAPI NtGetContextThread(HANDLE,PCONTEXT); |
Input files for domain mydomain.es
-rw-r--r-- 1 www-data www-data 1,5K 2014-07-09 18:26 AddTrustExternalCARoot.crt
-rw-r--r-- 1 www-data www-data 2,0K 2014-07-09 18:26 COMODORSAAddTrustCA.crt
-rw-r--r-- 1 www-data www-data 2,2K 2014-07-09 18:26 COMODORSADomainValidationSecureServerCA.crt
-rw-r--r-- 1 www-data www-data 1,9K 2014-07-09 18:26 mydomain_es.crt
-rw-r--r-- 1 www-data www-data 1,1K 2014-07-09 17:48 mydomain_es.csr
-rw-r--r-- 1 www-data www-data 1,7K 2014-07-09 17:48 mydomain_es.key
| uint16_t crc16(char* pData, int length) | |
| { | |
| uint8_t i; | |
| uint16_t wCrc = 0xffff; | |
| while (length--) { | |
| wCrc ^= *(unsigned char *)pData++ << 8; | |
| for (i=0; i < 8; i++) | |
| wCrc = wCrc & 0x8000 ? (wCrc << 1) ^ 0x1021 : wCrc << 1; | |
| } | |
| return wCrc & 0xffff; |
| /* | |
| Twitch chat browsersource CSS for OBS | |
| Just set the URL as https://www.twitch.tv/%%TWITCHCHANNEL%%/chat?popout=true | |
| And paste this entire file into the CSS box | |
| Original by twitch.tv/starvingpoet modified by github.com/Bluscream | |
| General Settings | |
| */ | |
| body { | |
| color: #FFFFFF!important; |
Sometimes you need to use API Keys to use things like the Speech API. And then you Google a bit and follow all the instructions. But the Chromium Project's API Keys page does a not-so-great of explaining how to do this, so I will.
Google API Keys are missing. Some functionality of Chromium will be disabled. Learn More.