Skip to content

Instantly share code, notes, and snippets.

View aroskamp's full-sized avatar

Alexander Roskamp aroskamp

  • Friedelsheim, Germany
View GitHub Profile
@aroskamp
aroskamp / pdfshrink.sh
Created May 12, 2023 10:53
PDF-Shrink via ghostscript
#!/bin/bash
# A function that uses ghostscript to compress a pdf file inplace
function pdfshrink(){
inputFile=$1
outputFile=$(basename -s ".pdf" $1)-compressed.pdf
cp $inputFile $outputFile;
gs -dNOPAUSE \
-dBATCH \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
@aroskamp
aroskamp / opensuse-rescue-system.md
Created December 7, 2022 09:46
openSUSE Rescue System: Configuration and Common Actions

openSUSE Rescue System

Configure network via dhcp

dhcpcd eth0

Start SSH-Deamon

@aroskamp
aroskamp / emacs-useful-extensions.md
Last active July 15, 2020 06:47
Emacs: Useful extensions

Package Manager

Include in $HOME/.emacs

(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))

Ledger-Mode

Download from MELPA

@aroskamp
aroskamp / powerline.md
Last active June 26, 2020 14:09
Powerline für ksh / vim

https://github.com/powerline/powerline

Install Packages (OpenSuSE)

sudo zypper install powerline powerline-docs powerline-fonts vim-plugin-powerline

Set powerline_daemon to start on boot in YAST-Run-Configurations

Powerline-Configuration

GIT

Konfiguration

git config --global user.name "Alexander Roskamp"
git config --global user.email email@domain.com
git config --global color.ui true