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
#!/usr/bin/env python | |
# Quick and dirty script to scrub pip requirements files of duplicate requirements | |
import sys | |
import fileinput | |
from requirements.requirement import Requirement | |
seen = set() |
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
tell application "iTunes" | |
set selectedTracks to selection | |
repeat with i from 1 to (length of selectedTracks) | |
if class of item i of selectedTracks is not shared track then | |
tell item i of selectedTracks to set {loc} to {get location} | |
if loc is missing value then | |
tell application "iTunes" | |
delete item i of selectedTracks | |
end tell | |
end if |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import os, time | |
import os.path | |
for path, dirs, files in os.walk('./'): | |
dups = {} | |
for x in files: | |
name, ext = os.path.splitext(x) | |
fullpath = path+'/'+x | |
(mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime) = os.stat(fullpath) | |
if not name in dups: |