Skip to content

Instantly share code, notes, and snippets.

@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
0.0.0.0 activations.cdn.mozilla.net
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
0.0.0.0 incoming.telemetry.mozilla.org
0.0.0.0 input.mozilla.org
0.0.0.0 install.mozilla.org
@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
}
@ilikenwf
ilikenwf / info-credentials
Created October 17, 2020 22:51
Cheap D-Link Cameras Like DCS-2132L-ES
These will never support the various connected services, but if we want to mess with the GPL released code or modify,
it is possible to ssh in as root, which is useful for the date/time since years beyond 2019 aren't supported:
ssh details:
Username: root
Password: hi3518c
Port: 8992
You can mount -o remount,rw / to make changes to root. Other than the usual places, editing /mnt/data/sysenv.dat
@ilikenwf
ilikenwf / stringfix.patch
Created May 17, 2020 20:32
emulation build fix (gcc10?) archlinux
diff --git a/es-app/src/FileData.h b/es-app/src/FileData.h
index 4bfaf64d..bae8a786 100644
--- a/es-app/src/FileData.h
+++ b/es-app/src/FileData.h
@@ -2,6 +2,7 @@
#ifndef ES_APP_FILE_DATA_H
#define ES_APP_FILE_DATA_H
+#include <string>
#include "utils/FileSystemUtil.h"