Skip to content

Instantly share code, notes, and snippets.

@cechi
cechi / RSAKeys.cs
Created October 7, 2025 09:42 — forked from therightstuff/RSAKeys.cs
Import and export RSA Keys between C# and PEM format using BouncyCastle
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Security;
using System;
using System.IO;
using System.Security.Cryptography;
namespace MyProject.Data.Encryption
{
@cechi
cechi / x11vnc_server_on_startup.txt
Created September 7, 2024 20:03 — forked from YourFriendCaspian/x11vnc_server_on_startup.txt
Configure your system to have x11vnc running at startup.
## Ubuntu 15.04 – Configure your system to have x11vnc running at startup. ##
Hello World,
If you are following us, you probably remember that we wrote already a post about this topic
(see Ubuntu 14.10 – Configure your sytem to have x11vnc running at startup).
Since Ubuntu 15.04 is using systemd, the instructions found in the previous post are not applicable anymore.
Some of our readers had issues after upgrading to Ubuntu 15.04.
The x11VNC is not running at startup anymore.
@cechi
cechi / csfd-dark.css
Last active May 27, 2021 19:19
Dark theme for new.csfd.cz
body, .page-header, .page-content, #page-wrapper {
background-color: #282828;
color: #cdcdcd;
}
p {
color: #f1f1f1;
}
nav {
$env:Path += ";C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files\Google\Chrome\Application"
$url = "https://reporting.cz";
$file = Join-Path $env:temp export.pdf
if (Test-Path $file) {
Remove-Item $file
}
chrome --headless --disable-gpu --print-to-pdf=$file $url
@cechi
cechi / prefixed-office-properties.md
Created July 2, 2018 14:01 — forked from p3t3r67x0/prefixed-office-properties.md
MS Office prefixed style properties can be used for older versions of MS Excel, MS PowerPoint or MS Word when you want to save a document, presentation, workbook, or worksheet as a web document, or even in older versions for MS Outlook.

MS Office prefixed style properties

mso-ansi-font-size

Note: Office only

mso-ansi-font-size: large | larger | <length> | medium | <percentage> | small | smaller | x-large | x-small | xx-large | xx-small