Skip to content

Instantly share code, notes, and snippets.

@avoidik
avoidik / README.md
Last active May 4, 2024 08:31
Repack APK, make it debuggable
@joswr1ght
joswr1ght / evtxResourceIDGaps.py
Last active May 4, 2024 08:28
Read dump_evtx XML output, identify EventRecordID gaps possibly indicating deleted logging records
from xml.etree import ElementTree
import sys
first=True
eventrecordid=None
lasttime=None
latesttime=None
if (len(sys.argv) != 2):
print("Read from the dump_evtx XML output, identifying gaps in EventRecordID values")
@ExcelRobot
ExcelRobot / mandelbrot.lambda
Last active May 4, 2024 08:27
Mandelbrot Lambda
/*
Name: Mandelbrot Set (Mandelbrot)
Description: Generates a Mandelbrot set based on given assumptions that can be used with conditional formatting to view the visual representation.
Parameters:
xleft - Left X value
xright - Right X value
ytop - Top Y value
ybottom - Bottom Y value
size - number of columns/rows in square output range
iterations - number of iterations
@ExcelRobot
ExcelRobot / ArrayManipulation.lambda
Last active May 4, 2024 08:25
Array Manipulation LAMBDA Functions
/*
Excel Array Manipulation LAMBDA functions
Courtesy of Excel Robot
The Microsoft Excel team recent released 11 new Excel functions for combining, shaping, and resizing arrays.
I had already created similar ones for myself using the amazing LAMBDA function. Since the new functions
are only available to users running Beta Channel, I've renamed my versions and given them the same function
names so anyone with LAMBDA and LAMBDA helper functions (like MAKEARRAY), and import these LAMBDAs into your
workbook and have nearly the same functionality.
@wojteklu
wojteklu / clean_code.md
Last active May 4, 2024 08:25
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@sadukie
sadukie / AuthenticatedPlaywrightDriver.cs
Created April 30, 2024 16:03
Using Shared State in Playwright for .NET
using Microsoft.Playwright;
using NimblePros.SuperSecretProject.FrontEndTests.PageObjects;
namespace NimblePros.SuperSecretProject.FrontEndTests;
internal class AuthenticatedPlaywrightDriver : IDisposable
{
private IPlaywright? _playwright;
private IBrowser? _browser;
private IBrowserContext? _context;
public AuthenticatedPlaywrightDriver()
#!/usr/bin/env bash
# Abort sign off on any error
set -e
# Start the benchmark timer
SECONDS=0
# Repository introspection
OWNER=$(gh repo view --json owner --jq .owner.login)
@aprilmintacpineda
aprilmintacpineda / Using Multiple SSH keys - Beginner Friendly.md
Last active May 4, 2024 08:23
Beginner Friendly: Using Multiple SSH keys

How to follow this guide

The problem

I have one computer and two different github accounts. One is for work, the other is for my personal stuff. I can't use the same ssh key twice, so I have to use different ssh key for each of my accounts. How do I do that? How do I switch between these ssh keys?

@CMCDragonkai
CMCDragonkai / ppi_and_dpi.sh
Last active May 4, 2024 08:22
CLI/X: Get the Real DPI/PPI of your Monitors/Display Devices on Linux
#!/usr/bin/env bash
# this will acquire the real PPI/DPI of the preferred/native mode of your monitors
# the DPI reported by `xdpyinfo` is not the real DPI, but your virtual DPI
# that may have been automatically calculated from the EDID information
# or manually set previously
# works in ZSH too
# requires xrandr, perl and bc
# in bc, only division respects scale, so we have to force a useless division
@kyo-takano
kyo-takano / making-the-most-of-local-llms.ipynb
Last active May 4, 2024 08:20
ローカルLLMはこーやって使うの💢
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.