Skip to content

Instantly share code, notes, and snippets.

@drasticactions
drasticactions / jsonnet.workbook
Created March 16, 2017 17:13
JSON.NET Deserialize Example
uti platforms packages
com.xamarin.workbook
Console
id version
Newtonsoft.Json
9.0.1

JSON.NET Deserialize Example

#install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#generate list of installed applications with exact version
choco list -lo -r -y | % { "choco install " + $_.Replace("|", " ") + " -y" }
#generate list of installed application without version.
choco list -lo --id-only -y | % { "choco install " + $_.Replace("|", " ") + " -y" }
@oxagast
oxagast / useful-one-liners.sh
Last active January 8, 2025 18:16 — forked from johnnypea/useful-one-liners.sh
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar