Do not use this guide. The dnscrypt protocol and dnscrypt-proxy configuration file have changed a lot since I wrote this gist. Check the following links for help:
- Install DNSMasq
$ brew install dnsmasq
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
#/usr/bin/env python | |
import sys | |
from application.notification import NotificationCenter | |
from sipsimple.account import AccountManager | |
from sipsimple.application import SIPApplication | |
from sipsimple.core import SIPURI, ToHeader | |
from sipsimple.lookup import DNSLookup, DNSLookupError |
Note: This was written in 2015, it may be out of date now.
There are a lot of commands here which I use
sudo
if you don't know what you're doing withsudo
, especially where Irm
you can severely screw up your system.
There are many reasons which you would want to remove a piece of software such as McAfee, such as not wanting it to hammer your CPU during work hours which seems like primetime for a virus scan.
I intend this to be a living document, I have included suggestions from peoples' replies.
from PIL import Image, ImageOps | |
import clipboard, photos,webbrowser | |
im=photos.pick_image()#clipboard.get_image | |
if im.size[0] >= im.size[1]: | |
whitespace=((im.size[0]-im.size[1])/2)+250 | |
xbump=250 | |
else: | |
xbump=((im.size[1]-im.size[0])/2)+250 | |
whitespace=250 | |
matted=ImageOps.expand(im,border=(xbump,whitespace),fill='white') |
ORPort 443 | |
Exitpolicy reject *:* | |
Nickname EFFisMyHero | |
ContactInfo <pdp7pdp7 AT gmail dot com> GPG: 0x84D44A9317F1138E | |
Log notice file /var/log/tor/notices.log | |
RelayBandwidthRate 1024 KB | |
RelayBandwidthBurst 1024 KB | |
MaxAdvertisedBandwidth 1024 KB | |
DisableDebuggerAttachment 0 |
This is a basic exploration of the Ello API. Completely unofficial, your mileage my vary, don't smash their servers as they are likely very busy.
Methods return HTML for their representation where appropriate which is a nice little pattern. Everything returns application/json.
Like this:
{
"id": ,
.SILENT: | |
.PHONY: help | |
# Based on https://gist.github.com/prwhite/8168133#comment-1313022 | |
## This help screen | |
help: | |
printf "Available targets\n\n" | |
awk '/^[a-zA-Z\-\_0-9]+:/ { \ | |
helpMessage = match(lastLine, /^## (.*)/); \ |
This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.
This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)
Make sure you have the latest version of XCode installed. Available from the Mac App Store.
Install the Xcode Command Line Tools:
xcode-select --install
#!/bin/bash | |
PREFIX=$(basename "$1" .pdf) | |
if [ ! -z "$TESSERACT_FLAGS" ]; then | |
echo "Picked up TESSERACT_FLAGS: $TESSERACT_FLAGS" | |
fi | |
echo "Prefix is: $PREFIX" | |
echo "Converting to TIFF..." | |
if command -v parallel >/dev/null 2>&1; then | |
LAST_PAGE=$(($(pdfinfo "$1"|grep '^Pages:'|awk '{print $2}') - 1)) |