Skip to content

Instantly share code, notes, and snippets.

View N4M3Z's full-sized avatar

Martin Zeman N4M3Z

  • ProtonMail, CERN
View GitHub Profile
#!/bin/bash
# Copyright (c) 2011 Josh Schreuder
# http://www.postteenageliving.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@N4M3Z
N4M3Z / Package Control.sublime-settings
Last active August 29, 2015 14:16
Sublime Text Packages (OS X)
{
"installed_packages":
[
"Advanced CSV", // Efficiently format, edit, arrange, and evaluate cells in CSV files
"Alignment", // Easy alignment of multiple selections and multi-line selections
"BracketHighlighter", // Bracket and tag highlighter for Sublime Text [https://packagecontrol.io/packages/BracketHighlighter]
"Character Table", // Provide a Character Table to lookup and insert any Unicode Character
"CMake", // CMake.tmLanguage
"Color Highlighter", // Underlays selected hexadecimal colorcodes (like "#FFFFFF", "rgb(255,255,255)", "white", etc.) with their real color
"Colorcoder", // Semantic highlight for Sublime Text
@N4M3Z
N4M3Z / brew.install.cask.sh
Last active August 29, 2015 14:16
Install Caskroom (OS X Homebrew)
#!/bin/bash
##
# Homebrew Cask
# @url http://caskroom.io
# @brief Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to OS X applications and large binaries alike.
#
brew install caskroom/cask/brew-cask
# Homebrew cask settings
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
@N4M3Z
N4M3Z / brew.install.sh
Last active August 29, 2015 14:16
Install Homebrew (OS X)
#!/bin/bash
##
# Homebrew: The Missing Package Manager for OS X (http://brew.sh)
# Standard install: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#
xcode-select --install
cd ~/Developer
git clone https://github.com/Homebrew/homebrew Homebrew
ln -s ~/Developer/Homebrew/bin/brew /usr/local/bin/brew
@N4M3Z
N4M3Z / truecrypt_fix.sh
Last active August 29, 2015 14:16 — forked from otzoran/truecrypt_fix.bash
Fix Homebrew complaints on FUSE for OS X libraries
#!/usr/bin/env bash
# Author: Ori Tzoran, based on idea and gist by aaronzirbes (see evolution below)
# Tested on Mac OS X 10.10.2 (14C109)
set -e
## verify root runs this
[[ $(id -u) == 0 ]] || { echo need root; exit 1; }
#set -vx
@N4M3Z
N4M3Z / trim_enabler.sh
Last active August 29, 2015 14:16 — forked from return1/trim_enabler.txt
Trim Enabler for OS X
##
# Trim Enabler for OS X
#
# Forked from https://gist.github.com/return1/4058659
# Original version by Grant Parnell: https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/
#
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
#
# Alternative to http://www.groths.org/trim-enabler-3-0-released/
# Method behind this madness described: http://forums.macrumors.com/showthread.php?t=1409151&page=4
@N4M3Z
N4M3Z / brew.install.quicklook.sh
Last active September 6, 2020 00:21
Install Quick Look Plugins (OS X Caskroom)
#!/bin/sh
##
# Quick Look Plugins
# @url http://caskroom.io
# @brief Quick Look Plugins installed via Homebrew Cask
#
# For a comprehensive overview of Quick Look plugins look here: https://github.com/sindresorhus/quick-look-plugins
#
brew cask install qlcolorcode # Preview source code files with syntax highlighting
brew cask install qlstephen # Preview plain text files without a file extension. Example: README, CHANGELOG, etc.
@N4M3Z
N4M3Z / brew.install.brews.sh
Last active August 29, 2015 14:16
Install Packages (OS X Homebrew)
#!/bin/sh
brew install astyle
brew install autoconf
brew install autojump
brew install automake
brew install boost --c++11 --with-icu4c --with-mpi
brew install boost149
brew install brew-cask
brew install brew-gem
brew install brew-pip

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false