Add images to Drupal nodes

Checking pfSense with SNMP

Command examples for monitoring a pfSense router using SNMP.

snmpwalk -v 1 <server> -c public

Interface list

snmpwalk -v 1 <server> -c public | grep ifDescr

Interface status

snmpwalk -v 1 <server> -c public | grep ifOperStatus

Technology:

Testing virus and spam scanners

EICAR Test Pattern
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
http://www.eicar.org/anti_virus_test_file.htm

GTUBE (Generic Test for Unsolicited Bulk Email) Pattern
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

Technology:

eMac capacitor freeze

Suggestion for dealing with eMac G4's that exhibit symptoms of a defective capacitor issue on their logic boards.

http://discussions.apple.com/message.jspa?messageID=2071244
http://www.apple.com/support/emac/repairextensionprogram/

Remove the following extensions:

ATIRadeon.kext
ATIRadeon.kext/Contents/MacOS/ATIRadeon
ATIRadeon8500.kext
ATIRadeon8500.kext/Contents/MacOS/ATIRadeon8500
ATIRadeon8500DVDDriver.bundle
ATIRadeon8500DVDDriver.bundle/Contents/MacOS/ATIRadeon8500DVDDriver
ATIRadeon8500GA.plugin
ATIRadeon8500GA.plugin/Contents/MacOS/ATIRadeon8500GA
ATIRadeon8500GLDriver.bundle
ATIRadeon8500GLDriver.bundle/Contents/MacOS/ATIRadeon8500GLDriver
ATIRadeon9700.kext

Technology:

Secure Drupal login

Make Drupal encrypt your login with SSL.

Technology:

File upload via HTTP

Edit Shell Path

If you need to add /usr/local/bin to your OS X path for custom applications you've built and installed:

Check what shell you are using:

echo $SHELL

If it's /bin/bash, create or modify ~/.profile, adding the new path:

cat << EOF >> ~/.profile
PATH=/usr/local/bin:\$PATH; export PATH
EOF

If it's /bin/tcsh:

Technology:

rsync Mirroring

http://www.howtoforge.com/mirroring_with_rsync

Source Server Configuration
Create an unprivileged user that can access the files you want and give that user a password:

useradd -d /home/mirror -m -s /bin/bash mirror
passwd mirror

Switch to that user and go the home directory:

su mirror
cd ~

Create a few test files:

touch test.txt help.txt mirror.txt

Destination server
Test rsync the connection to the remote server:

Technology:

Virtual Ethernet Interface

Derived from instructions at http://handsonhowto.com/virt.html

To create a virtual interface on eth0:

ifconfig eth0:1 <IP ADDRESS> netmask <NETMASK>

To make this permanent in RHEL/CentOS, create a file in /etc/sysconfig/network-scripts. In this case, it would be named /etc/sysconfig/network-scripts/ifcfg-eth0:1 and it's contents would be similar to:

Technology:

wget for OS X

Wget is a computer program that implements simple and powerful content retrieval from web servers and is part of the GNU Project. Its name is derived from World Wide Web and get, connotative of its primary function. It currently supports downloading via HTTP, HTTPS, and FTP protocols, the most popular TCP/IP-based protocols used for web browsing.

Pre-built for OS X 10.5 and higher on Intel
http://www2.42quarks.com/software/wget-for-os-x

Pre-built for OS X 10.4 and higher
Download from http://andrew.merenbach.com/?q=node/17 (no longer available?)

Compiling wget for OS X
Requires that you have the OS X Developer Tools installed.
Instructions from http://radio.javaranch.com/bear/2005/03/02/1109829480523.html
There's also instructions for building it from CVS.

Technology:

Pages

Subscribe to Production Monkeys RSS

Recent Updates

  • 4 days 23 hours ago
    1.27.2 update
  • 2 weeks 2 days ago
    Drupal 10/11 config
  • 2 weeks 3 days ago
  • PHP
    2 weeks 3 days ago
    PHP 8.3.11 and AlmaLinux
  • 2 weeks 4 days ago
    New version of Pound