Embed your own CSS in the target page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Be sure to install the apiary gem; https://github.com/apiaryio/apiary-client | |
# gem install apiary | |
# You'll need to get a token here; https://login.apiary.io/tokens | |
APIARY_API_KEY= | |
# Your apiname here; docs.$APINAME.apiary.io | |
APINAME= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'json' | |
require 'octokit' | |
# ENV['GITHUB_ORGANIZATION'] ||= "" | |
# ENV['GITHUB_USERNAME'] ||= "" | |
# ENV['GITHUB_PASSWORD'] ||= "" # https://github.com/settings/tokens/new | |
Octokit.configure do |c| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imagesnap ~/Desktop/$(date +%y%m%d%H%M)_camera.png | |
screencapture ~/Desktop/$(date +%y%m%d%H%M)_screen.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import hashlib | |
class Url2png(object): | |
def __init__(self, options): | |
self.apikey = 'PXXXX' | |
self.secret = 'SXXXX' | |
self.query_string = urllib.urlencode(options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# place this file in _plugins/url2png.rb | |
# add this to your _config.yml | |
# url2png: | |
# apikey: <apikey> | |
# secret: <secret> | |
require 'liquid' | |
require 'cgi' unless defined?(CGI) | |
require 'digest' unless defined?(Digest) |
Take control over when the screenshot is taken.
Checkout the Javascript over at http://codepen.io/anon/pen/pJRvvV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Fri May 3 18:28:34 2013 | |
root@wtf:~# history | |
1 cd /var/log | |
2 ll | |
3 rm /var/log/dmesg | |
4 rm /var/log/dmesg.0 | |
5 last | |
6 ll | |
7 rm /var/log/auth.log | |
8 rm /var/log/boot.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A sample Gemfile | |
source "http://rubygems.org" | |
gem "redis" | |
gem 'eventmachine', :git => 'git://github.com/eventmachine/eventmachine.git' | |
gem "em-hiredis" | |
# gem "em-synchrony" | |
gem "em-websocket" |
NewerOlder