diff --git a/AriaNg_config/AriaNgConfig.json b/AriaNg_config/AriaNgConfig.json new file mode 100644 index 0000000..24bc5a1 --- /dev/null +++ b/AriaNg_config/AriaNgConfig.json @@ -0,0 +1,29 @@ +{ + "language": "zh_Hans", + "theme": "light", + "title": "${downspeed}, ${upspeed} - ${title}", + "titleRefreshInterval": 5000, + "browserNotification": false, + "rpcAlias": "", + "rpcHost": "192.168.68.101", + "rpcPort": "6800", + "rpcInterface": "jsonrpc", + "protocol": "http", + "httpMethod": "POST", + "secret": "UDNURVJY", + "extendRpcServers": [], + "globalStatRefreshInterval": 1000, + "downloadTaskRefreshInterval": 1000, + "swipeGesture": true, + "dragAndDropTasks": true, + "rpcListDisplayOrder": "recentlyUsed", + "afterCreatingNewTask": "task-list", + "removeOldTaskAfterRetrying": false, + "confirmTaskRemoval": true, + "includePrefixWhenCopyingFromTaskDetails": true, + "showPiecesInfoInTaskDetailPage": "le10240", + "afterRetryingTask": "task-list-downloading", + "displayOrder": "default:asc", + "fileListDisplayOrder": "default:asc", + "peerListDisplayOrder": "default:asc" +} \ No newline at end of file diff --git a/script/bitwarden-remove-folders.py b/script/bitwarden-remove-folders.py new file mode 100755 index 0000000..d9cc3e7 --- /dev/null +++ b/script/bitwarden-remove-folders.py @@ -0,0 +1,33 @@ +# BitWarden tool to delete collections using bw CLI tool +# forked from: https://gist.github.com/voice1/58159602be2d9ef6cdb72b8c2224ca72 + +# requirements: need to install "sh" python module: +# +# $ pip3 install sh +# + +# You must install the bitwarden CLI tool (https://bitwarden.com/help/article/cli/#download-and-install) +# Create your session as per the instructions on the download page. +# You can replace your session key and use the following to process the results. + +import sh +import json + +#session_key = "" +session_key = "IcBa9jFuHUv46Psk2nowv7Le3v7h1l0e+I0SuNDVovNtPbLrsUCuRQ7eJKr0G6nWR3piWM4vAT735kWByAlrgA==" + +# Sets this instance to use the provided session. +bw = sh.bw.bake('--session', session_key) + +collections = bw('list', 'collections') + +# The output provided is a string, luckily we can convert this to JSON +collections = json.loads(collections.stdout) + +# Delete all the collections.. Add logic here if you want only a subset. +for collection in collections: + if collection.get('id'): + printf("removing collection {collection['id']} {collection['name']} {collection['organizationId']}") + bw("delete", "org-collection", collection['id'], "--organizationid", collection["organizationId"]) + + print('done') diff --git a/script/folders b/script/folders new file mode 100644 index 0000000..f01b9a2 --- /dev/null +++ b/script/folders @@ -0,0 +1 @@ +[{"object":"folder","id":"c062bcfd-96ee-4da3-8364-ad0f002e61c9","name":"passwd"},{"object":"folder","id":"8df1e2e5-c9f7-430c-867d-ae130026208a","name":"passwd"},{"object":"folder","id":"94b4ea5d-e42d-485a-b533-ad9a0068b2d8","name":"二级恢复"},{"object":"folder","id":"068095df-74e6-4f95-8ca8-ae130026208a","name":"二级恢复"},{"object":"folder","id":"7c11dc0a-46b5-4a44-ad3b-ad74006073e4","name":"凝思"},{"object":"folder","id":"29e69bdd-0598-49e5-a30e-ae130026208a","name":"凝思"},{"object":"folder","id":"c82c2af0-47e9-4ed4-99e8-ad730032f29b","name":"手机app"},{"object":"folder","id":"b5a89a64-8e46-4bff-b930-ae130026208a","name":"手机app"},{"object":"folder","id":"97cf744e-6c63-4d41-96f3-ae0c0023b59e","name":"游戏"},{"object":"folder","id":"4dac4b3b-074f-4e83-bb30-ae130026208a","name":"游戏"},{"object":"folder","id":"9551ebcf-72ff-4288-9102-ae0c0023a863","name":"登录"},{"object":"folder","id":"fa88e9fd-92cf-4a4c-9177-ae130026208a","name":"登录"},{"object":"folder","id":"3bf82b71-3db2-4129-bae8-ad7400606c1b","name":"私网"},{"object":"folder","id":"daba3941-ed73-4d20-b16a-ae130026208a","name":"私网"},{"object":"folder","id":"707741d9-a513-4df1-a630-ad0a001f4db3","name":"邮箱"},{"object":"folder","id":"e3855e2f-c3c5-469e-82d2-ae0c0023af45","name":"邮箱"},{"object":"folder","id":"d843d9d0-052e-4666-929a-ae130026208a","name":"邮箱"},{"object":"folder","id":"bf1bd437-33e8-493d-9a4f-ae130026208a","name":"邮箱"},{"object":"folder","id":null,"name":"No Folder"}] \ No newline at end of file diff --git a/script/jbl.sh b/script/jbl.sh old mode 100644 new mode 100755