Skip to content

Instantly share code, notes, and snippets.

View USSX-Hares's full-sized avatar

Peter Zaitcev / [USSX] Hares USSX-Hares

  • LG Electronics, Inc.
  • Saint Petersburg, Russia
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active June 7, 2024 13:12
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

@DavidPesticcio
DavidPesticcio / get_jenkins_credentials.groovy
Created November 26, 2019 18:15
Jenkins: How to decrypt credentials
// Here is a short snippet you can just run from the jenkins script console, to dump all of your credentials to plain text.
com.cloudbees.plugins.credentials.SystemCredentialsProvider.getInstance().getCredentials().forEach{
it.properties.each { prop, val ->
println(prop + ' = "' + val + '"')
}
println("-----------------------")
}
@YuMS
YuMS / update-git.sh
Created June 29, 2016 09:28
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y
@mlabrum
mlabrum / outgoing
Created December 19, 2011 23:13
git outgoing
#!/bin/sh
# From: http://weblog.latte.ca/blake/employment/mozilla/thunderbird/gitOutgoing.html
git push --dry-run $1 2>&1 | awk '/^ / {print $1}' | xargs git log --graph --abbrev-commit --date=relative --pretty='format:%Cred%h%Creset - %s %Cgreen(%cr) %C(yellow)<%an>%C(reset)%C(white).'