Test text
def process_bonk_file(input_file="bonk.txt", output_file="bonk_fixed.csv"): | |
try: | |
with open(input_file, 'r') as f: | |
lines = f.readlines() | |
except FileNotFoundError: | |
print(f"Error: Could not find {input_file}") | |
return | |
except Exception as e: | |
print(f"Error reading file: {e}") | |
return |
#!/bin/bash | |
# Check if script is run as root | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
exit 1 | |
fi | |
# Common CD/DVD device locations | |
DEVICE_LOCATIONS=( |
import requests | |
import os | |
from twilio.rest import Client | |
from datetime import datetime | |
# OpenWeatherMap API configuration | |
OWM_API_KEY = "YOUR_OPENWEATHERMAP_API_KEY" | |
ZIP_CODE = "YOUR US ZIP CODE" | |
COUNTRY_CODE = "US" |
#Use this to install unity on Fedora | |
sudo dnf install openssl openssl-libs GConf2 | |
sudo sh -c 'echo -e "[unityhub]\nname=Unity Hub\nbaseurl=https://hub.unity3d.com/linux/repos/rpm/stable\nenabled=1\ngpgcheck=1\ngpgkey=https://hub.unity3d.com/linux/repos/rpm/stable/repodata/repomd.xml.key\nrepo_gpgcheck=1" > /etc/yum.repos.d/unityhub.repo' | |
# For beta hub, use this | |
#sudo sh -c 'echo -e "[unityhub-beta]\nname=Unity Hub Beta\nbaseurl=https://hub.unity3d.com/linux/repos/rpm/unstable\nenabled=1\ngpgcheck=1\ngpgkey=https://hub.unity3d.com/linux/repos/rpm/unstable/repodata/repomd.xml.key\nrepo_gpgcheck=1" > /etc/yum.repos.d/unityhub_beta.repo' | |
sudo dnf check-update | |
sudo dnf install unityhub |
First another little disclaimer; this guide partially works for me but it might not work for you. eGPU's seem to be an unwanted stepchild in terms of support. I wish anyone luck!
Also for some expectation setting, hotswap isn't a thing. I don't think that Linux will ever have hotswap eGPU support so if you want to plug or unplug the GPU, power down first. Being fair, this doesn't really work great on Windows either.
I also still have issues with the Ethernet port on the core X, and still have issues with all but 1 USB port (top left). Happy for advice on any fixes.
using Microsoft.AspNetCore.Authentication; | |
using Auth0.AspNetCore.Authentication; | |
using Microsoft.AspNetCore.Mvc.RazorPages; | |
namespace MyApplication.Pages | |
{ | |
public class LoginModel : PageModel | |
{ | |
public async Task OnGet(string redirectUri, string? invitation = null, string? organization = null) | |
{ |
import csv | |
import subprocess | |
from datetime import datetime | |
import time | |
def run_speedtest(): | |
# Run speedtest-cli and capture output | |
process = subprocess.Popen(['speedtest-cli', '--csv'], stdout=subprocess.PIPE) | |
output, error = process.communicate() |
First a little disclaimer; this guide partially works for me but it might not work for you. eGPU's seem to be one of the most fragile setups imagineable from a software standpoint. I wish anyone luck!
Also for some expectation setting, hotswap isn't a thing. I don't think that Linux will ever have hotswap eGPU support so if you want to plug or unplug the GPU, power down first.
I also still have issues with the Ethernet port on the core X, still have issues with all but 1 USB port (top left), still have issues running the laptop WITHOUT the core x connected. Happy for advice on any fixes.
import psutil | |
import time | |
from pynput.keyboard import Key, Controller | |
time.sleep(10) | |
def check_if_process_running(process_keywords): | |
try: | |
# Check every process cause this wasn't working.... idk why | |
for proc in psutil.process_iter(): |