Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
<?php | |
// Author: Ngo Minh Nam | |
$dir = "/path/to/your/repo/"; | |
$output = array(); | |
chdir($dir); | |
exec("git log",$output); | |
$history = array(); | |
foreach($output as $line){ | |
if(strpos($line, 'commit')===0){ |
<?php | |
/** | |
* JSON data to html table | |
* | |
* @param object $data | |
* | |
*/ | |
function jsonToTable ($data) | |
{ |
/* | |
* Genarate rsa keys. | |
*/ | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" |
<?php | |
$examples = [ | |
// kendaraan umum | |
'B 1', | |
'B 1234 ABC', | |
'B-1234-ABC', | |
'AD-1234 - XYZ', | |
'AB1234LD', | |
'D1', |
Disqus decided to introduce some bs affiliate links (via https://disq.us/url → https://redirect.viglink.com). uBlock blocks this, so you won’t ever get to where you want to go.
If you log in with a Disqus account, you may also be turn it off.
When you’re at the “Page Not Found” screen, just click on this bookmarklet to continue to the actual link target.
public void setSelfSignedSSL(Context mContext, @Nullable String instanceName){ | |
try { | |
CertificateFactory cf = CertificateFactory.getInstance("X.509"); | |
// cert file stored in \app\src\main\assets | |
InputStream caInput = new BufferedInputStream(mContext.getAssets().open("certificate.cer")); | |
Certificate ca = cf.generateCertificate(caInput); | |
caInput.close(); |
<?php | |
// prepare headers for API call | |
$request_headers = array(); | |
// prepare the url of the api I am calling | |
$api_url = "http://api.example.com?parameters=whatever"; | |
// append streamdata sandbox proxy | |
$url = 'https://streamdata.motwin.net/' . $api_url; |
import 'dart:convert'; | |
import 'dart:typed_data'; | |
import "package:pointycastle/export.dart"; | |
import "./convert_helper.dart"; | |
// AES key size | |
const KEY_SIZE = 32; // 32 byte key for AES-256 | |
const ITERATION_COUNT = 1000; |
#!/usr/bin/env python | |
""" | |
Collects stats about pgbouncer client and postgres server connections | |
If psycopg2 is available it will use it instead of psql and will | |
query pgbouncer both for client and postgres server connections. | |
test out using: | |
/opt/netdata/usr/libexec/netdata/plugins.d/python.d.plugin 1 debug trace pgbouncer |