Skip to content

Instantly share code, notes, and snippets.

View ankushKun's full-sized avatar
💡
just keep building

Ankush Singh ankushKun

💡
just keep building
View GitHub Profile
@ankushKun
ankushKun / blockchain.cpp
Last active February 1, 2024 08:54
Smol project we were forced to make during class
////////////////////////////////////
// WORTHLESS BLOCKCHAIN PROJECT //
////////////////////////////////////
// The most basic imitation/implementation of how a Blockchain would work
// Still has lots of flaws (╯°□°)╯︵ ┻━┻
#include <ctime>
#include <cstring>
#include <iostream>
@ankushKun
ankushKun / SimpDetector.py
Created April 12, 2023 15:14
Simple Simp Detector 🫠
# DEPENDENCIES:
# pip3 install opencv-python deepface
# TODO:
# Add multithreading support so face detection is done in a different thread independent form video feed and display
# Add good support for multiple face detection (that is not linear)
# ヾ(=`ω´=)ノ” ..nyaa
import cv2
@ankushKun
ankushKun / SignTransactionExample.cs
Last active May 18, 2022 07:31
Sign DeSo transaction hex in C# using Bouncy Castle cryptography library
using System;
using System.Linq;
using System.Text;
using Desonity;
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.Sec;
using Org.BouncyCastle.Crypto.Digests;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Crypto.Signers;
using Org.BouncyCastle.Math;
import pdi.jwt.{Jwt, JwtAlgorithm}
import org.bitcoins.core.util.Base58
import org.bouncycastle.jce.spec.ECPublicKeySpec
import org.bouncycastle.jce.ECNamedCurveTable
import org.bouncycastle.jce.provider.BouncyCastleProvider
import java.security.{KeyFactory, PublicKey, Security}
import scala.util._
val jwtToken = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDg1OTcwNzIsImV4cCI6MTY0ODU5NzY3Mn0.MFEtqJzrLTnjYwH4gAOsH-0qsrQIFsKcYHyHdE1WdWHLn_xa-fGPoV3OkDLr0Rk1IcIoawSrDXNxkyZR0wGhFw"
val desoPKey = "BC1YLhwpmWkgk2iM9yTSxzgUVhYjgessSPTiVHkkK9pMrhweqJnWrvK"
@sungkhum
sungkhum / jwt.py
Last active May 24, 2022 04:26
Generate JWT from SEEDHEX for BitClout DeSo in Python
import jwt
import binascii
from ecdsa import SigningKey, SECP256k1
''' SEEDHEX should always be kept private. It has access to your complete wallet. It's kinda like
seed phrase. This is why writing methods in backend isn't a good practice until we have derived keys.
You can only automate your own account and can't have user authorisation. It is recommended to use test account while using write methods.
You can find the seedHex of your account in your browser storage. Just open https://bitclout.com/ > Dev tools > Application > Storage > Local Storage > https://identity.bitclout.com > users > Select the public key with which you want to post > seedHex'''
@emilianavt
emilianavt / BestVTuberSoftware.md
Last active June 18, 2024 21:46
Best VTuber Software

Best VTuber software

This is a list of the most commonly used and relevant vtubing software. The "best" will always be subjective and depend on your specific requirements. Overall, the information in this list is as accurate as I could figure it out, but there might be errors or some details might become out of date. If you find anything that needs to be corrected, please let me know. You can also note it in a comment.

Additional explanations:

  • iPhone means that an iPhone is basically required
  • iFacialMocap support means that tracking data can be received from the iFacialMocap iPhone app
  • VMC protocol means that the application can send and/or receive tracking data from other VMC protocol capable applications, allowing the combination of multiple tracking methods (e.g. VSeeFace receiving VR tracking from Virtual Motion Capture and iPhone/ARKit face tracking from Waidayo)
  • Tobii means that the Tobii eye tracker is supported
@arafathusayn
arafathusayn / Emoji-on-Ubuntu.md
Last active June 6, 2024 07:14
Guide to enable system-wide Emoji support on Ubuntu 🤩

1. Install Fonts

sudo apt install fonts-noto-color-emoji

2. Add Font Configuration

  • Open ~/.config/fontconfig/conf.d/01-emoji.conf file in an editor.
  • Copy-paste the lines below:
@ukn
ukn / 99-install-facetime-camera.sh
Last active May 5, 2024 20:47 — forked from Stono/99-install-facetime-camera.sh
Install the kernal module required for the facetimehd camera to work on Linux
#!/bin/bash
set -e
export CONFIG_MODULE_SIG=n
export CONFIG_MODULE_SIG_ALL=n
# For current kernel
export KERNELRELEASE=$(cat /proc/version | awk '{print $3}')
temp_dir=$(mktemp -d)
echo "Installing FacetimeHD camera for $KERNELRELEASE"
@fl0w
fl0w / alacritty.yml
Created October 28, 2018 18:41
New Window shortcut for Alacritty on macOS
- { key: N, mods: Command, command: { program: "open", args: ["-nb", "io.alacritty"] } }