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
package main | |
import ( | |
"log" | |
"os" | |
"regexp" | |
"github.com/go-telegram-bot-api/telegram-bot-api" | |
) |
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
-- If using GCE as your provider, you must first create networks, firewall rules and Instances | |
-- The following is based in Kelsey Hightower 'Kubernetes The Hard Way' tutorial | |
gcloud compute networks create calico-demo --subnet-mode custom | |
gcloud compute networks subnets create kubernetes \ | |
--network calico-demo \ | |
--range 10.240.0.0/24 | |
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
<?php | |
$headers = apache_request_headers(); | |
$cert1 = str_replace("\\n","\n",$headers['ssl-client-cert']); | |
if(!empty($cert1)) { | |
$certificado = openssl_x509_read($cert1); | |
$certuser = openssl_x509_parse($certificado); | |
$username = $certuser['subject']['CN']; |
NewerOlder