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
@ejdyksen
ejdyksen / patch-edid.md
Last active June 19, 2024 03:35
A script to fix EDID problems on external monitors in macOS

patch-edid.rb

A script to fix EDID problems on external monitors in macOS.

Instructions

  1. Connect only the problem display.

  2. Create this directory structure (if it doesn't already exist):

@davidmaignan
davidmaignan / installation_oracle_xe_archlinux.md
Last active March 28, 2024 18:23
Basic installation for oracle-xe on archlinux

Clone git repository

git clone https://aur.archlinux.org/oracle-xe.git
cd oracle-xe

Download oracle-xe-rpm.zip

wget http://download.oracle.com/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
@RayPS
RayPS / kali-linux-macbook-air-wifi.md
Last active April 23, 2024 15:04
Fix Wi-Fi adapter for Kali linux on MacBook Air

Fix Wi-Fi adapter for Kali linux on MacBook Air

https://http.kali.org/kali/pool/non-free/b/broadcom-sta/

Download the latest broadcom-sta-dkms_XXXXXXXXXXXXXXX_all.deb from the link above

For example:

$ wget http://http.kali.org/kali/pool/non-free/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-24_all.deb
@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"] } }
@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"
@arafathusayn
arafathusayn / Emoji-on-Ubuntu.md
Last active June 23, 2024 18:48
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:
@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
@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'''
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"
@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;