Skip to content

Instantly share code, notes, and snippets.

View pyhedgehog's full-sized avatar

PyHedgehog pyhedgehog

View GitHub Profile
@pyhedgehog
pyhedgehog / ljTitleRevert.meta.js
Last active August 26, 2015 00:34
LJ title revert
// ==UserScript==
// @name LJ title revert
// @id ljTitleRevert@pyhedgehog.github.com
// @namespace https://gist.github.com/pyhedgehog/
// @description Revert recent changes on livejournal blog pages that brings ljuser to end of title.
// @homepage https://gist.github.com/pyhedgehog/92b4dd8088657ce78208/
// @downloadURL https://gist.github.com/pyhedgehog/92b4dd8088657ce78208/raw/ljTitleRevert.user.js
// @updateURL https://gist.github.com/pyhedgehog/92b4dd8088657ce78208/raw/ljTitleRevert.meta.js
// @include http://*.livejournal.com/*.html
// @include http://users.livejournal.com/*/*.html
@pyhedgehog
pyhedgehog / ligusi.html
Last active August 29, 2015 14:17
JSON viewer// source http://jsbin.com/ligusi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JSON viewer</title>
<style id="jsbin-css">
.error { color:red; }
pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; }
.string { color: green; }
.number { color: darkorange; }
@pyhedgehog
pyhedgehog / child.js
Last active September 30, 2015 14:05
Child pipe proof-of-concept
#!node
if(!process.send) {
console.log("Not started with accessible parent IPC.");
process.exit(1);
}
process.on('message', function(json) {
console.log('parent->child message passed', json);
process.send({type:'got', payload:json});
if(json.type === 'exit') process.exit(0);
});
@pyhedgehog
pyhedgehog / child.js
Last active October 1, 2015 14:27 — forked from Marak/child.js
Child pipe second attempt
#!node
var fs = request('fs');
var util = require('util');
var Buffer = request('buffer').Buffer;
var events = request('events');
function PipeParentApi() {
var self = this;
this.waitlen = 0;
this.wait = null;
@pyhedgehog
pyhedgehog / ReadMe.md
Last active October 15, 2015 14:01
Qip.Ru mail login domain fixer (v1)

Features

  1. Force https.
  2. Split domain pasted to username field to domain field.
  3. Optionally (disabled by default) convert domain dropdown to text input.
@pyhedgehog
pyhedgehog / 0_README.md
Last active March 17, 2016 16:02
python patch - pprint for namedtuple

Arguments

There are many places when namedtuple should be used, but it has two major drawbacks:

  1. It can't be detected (all namedtuple's has different base classes).
  2. It can't be pretty-printed (that's important for debugging and introspecting).

Implementation

  1. Rename namedtuple function to _namedtuple.
@pyhedgehog
pyhedgehog / testerr.hookio.py
Created May 17, 2016 18:20
hook.io/pyhedgehog/pytestlog
import sys
sys.stderr.write('test stderr stream out\n')
sys.stdout.write('test stdout stream out\n')
@pyhedgehog
pyhedgehog / ChangeLog.md
Last active July 20, 2016 15:09
MailCom disable ads (v10)

Version 11

  • Changes on mail page.
  • Better handle timeouts and connection errors (progressive retries).

Version 10

  • Changes on login page.
  • Better handle timeouts and connection errors.

Version 9

  • Fix of auto-login.
@pyhedgehog
pyhedgehog / podfm_aerostat_aerostat_577.cue
Last active November 14, 2016 17:05
CUEs for BG Aerostat releases 577-600
PERFORMER "Борис Гребенщиков"
TITLE "577 - Музыка Австралии"
REM DATE 2016-06-05
FILE "podfm_aerostat_aerostat_577.mp3" MP3
TRACK 01 AUDIO
TITLE "Заставка"
REM REPLAYGAIN_TRACK_GAIN -5.76 dB
REM REPLAYGAIN_TRACK_PEAK 0.963650
INDEX 01 00:00:00
TRACK 02 AUDIO
@pyhedgehog
pyhedgehog / 01. Партитуры не горят. Только год.md
Last active December 1, 2018 18:45
Партитуры не горят. Поиск метаданных

Уважаемые странники, если у вас есть информация о датах (месяц-день) следующих передач (для которых у меня есть только год) из цикла "Партитуры не горят" Артёма Варгафтика, то пожалуйста, оставьте комментарий. Если у вас есть ещё какие-нибудь дополнительные коментарии (например уточнение названий) - буду только благодарен. Так же ищу любую дополнительную информацию не только по этим передачам, но и по тем о дате выхода которых информация уже найдена - отдельный список в следующей части. Если вы знаете о передач цикла не попавших в эти два списка - комментарии так же ждут вас.

В идеале, полную информацию, которую хотелось бы собрать (по важности):

  1. Название.
  2. Дата выхода.
  3. Описание (как было в аннонсе).