Skip to content

Instantly share code, notes, and snippets.

View lexagr's full-sized avatar
:shipit:
[object Object]

lexagr

:shipit:
[object Object]
View GitHub Profile
@Mr0grog
Mr0grog / constant-pooled-data.mjs
Created April 26, 2022 03:23
Parse Airtable’s ConstantPooledData format.
/**
* Parse Airtable's "ConstantPooledData" format. They recently started using
* this format to compress some API responses, and it appears to be a
* home-grown format.
*
* Call `parseData()` if you have an object with data (e.g. a JSON-parsed API
* response body).
*
* Call `parseString()` if you have a raw string of data (e.g. an API response
* body).
@bugworm
bugworm / TKGRAPHICSSETTINGS.MXML
Created August 21, 2019 19:44
No Man's Sky fix
<?xml version="1.0" encoding="utf-8"?>
<Data template="TkGraphicsSettings">
<Property name="Version" value="4" />
<Property name="FullScreen" value="false" />
<Property name="Borderless" value="false" />
<Property name="Monitor" value="0" />
<Property name="MonitorNames">
<Property name="MonitorNames_00" value="0|Radeon RX 580 Series|Generic PnP Monitor" />
<Property name="MonitorNames_01" value="1|Radeon RX 580 Series|Generic PnP Monitor" />
</Property>
@npearce
npearce / install-docker.md
Last active September 30, 2025 13:57
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@phoe
phoe / lzma_sample.cpp
Created July 7, 2017 10:55 — forked from Treeki/lzma_sample.cpp
simple LZMA SDK compression/decompression example
// note: -D_7ZIP_ST is required when compiling on non-Windows platforms
// g++ -o lzma_sample -std=c++14 -D_7ZIP_ST lzma_sample.cpp LzmaDec.c LzmaEnc.c LzFind.c
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <memory>
#include "LzmaEnc.h"
#include "LzmaDec.h"
@superwills
superwills / OpenSSL RSA encryption sample
Last active November 2, 2022 09:45
Base64 encoding and RSA encryption sample
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <openssl/rsa.h>
#include <openssl/engine.h>
#include <openssl/pem.h>
// I'm not using BIO for base64 encoding/decoding. It is difficult to use.
// Using superwills' Nibble And A Half instead