Skip to content

Instantly share code, notes, and snippets.

View Trefex's full-sized avatar

Christophe Trefois Trefex

View GitHub Profile

Disable OS X mouse acceleration

Download ExactMouse tool from https://steelseries.com/downloads and put it to "Always On".

Overwrite the mouse tracking speed

defaults write -g com.apple.mouse.scaling 7
@Trefex
Trefex / ms_yose_update.md
Last active March 6, 2018 02:37
Update Microsoft Office on Yosemite

Install can't continue because SyncServiceAgent is still running

Solution

launchctl unload Library/LaunchAgents/com.microsoft.LaunchAgent.SyncServicesAgent.plist

After the update,

@Trefex
Trefex / win8-config.md
Last active August 29, 2015 14:16
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"
@Trefex
Trefex / AWS_Puppet.md
Last active August 29, 2015 14:13
AWS_Puppet
apt-get update
apt-get upgrade
apt-get install git
wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
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
Trefex / win7autologon.md
Created December 18, 2014 10:28
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
Trefex / mac_signature.md
Last active October 31, 2019 13:23
My HTML signature for MacOS X Yosemite Mail.app

To set a nice HTML signature in Mail.app, 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.

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
Trefex / OVH_README.md
Last active January 23, 2020 20:11
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