Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <istream>
void psting(char * s) {
printf("%s", s);
}
void pint(long int s) {
printf("%li\n", s);
// ==UserScript==
// @name Pixiv-rusher-boy
// @namespace PRB
// @version 0.0000000001
// @match https://www.pixiv.net/bookmark_new_illust.php
// @description made by fredgy-kun
// @grant GM_notification
// @grant window.focus
// @grant window.focus
// ==/UserScript==
@fredgido
fredgido / compareimg.js
Last active December 27, 2019 02:33
compareimg
// ==UserScript==
// @name compareimg
// @namespace http://tampermonkey.net/
// @version 0.5
// @description return if images are the same
// @author fredgy-kun
// @match https://danbooru.donmai.us/static/site_map
// @grant GM.xmlHttpRequest
// @connect api.twitter.com
// @connect pbs.twimg.com
@fredgido
fredgido / client.sh
Created December 23, 2019 01:19
file server
#!/bin/bash
echo "$$ Started process">&2;
if [[ $1 != "RUNSERVER" ]] ; then
echo "Started client mode" >&2;
[ ! $2 -ge 1025 ] && [ ! $2 -ge 1025 ] && echo "Invalid port number, must be 1025 to 65535" && exit 1;
[[ ! $1 =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] && echo "Invalid ip format" && exit 1;
socat TCP4:$1:$2 EXEC:"$0 RUNSERVER $$";
if [ ! $? -eq 0 ] ; then
echo "could not connect check host/ip and port and server"
fi
// ==UserScript==
// @name Seiga-rusher-boy
// @match https://www.nicovideo.jp/my/top/all*
// @description made by fredgy-kun
// @grant GM_notification
// @grant window.focus
// @grant window.focus
// ==/UserScript==
var nd = {
// ==UserScript==
// @name I see cute girls
// @namespace ISCG
// @version 0.00000001
// @description ...
// @author made by fredgy-kun
// @match https://*.donmai.us/posts*
// @match https://*.donmai.us/
// @exclude https://*.donmai.us/posts/*
// @grant none
// ==UserScript==
// @name Look Into The Deep
// @namespace LITD
// @version 10.0
// @description ...
// @author made by fredgy-kun
// @match https://*.donmai.us/uploads/*
// @match https://*.donmai.us/posts/*
// @connect deepdanbooru.donmai.us
// @grant GM.xmlHttpRequest
http://dev.kanotype.net:8003/deepdanbooru/uploadhttp://dev.kanotype.net:8003/deepdanbooru/uploadhttp://dev.kanotype.net:8003/deepdanbooru/upload// ==UserScript==
// @name Look Into The Deep Inside
// @namespace LITDI
// @version 0.000001
// @description ...
// @author made by fredgy-kun
// @match https://*.donmai.us/uploads/new*
// @match https://*.donmai.us/posts/*
// @connect kanotype.iptime.org
// @connect pbs.twimg.com
// ==UserScript==
// @name ILUI
// @namespace I Love UI
// @version 0.111
// @description none
// @author made by fredgy-kun
// @match https://*.donmai.us/posts/*
// @updateURL https://gist.github.com/fredgido/22c3db12c7c2aa6353032e7ffe18c7cf/raw/ILUI.user.js
// @downloadURL https://gist.github.com/fredgido/22c3db12c7c2aa6353032e7ffe18c7cf/raw/ILUI.user.js
// @grant none
// ==UserScript==
// @name comparepostimg
// @namespace http://tampermonkey.net/
// @version 0.01
// @description return if images are the same
// @author fredgy-kun
// @match https://danbooru.donmai.us/posts/*
// @grant GM.xmlHttpRequest
// @connect api.twitter.com
// @connect pbs.twimg.com