Recently I accidentally overwrote my Production site when I thought I was on the staging site so after a bit of googling I came up with this solution. If you are on WordPress you can just paste this at the end of your functions.php for your theme. This could also probably be turned into a very simple plugin.
wormeyman
Apps and settings I install on a new Ubuntu WSL Install [Updated January 2018]
Much cleaner than my old script! See instructions below.
The Simple One Liner
cd ~/ && wget https://gist.githubusercontent.com/wormeyman/3be8fa7243ca9afa73cb/raw/a74e65625119fadb4b8bff6cede0c0b40a57c2bb/setupWormeymanEnviro.sh && chmod +x ./setupWormeymanEnviro.sh && ./setupWormeymanEnviro.sh
The Full Process:
- Click View Raw
cd ~/
-
wget the raw fileurl https://gist.githubusercontent.com/wormeyman/3be8fa7243ca9afa73cb/raw/a74e65625119fadb4b8bff6cede0c0b40a57c2bb/setupWormeymanEnviro.sh
chmod +x setupWormeymanEnviro.sh
./setupWormeymanEnviro.sh
- Unlikely but:
- If you receive an error you may have to enable the universe repository.
- First, open software center.
- Click on 'edit
- Then 'software sources'
- Check the box that says, "Community-maintained free and open-source software (universe)."
- If it asks you to reload you can say yes if you want but you will just reload again with the script so
i usually just say close.
- If you receive an error you may have to enable the universe repository.
Hello From Kinsta Hosting
So many hosting switches!
Here is my Kinsta Affiliate Link!
Override WebPagetest.org dns settings
Super useful for testing a non-live site to see if the new server or settings is fast enough.
Source: https://www.webpagetest.org/forums/showthread.php?tid=14066&pid=27237#pid27237
Script:
setDns mytestedhost.com 123.234.123.234 navigate mytestedhost.com
Notes:
- Use Tab stops not spaces
- I copied the above code into VSCODE and changed it to tab stops to get it to work.
- Paste into https://www.webpagetest.org/#script
Hello from Liquid Web Managed WordPress V2
Should be a lot easier to manage than cpanel!
edit: So far it is!
edit2: it ended up being a disaster with a ton of
My brackets settings.json
Saved for me and for you!
Gutenberg Editor Test
Testing out the new gutenberg editor on WordPress it seems to be working well! It's cool that you can re-arrange content blocks.
The above video is something that My Wife and I put together with the Kids.
WordPress Hosting on Liquid Web
Seeing how this works!
Update: It has been working pretty good!
How to install LinSSID on Ubuntu 12.04
I needed to do a network survey the other day to see if wifi was working as expected and I decided to use my Ubuntu laptop for the purpose, I ran into this handy tool called LinSSID that allows you to do a wireless survey. The reason I am using Ubuntu 12.04 is that I feel that the LTS releases are the most stable and have the broadest install base so that is what I tend to use on my computers.
- Install LinSSID from it’s download page.
- After it is installed I found that I got an error stating that it could not see any wireless devices so I installed IW by typing the following command into the terminal[shell]sudo apt-get install iw[/shell]
- I was then able to run LinSSID by typing[shell]sudo linssid[/shell]
in the terminal.
- (optional) If you would like to try combining steps 2.1 &3 try[shell] sudo apt-get install iw && sudo linssid[/shell]
Let me know in the comments if it works!