Saturday, 12 March 2022

Twilight

📖 

Be glad in the LORD, and rejoice, you righteous: and shout for joy, all of you that are upright in heart. Psalm 32: 11


🎶

The sands of time are sinking, the dawn of heaven breaks, the summer morn I've sighed for, the fair sweet morn awakes;

Dark, dark hath been the midnight, but dayspring is at hand, and glory, glory dwelleth in Emmanuel's land.


🙏🏽

Father, thin blankets of snow and ice still envelope your creation, but warm sunny breezes beckon us home. Help us to rise from our winter's sleep and spring into the new, eternal life!

Monday, 28 February 2022

Pray!

📖

Call on me in the day of trouble: I will deliver you, and you will glorify me. Psalm 50: 15


🎶

When my way grows drear, precious Lord linger near. 

When my light is almost gone, hear my cry, hear my call, hold my hand lest I fall. 

Take my hand, precious Lord, lead me home.


🙏🏽

Dear God, Jesus, son of David, give me your mercy!


Monday, 28 December 2020

The Babe in the Barn

It’s been a quiet, difficult Christmas for many of us. So, I guess we can relate to Mary & Joseph, who after a tiring journey gave birth to a special baby boy in a barn. Hidden in the hay lay the helper of the whole world.

Cares about our life, security, health, and welfare have been heightened. In the chaos, let's remember the birth of Jesus Christ, his agony here on Earth, and the treasure He gave us all. And just as the shepherds who heard and experienced that night’s news could not contain their excitement, so let us also pick up our phones, write letters, send e-mails and text messages, and knock at our friends’ doors.


Set aside your worries and come to Bethlehem. Turn from evil and find victory in this child in the manger. Release your fear of death and grasp hold of eternal life. Your home may be locked down but fling open the doors of your heart for this precious guest.




Tuesday, 12 July 2016

Distributel Smart rg SR505N UDP Tunnelblick OpenVPN

A while back I was trying to connect to a VPN. The setup worked well for other users, and worked well in other networks other than at home. However, at home, I would connect, and experience a brief period of connectivity of a few seconds at most. The connection would remain but all the requests would basically fail after that.
After a bit of searching I found that I needed to change the MTU setting on my router/modem. I browsed to the router administrative interface, then to Advanced Setup, then to WAN, and for each listing there I clicked Edit and updated MTU size from 1452 to 1492, clicked Next 3 times, and then clicked Apply/Save. It worked! I figured it out due to this fine forum.

Tuesday, 28 June 2016

echo $POSIXLY_CORRECT

Who knows what $POSIXLY_CORRECT actually does, but it cost me an hour of time today. I needed to use process substitution <() with openssl to use a string as the input instead of a file. The command worked in my zsh console, but move it to the script, and poof! I was greeted with this error: syntax error near unexpected token `('. Apparently this can happen if $POSIXLY_CORRECT is enabled (set to "Y"), but that shouldn't happen in bash (I had the line #!/bin/bash at the start of my file).

It seems that because I was calling my bash file like this: "sh script.sh" it didn't work. I had to call "bash script.sh". Then $POSIXLY_CORRECT was not set and I was good to go.

Saturday, 13 June 2015

Upgrading GitLab from 6.7.4 (2f5b6e1) to 7.11

I bit of fun with this particular install (which is has come to be an expectation in regards to installing or updating GitLab:
  1. We found out that the update removed the ability to change the target merge branch, once a merge request is created. More: https://github.com/gitlabhq/gitlabhq/issues/7105 
  2. Towards the end of the install, the instructions actually disappeared and I could only find the 7.12 instructions. https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/6.x-or-7.x-to-7.12.md (https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/6.x-or-7.x-to-7.11.md)
  3. In step 3, (sudo -u git -H git checkout 7-12-stable),we had to stash in order to checkout: https://gitlab.com/gitlab-org/gitlab-ce/issues/220
  4. There was an error in step 4,(sudo apt-get install nodejs), which I barely noticed, and I had to install nodejs a little differently on debian: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
  5.  I accidently followed mysql instructions in step 5, (sudo -u git -H bundle install --without development test postgres --deployment),  and immediately realized it, then ran the postgres instructions. "Gems in the groups development, test, postgres and aws were not installed." Unfortunately, it saved the --without setting and excluded postgresql as well. That led to another error later on in the install. You can fix this by deleting the bundle I believe. http://stackoverflow.com/questions/17871229/rails-application-doesnt-recognize-postgres-gem http://stackoverflow.com/questions/4118055/rails-bundler-doesnt-install-gems-inside-a-group
  6. I got the error: unicorn.pid not writable directory for pid=/home/git/gitlab/tmp/pids/unicorn.pid not writable, but I just needed to chown that as it belonged to root.
  7. HTTP Push failed (SSH Push was fine), due to having the another ruby version. I changed a symlink to fix it: ln -fs /usr/local/bin/ruby /usr/bin/ruby https://github.com/gitlabhq/gitlab-shell/issues/223 https://github.com/gitlabhq/gitlab-shell/issues/211


Tuesday, 24 June 2014

1TB HDD turns to 31MB

The other day I transferred a bunch of files using Mageia to a drive which I believe was partitioned and formatted in Windows 8.1. A few days later, I noticed that Windows was reporting the drive to be 31MB in size. After a bit of research, I learned that there are some hidden areas on drives named HPA and DCO.

Of course, linux provided some handy tools to solve this issue. Using

hdparm -N /dev/sdb
I noted that HPA was enabled and only a fraction of the available sectors were indicated as available in max sectors. So, I set the max sectors equal to the available sectors using

hdparm -N p78165360 /dev/sdx
Please note that the numbers and drive identifiers are samples only (my drive didn't contain 78165360 sectors and I'm not sure it was sdb).

Credit is due to this post.