Skip to content

Instantly share code, notes, and snippets.

View tairun's full-sized avatar
🏠
Working from home

Luc Kury tairun

🏠
Working from home
View GitHub Profile
@tairun
tairun / MWE_auto_eq
Created May 14, 2013 11:34
Semi automatic to manual equation legend in LaTeX with glossaries
\documentclass[leqno]{scrartcl}
\usepackage{lipsum}
\usepackage[]{glossaries}
\newglossary[slg]{symbols}{slm}{sbl}{List of Symbols}
% IMPORTANT -----------------------------------------------------------------------------------
% add [makeindex.exe -s "%tm.ist" -t "%tm.slg" -o "%tm.slm" "%tm.sbl"] to your compile run ------
%----------------------------------------------------------------------------------------------
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage{array}
\usepackage{amsmath}
\documentclass{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{etoolbox}
\usepackage{lipsum}
\usepackage{glossaries}
\newglossary[slg]{symbols}{slm}{sbl}{Symbolverzeichnis}
\makeglossaries
@tairun
tairun / gist:ede2eb8568b2bd26a348
Created April 5, 2015 16:23
New DebianBase Customization Script
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install i3 conky git chromium-browser python-pip zsh vim
sud apt-get remove firefox cheese gnome-mines gnome-mahjongg gnome-sudoku gnome-orca aisleriot

https://atom.io/packages/sync-settings

  1. Open Sync Settings configuration in Atom Settings.
  2. Create a new personal access token which has the gist scope.
  3. Copy the access token to Sync Settings configuration.
  4. Create a new gist and save it.
  5. Copy the gist id (last part of url after the username) to Sync Settings configuration.
@tairun
tairun / howto php-cs-fixer on windows.md
Last active October 10, 2017 11:47
Get php beautification in atom-beautify working on windows in three easy steps.

How to get php-cs-fixer working on windows

There ist this package called atom-beautify for the atom text editor. It can, amongst many different languages, also beautify php. But if will not work out of the box on windows (see screenshot below). no php-cs-fixer.gif

Manual Install

  1. Install the php-cs-fixer.phar file and add it to your path.
    Go to this github page and download the php-cs-fixer.phar file. Next you need to add it to your path. Check cmd echo %PATH% to see which folders are being watched. I chose C:\Windows. Important: Now you need to remove the ending .phar or atom won't find the file.

  2. Install php and add it to your path.
    Official php windopws download-page. Grab the VC11 x86 Non Thread Safe package. See here why: https://stackoverflow.com/questions/1623914

#Hello
write-host "Hello. This script will install php-cs-fixer for you." -foregroundcolor DarkGreen -backgroundcolor white
$PSVersionTable.PSVersion
#functions and variables
if ($env:TEMP -eq $null) {
$env:TEMP = Join-Path $env:SystemDrive 'temp'
}
if (![System.IO.Directory]::Exists($env:TEMP)) {
Write-Host "Creating temporary download directory in env:TEMP" -foregroundcolor DarkBlue -backgroundcolor white