Skip to content

Instantly share code, notes, and snippets.

View goncharov's full-sized avatar
🤔

Stanislav Goncharov goncharov

🤔
View GitHub Profile
@goncharov
goncharov / disable_leds_rpi3.sh
Created July 17, 2022 09:53 — forked from andrewssobral/disable_leds_rpi3.sh
Disable leds on Raspberry Pi 3 Model B Rev 1.2
# https://raspberrypi.stackexchange.com/questions/117632/turn-off-external-leds-on-raspberry-pi-3
# check model
cat /sys/firmware/devicetree/base/model
# Raspberry Pi 3 Model B Rev 1.2
# Disable Power (red) and Activity (yellow) leds
sudo nano /etc/rc.local
# Add the following lines before `exit 0`:
sudo sh -c 'echo none > /sys/class/leds/led0/trigger'

Moving Authy to 1Password

1Password 5.3 for OSX, 5.2 for iOS, and 4.1.0.538 for Windows support OTP. I've been using Authy for a while now, but the fact is, I haven't really been using 2FA for some time. As mentioned by 1Password in a recent blog post, having the OTP generator and password on the same device is very much not 2FA. It's just an expiring OTP, which can help, but let's not kid ourselves too much.

With that out of the way. One of the things that was interesting to me was moving my OTP out of Authy and into 1Password. I like the control I get with 1Password, but I didn't want to have to reset all my OTP right away, that would suck. So, I got to dissecting the Authy Chrome App to see what I could do.

Run the Authy Chrome app and make sure it's unlocked.

Now, enable Developer mode in Chrome. We'll need this to inspect the background application that stores al

@goncharov
goncharov / workflow-install.py
Last active December 1, 2021 01:53 — forked from deanishe/workflow-install.py
Script to install/symlink Alfred workflows. Useful for workflow developers.
#!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (c) 2013 <deanishe@deanishe.net>.
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2013-11-01
#

Keybase proof

I hereby claim:

  • I am goncharov on github.
  • I am goncharov (https://keybase.io/goncharov) on keybase.
  • I have a public key ASBdIQjIbVhXp1da64Q2LCPfWtK97t7_jBeXti4bFdNMnwo

To claim this, I am signing this object:

DECLARE @iso NVARCHAR(2)
DECLARE @languageid NVARCHAR(2)
DECLARE @countryLocalized NVARCHAR(100)
DECLARE @country INT
SET @languageid = 'RU'
SET @iso = 'AD'
SET @countryLocalized = N'Андорра'
IF EXISTS (select [areaId] from [gis].[Country] where [countryid] = @iso)
// HEADER DROPDOWN MENUS
// Close dd on click if active
$('.shortcuts dl').click(function(e) {
if ($(this).hasClass('active')) {
$('.shortcuts dl').removeClass('active');
$('.shortcuts dl dt > span').removeClass('opened');
$(this).children('dd').hide();
}
// Open dd on click if not active
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {
ciphertext #1:
315c4eeaa8b5f8aaf9174145bf43e1784b8fa00dc71d885a804e5ee9fa40b16349c146fb778cdf2d3aff021dfff5b403b510d0d0455468aeb98622b137dae857553ccd8883a7bc37520e06e515d22c954eba5025b8cc57ee59418ce7dc6bc41556bdb36bbca3e8774301fbcaa3b83b220809560987815f65286764703de0f3d524400a19b159610b11ef3e
ciphertext #2:
234c02ecbbfbafa3ed18510abd11fa724fcda2018a1a8342cf064bbde548b12b07df44ba7191d9606ef4081ffde5ad46a5069d9f7f543bedb9c861bf29c7e205132eda9382b0bc2c5c4b45f919cf3a9f1cb74151f6d551f4480c82b2cb24cc5b028aa76eb7b4ab24171ab3cdadb8356f
ciphertext #3:
32510ba9a7b2bba9b8005d43a304b5714cc0bb0c8a34884dd91304b8ad40b62b07df44ba6e9d8a2368e51d04e0e7b207b70b9b8261112bacb6c866a232dfe257527dc29398f5f3251a0d47e503c66e935de81230b59b7afb5f41afa8d661cb