View netplan eth0
network:
ethernets:
eth0:
addresses: [192.168.100.5/24]
gateway4: 192.168.100.1
nameservers:
addresses: [192.168.100.1]
eth1:
addresses: [<public ip>/29]
gateway4: <public ip's gateway>
View Microsoft.PowerShellISE_profile.ps1
# Located %USERPROFILE%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Set-PSReadlineOption -BellStyle Visual
$env:NOENV_PATH = $env:Path
$env:JAVA8_HOME = ""
$env:JAVA7_HOME = ""
$env:ANT10_HOME = ""
$env:ANT9_HOME = ""
View json.ps1
# Work around on
# ConvertFrom-Json : Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
$json = New-Object -TypeName System.Web.Script.Serialization.JavaScriptSerializer
$json.MaxJsonLength = 104857600 #100mb as bytes, default is 2mb
$filedata = [System.IO.File]::ReadAllText($JSONDataFile) #Using default encoding
$data = $json.Deserialize($filedata, [System.Object])
$filedata = $null
$json = $null
View keybase.md

Keybase proof

I hereby claim:

  • I am smarkwell on github.
  • I am smarkwell (https://keybase.io/smarkwell) on keybase.
  • I have a public key whose fingerprint is 9A3F 2865 98FF 9F83 B683 3F64 5EA5 774D 39B7 7983

To claim this, I am signing this object: