Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Open Sourcing!

Aleksei Khudiakov Xerkus

:octocat:
Open Sourcing!
View GitHub Profile
@rjhansen
rjhansen / keyservers.md
Last active November 14, 2022 20:54
SKS Keyserver Network Under Attack
View keyservers.md

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
View maintainers.md

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
View feathernet_nobuttons.txt
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
View pool.md

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 January 30, 2023 15:30
git cheats
View gitcheats.txt
# list all tags
git fetch --all --tags --prune
# sort git tags by date
git for-each-ref --sort=taggerdate --format '%(tag)_,,,_%(taggerdate:raw)_,,,_%(taggername)_,,,_%(subject)' refs/tags | awk 'BEGIN { FS = "_,,,_" } ; { t=strftime("%Y-%m-%d %H:%M",$2); printf "%-20s %-18s %-25s %s\n", t, $1, $4, $3 }'
# delete all local tags, and update with list of remote tags
git tag -l | xargs git tag -d && git fetch -t
# get list of all author's emails of the repo
@XVilka
XVilka / TrueColour.md
Last active February 7, 2023 10:20
True Colour (16 million colours) support in various terminal applications and terminals
View TrueColour.md

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
View Module.php
<?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 February 6, 2023 04:10
Very complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
####
#### 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
####