start new:
tmux
start new with session name:
tmux new -s myname
| " Show tab numbers | |
| set guioptions+=n | |
| " Hide scrollbars | |
| set guioptions-=r | |
| " zenburn color theme | |
| colo zenburn | |
| " Default editor when C-i is invoked |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.
This is enabled by adding the
ForwardAgent yes
option to any of your Host entries in ~/.ssh/config (or alternatively with the -A option). Don't set this option in a wildcard Host * section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.
| # Resetting your Windows Subsystem for Linux (WSL) Environment | |
| lxrun.exe /uninstall /full | |
| lxrun.exe /install |
| using UnityEngine; | |
| using System.Collections.Generic; | |
| // Written by Steve Streeting 2017 | |
| // License: CC0 Public Domain http://creativecommons.org/publicdomain/zero/1.0/ | |
| /// <summary> | |
| /// Component which will flicker a linked light while active by changing its | |
| /// intensity between the min and max values given. The flickering can be | |
| /// sharp or smoothed depending on the value of the smoothing parameter. |
| using UnityEngine; | |
| using System.Collections; | |
| // This script is meant to be attached to your main camera. | |
| // If you want to use it on more than one camera at a time, it will require | |
| // modifcations due to the Camera.on* delegates in OnEnable()/OnDisable(). | |
| [ExecuteInEditMode] | |
| public class CustomProjection : MonoBehaviour { | |
| private void OnEnable(){ |
This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh: