Skip to content

Instantly share code, notes, and snippets.

@q3k
q3k / hashes.txt
Last active May 16, 2024 16:49
liblzma backdoor strings extracted from 5.6.1 (from a built-in trie)
0810 b' from '
0678 b' ssh2'
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00'
0708 b'%s'
0108 b'/usr/sbin/sshd\x00'
0870 b'Accepted password for '
01a0 b'Accepted publickey for '
0c40 b'BN_bin2bn\x00'
06d0 b'BN_bn2bin\x00'
0958 b'BN_dup\x00'
@ShepherdSoasis
ShepherdSoasis / main.rs
Last active March 24, 2024 07:04
An example of serde's basic Serialize trait, implemented generically over any enumeration or structure.
use serde::Serialize;
struct Point {
x: i32,
y: i32,
}
fn main() {
let point = Point { x: 1, y: 2 };
;; curl -d 'id="1234"' -X POST 'http://localhost:65535/?name=otee'
(defn handler-that-needs-keyword-params
[{params :params}]
;; the following will return this response map:
;; {:body "Hello otee your ID is: 1234" ...}
(ring.util.response/response "Hello" (:name params) " your ID is: " (:id params)))
@dfr
dfr / buildah-install.md
Last active September 4, 2023 21:52
FreeBSD podman tech demo

This will pull in source code for podman, buildah and related modules, build everything and install to /usr/local. This all happens in a directory named 'build' which can be deleted to clean up or to force a clean build.

mkdir -p build
fetch https://gist.github.com/dfr/ac4dc043ee3780b690c5887a61f53494/raw/1e55da486792ffda61c9d6070d5d834888be9590/buildah-install.sh
chmod +x buildah-install.sh
(cd build && ../buildah-install.sh)

Make a container and run things inside it:

@leocosta037
leocosta037 / techday_upe_acesso_gcp.ipynb
Created September 30, 2021 17:25
TechDay_UPE_Acesso_GCP.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leocosta037
leocosta037 / techday_upe_acesso_azure.ipynb
Last active October 8, 2021 17:43
TechDay_UPE_Acesso_Azure.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leocosta037
leocosta037 / techday_upe_acesso_aws.ipynb
Created September 30, 2021 17:01
TechDay_UPE_Acesso_AWS.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@giggio
giggio / palestra-rust-from-scratch.md
Last active May 4, 2022 01:22
Links da palestra "Montando um micro container FROM scratch com Rust"
@siraben
siraben / projects-leaving-freenode.md
Last active March 31, 2023 18:13
List of projects and channels that have left or stayed on Freenode

Note: due to volume, this has been moved to https://github.com/siraben/freenode-exodus

Projects and channels that have left Freenode

This is a (necessarily incomplete) list of projects and channels that have decided to permanently move out of Freenode to https://libera.chat (unless stated otherwise). Please reach out below or on IRC if there's additions or corrections.

Sources are mostly comments I've seen on HN, various IRC channels and web searches.

@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation