My Subaru WRX Wagon got broken into, I wanted to create a short how-to replace the rear WRX Wagon door window. This video is fairly straight forward for any Subaru guy with a 10mm socket, ratchet wrench, and a few screw drivers.
You can combine git add & commit together into one command to save time. The command below defines a git alias.
Create Global Alias
git config --global alias.add-commit '!git add -A && git commit'
git add-commit -m 'init'
I just installed a fresh installation of Sierra on my Hackintosh and couldn’t for the life of me get XAMPP to run properly! I got “Access Forbidden” on my localhost and vhosts.I figured I’d write a few notes for people that run into this issue running XAMPP on your Mac. Please comment below if you don’t agree with or see a flaw in my notes and I can test and update your feedback. This guide assumes you already know basics behind XAMPP/WAMP stacks and are stuck getting it running on OSX.
Are they rebranding OSX to macOS? I digress…
Setting Up httpd.conf & httpd-vhosts.conf
1.) Open up XAMPP and click the tab Manage Servers. Highlight Apache and click Configure. Click Open Conf File. This will open your httpd.conf file.
2.) In httpd.conf find the follow line of code and change it daemon to your OS X username.
3.) In httpd.conf find the following line and uncomment it (by removing the #)
Save the file, don’t close TextEditor
4.) In TextEditor, goto File -> Open. You should start out in xamppfiles/etc. Click into the extra directory and then open httpd-vhosts.conf
5.) Remove the example code -or- comment all of it out.
6.) Use the following code to base your vhosts on, keep in mind I kept the default localhost example just to access the default htdocs location.
7.) Restart Apache services in XAMPP’s Manage Servers tab.
Solving Access Forbidden in XAMPP
This part is the one thing many would disagree with and I’m not 100% a way around this in macOS Sierra. Previously I’ve simply chmod 644 -R my working folders but I couldn’t for the life of me get around the forbidden error. If you know a better way around this please comment below.
1.) Open Terminal (Applications/Utilities/Terminal)
2.) cd to your directory and give execute read write permissions, example below
$ sudo chmod -R +xrw wordpress/
If you’re new to this, the $ is just signifying the command line beginning and we’re not su. This should set execute/read/write permissions reclusively to all files and folders within our working directory. I haven’t tried it but you can also try chown but these directories are already owned by my user…
Setting Up Hosts File in OSX Sierra
If you’re not familiar with vhosts on a local XAMPP stack, the hosts file allows you to overwrite local DNS routing on your machine. In our scenario, we will one for our local wordpress environment.
1.) In terminal, simply use this command to open up the hosts file:
$ sudo nano /private/etc/hosts
2.) At the bottom of the file add this to your hosts file:
This will now route traffic from http://wordpress.dev to your localhost. If your httpd.conf and httpd-vhosts.conf files are setup correctly, you can now access your local WordPress developer environment. Try to refresh http://localhost -or- for example http://wordpress.dev
This took me a while to find! But I’m really stoked to have this on all my clients. If you want Trash Doves on Telegram app download the sticker pack here! Please follow @SydWeiler on Twitter and tell her how much you love her work!
Always working from PowerShell, CMD, Git Bash, or Git Shell? Ever want to tweet from the command line while your pushing code to your Github repository? I was interested in doing this on my laptop, making it easy to tweet on the go while I’m coding away at a coffee shop. I’d like keep my phone face down or in my pocket to avoid distractions… But that urge to tweet happens to often. Windows Store Twitter app is crap, and Twitter.com in browser is always sluggish… Let’s just tweet from the command line!
Tweet from CLI with Node.js
2.) Run cmd.exe or PowerShell. I prefer to use Git Bash.
3.) Install cli-tweet by typing this command in:
npm install cli-tweet -g
4.) Now we need to see where npm installed the npm_modules folder.
npm rootIt will return a path that we need.
5.) Open File Explorer, Right Click “This PC” -> Properties, click Advanced system settings, then click Environment Variables. Copy and paste the path that npm root gave you into your Windows 10 Systems PATH.
6.) Close your CLI window and run it again in Administrative Mode.
7.) Type the following:
8.) It will give you an authorization URL that you have to copy and paste into your browser. Once the page loads, login and authorize RaedsLab app and it will give you a token to enter.
9.) With cli-tweet configured, try typing
echo "Hello Universe" | tweet
Do you like this awesome cli tweet tool? Go star the repo over on Github! If you don’t want to use RaedsLab Twitter app, you can create your own Twitter app and clone cli-tweet repository. In main.js line 13-14 you should see the key and secret for your Twitter App. You can install cli-tweet with your own key with the command:
npm install /path
See what’s hogging up your MySQL db
Cluttered up DB, create a mass drop query
I made a start to finish video on how to replace the RX7 FD plastic door handles with the aluminum ones that are commonly used. In this specific application, my girlfriend bought the Napol Performance aluminum RX7 FD handles. We got them in the mail within a week of ordering them from Canada off eBay and they were surprisingly good quality. This video serves as a reference for individuals that want to see the process of removing an RX7 FD door handle and disassembling the door latch mechanism.
The other day I hanging out at the Google Fremont campus, enjoying a lively #WordPress presentation by Kimberly Gauthier (KeepTheTailWagging.com) and happened to run across the Mervin Manufacturing Head Quarters! Their glowing florescent green logo caught my eyes! I spent 3 good seasons up at Mt Baker and Glacier WA during our epic La Nina season. Unfortunately, this season I haven’t spent much time up in the cascades due to the slushy rain. 🙁
I wanted to share this photo on here because I absolutely miss shredding Baker pow!
UPDATED: fixed missing/broken gist link with the code snippet.
UPDATE #2 May 24, 2017: updating this post since S3 has a new UI.
Recently I decided to ditch registrar DNS Managers like GoDaddy’s in favor of Amazon’s Route53. I really like their console and the DNS is snappy and responsive, not to mention the handy features when creating and pointing to Load Balancers for your TLD. However, one draw back of Route 53 is the lack of subdomain forwarding. Below is a quick solution.
All you will need is an Amazon S3 bucket, the static website end-point, and a Route 53 CNAME.
1.) Create an S3 Bucket: Name the bucket ie: subdomaintoForward.mydomain.com. It has to be the exact subdomain you wish to forward otherwise Route 53 won’t resolve. Choose the region and create!
2.) Set Properties: I don’t typically Set Properties for S3 bucket forwarding, but it’s an option for your specific use case. Skip this step if you’re not familiar with this.
3.) Set Permissions: Be sure to set the group permissions under Everyone to Read. This will allow the public to access the S3 bucket contents.
4.) Enable S3 Website Hosting: Open your new bucket and click the “Properties” tab.
Open up “Static Website Hosting” than select “Use this bucket to host a website”. Make the “Index document” simply index.html. After that, you will need to copy/paste the sample JSON below into “Redirection Rules”.
IMPORTANT: Open up Notepad or SimpleEdit and make note of the ENDPOINT. This will be used in Step 5 when you point the subdomain DNS.
Be sure to read the JSON closely and edit HostName and ReplaceKeyPrefixWith values. Paste in the XML below:
Again, just for clarification lets breaks down the JSON above. In this example, I want subdomaintoForward.mydomain.com to 301 redirect to http://domaintoforwardto.com/anything/after/thedomain/index5.html – compare this URL to the XML above, you should be able to figure out the syntax.
5.) Create A CNAME in Route 53: Make note of the “Static Website Hosting” End-point, copy that, then open up Amazon Route 53. Select your Hosted Zone and click “Go to Record Sets”. Click “Create Record Set” and configure your Record. In this example, domaintoForward is the subdomain, use CNAME, and paste in the Static Web Hosting End-point into Value. Create the record.
Over the past year or so I’ve become a fan of @Zedomax on Twitter. He caught my attention with his open frame bitcoin miner design. About a year and a half ago I got into mining Litecoin, Dogecoin, and using exchanges to play a bit of the Bitcoin game. I soon discovered how resourceful Zedomax’s channels and websites are, and wondered why I never seen these show up on Google SERPS. Let’s not get into SEO!
Max recommends getting the LCD screen with assembly, which makes replacing the LCD screen less complex and is only about $20 more. All you have to do is swap over the motherboard, camera, and back frame.
This video is a bit inspiring, it’s been a while since I’ve rooted, flashed, and help fix broken Android phones. Perhaps I’ll have to provide my services to local friends when I have downtime. :]