Skip to content

Instantly share code, notes, and snippets.

View sleeyax's full-sized avatar

Sleeyax sleeyax

View GitHub Profile
@gitname
gitname / README.md
Last active June 10, 2024 09:20
Using `@react-pdf/renderer` with React 18

Using @react-pdf/renderer v3.0.1 with React 18

Introduction

When I tried to use the @react-pdf/renderer package (version 3.0.1) with a React 18 app, two problems arose. In this article, I'll describe those problems and tell you how I solved them.

Update: Here's a video demonstration of the problems and solution described in this article: https://youtu.be/YZP5r7Uy_bU

Problem 1: Dependency Conflict

{
"PX1": "no_script",
"PX2": "js_bootstrap",
"PX3": "domready",
"PX4": "fingerprint",
"PX6": "nav_timing",
"PX7": "incognito",
"PX8": "score_session",
"PX9": "score_impression",
"PX10": "ui_interaction",
@iMikio
iMikio / firestore.go
Last active June 25, 2023 03:01 — forked from roboncode/firestore.go
Firestore - GoLang Transform Struct To Map
package transform
import (
"reflect"
"strings"
"time"
)
const (
tagName = "firestore"
@glycerine
glycerine / go-env-with-msys2.md
Created April 26, 2020 01:07 — forked from voidexp/go-env-with-msys2.md
Go development environment on Windows with MSYS2

Go development environment on Windows with MSYS2

Normally, it is sufficient to grab the Go MSI installer from the website in order to set up the toolchain. However, some packages that provide Go wrappers for C libraries rely on cgo tool, which in turn, needs the GCC toolchain in order to build the glue code. Also, 3rd-party dependencies are usually hosted on services like GitHub, thus Git is also needed. This mini-guide illustrates how to setup a convenient development environment on Windows using MSYS2.

@Techbrunch
Techbrunch / xamarin-reverse-engineering.md
Last active July 12, 2024 16:31
Xamarin Reverse Engineering

Notes:

Regarding the interception of HTTP:

We did it through USB reverse tunneling and iptable rules local to the phone.

@zbraniecki
zbraniecki / README.md
Last active November 7, 2024 03:55
Rust <--> C/C++ FFI for newbies

As Gecko is moving toward more Rust code, the cases where Rust and C code interoperate will become more common.

This document is an attempt to ease the learning curve for engineers facing it for the first time. It assumes no prior experience with cross-language C interfaces (called FFI).

It also assumes that Rust code is already built into Gecko. If you need help with that, read Introducing Rust code in Firefox.

What can you transfer across the fence

@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active November 16, 2024 12:34
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@davidcorbin
davidcorbin / commands.sh
Created July 26, 2019 12:30
Ubuntu Kubernetes disable swap
sudo vim /etc/fstab
# Comment out lines that have the word swap on them
sudo reboot
@qrealka
qrealka / HOW-TO.md
Last active October 15, 2023 19:53
How to build an old chromium revision

How to build an old chromium revision by MSVC 2013

Visual Studio Express 2013 is not supported

Valid for branches before March 11, 2016 (chromium revision 49.0.2623.87)

  • Setup enviroment variables
    • DEPOT_TOOLS_UPDATE=0
    • DEPOT_TOOLS_WIN_TOOLCHAIN=0
    • GYP_MSVS_VERSION=2013
  • GYP_GENERATORS=msvs-ninja,ninja
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 19, 2024 21:50
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default