Skip to content

Instantly share code, notes, and snippets.

package tictac
import (
"crypto/md5"
"encoding/binary"
)
func createHash(version, seq uint8, sessionId uint32, key, lastHash []byte) []byte {
h := md5.New()
binary.Write(h, binary.BigEndian, sessionId)
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>vjunos0</name>
<!--aabbccdd-eeff-llll-mmxy-VJUNOS-->
<!--aabbccdd-eeff: mac base -->
<!--llll: mac length -->
<!--mm: member id -->
<!--x: b0b1: product_category b2b3: reboot reason -->
<!--y: reslotid: b0, in_issu: b1, vcmixed: b2, vcfabric: b3-->
<uuid>AABBCCDD-EEFF-42e3-0000-564a554e4f53</uuid>
We are writing to let you know that there may have been unauthorized access to some of your Twitch user account information, including possibly your Twitch username and associated email address, your password (which was cryptographically protected), the last IP address you logged in from, limited credit card information (card type, truncated card number and expiration date), and any of the following if you provided it to us: first and last name, phone number, address, and date of birth.
% ldd /packages/mnt/jroute/usr/sbin/cli
/packages/mnt/jroute/usr/sbin/cli:
libjunoscript.so.1 => /usr/lib/libjunoscript.so.1 (0x880ce000)
libjunos-string.so.1 => /usr/lib/libjunos-string.so.1 (0x880db000)
libjunos-patricia.so.1 => /usr/lib/libjunos-patricia.so.1 (0x880e0000)
libjunos-time.so.1 => /usr/lib/libjunos-time.so.1 (0x880e3000)
libskey.so.3 => /usr/lib/libskey.so.3 (0x880e9000)
libcrypt.so.3 => /usr/lib/libcrypt.so.3 (0x880f0000)
libncurses.so.6 => /usr/lib/libncurses.so.6 (0x88107000)
libutil.so.5 => /usr/lib/libutil.so.5 (0x88146000)
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.128 192.168.1.250;
option ubnt.unifi-address 192.168.1.34;
option routers 192.168.1.1;
}
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.3R4/junos">
<rpc>
<get-chassis-inventory>
</get-chassis-inventory>
</rpc>
</rpc-reply>
List of triggers:
alertmanager_critical: modifier(weechat_print)
=? "${tg_tag_nick} =~ ^AlertManager_ && ${tg_message} =~ ^[CRITICAL]"
~1 ".*" --> "${tg_prefix}\t${color:196}${tg_message_nocolor}"
p-asn IX Action
64512 111111 0000000 000
65535 111111 1111111 111
IX
0 = All IXes
[root@cheerleader /zones/f2b43d91-cd4e-411d-b6b7-75ce1a38c25c/root]# echo '{"update_nics": [{"mac": "e2:8e:b1:48:32:08", "remove_tags": ["vlan_id"]}]}' | vmadm update f2b43d91-cd4e-411d-b6b7-75ce1a38c25c
Successfully updated VM f2b43d91-cd4e-411d-b6b7-75ce1a38c25c
[root@cheerleader /zones/f2b43d91-cd4e-411d-b6b7-75ce1a38c25c/root]# vmadm get f2b43d91-cd4e-411d-b6b7-75ce1a38c25c | json nics[
{
"interface": "net0",
"mac": "e2:8e:b1:48:32:08",
"vlan_id": 200,
"nic_tag": "admin",
"gateway": "192.168.1.1",
"ip": "192.168.1.63",
/* comment */
modifier: keyword value2 value3 value4;
statement2;
statement3 value;
section {
statement4;
section 2 {
statement5 value5;
}
}