This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// http/1.1 header to disable browsers cache | |
header('Cache-Control: no-cache'); | |
// tell nginx to disable buffering | |
header('X-Accel-Buffering: no'); | |
// disable apache mod_gzip and mod_deflate | |
apache_setenv('no-gzip', 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// go to your myanimelist.net | |
// click "Plan to Watch" | |
// scrooll all the way down | |
// exec this from console | |
const calc_weight = function (score, users) { | |
const mean = 7.0; | |
const minimum = 30000.0; | |
return (score * users + mean * minimum) / (users + minimum); // imdb top250 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* DIR-655 Network Monitor. | |
* Based on Network Monitor v2.0 for Yahoo! Widgets. | |
*/ | |
let lan_tx_bytes; | |
let lan_rx_bytes; | |
let last_timestamp; | |
const readValues = () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# based on http://baguzin.ru/wp/?p=7873 | |
import re | |
class AssParser: | |
def __init__(self): | |
self.dialog_re = re.compile(r'Dialogue:(?:[^,]*,){9}(.*)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import argparse | |
# pip install requests | |
import requests | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
if [ -z "$1" ]; then | |
hostname="$HOSTNAME" | |
else | |
hostname="$1" | |
fi | |
local_openssl_config=" | |
[req] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name G+ hover image title | |
// @version 1.0 | |
// @match *://plus.google.com/* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== | |
/* jshint esnext: true */ | |
const decodeFileName = (src) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sankaku fast pagination | |
// @version 0.1 | |
// @match *://chan.sankakucomplex.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
/* jshint esnext: true */ | |
const originalSetTimeout = window.setTimeout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: WARNING: after some testing considered as not recommended. | |
:: Filter to keep only non similar frames. | |
:: It selects only first frame `eq(n\,0)` | |
:: and frames with differences `gt(scene\,{sensivity})` | |
:: see https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect | |
set similar_frames_sensivity=0.002 | |
set skip_similar_frames=select=eq(n\,0)+gt(scene\,%similar_frames_sensivity%) | |
:: Adaptive Temporal Averaging Denoise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name G+ two columns mode | |
// @version 0.1 | |
// @match https://plus.google.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
window.innerWidth = 1200; |
NewerOlder