Skip to content

Instantly share code, notes, and snippets.

View matsest's full-sized avatar

Mats Estensen matsest

View GitHub Profile
@matsest
matsest / touchscreen-off.sh
Last active April 24, 2022 21:40
disable-lenovo-x1-touchpad-on-startup
#!/bin/bash
ID=$(/usr/bin/xinput list --id-only "Wacom Pen and multitouch sensor Finger")
if [[ $ID ]]; then
/usr/bin/xinput --disable $ID
fi
@matsest
matsest / build-and-deploy.sh
Created November 21, 2018 21:38
A simple build and deploy script too publish my site https://github.com/matsest/matsest.github.io
#!/bin/bash
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
echo -e "\033[0;32mRemoving old files...\033[0m"
rm -r public/*
# Build the project.
echo -e "\033[0;32mBuilding new site...\033[0m"
hugo --minify
@matsest
matsest / pandoc-setup.md
Last active May 7, 2021 10:08
pandoc-latex-setup

Pandoc Setup

Description

A simple setup for Sublime to jot down notes in Markdown and compile a nice PDF with LaTeX through Pandoc conversion.

Why? Markdown is quick and easy to write, LaTeX is more of a hassle. But LaTeX produces nice PDFs. Using Pandoc, you can utilize the best features of both worlds by writing in markdown and compiling PDFs with LaTeX, with a simple one-click in your editor. This works fairly well for simple documents and pandoc supports most of Markdown syntax, in addition to supporting a range of variables set in a YAML meta block. Did I mention that it also supports writing LaTeX-style math and other LaTeX-commands in your Document? (Like this: $e^{i\pi}+1 = 0$ )

The output PDF is a A4 paper with 12pt font and 1 inch margins. It uses fancyhead to style the header and footer with date, pagenumbering and title/author. (This can be changed in your Pandoc-settings)

@matsest
matsest / keybase.md
Last active November 18, 2018 20:20

Keybase proof

I hereby claim:

  • I am matsest on github.
  • I am matsest (https://keybase.io/matsest) on keybase.
  • I have a public key ASCKiorQnOyu-YB3yJ8nC0468Gz8X0QbjTQCbq1WL2ZrZAo

To claim this, I am signing this object: