-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//---------------------------------------------------------------------------------------------------------------------- | |
// 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. | |
//---------------------------------------------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum FooBar { | |
Foo(u8), | |
Bar(u8) | |
} | |
fn test(v: bool) -> FooBar { | |
if v { | |
FooBar::Foo(5) | |
} else { | |
FooBar::Bar(10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git rebase --onto master A B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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}")) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object TypelevelPolymorphic extends App { | |
object square extends Poly { | |
import scala.language.reflectiveCalls | |
implicit val is = at[Int] { i => i * i } | |
implicit val fs = at[Float] { f => f * f } | |
implicit val ds = at[Double] { d => d * d } | |
} | |
trait Poly { |