Questions tagged [macos]
macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers.
60
questions
5
votes
1
answer
154
views
Bash manual page selection menu (version 3)
This is an interactive script for selecting and reading the manual pages from the terminal command line. This is the 3rd version of this script. If you want to see the evolution of this script, follow ...
3
votes
0
answers
54
views
Bash manual page selection menu (version 2)
This is update to a previously asked question Bash manual page selection menu. This script generates a menu for the user to select which manual page he/she would like to read.
...
6
votes
2
answers
137
views
A replacement for OSX's path_helper
I was having problems setting my path the way I wanted, I turned to Apple's path_helper but found it appends system dirs to the beginning of the path. I found someone had made a start on a replacement ...
4
votes
1
answer
73
views
Selective Time Machine backup deletion
Time Machine is a useful backup service for Mac, but deleting multiple backups is cumbersome. This script allows mass deletion of unwanted backups while allowing specified "important" backups to ...
2
votes
1
answer
3k
views
Listening to IOKit events with Swift 3
This is my first program in Swift/Xcode. The full source code and xcode project is available in GitHub.
The part I would like reviewed is IOKeyEventMonitor.swift.
...
2
votes
1
answer
119
views
Random password generator sh script
Yesterday, I was bored and decided to write a random password generator. At first it used numerous temporary files, changed that by using arrays.
This was written on OS X and should work on Linux ...
11
votes
4
answers
540
views
Simple CodeReview Questions Notifications for OSX
Some days ago, I figured out that I'd like to get a notification every time a new question is asked here. So, I've made a really simple Python script, which uses ...
2
votes
2
answers
88
views
Opening programs from a simple spot
This is a simple program that opens programs from a simple spot:
...
4
votes
2
answers
145
views
MacPorts - Quick Install Script
I wrote this script to automatically install the relevant version of MacPorts.
It's supposed to be used in a fashion similar to the official installer for HomeBrew.
FYI: The real reason that I ...
5
votes
2
answers
1k
views
Mounting a disk with the DiskArbitration framework
I have the following code that makes use of the DiskArbitration framework to mount a disk to its default location:
...
1
vote
1
answer
1k
views
Python implementation of Netcat, new design
I've made a simple netcat in Python and would appreciate any advice/opinions of how I've implemented it.
test.py:
...
1
vote
1
answer
509
views
Resolving the path to a Bash script
I wrote a function to resolve the full path to the current Bash script, and I'm wondering if it's SOLID:
...
4
votes
1
answer
91
views
Search and merge split-archive backup parts
I wrote some code which searches parts of a split-archive backup (it's an Android backup, I used flashfire to backup) and rejoins them. As you can easily see, I've achieved this by ...
4
votes
1
answer
334
views
Auto move files to a sub folder with Ruby
I started writing a script to handle my file downloads in osx because they quickly pile up and it gets time consuming to do this manually by drag and drop. I am looking forward to get some feedback.
<...
1
vote
2
answers
182
views
Lower the volume of my computer over time in Python
I wrote a program to gradually lower the volume of my computer when I go to sleep so I can fall asleep with TV or music on. This was my first time using argparse and I feel like there should be a ...