Skip to content

Instantly share code, notes, and snippets.

View magdesign's full-sized avatar
💭
slow to respond, since I am cycling...

magdesign magdesign

💭
slow to respond, since I am cycling...
View GitHub Profile
$ uv run ollama_dl.py llama3.2
[10/03/24 23:56:50] INFO Downloading to:
library-llama3.2
[10/03/24 23:56:51] INFO Already have
library-llama3.2/params-56b
b8bd477a5.json
INFO Already have
library-llama3.2/template-9
66de95ca8a6.txt
INFO Already have
@magdesign
magdesign / log.log
Created August 10, 2024 18:16
reticulum arch64 appimage build error
$ npm run dist
> [email protected] dist
> npm run build && python setup.py build && electron-builder --publish=never
> [email protected] build
> vite build
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
~/Downloads/kdeltachat $ cmake -B build .
Installing in /usr/local. Run /home/me/Downloads/kdeltachat/build/prefix.sh to set the environment for kdeltachat.
CMake Error at /usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:2535 (message):
qt_generate_foreign_qml_types() is only available in Qt 6.
Call Stack (most recent call first):
/usr/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:132 (include)
/usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
/usr/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency)
/usr/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:39 (_qt_internal_find_qt_dependencies)
/usr/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:50 (include)
@magdesign
magdesign / sxmo_hook_battery.sh
Created February 26, 2024 18:21
low battery warning, goes into ~/.config/sxmo/hooks/sxmo_hook_battery.sh
GNU nano 7.2 .config/sxmo/hooks/sxmo_hook_battery.sh
#!/bin/sh
# configversion: d7a31b6b01150a2b1ad3e57f556a5de6
load_data() {
data="$(upower -i "$1" | grep . | sed -e 's|^ \+||' -e 's|: \+|:|')"
type="$(printf "%b" "$data" | grep -m1 -v : | sed -e 's|^ \+||')"
}
data_get() {
@magdesign
magdesign / bonsai_tree.json
Created February 12, 2024 17:54
powerbutton_four
[
{
"type": "event",
"event_name": "power_pressed",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
@magdesign
magdesign / kdeglobals
Created January 31, 2024 13:23
file to set darktheme for kde apps on linuxmobile
[ColorEffects:Disabled]
ChangeSelectionColor=
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
Enable=
IntensityAmount=0.1
IntensityEffect=2
@magdesign
magdesign / squeekboard.md
Created January 25, 2024 19:07
Squeekboard Keyboard modify/tab key

Squeekboard Keyboard modify/tab key

you can modify the keyboard by yourself, following will just add tab key to first page

mkdir -p ~/.local/share/squeekboard/keyboards/terminal/
cd ~/.local/share/squeekboard/keyboards/terminal/
wget https://gist.githubusercontent.com/magdesign/33aa088987d0df044eb75e5a263ca76d/raw/e06dd7535f90037c4c93e91ecf0e6e39afd78611/us.yaml

if you need umlauts use:

@magdesign
magdesign / ovpn_howtoadd_cli.md
Created January 25, 2024 13:53
add a openvpn configuration file in cli

How to add a .ovpn config file via cli in linux:

sudo nmcli connection import type openvpn file vpnfile.ovpn

How to set the username:

sudo nmcli connection modify "${vpnname}" +vpn.data username="${myname}"

How to set password:

@magdesign
magdesign / us.yaml
Last active January 26, 2024 09:06
terminal squeekboard with tab key on basic
---
outlines:
default: { width: 35.33, height: 43 }
action: { width: 59, height: 43 }
altline: { width: 52.67, height: 43 }
wide: { width: 59, height: 43 }
spaceline: { width: 140, height: 43 }
special: { width: 44, height: 43 }
small: { width: 59, height: 32 }
#!/bin/sh
# __ _
# / _| ___ _ __ (_)_ __
# | |_ / _ \ '_ \| \ \/ /
# | _| __/ | | | |> <
# |_| \___|_| |_|_/_/\_\
#
#
# Make firefox real mobile, find all the info here:
# https://forums.puri.sm/t/mobile-friendly-firefox-customizations-for-librem-5/20313/61