This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zooz ZEN34 Blueprint for generic entities. Does not support brightness. | |
description: Control a device with single-tap and double-tap | |
# reference: https://gist.github.com/flyingsubs/35246fa2935f105f133385c6cf41f6fa | |
# reference: https://gist.github.com/computergreek/847ad5194168cf3f26a0c908acc9431c | |
# reference: https://youtu.be/L-bcabdaMxE | |
# reference: https://chat.openai.com/share/299064bf-56bf-4bdb-a12b-3b474d8fec65 | |
domain: automation | |
author: cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import requests | |
import logging | |
LOG = logging.getLogger("slack_leaver") | |
class JSONRest(object): | |
def __init__(self, base_url): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Take a snapshot of user and system application icons before the Big Sur aesthetic is applied | |
function sync() { | |
FROM="$1" | |
TO="$2" | |
mkdir -p "$TO" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
document.querySelector('.article__body.article__overlay') && document.querySelector('.article__body.article__overlay').classList.remove('article__overlay'); | |
document.getElementById('checkout-container') && document.getElementById('checkout-container').remove(); | |
document.querySelector('div.piano-article-overlay') && document.querySelector('div.piano-article-overlay').remove(); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
list( map( lambda x: x[4][0], socket.getaddrinfo('example.com.', 80, 0, socket.SOCK_STREAM) )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/bash.includes/keychain-environment-variables.sh | |
function aws-vault() { | |
/usr/local/bin/aws-vault-wrapper "$@" | |
} | |
# example wrapper | |
## function cloudns-api() { | |
## ( | |
## export CLOUDNS_API_ID=$(keychain-environment-variable CLOUDNS_API_ID) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onEdit( evt ) { | |
var ss = SpreadsheetApp.getActiveSheet(); | |
var sheet_name = 'Bug List'; | |
if ( sheet_name !== ss.getName() ) { | |
return; | |
} | |
var status_col = 8; // column number that contains the status type | |
var lastmod_col = 10; // column number where the timestamp should go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open chrome://extensions, debug Authy main.html | |
Set a breakpoint in Authy app.js in this function: | |
d.prototype.getOtp = function() { | |
return this.isEncrypted() ? "------" : this.otpGenerator.getOtp(this.decryptedSeed, this.digits) | |
} | |
Can use a conditional breakpoint, where this.getName() == 'your.account.display.name' | |
console.log( "otpauth://totp/%s:%s?secret=%s&issuer=%s", encodeURIComponent( this.getAccountName() ), encodeURIComponent( this.getName() ), encodeURIComponent(this.decryptedSeed), this.getAccountName() ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install openssl | |
git clone --recursive [email protected]:tihmstar/futurerestore.git | |
cd futurerestore/ | |
export PKG_CONFIG_PATH=/usr/local/share/pkgconfig:/usr/local/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig | |
./autogen.sh | |
make | |
./futurerestore/futurerestore | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// June 11, 2012 | |
// https://twitter.com/b3ll/status/212169466665111552 | |
-(BOOL)isBlocked | |
{ | |
return false; | |
} | |
-(int)epicWWDCLineHacks | |
{ |
NewerOlder