Skip to content

Instantly share code, notes, and snippets.

View NLGRF's full-sized avatar
👻
🍻 IPA 📟

Nonpavit Detbun NLGRF

👻
🍻 IPA 📟
View GitHub Profile
@NLGRF
NLGRF / Match_Addresses.md
Created May 29, 2024 08:51 — forked from MBrassey/Match_Addresses.md
Match Crypto Wallet Addresses (REGEX)

Match Crypto Wallet Addresses using Regular Expressions

The following regular expressions are crafted to match some commonly used cryptocurrency wallet address types. This document details the Regex components and pattern tests to match Ethereum, Bitcoin, Dash and Monero addresses.

🌀 Click the images below to view the tested patterns.

Ethereum (ETH)

/^0x[a-fA-F0-9]{40}$/g

@NLGRF
NLGRF / encryption.ts
Created April 10, 2023 11:20 — forked from ChaoLiangSuper/encryption.ts
Stronger Encryption and Decryption in typescript
import crypto from 'crypto';
const ALGORITHM = 'aes-256-cbc';
const ENCODING = 'hex';
const IV_LENGTH = 16;
const KEY = process.env.ENCRYPTION_KEY!;
export const encrypt = (data: string) => {
const iv = crypto.randomBytes(IV_LENGTH);
const cipher = crypto.createCipheriv(ALGORITHM, new Buffer(KEY), iv);
@NLGRF
NLGRF / docker-compose.yml
Created April 24, 2022 09:12 — forked from FacileTechnolab/docker-compose.yml
Setting up docker instance of Elastichsearch, Kibana and Logstash on your local machine
version: '3.3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:latest
ports:
- "9200:9200"
- "9300:9300"
configs:
@NLGRF
NLGRF / condaenv.txt
Created June 29, 2020 09:49 — forked from pratos/condaenv.txt
To package a conda environment (Requirement.txt and virtual environment)
# For Windows users# Note: <> denotes changes to be made
#Create a conda environment
conda create --name <environment-name> python=<version:2.7/3.5>
#To create a requirements.txt file:
conda list #Gives you list of packages used for the environment
conda list -e > requirements.txt #Save all the info about packages to your folder
@NLGRF
NLGRF / rpi3_iot_server.md
Created October 2, 2018 14:36 — forked from xoseperez/rpi3_iot_server.md
Raspberry Pi 3 with Mosquitto, Node-RED, InfluxDB, Grafana and Nginx (as a reverse proxy)