Skip to content

Instantly share code, notes, and snippets.

View rayyee's full-sized avatar
🌴
On vacation

Ray Yee rayyee

🌴
On vacation
View GitHub Profile
@rayyee
rayyee / emojis.json
Created July 4, 2023 07:49 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
@rayyee
rayyee / ffmpeg.md
Created March 5, 2023 03:41 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@rayyee
rayyee / nmap_examples.md
Created May 24, 2022 05:07 — forked from rsperl/nmap_examples.md
nmap examples
@rayyee
rayyee / SQL Cheat Sheet.md
Created May 18, 2022 02:54 — forked from janikvonrotz/SQL Cheat Sheet.md
SQL Cheat Sheet#SQL#Markdown

SQL languages

DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.

DML is short name of Data Manipulation Language which deals with data manipulation, and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE etc, and it is used to store, modify, retrieve, delete and update data in database.

DCL is short name of Data Control Language which includes commands such as GRANT, and mostly concerned with rights, permissions and other controls of the database system.

Datatypes

Text types

@rayyee
rayyee / decrypt_dbeaver.py
Created April 12, 2022 04:18 — forked from felipou/decrypt_dbeaver.py
DBeaver password decryption script - for newer versions of DBeaver
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection
# requires pycryptodome lib (pip install pycryptodome)
import sys
import base64
import os
import json
from Crypto.Cipher import AES
@rayyee
rayyee / ddnsserver.py
Created January 4, 2022 01:28 — forked from pklaus/ddnsserver.py
Simple DNS server (UDP and TCP) in Python using dnslib.py
#!/usr/bin/env python
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import argparse
import datetime
import sys
import time
import threading
@rayyee
rayyee / password.md
Created September 16, 2021 04:00
random hash to password
date +%s | sha256sum | base64 | head -c 32 ; echo
openssl rand -base64 32
@rayyee
rayyee / ffmpeg.md
Created September 6, 2021 05:46 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@rayyee
rayyee / index.js
Last active August 4, 2021 07:30
GM/T0003-2012
#!/usr/bin/env node
const { SM2 } = require('gm-crypto');
const { publicKey, privateKey } = SM2.generateKeyPair();
console.log("publicKey is: ", publicKey);
console.log("privateKey is: ", privateKey);
import R from "ramda";
const scaner = y => R.map(x => R.join(";", [y, x]));
const permutationOrderly = aoa => R.reduce(
(a, b) => R.flatten( R.juxt( R.map( scaner, a ) )( b ) ),
R.head(aoa),
R.remove(0, 1, aoa)
);
// -- trace