Skip to content

Instantly share code, notes, and snippets.

View sva-mk's full-sized avatar
👨‍🎓

Merlin Kling sva-mk

👨‍🎓
View GitHub Profile
@jazerix
jazerix / counter.ps1
Last active May 27, 2023 12:02
Latex Character count with spaces. Depends on the texcount library for Latex.
function countLatex{
param([string] $file)
$c = texcount .\$file.tex -char | select-string "Letters in text";
$c = [int]$c.Line.substring(17);
$w = texcount .\$file.tex | select-string "Words in text";
$w = [int]$w.Line.substring(15)
$total = $c + $w;
return $total;
}
@wwerner
wwerner / grafana-postgres-datasource.yml
Created April 1, 2021 10:02
Example grafana datasource provisioning for postgreSQL
apiVersion: 1
datasources:
- name: Postgres
type: postgres
url: localhost:5432
database: grafana
user: grafana
secureJsonData:
password: "Password!"