Skip to content

Instantly share code, notes, and snippets.

View fuzzykiller's full-sized avatar

Daniel Betz fuzzykiller

View GitHub Profile
@fuzzykiller
fuzzykiller / yarn.lock.diff
Created February 2, 2019 18:11
Diff between create-react-app yarn.lock and regenerated yarn.lock
diff --git a/yarn.lock b/yarn.lock
index f3fe0bd..7936da9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -50,11 +50,11 @@
source-map "^0.5.0"
"@babel/generator@^7.1.6", "@babel/generator@^7.2.2":
- version "7.2.2"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.2.2.tgz#18c816c70962640eab42fe8cae5f3947a5c65ccc"
@fuzzykiller
fuzzykiller / userChrome.css
Created February 9, 2017 08:45
userChrome.css to work around Firefox bug
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
@-moz-document url("chrome://browser/content/browser.xul") {
button .button-text {
color: black;
}
}
@-moz-document url("chrome://global/content/commonDialog.xul") {
@fuzzykiller
fuzzykiller / viglink.md
Created January 17, 2017 09:59
Go from Viglink spam from DISQUS to actual link
[root@db-nb-08 fuzzy]# losetup -P loop0 debian-8.5.0-i386-netinst.iso
[root@db-nb-08 fuzzy]# losetup -P loop1 slacko-6.3.0.iso
[root@db-nb-08 fuzzy]# mount /dev/loop0p1 /mnt/bla
mount: /dev/loop0p1 is write-protected, mounting read-only
[root@db-nb-08 fuzzy]# ls -l /mnt/bla
total 981
-r--r--r-- 1 root root 146 Jun 4 16:08 autorun.inf
dr-xr-xr-x 1 root root 2048 Jun 4 16:08 boot
dr-xr-xr-x 1 root root 2048 Jun 4 16:08 css
lr-xr-xr-x 1 root root 1 Jun 4 16:08 debian -> .
[root@server ~]# zpool list tank
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
tank 16.2T 14.0T 2.22T - 9% 86% 1.00x ONLINE -
[root@server ~]# zpool status tank
pool: tank
state: ONLINE
scan: scrub repaired 0 in 16h25m with 0 errors on Sun Nov 8 06:43:27 2015
config:
NAME STATE READ WRITE CKSUM
@fuzzykiller
fuzzykiller / git-merge-associate
Last active November 30, 2015 14:23 — forked from MattSeen/git-merge-associate
Put somewhere in your $PATH
#!/bin/bash
#
# Purpose: manually associate missed renames in merge conflicts
#
# Usage: git merge-associate <our-target> <base> <theirs>
#
# Example: After a failed rename detection A/a -> B/b which results
# in CONFLICT (delete/modify) for A/a and corresponding "deleted by us"
# messages in git status, the following invocation can be used to manually
# establish the link:
@fuzzykiller
fuzzykiller / Dynamic.cs
Created September 22, 2015 19:24
Dynamic objects in C#
private static void DoStuff()
{
var stuff = GetStuff();
//// This won't compile:
//string myText = stuff.Banana;
dynamic dynamicStuff = stuff;
//// This compiles, because it uses Reflection to retrieve the property.
//// It will fail at runtime though, because 'Banana' obviously isn't a number.
@fuzzykiller
fuzzykiller / Greasemonkey.js
Last active February 16, 2020 11:20 — forked from azu/Greasemonkey.js
Greasemonkey API stubs with JSDoc, for WebStorm etc
/**
* Created by azu.
* Date: 10/11/28
* Updated by fuzzykiller (2015/08/28)
* License: MIT License
*/
/**
* An object that exposes various information about Greasemonkey and the running User Script.
*/
@fuzzykiller
fuzzykiller / Artikel.md
Created July 2, 2011 16:02
Die dubiosen Verstrickungen von Wiki-Watch: Hier prüft der Staatsbürger das Insulin noch persönlich

Hier prüft der Staatsbürger das Insulin noch persönlich

Las sich der Wikipedia-Eintrag zu einem Medikament nicht gerade noch ganz anders? Änderungen im Sinne der Pharmaindustrie rücken das wissenschaftliche Projekt „Wiki-Watch“ ins Zwielicht.


Weltweit nutzen Schüler und Studenten heute das Online-Lexikon Wikipedia bei Hausaufgaben und Seminararbeiten. Auch hierzulande verschaffen sich Hunderttausende täglich Rat. Aber ein Lexikon, das im Internet öffentlich und gemeinsam von den Nutzern erstellt und verbessert wird, hat seine Tücken. Erfahrene Wikipedia-Autoren kämpfen an vielen Stellen gegen inhaltlichen Vandalismus, plumpen Unsinn und strategisch plazierte Informationskampagnen. In Frankfurt an der Oder wurde ein Projekt ins Leben gerufen, dass Transparenz über die Qualität der Artikel schaffen will.

Mit statistischen Mitteln wird bewertet, wie gut ein einzelner Eintrag bei Wikipedia ist. Wiki-Watch soll Transparenz über die Qualität der Einträge herstellen. Die Forscher firmieren unter der Adr