This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Run as ./python2pdf.sh $(ls *.py) | |
# For Debian the requirements are | |
# sudo apt install pdftk python3-pygments texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra | |
outdir=${HOME}/tmp | |
mkdir ${outdir} | |
allpdfs="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# POWERSHELL | |
Update-ExecutionPolicy Unrestricted | |
# Install Chocolatey | |
if ((Get-Command "choco" -ErrorAction SilentlyContinue) -eq $null) | |
{ | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
} | |
function Invoke-RefreshEnvironment { |
OlderNewer