Since Mavericks stopped using the deprecated ipfw
(as of Mountain Lion), we'll be using pf
to allow port forwarding.
####1. anchor file
Create an anchor file under /etc/pf.anchors/<anchor file>
with your redirection rule like:
/* ***** BEGIN LICENSE BLOCK ***** | |
* Version: MPL 2.0 | |
* | |
* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
* | |
* ***** END LICENSE BLOCK ***** */ | |
/* |
"AJSIAJSIAJ BANK EVRAZIYa" (OOO) | |
"ALOR BANK" (OAO) | |
"ANKOR BANK" (OAO) | |
"AZIATSKO-TIKhOOKEANSKIJ BANK" (OAO) | |
"BANK "MBA-MOSKVA" OOO | |
"BANK KREMLEVSKIJ" OOO | |
"BANK24.RU"(OAO) | |
"BMV BANK" OOO | |
"BNP PARIBA" ZAO | |
"BRATSKIJ ANKB" OAO |
// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
<?php | |
/** | |
* Callable typehints are only supported in php >= 5.4. | |
* | |
* For PHP 5.3, remove callable typehint, use is_callable($callback) instead. | |
*/ | |
/** | |
* Returns true if the given predicate is true for all elements. | |
*/ |
#!/bin/bash | |
# Script to convert PDF file to JPG images | |
# | |
# Dependencies: | |
# * pdftk | |
# * imagemagick | |
PDF=$1 |
// http://www.olark.com/spw/2011/08/you-can-list-a-directory-with-8-million-files-but-not-with-ls/ | |
#define _GNU_SOURCE | |
#include <dirent.h> /* Defines DT_* constants */ | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include <sys/syscall.h> |
# Russian. Updated 2012-07-18 | |
ru: | |
admin: | |
home: | |
name: "Главная" | |
pagination: | |
previous: "« Предыдущая" | |
next: "Следующая »" | |
truncate: "…" |