Skip to content

Instantly share code, notes, and snippets.

import pinyin
import csv
from itertools import islice
mydict = {}
with open('code.csv', newline='', encoding='utf-8-sig')as f1:
rows = csv.reader(f1, delimiter=',')
for row in rows:
key = row[0]
mydict[key] = row[1]
@wittyfilter
wittyfilter / synology-scheduled-tasks.md
Created November 9, 2021 10:04 — forked from amercier/synology-scheduled-tasks.md
Turn leds on/off on Synology DiskStation

Synology scheduled tasks

Usage

Go to Control Panel / Task Scheduler and add the content of these scripts as root scripts.

Leds