Skip to content

Instantly share code, notes, and snippets.

@kzwkt
kzwkt / AuthyToOtherAuthenticator.md
Created March 12, 2022 07:14 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

Generating Authy passwords on other authenticators


Update 04.04.2020: Please take a look at many of the forks of this gist or comments, where people have updated or improved upon the code. I have not needed this in a long time, which is why the original document has not been updated and the code probably does not work. Stay secure and only copy and paste code that you trust.

There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes (beware, thro

@kzwkt
kzwkt / DellXPS15_9560_AHCI_RAID.md
Created January 13, 2022 16:05 — forked from chenxiaolong/DellXPS15_9560_AHCI_RAID.md
Switching between AHCI and RAID on the Dell XPS 15 (9560)

Switching between AHCI and RAID on the Dell XPS 15 (9560)

This guide likely applies to other models and, potentially, even laptops from other OEMs that have NVME drives. However, I've only tested this on my Dell XPS 15 (9560) with the OEM Windows installation from the Signature Edition model.

Switching from RAID to AHCI

Switching from RAID to AHCI is significantly simpler than switching from AHCI to RAID. All that's needed is a successful boot to Safe Mode.

  1. To set the default boot mode to Safe Mode, use msconfig.exe or open an admin cmd/PowerShell window and run:
@kzwkt
kzwkt / .. MediaCreationTool.bat ..md
Created August 20, 2021 04:00 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 21H1 with business (Enterprise) edition support

use download ZIP button or pastebin link to get the script, as saving the Raw file breaks line endings

Preview

Create ISO directly now available if ISO var set / script renamed with iso / provided via commandline
via built-in powershell snippet

Dialogs to pick version, then to pick Auto Setup, Create ISO or Select in MCT
now more readable by using inverted selection style, and streamlined in a single powershell instance

@kzwkt
kzwkt / .. MediaCreationTool.bat ..md
Created August 20, 2021 04:00 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 21H1 with business (Enterprise) edition support

use download ZIP button or pastebin link to get the script, as saving the Raw file breaks line endings

Preview

Create ISO directly now available if ISO var set / script renamed with iso / provided via commandline
via built-in powershell snippet

Dialogs to pick version, then to pick Auto Setup, Create ISO or Select in MCT
now more readable by using inverted selection style, and streamlined in a single powershell instance

@kzwkt
kzwkt / openvas-automate.sh
Created April 4, 2019 08:37 — forked from mgeeky/openvas-automate.sh
OpenVAS automation script.
#!/bin/bash
#
# OpenVAS automation script.
# Mariusz B. / mgeeky, '17
# v0.2
#
trap ctrl_c INT
# --- CONFIGURATION ---

Keybase proof

I hereby claim:

  • I am kzwkt on github.
  • I am kzwkt (https://keybase.io/kzwkt) on keybase.
  • I have a public key whose fingerprint is 7A51 8D59 44B5 8A1C 5D77 5D88 024B 6A7C BD32 6146

To claim this, I am signing this object:

pacman -S dkms
yaourt linux-headers
yaourt 8192cu
@kzwkt
kzwkt / transfer.fish
Created April 25, 2018 11:46 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@kzwkt
kzwkt / gist:563fcb6b2a462d09c6f5796f5b771609
Created April 9, 2018 06:35 — forked from bkilshaw/gist:3624901
MACVendors.com API :: PHP GET Example
<?php
$mac_address = "FC:FB:FB:01:FA:21";
$url = "http://api.macvendors.com/" . urlencode($mac_address);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
if($response) {
echo "Vendor: $response";