-
Update
Vagrantfile
. Change:ji_config.vm.box = 'joindin/development'
to
ji_config.vm.box = 'puphpet/debian75-x64'
-
Update
puppet/modules/joindin/templates/dotdeb.sources.list
. Change:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Kitura | |
import SwiftyJSON | |
let router = Router() | |
router.get("/ping") { _, response, next in | |
// see http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns | |
let date = Date() | |
let formatter = DateFormatter() | |
formatter.locale = Locale(identifier: "en_GB") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - | |
sudo cat "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main" >> /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get -qq --assume-yes install clang-3.8 lldb-3.8 | |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 100 | |
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Capture currently focussed window using https://github.com/vorgos/QuickGrab | |
# | |
# Run screenshot.sh, then cmd+tab to window you want to capture within 2 seconds. | |
# Screenshot file is then stored on your desktop | |
sleep 2; quickgrab -file ~/Desktop/screenshot-`date '+%Y%m%d-%H%M%S'`.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /vagrant | |
$ git clone -b experimental/foundation https://github.com/apple/swift-corelibs-libdispatch.git | |
$ cd swift-corelibs-libdispatch | |
$ git submodule init | |
$ git submodule update | |
$ sh ./autogen.sh | |
$ ./configure --with-swift-toolchain=/home/vagrant/swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-05-03-a/usr --prefix=/home/vagrant/swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-05-03-a/usr | |
$ make | |
$ make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo | openssl s_client -showcerts -servername mozilla.org -connect mozilla.org:443 2>/dev/null | openssl x509 -inform pem -noout -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
class Foo | |
{ | |
protected $db; | |
public function __construct(PDO $db) | |
{ | |
$this->db = $db; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rob@swiftsure /www/oss/Slim-Website (gh-pages)$ git log --oneline --decorate --all --graph | |
* 1b65ada (HEAD -> gh-pages, origin/gh-pages, origin/HEAD) Merge pull request #137 from zmip/patch-1 | |
|\ | |
| * e87a3fc Expanded and corrected doc on PSR7 URI object | |
* | 83c6906 Merge pull request #138 from jsmrls/patch-1 | |
|\ \ | |
| * | 0d35b77 Make example redirection temporary instead of permanent | |
|/ / | |
* | 9a7a90a Merge pull request #136 from tflight/patch-1 | |
|\ \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +akrabat is my blockchain ID. https://onename.com/akrabat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// All file paths relative to root | |
chdir(dirname(__DIR__)); | |
require "vendor/autoload.php"; | |
$settings = ['foo' => 'FOO', 'bar' => 'BAR']; | |
$app = new \Slim\App($settings); | |
// Set some things into the container |