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
# Some useful OSX aliases for your .zshrc or .bash_aliases | |
alias np='Open /Applications/TextEdit.app' # Open the notepad for easier copy-pasting from terminal. | |
alias py='python3' | |
alias pyp='pip3' | |
alias pep8='autopep8 -i -a -a -a' | |
alias sp='python3 ~/RCF/sp.py' |
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
#!/usr/bin/python3 | |
import os | |
def crawlAndPullRepos(): | |
issue_dirs = [] | |
for dirname, subdirs, filenames in os.walk(os.getcwd()): | |
if '.git' in subdirs: | |
print("\nDirectory " + dirname + " is a git repository.") | |
output = os.system("cd " + dirname + " && git pull") |
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
on run {input, parameters} | |
-- RCF: Quick Action for folders in Finder.app | |
-- Opens a new terminal window within the passed folder. | |
-- V2: Opens for every selected folder. | |
if (exists input) then | |
repeat with folderPath in input | |
set POSIXPath to POSIX path of folderPath |
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
on run {input, parameters} | |
-- RCF: Quick Action for folders in Finder.app | |
-- Opens a new terminal window within the passed folder. | |
set POSIXPath to POSIX path of input | |
set newDirCmd to ("cd " & POSIXPath & " && clear") | |
(* Your script goes here *) | |
tell application "Terminal" |
NewerOlder