Skip to content

Instantly share code, notes, and snippets.

@luked99
luked99 / bt_perf.cpp
Last active January 17, 2025 01:09
libunwind performance test
// Compile with:
// arm-linux-gnueabihf-g++ bt_perf.cpp -o bt_perf -std=c++14 -lunwind -lunwind-arm
//
// Configure libunwind with:
// CC=arm-linux-gnueabihf-gcc CFLAGS="-g" configure --disable-debug --host=arm-linux \
// --enable-shared --disable-static --with-sysroot=/home/lgd/arm --enable-maintainer-mode \
// --disable-debug-frame --disable-block-signals
#include <stdlib.h>
@nfalliere
nfalliere / DartSnapshotHashToVersionTag.txt
Last active January 17, 2025 01:08
List of Dart snapshot version hash (internal version) to version tag (public git tag)
# note: the hash is located at offset 0x14, after the int32 magic (0xDCDCF5F5), int64 size, and int64 snapshot kind fields.
# last update: 2025/01/07
# snapshot_hash,dart_version_tag
19ac30c2bacca37ef7691604e75be559,2.0.0
d120342d48b35fc67901acb723bb6e9f,2.0.0-dev.0.0
d120342d48b35fc67901acb723bb6e9f,2.0.0-dev.0.1
53db5f61774a5fbc5ee04696b38726f8,2.0.0-dev.1.0
3cebf13e885ccde5bf5d36d308390ddf,2.0.0-dev.10.0
4980a5a9e7247ed5f306c8c565d193cc,2.0.0-dev.11.0
8ed2b9130065c72a181a9a40e17387bd,2.0.0-dev.12.0
@CoreyMSchafer
CoreyMSchafer / autopay.py
Created May 31, 2024 22:37
Using Selenium to Automate Bill Payments
import io
import logging
import os
import smtplib
from email.message import EmailMessage
from pathlib import Path
from dotenv import load_dotenv
from selenium import webdriver
from selenium.common.exceptions import TimeoutException, WebDriverException
@zulhfreelancer
zulhfreelancer / git_logs_between_2_commits.md
Created January 4, 2017 07:06
How to see Git logs between 2 commits?
git log --oneline 7de7970..master

OR

git log --oneline 7de7970..4cb34a9

Above command will give all logs between commit A and commit B including commit A and commit B.

@monperrus
monperrus / export-keepass-to-nextcloud-password-json.py
Last active January 17, 2025 01:02
Export KeePass folders and passwords to Nextcloud Passwords backup JSON format
#!/usr/bin/python3
# Export KeePass/Keepass2/KeePassXC folders and passwords to Nextcloud Passwords backup JSON format
#
# The file can then be imported in Nextcloud "Backup and Restore" >> "Restore or import" >> Choose Format "Database backup"
#
# Prerequisites
# --------------
# pip3 install pykeepass
#
# Usage
#!/bin/bash
# concatenate videos given start and end filenames
# https://trac.ffmpeg.org/wiki/Concatenate
# expect naming convention from achesco's split-to-scenes.sh:
# https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e
# leading 4 digits from $1 and $2
begin=${1:0:4}
end=${2:0:4}
@nielsbom
nielsbom / split-to-scenes.sh
Last active January 17, 2025 01:01 — forked from achesco/split-to-scenes.sh
Detect and split video to scenes with ffmpeg
#!/bin/bash
# set -Eeuo pipefail
# Splits video to separate scenes files
# Source: https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e
# Inspired by https://stackoverflow.com/a/38205105
# The "-c:v h264_videotoolbox \" argument makes it work faster on Apple Silicon
# computers.
# ❗The bitrate argument is overriden in this version, we look at the original bitrate.
@flips22
flips22 / leaguetomylar.py
Created January 6, 2023 03:59
This script imports your leagueofcomicgeeks wishlist, searches comicvine and adds the series to mylar
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
This script will search you wishlist at league of comic geeks, and then add each series to mylar. If you add one issue for a series, it will
just add the series (and search for missing issues if you have that setting selected in mylar)
The URL for your wishlist is: https://leagueofcomicgeeks.com/profile/[username]/wish-list
I think it is possible to change to use your collection instead, by changing the wishlistURL, but I haven't testing that much. Ideally, it would pull your
pull list, but the page layout for that is more complicated as each week is a page. If you upgrade to pro for $2 a month, your pull list will auto add to either wishlist or
your collection, but I haven't tested that either.
@573
573 / readme.js
Created April 30, 2019 11:04
Add this bookmarklet for archive.today
javascript:void(open('http://archive.today/?run=1&url='+encodeURIComponent(document.location)))
@gbraad
gbraad / README.md
Created January 14, 2025 07:42
Cloudflare Warp client on Fedora/EL

Cloudflare Warp client on Fedora/EL

sudo dnf config-manager --add-repo https://pkg.cloudflareclient.com/cloudflare-warp-ascii.repo
sudo dnf install cloudflare-warp

/etc/systemd/resolved.conf