Skip to content

Instantly share code, notes, and snippets.

$ ffmpeg -r 10 -f x11grab -s 1024x768 -i :0.0 -f alsa -i default -acodec libmp3lame -vcodec libx264 -vpre fast -b 220k -ar 22050 -ab 48k -threads 2 -s 640x480 -vsync 2 -y -f flv "(RTMP)/(KEY) flashver=FME/3.0\20(compatible;\20FMSc/1.0)"
@poochin
poochin / gist:3755407
Created September 20, 2012 11:36
Dashboard を特定の post id になるまで掘り下げるブックマークレット(未入力時に自分の最新ポストまで遡るようにしました)
javascript: void function() {
var post_id;
post_id = parseInt(prompt('input post id to fall in.'));
new PeriodicalExecuter(function FallInDashboard(pe) {
var posts = $$('#posts > li.post:not(.new_post)');
exit: {
if (isNaN(post_id)) {
if ($$('.is_mine:not(.new_post)').length) {
@poochin
poochin / autopagerize.user.js
Created September 22, 2012 14:49
Fx 用 AutoPagerize で先読みを早い段階で行わせるようにしたコード
// AutoPagerize
// loading next page and inserting into current page.
// http://autopagerize.net/
//
// It doesn't work in Greasemonkey any longer.
//
// this script based on
// GoogleAutoPager(http://la.ma.la/blog/diary_200506231749.htm) and
// estseek autopager(http://la.ma.la/blog/diary_200601100209.htm).
@poochin
poochin / notes_filter.user.js
Created December 9, 2012 06:24
dsbd で 500 以上の notes のみを表示するユーザスクリプト(Firefox でも動作するようにしました)
// ==UserScript==
// @name Notes Filter
// @match http://www.tumblr.com/dashboard*
// @version 1.0.1
// @description Dashboard フィルター(Notes Filter)
//
// @author poochin
// @license MIT
// @updated 2012-12-09
// @updateURL https://github.com/poochin/tumblrscript/
@poochin
poochin / tumblr_tornado_gm.user.js
Created December 15, 2012 04:49
Tumblr Tornado で API を用いれば Dashboard にいながら別アカウントに reblog したいというツイートをしたところ、API を用いれば出来るのでは、という流れになったため、試しに下書きへ投稿するスクリプトを書きました。 別垢のメインブログ、別垢のサブタンブルログへの投稿に成功。 使用するには 27 行目 〜 33 行目を自分用に書き換えてください。
// ==UserScript==
// @name Tumblr Tornado Greasemonkey
// @namespace https://github.com/poochin
// @version 1.1.15
// @description Tumblr にショートカットを追加するユーザスクリプト
// @include http://www.tumblr.com/dashboard
// @include http://www.tumblr.com/dashboard/*
// @include http://www.tumblr.com/likes
// @include http://www.tumblr.com/likes/*
// @include http://www.tumblr.com/blog/*
@poochin
poochin / notification_full_image.user.js
Last active December 10, 2015 01:48
Tumblr の Notification バーが画像のサムネイルを右端に表示するようになったのを受けて、Notification バーへマウスを乗せた際に対象ポストの大きめの画像を表示するようにします。
// ==UserScript==
// @name Notification Full Image
// @match http://www.tumblr.com/dashboard
// @match http://www.tumblr.com/blog/*
// @version 1.0.0
// @description ユーザスクリプトの概要を記入してください
//
// @author poochin
// @license MIT
// @updated 1970-01-01
@poochin
poochin / svc post fetch
Created January 26, 2013 13:33
新 dsbd の rblg に関する json データ
{
"errors": false,
"post": {
"id": null,
"two": "<p><a class=\"tumblr_blog\" href=\"http:\/\/gatinhamel.tumblr.com\/post\/41469586332\">gatinhamel<\/a>:<\/p>\n<blockquote>\n<p>(via\u00a0<a href=\"http:\/\/pinterest.com\/pin\/137993176052938152\/\"><\/a><a href=\"http:\/\/pinterest.com\/pin\/137993176052938152\/\"><\/a><a href=\"http:\/\/pinterest.com\/pin\/137993176052938152\/\">http:\/\/pinterest.com\/pin\/137993176052938152\/<\/a>)<\/p>\n<\/blockquote>\n\n<p><\/p>",
"three": "http:\/\/pinterest.com\/pin\/137993176052938152\/",
"state": 0,
"publish_on": false,
"type": "photo",
"format": 0,
@poochin
poochin / gist:4642974
Created January 26, 2013 15:46
新dsbdの新規投稿
new Ajax.Request('http://www.tumblr.com/svc/post/update',
{
method: 'post',
parameters: '{"form_key":"' + document.body.getAttribute('data-form-key') + '","context_id":"","context_page":"dashboard","is_rich_text[one]":"0","is_rich_text[two]":"0","is_rich_text[three]":"0","channel_id":"' + $$('#popover_blogs .popover_menu_item:not(#button_new_blog)')[0].id.slice(9) + '","post[slug]":"","post[draft_status]":"","post[source_url]":"http://","post[date]":"","post[type]":"regular","post[one]":"test","post[two]":"test","post[tags]":"","post[publish_on]":"","post[state]":"1","custom_tweet":"test - test [URL]"}',
requestHeaders: ['Content-Type', 'application/json']
})
// Tumblr reblogフォームの変更により対応(中)のパッチ
// photoでテストしてて http://www.tumblr.com/svc/post/update で403が返ってくる途中の状態
// あと fetchが重い(というかfetchの必要ない(?)
(function() {
update(Tombloo.Service.extractors['ReBlog - Dashboard'], {
extract : function(ctx) {
return Tombloo.Service.extractors.ReBlog.extractByLink(ctx, this.getLink(ctx)).addCallback(function(res) {
var expr = './ancestor-or-self::li[starts-with(normalize-space(@class), "post")]' +
'//a[starts-with(@href,"/reblog/")]';
/* fetch */
{
"errors": false,
"post": {
"id": null,
"two": "",
"three": "http:\/\/soundcloud.com\/iosysos\/zedd-clarity-feat-foxes-denpa",
"state": 0,
"publish_on": false,
"type": "audio",