Skip to content

Instantly share code, notes, and snippets.

@ilikenwf
ilikenwf / gtk3.patch
Last active January 28, 2018 22:04
AUR is a pain in the rear
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 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')
@ilikenwf
ilikenwf / js
Created June 13, 2019 22:08
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
}
# 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
<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.$) {
@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"
@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 / 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 / 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,
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