This file contains 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. Pkcs8PrivateBlob - PKCS #8 is a standard syntax for storing private key information. PKCS #8 is one of the family of standards called Public-Key Cryptography Standards (PKCS). | |
The PKCS #8 private key may be encrypted with a passphrase using the PKCS #5 standards, which supports multiple ciphers. | |
PKCS #8 private keys are typically exchanged in the PEM base64-encoded format. | |
-----BEGIN PRIVATE KEY----- | |
-----END PRIVATE KEY----- | |
-----BEGIN ENCRYPTED PRIVATE KEY----- | |
-----END ENCRYPTED PRIVATE KEY----- |
This file contains 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
<!--This solution doesn't work with Gmail, worked in Thunderbird.--> | |
<img src="http://yoursite.eu/image.jpg" usemap="#image-map"> | |
<map name="image-map"> | |
<area target="_blank" href="http://yoursite.eu/check_this_link_out" coords="184,839,435,879" shape="rect"> | |
</map> |
This file contains 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
Ctrl + K, Ctrl + \ Delete horizontal white space in selected string. |
This file contains 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
--- CREATE SELF-SIGNED ECDSA CERTIFICATE WITH PRIVATE KEY INSIDE ---- | |
1. Open openssl.exe. | |
2. If you haven't chosen a curve, you can list them with this command: | |
ecparam -list_curves | |
I picked sect571r1 for this example. Use this to generate an EC private key if you don't have one already: |

This file contains 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
--UNION ALL allows duplicates, whereas UNION does not (returns only distinct rows) | |
SELECT CustomerName FROM orders | |
UNION | |
SELECT CustomerName FROM customers; | |
--Result: | |
--Mary | |
--John | |
--Bill |
This file contains 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
using System; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
namespace DuplicatedJsonProperties | |
{ | |
class DuplicatedJsonProperties | |
{ | |
private const string data = | |
@"{ |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
namespace RemoveFolders | |
{ | |
class Program | |
{ | |
private const string exitCode = "0"; |
This file contains 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
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace UpgradeFrameworkInProjects | |
{ | |
class Program | |
{ | |
private const string exitCode = "0"; |
This file contains 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
_some_handler.post = function(data, callback){ | |
var reqDetails = {}; //Some details | |
var reqData = {}; //Some data | |
var req = https.request(reqDetails, function(res){ | |
if(200 == res.statusCode) { | |
callback(200, {'Message' : 'Success'}); | |
} else { |
OlderNewer