Some possible values for PHP predefined constant PHP_OS:
- CYGWIN_NT-5.1
- Darwin
- FreeBSD
- HP-UX
- IRIX64
- Linux
- NetBSD
- OpenBSD
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace MetadataReader | |
{ | |
using HRESULT = System.UInt32; |
<!doctype html> | |
<html> | |
<head> | |
<title>Google Chart: Scatter Chart with a line</title> | |
<meta charset="UTF-8" /> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1", { packages: ["corechart"] }); | |
google.setOnLoadCallback(drawChart); | |
function drawChart() { |
{ | |
"transactionKey": "43ffa7e64bdd0c1ffa3bfcbc551e466aa5346293", | |
"buyer": "buyer@example.com", | |
"total": "12.34", | |
"currency": "USD", | |
"user_id_hash": "O1wW94N4KT", | |
"items": [ | |
{ | |
"productName": "My Awesome Product", | |
"productLink": "oU5g", |
Get-Content ./log.log -Wait -Tail 10 |
Some possible values for PHP predefined constant PHP_OS:
A quick benchmark to show the performance differences between Json and MsgPack using ArduinoJson.
2021-Jul: MOVED TO https://github.com/fabianoriccardi/benchmark-json-messagepack
var getPosition = function (options) { | |
return new Promise(function (resolve, reject) { | |
navigator.geolocation.getCurrentPosition(resolve, reject, options); | |
}); | |
} | |
getPosition() | |
.then((position) => { | |
console.log(position); | |
}) |
find . -name '*.sh' | xargs git update-index --chmod=+x |
{% load startswith %} | |
<li{% if request.path|startswith:'/settings/' %} class="active"{% endif %}> |
As I've discovered, managing LXC containers is fairly straightforward, but when building out a system for provisioning out user maintained instances of NodeBB, it was imperative that unprivileged LXC containers were used, so that in the event of shell breakout from NodeBB followed by privilege escalation of the saas
user, the root
user in the LXC container would only be an unprivileged user on the host machine.
During the course of development, I ran into numerous blockers when it came to managing LXC containers in unexpected circumstances. Namely:
su
or executing lxc-*
commands as another user via sudo
lxc-*
commands via a program, application, or script. In my case, a Node.js application.