Coding | Trevor Elwell http://trevorelwell.me/ Tue, 12 Mar 2024 01:09:08 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.3 Obsidian Livesync Self-hosted HTTPS Issue https://trevorelwell.me/obsidian-livesync-self-hosted-https-issue/ Tue, 12 Mar 2024 01:07:34 +0000 https://trevorelwell.me/?p=981 I use Obsidian as my note taking editor of choice. I use the plugin Obsidian Livesync as the plugin I use to sync my notes from my mobile device to my desktop via a remote server. Unfortunately, I realized recently that my notes were not syncing across my devices. I was receiving a mysterious error: ... Read More

The post Obsidian Livesync Self-hosted HTTPS Issue first appeared on Trevor Elwell.]]>
Allow Certbot Access to Subdirectory with .htpasswd on Apache2 https://trevorelwell.me/allow-certbot-access-to-subdirectory-with-htpasswd-on-apache2/ Mon, 17 Aug 2020 03:20:09 +0000 https://trevorelwell.me/?p=962 I was trying to find a way to allow certbot to auto renew, but kept getting verification errors. The error showed that certbot couldn’t get access to /.well-known/acme-challenge/<SOME_HASH>: which was why it was failing. Turns out, I have a custom WordPress setup which requires .htpasswd authorization. This is to make it so the outside world ... Read More

The post Allow Certbot Access to Subdirectory with .htpasswd on Apache2 first appeared on Trevor Elwell.]]>
Google CTF | Reverse a Cellular Automata https://trevorelwell.me/google-ctf-reverse-a-cellular-automata/ Sun, 07 Jul 2019 21:45:57 +0000 https://trevorelwell.me/?p=930 This is a writeup for one of the challenges from the Google CTF which I participated in a few weeks ago. My friend Chris and I were finally able to get this flag after a lot of hitting our heads together. The Reverse a Cellular Automata challenge (may not be up in the future) was ... Read More

The post Google CTF | Reverse a Cellular Automata first appeared on Trevor Elwell.]]>
RxJS Lap Button (From Koutnik’s RxJS book) https://trevorelwell.me/rxjs-lap-button-from-koutniks-rxjs-book/ Sat, 08 Jun 2019 23:52:09 +0000 https://trevorelwell.me/?p=919 In the first chapter of Randall Koutnik’s book Building Reactive Websites with RxJS he has a challenge where he asks the reader to add a lap button to the stopwatch project. This lap button essentially freezes the output while continuing to count behind the scenes. I couldn’t figure this out for a little while, and ... Read More

The post RxJS Lap Button (From Koutnik’s RxJS book) first appeared on Trevor Elwell.]]>
How to Secure Your WordPress Website Against Russian Hackers https://trevorelwell.me/how-to-secure-your-wordpress-website-against-russian-hackers/ Thu, 21 Mar 2019 00:26:25 +0000 https://trevorelwell.me/?p=912 My site got hacked; I go through the process of how I found out what was going on, how I fixed it, and how I hardened my WordPress site.

The post How to Secure Your WordPress Website Against Russian Hackers first appeared on Trevor Elwell.]]>
A Simple ROP Exploit | poor_canary writeup https://trevorelwell.me/a-simple-rop-exploit-poor-canary/ Thu, 07 Mar 2019 22:44:50 +0000 http://trevorelwell.me/?p=897 HXP 2018 has a “baby” challenge called poor_canary which was my first actual ROP exploit. If you want to follow along you’ll need to download and install the hxp 2018 vm image and install it locally. If you’re on a mac, you might need to port forward in order to get the image working properly. ... Read More

The post A Simple ROP Exploit | poor_canary writeup first appeared on Trevor Elwell.]]>
Trie as you Might https://trevorelwell.me/trie-as-you-might/ Sun, 09 Sep 2018 19:56:18 +0000 http://trevorelwell.me/?p=889 A trie implementation in python.

The post Trie as you Might first appeared on Trevor Elwell.]]>
Topological Sort https://trevorelwell.me/topological-sort/ Mon, 03 Sep 2018 16:41:16 +0000 http://trevorelwell.me/?p=886 Analysis of a leetcode question involving topological sort.

The post Topological Sort first appeared on Trevor Elwell.]]>
Leetcode | Compare Version Numbers https://trevorelwell.me/leetcode-compare-version-numbers/ Wed, 25 Jul 2018 04:08:34 +0000 http://trevorelwell.me/?p=883 I decided to do an easy one today, but it still had a few good tricks! Here is the prompt: Compare two version numbers version1 and version2. If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may assume that the version strings are non-empty and contain only digits and the . character. The . character does not represent a decimal point and is used to separate number sequences. ... Read More

The post Leetcode | Compare Version Numbers first appeared on Trevor Elwell.]]>
Leetcode | Word Ladder II https://trevorelwell.me/leetcode-word-ladder-ii/ Tue, 24 Jul 2018 04:55:47 +0000 http://trevorelwell.me/?p=879 In preparation for fulltime interviews in the coming months I’ve been doing a lot of leetcode questions. I have many feelings on whether or not this is the best way to determine someone’s coding abilities, but that’s for a different post. I wanted to share my struggles with one particular question: word ladder ii. I’m ... Read More

The post Leetcode | Word Ladder II first appeared on Trevor Elwell.]]>