Note:
Replace
@
with/
in filenames.
Set up your .bashrc
to use .shellrc.d
.
Make sure ssh-agent
, ps
and awk
are installed and that $USER
is set to your username.
Note:
Replace
@
with/
in filenames.
Set up your .bashrc
to use .shellrc.d
.
Make sure ssh-agent
, ps
and awk
are installed and that $USER
is set to your username.
Bamboo (at least the instance I have to work with) is using a Java implementation of git
(JGit) that has problems reading the new SSH key-file format.
In earlier versions, ssh-keygen
generated private keys that looked like:
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
#!/usr/bin/env bash | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# MIT License | |
# | |
# Copyright (c) 2019 Björn Richter | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
# +----------------------------+ | |
# | IDE files | | |
# +----------------------------+ | |
/.idea | |
# +----------------------------+ | |
# | Vagrant | | |
# +----------------------------+ | |
/.vagrant |
trim_l() { | |
local str="$1" | |
if [[ $str =~ ^[[:space:]]*(|[^[:space:]].*)$ ]]; then | |
str="${BASH_REMATCH[1]}" | |
fi | |
echo "$str" | |
} | |
trim_r() { | |
local str="$1" |
Hyper-V uses dynamics port range to bind some ports. This range is so low that
e.g. port 3306
can be used by it. To set the dynamic port range to begin at
port 49152
use:
netsh interface ipv4 set dynamic tcp start=49152 num=16384
To show the current setting use:
netsh interface ipv4 show excludedportrange protocol=tcp
Safe conversion from u32
to i32
:
use std::convert::TryFrom;
fn main() {
let good: u32 = 50;
let ok: i32 = i32::try_from(good).unwrap();
println!("{} -> {}", good, ok);