Skip to content

Instantly share code, notes, and snippets.

View albert-tomanek's full-sized avatar
🌳

Albert Tomanek albert-tomanek

🌳
View GitHub Profile
https://lemmy.bolha.one/
https://o.opnxng.com/
# single instance mode #
https://old.lemmings.world/
https://old.kerala.party/
https://oldlemmy.justin.rs/
https://old.ttrpg.network/
https://old.lemmyonline.com/
@mfd
mfd / teams.sh
Last active May 14, 2025 18:47
Download any video from Microsoft Teams, SharePoint and OneDrive
2teams() {
NOW=$(date +"%Y-%m-%d_%H%M")
if [ ! -z $2 ] ; then
echo $NOW"_"$2.mp4
ffmpeg -i $1 -codec copy $NOW"_"$2.mp4
else
echo $NOW"_teamsvid".mp4
ffmpeg -i $1 -codec copy $NOW"_teamsvideo".mp4
fi
}
// ==UserScript==
// @name News Feed Eradicator for LinkedIn
// @namespace http://miglen.com/
// @version 0.5
// @description News Feed Eradicator for LinkedIn
// @author Miglen Evlogiev ([email protected])
// @match https://www.linkedin.com/feed/
// @grant none
// @downloadURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js
// @updateURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js
@forderud
forderud / QtYouTube.hpp,cpp
Last active February 15, 2024 16:40
YouTube video upload from Qt/C++
#pragma once
#include <QObject>
#include <QOAuth2AuthorizationCodeFlow>
/** YouTube video upload class.
Require API key & OAuth 2.0 client ID from https://console.developers.google.com/apis/credentials */
class YouTube : public QObject {
Q_OBJECT
Q_PROPERTY(bool limited_auth MEMBER m_limited_auth)
Q_PROPERTY(QString api_file MEMBER m_api_file)
@rosko
rosko / README.md
Last active April 28, 2025 13:56
GunDB and JSON

To put JSON to Gun

gun.putJSON(json);

To get JSON from Gun

gun.open(() =&gt; {
@KurtJacobson
KurtJacobson / drag.c
Last active November 16, 2024 22:04
Re-positioning Gtk widget with a mouse drag in C and Python
#include <gtk/gtk.h>
// Source:
// http://www.linuxforums.org/forum/programming-scripting/117713-gtk-moving-widget-mouse-post906490.html#post906490
// higher values make movement more performant
// lower values make movement smoother
const gint Sensitivity = 1;
const gint EvMask = GDK_BUTTON_PRESS_MASK | GDK_BUTTON1_MOTION_MASK;