Skip to content

Instantly share code, notes, and snippets.

View ugjka's full-sized avatar
❄️
It is cold plunge season!

Uģis Ģērmanis ugjka

❄️
It is cold plunge season!
View GitHub Profile
@ugjka
ugjka / routerhosts.go
Last active November 2, 2025 18:32
routerhosts.go
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"net/http"
"os"
"os/exec"
@ugjka
ugjka / newyearspam.py
Last active January 2, 2025 21:41
newyearspam.py
see: https://github.com/ugjka/kline
see: https://github.com/ugjka/kline
package main
import (
"bytes"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"net/textproto"
package main
import (
"bytes"
_ "embed"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
@ugjka
ugjka / ircwebradio.go
Last active January 1, 2025 22:34
IRC text-to-speech http mp3 server.
// IRC text-to-speech server
// needs ffmpeg and piper-tts (https://github.com/rhasspy/piper)
//
// configuration? change the constants and build
package main
import (
"bytes"
"fmt"
"io"
@ugjka
ugjka / welcome.go
Created January 18, 2021 15:31
System status Kdialog greeter
package main
import (
"bytes"
"fmt"
"log"
"os/exec"
"strings"
"syscall"
"time"
@ugjka
ugjka / fb_on_desktop.js
Last active December 6, 2020 18:24
Facebook mobile on desktop
// ==UserScript==
// @name Facebook Mobile on Desktop
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Enhancments for FB mobile on Desktop!
// @author https://github.com/ugjka/
// @match https://m.facebook.com/*
// @grant none
// ==/UserScript==
@ugjka
ugjka / MainActivity.java
Created October 23, 2019 14:13 — forked from saurabhalang/MainActivity.java
How to convert any Website into Android App in Android Studio?
// add this code to the onCreate method of your MainActivity.java File
String url ="URL" ; // Replace URL with your website address like this "http://google.com"
WebView view = (WebView) this.findViewById(R.id.webView);
view.getSettings().setJavaScriptEnabled(true);
view.loadUrl(url);
@ugjka
ugjka / radio.go
Last active July 5, 2019 22:29
I little script to play my favourite radio stations without buffer latency (uses MPV for playback)
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
"net/http"
"os"