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
-- Sort files on the desktop into folders | |
-- Function to sort files | |
on sortFiles() | |
tell application "Finder" | |
set desktopPath to path to desktop as string | |
set desktopFolder to folder desktopPath | |
-- Get list of files on the desktop | |
set desktopFiles to every item of desktopFolder |
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
#!/bin/bash | |
# List of directories to clean | |
directories=( | |
# Caches | |
"/Library/Caches:Yes" | |
"$HOME/Library/Caches:No" | |
# Logs | |
"$HOME/Library/Logs:No" | |
"/var/log:Yes" |
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
#!/bin/bash | |
# Ask if Wi-Fi is needed | |
read -p "Do you need to connect to a Wi-Fi network? (y/n): " need_wifi | |
if [[ "$need_wifi" =~ [yY](es)* ]]; then | |
wifi-menu | |
fi | |
# Ask for hostname, username, and password |
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
# You have to install ZSH shell first, then neofetch to make it work | |
autoload -Uz vcs_info | |
autoload -Uz compinit && compinit | |
autoload virtualenv | |
zstyle ':vcs_info:*' enable git svn | |
setopt PROMPT_SUBST | |
zstyle ':vcs_info:git*' formats "→ (%b) " | |
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ↠ ' |