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
| #!/bin/bash | |
| # Configure UTF-8 locale for mosh server (run as root) | |
| set -e | |
| [[ $EUID -ne 0 ]] && echo "Please run as root" && exit 1 | |
| [[ -f /etc/os-release ]] && . /etc/os-release || { echo "Cannot detect OS"; exit 1; } | |
| echo "==> Configuring UTF-8 locale for mosh on $ID..." | |
| case "$ID" in |
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
| #!/bin/bash | |
| # ROS 2 Auto-Install Script for Ubuntu | |
| # Supports Ubuntu 22.04 (Humble) and 24.04 (Jazzy) | |
| # Check if running with bash | |
| if [ -z "$BASH_VERSION" ]; then | |
| echo "Error: This script must be run with bash" | |
| echo "Usage: bash autoinstall_ros2.sh" | |
| echo " or: ./autoinstall_ros2.sh" |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>FPS Test</title> | |
| <link href="https://fonts.googleapis.com/css2?family=Orbitron&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| margin: 0; | |
| overflow: hidden; |
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
| #!/usr/bin/env python3 | |
| import requests | |
| import time | |
| import sys | |
| from colorama import init, Fore, Style | |
| # Initialize colorama for Windows and auto-reset colors | |
| init(autoreset=True) | |
| # URL to "ping" (using HTTP, as requested) |
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 spidev | |
| import re | |
| import time | |
| from PIL import Image | |
| from periphery import GPIO | |
| from flask import Flask, request, redirect, url_for, render_template_string, flash | |
| from werkzeug.utils import secure_filename | |
| import threading | |
| import os | |
| import sys |
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
| #write a rtsp dummy dubug purpose server and log all the connection in sperate time format filenames, with /1 as path, listen 0.0.0.0:554, serves a yellow 720p screen. best do not install any addition apts and pips, able to quit program with control-c and runs on windows, log and print all raw socket response and request data | |
| import socket | |
| import threading | |
| import datetime | |
| import os | |
| import sys | |
| import time | |
| import random | |
| import struct | |
| import base64 |
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 re | |
| import sys | |
| import os | |
| import glob | |
| def srt_vtt_to_text(file_path): | |
| txt_file = os.path.splitext(file_path)[0] + '.txt' | |
| try: | |
| with open(file_path, 'r', encoding='utf-8') as file: |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "net/http" | |
| "sync" | |
| "time" |
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
| id_rsa:$sshng$6$16$51abbdb90f62c1b60d256c1bcd40a857$1894$6f70656e7373682d6b65792d7631000000000a6165733235362d63747200000006626372797074000000180000001051abbdb90f62c1b60d256c1bcd40a857000000100000000100000197000000077373682d727361000000030100010000018100d2f191a9d9180efb2cc5c2b776e47faf4b39223940518c02f1bb33060898c4ff3fe67f7c1d696b44d0cb1ac936b9e2a8a067393a4d1abc6d7844c11ecfbf9c053d91541f40971586c394b360c0e038d0f3bc458af0c86a87f0015bc60f883feb339939e5eabbbc77c12a8f7d79f090b436ecea9d0ec0f15631daf66a66ffdd60e480729bf579afe1a15a762bc086a9659b8cfced152cafc7716089918fd8e7d7265a740a8f5748bb726b93d11b928a0d12815094213ca5c04817cf276a79fe5706a8f7b35dc00dfd639f0d18960c3424852d3defc7625e47b4e963d3d31dfcc6bcbd796d1970887e170888d9c82d0c58ad36a6a1bb422347a795c1df921fba93aeed39fccb959da6ed368f0ecd75e9afca21e863f3d6e27507549c98c6c077484e8c129c07429e427f65dbf0d906803da922ebed409d9847e243d361202560dc24b440f309e233a1d4c458923c6cbfe3d7d6b88e1b9b0b7cdf8c81efe460a5dc09eff75d9a9ac26f9c7b69b00ec49959b98109839902069bb8b8d6037f4e66f7000 |
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 json | |
| import subprocess | |
| import datetime | |
| import time | |
| MAX_SPD=80 | |
| MIN_SPD=22 | |
| ipmi_host="192.168.2.145" | |
| ipmi_pass="xxxxxx" |
NewerOlder