Skip to content

Instantly share code, notes, and snippets.

@Moelf
Moelf / eduroam.8021x
Last active July 25, 2024 18:06
Harvard Secure and eduroam config for iwd and iwctl
[Security]
EAP-Method=TLS
EAP-Identity=<your harvard email>
EAP-TLS-CACert=/var/lib/iwd/usertrustrsacertificationauthority.cer
EAP-TLS-ClientCert=/var/lib/iwd/harvard_eduroam.p12
EAP-TLS-ClientKey=/var/lib/iwd/harvard_eduroam.p12
EAP-TLS-ClientKeyPassphrase=<your certificate password>
EAP-TLS-Phase2-Method=Tunneled-PAP
EAP-TLS-Phase2-Identity=<your harvard email>
EAP-TLS-Phase2-Password=<your harvard login password>
@Moelf
Moelf / startup.jl
Last active September 3, 2020 22:19
Fzf Julia REPL
import REPL
import REPL.LineEdit
import JLFzf
const mykeys = Dict{Any,Any}(
# primary history search: most recent first
"^R" => function (mistate, o, c)
line = JLFzf.inter_fzf(JLFzf.read_repl_hist(),
"--read0",
"--tiebreak=index"
"--height=80%");
using Plots, Statistics
using StatsPlots
using Distributions #this pkg actually is end game, but we're just using gaussian pdf
function custom_gaussian(n)
#b)
#parent distribution is Gaussian
μ = 10
parent = Distributions.Normal(10) #μ = 10
parent_pdf(x) = Distributions.pdf(parent, x)