Skip to content

Instantly share code, notes, and snippets.

@ilikenwf
ilikenwf / testpkg.sh
Last active June 13, 2026 03:04
check AUR packages on system
#!/bin/bash
#
# aur_affected_check.sh
# Checks the specific aur-general mailing list post for affected packages
# and sees if any are installed locally + basic exploit indicators.
#
# Usage: ./aur_affected_check.sh
# Run as your normal user (it will use sudo only where needed for pacman -Qi).
set -euo pipefail
@ilikenwf
ilikenwf / PKGBUILD
Created January 28, 2018 10:09
Fixed up anbox pkgbuild
# Maintainer: Iwan Timmer <irtimmer@gmail.com>
pkgname=('anbox-git' 'anbox-modules-dkms-git')
_pkgname=anbox
pkgver=r717.b21e5d9
pkgrel=1
epoch=1
arch=('x86_64')
url="http://anbox.io/"
license=('GPL3')
0.0.0.0 activations.cdn.mozilla.net
0.0.0.0 dap-07-1.api.divviup.org
0.0.0.0 api.divviup.org
0.0.0.0 dap.services.mozilla.com
0.0.0.0 aus5.mozilla.org
0.0.0.0 crash-stats.mozilla.com
0.0.0.0 detectportal.firefox.com
0.0.0.0 experiments.mozilla.org
0.0.0.0 fhr.cdn.mozilla.net
0.0.0.0 getpocket.cdn.mozilla.net
@ilikenwf
ilikenwf / kodi_crashlog-20231217_161921.log
Created December 17, 2023 22:27
kodi_crashlog-20231217_161921.log
############## Kodi CRASH LOG ###############
################ SYSTEM INFO ################
Date: Sun Dec 17 16:19:21 CST 2023
Kodi Options:
Arch: x86_64
Kernel: Linux 6.6.6-2-cachyos-lto #1 SMP PREEMPT_DYNAMIC Mon, 11 Dec 2023 17:41:06 +0000
Release: Arch Linux
############## END SYSTEM INFO ##############
@ilikenwf
ilikenwf / jQueryServerside.asp
Created March 10, 2014 20:51
Classic ASP - jQuery Datatables Serverside Implementation - Efficiency and SQL Parameterization
<%
'=======================================================================================================================================
'LICENSE:
'By Matt Parnell <parnellm@evangel.edu>
'(C) 2013 Evangel University, all rights reserved
'By using this software, you agree to share all improvments and changes, and leave this licensing section intact
'=======================================================================================================================================
'EXAMPLE:
'Set oCMDInc = CreateObject("ADODB.Command")
'oCMDInc.ActiveConnection = oConnPAdmin
@ilikenwf
ilikenwf / fix_kodi_iptv_archlinux.patch
Created November 13, 2022 19:36
Fix kodi crash on archlinux for iptvsimple addon
diff --git a/PKGBUILD b/PKGBUILD
index aedcd81..fe8d85c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,12 +20,17 @@ sha256sums=('57710d3add72301d47a9eef016916ee5f61b7b8604c73450d67b9ba962eff60c'
'cc026f59fd6e37ae90f3449df50810f1cefa37da9444e1188302d910518710da'
)
-#prepare() {
+prepare() {
@ilikenwf
ilikenwf / attention.py
Created September 28, 2022 19:51
attention with xformers for automatic1111
import os
from inspect import isfunction
import math
import torch
import torch.nn.functional as F
from torch import nn, einsum
from einops import rearrange, repeat
from inspect import isfunction
from typing import Any, Optional
import xformers
@ilikenwf
ilikenwf / cachefly.txt
Created May 13, 2022 18:24
cachefly whitelist
!204.93.231.0
!204.93.231.1
!204.93.231.2
!204.93.231.3
!204.93.231.4
!204.93.231.5
!204.93.231.6
!204.93.231.7
!204.93.231.8
!204.93.231.9
@ilikenwf
ilikenwf / amp.user.css
Last active April 9, 2021 21:02
Stylus: Disable Google AMP Page Delay
/* ==UserStyle==
@name Google AMP Delay Remover
@author ilikenwf
@namespace ilikenwf
@version 20210409.0.2
@description `Use in conjunction with uBlock Origin to block the ampproject stuff and be free.`
@license GPL
==/UserStyle== */
html[amp] body,
@ilikenwf
ilikenwf / auto_share
Created November 30, 2020 07:38
auto_share from archwiki - modified to support both nfs and smb
#!/bin/bash
function net_umount {
umount -l -f $1 &>/dev/null
}
function net_mount {
mountpoint -q $1 || mount $1
}