Skip to content

Instantly share code, notes, and snippets.

View marinomeneghel's full-sized avatar

Marino Meneghel marinomeneghel

  • ProtonMail
View GitHub Profile
@marinomeneghel
marinomeneghel / mac-keyboard-mappings
Last active March 22, 2021 14:49
Remap IT / EU keyboard to US
# Keyboard custom mapping
# backslash to enter
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000031,"HIDKeyboardModifierMappingDst":0x700000028}]}'
# tilde to backslash
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000031}]}'
# EU backslash to tilde
dutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
#
# Installing few nice tools to start using a new mac
#
#!/bin/zsh
echo "***********************************"
echo "Installing homebrew"
echo "***********************************"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.provider.ContactsContract;
import java.util.ArrayList;
import java.util.List;