Skip to content

Instantly share code, notes, and snippets.


e.e.p coolicer

Block or report user

Report or block coolicer

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
iest / BzIframe.js
Created Jan 7, 2015
Basic react iframe with onLoad handler
View BzIframe.js
'use strict';
var React = require('react');
var BzIframe = React.createClass({
propTypes: {
src: React.PropTypes.string.isRequired,
onLoad: React.PropTypes.func
View linux上用strongswan搭建ikev2协议

测试平台:DigitalOcean VPS ubuntu14.04 x64, strongswan5.2.2




apt-get install build-essential     #编译环境
aptitude install libgmp10 libgmp3-dev libssl-dev pkg-config libpcsclite-dev libpam0g-dev     #编译所需要的软件
olistik / gist:3894072
Created Oct 15, 2012
Ubuntu 12.04 Terminator config: solarized theme + iTerm2-like key bindings
View gist:3894072
# place this file in ~/.config/terminator/config
title_transmit_bg_color = "#d30102"
focus = system
reset_clear = <Ctrl>R
new_tab = <Ctrl>T
split_horiz = <Ctrl><Shift>E
split_vert = <Ctrl>E
close_term = <Ctrl><Shift>W
max-te / youtube.js
Created Sep 17, 2012
Download Youtube-Video in node.js
View youtube.js
var http = require('http')
var fs = require('fs')
var argv = require('optimist').argv
var rxVideoID = /v=([\]\[!"#$%'()*+,.\/:;<=>?@\^_`{|}~-\w]*)/
var link = argv._.toString()
var videoID = link.match(rxVideoID)[1]
http.get(""+videoID, function(res) {
var chunks = []
You can’t perform that action at this time.