Skip to content

Instantly share code, notes, and snippets.

View pombredanne's full-sized avatar

Philippe Ombredanne pombredanne

View GitHub Profile
@pombredanne
pombredanne / pytorch.layers.txt
Last active January 16, 2025 16:50
Wipe out certain layer of a saved Docker image, replacing some of the layer.tar tarballs with an empty tar
c1c323164163613a794a928a61f4531429f89f88958e0e1beae56bb4a7c31611
0ae5d02809c975f02bf6c7fd0059f350edcf59345d600c553f84018f8883bc20
ddb4dde553b474b7d048c0fed4711a8ad087c39598668ef6c258797a143e2443
0a0b4a377b2e34f18f144936b4f7e2e07810454ba402979561388964f969df90
5c6a155523dc77a3f9a4f59d5139e2f53bb8de458b556d2f9c1f17ef10f546ec
f9137a022811d217b0f63e361ed194826097b0dfdd84604ffb5594e8c61c8e66
1e937d2a0ffbf2b8b761f21153adcab8bc7609bf8be41cbbd7b442426e7edc05
7fd6483e5d078e831e7194a9193205baa4a464c705cb65ed65f633a02dd83e30
0fc731e19b6385738bdc09c306570c4a27d7a7b2ef1d15e73421ffe184779af2
1f25bcf1de2b925edb8c1176b2f72cc9390fcce78606734313e256cbb3c8c3b5
CopyrightThis XMPP Extension Protocol is copyright © 1999 – 2024 by the XMPP Standards Foundation (XSF).
Permissions
Permission is hereby granted, free of charge, to any person obtaining a copy of
this specification (the "Specification"), to make use of the
Specification without restriction, including without limitation the
rights to implement the Specification in a software program, deploy the
Specification in a network service, and copy, modify, merge, publish,
translate, distribute, sublicense, or sell copies of the Specification,
and to permit persons to whom the Specification is furnished to do so,
@pombredanne
pombredanne / pdb_parser_lite.cpp
Created November 30, 2024 21:48 — forked from namazso/pdb_parser_lite.cpp
A lightweight PDB parser that retrieves type and symbol CodeView streams.
/* MIT License
*
* Copyright (c) namazso 2018
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
vulnerabilities:
VCID-18z2-2yw1-aaaj:
vulnerability_id: VCID-18z2-2yw1-aaaj
aliases:
- CVE-2010-2263
summary: Vulnerabilities with Windows file default stream
severities: []
weaknesses: []
references:
- url: https://nvd.nist.gov/vuln/detail/CVE-2010-2263
@pombredanne
pombredanne / winsocketpair.py
Created October 3, 2024 16:11 — forked from geertj/winsocketpair.py
Emulates the UNIX socketpair() system call on Windows. This function uses a trick with non-blocking sockets to prevent the need for a thread. A socketpair can be used as a full-duplex, select()able pipe on Windows.
def socketpair(family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0):
"""Emulate the Unix socketpair() function on Windows."""
# We create a connected TCP socket. Note the trick with setblocking(0)
# that prevents us from having to create a thread.
lsock = socket.socket(family, type, proto)
lsock.bind(('localhost', 0))
lsock.listen(1)
addr, port = lsock.getsockname()
csock = socket.socket(family, type, proto)
csock.setblocking(0)
@pombredanne
pombredanne / copy-github-cards.py
Created August 8, 2024 16:09 — forked from jnm/copy-github-cards.py
Copy GitHub project cards between boards
import requests
headers = {'Authorization': 'token <ahem>', 'Accept': ' application/vnd.github.inertia-preview+json'}
# e.g. from https://api.github.com/repos/jnm/cuddly-doodle/projects
get_url = 'https://api.github.com/projects/columns/2942196/cards'
# e.g. from https://api.github.com/orgs/kobotoolbox/projects
post_url = 'https://api.github.com/projects/columns/2942356/cards'
@pombredanne
pombredanne / gist:8d6dd5ee91a252c105b84dbe9bbde0f7
Created May 13, 2024 21:36
scancodeio_httrace420_clone_results-2024-05-13-21-34-10.cdx.json
{
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:4a35c69e-6ec3-4c43-afc7-85e9f08a4608",
"version": 1,
"metadata": {
"component": {
"bom-ref": "58e5b27f-388c-42ef-aa19-bbc8f852467c",
"name": "httrace420 clone",
NVD Program Announcement UPDATED - April, 25th 2024
NIST maintains the National Vulnerability Database (NVD), a repository of
information on software and hardware flaws that can compromise computer security.
This is a key piece of the nation’s cybersecurity infrastructure.
There is a growing backlog of vulnerabilities submitted to the NVD and requiring
analysis. This is based on a variety of factors, including an increase in software
and, therefore, vulnerabilities, as well as a change in interagency support.
@pombredanne
pombredanne / hashes.txt
Created April 3, 2024 09:16 — forked from q3k/hashes.txt
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'