All Questions
11
questions
2
votes
3
answers
149
views
2
votes
1
answer
127
views
Moving files from a directory to multiple with names same as file
I have a folder containing thousands of files and directories. I
would like to move all the files that are not contained in a sub
directory into a directory and name it the file name, while ...
3
votes
1
answer
44
views
SSH autokiller for connections from other systems
I was messing around with ssh and decided to write a python program that scans for any connections that aren't from the system, then terminates them. It works well ...
1
vote
2
answers
702
views
Drawing graphics and text using macOS Core Graphics
I have a small python project, which draws graphics and text onto a graphics context using MacOS's Core Graphics APIs. The idea is to make it easy for the user to write a few short lines, in order to ...
8
votes
4
answers
3k
views
Reporting new USB storage devices on Linux and macOS with Python
Synopsis:
I wanted something for macOS (and Linux; maybe eventually Windows) that would simply wait for the user to connect a storage device and automatically select, or otherwise output the ...
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:
...
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
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 ...
3
votes
1
answer
199
views
Looking for identical files (or directories) in a filesystem
Dilemma
The code below is in its infancy, but for now is an effort to crawl my entire file system and find duplicates whilst adhering to a variety of exclusion criteria. My current strategy for ...
5
votes
1
answer
3k
views
Python script using distutils to copy files on a Mac
I have a Python script I have written to copy files to a mounted Windows SMB share on a Mac.
...