- Space Mono (my favorite one)
- Fira Code (my second favorite one 😄)
- MonoLisa
- Inconsolata
- Apercu Mono
- Input Mono
- Gintronic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "alt+up", | |
"command": "cursorMove", | |
"when": "textInputFocus", | |
"args": { | |
"to": "up", | |
"by": "line", | |
"value": 2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { StyleSheet, Text, TouchableOpacity, Linking } from 'react-native'; | |
interface PhoneLinkProps { | |
phoneNumber: string; | |
} | |
export const PhoneLink: React.FC<PhoneLinkProps> = ({ phoneNumber }) => { | |
const handlePress = () => { | |
Linking.openURL(`tel:${phoneNumber}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
run '~/.tmux/plugins/tpm/tpm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A generic retry function (handy for various use cases). | |
*/ | |
const retry = async <T>(fn: () => Promise<T>, maxRetries = 3, delay = 1000): Promise<T> => { | |
let retries = 0; | |
while (retries < maxRetries) { | |
try { | |
return await fn(); | |
} catch (error) { |
Apple's iCloud isn't able to sync the Finder preferences. However, you can copy/paste the following two plist files to your new Mac.
Copy the following two files to your other Mac computer
~/Library/Preferences/com.apple.dock.plist
~/Library/Preferences/com.apple.finder.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on |
First, make sure you have homebrew installed.
Then, in your terminal, run brew install postgresql@14.9
Login into psql postgres
You will need to have Python 2.7 (and not v3 to avoid incompatibilities with some libraries). To check what’s your default Python version, type python -V
in your terminal.
brew install pyenv
pyenv install 2.7.18
pyenv global 2.7.18 # set Python 2.7 as the global default one
NewerOlder