As configured in my dotfiles.
start new:
tmux
start new with session name:
public class XmlStripper | |
{ | |
public XmlNode RemoveAllNamespaces(XmlNode documentElement) | |
{ | |
var xmlnsPattern = "\\s+xmlns\\s*(:\\w)?\\s*=\\s*\\\"(?<url>[^\\\"]*)\\\""; | |
var outerXml = documentElement.OuterXml; | |
var matchCol = Regex.Matches(outerXml, xmlnsPattern); | |
foreach (var match in matchCol) | |
outerXml = outerXml.Replace(match.ToString(), ""); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)############################### | |
# Core EditorConfig Options # | |
############################### | |
root = true | |
# All files | |
[*] | |
indent_style = space | |
# Code files |
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
This is a solution of a common problem with Nexus Docker repositories. The administrator has to expose port for "pull", another port for "push", other ports for each hosted repository. This solution is about leveraging Nginx reverse proxy to avoid using these ports.
Given :