Skip to content

Instantly share code, notes, and snippets.

View jacobwills's full-sized avatar

Jacob Wills jacobwills

View GitHub Profile
@jacobwills
jacobwills / parse_html_table.ps1
Last active January 4, 2024 10:25
Use PowerShell to extract content of HTML table tags and export to text file. Quick and dirty, but the idea is there.
$inputFile = $args[0]
$outputFile = $args[1]
$cvsOutputFile = (Split-Path -parent $outputFile)+"/"+[IO.Path]::GetFileNameWithoutExtension($outputFile)+".csv"
$html = New-Object -ComObject "HTMLFile"
$html.IHTMLDocument2_write($(Get-Content -Path $inputFile -Raw))
$tables = @($html.getElementsByTagName("TABLE"))
@jacobwills
jacobwills / gsettings-open-in-terminal.sh
Last active October 11, 2019 06:18
Use gsettings to view/set "Open in Terminal" secondary-click context-menu terminal application.
# view current/default
gsettings get org.cinnamon.desktop.default-applications.terminal exec
# change to xfce4-terminal
gsettings set org.cinnamon.desktop.default-applications.terminal exec xfce4-terminal
@jacobwills
jacobwills / vscode.nemo_action
Last active November 27, 2019 06:52
Add secondary-click context menu to nemo for opening folder in VSCode. Create this file in ~/.local/share/nemo/actions
[Nemo Action]
Name=Open in VS Code
Comment=Open in VS Code
Exec=code -n "%F"
Icon-Name=visual-studio-code
Selection=Any
Extensions=dir;
@jacobwills
jacobwills / keybase.md
Created June 22, 2019 05:40
keybase.io proof gist

Keybase proof

I hereby claim:

  • I am jacobwills on github.
  • I am jwills (https://keybase.io/jwills) on keybase.
  • I have a public key ASCqPqg8d-ubLDd5ft7r3Or6Kqk-P1qOckZbi_WRa4l53go

To claim this, I am signing this object: