Skip to content

Instantly share code, notes, and snippets.

@p3t3r67x0
p3t3r67x0 / prefixed-office-properties.md
Last active February 20, 2024 19:15
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
@p3t3r67x0
p3t3r67x0 / openssl_commands.md
Last active February 3, 2024 18:53
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active January 16, 2024 01:17
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@p3t3r67x0
p3t3r67x0 / convert_truetype.md
Last active November 26, 2023 16:54
Create a svg from truetype font with freetype and svgpathtools in python

Create a svg from truetype font in python

I am trying to create a svg file from a truetype font with freetype-py and svgpathtools. I have a working python code which generates the svg file but unfortunately there are some corners and edges where instead should be smooth curves. Here in this example I try to render an special char which does not look good at all.

Question

What do I need to change in order to get curve symbols redered correctly?

Prerequisites

@p3t3r67x0
p3t3r67x0 / profiles.conf
Created October 5, 2023 09:46
dconf dump /org/gnome/terminal/legacy/profiles:/
[/]
audible-bell=false
background-color='rgb(0,43,54)'
background-transparency-percent=3
default-size-columns=300
default-size-rows=79
font='MesloLGS NF 15'
foreground-color='rgb(131,148,150)'
palette=['rgb(7,54,66)', 'rgb(220,50,47)', 'rgb(251,117,117)', 'rgb(181,137,0)', 'rgb(54,143,205)', 'rgb(211,54,130)', 'rgb(42,161,152)', 'rgb(238,232,213)', 'rgb(0,43,54)', 'rgb(181,231,208)', 'rgb(229,77,43)', 'rgb(101,123,131)', 'rgb(131,148,150)', 'rgb(108,113,196)', 'rgb(147,161,161)', 'rgb(253,246,227)']
scroll-on-keystroke=true
call plug#begin()
Plug 'https://github.com/junegunn/vim-plug.git'
call plug#end()
set backupcopy=yes
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
# Generated by Powerlevel10k configuration wizard on 2023-10-05 at 11:27 CEST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 42599.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# angled separators, sharp heads, round tails, 1 line, compact, many icons, concise,
# instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
DROP TABLE IF EXISTS uland;
CREATE TABLE uland (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
uland NUMERIC NOT NULL,
name VARCHAR(255) NOT NULL
);
DROP TABLE IF EXISTS umonat;
[{
"registrationnumber": "0702020",
"schoolname": "Schule auf der Rude",
"principal": "Frau Saar",
"phone": "0461/852556",
"fax": "0461/851642",
"email": "schule-auf-der-rude.flensburg@schule.landsh.de",
"website": "http://www.schule-auf-der-rude.lernnetz.de",
"address": "Lundweg 30",
"postalcode": "24941",
{
"randomize": {
"0": "chrome"
},
"browsers": {
"chrome": [
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36",