Skip to content

Instantly share code, notes, and snippets.

@liuzhen
liuzhen / gist:73a81ff16c136ad1a676eafe940bde2d
Last active July 25, 2017 10:45
coreos vagrant virtualbox
* virtualbox users only
```
https://github.com/coreos/coreos-vagrant
```
** make build the so called `ct`
ct, namely the config transpiler, is a standalone project, we need to follow:
@liuzhen
liuzhen / zbx_export_templates.xml
Created July 25, 2017 07:48
zabbix template for arista
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2015-10-15T12:41:33Z</date>
<groups>
<group>
<name>~Templates Infrastructure</name>
</group>
</groups>
<templates>
@liuzhen
liuzhen / leofs_templates.xml
Created July 22, 2017 07:09
zabbix template for leofs
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2017-07-21T10:16:46Z</date>
<groups>
<group>
<name>leofs</name>
</group>
</groups>
<templates>
@liuzhen
liuzhen / snarl_template.xml
Created July 22, 2017 07:08
zabbix template for project-fifo snarl
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-04-29T03:56:41Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@liuzhen
liuzhen / sniffle_template.xml
Created July 22, 2017 07:07
zabbix template for project-fifo sniffle
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-04-29T03:56:41Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@liuzhen
liuzhen / howl_template.xml
Created July 22, 2017 07:06
zabbix template for project-fifo howl
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-04-29T03:56:41Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@liuzhen
liuzhen / erlup
Last active July 22, 2017 07:12
upgrade a module of erlang
#!/usr/bin/env escript
%% usage: escript erl_upgrade -n test@host -c cookie beamfile app
main(Args) ->
ok = start_epmd(),
{RestArgs, TargetNode} = process_args(Args, [], undefined),
[Str_Module | Rest ] = RestArgs,
App = case Rest of
[] ->
@liuzhen
liuzhen / init-erlang
Last active July 22, 2017 07:11
erlang config for emacs that enables upgrading modules
;;; package --- summary
;; set up flycheck for erlang
;; set up erlup to hot upgrade current buffer
;;; commentary:
;; suit both traditional lib path and rebar3-ish path
;;; code: