Skip to content

Instantly share code, notes, and snippets.

@thesamesam
thesamesam / xz-backdoor.md
Last active May 19, 2024 20:15
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@gjcarneiro
gjcarneiro / kubeadm-devbox.yaml
Last active August 27, 2018 03:47
ansible playbook to install kubernetes for devbox on ubuntu
#
# This playbook installs kubernetes on the local host for development purposes
# only. This assumes there is a local docker daemon running, and that docker
# doesn't use the latest "overlay2" filesystem driver (which kubernetes doesn't
# support).
#
# Should work on Ubuntu 16.04, in theory, and was tested on 17.04.
#
@SaveTheRbtz
SaveTheRbtz / ip_vs_sch.c
Last active July 12, 2018 12:01
Consistent source hashing scheduler for IPVS (SH-derivative, GPL)
/*
* IPVS: Source Consistent Hashing scheduling module
*
* Authors: Jonathan Lee <jonlee@dropbox.com>
*
* Changes:
*
*/
#define KMSG_COMPONENT "IPVS"

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@ChrisFulstowAGL
ChrisFulstowAGL / fast-forward.js
Created May 8, 2016 10:15
Video playback speed bookmarklet
javascript:var s = prompt("Playback speed?"); document.getElementsByTagName("video")[0].playbackRate = parseFloat(s);
@ericlw
ericlw / hired.com_experience.markdown
Last active October 17, 2019 20:27
My Hired.com bonus and experience getting it

I got hired through Hired.com, the process allowed me to quickly determine what the industry thinks of my skill sets, transparently see what companies would offer for positions, compare offers and make the right career choice!

Is Hired legit?

The problems with Hired have nothing to do with their business, but more about some of the companies that use it.

When you are a job seeker on Hired, you get the option of setting your desired salary in your online profile. This GREATLY influences what happens next.

Companies will try to get your attention by requesting to interview you for a job that matches your salary ideal. If you make it to the offer stage, those same companies will suddenly try to low ball you, in the same tired, traditional and potentially awkward negotiation phase. The "salary" will often magically transform into a lower base salary + performance bonus that still results in a numerically lower annual salary than the interview request said.

@eiri
eiri / README.md
Created August 27, 2015 12:35
Demonstrate Erlang's 'busy wait' effect on CPU utilization

Demonstrate Erlang's 'busy wait' effect on CPU utilization

How?

Just make Erlang to do some light-load task in a bunch of relatively short leaving processes. Calculating PI to 80th digit in batches per 10 procs with short, 8 ms, sleep in-between, to give schedulers a breath space, will do.

Running

Run erl with 8 schedulers and no busy waiting on schedulers at all.

@nsisodiya
nsisodiya / docker.sh
Created August 15, 2015 06:22
Upgrade to Docker 1.8 on ubuntu box
sudo su
echo deb https://apt.dockerproject.org/repo ubuntu-`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d'=' -f2` main >> /etc/apt/sources.list.d/docker.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D
apt-get update
apt-get purge lxc-docker*
apt-get purge docker.io*
apt-get install docker-engine
exit
@mnot
mnot / snowden-ietf93.md
Last active September 12, 2023 13:40
Transcript of Edward Snowden's comments at IETF93.
@CMCDragonkai
CMCDragonkai / haskell_numeric_typeclasses.md
Last active February 23, 2022 23:44
Haskell: Numeric Typeclasses - How numbers work!

Numeric Typeclasses - How numbers work!

Numbers in Haskell are typed of course. They also exist as instances of a numeric typeclass hierarchy. I was confused with converting and working with numbers of different types, and not being sure which functions were polymorphic and could work with different numeric types. So I created a little diagram. Do note that the typeclass hierarchy of Haskell actually does somewhat follow the hierarchy of numbers in Math.