hdiutil convert -format UDRW -o linuxmint-14.1-mate-dvd-64bit.img linuxmint-14.1-mate-dvd-64bit.iso
mv linuxmint-14.1-mate-dvd-64bit.img.dmg linuxmint-14.1-mate-dvd-64bit.img
diskutil list
| from settings import * | |
| DATABASES = { | |
| "default" : { | |
| "ENGINE" : "django.db.backends.sqlite3", | |
| "NAME" : "db/dev.db" | |
| } | |
| } | |
| # add johnny's middleware | |
| LOCAL_MIDDLEWARE_CLASSES = ( |
| proxy_cache_path /var/cache/nginx/sub.example.com levels=1:2 keys_zone=media-cache:8m max_size=100m inactive=600m; | |
| proxy_temp_path /var/cache/nginx/tmp/media; | |
| server { | |
| listen 80; | |
| server_name sub.example.com; | |
| client_max_body_size 20m; | |
| access_log /var/log/nginx/sub.example.com.access.log; | |
| error_log /var/log/nginx/sub.example.com.error.log; |
| # Autocompletion without case sensitivity | |
| # --------------------------------------- | |
| set completion-ignore-case on | |
| # Word jumping | |
| # ------------ | |
| # CTRL left/right arrow | |
| "\e[1;5D": backward-word | |
| "\e[1;5C": forward-word |
| objects = [ | |
| [{'price' : 100}], | |
| [{'price' : 200}], | |
| [{'price' : 300}] | |
| ] | |
| the_sum = 0 | |
| for o in objects: | |
| for i in o: | |
| the_sum += i['price'] |
| config defaultToCurrentScreen true | |
| config nudgePercentOf screenSize | |
| config resizePercentOf screenSize | |
| # Resize Bindings | |
| bind right:cmd;alt resize +10% +0 | |
| bind left:cmd:alt resize -10% +0 | |
| bind up:cmd;alt resize +0 -10% | |
| bind down:cmd;alt resize +0 +10% | |
| bind right:ctrl;cmd;alt resize -10% +0 bottom-right |
hdiutil convert -format UDRW -o linuxmint-14.1-mate-dvd-64bit.img linuxmint-14.1-mate-dvd-64bit.iso
mv linuxmint-14.1-mate-dvd-64bit.img.dmg linuxmint-14.1-mate-dvd-64bit.img
diskutil list
| from PIL import Image | |
| def rotate_image(image): | |
| """ | |
| Rotates an image based on EXIF information. Used to mitigate non-rotated landscape photos taken from iPhone. | |
| :Args ``image`` Image, opened using PIL: | |
| """ | |
| ANGLES = { | |
| 6: -90, |
| # -*- coding: utf-8 -*- | |
| from django.contrib.auth.decorators import login_required | |
| from django.utils.cache import patch_response_headers | |
| from django.utils.decorators import method_decorator | |
| from django.views.decorators.cache import cache_page, never_cache | |
| from django.views.decorators.csrf import csrf_exempt | |
| class NeverCacheMixin(object): | |
| @method_decorator(never_cache) |
| # -*- coding: utf-8 -*- | |
| from django.contrib.auth.decorators import login_required | |
| from django.utils.cache import patch_response_headers | |
| from django.utils.decorators import method_decorator | |
| from django.views.decorators.cache import cache_page, never_cache | |
| from django.views.decorators.csrf import csrf_exempt | |
| class NeverCacheMixin(object): | |
| @method_decorator(never_cache) |
| #!/bin/bash | |
| if [[ $# -eq 0 ]] ; then | |
| echo 'Please give your project a name' | |
| exit 0 | |
| fi | |
| echo "Creating new clojure-project with libgdx" | |
| git clone [email protected]:vojd/libgdx-skeleton-clj.git | |
| cd libgdx-skeleton-clj |