I hereby claim:
- I am frgomes on github.
- I am frgomes (https://keybase.io/frgomes) on keybase.
- I have a public key ASC31pcPI9EG4dsquRu8NbKIIHYtjUkhHAL3LyVzzuwjyQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
## | |
## This script is instended to install RetroPie on a newly installed Debian Buster box. | |
## | |
## Hardware requirements: | |
## This script is known to work well with UDOO Bolt V8, which has an AMD Ryzen 1000 SoC. | |
## | |
## Software Requirements: | |
## |
#!/bin/bash | |
// one-liner which converts YAML to JSON | |
function yaml2json { | |
python -c 'import sys, yaml, json; y=yaml.load(sys.stdin.read()); print(json.dumps(y))' | |
} | |
function kubectl_clusters { | |
cat ~/.kube/config | yaml2json | jq '.clusters[].name' | sed 's/"//g' | |
} |
//---------------------------------------------------------------------------------------------------------------------- | |
// This is an example of how more than 22 fields could be mapped with Slick 3.3.1 (other versions may work as well?). | |
// | |
// The general idea is pretty simple: | |
// 1. define a case class made of nested case classes. | |
// 2. define a projection made of nested projections. | |
// | |
// In addition, you can just get rid of noisy usages of ``GetResult`` generated by the Slick Code Generator. | |
// Just get rid of that, since usage of ``mapTo[T]`` makes definition of projections clean and hygienic. | |
//---------------------------------------------------------------------------------------------------------------------- |
#!/bin/bash | |
# This lists the contents of a PFX file | |
# This is the last resort in case everything else fails. | |
# Just see its contents as a text file, cut whatever you need from it and | |
# paste manually onto separate files. | |
openssl pkcs12 -info -in input.pfx | |
# Found this in the internet. Not tested at all! | |
openssl pkcs12 -in input.pfx -out mycerts.crt -nokeys -clcerts |
Install ExQuilla plugin for Thunderbird Using the Add-ons Manager. Alternatively, follow instructions from https://exquilla.zendesk.com/hc/en-us
Restart Thunderbird
Using the web browser, investigate if you can access the Exchange Server. Something like this: https://sync.my.company.com/EWS/Exchange.asmx
enum FooBar { | |
Foo(u8), | |
Bar(u8) | |
} | |
fn test(v: bool) -> FooBar { | |
if v { | |
FooBar::Foo(5) | |
} else { | |
FooBar::Bar(10) |
#!/bin/bash | |
git rebase --onto master A B |
def a: Try[String] = Failure(new RuntimeException) | |
def b: Try[String] = Failure(new RuntimeException) | |
def c: Try[String] = Success("C") | |
def d: Try[String] = Failure(new RuntimeException) | |
def e: Try[String] = Success("E") | |
def f: Try[String] = Failure(new RuntimeException) | |
val result = a orElse b orElse c orElse d orElse e orElse f | |
// result is Success("C") |
/** Parse any IPv4 address or IPv6 address or domain name */ | |
def parsePeerAddress(value: String): Try[String] = | |
parseIPv4(value) orElse parseIPv6(value) orElse parseHostname(value) | |
/** Parse IPv4 address */ | |
def parseIPv4(value: String): Try[String] = | |
value.trim match { | |
case regexIPv4(_*) => Success(value) | |
case _ => Failure(new IllegalArgumentException(s"invalid IPv4 address name: ${value.trim}")) | |
} |