Skip to content

Instantly share code, notes, and snippets.

Christophe Trefois Trefex

Block or report user

Report or block Trefex

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 sierraos.md

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 Mar 6, 2018
Update Microsoft Office on Yosemite
View ms_yose_update.md

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 Aug 29, 2015
Windows 8 configurations
View win8-config.md
  • 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"
View AWS_Puppet.md
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 Dec 18, 2014
Windows 7 Enterprise Auto-Logon
View win7autologon.md

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 May 15, 2019
My HTML signature for MacOS X Yosemite Mail.app
View mac_signature.md

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/V6/MailData/Signatures

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 Config.md

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 Jul 4, 2019
How I setup my VPS on ovh-com
View OVH_README.md

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
You can’t perform that action at this time.