Skip to content

Instantly share code, notes, and snippets.

View saschanaz's full-sized avatar
🏢
Working from office

Kagami Sascha Rosylight saschanaz

🏢
Working from office
View GitHub Profile
@saschanaz
saschanaz / naver-cuttoon-cutter.user.js
Last active June 24, 2018 04:52
naver-cuttoon-cutter
// ==UserScript==
// @name Cuttoon Cutter
// @namespace https://saschanaz.github.io/
// @version 0.11.2
// @description try to take over the cuttoons!
// @author Kagami Sascha Rosylight
// @match https://m.comic.naver.com/webtoon/detail.nhn?*
// @grant none
// ==/UserScript==
@saschanaz
saschanaz / aniplus-patch.md
Last active November 20, 2018 03:32
aniplus-patch.user.js
@saschanaz
saschanaz / log
Created July 18, 2017 00:35
npm.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'publish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 2c6df99fd24ac7f7
5 verbose publish [ '.' ]
6 info lifecycle [email protected]~prepublish: [email protected]
7 silly lifecycle [email protected]~prepublish: no script for prepublish, continuing
@saschanaz
saschanaz / swfobject-patch.user.js
Last active August 28, 2019 18:58
swfobject patch
// ==UserScript==
// @name swfobject-patch
// @namespace http://saschanaz.github.io/
// @version 0.2
// @description try to take over the world!
// @author You
// @match http://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
@saschanaz
saschanaz / adblacklist.txt
Last active December 16, 2016 10:47
Adblock for SaschaNaz
[Adblock Plus 2.0]
@@$document,domain=~news.khan.co.kr|~gall.dcinside.com|~jpnews.kr|~news.donga.com|~www.hankyung.com
@saschanaz
saschanaz / bluehouse.js
Last active November 6, 2016 07:45
bluehouse
function toBlob(canvas) {
return new Promise((resolve, reject) => {
if (canvas.toBlob) {
canvas.toBlob(blob => resolve(blob));
}
else if (canvas.msToBlob) {
resolve(canvas.msToBlob());
}
});
}
@saschanaz
saschanaz / androidx86-81-grub.cfg
Last active April 21, 2021 21:17
Android-x86 USB boot
set timeout=0
# $1 Kernel dir
# $2 Title
# $3... Kernel cmdline
function add_boot_entry {
menuentry "$2" "$@" --class android-x86 {
savedefault
set root=$android
if [ -e $2/kernel ]; then
@saschanaz
saschanaz / strace.txt
Created October 30, 2016 11:53
Running valgrind throws General Protection Fault on dl-misc.c
execve("/usr/bin/valgrind", ["valgrind", "./tracegen", "-M", "32", "-N", "32", "-F", "1"], [/* 16 vars */]) = 0
brk(NULL) = 0x7fffd2bd1000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc5e2b80000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=30886, ...}) = 0
mmap(NULL, 30886, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc5e2b87000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@saschanaz
saschanaz / partial.js
Last active September 27, 2016 03:57
Partial class creator
function partial(base, extension) {
extension.prototype.__proto__ = base.prototype.__proto__; // to enable 'super' reference
const descriptors = Object.getOwnPropertyDescriptors(extension.prototype);
delete descriptors.constructor; // must not override constructor
Object.defineProperties(base.prototype, descriptors);
return base;
}
@saschanaz
saschanaz / check.js
Last active March 14, 2016 05:48
DOM overflow checker
for (const element of Array.from(document.querySelectorAll('*'))) {
if (element.clientWidth > window.innerWidth) {
console.log("Wider Element: ", element, ", width: ", element.clientWidth)
}
}