Skip to content

Instantly share code, notes, and snippets.

@pinggit
pinggit / gist:3642051
Created September 5, 2012 18:28
asciidoc vim as highlighter
:!asciidoc -v -b xhtml11 -f temp-asciidoc.conf "living files/vim-jtac-work.txt"
[No write since last change]
asciidoc: reading: /usr/local/etc/asciidoc/asciidoc.conf
asciidoc: reading: temp-asciidoc.conf
asciidoc: reading: /usr/local/etc/asciidoc/asciidoc.conf
asciidoc: reading: /home/ping/living files/vim-jtac-work.txt
asciidoc: reading: /usr/local/etc/asciidoc/xhtml11.conf
asciidoc: include1: /usr/local/etc/asciidoc/stylesheets/asciidoc.css
asciidoc: vim-jtac-work.txt: line 16: ifeval: "pygments"=="pygments": True
asciidoc: include1: /usr/local/etc/asciidoc/stylesheets/pygments.css
Banner
Job DescriptionJob Search|My Notifications|My Activities|My Saved Jobs|My Contact InformationSigned In as Ping
Customer Services Leader, Key Accounts
Apply Help
Apply
Banner
Job DescriptionJob Search|My Notifications|My Activities|My Saved Jobs|My Contact InformationSigned In as Ping
Services Mgmt Specialist Staff
Apply Help
Apply
= my book
:doctype: book
:toc: left
:toclevels: 3
:toc-title: Table of Content
:numbered:
:Author: Ping Song
:Author Initials: SP
:Date: Aug 2015
:Email: [email protected]
root@cl100ct197:~# curl -u admin:Juniper http://localhost:8095/project/f943e4b0-2d46-4322-adb6-80a7045e6956 | python -mjson.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1880 100 1880 0 0 3712 0 --:--:-- --:--:-- --:--:-- 3715
{
"project": {
"display_name": "temp",
"fq_name": [
"default-domain",
"temp"
root@cl100ct197:/var/lib/cassandra# ls
commitlog data saved_caches
root@cl100ct197:/var/lib/cassandra# tree
.
├── commitlog
│   ├── CommitLog-4-1489599811167.log
│   ├── CommitLog-4-1489599811353.log
│   ├── CommitLog-4-1489599811354.log
│   ├── CommitLog-4-1489599811355.log
│   ├── CommitLog-4-1489599811356.log
root@rdm3r23c017:~# ./ist vr intf -n tapdbfe90f2-48 -d
ItfSandeshData
index: 24
name: tapdbfe90f2-48
uuid: dbfe90f2-48f0-4c5e-bc15-ef779325afd9
vrf_name: default-domain:Nimbus-25193-T-Willows1:Nimbus-25193-T-Willows1_oam_calea_net_1:Nimbus-25193-T-Willows1_oam_calea_net_1
active: Active
ipv4_active: Active
l2_active: L2 Active
ip6_active: Ipv6 Inactive < no-ipv6-addr >
@pinggit
pinggit / transparent.conf
Last active October 22, 2017 19:37
firefly transparent config
## Last changed: 2017-10-18 14:01:25 UTC
version 12.1X47-D20.7;
system {
root-authentication {
encrypted-password "$1$mHqxe3ff$hUWAehCCnLSDF.kcaAiSN1"; ## SECRET-DATA
## Last changed: 2017-10-22 18:19:28 UTC
version 12.1X47-D20.7;
system {
root-authentication {
encrypted-password "$1$mHqxe3ff$hUWAehCCnLSDF.kcaAiSN1"; ## SECRET-DATA
@pinggit
pinggit / curl 9200 Snh_UVETableInfoReq
Last active December 15, 2017 02:24
curl 9200 Snh_UVETableInfoReq
root@cl100ct197:~# curl 10.85.19.197:9200/Snh_UVETableInfoReq?partition=2 | xmllint --format -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 24474 100 24474 0 0 900k 0 --:--:-- --:--:-- --:--:-- 919k
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/universal_parse.xsl"?>
<UVETableInfoResp type="sandesh">
<partition type="u32" identifier="2">2</partition>
<tables type="list" identifier="7">
<list type="struct" size="1">
root@cl100ct197:/etc/nova# less policy.json  | grep -i admin
    "context_is_admin":  "role:admin",
    "admin_or_owner":  "is_admin:True or project_id:%(project_id)s",
    "default": "rule:admin_or_owner",
    "cells_scheduler_filter:TargetCellFilter": "is_admin:True",
    "compute:create:forced_host": "is_admin:True",
    "compute:start": "rule:admin_or_owner",
    "compute:stop": "rule:admin_or_owner",
    "compute:unlock_override": "rule:admin_api",
    "admin_api": "is_admin:True",