Skip to content

Instantly share code, notes, and snippets.

@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 ##########
@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 <[email protected]>
#
# 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:
# 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
Field Description
Do you allow users to create an account or link to an existing account with you? Select
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active November 16, 2024 20:45 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export to tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@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