Useful D&D Links

Here is a collection of my useful D&D links.

Super Useful Linux Find Commands

The linux ‘find’ command is INCREDIBLY powerful. Here are some options/flags that I have found particularly useful. Obviously you can sift through the man page for find to figure everything out. I just wanted to list some here that I use often.

find ./ -name "filename.*"
find ./ -iname "fIlEnAmE.*"

These will search for files with the name “filename.*”. The difference is ‘iname’ is case insensitive while ‘name’ is case sensitive.

find ./ -mtime +30

This will search for files that have been modified 30 days before today

find ./ -user apache
find ./ -group apache

Find files owned by the user or group ‘apache’

find ./ -type f
find ./ -type d

Type “f” = files, type “d” = directories

find ./ -newermt "Feb 24"
find ./ -newermt "Feb 24" ! -newermt "Feb 28"
find ./ -type f -newermt "2018-02-24 00:00:00" ! -newermt "2018-02-28 00:00:00"

Find files modified after Feb 24, OR after Feb 24, but before Feb 28

find ./ -type f -exec chmod 775 {} \;
find ./ -type d -name "cache" -exec rm -rf {} \;

The “-exec” flag executes shell commands on each of the files found. The first example will look for all files in this folder (and all sub-folders) and chmod them 775. The second will find all directories named “cache” and delete them. The spacing of the “{} \;” is crucial.

Setup and Configure IRRd 2.3.6 on Fedora 13

IRRd 2.3.6 on Fedora 13

Install Fedora 13 fresh, and use a “minimal/minimum install”

Once Fedora has installed, log in as root, and configure and turn up the network interface

Install the fastest mirror plugin for yum, gcc, flex, make, byacc, and wget, mlocate, telnet, bison, xinetd, mailx, jwhois, and man, then update everything.

yum install yum-plugin-fastestmirror -y
yum install gcc flex make byacc wget mlocate telnet bison xinetd mailx jwhois man -y
yum update -y

download and un tar/gunzip the irr daemon to root’s home dir

cd ~
tar -zxf irrd2.3.9.tgz

configure, make, and install the irr daemon

cd irrd2.3.9/src
make install

copy the irrd.conf.sample to /etc/irrd.conf and open it for editing

uncomment the “password” line and change the password (default is foo, this is a cleartext value)

password testpass123
uii_port 5673

comment out the radb mirroring

!irr_database radb mirror 43

change the default db to something more attractive

irr_database switchnap authoritative

save the config

edit /etc/services and add the following lines

# IRRd Service Port
irrd 5673/tcp

create a pgp directory somewhere

mkdir /var/spool/irr_database/.pgp

add the following line to /etc/irrd.conf

pgp_dir /var/spool/irr_database/.pgp

using the ~/irrd2.3.6/src/irr_util/crypt_gen program, generate an encrypted override password

~/irrd2.3.6/src/irr_util/crypt_gen test (where test is the password you want to use)
encrypted passwd is "pfHKv25Fdk7bA"

now add the following line to the end of your /etc/irrd.conf

override_cryptpw pfHKv25Fdk7bA

finally add the dbadmin’s email to the /etc/irrd.conf


start the irrd daemon


add the following line to /etc/aliases

# IRRd Auto Submit
auto-dbm: "|/usr/local/sbin/irr_rpsl_submit"

then save and close the file, and run the following command

[root@irrd irr_util]# newaliases
/etc/aliases: 77 aliases, longest 65 bytes, 838 bytes total

create /etc/xinetd.d/irr_rpsl_submit-stream and populate it with the following:

service irr_rpsl_submit
# This is for quick on or off of the service
disable		= no

# The next attributes are mandatory for all services
id		= irr_rpsl_submit-stream
type		= UNLISTED
wait		= no
socket_type	= stream
#	protocol	=  socket type is usually enough

# External services must fill out the following
user		= root
#	group		=
server		= /usr/local/sbin/irr_rpsl_submit
server_args	= -D

# External services not listed in /etc/services must fill out the next one
port		= 8888

# RPC based services must fill out these
#	rpc_version	=
#	rpc_number	=

# Logging options
#	log_type	=
#	log_on_success	=
#	log_on_failure	=

# Networking options
#	flags		=
#	bind		=
#	redirect	=
#	v6only		=

# Access restrictions
#	only_from	=
#	no_access	=
#	access_times	=
#	cps		= 50 10
#	instances	= UNLIMITED
#	per_source	= UNLIMITED
#	max_load	= 0
#	deny_time	= 120
#	mdns		= yes

# Environmental options
#	env		=
#	passenv		=
#	nice		= 0
#	umask		= 022
#	groups		= yes
#	rlimit_as	=
#	rlimit_cpu	=
#	rlimit_data	=
#	rlimit_rss	=
#	rlimit_stack	=

# Banner options. (Banners aren't normally used)
#	banner		=
#	banner_success	=
#	banner_fail	=

then restart xinetd

service xinetd restart

now we have to add irr_rpsl_submit to the allowed sendmail programs

cd /etc/smrsh
ln -s /path/to/irr_rpsl_submit
service sendmail restart

now test, it should function!

Phil Pillera <ppillera [ a t ] gmail [ d o t ] com>

Configuring SSHD to disallow root login

Fedora 13 –

Configuring SSHD to disallow root login

Being able to SSH in as root is a security hole that one just shouldn’t risk, however when you first setup a box, it’s an option that’s enabled by default. To disable it, do the following.

first we’ll need to add a new user

adduser ppillera

then we’ll need to set the password for that user

passwd ppillera
Changing password for user ppillera.
New password: blah1234
Retype new password: blah1234
passwd: all authentication tokens updated successfully.

now that we’ve got a new user to SSH in as, we can disable root ssh.

vi /etc/ssh/sshd_config

change the following to read as follows

PermitRootLogin no

you’ll notice that you have to delete the “#” at the begening, and change the “yes” to “no”.

then all you have to do is restart the sshd service and you’re good to go

service sshd restart

Phil Pillera <ppillera [ a t ] gmail [ d o t ] com>

Configure Fedora 13 Networking

Fedora 13 –

Configure Static IP

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Where eth0 is the interface on which you want to configure the IP.

Change “onboot” and add the two following lines so it looks like this


Then we need to setup your “default gateway”

vi /etc/sysconfig/network

add the following


and finally we’ll configure the DNS servers

vi /etc/resolv.conf

and add the following


once you’ve done that, restart the “network” service

service network restart

Configure DHCP Fedora 13

First we need to hop into the network-scripts directory:

cd /etc/sysconfig/network-scripts/

Then edit the ifcfg-xxxx file for your particular network card:

vi ifcfg-eth0

Edit the following lines:


Then we’ll have to restart the “network” service:

service network restart

Configure the Network Service

Now that our network is setup, we should really configure the “network” service to automatically start up when we want it to. Personally I only run *nix in CLI, but for those of you that run some form of desktop manager, I’ve included that as well.

Lets first see if it’s already configured to start

chkconfig --list

if network isn’t marked as “on” for levels 3 and 5, then do the following

chkconfig --levels 35 network on

Now when your computer boots up into init 3 (multiuser network mode) or init 5 (xwindows) your network service will start.

Phil Pillera <ppillera [ a t ] gmail [ d o t ] com>

Installing IOS Image via Xmodem

If you’ve gotten to the point where this needs to be done, chances are the IOS image on your current switch/router is completely jacked up and you’re sitting at either the “rommon:” prompt or the “switch:” prompt. The following instructions will be operating under that assumption.

First, connect with the standard cisco serial connection info (9600 – 8 – N – 1 – N).

Then type the following at the prompt:

switch: set BAUD 115200

Then you’ll need to reconnect with the baud rate of 115200. This will make the transfer go significantly faster.

Next lets start the copy:

switch: copy xmodem: flash:

Once you do this, it’ll be waiting to accept the file, simply start the xmodem transfer now using your terminal emulator and wait.. for a long long time.. It’ll tell you when it’s done.

When it’s completed, type the following to set the console baud rate back to normal:

switch: unset BAUD

Reconnect with the standard cisco serial connection info (listed above). Once you’ve done that, you can boot your new flash image

switch: boot flash:path-to.ios.image.bin

Providing your IOS image is good, it’ll boot up properly and you’re good to go. It is good practice to point to this file once your switch/router boots up using the “boot system flash:path-to.ios.image.bin” command in configuration mode, though it’s not always necessary.

Phil Pillera <ppillera [ a t ] gmail [ d o t ] com>

All the investing advice you’ll ever need?


Your behavior as an investor will have a larger impact on your retirement lifestyle than the performance of your investments.

1. Max your 401(k) or equivalent employee contribution.

This is a good piece of general advice — once you’ve first paid off any high-interest consumer debt and accumulated an appropriate cash reserve. For workers with no 401(k) company match, it might be better to contribute to a Roth IRA or a traditional IRA.

2. Buy inexpensive, well-diversified mutual funds such as Vanguard’s Target 20xx funds.

I’m not a big fan of target-date funds, and Vanguard’s target-date funds contain just a few asset classes. But they’re better than loaded, actively managed funds.

3. Never buy or sell an individual security. The person on the other side of the table knows more than you do about that stuff.

Maybe they do, and maybe they don’t. But there’s no doubt that owning individual securities is riskier than owning a well-diversified stock fund. Additionally, it’s unlikely that you know something about a company that isn’t already factored into its stock price.

4. Save 20 percent of your money.

5. Pay your credit-card balance in full every month.

6. Maximize tax-advantaged savings vehicles like Roth, SEP and 529 accounts.

7. Pay attention to fees. Avoid actively-managed funds.

8. Make your financial adviser commit to a fiduciary standard.

Most people who provide financial advice are not required to act in a fiduciary capacity with their clients. They are not required to disclose conflicts of interest or recommend investments that are in their clients’ best interests — only those that are “suitable”. If your financial adviser isn’t acting in a fiduciary capacity with other clients, it’s unlikely that you’ll be treated differently.

9. Promote social-insurance programs to help people when things go wrong.

Apparently, the professor had only six pieces of financial advice to offer, but there was some space left on the index card. If we can’t keep politics off the card, I’d replace his No. 9 with …

Keeping your Attitude and Your Assets Positive
Pollack’s list is fine as far as it goes, but it’s hardly all-inclusive. Let’s flip the card over and add a few more pieces of advice.

10. Make sure you have adequate amounts of umbrella, disability and life insurance — just in case.

11. Keep your estate-planning documents up to date.

Note to all collectors — your children don’t want your stuff, they want their own stuff.

12. If you have to choose, make saving for your retirement a higher priority than saving for your kids’ college.

13. Don’t kid yourself. You probably know less about financial planning and investing than you realize.

14. There is no perfect portfolio — yours should emphasize simplicity and shun complexity.

Don’t make the mistake of assuming that complex investments are somehow better than “plain vanilla” stock and bond mutual funds and ETFs (Exchange Traded Funds).

15. You can only control the inputs to, not the performance of, your portfolio.

16. Successful investors focus on their goals and investment strategy, not on the stock market.

The long-term performance of your portfolio will be inversely proportional to how much you tinker with it. If you must peek, limit your stock market updates to Wednesdays and Fridays.

17. Your behavior as an investor will have a larger impact on your retirement lifestyle than the performance of your investments.

18. Your financial adviser should create a comprehensive and comprehensible financial plan that will keep you on course to your financial goals.

If you don’t have a financial plan – you don’t have a financial adviser.

19. Investing isn’t about hitting home runs — singles and doubles will serve you well in the long run and help you avoid making big mistakes.

20. Before getting into more consumer debt to impress your friends and neighbors remember this — one third won’t notice, one third won’t be impressed and one third will think you’re a self-obsessed fool.

21. Maintain your optimism — the perennial pessimists have always been wrong, and there’s no reason to believe that their track record will change anytime soon.

Here Are 14 Details About Disney Parks That Most People Don’t Know


1. There are 14 rides that operate to this day since the grand opening of the Magic Kingdom.
2. Trash cans are strategically placed around the park so that you are never more than 30 ft from one.
3. Inconspicuous Mickey Mouse heads are hiding in plain sight all over Disney World and its resorts.
4. A secret, exclusive suite is concealed in Cinderella’s Castle, available only as a promotional giveaway.
5. The Magic Kingdom staff have access to hidden tunnels all over the park.
6. Disney World doesn’t sell gum. It prevents unpleasant surprises on rides and tables – and in hair.
7. The “Tree of Life” in the Animal Kingdom was previously an oil rig.
8. The brown path in Liberty Village is representative of sewage flow during the Colonial Era.
9. “Smellitizers” can be found all over Disney World, which emit scents that correspond with the surroundings.
10. The aquarium in “The Seas” is so vast that the “Spaceship Earth” sphere fits comfortably inside of it.
11. The seemingly unkempt, withering garden in front of “The Haunted Mansion” is intentional.
12. Up until a few years ago, the “Toy Story” characters would drop to the ground when someone yelled, “Andy’s coming!”
13. In “Tomorrowland,” you can see the palm trees fold in at dusk and then unfold at dawn.
14. A basketball court is secretly tucked away inside the “Matterhorn” ride for staff members.

Can’t go wrong with random Disney facts!

13 Disturbing Behind The Scenes Secrets From Disney World


I just wanted to be able to read this all on one page instead of 30 pages with ads.

1. A character can NEVER take off their mask.
Even if they become so nauseous in their costume that they need to throw up, they’ve gotta do it right there inside of their masks.  Under no circumstances can they remove their mask in front of the guests.  If they do need to leave, they will cover one eyes with their hand and raise the other arm in the air to alert maintenance that they aren’t feeling well.

2. Characters will be fired if they’re seen with the same character.
You’ll never see two Snow Whites, two Mickeys, two of anything!  One former character performer opened the curtain to the same character she was switching out with once.  Without even knowing if any guests saw her, she ran back into the costume room and was nearly sick.

3. Cast members are not allowed to tell anyone which character they play.
According to a former employee, cast members who play characters can say “I’m friends with ____” or “I hang out with this certain character” but you can never say who you actually play.  No pictures of yourself in costume are allowed on social media or you will definitely be fired!

4. Someone died and their family got free passes.
Really! One former cast member said that he once worked a register in Tomorrowland at Disney World.  A man had a heart attack and died in the store. His family was “behind the scenes” in the employee areas obviously heartbroken.  Guests are never allowed behind the scenes but Disney made an exception to give this family their privacy.  The family also got free lifetime passes.  Guests are never allowed behind the scenes but Disney made an exception to give this family their privacy.  The family also got free lifetime passes.

5. They don’t take shoplifting lightly.
One visitor to Disney went to Magic Kingdom for a high school band trip.  One of his friends stole a few keychains from one of the stores.  A few minutes later, while walking through a crowded area, someone stepped on the back of someone’s shoe so he had to stop and adjust it.  At this time, when his friends stopped, two security officers came to the group, asked the shoplifter to quietly come with them to a “Cast Members Only” door.  He was charged with shoplifting, had to pay a fine, and had to do community service.

6. Announcements over the speakers are rare – but important.
Breaking the magic is not something Disney likes to do, but when it’s important, they will.  There’s a park-wide sound system that will stop the music and make an announcement looking for a specific person.  One former cast member made an announcement looking for someone who was waiting on an organ donation – an organ became available and that person had to get to the Orlando hospital right away.  Pretty cool!

7. Disney gives out a lot of free money.
Complain to the right cast member about the right issue and you’re almost guaranteed to get some money back.  Disney has a huge budget built in for this exact purpose.  They like to keep their guests happy!

8. Disney keeps notes on their guests.
That’s right – if you’re mean to a cast member, it’s going on your permanent record.  If you have a magic band (you get them for staying at a Disney resort and can be used on food and at stores), the cast member at the computer will be warned if you’ve been out of line with another cast member.  All Disney resorts use the same system, so watch yourself!

9. Disney will reward the nice ones.
On the other hand, if you’re nice to cast members, they’ll often go out of their way to make your experience a little more magical.  One cast member at a Disney resort said she often sent up chocolates or other treats, or even extra fast passes to sweet guests.

10. Cast members have three days to learn their lines.
On many rides, such as The Great Movie Ride in Hollywood Studios, cast members have monologues that must be given correctly to the last letter and inflection.  Cast members are given three days to learn the entire monologue (and how to run the ride!) before going live. Those three days are spent in a room with a trainer going over the script until they get it right – one word wrong?  Start over! Disney wants perfection.

11. The cast members are lovers and fighters.
Just like any workplace, there is drama between the employees.  The princesses have fought over girls who have stolen their boyfriends, cast members have hooked up in the Mousketeeria (employee cafeteria), and Mickey has flipped the bird at another cast member in the underground tunnels.  Not all sugar and spice here.

12. Stay inside your safari vehicle. Seriously.
More than one cast member has confirmed this to be true: if you’re on the Kilimanjaro Safari ride at Disney World, you need to stay in your seat.  At one point, the ride goes over a bridge with crocodiles underneath.  The cast member driving the truck is told that if anyone stands up and falls into the crocodile pit that the truck must be driven away quickly and immediately so that other guests won’t see what happens to the person who’s fallen.  The crocodiles are fed from that bridge and will eat anything that falls from it.  STAY SEATED.

13. “Have a Disney day!”
If a cast member ever tells you to “Have a Disney day,” you shouldn’t be excited.  It’s the cast members’ code for “Go screw yourself.”

Tonight’s Ride

Welllll tonight was my longest ride yet.  Again it sucked for about the first 2-3 miles, but then things started to get easier.  I think I always end up climbing for the first few miles.. it’s just where my condo is located.

Tonight’s stats:
Distance: 21.35km
Elevation Gain: 221m
Average Speed: 19.2km/h
Time: 1:06:52
Top Speed: 36.0km/h
Time: 9-10pm
Temperature: 94 F