Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recreation #9

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions DStroyer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import os
import time
import functools

"""
Usage:
1. Copy the script to the folder that you would like to scan.
2. Input "y" and the naughty MacOS files will perish.
"""

filelist = []

def clear(detection, path="."):
# dir_list = os.listdir(path) # No longer used because of its slowness. (AVG: 8s for each scan.)
# for i in dir_list:
# abspath = os.path.join(os.path.abspath(path), i)
# if os.path.isfile(abspath):
# if i.startswith(detection):
# print("Detected:", abspath)
# os.remove(abspath)
# if os.path.isdir(abspath):
# clear(detection, path=abspath)

for fileordir in os.scandir(path):
if fileordir.is_dir():
clear(detection, fileordir.path)
i = fileordir.path
abspath = os.path.join(os.path.abspath(path), i)
if os.path.isfile(abspath):
if i.startswith(detection):
print("Detected:", abspath)
filelist.append(i)

if __name__ == '__main__':
ret = input(f"Are you sure to delete all MacOS .DS_Store/._* files? [y/n] ")
if ret == 'y':
starttime = time.time()
clear(".DS_Store", path=".")
clear("._", path=".")
endtime = time.time()
print("Starting deleting...")
for delfile in filelist:
try:
os.remove(delfile)
print(f"Deleted: {delfile}")
except Exception as e:
print(f"Failed: {e}")
print(f"Time Cost: {endtime-starttime:.3f}")
print("Deletion completed.")
Binary file added Grimoire of Chuishen/HEIC/IMG_0114.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0115.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0117.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0118.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0119.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0120.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0127.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0128.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0129.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0130.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0134.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0135.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0136.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0137.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0138.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0139.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0140.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0141.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0142.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0143.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0144.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0145.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0147.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0148.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0149.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0152.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0162.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0163.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0164.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0167.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0170.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0171.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0178.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0179.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0182.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0183.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0185.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0186.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0187.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0188.heic
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0189.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0191.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0192.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0193.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0194.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0195.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0196.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0197.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/HEIC/IMG_0198.HEIC
Binary file not shown.
Binary file added Grimoire of Chuishen/IMG_0116.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Grimoire of Chuishen/IMG_0121.mov
Binary file not shown.
Binary file added Grimoire of Chuishen/IMG_0146.mov
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions Grimoire of Chuishen/c.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sys
from heic_image_converter.Converter import Converter

# EX: > python [path/to/convert.py](0) [path/to/sourceDir](1) --to(2) [saveAs](3) --dest(4) [path/to/saveDir](5) -del
if __name__ == "__main__":
ImgConverter = Converter(sys.argv[1:])
ImgConverter.convert_files()
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# History of the Blog

## Around 2019 https://zzxdzld.github.io

In 2019 I used GitHub Pages to launch my very first website, which is very primitive and only contains one HTML file. I was still a pupil.

## 2020 https://lengku.cf

I forgot what I put on it, presumably something like [Du](https://github.com/Lafcadia/Du).

## 2022 https://chuishen.cf

It's a brand new start.

I tried to start creative writing which was unsuccessful but spiritually inspiring. The main body of work of that period is Silver Tree Romance (a sci-fi novella, not done) and Construction At 13.

## 2023 https://chuishen.xyz (current blog)

Using a paid domain does not only mean that I'm more serious about the blog this time but also indicates that I am back in the development field. Also, this blog witnesses the creation of [Team OblivionOcean](https://github.com/OblivionOcean).
Loading