Seems that a few of my instances in AWS were originally setup using Ubuntu 12.10. Don’t know how that happened, but anyways. Now that 12.10 is no longer support you can’t just upgrade. So the solution is to use the old.releases.ubuntu.com site and update/upgrade from there. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo sed -i -re ‘s/us-west-2.ec2.archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ […]
Author Archives: markcallen
Vagrant machine status
If you need to get the status of a vagrant machine you can run the following in a command window: vagrant status aws –machine-readable | awk -F”,” ‘{if ($3 == “state”) print $4;}’ Will output: running if the machine is running or not_created if it is not.
AWS SNS and SQS Example using NodeJS
Using SNS and SQS and Example using NodeJS Motivation I wanted to test out using the new aws-sdk with Amazon Web Services (AWS) SNS and SQS services. It is now possible to subscribe queues to topics therefore creating a pub/sub style system without any system configuration work. Setup at AWS I created a new IAM […]
OpenSUSE 11.1 for Vagrant
Seems that last week I needed an openSUSE 11.1 VM to test out some chef scripts. Vagrant Cloud which is a great place to find Vagrant VMs didn’t have one, so I decided to create one. Start first by downloading and installing packer an incredible tool for creating virtual machines from templates and scripts. I used the […]
Dependency Walker
Currently working out a build system for a windows application. Found this was helpful when trying to figure out which dlls where being used by some dlls created a long time ago. Dependency Walker (depends.exe) Home Page. Shows the dependency hierarchy of the dll or exe.
Nginx Deny IP
This is a quick way to deny an ip address accessing your nginx server. Create a new file in /etc/nginx/conf.d called blockips.conf Add the following to the file: deny <bad ip>; Then restart nginx. The log file will now show 403’s for the IP address. For more info see: http://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/
Disable WordPress XML-RFP (pingback)
In March there was a DDOS attack that used many (160,000) wordpress sites to flood other websites. This was done because wordpress now has xml-rpc on by define. It is possible to turn off xml-rpc using a plugin. http://wordpress.org/plugins/remove-xmlrpc-pingback-ping/ This adds a filter without the need of editing your own pages. For more info on […]
Windows ISO
Looking for ISOs for Windows. Used the Windows 7 x64 Professional without a problem. http://www.heidoc.net/joomla/technology-science/microsoft/14-windows-7-direct-download-links
RMAN: Use CROSSCHECK command to fix status
What to do when an obsolete rman object can’t be found. Environment Make sure ORACLE_HOME, ORACLE_SID and PATH are set correctly – rman also comes with X11R6 so make sure that ORACLE_HOME/bin is first in your PATH Log Into RMAN rman target / Find the mismatched objects RMAN> delete noprompt obsolete; RMAN retention policy will […]
ORA-01654: unable to extend index
Database can’t extent an index. Problem ORA-01654: unable to extend index SYS.I_FILE#_BLOCK# by 128 in tablespace SYSTEM Solution Check the size and maxsize of the data files in the SYSTEM tablespace select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name=’SYSTEM’; Increase the size of the data file; alter database datafile ‘<Path to data file>’ resize […]