Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // Fixing some of the errors in the: | |
| // https://gist.github.com/PumpkinSeed/b4993c6ad20ea90e3da8c991a90a91e1 | |
| // | |
| // 1. It was only able to extract database information, based upon a Struct. | |
| // The code now can deal with a struct or a slice with structs. | |
| // | |
| // 2. The code relied on the json tag in the struct. | |
| // You need to match the data with database fields, not the output fields. | |
| // This will match up more 1 to 1 as you are in controle of your Database naming and selecting of that data. | |
| // If a client expect different named exported json fields, ... |
| { | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
| "initialCols" : 120, | |
| "initialRows" : 30, | |
| "keybindings" : | |
| [ | |
| { |
| #!/bin/bash -e | |
| EC2_REGION="us-west-1" | |
| DEFAULT_PROGRESS_WAIT=5 | |
| # ========== SNAPSHOT WAIT ============== | |
| snapshot_id="snap-testtesttest" | |
| while [ "$snapshot_progress" != "100%" ]; do | |
| sleep "$DEFAULT_PROGRESS_WAIT" |
| #!/usr/bin/env python | |
| # | |
| # Copyright (C) 2015 Alexander Taler | |
| # | |
| # This is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This is distributed in the hope that it will be useful, |
| # Problem: | |
| # | |
| # If you use git submodules linking two private github repos, you'll need to create a separate deploy key for each. | |
| # Multiple keys are not supported by Ansible, nor does ansible (when running git module) resort to your `.ssh/config` file. | |
| # This means your ansible playbook will hang in this case. | |
| # | |
| # You can however use the ansible git module to checkout your repo in multiple steps, like this: | |
| # | |
| - hosts: webserver | |
| vars: |
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. |
| <?php | |
| include '../vendor/autoload.php'; | |
| $classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
| $classLoader->register(); | |
| $classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
| $classLoader->register(); | |
| // config | |
| $config = new \Doctrine\ORM\Configuration(); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| # install libio-socket-ssl-perl to get this | |
| use IO::Socket::SSL; | |
| my $hostname = shift or die "Usage: $0 www.example.com\n"; | |
| IO::Socket::SSL->new( | |
| PeerHost => "$hostname:443", |
| #!/bin/bash | |
| # https://gist.github.com/949831 | |
| # http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
| # command line OTA distribution references and examples | |
| # http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
| # http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
| # http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
| # http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |