Skip to content

Instantly share code, notes, and snippets.

View cppxaxa's full-sized avatar
💭
(Additional user cppxaxa-1)

Christ Prateek Prasanna Xaxa cppxaxa

💭
(Additional user cppxaxa-1)
View GitHub Profile
@cppxaxa
cppxaxa / telegram-bot-server-updated.py
Created December 10, 2023 11:36
A Telegram chatbot that responds back from a GGUF LLM Intel neural chat running on local host machine with some buttons for list items
# llama_cpp_python==0.2.20
# requests==2.23.0
# timeout_decorator==0.5.0
import json
import re
import uuid
import requests
import time
import urllib
@cppxaxa
cppxaxa / telegram-bot-server.py
Created December 9, 2023 21:24
A Telegram chatbot that responds back from a GGUF LLM Intel neural chat running on local host machine
# llama_cpp_python==0.2.20
# requests==2.23.0
import json
import requests
import time
import urllib
from llama_cpp import Llama
@cppxaxa
cppxaxa / expose-kubernetes-dashboard.sh
Created October 5, 2023 04:25
A script to expose the microk8s kubernetes-dashboard and bind the clusterIP:443 with host 443 port on all IPs
clusterIp=$(microk8s kubectl get service kubernetes-dashboard -n kube-system -o yaml | grep clusterIP: | awk '{print $2}')
echo "Found clusterIp=$clusterIp, now $clusterIp:443 port is forwarded to 0.0.0.0:443"
redir --lport 443 --laddr=0.0.0.0 --cport 443 --caddr=$clusterIp
@cppxaxa
cppxaxa / ahk_record.ahk
Created May 28, 2022 07:45 — forked from aqzlpm11/ahk_record.ahk
Recording script for AHK
;-----------------------------------
; Macro Recorder v2.1 By FeiYue
;
; Description: This script records the mouse
; and keyboard actions and then plays back.
;
; F1 --> Record(Screen) (CoordMode, Mouse, Screen)
; F2 --> Record(Window) (CoordMode, Mouse, Window)
; F3 --> Stop Record/Play
; F4 --> Play LogFile