Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Zeman N4M3Z

  • ProtonMail, CERN
View GitHub Profile
View NASA Picture-Of-The-Day Wallpaper Script
#!/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 Aug 29, 2015
Sublime Text Packages (OS X)
View Package Control.sublime-settings
{
"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 Aug 29, 2015
Install Caskroom (OS X Homebrew)
View brew.install.cask.sh
#!/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 Aug 29, 2015
Install Homebrew (OS X)
View brew.install.sh
#!/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 Aug 29, 2015 — forked from otzoran/truecrypt_fix.bash
Fix Homebrew complaints on FUSE for OS X libraries
View truecrypt_fix.sh
#!/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 Aug 29, 2015 — forked from return1/trim_enabler.txt
Trim Enabler for OS X
View trim_enabler.sh
##
# 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 Sep 6, 2020
Install Quick Look Plugins (OS X Caskroom)
View brew.install.quicklook.sh
#!/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 Aug 29, 2015
Install Packages (OS X Homebrew)
View brew.install.brews.sh
#!/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
View gist:fc834b011c47a265e169

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
You can’t perform that action at this time.