For more details, see certmgr.
Note for commands to work, certificate must be in DER format.
Valid certificate store names are:
- Trust (ROOT CA)
- CA (Intermediate CA)
sysctl -w fs.file-max=12000500 | |
sysctl -w fs.nr_open=20000500 | |
ulimit -n 4000000 | |
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000' | |
sysctl -w net.ipv4.tcp_rmem='1024 4096 16384' | |
sysctl -w net.ipv4.tcp_wmem='1024 4096 16384' | |
sysctl -w net.core.rmem_max=16384 | |
sysctl -w net.core.wmem_max=16384 | |
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
sudo dpkg -i erlang-solutions_1.0_all.deb |
For more details, see certmgr.
Note for commands to work, certificate must be in DER format.
Valid certificate store names are:
Due to the OSX limitations in ports below 1024, in order to use them without running as root the virtualbox headless you can do the following workaround, (remember the command ipfw is deprecated on El Capitan)
In the Vagrant file use ports over 1024, for instance change 80 and 443 to 8080 and 8043.
# Apache
config.vm.network "forwarded_port", guest: 80, host: 8080
Full source: https://gist.github.com/mrange/aa9e0898492b6d384dd839bc4a2f96a1
Option<_>
is great for ROP (Railway Oriented Programming) but we get no info on what went wrong (the failure value is None
which carries no info).
With the introduction F# 4.1 we got Result<_, _>
a "smarter" Option<_>
as it allows us to pass a failure value.
However, when one inspects the signature of Result.bind
one sees a potential issue for ROP:
using System; | |
using System.Threading; | |
/// <summary> | |
/// A base class for disposables that need exactly-once semantics in a threadsafe way. All disposals of this instance block until the disposal is complete. | |
/// </summary> | |
/// <remarks> | |
/// <para>If <see cref="Dispose()"/> is called multiple times, only the first call will execute the disposal code. Other calls to <see cref="Dispose()"/> will wait for the disposal to complete.</para> | |
/// </remarks> | |
public sealed class AnonymousDisposable : IDisposable |
#!/usr/bin/env bash | |
DOTNET_CLI_PATH="$(dirname $(which dotnet))/sdk/$(dotnet --version)" | |
export MSBuildExtensionsPath="$DOTNET_CLI_PATH/" | |
export CscToolExe="$DOTNET_CLI_PATH/Roslyn/RunCsc.sh" | |
export MSBuildSDKsPath="$DOTNET_CLI_PATH/Sdks" | |
msbuild /nologo /v:minimal "$@" |
# Sets up a development environment for Ubuntu 16.04. | |
sudo apt-get install -y curl | |
# Microsoft source | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' |
What should F# as a language contain?
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.