Skip to content

Instantly share code, notes, and snippets.

@tomekziel
tomekziel / generator.cs
Created February 15, 2024 17:17
Generator dwóch połówek hasła
using (StreamWriter sw = new StreamWriter("dict1.txt"))
{
foreach (var month in new string[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" })
{
foreach (var letter1 in new string[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" })
{
foreach (var letter2 in new string[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" })
{
for (int year = 970; year <1000; year++)
{
@tomekziel
tomekziel / struktura.json
Created January 27, 2022 20:35
Struktura sądów wg portalu informacyjnego sądów powszechnych, stan na 2022.01.27
[
{
"name": "Sąd Apelacyjny w Białymstoku",
"zrskId": 2010,
"departments": [
{
"name": "I Wydział Cywilny",
"zrskId": 50067267,
"number": "I",
"repertories": [
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Net.Http.Json;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.Unicode;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
// PUBLIC DOMAIN
//
// If you need to know exact license, it is the
// Creative Commons Zero
Adam Mickiewicz
Pan Tadeusz czyli ostatni zajazd na Litwie
Księga pierwsza
Gospodarstwo
Litwo! Ojczyzno moja! ty jesteś jak zdrowie:
Ile cię trzeba cenić, ten tylko się dowie,
Kto cię stracił. Dziś piękność twą w całej ozdobie
CHEF FORMAT
[
{ "op": "Comment",
"args": ["CYBERCHEF BASE-45 DECODER\n\nTomasz Zielinski (tomasz.zielinski@gmail.com)\npublic domain\n"] },
{ "op": "Conditional Jump",
"args": ["^(...)+$", false, "multiply3", 10] },
{ "op": "Comment",
"args": ["Flow for case with number of input characters that not divide by 3"] },
{ "op": "Comment",
@tomekziel
tomekziel / pesele.cs
Created September 7, 2020 20:29
Program w języku C# do seryjnego generowania numerów PESEL
using System;
using System.Diagnostics;
using System.IO;
// https://informatykzakladowy.pl
//
// material dodatkowy do tekstu o szyfrowaniu dokumentow z mBanku
// 2020.09.07
//
// public domain
using System;
using System.IO;
using System.IO.Ports;
namespace UD18TesterReader
{
class Program
{
static void Main(string[] args)
{
== https://github.com/msillano/UD18-protocol-and-node-red/blob/master/UD18_protocol.txt
============= commands PC => UD18
[WHreset] ff 55 11 03 01 00 00 00 00 51
[AHreset] ff 55 11 03 02 00 00 00 00 52
[resetTIME] ff 55 11 03 03 00 00 00 00 53
[resetALL] ff 55 11 03 05 00 00 00 00 5d
.
[SETUP] ff 55 11 03 31 00 00 00 00 01
[ENTER] ff 55 11 03 32 00 00 00 00 02