Whats the maximum number of virtual processor cores available in aws lambda
Memory: 3008 MB
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k | |
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf | |
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf | |
mkdir ~/.local/share/fonts/ | |
mv PowerlineSymbols.otf ~/.local/share/fonts/ | |
fc-cache -vf ~/.local/share/fonts/ | |
mkdir ~/.config/fontconfig/conf.d/ | |
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/ | |
echo "Log out of your session and login again." |
// All you need to do is add a font that has pretty good itlaics support i.e Fira, Operator, etc. and then add these two params to your existing User settings. | |
{ | |
"editor.fontFamily": "'Operator Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
{ | |
"scope": [ | |
"comment", | |
"keyword.control", |
import groovy.json.JsonSlurper | |
import groovy.json.JsonOutput | |
def jsonSlurper = new JsonSlurper() | |
def secrets = jsonSlurper.parse(new File(args[1] ?: "secrets.json")).clients.inject([:]) { map, c -> map[c.client] = c.secret; map } | |
def realm = jsonSlurper.parse(new File(args[0])) | |
for(client in realm.clients) { | |
if(secrets[client.clientId]) { |
public class LowercaseContractResolver : DefaultContractResolver { | |
protected override string ResolvePropertyName(string propertyName) { | |
return propertyName.ToLower(); | |
} | |
} |
// Our simple domain model | |
type Priority = | |
| Low | |
| Normal | |
| High | |
type Message = { | |
Text : string | |
Priority : Priority | |
} |
#!/usr/bin/env bash | |
mkdir ~/ssl/ | |
openssl genrsa -des3 -out ~/ssl/rootCA.key 2048 | |
openssl req -x509 -new -nodes -key ~/ssl/rootCA.key -sha256 -days 1024 -out ~/ssl/rootCA.pem |
namespace HttpClient.FSharp | |
open System | |
open System.Net.Http | |
type HttpMethod = | |
| Post | |
| Put | |
| Delete | |
| Get |
# Error before fixing: | |
# Xlib: extension "XInputExtension" missing on display ":10.0". | |
# Xlib: extension "XInputExtension" missing on display ":10.0". | |
#Find Atom / VS Code installation folder, e.g. /usr/share/atom or /usr/share/code | |
dpkg -L atom | |
dpgk -L visual-studio-code | |
#Find libxcb1 installation folder, e.g. /usr/lib/x86_64-linux-gnu/libxcb.so.1 | |
dpkg -L libxcb1 |
namespace Newtonsoft.Json.Converters | |
open Microsoft.FSharp.Reflection | |
open Newtonsoft.Json | |
open System | |
type IdiomaticDuConverter() = | |
inherit JsonConverter() | |
[<Literal>] |