Skip to content

Instantly share code, notes, and snippets.

@sw897
sw897 / TextSelectionReader.cs
Created May 13, 2016 01:28
Class that can be used to retrieve the currently selected text (if any) from an active control in the active window. It does this by trying several methods internally (UIAutomation, API calls using SendMessage + WM_GETTEXT, Clipboard). Be sure to reference UIAutomationClient and UIAutomationTypes!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Automation;
using System.Windows.Forms;
//WARNING: The code below is NOT for the faint of heart. Exceptions are swallowed freely, sendkeys
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 23, 2024 08:15 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
Field Description
Do you allow users to create an account or link to an existing account with you? Select
# This is a blocklist to block samsung smart tv's sending meta data at home.
# Please help to collect domains!
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident.
# https://gist.github.com/Perflyst/315f86393712a0c2107ee8eb58c6acee
0.0.0.0 device-metrics-us.amazon.com
0.0.0.0 samsungacr.com
0.0.0.0 samsungcloudsolution.com
0.0.0.0 samsungcloudsolution.net
0.0.0.0 pavv.co.kr
@indieisaconcept
indieisaconcept / setup_subwoofer.sh
Last active November 6, 2023 18:23
Script to manage adding a Symfonisk speaker as a subwoofer
#!/usr/bin/env bash
# Copyright 2021 Jonathan Barnett <me@indieisaconcept.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
@saasscaleup
saasscaleup / auto-gpt-docker-install.txt
Last active September 8, 2023 09:19
How to instal and run auto-gpt with docker
// pull docker image
docker pull significantgravitas/auto-gpt:0.2.2
// Create auto-gpt folder and cd
mkdir auto-gpt && cd auto-gpt
// Compose docker file and past .yml data below
nano docker-compose.yml
######### docker-compose.yml - start ##########