Convert SSH config to Ananta hosts csv.
positional arguments:
csvfile Path to the Ananta hosts csv.
optional arguments:
--ssh SSH SSH config file. (default: ~/.ssh/config)
--user USER default ssh user
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
| import csv | |
| import json | |
| import zoneinfo | |
| import icalendar | |
| from datetime import datetime | |
| with open("center_fitness_data.csv", "r") as csvf, open("sleep.ics", "w") as icsf: | |
| calendar = icalendar.Calendar() | |
| calendar.add("version", "2.0") |
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
| --- a/wikiteam3/utils/monkey_patch.py | |
| +++ b/wikiteam3/utils/monkey_patch.py | |
| @@ -1,4 +1,5 @@ | |
| import ssl | |
| +import sys | |
| import time | |
| from typing import Optional | |
| import warnings | |
| @@ -26,7 +27,30 @@ def mod_requests_text(requests: requests): # type: ignore | |
| else: |
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
| <html> | |
| <body> | |
| <a href="javascript:(function()%7Bjavascript%3A(function()%20%7B%0A%20%20var%20url%20%3D%20prompt(%22Enter%20the%20original%20URL%3A%22)%3B%0A%20%20if%20(url)%20%7B%0A%20%20%20%20window.open(%22https%3A%2F%2Farchive.org%2Fsearch%3Fquery%3Doriginalurl%3A%5C%22%22%20%2B%20encodeURIComponent(url)%20%2B%20%22%5C%22%22)%3B%0A%20%20%7D%0A%7D)()%3B%7D)()%3B">search original url</a> | |
| </body> | |
| </html> |