- symlink files and user folders to shared and extended, i.e. desktop, downloads
- enable indexing of s:/public/(downloads|docs|music|videos)
- junctions
- mklink /J C:\Users%username%.vagrant.d E:%username%.vagrant.d
- mklink /J C:\Users%username%.vscode E:%username%.vscode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add in .bashrc below, then refresh session | |
``` | |
set -o vi | |
bind '"jk":"\e"', do only if in control of all systems, stick with ESC for consistency | |
``` | |
It defaults to insert mode, ESC/jk to go command mode. | |
## Benefits |
I was noticing errors like
Command 'check' not found whenever I start a new bash shell.
I turned out I uncommented a line in .bashrc which starts with check.
I was able to figure it out by setting:
set -x
at the top
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable ssh-server | |
ssh-keygen | |
sudo update-alternatives --config editor | |
# Choose vim.tiny | |
sudo apt install git | |
# Add dotfiles | |
git clone [email protected]:paoloumali/.files.git $HOME/.files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP caching is a scheme of showing same resource unless content needs to be regenerated by fetching it again from the web server. | |
HTTP objects may be a static resource or a dynamic page built by some backend language like PHP. | |
Tools used are (1) HTTP Reverse Proxy, e.g. Varnish and HAProxy. Cache server is hit first before web server. All fetch resource will be cached locally first by the proxy before sending it to the client. If cache is hit, web server won't be touched at all, i.e. no access log entry will be appended. Only the first request is slow. | |
Another tool used is HTTP Browser cache. It relies on headers ETag and Cache-Control | |
Apache Cache-Control | |
FileETag None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- sudo update-alternatives --config editor | |
- set to vim.basic, i.e. vanilla vim | |
- sudo visudo | |
- stop password req for root things | |
- `umask 002` added in .bashrc | |
- set primary group as www-data | |
- created ~/sites folder | |
- chgrp www-data ~/sites | |
- chmod g+s ~/sites | |
- installed |
Add systemd hidden_wifi_connect.service
vim /etc/systemd/system/hidden_wifi_connect.service
[Unit]
Description=Connect to hidden wifi network on start
Before=network.target
[Service]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- With software, and even hardware, everything is under an ecosystem | |
- Getting the latest Intel doesn't mean you get all the bells and whistles. Not all software will harness all the power and features it may introduce | |
- Getting the latest wordpress doesn't mean smooth sailing. Not all themes and plugins will be ready for it. Do you believe all those plugins and theme you got for free can dedicate manpower to update their code every time there's a change? Have you done anything in your life for free? That's what open-source is at the core. But all that relies on it will move things for free. | |
- Getting latest PHP doesn't mean you're moving forward. Not all tools will be ready for it including your primary analysis tools, etc. | |
- Getting the recent released games doesn't mean all pleasant experience all the time. There are bugs to be caught. | |
So before you look at changing versions, focus on what matters. | |
Are you testing your code? | |
Are you using reliable plugins? | |
Have you focused on your page SEO? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl list-unit-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Find the problems | |
2. Describe the environment in terse statements | |
- note related softwares/tools | |
3. Describe the mother processes in sheets* | |
4. Describe the subprocesses worth sharing in sheets | |
- note how tools relate to the mother and subprocesses | |
5. Use loom/video to describe complex processes, but simplified | |
6. Pinpoint the process with most drag for humans | |
7. Define time/budget constraints | |
8. Devise a plan |