Create new worktree from existing branch
git worktree add <WORKTREE-PATH> <BRANCH>Create new branch and its worktree
| use serde::ser::SerializeMap; | |
| use serde::{Serialize, Serializer, de::Visitor, de::MapAccess, Deserialize, Deserializer}; | |
| use std::fmt; | |
| #[derive(Debug)] | |
| struct Custom(String, u32); | |
| impl Serialize for Custom { | |
| fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> | |
| where |
| key_bindings: | |
| - { key: V, mods: Command, action: Paste } | |
| - { key: C, mods: Command, action: Copy } | |
| - { key: Q, mods: Command, action: Quit } | |
| - { key: W, mods: Command, action: Quit } | |
| - { key: Home, chars: "\x1bOH", mode: AppCursor } | |
| - { key: Home, chars: "\x1b[H", mode: ~AppCursor } | |
| - { key: End, chars: "\x1bOF", mode: AppCursor } | |
| - { key: End, chars: "\x1b[F", mode: ~AppCursor } | |
| - { key: Key0, mods: Command, action: ResetFontSize } |
| This guide assumes that you have already set up a Ubiquiti Unifi VPN following the guide: | |
| https://help.ubnt.com/hc/en-us/articles/115005445768-UniFi-L2TP-Remote-Access-VPN-with-USG-as-RADIUS-Server | |
| To configure a Linux machine to be able to connect remotely I followed these steps. This guide was written for Debian 8. | |
| - In Debian install the "xl2tpd" and "strongswan" packages. | |
| - Edit /etc/ipsec.conf to add the connection: | |
| conn YOURVPNCONNECTIONNAME |
$HOME/Downloads/instantclient_12_1install.sh inside this instantclient_12_1 folder and copy the following code and past it on that file.| #!/bin/sh | |
| # VirtualBox command line | |
| #|------------------------------------------------------------------------------ | |
| #| start virtual machine from the command line | |
| #|------------------------------------------------------------------------------ | |
| VBoxManage startvm virtualMachineName |