Skip to content

Instantly share code, notes, and snippets.

View Xerkus's full-sized avatar
:octocat:
Open Sourcing!

Aleksei Khudiakov Xerkus

:octocat:
Open Sourcing!
View GitHub Profile
@rjhansen
rjhansen / keyservers.md
Last active April 14, 2024 12:28
SKS Keyserver Network Under Attack

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

@geerteltink
geerteltink / maintainers.md
Last active May 6, 2020 04:35
Laminas Maintainers Quick Reference

Laminas Maintainers Quick Reference

This guide is intended for maintainers — anybody with commit access to one or more Laminas repositories. It's a quick version of the original maintainers guide without the noise and extra tools to merge PR's and create releases faster.

Preparations:

@justarandomgeek
justarandomgeek / feathernet_nobuttons.txt
Last active June 1, 2022 02:48
Feathernet - a one wire multi-node network for factorio circuits
0eNrlWtuO2jAQ/RdLfWnDKnYuG5BaqVLVxz5XqrYoBANWQxI5zm7Rin+vcwFCyMUTeWFRX1YbcMb2OTNnZmxe0SLMaMJZJNDsFbEgjlI0+/WKUraO/DD/TOwSimaICbpFBor8bf60pAFbUj4J4u2CRb6IOdobiEVL+hfN8N4YNOBzJjZbKljQboPsnwxEI8EEo+WKiofdPMq2C8rlJEdTC7ae0JAGgktjSRxSOUsSp/LNOMrnl9Ym5oNjoJ38x3lw5CRym5F8gRW7fUU4/8Ppsj4Pk0+2HMl4kDFRPBb7qn2Nzeb3T/t9bcxhqWRg15fLtcvFksNiBY/D+YJu/Gcmx8tBJ0Nz+fWSHbeyYjwV8wvwnxkXmfzkuJJyxGTN6Q6Vc6TCz51A7ilOKPfL5aBP8pU4E0kGMPqykVyjHIpWoOWcNGpC7Z5DKemXb5PO4Y4a8lafw17CbtVhXzJerrz0gxYSKpu6GcD5wzbxebHKGfo8goKT1WQn15dFYr7i8XbOImkGzVZ+mNK9tkDoJq/FliJ1Now68i6p+zKCuhwyfcw1qbIu0e+m6lGNKgesb1WgmYps6Va7lOZmwIJ2roxff3wbHZgAAq2L2DLaJZE0BxpDXPYJLCZq3LuwMLXrxN+ZptJnyndiw6J1T3wKnoHCkyjTa0JE9jLM1bymKReemhc8ghWA3EYBKnG9oQAUKxifersdxIEoO3ZUHUTRAzyYDhzqcfOcfXJVUTA1iEJ/tgaqgafKtQvS+n6p8FQ9Ydpsf1w115geMTtA3+sbZqkMWMkzViwUlHe0rF2c2SVjWe4Ddq1rfYI0LJdctW4+7xEBgQEsjP63bNmvaYpShcmYmgVfu2Qx76ZkacgCVk1R/bqECajp7GTbgsnPBBd0k/P4czXKT37iBlSgFngIVhQge9T+8dvtf0fDMH6pIYDHIYAVTxKwM+YoAV9Tgo9VhM7gr+OsJfDtZqQ7GssQ9YqUKB67YhfalZgg5nX1JPaYjqTymHo/8nvccYQEGHZU68G
@krakjoe
krakjoe / pool.md
Last active January 30, 2020 12:33
Pooling

Easy pthreads Pools

The final solution !!

Since the first version of pthreads, PHP has had the ability to initialize Worker threads for users. Onto those Worker threads are stacked objects of class Stackable for execution concurrently.

The objects stacked onto workers do not have their reference counts changed, pthreads forces the user to maintain the reference counts in userland, for the extremely good reason that this enables the programmer to keep control of memory usage; and so, execute indefinitely.

This is the cause of much heartache for newcomers to pthreads; if you do not maintain references properly you will, definitely, experience segmentation faults.

@chrismccoy
chrismccoy / gitcheats.txt
Last active April 20, 2024 08:50
git cheats
# alias to edit commit messages without using rebase interactive
# example: git reword commithash message
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f"
# edit all commit messages
git rebase -i --root
# clone all your repos with gh cli tool
gh repo list --json name -q '.[].name' | xargs -n1 gh repo clone
@XVilka
XVilka / TrueColour.md
Last active April 8, 2024 14:02
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@BinaryKitten
BinaryKitten / Module.php
Created October 9, 2012 12:21
Module as Route in ZF2
<?php
namespace Application;
use Zend\Mvc\MvcEvent;
use Zend\Http\PhpEnvironment\Response;
class Module extends Response {
//BootstrapListenerInterface
public function onBootstrap(MvcEvent $event) {
@phred
phred / pedantically_commented_playbook.yml
Last active November 3, 2023 01:55
Very complete Ansible playbook, showing off all the options
---
####
#### THIS IS OLD AND OUTDATED
#### LIKE, ANSIBLE 1.0 OLD.
####
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES
####
#### IF IT BREAKS I'M JUST SOME GUY WITH
#### A DOG, OK, SORRY
####