Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.
#!/usr/bin/env zsh | |
# This script prints a bell character when a command finishes | |
# if it has been running for longer than $zbell_duration seconds. | |
# If there are programs that you know run long that you don't | |
# want to bell after, then add them to $zbell_ignore. | |
# | |
# This script uses only zsh builtins so its fast, there's no needless | |
# forking, and its only dependency is zsh and its standard modules | |
# |
If tmux fails with the message "open terminal failed: missing or unsuitable terminal: rxvt-unicode-256color".
$ ssh remotemachine mkdir -p .terminfo/r
$ scp /usr/share/terminfo/r/rxvt-unicode* remotemachine:.terminfo/r/
#!/bin/bash | |
## | |
## A simple little shell script that will return the current | |
## fingerprint on the SSL certificate. It's crude but works :D | |
## | |
## Author: Bob Saska (r35krag0th) <git@r35.net> | |
openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | \ | |
openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2 |
public class BinarySearch { | |
public int find(int[] arr, int v) { | |
int i = 0; | |
int b = (1 << (Double.doubleToLongBits(arr.length - 1) >> 51)); | |
while ((b >>>= 1) > 0) { | |
if ((i | b) < arr.length && arr[i | b] <= v) i |= b; | |
if (arr[i] == v) return i; | |
} |
import urwid, random, re, time | |
blank = urwid.Divider() | |
palette = [ | |
('body','light gray','black', 'standout'), | |
('reverse','light gray','black'), | |
('header','white','dark red', 'bold'), | |
('important','dark red','black',('standout','underline')), | |
('editfc','white', 'dark blue', 'bold'), | |
('editbx','light gray', 'dark blue'), |