Skip to content

Instantly share code, notes, and snippets.

View yzraeu's full-sized avatar

Israel Rodriguez yzraeu

View GitHub Profile
@yzraeu
yzraeu / whatapp-senders.js
Last active November 3, 2023 07:08
WhatsApp Senders
// Caveats
// #1 - This is reading the DOM, not the storage, so only visible messages are accounted - YES, you need to scroll up to get more data
// DONE
// #2 - Still didn't get the message content, really wanted that for the chars / hour ranking
// Impossible, encrypted
// #3 - I stripped out the the date time, but that could be useful to actually compile amount of messages / hour
// the message store doesn't seem to have the datetime, or maybe the princess is in another castle. Would need to check the other tables
// found on message-info, still need to merge in the data
// #4 - There's probably a way to retrieve the names instead of phone numbers
// maybe encrypted as well, need to check
{
"uuid": "{11B70AAF-B455-42AB-90A5-D995DFFD0810}",
"name": "CX48 Layout",
"type": "grid",
"info": {
"rows": 4,
"columns": 11,
"rows-percentage": [
2208,
1181,
Import-Module posh-git
Import-Module -Name Terminal-Icons
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\takuya.omp.json" | Invoke-Expression
@yzraeu
yzraeu / conexiom.cs
Created February 13, 2021 09:30
Conexiom Interview Test
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConexiomInterviewTest
{
class Program
{
static void Main(string[] args)
{
@yzraeu
yzraeu / .gitconfig
Created November 13, 2017 18:25
git config aliases
[alias]
a = add --all
ai = add -i
#############
ap = apply
as = apply --stat
ac = apply --check
#############
ama = am --abort
amr = am --resolved
@yzraeu
yzraeu / IdentityExtensions.cs
Created March 4, 2017 03:18
Identity Extensions, reading the JWT token from Firebase
public static class IdentityExtensions
{
public static string GetEmail(this ClaimsPrincipal current)
{
return GetClaimValue(current, "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress");
}
public static string GetName(this ClaimsPrincipal current)
{
return GetClaimValue(current, "name");