- hashCode
- simpleHash
- hash-sum
- js-xxhash Web Assembly version
- object-hash
- SubtleCrypto digest (browser built-in SHA1, SHA256)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This svelte store is a reference to make super quick live and interactive pieces of code. | |
See its announcement at https://www.youtube.com/watch?v=A8jkJTWacow&t=18579s | |
*/ | |
type Options<T> = { | |
validator: (data: T) => void; | |
}; | |
export function live<T>(path: string, initialValue: T, options?: Options<T>) { |
There is a lot of misconception around the dark web, and most of the people think that it is not possible to create their own website on Dark web (The Onion network). Today we will set up a website in the Onion/Tor network for free.
As you can see above, I have created my own website in the Tor network, and I've accessed it using the Tor Browser.
This tutorial consists of three steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* define some global values */ | |
:root { | |
color-scheme: light dark; /* this is required so iOS knows we support display modes at all */ | |
--system-color-blue: rgba(0,122,255,1); | |
--system-color-green: rgba(52,199,89,1); | |
--system-color-indigo: rgba(88,86,214,1); | |
--system-color-orange: rgba(255,149,0,1); | |
--system-color-pink: rgba(255,45,85,1); | |
--system-color-purple: rgba(175,82,222,1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>SVG image maps</title> | |
</head> | |
<body> | |
<!-- https://wiki.selfhtml.org/wiki/SVG/Tutorials/responsive_Imagemaps --> | |
<!-- https://n-peugnet.github.io/image-map-creator/ --> |
To be used with /etc/ssh/sshd_config ForceCommand.
Requirements:
- Read access to /var/log/auth.log
- Read and write access to a nginx config file
- Background process that automatically reloads the nginx config file (https://www.justinsilver.com/technology/linux/nginx-configuration-monitor/)
- LogLevel DEBUG in /etc/ssh/sshd_config
- Update config file location in line 180 and hostname in line 189
Example usage:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function parser { | |
shopt -s nocasematch | |
case "$*" in | |
exit) exit 0;; | |
echo*) shift; echo $*;; | |
*) figlet $* | lolcat;; | |
esac | |
} |
Postman | API Development Environment https://www.getpostman.com
Insomnia REST Client - https://insomnia.rest/
Features | Insomnia | Postman | Notes |
---|---|---|---|
Create and send HTTP requests | x | x | |
Authorization header helpers | x | x | Can create "Authorization" header for you for different authentication schemes: Basic, Digest, OAuth, Bearer Token, HAWK, AWS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function formatBytes(bytes,decimals) { | |
if(bytes == 0) return '0 Bytes'; | |
var k = 1024, | |
dm = decimals || 2, | |
sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], | |
i = Math.floor(Math.log(bytes) / Math.log(k)); | |
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]; | |
} | |
// Usage: |
NewerOlder