Skip to content

Instantly share code, notes, and snippets.

View quaintdev's full-sized avatar
🏠
Working from home

quaintdev

🏠
Working from home
View GitHub Profile
@ddh0
ddh0 / voice_chat.py
Created May 12, 2024 03:40
Make Siri speak for your LLM, using macOS `say` and easy-llama
import easy_llama as ez
from subprocess import run
USER = ez.utils.USER_STYLE
BOT = ez.utils.BOT_STYLE
DIM = ez.utils.DIM_STYLE
RESET = ez.utils.RESET_ALL
def say(something: str) -> None:
run(['say', something])
Llama3 = ez.Model(
'Meta-Llama-3-8B-Instruct-q8_0.gguf',
@ioqy
ioqy / tutorial.md
Last active July 20, 2025 09:44
Free Let's Encrypt certificate without opening any ports

With this tutorial you will get a valid SSL certificate from Let's Encrypt without having to open any incoming ports. You can use the certificate to enable HTTPS with your reverse proxy (Apache, Nginx, Caddy, ...) or other self hosted service. Since it only uses acme.sh which is a shell script it should work on everything that runs linux.

The tutorial was written for and tested with Duck DNS and deSEC, but you can (in theory, because I did sadly encounter a few bugs/incompatibilities here and there) use every of the 150+ DNS provider supported by acme.sh (there is also a second page at the end!). If you want to use a wildcard certificate I would recommend deSEC because Duck DNS currently has a bug/incompatibility with acme.sh.

If you want to use another DNS provider you can skip right to 2. Install acme.sh, but need to change the parameter --dns YOURDNS in all the commands and set all necessary variables yourself according to t

remove gnome apps

sudo dnf remove gnome-tour gnome-abrt gnome-calculator gnome-calendar gnome-maps gnome-weather \
    rhythmbox gnome-contacts totem gnome-logs gnome-photos gnome-clocks gedit gnome-system-moniter \
    gnome-user-docs gnome-screenshot gnome-remote-desktop

remove fedora chromium policies

sudo dnf remove fedora-chromium-config
@ankesh-kumar
ankesh-kumar / FlutterDBHelperModelClass.dart
Last active May 21, 2024 06:24
sqlite database helper file flutter
class ModelClass{
int id;
String stCol1="";
String stCol2="";
ModelClass({
this.id,
this.stCol1,
this.stCol2});
@prologic
prologic / LearnGoIn5mins.md
Last active November 4, 2025 04:32
Learn Go in ~5mins
@j-un
j-un / spotify.html
Last active November 3, 2025 11:30
[Hugo] Shortcode for Spotify embed code
<!--
Parameters:
type - (Required) album / track / playlist / artist
id - (Required) Target ID
width - (Optional) width
height - (Optional) height
-->
{{ if .IsNamedParams }}
<iframe src="https://open.spotify.com/embed/{{ .Get "type" }}/{{ .Get "id" }}"
@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@caseywatts
caseywatts / 0-self-publishing.md
Last active September 22, 2025 12:54
Self-Publishing via Markdown
@iqbalmineraltown
iqbalmineraltown / sprintf.dart
Last active March 15, 2022 04:40
Simple string pattern replacement function in dartlang. I use this for Flutter localization
/**
* MIT License
*
* Copyright (c) 2019 Muhammad Iqbal
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is