Skip to content

Instantly share code, notes, and snippets.

mono mono0x

Block or report user

Report or block mono0x

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View font-face-for-windows.user.css
/* ==UserStyle==
@name font-face for Windows
@namespace https://gist.github.com/mono0x
@version 0.0.1
@license MIT
==/UserStyle== */
@font-face {
font-family: "MS Pゴシック";
src: local("Meiryo"), local("メイリオ"), local("MS Pゴシック");
}
View font-face-for-macos.user.css
/* ==UserStyle==
@name font-face for macOS
@namespace https://gist.github.com/mono0x
@version 0.0.1
@license MIT
==/UserStyle== */
@font-face {
font-family: "MS PGothic";
src: local("Hiragino Kaku Gothic ProN");
}
View tweetdeck.user.css
/* ==UserStyle==
@name My TweetDeck
@namespace https://gist.github.com/mono0x
@version 0.0.1
@license MIT
==/UserStyle== */
@-moz-document domain("tweetdeck.twitter.com") {
.column:first-child {
width: 400px;
}
View share_on_twitter.js
javascript:(function(){var w=550,h=420;window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(document.title)+"&url="+encodeURIComponent(location.href),"_blank","width="+w+",height="+h+",left="+(window.innerWidth-w)/2+",top="+(window.innerHeight-h)/2+",scrollbars=yes,resizable=yes,toolbar=no,location=yes")})()
@mono0x
mono0x / concat.cmd
Created Apr 16, 2018
Concat movie files using ffmpeg (for Windows)
View concat.cmd
@echo off
setlocal EnableExtensions
:genuniq
set "tmpfile=%tmp%\bat~%RANDOM%.txt"
if exist "%tmpfile%" goto :genuniq
set "output=%~dpn1_combined%~x1"
:loop
View cryptorand_test.go
package test
import (
"crypto/rand"
"encoding/binary"
"testing"
"unsafe"
)
func BenchmarkCryptoRandRead(b *testing.B) {
View event_websites.rb
require 'json'
require 'set'
require 'uri'
events = open('lib/data/sanrio_events_calendar.json') {|f| JSON.parse(f.read) }
uris = events['items'].map {|item|
URI.extract(item['description'], [ 'http', 'https' ])
}.flatten.to_set
View tweet-photos-from-flickr.md
View patch.extractor.flickr.tbrl.js
// ==Taberareloo==
// {
// "name" : "Patches for Flickr"
// , "description" : "Patches for Flickr"
// , "include" : ["content"]
// , "match" : ["*://www.flickr.com/*"]
// , "version" : "0.0.1"
// , "downloadURL" : "https://gist.githubusercontent.com/mono0x/06ef86dbc7618d0c4082c4f34561d272/raw/patch.extractor.flickr.tbrl.js"
// }
// ==/Taberareloo==
View parser.go
package main
import (
"errors"
"io"
"net/url"
"regexp"
"strconv"
"strings"
"time"
You can’t perform that action at this time.