As configured in my dotfiles.
start new:
tmux
start new with session name:
| /* | |
| * Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
| */ | |
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ | |
| } |
| /* | |
| Based on: | |
| 1. http://stephen.io/mediaqueries | |
| 2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
| */ | |
| /* iPhone 6 in portrait & landscape */ | |
| @media only screen | |
| and (min-device-width : 375px) | |
| and (max-device-width : 667px) { |
| #!/usr/bin/env python | |
| # | |
| # Extracts email addresses from one or more plain text files. | |
| # | |
| # Notes: | |
| # - Does not save to file (pipe the output to a file if you want it saved). | |
| # - Does not check for duplicates (which can easily be done in the terminal). | |
| # | |
| # (c) 2013 Dennis Ideler <ideler.dennis@gmail.com> |
| # Small Python Script to scrape websites for | |
| # email addresses and phone numbers(not a very great RE) | |
| # Author: Dhruv Baldawa (@dhruvbaldawa on twitter) | |
| # Github: http://www.github.com/dhruvbaldawa | |
| import urllib,re | |
| f = urllib.urlopen("http://www.example.com") | |
| s = f.read() | |
| re.findall(r"\+\d{2}\s?0?\d{10}",s) | |
| re.findall(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}",s) |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
| 0. You just DO WHAT THE FUCK YOU WANT TO. |
| /*http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/*/ | |
| /*At least requires the meta viewport tag with content 'width=device-width'*/ | |
| @media only screen and (max-width: 1080px) and (orientation : portrait) { | |
| /* PORTRAIT: | |
| Windows Surface Pro*/ | |
| } | |
| @media only screen and (max-width: 800px) and (orientation : portrait) { | |
| /* PORTRAIT: | |
| Acer Iconia Tab A100 |
| # Patches Jekyll's built-in pagination to work with files *other* than the base index.html. | |
| # Expects the following to be specified in your _config.yml: | |
| # | |
| # paginate_base: "blog" # Puts all pagination folders in the "blog" dir, e.g. "/blog/page2" | |
| # paginate_index: "blog/index.html" # Paginates using the specified file | |
| module Jekyll | |
| class Page | |
| #!/usr/bin/env python | |
| import itertools | |
| import json | |
| import logging | |
| import sys | |
| import time | |
| import traceback | |
| # oauth2 is available at https://github.com/simplegeo/python-oauth2 | |
| import oauth2 |
| server { | |
| listen 80; | |
| server_name www.example.com; | |
| rewrite ^ $scheme://example.com$request_uri?; | |
| } | |
| server { | |
| listen 80; | |
| server_name example.com; | |
As configured in my dotfiles.
start new:
tmux
start new with session name: