Skip to content

Instantly share code, notes, and snippets.

@Criomby
Criomby / index.html
Last active April 8, 2023 05:39
openpassword.app
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:100,200,300,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Fira+Code" rel="stylesheet">
"""
Script to check the hash of a file
and compare it to the reference hash.
Only works with SHA algorithms.
usage: python shacheck.py [-h] [--abs] algorithm filename ref_hash
positional arguments:
algorithm the SHA algorithm used for the hash generation (e.g. 256)
filename relative path of the file to check the ref_hash with
@Criomby
Criomby / custom.js
Last active August 30, 2024 02:48
gethomepage/homepage local-remote href slider
// -----------------
// Slider to switch between local/remote addresses.
// Allows you to change the domains of the href targets to the current domain (e.g. when using a VPN).
// -----------------
// these domain (href) will be changed to the current browser domain
// prevents changing links to other services/servers which should not be changed
const host = "pi-server.local"; // TODO: change this
const updateLocation = () => {