Skip to content

Instantly share code, notes, and snippets.

View IAlwaysBeCoding's full-sized avatar

IAlwaysBeCoding IAlwaysBeCoding

View GitHub Profile
@jmaccabee
jmaccabee / XPath Cheat Sheet
Created October 10, 2018 23:21
Common XPath tips and tricks
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// Credit to the original author: https://gist.github.com/LeCoupa/8c305ec8c713aad07b14
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
@tensorfields
tensorfields / virt-addr.sh
Created January 3, 2013 22:02
Get a KVM guest's IP address
#!/bin/bash
# Returns the IP address of a running KVM guest VM
# Assumes a working KVM/libvirt environment
#
# Install:
# Add this bash function to your ~/.bashrc and `source ~/.bashrc`.
# Usage:
# $ virt-addr vm-name
# 192.0.2.16
#