Just Some Useful Shell Tips and Snippets
For Various Things 08 Aug 2023
skypattern.jp
Try out Browser-based pattern drafting software for clothing designers.
Build custom patterns using mathematical formulas and geometric primitives.
Make your free account now!
Using OBS Virtual Camera in Discord
sudo codesign --remove-signature "/Applications/Discord.app/Contents/Frameworks/Discord Helper (Renderer).app"
sudo codesign --sign - "/Applications/Discord.app/Contents/Frameworks/Discord Helper (Renderer).app"
Using OBS Virtual Camera in Zoom
sudo codesign --remove-signature "/Applications/zoom.us.app"
sudo codesign --sign - "/Applications/zoom.us.app"
Find app listening on given port
lsof -i :<port number>
To kill the app use kill <PID> with <PID> substituted with the PID number returned by the command above.
Show the MacOSX App Switcher on all Monitors
defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock
Generate a random uuid
uuidgen
to generate 10 of them
for run in {1..10}; do uuidgen; done
Enable OBS Virtual Cameras for Discord/Zoom on Mac OSX
For Discord:
sudo codesign --remove-signature "/Applications/Discord.app/Contents/Frameworks/Discord Helper (Renderer).app"
sudo codesign --sign - "/Applications/Discord.app/Contents/Frameworks/Discord Helper (Renderer).app"
For Zoom:
sudo codesign --remove-signature "/Applications/zoom.us.app"
sudo codesign --sign - "/Applications/zoom.us.app"
Mount a usb drive in linux
sudo mkdir /mnt/usb-drive
sudo chown <myusername>:<myusername> /mnt/usb-drive/
sudo fdisk -l # to find the device name. For Example "/dev/sde1"
sudo mount -o uid=<myusername>,gid=<myusername> <devicename> /mnt/usb-drive
# to unmount
sudo umount /mnt/usb-drive