Install osxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew updateosxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| # configure proxy for git while on corporate network | |
| # From https://gist.github.com/garystafford/8196920 | |
| function proxy_on(){ | |
| # assumes $USERDOMAIN, $USERNAME, $USERDNSDOMAIN | |
| # are existing Windows system-level environment variables | |
| # assumes $PASSWORD, $PROXY_SERVER, $PROXY_PORT | |
| # are existing Windows current user-level environment variables (your user) | |
| # environment variables are UPPERCASE even in git bash |
| require 'mechanize' | |
| require 'prawn' | |
| =begin | |
| running from terminal to download any pdf from issuu.com, given | |
| - magazine name | |
| - page count | |
| - document-id | |
| =end |
Ad-free time!, UnoTelly etc. services provide a nice way to unblock regions for Netflix and others using their custom DNS servers.
But I don't want to direct all my DNS traffic to them and I'm too lazy to manually configure all my devices (phones, tablets, media center boxes etc.). So here's how to transparently unblock Netflix for all your devices using the [Asuswrt Merlin][merlin] firmware. It's a custom router firmware which can be used on the Asus RT-N66U router for example.
Enable JFFS partition and SSH login from http://<ROUTER-IP>/Advanced_System_Content.asp
#Transform web.config on build
</Project>; v12.0 my change depending on your version of Visual Studio| :: Stop IIS | |
| PsExec.exe \\LDNSERV01 -s -i C:\windows\system32\inetsrv\appcmd.exe stop site OnlineXCart | |
| :: Recycle App Pool (removes lock on file system) | |
| PsExec.exe \\LDNSERV01 -s -i C:\windows\system32\inetsrv\appcmd.exe recycle apppool OnlineXCart | |
| :: Wait 4 Seconds | |
| :: This is useful if you have a command straight after that executes file operations on IIS App Directory | |
| ping -n 5 127.0.0.1 > nul |
| #pragma mark - GCDAsyncSocketDelegate | |
| - (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port { | |
| [self secureSocket:sock]; | |
| } | |
| // We are connecting to server with self-signed certificate and don't include the certificate | |
| // (public key .pem) in the client. So we skip all the cert checking. To actually check, see | |
| // http://stackoverflow.com/questions/9874932/ssl-identity-certificate-to-run-an-https-server-on-ios | |
| - (void)secureSocket:(GCDAsyncSocket *)sock { | |
| // It has been changed in CocoaAsyncSocket v7.4, some old option keys are now unavailable and will throw exception. | |
| // Use GCDAsyncSocketManuallyEvaluateTrust and evaluate in -socket:didReceiveTrust: delegate instead. |

Author: Josef Jezek
| If you've got local source code you want to add to a new remote new git repository without 'cloning' the remote first, do the following (I often do this - you create your remote empty repository in bitbucket/github, then push up your source) | |
| 1. Create the remote repository, and get the URL such as git://github.com/youruser/somename.git | |
| 2. If your local GIT repo is already set up, skips steps 2 and 3 | |
| 3. Locally, at the root directory of your source, git init | |
| 4. Locally, add and commit what you want in your initial repo (for everything, | |
| git add . |