- uni kernels, minimal OS
- Hypervisor aware kernel
-
objdump -d output
-
go build -n
- unsafe.Pointer
This file contains hidden or 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
--- | |
- block: | |
- name: test files exist | |
stat: | |
path: "{{ item }}" | |
register: directory_exists | |
changed_when: directory_exists.stat.exists == false | |
with_items: "{{ target_directories }}" | |
- name: install unzip |
This file contains hidden or 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
- name: Install XDebug | |
yum: | |
name: php-pecl-xdebug | |
state: present | |
- name: Set XDebug module location | |
lineinfile: | |
dest: /etc/php.d/xdebug.ini | |
regexp: '^zend_extension=' | |
line: 'zend_extension=/usr/lib64/php/modules/xdebug.so' |
This file contains hidden or 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 | |
// @see http://php.net/manual/en/class.generator.php | |
// @see http://php.net/manual/en/class.generator.php | |
function getRange ($max = 10) { | |
for ($i = 1; $i < $max; $i++) { | |
yield $k => $i; | |
} | |
} |
This file contains hidden or 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 | |
class Foo { | |
function __construct() { | |
$foo = "\0"; | |
$this->{$foo} = 'hello'; | |
} | |
} | |
$f = new Foo(); |
This file contains hidden or 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 | |
require 'vendor/autoload.php'; | |
$manager = new MongoDB\Driver\Manager("mongodb://192.168.33.96:27017"); | |
$collection = new MongoDB\Collection($manager, "phplib_demo.write", 'test'); | |
$result = $collection->insertOne(array( | |
'firstname' => 'hello', | |
'lastname' => 'world', |
This file contains hidden or 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
pca.on("load", function (type, id, control) { | |
control.listen("populate", function (address) { | |
console.log('here'); | |
}); | |
}); |
This file contains hidden or 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 | |
require_once('vendor/autoload.php'); | |
use Symfony\Component\Yaml\Yaml; | |
$config = Yaml::parse(file_get_contents('config.yaml')); | |
$json = file_get_contents('php://input'); | |
$object = json_decode($json); |
This file contains hidden or 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
var http = require('http'); | |
var options = { | |
host: 'www.google.co.uk', | |
path: '/', | |
port: '80', | |
//This is the only line that is new. `headers` is an object with the headers to request | |
headers: {'auth': 'abc:123'} | |
}; |
NewerOlder