Skip to content

Instantly share code, notes, and snippets.

@m13253
m13253 / conver.pe
Created April 28, 2017 09:39 — forked from endel/conver.pe
FontForge script to convert .ttf file to its webfont variations (.otf, .svg, .woff, .woff2)
#!/usr/local/bin/fontforge
Open($1)
Generate($1:r + ".otf")
Generate($1:r + ".svg")
Generate($1:r + ".woff")
Generate($1:r + ".woff2")
(function (root, factory) {
var lodash = 'lodash';
if (typeof define === 'function' && define.amd) {
define([lodash], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require(lodash));
} else {
root.BOMDetect = factory(_);
}
}(this, function (_) {
# To record both mic and other audio input sources we need to add a named output sink. See:
# http://www.linuxquestions.org/questions/linux-software-2/alsa-and-pulseaudio-recording-multiple-input-devices-877614/
# http://www.youtube.com/watch?v=oJADNOY615Y&feature=player_embedded
# Add this to your /etc/pulse/default.pa file
load-module module-null-sink sink_name=stream
load-module module-loopback latency_msec=5 sink=stream
load-module module-loopback latency_msec=5 sink=stream
@m13253
m13253 / anti-xp-2.php
Last active August 29, 2015 13:56 — forked from xfoxfu/anti-xp-2.php
<?php
/**
* Anti-XP Script
*
* @author 小傅Fox[<[email protected]>]
*/
/**
* 获得客户端的操作系统
* Source:{@link http://lok.me/a/1027.html}
*
#!/usr/bin/env python2
#coding:utf-8
import logging
from tornado.ioloop import IOLoop
from tornado.iostream import IOStream
from tornado.tcpserver import TCPServer
logging.basicConfig(level=logging.INFO, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]')