- Virtualenv
- HTMLBeautify
- SideBarEnhancements
- ZPL Format
To add a size limit to time machine backups. Backup size should be around 1.5x the hard drive size… so 500gb > 750gb > 750 x 1024 = 768000
sudo defaults write /Library/Preferences/com.apple.TimeMachine MaxSize 102400
tree -v --charset utf-8 -I venv
brew install python3
If you upgrade python the links in virtualenv’s will break. They can be deleted and recreated.
If you are in a directory with a virtual envirenment called venv this should work:
# find broken links
find venv/ -type l
# delete broken links
find venv/ -type l -delete
# create new links
virtualenv venv
Nice color scheme - http://color.smyck.org
https://cleanbrowsing.org/filters
Somehow the home and end buttons on the apple keyboard don’t go to the right place :)
This will fix it -
# create/edit the key bindings file
cd ~/Library
mkdir KeyBindings
sudo nano ~/Library/KeyBindings/DefaultKeyBinding.Dict
# paste in and save. You will need to restart your mac
{
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home
"^\UF72B" = moveToEndOfDocument:; // ctrl-end
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end
"$\U007F" = deleteWordBackward:;
}
More options can be found in this gist
Firefox 52 is the last version working with Oracle EBS Forms. Download it here.
The latest version of java is currently working well. You can download here.
EBS Forms needs to be allowed as a safe site in Java.
On the first use when logging in in Firefox click “activate java” when prompted, and then allow popups when prompted.
If you are typing the same phrase in terminal over and over and over it may be handy to create an alias name…
# edit bash profile
nano ~/.bash_profile
# for catelena and newer
nano ~/.zprofile
# add in the alias
# Aliases - remember no spaces at equals sign
alias act="source venv/bin/activate"
alias dact="deactivate"
alias ip="ifconfig | grep 'inet '"
alias gc="git add . && git commit -m "
# save
# restart terminal or reload
source ~/.bash_profile
Edit your bash profiel to include these two lines -
# edit file
nano ~/.bash_profile
# add these lines and save.
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
on run {input, parameters}
set SelectedItems to input
tell application "Finder" to set fileName to name of first item of SelectedItems
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:fileName}
tell newMessage
repeat with aFile in SelectedItems -- the loop through all selected items
make new attachment with properties {file:aFile}
end repeat
end tell
open newMessage
get newMessage
end tell
return input
end run
To run a website localy from any server
cd to/path/of/site
python3 -m http.server 8001 # or any port #
Navigate to 0.0.0.0:8001
Install iterm2
Install Oh My Zsh
Edit Alias for Oh My Zsh
nano ~/.zshrc
# reload settings
source ~/.zshrc