Skip to content

Instantly share code, notes, and snippets.

@probonopd
probonopd / Wayland.md
Last active July 24, 2024 01:58
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

The Wayland project seems to operate like they were starting a greenfield project, whereas at the same time they try to position Wayland as "the X11 successor", which would clearly require a lot of thought about not breaking, or at least providing a smooth upgrade path for, existing software.

In fact, it is merely an incompatible alternative, and not e

@fabrizioschiavi
fabrizioschiavi / PragmataPro all the ligatures
Last active December 26, 2023 21:11
The complete ligature list of Pragmata Pro typeface
!=
!==
!=<
=|
=||
=|:
=/
=/=
=/<
!≡
@fijimunkii
fijimunkii / max_expiry_cert.sh
Created October 6, 2017 17:17
max expiry / validity period for an x509 certificate
# https://groups.google.com/forum/#!topic/mailing.openssl.users/3kK_f0ywCZQ
openssl req -new -x509 -days 24855 -key ca.key -out ca.crt
@ryboe
ryboe / .travis.yml
Last active November 23, 2023 05:37
Example .travis.yml for Golang
# use the latest ubuntu environment (18.04) available on travis
dist: bionic
language: go
# You don't need to test on very old versions of the Go compiler. It's the user's
# responsibility to keep their compiler up to date.
go:
- 1.16.x
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active July 19, 2024 18:06
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@xzzz9097
xzzz9097 / classdump.m
Created December 3, 2016 21:03
DFRFoundation.framework dumps
//
// File: /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation
// UUID: C3548955-29E4-3B77-BB2D-687FDA287B87
//
// Arch: x86_64
// Current version: 104.2.0
// Compatibility version: 1.0.0
// Source version: 104.2.0.0.0
// Minimum Mac OS X version: 10.12.0
// SDK version: 10.12.0
@bearfrieze
bearfrieze / comprehensions.md
Last active December 23, 2023 22:49
Comprehensions in Python the Jedi way

Comprehensions in Python the Jedi way

by Bjørn Friese

Beautiful is better than ugly. Explicit is better than implicit.

-- The Zen of Python

I frequently deal with collections of things in the programs I write. Collections of droids, jedis, planets, lightsabers, starfighters, etc. When programming in Python, these collections of things are usually represented as lists, sets and dictionaries. Oftentimes, what I want to do with collections is to transform them in various ways. Comprehensions is a powerful syntax for doing just that. I use them extensively, and it's one of the things that keep me coming back to Python. Let me show you a few examples of the incredible usefulness of comprehensions.

@rknuu
rknuu / factorial-table.jl
Created February 10, 2016 02:57
Julia is awesome...
# Julia is fully unicode aware and if you use your variable and function
# names just right, you can express your anger like no other language.
⋰┛ಠДಠ┛⋱彡┻━┻(n) = n < 2 ? n : ⋰┛ಠДಠ┛⋱彡┻━┻(n - 1) + ⋰┛ಠДಠ┛⋱彡┻━┻(n - 2)
@elapsed ⋰┛ಠДಠ┛⋱彡┻━┻(25) # 0.00266
@Restuta
Restuta / framework-sizes.md
Last active March 7, 2024 00:01
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js