Skip to content

Instantly share code, notes, and snippets.

View wizofe's full-sized avatar
😬
Focusing

Ioannis Valasakis wizofe

😬
Focusing
View GitHub Profile
@wizofe
wizofe / python2pdf.sh
Last active August 15, 2019 15:04 — forked from smoitra87/python2pdf.sh
Convert python files to pdf and concatenate all pdfs. Requires pygmentize, pdflatex and pdftk
#!/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=""
@wizofe
wizofe / DevBoxStarter.ps1
Last active December 9, 2022 10:57 — forked from myty/DevBoxStarter.ps1
DevBoxStarter
# 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 {