The most common. For me. Mostly from comments in source code.
Updated with 1.7 code.
/**
static void Main(string[] args) | |
{ | |
var address = new EndpointAddress(new Uri("https://url-del-servizio-sogei")); | |
var binding = CreateMultiFactorAuthenticationBinding(); | |
ServicePointManager.ServerCertificateValidationCallback = ValidateCallback; | |
var factory = new ChannelFactory<NomeInterfacciaProxyClient>(binding, address); | |
var certificate = new X509Certificate2(@"percorso.pfx", "password"); | |
factory.Credentials.ClientCertificate.Certificate = certificate; | |
factory.Endpoint.Contract.ProtectionLevel = ProtectionLevel.Sign; |
<?php | |
// this will read in all the speakers, sort them by date, then store in a file for use later | |
$speakerList = [ | |
'speaker-file', | |
]; | |
$speakers_all = []; | |
foreach($speakerList as $speaker) { | |
$speakers_all[$speaker] = include_once("./speakers/{$speaker}.php"); | |
$speakers_all[$speaker]['bullet-points'] = text2bullets($speakers_all[$speaker]['bullet-points']); |
<? | |
// | |
// [ BUY BTC & ETH DAILY ON BITSTAMP ] | |
// by @levelsio | |
// | |
// 2017-08-23 | |
// | |
// 1) buy $40/day BTC | |
// 2) buy $10/day ETH | |
// |
<?php | |
$publicKey = openssl_pkey_get_public(' | |
-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7o9A47JuO3wgZ/lbOIOs | |
Xc6cVSiCMsrglvORM/54StFRvcrxMi7OjXD6FX5fQpUOQYZfIOFZZMs6kmNXk8xO | |
hgTmdMJcBWolQ85acfAdWpTpCW29YMvXNARUDb8uJKAApsISnttyCnbvp7zYMdQm | |
HiTG/+bYaegSXzV3YN+Ej+ZcocubUpLp8Rpzz+xmXep3BrjBycAE9z2IrrV2rlwg | |
TTxU/B8xmvMsToBQpAbe+Cv130tEHsyW4UL9KZY1M9R+UHFPPmORjBKxSZvjJ1mS | |
UbUYN6PmMry35wCaFCfQoyTDUxBfxTGYqjaveQv4sxx0uvoiLXHt9cAm5Q8KJ+8d |
#!/bin/bash | |
# Sign a file with a private key using OpenSSL | |
# Encode the signature in Base64 format | |
# | |
# Usage: sign <file> <private_key> | |
# | |
# NOTE: to generate a public/private key use the following commands: | |
# | |
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048 | |
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem |
Export:
${user}/.atom
:apm list --installed --bare > packages.list
<?php | |
/** | |
* simple method to encrypt or decrypt a plain text string | |
* initialization vector(IV) has to be the same when encrypting and decrypting | |
* | |
* @param string $action: can be 'encrypt' or 'decrypt' | |
* @param string $string: string to encrypt or decrypt | |
* | |
* @return string | |
*/ |
<?php | |
define('_PS_ROOT_DIR_', '/path/to/prestashop/root'); | |
define('_PS_ADMIN_DIR_', _PS_ROOT_DIR_.'admin_folder'); | |
require(_PS_ADMIN_DIR_.'/../config/config.inc.php'); | |
require(_PS_ADMIN_DIR_.'/functions.php'); | |
class Employee2 extends EmployeeCore | |
{ | |
public function isSuperAdmin() |
#!/bin/bash | |
### Command log to install Cuda Toolkit 6.5, driver 343.22, and ccminer. | |
## Update the system | |
sudo apt-get update && sudo apt-get -y dist-upgrade | |
# All the dependencies for Cuda & ccminer (I think) | |
sudo apt-get -y install gcc g++ build-essential automake linux-headers-$(uname -r) git gawk libcurl4-openssl-dev libjansson-dev xorg libc++-dev libgmp-dev python-dev | |