Skip to content

Instantly share code, notes, and snippets.

Setup Mac OS X

This is just a personal script to help me remember all the steps required to setup a new osx machine in their correct order. I do not advise you to follow this guide if you don't know what you're doing.

Setup

1. Run software update

@lurimendes
lurimendes / agnoster-light.zsh-theme
Created March 4, 2016 04:58 — forked from zoomix/agnoster-light.zsh-theme
agnoster zsh light theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@lurimendes
lurimendes / sublime_text_2_perfect_key_bindings
Created May 27, 2016 05:50 — forked from koulmomo/sublime_text_2_perfect_key_bindings
Perfect Sublime Text 2 Key Bindings. Tab to skip out of brackets, braces, parentheses, and quotes/quotations but still be able to indent
[
// Move out of common paired characters () and [] with `Tab`
{
"keys": ["tab"],
"command": "move",
"args": {"by": "characters", "forward": true},
"context": [
// Check if next char matches (followed by anything)
{ "key": "following_text", "operator": "regex_match", "operand": "(:?`|\\)|\\]|\\}).*", "match_all": true },
// ...and that there is a paid character before it on the same
@lurimendes
lurimendes / keyrepeat.shell
Created May 27, 2016 06:18 — forked from kconragan/keyrepeat.shell
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
#3C3836,#282828,#786E64,#EBDBB2,#504945,#EBDBB2,#96BB3B,#FB4934
@lurimendes
lurimendes / eth-contract.sol
Created May 5, 2018 22:24
First ETH smart contract
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'TheFinger' token contract
//
// Deployed to : 0xce4E352aC8F003E08388F741ff43Ef4faA1c06b9
// Symbol : DFINGER
// Name : DFinger Token
// Total supply: 100000000
// Decimals : 18
0x{
"linkReferences": {},
"object": "608060405234801561001057600080fd5b5060405160208061087c83398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055508060ff166002816100ec91906100f3565b5050610146565b81548183558181111561011a57818360005260206000209182019101610119919061011f565b5b505050565b61014391905b8082111561013f5760008082016000905550600101610125565b5090565b90565b610727806101556000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635c19a95c14610067578063609ff1bd146100aa5780639e7b8d61146100db578063b3f98adc1461011e575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573fffffffffffffffffffffffffffffffffffffff
@lurimendes
lurimendes / VS Code User Settings
Created June 14, 2018 09:56
VS Code Settings
// Place your settings in this file to overwrite the default settings
{
"vim.easymotion": true,
"vim.easymotionMarkerBackgroundColor": "#F9B42A",
"vim.easymotionMarkerHeight": "20",
"vim.easymotionMarkerYOffset": -1,
"vim.hlsearch": true,
"vim.leader": ",",
"vim.insertModeKeyBindings": [
{