Progress

I’ve started to see a therapist back in December 2018 for many reasons. However, I didn’t like him that much so I decided to switch to a different one. The 2nd therapist so far is a lot better.

I can talk to him and open up to him a lot more, which is something I didn’t with the last one. I feel just so more comfortable.

Anyways, today we had some major progress which I am excited about. Hopefully I can start to see better things soon!

~hyper

Running a twitter bot with Tootbot

I’ve always wanted to run some type of bot on some website. At first, I wanted to run a Reddit bot. However, simple reply bots aren’t that great so I decided against it.

So I found Tootbot, which is a Twitter bot that mirrors posts from a subreddit onto Twitter. It doesn’t mirror everything, but any hot posts.

So I got to work and decided to mirror posts from /r/FortniteBR because why not. Anyways, setup is very simple.

First I cloned the repository and installed the dependencies.

pip3 install -r requirements.txt

After that, I simply ran the bot using tootbot.py. It asked for some API keys which were easy to retrieve. After that, the bot was running!

Now the only problem was trying to get it running 24/7. As you know, closing off the SSH window will stop the script. So I just used nohup to run the script in the background for me.

So great, I have a Twitter bot now! It runs fine and you can change how often it posts, the threshold to post, etc.

If you want to check the bot out, you can follow @r_fortnitebr!

~hyper

2018

I want to reflect on what has happened in this great year of 2018, since it was a lot. This year was probably one of the hardest year of my life. There really isn’t a layout I just started to type this out since I wanted to vent.

At the beginning of the year, I got my first job at Target that I still have in December. This job is a huge roller coaster from coming in super happy and leaving extremely worn out.

One of the biggest turning point in my life this year was realizing what my sexuality is. Becoming and embracing who I am this year is something I have never really done before. I always tried to not be myself and fit with society, but fuck that so now I’m gay.

I also met this amazing online community, and I have one person to thank for that, and his name is Zacuum (get it cause he sucks). From him, I have met probably the most wonderful and caring people that I have ever see before. However, we live so far apart and that makes me sad. They have been the biggest influence on my life and I won’t ever forget them or leave them behind in the dust.

However, this year was also very dark for myself. This year I realized my emotions what is really going on. I don’t want to get too into what is going since I could write another post here for hours. I was depressed and felt distant from everyone and ended up having suicidal thoughts. However, in December I went and talked to someone, and now am looking to get better in 2019!

The voice chats on Discord to 3 am, the random stuff we do, and the memories I won’t ever forget all happened this year. I hope 2019 is even better!

Special thanks to everyone that I love to death, Zac, Lucy, Erin, Jake, Skillian, Kaleb, Griffin, Mikey, Lunesta, and Shannon. I hope I didn’t miss anyone. If I did, yell at me.

~hyper

How to break a website

If you saw on my Twitter, I may have broken my website on Friday night. I lost file and SSH access to it. How did it happen?

This all started with me moving my main domain over to hyper.lol. I thought I could just change all configs to the new domain and it would work. Some things were broken obviously. So I thought the issue was with file and folder ownership. So I change the directory to the site and did this command:

sudo chown -R www-data:www-data /

To anyone that is stupid enough, don’t run that command above. It WILL break your computer/VPS. That command destroys the file/folder perms making your install break. My thought process was that the / was relative to where I currently was. That was not the case. At that point, I was unable to login at all. The server couldn’t accept my key.

I realized what I did after I typed the command. Luckily, I was still logged in via WinSCP. To fix it, I just went to my root directory and mass changed the ownership back to root. I had to leave it on overnight; however, that still didn’t work.

I ended up contacting my hosting’s support. After about 10 emails, we decided that these were the best steps to fix this:

  • Support would mount a recovery tool. From there, I could access the files.
  • Download everything I want.
  • Support would unmount the recovery tool.
  • I rebuild the server’s OS.

That is what we did, and now everything is working once again.

I also did change my domain over to hyper.lol, since I had the chance to rebuild everything.

TLDR, idiot tries to change file and folder perms but messes up the location on the command. Contacts support to fix.

~hyper