Skip to content

Instantly share code, notes, and snippets.

@ricardocosme
ricardocosme / avr-gcc-10.2-freestanding.sh
Created February 8, 2021 21:19
avr-gcc 10.2 with libstdc++ using the freestanding implementation
#This is a step-by-step guide to build the avr-gcc 10.2 with the
#libstdc++ using the freestanding implementation[1].
#
#Don't expect a robust script without boilerplates or something coded
#to be resilient. This is only a short register of what I need to
#obtain the compiler in this mode.
#
#[1] https://timsong-cpp.github.io/cppwp/n4861/compliance
wget https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.gz
@mmichaelb
mmichaelb / Telegram_SSH_Login_notifier.md
Last active October 17, 2024 08:39
"Intelligent" Telegram SSH Login notifier on Linux using PAM

"Intelligent" Telegram SSH Login notifier on Linux using PAM

This login notifier uses IP information to send silent telegram notifications if the login source seem to be trustable.

Telegram Bot setup

First, please read this awesome Medium tutorial on how to setup the Telegram bot.

Telegram Linux setup

@Alia5
Alia5 / transparent_sfml.cpp
Last active July 28, 2025 12:30
Transparent SFML Window
#include <SFML/Graphics.hpp>
#include <Windows.h>
#include <Dwmapi.h>
#pragma comment (lib, "Dwmapi.lib")
int main()
{
sf::RenderWindow window(sf::VideoMode(1280, 720), "Transparent Window");