build:
docker build . -t fooey
run:
docker run -it --rm -e DISPLAY=10.0.0.231:0.0 fooey
| // ==UserScript== | |
| // @name autofill uwaterloo renison cpp log | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-10-05 | |
| // @description adds a button to autofill part of the uwaterloo renison conversation partner program weekly log | |
| // @author sleet | |
| // @match https://uwaterloo.ca/renison-student-experience/conversation-partner-program/online-cpp-log-sheet-submission | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=uwaterloo.ca | |
| // @grant none | |
| // ==/UserScript== |
build:
docker build . -t fooey
run:
docker run -it --rm -e DISPLAY=10.0.0.231:0.0 fooey
| //@target illustrator | |
| // app.preferences.setBooleanPreference('ShowExternalJSXWarning', false); | |
| const app_dir = app.activeDocument.path; | |
| function main() { | |
| if (!documents.length) { | |
| alert('Error\nOpen a document and try again'); | |
| return; | |
| } |
| ls -dir | % {[pscustomobject]@{Name=$_; Size=(ls $_ -rec -file | measure Length -Sum | select -exp sum)}} | sort -prop size -desc |
| function tableToCSV(elm="table",name="table") { | |
| if (!(elm instanceof HTMLElement)) elm = document.querySelector(elm); | |
| const data = new Array(...elm.getElementsByTagName("tr")).map(row => '"' + new Array(...row.querySelectorAll("td,th")).map(cell => cell.textContent.trim()).join('","') + '"').join("\n"); | |
| const csv_blob = new Blob([data], {type: "text/csv"}); | |
| const url = URL.createObjectURL(csv_blob); | |
| let tmp = document.createElement("a"); | |
| tmp.download = name + ".csv"; | |
| tmp.href = url; |
| function Start-Pomodoro { | |
| param( | |
| [int]$work=20, | |
| [int]$break1=5, | |
| [int]$break2=15, | |
| [Alias("Silent")][switch]$mute=$false | |
| ) | |
| $yellow = "Yellow"; if ($env:WT_SESSION) {$yellow = "DarkYellow"} | |
| clear |
I hereby claim:
To claim this, I am signing this object:
| Write-Host $env:username 'Recycle Bin size' -fore cyan | |
| $sid = (gwmi win32_useraccount | ? {$_.name -eq $env:username}).SID | |
| $sm = (ls -recurse ("C:\`$recycle.bin\$sid") -force -EA SilentlyContinue | measure -property length -sum).sum | |
| Write-Host ($sm / 1GB) "GB" | |
| Write-Host ($sm / 1MB) "MB" | |
| Write-Host " " | |
| pause |