Skip to content

Instantly share code, notes, and snippets.

@ilikenwf
ilikenwf / amp.user.css
Last active Apr 9, 2021
Stylus: Disable Google AMP Page Delay
View amp.user.css
/* ==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,
View blocklistdomains.txt
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 / auto_share
Created Nov 30, 2020
auto_share from archwiki - modified to support both nfs and smb
View auto_share
#!/bin/bash
function net_umount {
umount -l -f $1 &>/dev/null
}
function net_mount {
mountpoint -q $1 || mount $1
}
@ilikenwf
ilikenwf / info-credentials
Created Oct 17, 2020
Cheap D-Link Cameras Like DCS-2132L-ES
View info-credentials
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
emulation build fix (gcc10?) archlinux
View stringfix.patch
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"
View pedalcommander_shogun_shopify.html
<script class="analytics" type="2e8b4f67f4effff55f7ecbfb-text/javascript">(window.gaDevIds=window.gaDevIds||[]).push('BwiEti');
(function () {
var customDocumentWrite = function(content) {
var jquery = null;
if (window.jQuery) {
jquery = window.jQuery;
} else if (window.Checkout && window.Checkout.$) {
View transmission-remote-gtk.profile
# Firejail profile for transmission-remote-gtk
# Description: A remote control utility for transmission-daemon (GTK GUI)
# This file is overwritten after every install/update
# Persistent local customizations
include transmission-remote-gtk.local
# Persistent global definitions
# added by included profile
#include globals.local
ignore private-lib
View js
'use strict';
alert('wtf')
function defineobjectproperty(val, e, c, w) {
// Makes an object describing a property
return {
value: val,
enumerable: !!e,
configurable: !!c,
writable: !!w
}
@ilikenwf
ilikenwf / gtk3.patch
Last active Jan 28, 2018
AUR is a pain in the rear
View gtk3.patch
diff --git a/mcomix/about_dialog.py b/mcomix/about_dialog.py
index b31cbf4..4b2b6f3 100644
--- a/mcomix/about_dialog.py
+++ b/mcomix/about_dialog.py
@@ -1,18 +1,18 @@
# -*- coding: utf-8 -*-
"""about_dialog.py - About dialog."""
-import webbrowser
-import gtk
@ilikenwf
ilikenwf / PKGBUILD
Created Jan 28, 2018
Fixed up anbox pkgbuild
View 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')