Skip to content

Instantly share code, notes, and snippets.

View Mattia98's full-sized avatar

Mattia98

View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active April 25, 2024 23:45
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

@witmin
witmin / ffmpeg-mp4-to-animated-webp.md
Last active April 20, 2024 23:49
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

/* cpu-info.vala
*
* requirements:
* * lscpu (if not exists, query() always throws an error)
*
* deps:
* * glib-2.0
* * gobject-2.0
*
* Written in 2018 by kosmolot (kosmolot17@yandex.com)
@bnutz
bnutz / nexus5X_bootloop_fix_sequence.md
Last active August 9, 2021 20:20
Procedure used for working around Nexus 5X bootloop issue

Just documenting my own experiences in restoring my Nexus 5X back from bootlooping state.

Hopefully this can be helpful to some, but "common sense" caveats apply:

  • Follow at your own risk
  • I'm not responsible for any loss of data, loss of hair, bricked devices, exploding(!) devices, mental / physical injuries, etc. etc. etc.

Remember:

  • This is only an account of what I did to get my 5X working operational again.
  • YMMV if you decide to try the steps below on your bootlooping device.
@chrisbrownie
chrisbrownie / Install-WindowsDriversFromFolder.ps1
Created September 19, 2017 06:54
Installs Windows drivers from a folder
Get-ChildItem "C:\mydrivers\" -Recurse -Filter "*.inf" |
ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install }
@cmer
cmer / haproxy.cfg
Last active April 15, 2024 09:54
Simple, no bullshit TCP port forwarding using HAProxy
listen l1
bind 0.0.0.0:443
mode tcp
timeout connect 4000
timeout client 180000
timeout server 180000
server srv1 host.example.com:9443
@joschi
joschi / graylog_token.txt
Last active September 28, 2023 04:27
Graylog access token login
# Create an access token for user "admin" with name "test-1234"
# POST /users/{username}/tokens/{name}
$ curl -i -u admin:admin -H 'Accept: application/json' -X POST 'http://127.0.0.1:12900/users/admin/tokens/test-1234?pretty=true'
HTTP/1.1 200 OK
X-Graylog-Node-ID: cd03ee44-b2a7-4824-be16-bb7456149dbd
Content-Type: application/json
Date: Mon, 08 Aug 2016 12:12:09 GMT
Content-Length: 139
{
@mavieth
mavieth / colors.sh
Created February 26, 2016 19:36
Bash script color output
#!/bin/bash
DARKGRAY='\033[1;30m'
RED='\033[0;31m'
LIGHTRED='\033[1;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
LIGHTPURPLE='\033[1;35m'
@poliveira89
poliveira89 / gist:5966434
Created July 10, 2013 13:51
How to use WebDav on Linux+XFCE+Thunar
davs://poliveira@some.webserver.pt/webdav/someFolder