Skip to content

Instantly share code, notes, and snippets.

Luc Kury tairun

Block or report user

Report or block tairun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gh4w_feedback.md
View php-cs-fixer_install_script.ps1
#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
@tairun
tairun / howto php-cs-fixer on windows.md
Last active Oct 10, 2017
Get php beautification in atom-beautify working on windows in three easy steps.
View howto php-cs-fixer on windows.md

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

View atom-sync-settings.md

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 / gist:ede2eb8568b2bd26a348
Created Apr 5, 2015
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
\documentclass{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{etoolbox}
\usepackage{lipsum}
\usepackage{glossaries}
\newglossary[slg]{symbols}{slm}{sbl}{Symbolverzeichnis}
\makeglossaries
View mwe_with_same_errors.tex
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage{array}
\usepackage{amsmath}
@tairun
tairun / MWE_auto_eq
Created May 14, 2013
Semi automatic to manual equation legend in LaTeX with glossaries
View MWE_auto_eq
\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 ------
%----------------------------------------------------------------------------------------------
You can’t perform that action at this time.