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
View php-cs-fixer_install_script.ps1
write-host "Hello. This script will install php-cs-fixer for you." -foregroundcolor DarkGreen -backgroundcolor white
#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
tairun / howto php-cs-fixer on
Last active October 10, 2017 11:47
Get php beautification in atom-beautify working on windows in three easy steps.
View howto php-cs-fixer on

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:


  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 / gist:ede2eb8568b2bd26a348
Created April 5, 2015 16:23
New DebianBase Customization Script
View gist:ede2eb8568b2bd26a348
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
View cond_glos.tex
View mwe_with_same_errors.tex
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
tairun / MWE_auto_eq
Created May 14, 2013 11:34
Semi automatic to manual equation legend in LaTeX with glossaries
View MWE_auto_eq
\newglossary[slg]{symbols}{slm}{sbl}{List of Symbols}
% IMPORTANT -----------------------------------------------------------------------------------
% add [makeindex.exe -s "" -t "%tm.slg" -o "%tm.slm" "%tm.sbl"] to your compile run ------