Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Chrome (at least) likes to cache HTTP redirects, an issue if you are running logging/reporting on those redirect actions server side. Combat this with some HTTP headers.
Location: http://domain.com/redirect
Cache-Control: must-revalidate,no-cache,no-store
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Or in PHP land that could be...
# basic dependencies | |
import discord | |
from discord.ext import commands | |
# aiohttp should be installed if discord.py is | |
import aiohttp | |
# PIL can be installed through | |
# `pip install -U Pillow` | |
from PIL import Image, ImageDraw |
# Requires pyyaml | |
import os | |
import yaml | |
run = os.system | |
new_window = lambda cmd: run('tmux new-window -n "logs" "{}"'.format(cmd)) | |
split_vertical = lambda cmd: run('tmux split-window "{}"'.format(cmd)) | |
split_horizontal = lambda cmd: run('tmux split-window -h "{}"'.format(cmd)) | |
even_vertical = lambda: run('tmux select-layout even-vertical') |
import xml.etree.ElementTree as ET | |
import json | |
import sys | |
import re | |
def load(name): | |
root = ET.parse(name) | |
return json.loads(root.findtext('./string')) | |
def normalize(record): |
import sys | |
import time | |
import asyncio | |
import threading | |
import traceback | |
import concurrent.futures | |
import discord | |
from discord.ext import commands |
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.
On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that