This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, unicode_literals | |
from bs4 import BeautifulSoup | |
import hashlib | |
import logging | |
import json | |
import os | |
import sys | |
import re |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ts=2 sts=2 sw=2 expandtab ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = '2' | |
$JVM =<<JVM | |
set -x | |
mkdir -p /usr/lib/jvm | |
cd /usr/lib/jvm |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = '2' | |
$script = <<SCRIPT1 | |
## be aware this script runs as root | |
set -e | |
CAPNPROTO_GITROOT="https://github.com/kentonv/capnproto.git" |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, unicode_literals | |
__docformat__ = 'reStructuredText' | |
""" | |
To use this: | |
1. Inside emacs issue ``(require 'htmlize)`` followed by ``M-x htmlize-buffer`` | |
1. Save that buffer to a file | |
1. Run this script on the file | |
1. Profit! |
This file contains hidden or 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
- hosts: all | |
sudo: true | |
vars: | |
couchdb_version: 1.5.0 | |
couchdb_tar_256sum: abbdb2a6433124a4a4b902856f6a8a070d53bf7a55faa7aa8b6feb7127638fef | |
erlang_deb: http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_16.b.3-2~ubuntu~precise_amd64.deb | |
tasks: | |
- name: apt-dependencies | |
apt: update_cache=yes pkg={{item}} state=present | |
with_items: |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = 'precise' | |
config.vm.hostname = 'sentry1' | |
config.vm.network :private_network, ip: '192.168.56.105' |
This file contains hidden or 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
package org.jsoup.examples; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Node; | |
import org.jsoup.select.Elements; | |
import javax.swing.*; | |
import javax.swing.tree.*; | |
import java.awt.*; |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
__docformat__ = 'reStructuredText' | |
import sys | |
from bs4 import BeautifulSoup, NavigableString, Tag | |
from PyQt5.Qt import ( | |
QApplication, QMainWindow, QMenuBar, QMenu, QTreeWidget, QTreeWidgetItem) | |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import sys | |
from bs4 import BeautifulSoup | |
def show_em_all(soup, with_values): | |
# todo: some way of marking a nested itemtype as seen? | |
# maybe the upward tree traversal would yield a unique path |
This file contains hidden or 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
#! /bin/bash | |
set -e | |
mkdir orig | |
cd orig | |
git init | |
git fast-import <../original.fi | |
cd .. | |
echo -ne "read orig\nexpunge /.jar/\nwrite >bad.fi\n" | reposurgeon | |
mkdir bad | |
cd bad |