Skip to content

Instantly share code, notes, and snippets.

View polynomial's full-sized avatar

Benjamin Smith polynomial

View GitHub Profile
@polynomial
polynomial / xz-backdoor.md
Created April 4, 2024 06:37 — forked from thesamesam/xz-backdoor.md
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is still a new situation. There is a lot we don't know. We don't know if there are more possible exploit paths. We only know about this one path. Please update your systems regardless.

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.

@polynomial
polynomial / iitc-plugin-ingressKML-exporter.user.js
Created April 14, 2023 05:26 — forked from 5310/iitc-plugin-ingressKML-exporter.user.js
IITC plugin: Ingress KML Exporter #script #userscript
// ==UserScript==
// @id iitc-plugin-CSV@pad
// @name IITC plugin: Ingress KML Exporter
// @category Keys
// @version 1.0.20160105.02
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL https://gist.github.com/Dron007/33205981b11ab4cadb31/raw/f425c125f236256998f143f385249006c0442223/iitc-plugin-ingressKML-exporter.user.js
// @downloadURL https://gist.github.com/Dron007/33205981b11ab4cadb31/raw/f425c125f236256998f143f385249006c0442223/iitc-plugin-ingressKML-exporter.user.js
// @description Exports portals currently in view for use with Google Map ( KML Format ).
// @include https://intel.ingress.com/*
@polynomial
polynomial / hot_sour_soup.txt
Last active July 22, 2021 06:24
hot and sour soup is good
https://soupeduprecipes.com/authentic-hot-and-sour-soup-recipe/
Ingredients
Main Ingredients
2 pieces of dried shitake mushroom
Few pieces of dried black fungus
3.5 ounces of shredded pork marinate with 2 tsp of soy sauce +2 tsp of cornstarch
5 ounces of silken or soft tofu cut it into thin shreds
2 beaten eggs
1/3 cups of shredded carrot
1/2 tbsp of minced ginger
https://www.greedyferret.com/perfect-biltong-recipe-south-african-beef-jerky
1/4 pepper to 3/4 coriander
2 kg Beef—silverside or toprump
5 tbsp Brown (malt) or cider vinegar (approx)
2.5 tbsp Coarse salt (2% of the meat weight)
2 tsp Ground black pepper
2 tbsp Coriander seed
1.5 tbsp Brown sugar
Toast the coriander seeds in a dry pan, then grind down in a pestle and mortar or spice grinder. It should be mostly powder, with a few pieces of seed shells left in.
Data & Tools:
Many contributors. Thanks to all.
Contact:
[email protected]
IRC Channels:
#parlerparsers at https://webirc.hackint.org/
#parlerparsers-video for video IDing
@polynomial
polynomial / googlelatitude_to_plot.py
Created October 14, 2020 05:24 — forked from epijim/googlelatitude_to_plot.py
Take location data from google takeout, convert from json to kml and overlay on satellite photo
#I've merged code from two different sources, originally published by github users snowdonjames and Scarygami
#Import JSON, spit out KML
#usage.. location_history_json_converter.py input output [-h] [-f {kml,json,csv,js,gpx,gpxtracks}] [-v]
from __future__ import division
import sys
import json
import math
#!/usr/bin/env sh
set -eu
if [ ! -f ${1}.done ]; then
for i in $(find $1 -type f -iname "*.zip" ); do
dir=$(echo "$i" | sed -e 's/[^\/]*$//')
file=$(basename "$i")
mkdir -p "$2/$dir"
unzip -o $i -d "$2/$dir"
done 2>&1 | tee -a log.$(echo $1 | sed 's/\//_/g')
mogrify -distort barrel "0 0 -0.3" *.JPG
from: https://photo.stackexchange.com/questions/41260/is-there-a-command-line-tool-in-linux-to-remove-fisheye-effect
#!/bin/bash
dumpType=$1 # Should be "full" or "brief"
if [ "$dumpType" != "full" -a "$dumpType" != "brief" ]
then
echo "Parameter 1 should be \"full\" or \"brief\"!"
exit 1
fi
if [ -n "$2" ] ; then
100 GREATEST SPORTING MOMENTS - RESULTS
100 Naseem Hamed beats Kevin Kelley
99 Duncan Goodhew wins Olympic Breaststroke Gold
98 Flo Jo wins Olympic 100m gold
97 Ronnie Radford's FA Cup thunderbolt