Skip to content

Instantly share code, notes, and snippets.

View fulldecent's full-sized avatar

William Entriken fulldecent

View GitHub Profile

This wordlist is from the legacy (circa 2017) blockchain.info website which was acquired by blockchain.com.

You can check if you have a 17-word "password nmemonic" (similar to a seed phrase) by checking if all your words are on this list.

The recovery page is now at

https://login.blockchain.com/wallet/forgot-password

It was previously at

@fulldecent
fulldecent / chartjs-red-green-line.html
Last active August 18, 2023 16:09
Chart.js show line with green above target and red below
<!DOCTYPE html>
<html>
<head>
<title>Line Chart Example</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div style="width: 80%; margin: auto;">
<canvas id="myLineChart"></canvas>
</div>
@fulldecent
fulldecent / travis-local.md
Created November 29, 2017 02:33
Run Travis build locally

travis-local.md

Preconditions:

  1. POSIX or Windows system
  2. Install Docker
  3. A GitHub repo that already builds on Travis

Postcondition:

@fulldecent
fulldecent / fen2html.html
Last active May 31, 2023 12:28
Paste in a Chess FEN position to get a board representation in HTML
<!-- COPIED FROM https://phor.net/gadgets/fen2html/ -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>FEN2HTML</title>
<style>
table.chess { border: 1px solid black; margin: 2px; font-size: xx-large}
@fulldecent
fulldecent / bionft2demo.sol
Created March 7, 2023 23:36
Bio NFT 2 demo
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./IERC4907.sol";
contract MyToken is ERC721, IERC4907 {
struct UserInfo {
address user; // address of user role
uint64 expires; // unix timestamp, user expires after this time
@fulldecent
fulldecent / collisionLSH.py
Created August 18, 2021 17:32 — forked from unrealwill/collisionLSH.py
Proof of Concept : generating collisions on a neural perceptual hash
import tensorflow as tf #We need tensorflow 2.x
import numpy as np
#The hashlength in bits
hashLength = 256
def buildModel():
#we can set the seed to simulate the fact that this network is known and doesn't change between runs
#tf.random.set_seed(42)
model = tf.keras.Sequential()
@fulldecent
fulldecent / Google Analytics Experiment Dashboard.php
Last active October 24, 2020 04:07
Google Analytics dashboard. Shows a lit of all your experiments with Bootstrap 3 and the current progress of those experiments.
<?php
// Service account code from http://stackoverflow.com/questions/18258593/using-a-service-account-getaccesstoken-is-returning-null
// Analytics code from https://code.google.com/p/google-api-php-client/source/browse/trunk/examples/analytics/simple.php?r=474
require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_AnalyticsService.php';
// Set your client id, service account name (AKA "EMAIL ADDRESS"), and the path to your private key.
// For more information about obtaining these keys, visit:
// https://developers.google.com/console/help/#service_accounts
##
## backup-to-insecure-remote-server v1.0
## William Entriken / github.com@phor.net
##
## YOU NEED TO KEEP A BACKUP OF .encfs6.xml AND YOUR PASSKEY!!!
##
## TODO
## * Create a restore action
## * Make a quick task to confirm that restoring works
##
@fulldecent
fulldecent / Google Sheets ETL.php
Last active November 7, 2019 20:41
Load every Google Sheet you have access to into a MySQL database
Moved to a full project at:
https://github.com/fulldecent/google-sheets-etl