Skip to content

Instantly share code, notes, and snippets.

Avatar
🔒
Fighting for freedom, security and privacy 🔐

Charlike Mike Reagent tunnckoCore

🔒
Fighting for freedom, security and privacy 🔐
View GitHub Profile
@tunnckoCore
tunnckoCore / dates.sh
Created January 4, 2023 21:40
datetime across timezones
View dates.sh
#!/bin/bash
date "+%B %e, %A"
SOFIA=`TZ=Europe/Sofia date "+%T"`
NEW_YORK=`TZ=America/New_York date "+%T"`
LOS_ANGELES=`TZ=America/Los_Angeles date "+%T"`
TOKYO=`TZ=Asia/Tokyo date "+%T"`
LONDON=`TZ=Europe/London date "+%T"`
@tunnckoCore
tunnckoCore / bookmarks-very-latest.json
Last active January 4, 2023 21:35
bookmarks latest (late december 2022 / early january 4th, 2023)
View bookmarks-very-latest.json
{
"guid": "root________",
"title": "",
"index": 0,
"dateAdded": 1653919252386000,
"lastModified": 1672683141576000,
"id": 1,
"typeCode": 2,
"type": "text/x-moz-place-container",
"root": "placesRoot",
@tunnckoCore
tunnckoCore / install-copilot.sh
Created December 19, 2022 02:34 — forked from JonhSHEPARD/install-copilot.sh
Github Copilot on NixOS
View install-copilot.sh
#!/bin/sh
if [ "$EUID" -ne 0 ]
then echo "This script must be run as root"
exit
fi
if [ "$#" -ne 1 ]; then
echo "Usage: ./$0 <path-to-ide"
exit 1
@tunnckoCore
tunnckoCore / official-etherlogs-ranked-by-rarest-first
Last active October 29, 2022 06:00
official-etherlogs-ranked-by-rarest-first
View official-etherlogs-ranked-by-rarest-first
[{"id":268,"dna":"691ed82a6812cdb7be1fa46c3a2ba7765c0907a8","name":"Ether Logs #268","description":"Hand-drawn Logs on Ethereum. Do you own your favorite log?","imageIpfs":"ipfs://bafybeifxaxbipz6vnizbwjq4tgva2symq5m3dj3szqgnjtx6nvhxnob7cm/268.png","imageHttps":"https://bafybeifxaxbipz6vnizbwjq4tgva2symq5m3dj3szqgnjtx6nvhxnob7cm.ipfs.cf-ipfs.com/268.png","imagePinata":"https://alchemy.mypinata.cloud/ipfs/bafybeifxaxbipz6vnizbwjq4tgva2symq5m3dj3szqgnjtx6nvhxnob7cm/268.png","imageLocal":"/images/268.png","traits":{"background":"ether-white","ring":"gold","log":"black"},"trait":{"background":16,"ring":36,"log":18},"rarity":{"background":2.6041666666666665,"ring":1.3888888888888888,"log":2.7777777777777777,"score":6.770833333333333},"score":6.77,"rank":1},{"id":477,"dna":"46302f26abb5a65a557e941ce971b574539357c5","name":"Ether Logs #477","description":"Hand-drawn Logs on Ethereum. Do you own your favorite log?","imageIpfs":"ipfs://bafybeifxaxbipz6vnizbwjq4tgva2symq5m3dj3szqgnjtx6nvhxnob7cm/477.png","imageHttps":"
@tunnckoCore
tunnckoCore / Marketplace.sol
Last active August 29, 2022 23:07
Perpetual NFT Marketplace, with increasing token price - cannot list it for less than the last sale + 20% (configurable)
View Marketplace.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
interface IERC721 {
function ownerOf(uint256 tokenId) external view returns (address owner);
function transferFrom(address from, address to, uint256 tokenId) external;
function isApprovedForAll(address owner, address operator) external view returns (bool);
}
@tunnckoCore
tunnckoCore / BasicMarketplace.sol
Last active August 27, 2022 14:31
Secure, cheap, and fast independent Solidity NFT Marketplace, in 100 lines. Not relying on external APIs, indexers, or oracles.
View BasicMarketplace.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
// import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
interface IERC721 {
function ownerOf(uint256 tokenId) external view returns (address owner);
function transferFrom(address from, address to, uint256 tokenId) external;
}
@tunnckoCore
tunnckoCore / openpgp.md
Created June 21, 2022 03:08
proof of 3668FD3613E867C32B314B6C78A7931D4234B41E on keyoxide
View openpgp.md
@tunnckoCore
tunnckoCore / hours-4digits.json
Last active May 6, 2022 09:45
#10kClub 4-digit hours holders
View hours-4digits.json
{
"0x669967c28704dbfb4fBA9DF78E7Cba1A76E1D9C0": {
"digits": [
"1003",
"1011",
"1555",
"1717",
"0014",
"0012",
"0022",
@tunnckoCore
tunnckoCore / 4digit-hours.txt
Created May 6, 2022 08:50
#10kClub 4-digit clocks/hours subgroup
View 4digit-hours.txt
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
@tunnckoCore
tunnckoCore / AuthyToOtherAuthenticator.md
Created April 7, 2022 03:43 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
View AuthyToOtherAuthenticator.md

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