Skip to content

Instantly share code, notes, and snippets.

Avatar

Daku DakuTree

View GitHub Profile
@troniez
troniez / Crying with NGINX Regex, IF statement, and module http rewrite.md
Last active Oct 6, 2020
Crying with NGINX Regex matching, IF statement and module http rewrite $1 $2 meaning
View Crying with NGINX Regex, IF statement, and module http rewrite.md

If Statement and common condition

Syntax:	if (condition) { ... }
Default:	—
Context:	server, location

A condition may be any of the following:

View severscam.md

The Scammiest Scam To Yet Anonymity Scam

I'm still holding out for this being a hoax, a big joke, and that they're going to cancel the kickstarter any minute. It'd be quite the cute "lessons learned" about anonymity scams. However, I will be treating it from here on out as a genuine scam. (As of May 2nd, the kickstarter has been cancelled, after the strangest attempt to reply to this imaginable. Good riddance.)

This absolutely ridiculous thing was brought to my attention by a friend and since it was late at night I thought I must be delirious in how absurdly over the top fake it seemed. So I slept on it, woke up, and found that it had gotten a thousand dollars more funding and was every bit as flabbergasting as I thought it was.

Since I realize that not everyone has spent their entire lives studying computers – and such people are the targets of such scams –

@MaximumJoe
MaximumJoe / Joe's E-H Classic
Last active Nov 9, 2017
Changes g.e-hentai.org to pre-0.307 view.
View Joe's E-H Classic
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp('https://e-hentai\\.org/(?!tools).*') {
/* misc */
body{font-size:8pt;font-family:arial,helvetica,sans-serif;color:#5C0D11;background:#E3E0D1;padding:2px;margin:0px}
p{padding:3px 1px;margin:0}
img{border:0}
a{color:#5C0D11}
a:hover{color:#9B4E03}
@hieblmedia
hieblmedia / .gitignore
Last active Jul 13, 2021
Gitignore - Exclude all except specific subdirectory
View .gitignore
#
# If all files excluded and you will include only specific sub-directories
# the parent path must matched before.
#
/**
!/.gitignore
###############################
# Un-ignore the affected subdirectory
@CFJSGeek
CFJSGeek / sortObj.js
Last active Jan 13, 2021
JS: Sort a JavaScript object by key in alphabetical order case insensitive. Thanks to Arne Martin Aurlien and Ivan Krechetov for inspiration. #snippet
View sortObj.js
/**
* Sort JavaScript Object
* CF Webtools : Chris Tierney
* obj = object to sort
* order = 'asc' or 'desc'
*/
function sortObj( obj, order ) {
"use strict";
var key,
@rdmarsh
rdmarsh / pi-tips.md
Last active Jan 6, 2021
Clean up the Raspbian default build for the Raspberry Pi
View pi-tips.md

Remove unused packages on Raspberry Pi

(this is worth looking at http://www.stefan-seelmann.de/wiki/rasperrypi-homeserver, which is basically this:

apt-get purge --auto-remove scratch debian-reference-en dillo idle3 python3-tk idle python-pygame python-tk lightdm gnome-themes-standard gnome-icon-theme raspberrypi-artwork gvfs-backends gvfs-fuse desktop-base lxpolkit netsurf-gtk zenity xdg-utils mupdf gtk2-engines alsa-utils  lxde lxtask menu-xdg gksu midori xserver-xorg xinit xserver-xorg-video-fbdev libraspberrypi-dev libraspberrypi-doc dbus-x11 libx11-6 libx11-data libx11-xcb1 x11-common x11-utils lxde-icon-theme gconf-service gconf2-common

)

Warning: this will probably break something. If you need sound, don't remove the "alsa" packages

sudo apt-get --yes purge xserver-common x11-xfs-utils x11-xserver-utils xinit libsmbclient blt gvfs gvfs-backends gvfs-daemons gvfs-fuse idle idle-python2.7 idle-python3.2 idle3 libaudio2 libice6 liblightdm-gobject-1-0 libobrender27 libpulse0 libqt4-svg libqt
@azu
azu / pixiv API.user.js
Created Jan 5, 2010
Pixivの検索API叩く
View pixiv API.user.js
// ==UserScript==
// @name pixiv API
// @namespace http://efcl.info/
// @include http://www.pixiv.net/*
// ==/UserScript==
// API 資料 http://pastie.org/735195
var pxvAPI = "http://iphone.pxv.jp/iphone/"
// 検索結果のオブジェクト
var result = [];
var user = {