Skip to content

Instantly share code, notes, and snippets.

View misaka00251's full-sized avatar
😫
Stressful at work

Kiryuu Sakuya misaka00251

😫
Stressful at work
View GitHub Profile
util/macros
font/util
doc/xorg-sgml-doctools
doc/xorg-docs
proto/xorgproto
xcb/proto
lib/libxtrans
lib/libXau
lib/libXdmcp
xcb/pthread-stubs
@misaka00251
misaka00251 / ffmpeg-wrapper
Created April 16, 2022 07:57
ffmpeg-wrapper for Synology
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log
@misaka00251
misaka00251 / index.html.gohtml
Created April 21, 2021 14:46
This is a file upload demo for music.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Golang testing</title>
</head>
<body>
<p>Please upload your favourite music.</p>
<br>
<form enctype="multipart/form-data" action="/upload" method="post">
@misaka00251
misaka00251 / README.md
Created March 10, 2021 10:56
Google always in com (no safesearch)

If you visit Google search from China, the SafeSearch option will on by default, and you can't turn it off (because it's already off in search settings). Login to Google will not solve this.

Visit Google's Non Country Redirection feature first will solve this problem. This userscript will automatically solve this issue for you. However, you need to wait when you perform a search request for the first time.

Tested in Violentmonkey.

Special thanks to @mengzonefire & the original author @opsomh.

#!/usr/bin/ruby
#
# This tool is only used to "decrypt" the github enterprise source code.
#
# Run in the /data directory of the instance.
require "zlib"
require "byebug"
KEY = "This obfuscation is intended to discourage GitHub Enterprise customers "+
[
{
"url":"https://cdn-api.gog.com/open/tests/100KB.png",
"hosting":"GOG",
"purpose":"initial",
"sizeBytes":98722
},
{
"url":"https://cdn-api.gog.com/open/tests/100MB.png",
"hosting":"GOG",

Keybase proof

I hereby claim:

  • I am misaka00251 on github.
  • I am misaka00251 (https://keybase.io/misaka00251) on keybase.
  • I have a public key whose fingerprint is CCBE 64E4 C59B A587 BF16 D788 9100 611F 09DF DE09

To claim this, I am signing this object:

@misaka00251
misaka00251 / gist:c6ca052d1bb5a6fd539dbbfef8ad70ad
Created April 29, 2019 05:48 — forked from peppy/gist:d98148dbb5bcec4d2d9e
著作権を侵害しております譜面につきまして
Dean様
お世話になっております。
昨年、数件弊社の著作権を侵害しております譜面を削除していただきました、
株式会社彩牙ALcot法務 豊田です。
To whom it may concern,
My name is *****, and I represent FlashFlashRevolution (FFR) as a Game Manager. FFR has been notified about and confirmed that official content from our game has been illegally downloaded from the website through normally inaccessible means. Three files of FFR's game content that have been downloaded and reconverted to be playable on osu! can be found as follows:
Song: Here We Go / Artist: Renard - https://osu.ppy.sh/s/222250 (original location: http://www.flashflashrevolution.com/levelstats.php?level=1106)
Song: Metro / Artist: Terminal11 - https://osu.ppy.sh/s/222870 (original location: http://www.flashflashrevolution.com/levelstats.php?level=1495)
Song: Double Helix / Artist: xi - https://osu.ppy.sh/s/224658 (original location: http://www.flashflashrevolution.com/levelstats.php?level=2234)
As a not-for-profit website, FFR very frequently obtains and retains permissions under the contingency that the music is not downloadable, and utilizing exploits to release content of the game