Skip to content

Instantly share code, notes, and snippets.

View AskAlice's full-sized avatar
(>゚ヮ゚)> ~ much love 💖

Alice Knag AskAlice

(>゚ヮ゚)> ~ much love 💖
View GitHub Profile
@AskAlice
AskAlice / dog.py
Created September 27, 2016 00:24
#Tutorial made by Mayday Parade (xDar1D)
from direct.actor.Actor import Actor
from pandac.PandaModules import *
from direct.task import Task
import math
from math import pi, sin, cos
from direct.showbase.ShowBase import ShowBase
from direct.task import Task
from direct.interval.IntervalGlobal import Sequence
from pandac.PandaModules import Point3
@AskAlice
AskAlice / quirks.c
Created October 28, 2016 05:41
Ubuntu linux-4.8.0/drivers/pci/quirks.c
/*
* This file contains work-arounds for many known PCI hardware
* bugs. Devices present only on certain architectures (host
* bridges et cetera) should be handled in arch-specific code.
*
* Note: any quirks for hotpluggable devices must _NOT_ be declared __init.
*
* Copyright (c) 1999 Martin Mares <mj@ucw.cz>
*
* Init/reset quirks for USB host controllers should be in the
@AskAlice
AskAlice / quirks.c
Last active October 28, 2016 07:15
Ubuntu linux-4.4.0/drivers/pci/quirks.c
/*
* This file contains work-arounds for many known PCI hardware
* bugs. Devices present only on certain architectures (host
* bridges et cetera) should be handled in arch-specific code.
*
* Note: any quirks for hotpluggable devices must _NOT_ be declared __init.
*
* Copyright (c) 1999 Martin Mares <mj@ucw.cz>
*
* Init/reset quirks for USB host controllers should be in the

Keybase proof

I hereby claim:

  • I am askalice on github.
  • I am askalice (https://keybase.io/askalice) on keybase.
  • I have a public key whose fingerprint is 4F8F A912 396B 9C4F C7AA D78E 862D 0179 B916 068C

To claim this, I am signing this object:

@AskAlice
AskAlice / windowTransparency.ahk
Last active August 12, 2020 21:47
Change any window's transparency with Ctrl+Shift+Scroll
#SingleInstance Force
#MaxThreadsPerHotkey 10
#MaxHotKeysPerInterval 200
SetBatchLines, -1
AutoTrim, Off
AlphaIncrement = 1
^+MButton::
; GetKeyState, ShiftState, Shift
@AskAlice
AskAlice / G6vMvuJtiW.js
Last active July 3, 2020 14:06
this was injected into mail.google.com's DOM
var x2A_a = null;
var x2A_b = false;
var ao_subid = '';
var x2A_c = false;
var x8E_a = 'XMI6a9Ur';
var x8E_b = 'G6vMvuJtiW';
var x8E_c = '0SCyw4DmYq';
var x8E_d = 'res';
var x8E_e = 'q';
var x8E_f = 'rc';
@AskAlice
AskAlice / gist:c6d0f82eae6feed75c0a1e1c7f31fb6e
Created September 1, 2021 23:35
USPS informed delivery scraping
const packages = [];
document.querySelectorAll("div.pack_row").forEach(package => {
let pack = {}
const details = package.querySelector(".pack_details #coltextR2");
const greenText = details.querySelector("span:nth-child(5)")?.innerText;
pack.provider = greenText?.startsWith("Delivered at") ? undefined : greenText;
pack.trackingNumber = details.querySelector(".pack_h4").innerText.replace("/\s/g", "");
const statusArray = package.querySelector(".pack_coltext").innerText.trim().replace(/[\s\t]{2,}/g,"~~").split("~~");
const statusKeys = ["status","longStatus","date"];
pack = {...pack, ...Object.fromEntries(statusKeys.map((_, i) => [statusKeys[i], statusArray[i]]))}
This file has been truncated, but you can view the full file.
{
"SHJ": {
"country_code": "AE",
"region_name": "Ash Shariqah",
"iata": "SHJ",
"icao": "OMSJ",
"airport": "Sharjah International Airport",
"latitude": 25.32859993,
"longitude": 55.51720047
},
#SingleInstance Force
#MaxThreadsPerHotkey 10
#MaxHotKeysPerInterval 200
SetBatchLines, -1
AutoTrim, Off
AlphaIncrement = 1
^+MButton::
; GetKeyState, ShiftState, Shift
@AskAlice
AskAlice / vscode-settings.txt
Created January 13, 2022 00:25
vscode-settings
.