This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: process_vuxml.pl | |
=================================================================== | |
--- process_vuxml.pl (revision 5009) | |
+++ process_vuxml.pl (working copy) | |
@@ -90,36 +90,49 @@ | |
if ($updateRequired) | |
{ | |
+ print "about to open\n"; | |
+# print $vulns{$v}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gpart show da2 | |
=> 34 5860533101 da2 GPT (2.7T) | |
34 94 1 freebsd-boot (47K) | |
128 16777216 2 freebsd-swap (8.0G) | |
16777344 5838471168 3 freebsd-zfs (2.7T) | |
5855248512 5284623 - free - (2.5G) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
import sys | |
import time | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo camcontrol devlist | grep DT01ACA3 | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus10 target 8 lun 0 (pass8,da6) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus11 target 0 lun 0 (pass10,da8) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus11 target 1 lun 0 (pass11,da9) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus11 target 2 lun 0 (pass12,da10) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus11 target 3 lun 0 (pass13,da11) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus13 target 4 lun 0 (pass22,da20) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus13 target 5 lun 0 (pass23,da21) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus13 target 7 lun 0 (pass24,da22) | |
<ATA TOSHIBA DT01ACA3 ABB0> at scbus13 target 8 lun 0 (pass25,da23) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e.g. but 'arc diff' fails with svn: warning: W200017: Property 'svn:mime-type' | |
not found on '/usr/ports/textproc/elasticsearch2-plugin-marvel@ | |
svn diff --diff-cmd=diff -x -U9999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have this defined in all job defs. Otherwise, a job might want to use a Volume already | |
mounted and in use by an existing job. This directive tells it to use another Volume, | |
which would be mounted on another drive. | |
JobDefs { | |
... | |
PreferMountedVolumes = no | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
HOSTVERSION=`/usr/bin/file /bin/sh` | |
JAILS=`/usr/local/sbin/iocage list | /usr/bin/egrep -v '^JID' | /usr/bin/cut -f 2 -w` | |
ERRORS='' | |
for jail in ${JAILS} | |
do | |
JAILVERSION=`/usr/local/sbin/iocage chroot ${jail} 'file /bin/sh'` | |
if [ "${JAILVERSION}" != "${HOSTVERSION}" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#set -x | |
# Prune and volumes older than 2 months: | |
PAST=`date --date='-2 months 0 day ago' +%Y-%m-%d` | |
#EG a hard coded date | |
#PAST="2012-11-29" | |
#PAST="2013-11-29" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
JLS="/usr/sbin/jls" | |
PKG="/usr/sbin/pkg" | |
# list of the jail ids for all jails | |
JAILS=`${JLS} jid` | |
RESULT="" | |
CHECKING=$1 |