Skip to content

Instantly share code, notes, and snippets.

@ExFed
ExFed / wsl-fix-netipinterfaces.ps1
Last active January 18, 2022 19:39 — forked from nfekete/wsl-fix-resolvconf.sh
Fix resolv.conf in Windows Subsystem for Linux, when WSL doesn't correctly generate it.
Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect"} | Set-NetIPInterface -InterfaceMetric 4000
Get-NetIPInterface -InterfaceAlias "vEthernet (WSL)" | Set-NetIPInterface -InterfaceMetric 1
@ExFed
ExFed / build.gradle
Created February 26, 2019 14:39 — forked from LindsayBradford/build.gradle
Gradle script for LaTeX pdf generation.
/*
* Usage:
* all LaTeX source files go in $rawDirectory
* base document to 'cook' should match content of $latexFile
* build script delivers resulting PDF file to $cookedDirectory
*/
defaultTasks 'full'
ext { documentBase = 'myBaseLaTeXFileName' }