Tuesday, April 10, 2018

Jboss Developer Openshift MAC

Install Docker

brew install openshift-cli

OpenShift/Minishit on MAC

Quick notes to install openshit on mac -

brew cask install minishift
\curl -sSL https://get.rvm.io | bash -s stable

Open your terminal and run

\curl -sSL https://get.rvm.io | bash -s stable
When this is complete, you need to restart your terminal for the rvm to work.

Now, run rvm list known

This shows the list of versions of the ruby.

Now, run rvm install ruby-2.3

If you type ruby -v in the terminal, you should see ruby 2.4.2.

If it still shows you ruby 2.0., run rvm use ruby-2.4.2 --default.

brew install docker-machine-driver-xhyve

sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

minishift start


Tuesday, March 6, 2018


pvcreate /dev/sdb1


vgextend Volugroup /dev/sb1

lvcreate -L 40G -h lv_rarw volgroup

Thursday, February 8, 2018

subclipse - svn for eclipse

Add URL to Install new software (under Help)

Then chose the Core,Subclipse and JavaHL windows binaries.
This will download install and restart.

You can then open an SVN perspective and add the trunk.
From there you can checkout the code into the eclipse directories.

Once they are checked out into eclipse… the eclipse becomes svn aware.
(you can test it by changing a file and it should be marked with asterisk)

The svn commands can be found by right clicking the file and they are located under Team submenu.

You can also do a project compare to the repository at the top level to quickly identify all changes in project.

Wednesday, December 6, 2017

Monero Cold Walet

My Monero Experience





The Taushet USB Monero Cold Wallet Generator is a pre-packaged, pre-hashed and pre-zipped collection of the tools required to make a secure wallet that only requires a single checking/security hash. It takes around 10 minutes to make a secure cold wallet. The tool has been hashed and verified by many community members (see here).
The full instructions can be found on the reddit post,

What you need:
  • 1 x taushet-USB-wallet-gen.zip
  • 3 x USB thumbdrives
How to use:
  1. download https://mega.nz/#!iQ1QwACY!63LgepwldjgfBkH8WaXxyGPQ4f5JOvg54Zd4vhtwQdw
  2. Physically disconnect from the internet.
  3. Check that the hash (md5) of the file matches those on the reddit post.

md5 taushet-USB-wallet-gen.zip 
MD5 (taushet-USB-wallet-gen.zip) = 7e8923a66f8165b890177a34559b694c

  1. Extract the zip file, which contains: slacko64-6.3.0.iso, Rufus-2.11.exe, monero-wallet-generator-master (dir), and this ReadMe.txt.

  1. Make a bootable USB of the ISO using Rufus 2.11. Agree to all the default settings in the dialog boxes.

  1. Drag the monero-wallet-generator-master directory to the USB drive.

  1. Reboot using the USB into PuppyLinux (hold down F12 during boot to select boot drive)
press f12 repeatedly on startup
  1. Open the monero-wallet-generator.html file in the directory, generate the wallet seed and keys
  2. Save the seed, address and keys to the second USB drive. Copy/paste, don't type. This is you digital vault, not to be used until fund extraction.
  3. Write down the seed three times on a single sheet of paper. This is your physical vault.
  4. Save the address (and maybe viewkey) to the third USB drive. This is your address usb, which can be used with relative abandon.
  5. Remove second and third USB drives.
  6. Wipe the first USB drive (containing the wallet generator and linux), or destroy it.
  7. Remove all USB drives.
  8. Reboot, reconnect internet.

You now have a cold wallet!

Friday, December 18, 2015

MySQL - Can't init tc log

/usr/sbin/mysqld: File '' not found (Errcode: 2)
151217 20:21:27 [ERROR] Failed to open log (file '', errno 2)
151217 20:21:27 [ERROR] Could not open log file
151217 20:21:27 [ERROR] Can't init tc log

151217 20:21:27 [ERROR] Aborting


mysql-bin.index had become corrupted
edit this file to include all indexes did the fix

server was able to restart after that

Tuesday, July 14, 2015

Apache with Oracle Build - partial

##cd /usr/src
#wget http://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.gz
#tar xvf pcre-8.37.tar.gz
#cd pcre-8.37
#./configure --disable-cpp --prefix=/root/apache/pcre
#make install
#wget http://www.apache.org/dist/httpd/httpd-2.4.12.tar.gz
#tar xvf httpd-2.4.12.tar.gz
#cd /usr/src
#wget http://www.apache.org/dist/apr/apr-1.5.2.tar.gz
#wget http://www.apache.org/dist/apr/apr-util-1.5.4.tar.gz
#tar xvf apr-1.5.2.tar.gz
#tar xvf apr-util-1.5.4.tar.gz
#cd apr-1.5.2
#./configure --prefix=$PREFIX
#make install
#cd ..
#cd apr-util-1.5.4
#./configure --with-apr=/usr/src/apr-1.5.2 --with-oracle=/opt/oracle/instantclient_11_2 --with-oracle-include=/opt/oracle/instantclient_11_2/sdk/include --prefix=$PREFIX
#make install
#mv apr-1.5.2 httpd-2.4.12/srclib/apr
#mv apr-util-1.5.4 httpd-2.4.12/srclib/apr-util

cd httpd-2.4.12
##./configure --enable-so --enable-ssl --with-mpm=prefork --with-included-apr=  --with-included-apr-util
#./configure --enable-so --with-apr=/usr/src/apr-1.5.2 --with-pcre=/root/apache/pcre --prefix=$PREFIX
#make install

# Basic Auth Working
<Directory /var/www/html/agency1>
        AuthType Basic
        AuthName "http.conf agency1"
        # (Following line optional)
        AuthBasicProvider file
        AuthUserFile /etc/httpd/conf/security/passwords
        AuthGroupFile /etc/httpd/conf/security/groups
        # Require user fox
        Require group agency1
# Digest Auth now working key is AuthName must match realm
<Location /agency2>
        #AllowOverride AuthConfig
        AuthType Digest
        AuthName "agency2"
        AuthDigestDomain /agency2/
        #AuthDigestProvider file
        AuthUserFile /etc/httpd/conf/security/digest
        Require user user2

<IfModule mod_dbd.c>
# mod_dbd configuration
DBDriver oracle

DBDParams "user=user pass=password dbname=XE server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=XE)))"
DBDPersist off
 # You should test with Persist off then change to on if it works.
DBDMin  4
DBDKeep 8
DBDMax  20
DBDExptime 300
<Directory /var/www/html/private>
  # core authentication and mod_auth_basic configuration
  # for mod_authn_dbd
  AuthType Basic
  AuthName "My Server"
  AuthBasicProvider dbd
  # core authorization configuration
  Require valid-user
  # mod_authn_dbd SQL query to authenticate a user
  AuthDBDUserPWQuery \
    "SELECT password FROM authn WHERE userid = %s"