All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login

All New Register Login
's Avatar

swee

Joined 10 months ago

Recently created
Least recently created
Recently updated
Least recently updated
All gists 88
swee's Avatar

swee / e.sh

0 likes
0 forks
1 files
Last active 2 months ago
1 #!/bin/bash
2 for f in *.m4a; do
3 base="$(basename "$f" .m4a)"
4 ffmpeg -i $f -b:a 32k ${base}.mp3
5 done
swee's Avatar

swee / nginx-on-licorice.conf

0 likes
0 forks
3 files
Last active 3 months ago
1 server {
2 listen 80;
3 listen [::]:80;
4 listen 443 ssl;
5 listen [::]:443 ssl;
6 listen 443 quic;
7 listen [::]:443 quic;
8 server_name play.swee.codes;
9 location / {
10 proxy_pass http://100.116.171.11;
swee's Avatar

swee / Image to IRC

0 likes
0 forks
1 files
Last active 3 months ago
Converts an image to half-block ascii art with IRC color codes. Uses some code from SCIFv1
1 from PIL import Image
2 import requests
3 from io import BytesIO
4 imraw = requests.get("https://cdn.swee.codes/charimgs/altsweecat5.png").content
5 im = Image.open(BytesIO(imraw)).convert("RGBA")
6 if im.width > 64:
7 new_height = int((64 / im.width) * im.height)
8 im = im.resize((64, new_height))
9 px = im.load()
10 sz = im.size
swee's Avatar

swee / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 $ falkon
2 ProfileManager: Updated UserAgent per domain settings
3 Fatal: The following paths were searched for Qt WebEngine resources:
4 /share/qt6/resources
5 /share/qt6
6 /usr/bin
7 /home/swee/.falkon
8 but could not find any.
9 You may override the default search paths by using QTWEBENGINE_RESOURCES_PATH environment variable.
swee's Avatar

swee / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 swee @ 󰌢 candycorn
2  >m< $ glmark2
3 =======================================================
4 glmark2 2023.01
5 =======================================================
6 OpenGL Information
7 GL_VENDOR: Intel
8 GL_RENDERER: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
9 GL_VERSION: 4.6 (Compatibility Profile) Mesa 25.2.5
10 Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
swee's Avatar

swee / helium.desktop

0 likes
0 forks
1 files
Last active 4 months ago
1 [Desktop Entry]
2 Version=1.0
3 Name=Helium
4 GenericName=Web Browser
5 Comment=Access the Internet
6 Exec=/opt/helium/chrome %U
7 StartupNotify=true
8 Terminal=false
9 Icon=helium
10 Type=Application
swee's Avatar

swee / gist:0753c15f23d84148ae7fc17c1c3e670e

0 likes
0 forks
1 files
Last active 5 months ago
1 FATAL EXCEPTION: DefaultDispatcher-worker-2
2 Process: org.mozilla.fennec_fdroid, PID: 29882
3 java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.tasks.Task.addOnCompleteListener(org.mozilla.fenix.components.PlayStoreReviewPromptController$$ExternalSyntheticLambda0)' on a null object reference
4 at org.mozilla.fenix.components.PlayStoreReviewPromptController.tryPromptReview(PlayStoreReviewPromptController.kt:81)
5 at org.mozilla.fenix.components.ReviewPromptController$2.invokeSuspend(ReviewPromptController.kt:33)
6 at org.mozilla.fenix.components.ReviewPromptController$2.invoke(ReviewPromptController.kt:13)
7 at org.mozilla.fenix.components.ReviewPromptController.promptReview(ReviewPromptController.kt:156)
8 at org.mozilla.fenix.home.HomeFragment$onStart$2.invokeSuspend(HomeFragment.kt:45)
9 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
10 at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:115)
swee's Avatar

swee / gist:a1ad0e5ac8af4047b45979316906c8e2

0 likes
0 forks
1 files
Last active 5 months ago
1 swee @ candycorn
2 ~/Git/fastfile-cb UwU $ spectacle -bfno e.png
3 IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG"
4 libva info: VA-API version 1.22.0
5 libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
6 libva info: va_openDriver() returns -1
7 libva info: Trying to open /usr/lib/dri/i965_drv_video.so
8 libva info: Found init function __vaDriverInit_1_22
9 libva info: va_openDriver() returns 0
10 kpipewire_vaapi_logging: VAAPI: Intel i965 driver for Intel(R) Kaby Lake - 2.4.1 in use for device "/dev/dri/renderD129"
swee's Avatar

swee / irc.rs

0 likes
0 forks
1 files
Last active 5 months ago
1 mod avatar;
2 mod queue;
3 use tokio::net::TcpStream;
4 use tokio;
5
6 pub async func session(name, host, username, password, nosystem) -> Result<(), Box<dyn std::error::Error>> {
7 if let Ok(stream) = TcpStream::connect(host).await {
8 println!("[IRC, {}] CONNECT", name);
9 stream.write_all(format!("PASS {}:{}\r\n", username, password).as_bytes()).await?;
10 }
swee's Avatar

swee / inittab

0 likes
0 forks
1 files
Last active 6 months ago
1 # /etc/inittab
2
3 ::sysinit:/sbin/openrc sysinit
4 ::sysinit:/sbin/openrc boot
5 ::wait:/sbin/openrc default
6
7 # Set up a couple of getty's
8 tty1::respawn:/sbin/agetty tty1 linux
9 tty2::respawn:/sbin/agetty --autologin opengist tty2 linux
10 tty3::respawn:/sbin/getty 38400 tty3
Newer Older

Powered by Opengist ⋅ Load: 173ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文