Install pandoc on Mac OS X 10.8
$ brew install haskell-platform
$ brew install haskell-platform
import os | |
import sys | |
import tornado.ioloop | |
import tornado.web | |
import tornado.websocket | |
from tornado.options import define, options, parse_command_line | |
define("port", default=8888, help="run on the given port", type=int) |
I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.
This isn't practical for larger texts, like when I want to copy the whole contents of a file.
If I had been editing large-file.txt
locally, I could easily copy its contents by using the pbcopy
command:
#!/usr/bin/env python | |
# Quick and dirty demonstration of CVE-2014-0160 by | |
# Jared Stafford (jspenguin@jspenguin.org) | |
# Modified so that it finds cookies | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
import requests | |
from lxml.html import fromstring, iterlinks | |
# https://github.com/zacharyvoase/urlobject/ | |
from urlobject import URLObject | |
url = 'http://juanriaza.com' | |
req = requests.get(url, verify=False) | |
html_tree = fromstring(req.content) | |
html_tree.make_links_absolute(url, resolve_base_href=True) |
resource "digitalocean_droplet" "haproxy-www" { | |
image = "ubuntu-14-04-x64" | |
name = "haproxy-www" | |
region = "nyc2" | |
size = "512mb" | |
private_networking = true | |
ssh_keys = [ | |
"${var.ssh_fingerprint}" | |
] | |
connection { |
{ | |
"title": "PFSense Firewall", | |
"services": { | |
"query": { | |
"idQueue": [], | |
"list": { | |
"0": { | |
"query": "tags: \"PFSense\" AND action: \"pass\"", | |
"alias": "Passed", | |
"color": "#6ED0E0", |
#!/bin/bash | |
tag=docker.io/sroegner/accumulo | |
container_name=accumulo-cluster | |
accumulo_net=accumulo-docker-local | |
if [ "$1" = "-clean" -o "$1" = "-shutdown" ] | |
then | |
echo "Shutting down all Accumulo containers ($1)" | |
for c in namenode zookeeper tserver0 tserver1 tserver2 master proxy |
#!/usr/bin/env bash | |
# install docker | |
# https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
# install docker-compose | |
# https://docs.docker.com/compose/install/ | |
# install letsencrypt | |
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 |