Skip to content

Instantly share code, notes, and snippets.

@typekpb
typekpb / Makefile.golang
Created July 29, 2016 18:27 — forked from dnishimura/Makefile.golang
Makefile for Golang projects
# Makefile for a go project
#
# Author: Jon Eisen
# site: joneisen.me
#
# Targets:
# all: Builds the code
# build: Builds the code
# fmt: Formats the source files
# clean: cleans the code
@typekpb
typekpb / log.txt
Created August 29, 2013 21:22
mvn dependency:tree -Dverbose > log.txt
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for p6spy:p6spy:jar:2.0-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing. @ line 234, column 15
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ p6spy:p6spy-parent:2.0-SNAPSHOT, /home/peterb/all/prg/oss/p6spy_typekpb/pom.xml, line 511, column 15
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ p6spy:p6spy-parent:2.0-SNAPSHOT, /home/peterb/all/prg/oss/p6spy_typekpb/pom.xml, line 530, column 15
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ p6spy:p6spy-parent:2.0-SNAPSHOT, /home/peterb/all/prg/oss/p6spy_typekpb/pom.xml, line 543, column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for p6spy
xmlstarlet sel -t -m "messages" -m "note" -v "@id" < sample.xml
501502
xmlstarlet sel -t -m "messages" -m "note" -c "from" < sample.xml
<from>Jani</from><from>Tove</from>
xmlstarlet sel -C -t -m "messages" -m "note" -v "from" < sample.xml
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/common" version="1.0" extension-element-prefixes="exslt">
<xsl:output omit-xml-declaration="yes" indent="no"/>
<xsl:template match="/">
<xsl:for-each select="messages">
<xsl:for-each select="note">
<xsl:call-template name="value-of-template">
<xsl:with-param name="select" select="from"/>
</xsl:call-template>
xmlstarlet sel -t -m "messages" -m "note" -v "from" < sample.xml
JaniTove
<?xml version="1.0"?>
<messages>
<note id="501">
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note id="502">
<to>Jani</to>
sudo virt-install --name=Xubuntu_13.04 --ram=512 --vcpus=1 --description 'Xubuntu_13.04' --os-type=linux --disk path=/var/lib/libvirt/images/xubuntu_13.04.img,size=4 --cdrom /home/peterb/all/tmp/install/xubuntu-13.04-desktop-amd64.iso
sudo yum install galternatives
notify-send it\'s\ alive!