Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
/* Simple Memcached in Javascript | |
* @Author: Sun, Junyi | |
* @Email: ccnusjy@gmail.com | |
* @Date: 2012-8-3 | |
*/ | |
var net = require('net'); | |
var store = {} | |
function handle_header(header,crlf_len){ | |
var tup = header.split(" ") |
[Unit] | |
Description=Daemon to start Shadowsocks Client | |
Wants=network-online.target | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/sslocal -c /etc/shadowsocks/client.json --pid-file /var/run/sslocal.pid --log-file /var/log/sslocal.log | |
[Install] |
#!/bin/sh | |
# sudo ./install-shadowsocks-local-service.sh | |
cp shadowsocks-local.default /etc/default/shadowsocks-local | |
cp shadowsocks-local.init /etc/init.d/shadowsocks-local | |
chmod +x /etc/init.d/shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc0.d/K01shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc1.d/K01shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc2.d/K01shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc3.d/K01shadowsocks-local |
#Requires -RunAsAdministrator | |
#Requires -Version 5.0 | |
# requires Windows 10 | |
Get-EtwTraceProvider | Select-Object SessionName, Guid | sort SessionName | |
# as Markdown | |
<# | |
#Requires -RunAsAdministrator | |
$result = Get-EtwTraceProvider | sort SessionName | |
$result | %{"|Name|GUID|";"|----|----|";}{"|$($_.SessionName)|$($_.Guid)|"} | |
#> |
Your Azure account needs to be a Global Administrator so you can create service principal access.