Skip to content

Instantly share code, notes, and snippets.

@lurepheonix
lurepheonix / .eslintignore
Created June 30, 2023 15:49
TS: linting, formatting configs for T3 stack
# https://eslint.org/docs/latest/use/configure/ignore
### SHARED BETWEEN .gitignore, .dockerignore, .prettierignore, .eslintignore ###
## TEMPLATE ##
# Tests, analytics, reports
coverage/
reports/
.nyc_output
@lurepheonix
lurepheonix / .bashrc
Last active January 27, 2023 13:40
Debian server sample configuration
# 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'
codesign --force --deep --sign - /path/to/your/app/YourApp.app
# 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`
# 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
@lurepheonix
lurepheonix / intefaces
Created May 5, 2022 09:30
Virtualbox bridge configuration
# /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