Archive of entries posted by james
cdx – switch to your other shell’s working directories
a quick shell script / bash function to switch to other working directories https://github.com/jamespo/commandmisc/blob/master/scripts/cdx.sh Example: (misc27)v $ ~ cdx 1) /home/james 2) /home/james/dev 3) /home/james/Maildir Select dir: 3 (misc27)v $ Maildir
Nagios check using osquery
A quick nagios check using osquery as a backend to retrieve system information: https://github.com/jamespo/jp_nagios_checks/blob/master/checks/check_osquery
DevDocs API Documentation
DevDocs combines multiple API documentations in a fast, organized, and searchable interface. Source: DevDocs API Documentation
Persistent ssh-agent in crosh developer shell
Put this at the bottom of your ~/.bashrc if [ ! -f /tmp/.sshauthsock ]; then eval $(ssh-agent -s) echo “export SSH_AUTH_SOCK=$SSH_AUTH_SOCK” > /tmp/.sshauthsock else source /tmp/.sshauthsock fi
samarudge/dnsyo: Check your DNS against over 1000 global DNS servers
DNSYO is a tool to help keep track of DNS propagation. In short, it’s dig, if dig queried over 1000 servers and collated their results. Source: samarudge/dnsyo: Check your DNS against over 1000 global DNS servers
Want to load a file into the Perl 6 REPL?
use EVALFILE ‘test.p6’
Red
Red is both an imperative and functional programming language introduced in 2011 by Nenad Rakocevic. Its syntax and general usage directly overlaps with that of the interpreted Rebol language (which was introduced in 1997). Yet the implementation choices of Red were geared specifically to overcoming limitations of Rebol, creating what Rakocevic calls a “full stack …
emacs tip of the week #5: ido-yes-or-no-mode
Just install this from the emacs package manager, add (ido-yes-or-no-mode) to your .emacs and you will never again have to laboriously type “yes” in response to “are you sure?” type queries from emacs.
postfix not resolving Reverse DNS
If for some reason postfix isn’t resolving reverse DNS (and giving “unknown” in headers) then you might have configured some of your daemons to run in a chroot without copying the necessary configuration files in, do this by running the appropriate script for your platform under examples/chroot-setup.