Categories
Samuel Thoughts

loss

sometimes, usually late at night, I stop and think about how you are gone.  How the world just keeps turning and life continues on.  I don’t know if I will ever get to see you again, and that scares me.  The finality of it all is hard to fully comprehend. In my normal day to day life I don’t feel like you are gone.  I feel like I simply have not hung out with you in a while. I get the urge to email you every now and then.  I think deep down I really just can’t believe that I wont be able to ask you any more questions, won’t be able to get your input on life…. there will be no more thanksgiving dinners with  you trying to weasel me into bringing a date….. its all pretty overwhelming if I let myself stop to fully embrace it.  I have grief, and regret that I didn’t spend more time with you.  But mainly I just miss the future fun times we would (should) have been able to have.  I catch myself thinking about my Mom and You a lot as well, I know you were her best friend.  I’m not sure how to help her or comfort her.  I’m not really sure how to help or comfort Steve either. I want to, I should have asked you how I could help Steve and Alex the last time we hung out.  That visit was so much fun.

I’m going to try to keep living with purpose, and not float through days.  The last promise you asked me to make (well the second to last one at least) I’ve been working on that a bit.  Its still kind of scary and I’m not positive if I will end up doing it, but at the very least I have a little bit of a plan in place so that’s something.

 

 

Categories
Samuel Twenty Somethings

My Ideal Week

So this is somewhat of a continuation to my “morning ritual” blog past.  Except this is expanded into a full week.  I was told by a good friend to  life and schedule w/purpose, don’t just float down the easy path of least resistance”.  I think all of us, at times get caught in floating down the path of least resistance.  The monotonous grind of day to day life has that effect on everyone, I know that it is a constant struggle for me.  This will be an ongoing series of posts pertaining to my “ideal” week, and my “ideal” day.  I’ve found the key (for me) to living purposefully is to break things up into small amounts.  I don’t look at large goals like “get in shape” or “exercise more”.  Instead I’ve moved to treating every week (and actually even every day) as its own event.  And what I mean by that is I simply ask “have I done ____ today”.  So working out goes from “Oh I’ve had a good few days working out, I can take today off” to “have I done any exercise today”.  The same thing goes with work, and a few other things I’ll outline below.  But this “the only day you have to worry about is now” idea actually came from a counselor a family member of mine goes to.  He was telling my family member how “you don’t have to do xyz activity FOREVER, you only have to do it today”.

 

My Ideal Week (2015 edition)

Monday:

  • 7:45 – up
  • 8:15-9:15 workout
  • 9:30 – 11:00 (airplane mode work @ standing desk)
  • 11:00-12:00 answer emails/make calls (set 1 hr. timer)
  • 12:00-1:30 lunch
  • 1:30-3:30 (airplane mode work) also (optional time to meet if someone has requested a meeting)
  • 3:30-4:30 answer emails/make calls (set 1 hr. timer)

Tuesday:

  • 7:45 – up
  • 8:15-9:15 workout
  • 9:30 – 11:00 (airplane mode work @ standing desk)
  • 11:00-12:00 answer emails/make calls (set 1 hr. timer)
  • 12:00-1:30 lunch w/moms
  • 1:30-3:30 (airplane mode work) also (optional time to meet if someone has requested a meeting)
  • 3:30-4:30 answer emails/make calls (set 1 hr. timer)
  • optional evening happy hour w/moms if lunch did not work

 

Wednesday:

  • 7:45 up
  • 8:15-9:30 workout
  • 9:30-11:00 (airplane mode work) also (optional time to meet if someone has requested a meeting)
  • 12:00 – 6:15 onsite consulting work
  • 6:30-8:00 sparring/private lesson

Thursday:

  • 7:45 up
  • 8:15-9:15 workout
  • 10:00-4:00 onsite consulting work
  • 7:00-9:00 softball + happy hour drinks

Friday:

  • 7:45 up
  • 8:15-9:15 workout
  • 9:30 – 12:00 maintenance day (see full list for details)
  • 1:30-4:30 optional work (if behind) else (optional reading, optional golf, racketball, biking)

Saturday/Sunday:

  • read book from white shelf
  • buy groceries (smalldi/farmers market)
  • spend 1 hour freethinking about anything that directly effects my life or I find interesting (set timer/no distractions)

*pick one event and go early every week

Categories
Laravel Samuel

Initial Laravel Setup Checklist

This post is merely a checklist reminder for myself and not meant to be a tutorial. If you are looking for a tutorial on setting up laravel for the first time please go to:

http://www.nowordsbarred.com/setting-laravel-4-first-time-onwamp-server/

 

    1. install laravel 5 via composer (composer createproject laravel/laravel preferdist)
    2. make deploy script for server (chmod +x script after uploading it)
    3. connect server to repo with deploy keys
    4. clone repo onto production server manually
    5. create symlink to public folder of laravel
    6. install composer in laravel directory
    7. create database
    8. define DB creds in .env file

Thats all the needed steps for getting a laravel site configured on the server.

 

1.) To allow the server to connect to the Code Base repo we need to run (cd ~/.ssh). Then run (cat id_rsa.pub) and copy the pub key file (control + insert + c to copy from terminal)… maximize the SSH terminal window if getting invalid key warning from CB, spacing seem to effect this. (If no file present run ssh-keygen). Next step is login to CB, hit the repos page, then hit the gear icon > deployment keys > ad new ssh key > past key into this window and save.

2.) When you upload your deploy script file, to give it proper permissions to execute we need to run (chmod +x script-name)

3.) To create our symlink path to the public folder we want to run:
ln -s /home/user/git/repo-name/public /home/user/public_html/public_html

or if you want to install laravel in a subfolder you can run:
ln -s /home/user/git/project/repo-name/public /home/user/public_html/directory/folder-name

**Notes**
-you must delete the public_html folder if its is already present, most systems will make this folder by default when the account is created.
-you must include the full file path, including /home/username if your are on cpanel

Categories
Fixing Stuff Samuel

limiting wordpress logins via IP server wide in WHM

This post is just for my own future use so please excuse the lack of polish. The goal here was to lock down all the wordpress sites on our server for 2 main reaonns:

1.) Our Server was working way harder than it needed to, and this was in a great deal due to the fact that several popular wordpress sites we have on the serve were constantly getting bombarded with bad login requests
2.) This greatly increases the security of your wp-admin section

How to do this:

-login to WHM/cpanel
-navigate to Service Configuration > Apache Configuration > Post VirtualHost Include
-Select “All Versions” of apache
-Add the following code snippet:


# Restrict wp-login

Order deny,allow
Deny from all
Allow from 0.0.0.0.0.0 (replace with your IP address)
ErrorDocument 403 "Not allowed from your IP."

Hit update to save

Categories
Fixing Stuff Samuel

installing SSL cert in google chrome

If you are like me and ran into an issue where you trust an SSL certy (because you issued it on your server) and you want to add a permanent exception to chrome to avoid the annoying SSL warning then you can do the following:

You can permanently install the certificate and then Chrome will trust it. Click on the green padlock, click connection, then certificate information, click details tab, then copy to file. This will export the certificate to a file. Then you can double click and add it to your local store.

cert will be located at:

C:\Users\user-name\AppData\Local\Google\Chrome\Application\41.0.2272.118\file-name

Categories
Fixing Stuff Samuel

Health Insurance

With the Obama care law recently coming into question through a supreme court challenge, it got me thinking on the subject. Specifically, wondering  if there is a better way to achieve affordable health care coverage for poor Americans/All Americans.

Assumptions:
Obama care is the law of the land – so this is an attempt to present a better plan. This is important to note because its assuming that Obama Care is upheld as legal, so this is trying to outline a better system, restrained by the fact that some type of system must be in place since this  law has  been passed. It does not assume we can “throw out” the idea of insurance coverage for poor/under privileged Americans since that is what was voted in place with the Obama Care law.

The goal for this outline is to:
Provide more affordable coverage for All Americans.
Keep the free market involved in the equation so that cost come down instead of rise.
Set every Amercian up so that a catastrophic health incident or accident will not completely derail their life.
Lower the cost of entitlements for the government as a whole.

The Plan:

Currently Obama Care is projected to cover 12 million Americans that were previously un-insured. What if instead of traditional insurance Obama care had opted for this:

-The government would open health savings accounts for every American older than 26 years of age that qualified (lets assume 12 million qualified).

-The government would additionally offer this HSA type of insurance account to everyone when they are born up until they turn 26

-The government would put 2,500$ in the HSA account at the beginning of each year for anyone under 26, and anyone above 26 who qualified (Un-insured).

-The government would negotiate the monthly “premiums” with insurance companies. Lets assume they could get close to what I currently pay ($108/month). So people would be on the hook for $108/month. *This only applies after you turn 26, before you turn 26 the monthly premiums are taken care of.

-The government would let people keep any excess funds they did not spend in their HSA accounts (essentially the accounts could roll over every year just like any normal HSA). Once people turned 65 they would then have access to this account (just like an IRA).

-If people spent all of their $2,500 every year on health related issues, insurance would cover the tab 100% after 2,500.

-Anyone who makes enough money to fund their own accounts by the time they turn 26, can claim their account and transition it into an HSA in their name. This will allow them to get a tax credit of slightly more (how right now people get $3,200 tax write off right now if we fund our own HSA). So lets just say its the same, $3,200 (as an extra incentive to fund your own account, once you change the account into your name you would be allowed to convert your HSA account to one that allows stock market investment).

-if you don’t make enough money you can still qualify to extend your HSA account through the government and get the $ 2,500 a year….. you could maybe have to reapply every 5 years for life, if you never end up making enough money to get off of the government’s plan.  If you do make enough money, then you move to your own HSA because you can take a bigger tax write off.

Costs:

To Offer these accounts for the 12 million un-insured that Obama Care covers would cost the government 30 billion dollars per year. A large number but its pretty trivial if you implement changes to social security or make a small tax increase to cover it (lets raise 30 billion + 100 million to pay for workers to administer the system). So instead of putting all kinds of new regulations in place and overturning the entire health insurance system we would fix the issue of 12 million uninsured people that need help + on top of insurance we would be establishing a retirement account for all of these people at the same time……

*Need to find out how many people in the US currently under 26 for accurate costs on this aspect*

For everyone under 26 this is an especially attractive option. Currently we allow people to get social security once they turn 65, but this plan is backwards. We don’t set people up for success, we try to help them just enough to get by. Instead of continuing social security we could phase it out into this new system (or have some kind of combination). The retirement account would be massive by the time someone turned 65 if they had put 2,500 in it every year, plus after they turn 26 most people would be able to take the account over for themselves, add more money to it, and invest it in the stock marketing compounding their returns.

If you factor the savings of phasing out social security, with the savings of how much cheaper this plan is than Obama Care (projected 1.2 trillion cost over the next decade for Obama care to insure 12 million Americans who previously had no insurance). This plan would be 361 billion over that same life span.

Special notes:

*These HSA accounts would not allow stock market investing.
*banks would be limited to more strict investing standards on these accounts (so that huge stock market fluxations issue would not affect these accounts)