Skip to content

Instantly share code, notes, and snippets.

View ad-m's full-sized avatar
🐱
😺

Adam Dobrawy ad-m

🐱
😺
View GitHub Profile

Formy uwierzytelniania

Klient H1 wspiera kilka form uwierzytelniania. Domyślną formą jest wykorzystanie hasła. Możliwe jest także uwierzytelnianie z wykorzystaniem:

  • kluczy SSH
  • form biometrycznych
.. todo::
@ad-m
ad-m / report_storage.sh
Last active August 1, 2017 04:15
Azure - report of current Azure Blob Storage capacity
function get_total_size(){
az storage blob list --account-name $1 --container-name $2 --query "sum([].properties.contentLength)";
}
function get_account_list(){
az storage account list --query '[*].name' --output tsv;
}
function get_container_list(){
az storage container list --account-name $1 --query "[].name" --output tsv
}
function storage_stats(){
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resp>
<esp>
<name> IV LICEUM OGÓLNOKSZTAŁCĄCE IM. STEFANA ROWECKIEGO-GROTA W PIOTRKOWIE TRYBUNALSKIM</name>
<regon>590009805</regon>
<adres>ul. Władysława Broniewskiego 5</adres>
<kod_pocztowy>97-300</kod_pocztowy>
<miejscowosc>Piotrków Trybunalski (miasto)</miejscowosc>
<uri>/Liceum4/skrytka</uri>
</esp>
# coding=utf-8
from __future__ import print_function
import sys
from os.path import isfile
import dataset
from lxml import etree
from tqdm import tqdm
from itertools import imap, ifilter
# Input file can be downloaded at https://epuap.gov.pl/ -> Strefa urzędnika -> Dla integratorów ->
Current PHP version: 7.0.18-0ubuntu0.16.04.1
<pre>
OK ssl://s50.hekko.pl:465 ssl://s50.hekko.pl:465
OK ssl://s50.hekko.pl:993 ssl://s50.hekko.pl:993
PHP Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /tmp/test.php on line 15
PHP Warning: stream_socket_client(): Failed to enable crypto in /tmp/test.php on line 15
PHP Warning: stream_socket_client(): unable to connect to ssl://s50.hekko.pl:443 (Unknown error) in /tmp/test.php on line 15
FAIL ssl://s50.hekko.pl:443 (0)
PHP Warning: stream_socket_client(): Peer certificate CN=`*.hekko.pl' did not match expected CN=`mail.siecobywatelska.pl' in /tmp/test.php on line 15
cache.sqlite
*.csv
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package webproxy;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.DefaultFullHttpResponse;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.mavenproject1;
import java.util.LinkedList;
import java.util.List;
import javax.ws.rs.core.Context;
.idea
activate
*.csv
*.txt
.~lock.*#
@ad-m
ad-m / 503.html
Created March 18, 2017 19:26
Error page to indicate unavailable sites due maintenance in Citizen Network Watchdog Poland. This is a temporary state.
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<style type="text/css">
body {
background: #93172d;
color: white;