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
#!bin/bash | |
for pid in `lsof +L1 | grep deleted | awk '{print $2}' | uniq` | |
do | |
for fdid in `ls -l /proc/${pid}/fd | grep deleted | awk '{print $9}'` | |
do | |
> "/proc/${pid}/fd/${fdid}" | |
done | |
done |
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
# Enable automated data access under https://postmaster.live.com/snds/auto.aspx | |
import datetime | |
import requests | |
import shutil | |
DATA_URL = 'https://postmaster.live.com/snds/data.aspx?key=xx' | |
for i in range(90): | |
date = datetime.datetime.now() + datetime.timedelta(-i) |
NewerOlder