Skip to content

Instantly share code, notes, and snippets.


Christophe Trefois Trefex

View GitHub Profile

Disable OS X mouse acceleration

Download ExactMouse tool from and put it to "Always On".

Overwrite the mouse tracking speed

defaults write -g 7
Trefex /
Last active Mar 6, 2018
Update Microsoft Office on Yosemite

Install can't continue because SyncServiceAgent is still running


launchctl unload Library/LaunchAgents/

After the update,

Trefex /
Last active Aug 29, 2015
Windows 8 configurations
  • To move iTunes backup to another HDD, create a Junction in an elevated prompt
mklink /J "%APPDATA%\Apple Computer\MobileSync\Backups" "F:\_Backups\iPhoneBackups"
  • Move the Outlook data folder to another HDD / partition, also create a Junction in an elevated prompt
mklink /J "C:\Users\Christophe\AppData\Local\Microsoft\Outlook" "F:\_Backups\Outlook"
apt-get update
apt-get upgrade
apt-get install git
dpkg -i puppetlabs-release-trusty.deb
apt-get update
apt-get install puppet
puppet config print manifest --section master --environment production
cd /etc/puppet/
Trefex /
Created Dec 18, 2014
Windows 7 Enterprise Auto-Logon

Enable Auto Login on Windows 7 when it is not available via control userpassword2

Open regeditand navigate to HKLM/Software/Microsoft/Windows NT/Winlogon.

Make sure to set the following keys

DefaultDomainName = YourDomain (REG_SZ)
DefaultUserName = YourUser (REG_SZ)
DefaultPassword = YourPassword (REG_SZ)
Trefex /
Last active Oct 31, 2019
My HTML signature for MacOS X Yosemite

To set a nice HTML signature in, you have to find the location of your signature in the Library folder.

For me, in Yosemite, the path was ~/Library/Mobile\ Documents/com\~apple\~mail/Data/MailData/Signatures.

The path could also be ~/Library/Mail/V7/MailData/Signatures (for Catalina)

The signature is located in a file that has the following pattern: ubiquitious_*.mailsignature

The HTML signature can be found below. Adopt to your liking. The file must be locked or Mail will overwrite.

View MacOS X - Yosemite

Reverted SMB to use SMB1 as I saw many connection issues with SMB2.

echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf
smbd restart

LaTeX setup

  • Installed MacTex as a base system
  • Installed atom-latex which uses latexmk in the background
Trefex /
Last active Jan 23, 2020
How I setup my VPS on ovh-com

Config is 2vCPU, 2 GB RAM and running Debian 7 on 64 bits.

apt-get update
apt-get upgrade
apt-get install htop

Add localadmin user

adduser localadmin
apt-get install sudo