SSH as user@remote.server, creating a SOCKS proxy on port 8123
In Firefox, set a manual SOCKS v5 proxy config for localhost on port 8123
ssh -D 8123 -C -q -N user@remote.server add -f if you want to background the process
| # n | 0 1 2 3 4 5 | |
| # i |____________ | |
| # 1 | _ _ _ _ _ # | |
| # 2 | _ _ _ _ # # | |
| # 3 | _ _ _ # # # | |
| # 4 | _ _ # # # # | |
| # 5 | _ # # # # # | |
| # 6 | # # # # # # | |
| "use strict"; | |
| let nthFromEnd = (startNode, n) => { | |
| let rabbit = startNode; | |
| let turtle = startNode; | |
| while(n--){ | |
| rabbit=rabbit.nextNode; | |
| } | |
| while(rabbit){ | |
| rabbit=rabbit.nextNode; |
| class Node | |
| attr_accessor :nextNode, :value | |
| def initialize(value, nextNode = nil) | |
| @value = value | |
| @nextNode = nextNode | |
| end | |
| end | |
| def nthFromEnd(startNode, n) | |
| rabbit = turtle = startNode |
SSH as user@remote.server, creating a SOCKS proxy on port 8123
In Firefox, set a manual SOCKS v5 proxy config for localhost on port 8123
ssh -D 8123 -C -q -N user@remote.server add -f if you want to background the process
php -vconfig.sample.inc.php > config.inc.php$cfg['Servers'][$i]['host'] to the ip address of your mysql server (probably localhost or 127.0.0.1)php -S localhost:8080| ### Keybase proof | |
| I hereby claim: | |
| * I am iturgeon on github. | |
| * I am iturgeon (https://keybase.io/iturgeon) on keybase. | |
| * I have a public key whose fingerprint is 7932 3DB4 2863 FE6C EAAD 7428 13E1 B683 23C5 069E | |
| To claim this, I am signing this object: |
| <? | |
| /** | |
| * BatchQuery allows you to do mass mysql inserts easily and quickly | |
| */ | |
| class BatchQuery | |
| { | |
| private $db; | |
| private $batchSize = 0; | |
| private $batchLimit = 200; |
| def js(*files) | |
| content_for(:js) { javascript_include_tag(*files.map { |file| "/assets/js/#{file}"}) } | |
| content_for(:js) do | |
| javascript_include_tag(*files.map { |file| "/assets/js/#{file}"}) | |
| end | |
| content_for(:js) do | |
| derp = Proc.new { |file| "/assets/js/#{file}"} | |
| javascript_include_tag *files.map(&derp) |
| <? | |
| try | |
| { | |
| $response = Request::forge()->execute()->response(); | |
| } | |
| catch (Exception $e) | |
| { | |
| $errorMap = [ | |
| 'HttpNotFoundException' => '_404_', |
| var properties = [ | |
| { | |
| "name":"Fish Hatchery Road", | |
| "permalink":"Fish-Hatchery-Road", | |
| "price":"$375,000", | |
| "address":"998 Fish Hatchery Rd Lakeland, Fl 33801", | |
| "description":"Once you step onto this property, you start to dream of the possibilities; from its size - 81 total acres- of which 45 are beautiful upland pastures and woodlands, its picturesque makeup, its location adjacent to Saddle Creek Park to its favorable Land Use designation, this property intrigues.", | |
| "lot_size":"45 AC", | |
| "land_use":"Leisure/Recreation (LR)", | |
| "lake_frontage":"6,820' of dynamic shoreline - Saddle Creek Park", |