Skip to content

Instantly share code, notes, and snippets.

{
    "result": {
        "embeds": {
            "images": [],
            "urls": [
                {
                    "type": "url",
                    "openGraph": {
                        "url": "https://x.com/0xtaetaehoho/status/1839751711164117306",
@xh3b4sd
xh3b4sd / random.go
Created October 3, 2023 12:00
generate random strings
package random
import (
"crypto/rand"
"math/big"
)
const (
Length = 5
Number = "0123456789"
@xh3b4sd
xh3b4sd / keybase.md
Created January 27, 2023 23:28
Github identity proof for Keybase.

Keybase proof

I hereby claim:

  • I am xh3b4sd on github.
  • I am xh3b4sd (https://keybase.io/xh3b4sd) on keybase.
  • I have a public key whose fingerprint is C8B5 FA74 A6AF BC68 8FA6 CE27 4A1F BCE1 8AA9 BFA4

To claim this, I am signing this object:

@xh3b4sd
xh3b4sd / main.go
Created October 25, 2022 13:00
golang bit operators
package main
import (
"encoding/binary"
"fmt"
)
func main() {
var zer byte = 0b0
var one byte = 0b1
@xh3b4sd
xh3b4sd / dark.js
Created October 24, 2022 23:56
pdf dark mode hack using dev console
const overlay = document.createElement("div");
const css = `
position: fixed;
pointer-events: none;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: white;
@xh3b4sd
xh3b4sd / launch.json
Created August 6, 2022 23:07
VS Code debugger configuration for debugging a command line tool in the current workspace.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
@xh3b4sd
xh3b4sd / launch.json
Created May 13, 2022 14:30
VS Code debugger configuration for debugging a single test of the currently open test file.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Test Current File",
"type": "go",
"request": "launch",