This file contains hidden or 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
# https://eslint.org/docs/latest/use/configure/ignore | |
### SHARED BETWEEN .gitignore, .dockerignore, .prettierignore, .eslintignore ### | |
## TEMPLATE ## | |
# Tests, analytics, reports | |
coverage/ | |
reports/ | |
.nyc_output |
This file contains hidden or 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
# add to end of file | |
export PATH=/usr/lib/cargo/bin:$PATH | |
bind '"\e[A": history-search-backward' | |
bind '"\e[B": history-search-forward' | |
alias cat='batcat --style=plain' | |
alias l='exa' | |
alias la='exa -a' |
This file contains hidden or 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
codesign --force --deep --sign - /path/to/your/app/YourApp.app |
This file contains hidden or 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
# Creating Windows 10/11 Installation media on a Mac | |
## 1. Prepare your USB drive | |
1.1. Identify your USB drive name. | |
`diskutil list` | |
1.2. Format disk as GPT, where X is your drive number and WIN is the new device name. | |
`diskutil eraseDisk MS-DOS WIN GPT /dev/diskX` | |
1.3. Remove EFI volume from it, otherwise Windows installer (which is stupid) will complain that it can't install Windows on this USB and fail on install. | |
`diskutil eraseVolume "Free Space" EFI diskXs1` |
This file contains hidden or 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
# backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# restore | |
cat DATABASE_SQL | pv | docker exec -i CONTAINER /usr/bin/mysql -u MYSQL_USER --password=MYSQL_PASSWORD DATABASE |
This file contains hidden or 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
# /etc/network/interfaces | |
# target VM ip: 192.168.1.100 | |
# address - target VM IP | |
# netmask - subnet mask | |
# broadcast - network range | |
# network - subnet | |
# gateway - router | |
iface enp0s3 inet static |