For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| (* | |
| * Finder Open iTerm Here - v1.0.2 - 4/14/2011 | |
| * http://benalman.com/ | |
| * | |
| * Copyright (c) 2011 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| *) | |
| tell application "Finder" |
| #!/usr/bin/env python | |
| import pyexiv2 | |
| import fractions | |
| from PIL import Image | |
| from PIL.ExifTags import TAGS | |
| import sys | |
| def to_deg(value, loc): | |
| if value < 0: |
| from django.db.models.fields import Field | |
| import types | |
| def patch_model(model_to_patch, class_to_patch_with): | |
| """ | |
| Adapted from http://www.ravelsoft.com/blog/2010/patchmodel-hacky-solution-extending-authuser-class | |
| Monkey patch a django model with additional or replacement fields and methods. | |
| All fields and methods that didn't exist previously are added. |
| #!/usr/bin/env python | |
| """ | |
| Highlight stdin using pygments and output to stdout | |
| Re-uses httpie. | |
| Auto-detects the input language. | |
| Will not colorize if piped into something else. |
| brew install python | |
| easy_install pip | |
| #install scipy use temp branch | |
| pip install git+https://github.com/minrk/scipy-1.git@accelerate | |
| #ft2build.h not found ==> | |
| pip install git+git://github.com/matplotlib/matplotlib.git |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| redis_parser = Reader() | |
| redis_write_buffer = deque() | |
| def create_redis_socket(host, port): | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| sock.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1) | |
| sock.connect((host, port)) | |
| sock.setblocking(0) | |
| return sock |
| html, body { | |
| background-color: black; | |
| width: 100%; | |
| height: 100%; | |
| margin: 0; | |
| } | |
| canvas { | |
| display: block; | |
| margin: 0; |