I find this really useful, just a call out to sed so I don't have to remember the syntax.
ssh_delete_key() {
sed -i -e ${1}d ~/.ssh/known_hosts
}
alias sshdel=ssh_delete_key
I find this really useful, just a call out to sed so I don't have to remember the syntax.
ssh_delete_key() {
sed -i -e ${1}d ~/.ssh/known_hosts
}
alias sshdel=ssh_delete_key
While at LinuxFest Northwest I picked up an Old Raspberry Pi from the Yard Sale. I didn't realise it was a Model A...took me a while to figure out a use for it, not much memory or processing power.
I use a USB camera on my work laptop and the camera sometimes doesn't show up in my video conferencing app. I verified that the camera is showing in the usb list with lsusb (a script I got from https://github.com/jlhonora/lsusb which is great btw).
dtruss showed that the VDCAssistant was being accessed by my apps, so I tried killing that and boom the camera shows up.
So now I aliased camkill='sudo pkill VDCAssistant'
I spent far too long diagnosing why this worked in one set of hosts and not another. When the vrrp_script fails on one host, it's supposed to move the service to the other host, that's the whole point right?
Tutorial I gave at LISA2016
Talk I gave at PuppetConf 2016
Slides are here
Talk I gave at puppetcamp seattle 2016, slides at
goo.gl/Y61I0S
Some of this isn't a great idea for production...some.
Had a problem where I wanted to modify /etc/cups/cupsd.conf but wasn't sure who else might touch the file. I opted to use Augeas and quickly learned it wasn't as easy as I thought it might be...
The cupsd.conf configuration file uses a syntax similar to Apache configuration files, it uses the same Augeas lens (Httpd.lns). Changing directives is a bit of an issue, but I found the solution by reading the source for the Httpd.lns (/usr/share/augeas/lenses/dist/httpd.aug or /opt/puppetlabs/puppet/share/augeas/lenses/dist/httpd.aug)
I ran into this problem recently, certificates were verifying ok but were revoked somewhere along the line. I wanted to check against the CRL but it's a somewhat undocumented feature (fixed in openssl 1.0.2). The -crl_check option checks your cert against the CRL listed in the certificate, but only if that is listed and accessible remotely.
Updated Mastering Puppet for Puppet 4
Packtpub.com

Special Promotion 50% off the Ebook version Promo Code: YGTMi50y (Valid March 7 to 27, 2016)