This file contains 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 os | |
import subprocess | |
import requests | |
# Replace with your GitHub token | |
GITHUB_TOKEN = '' | |
# Replace with your private Git server's HTTPS URL | |
PRIVATE_GIT_SERVER = 'https://user_name:pat@domain/user_name/' | |
GIT_SERVER_USERNAME = 'john' |
This file contains 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/python | |
import argparse | |
import asyncio | |
import datetime | |
from multiprocessing import Pool | |
async def write(i): | |
while True: | |
print(f"{i} {str(datetime.datetime.now())}") |
This file contains 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
function OpenSections() { | |
console.log('Opening Sections...'); | |
var index = 0; | |
var sectionPush = document.querySelectorAll('.js-panel-toggler') | |
var sectionHidden = document.querySelectorAll('.panel--content-wrapper--1g5eE') | |
sectionHidden.forEach((item) => { | |
const hidden = item.getAttribute('aria-hidden'); | |
if (hidden == "true") { | |
sectionPush[index].click(); | |
} |
This file contains 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 | |
fileName="/home/john/speed-log/speed_log.txt" | |
echo "$(speedtest-cli --csv --csv-delimiter ';')" >> $fileName |
This file contains 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 json | |
inp = "" | |
out = "" | |
with open(inp, "r", encoding="utf-8") as f: | |
with open(out, "w", encoding="utf-8") as f2: | |
json.dump(json.load(f), f2, indent=2, ensure_ascii=False) |