Skip to content

Instantly share code, notes, and snippets.

View joedf's full-sized avatar
🦝
Studying geology, materials, and hacking computers

Joe DF joedf

🦝
Studying geology, materials, and hacking computers
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active July 25, 2024 09:00
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

@icbicket
icbicket / Bandgap_fitting.ipynb
Created October 12, 2021 15:51
Visual example of fitting a bandgap in low-loss electron energy loss spectroscopy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@remi
remi / shc.js
Last active March 2, 2022 14:32
Extract JSON object from https://smarthealth.cards QR code
// Extract JSON payload from SHC QR code (without any kind of private/public key verification)
// Credits + inspiration
// https://github.com/dvci/health-cards-walkthrough/blob/main/SMART%20Health%20Cards.ipynb
// Usage
// $ node shc.js "shc:/01234569…"
const zlib = require("zlib");
@SMUsamaShah
SMUsamaShah / List of JavaScript GUI libraries.md
Last active July 17, 2024 11:39
dat.gui alternatives to create GUI from JavaScript object

JavaScript GUI libraries

These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc

  1. Tweakpane https://github.com/cocopon/tweakpane Demo: https://cocopon.github.io/tweakpane/
  2. control-panel https://github.com/freeman-lab/control-panel
  3. ControlKit https://github.com/automat/controlkit.js
  4. guify https://github.com/colejd/guify Main site is down, here is the demo https://jons.website/projects/guify/index
  5. oui https://github.com/wearekuva/oui
  6. Palette.js https://github.com/lehni/palette.js
@joedf
joedf / videocapture.js
Last active April 14, 2018 20:32
generate an image from an HTML5 video element, useful for on-the-go thumbnails
// videocapture.js - MIT License
// credits: joedf (2018/04/10)
// Revision 8 - 2018/04/12
// modified from: https://codepen.io/renanpupin/pen/PqjyeK (Renan Pupin)
/**
* Captures a image frame from the provided video element.
*
* @param {Video} video HTML5 video element from where the image frame will be captured.
* @param {Number} scaleFactor Factor to scale the canvas element that will be return. This is an optional parameter.
@gbaman
gbaman / graphql_example.py
Created November 1, 2017 00:18
An example on using the Github GraphQL API with Python 3
# An example to get the remaining rate limit using the Github GraphQL API.
import requests
headers = {"Authorization": "Bearer YOUR API KEY"}
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section.
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers)
if request.status_code == 200:
@joedf
joedf / ahkrules_v1.04.txt
Last active October 27, 2017 04:58
[WIP] AHK Forum rules
AutoHotkey Community Rules
Version [INSERT VERSION], [INSERT DATE]
General Policy and Clauses
----------------------------------------------
A. FORUM TOS: https://autohotkey.com/boards/viewtopic.php?f=2&t=29155
NOTE: "This list is non-exhaustive - the Moderating team reserves the right to close any thread that they feel is contrary to the ethos of the forum."
B. The Moderation team will do their best to act in a fair and reasonable manner. Sanctions will only be applied as a last resort and any action taken will be explained in the relevant thread.
C. If moderation action is taken, you will need to acknowledge this through a dialog or you will be unable to post further in the forum. Please note that this dialog is not an agreement that the warning was justified - it is only there so that members are aware that moderation action has been taken and that they may have certain restrictions applied to their account.
D. If you feel that you have been unfairly moderated then contact the Moderator concerned or an ad
@gep13
gep13 / Update-AUPackages.md
Last active January 23, 2020 08:05
Update-AUPackages Report #powershell #chocolatey
@onesail
onesail / load-xml-src.js
Created June 3, 2016 23:01
add support for src attribute in strapdown.js
<!-- usage -->
<!-- <xmp src="homepage.md" theme="cerulean" style="display:none;"></xmp> -->
<!-- <script src="load-xmp-src.js"></script> -->
var elements = document.body.getElementsByTagName("*");
for(var i=0; i<elements.length; i++) {
var element = elements[i];
if(element.nodeName == "XMP") {
var xhr = new XMLHttpRequest();
xhr.open('GET', element.getAttribute("src"), false);
@xCONFLiCTiONx
xCONFLiCTiONx / Notepad2.ini
Last active May 18, 2023 13:55
Notepad2 VSCode Dark Theme (import)
##above is your settings##
[Custom Colors]
01=#000000
02=#0A246A
03=#3A6EA5
04=#52A5F8
05=#0D8206
06=#608020
07=#648000
08=#A46000