Skip to content

Instantly share code, notes, and snippets.

View RellikJaeger's full-sized avatar
:octocat:
Learning...

Rellik Jaeger RellikJaeger

:octocat:
Learning...
View GitHub Profile
@RellikJaeger
RellikJaeger / build-mpv_silicon.sh
Created April 21, 2023 11:29 — forked from dbrookman/build-mpv_silicon.sh
How to build mpv & mpv.app on an Apple silicon (M1 / M2) Mac
#!/usr/bin/env bash
# builds mpv & mpv.app on Apple silicon (M1 / M2) Macs
# run this script from the root directory of the mpv repo
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build
@RellikJaeger
RellikJaeger / DynamicActivity.java
Created March 4, 2023 01:37 — forked from Miha-x64/DynamicActivity.java
An activity which copies an APK from assets to private directory, and loads a class and resources from it.
package whatever.dynamicapkloading;
import android.app.Activity;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.widget.TextView;
@RellikJaeger
RellikJaeger / LICENSE
Created February 9, 2023 11:22 — forked from lifeparticle/LICENSE
Custom Edittext with Line Number
MIT License
Copyright (c) 2023 Mahbub Zaman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@RellikJaeger
RellikJaeger / LineNumberedEditText
Created February 9, 2023 11:20 — forked from francisnnumbi/LineNumberedEditText
implementing an EditText with line number on the left. What is new is: - get/set line number margin gap - set line number visible - set line number color Everything is done in the overridden onDraw() method.
import android.widget.*;
import android.util.*;
import android.content.*;
import android.graphics.*;
/**
* the simple implementation of an EditText where each line is numbered on the left
*/
public class LineNumberedEditText extends EditText {
@RellikJaeger
RellikJaeger / WSL2GUIXvnc-en.md
Created January 14, 2023 19:07 — forked from tdcosta100/WSL2GUIXvnc-en.md
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key components we need to install are tigervnc-standalone-server and systemd-genie.

For this setup, I will use Ubuntu 20.04 LTS (Focal Fossa), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the Sample screenshots section for examples.

So let's go. First, we need a working [WSL2](https://docs.microsoft.com/pt-br/windows/wsl/w

@RellikJaeger
RellikJaeger / README.md
Created December 22, 2022 18:10
rav1e on Android

rav1e on Android

Install Android NDK r21e

Create a standalone toolchain

$NDK/build/tools/make_standalone_toolchain.py --arch arm64 --api 30 --install-dir /tmp/ndk

Install Rust

@RellikJaeger
RellikJaeger / gist:f7c29e3e80af5f9ece626306349b633d
Created October 28, 2022 11:27 — forked from no99gk/gist:53444486e073a9975ba3
Fix glitches on setting up TabLayout with ViewPager
package io.github.no99gk.play;
import android.support.design.widget.TabLayout;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
/** Helper class which fixes some glitches on TabLayout */
@RellikJaeger
RellikJaeger / duplicates.py
Created September 13, 2022 02:20 — forked from tfeldmann/duplicates.py
Fast duplicate file finder written in python
#!/usr/bin/env python
"""
Fast duplicate file finder.
Usage: duplicates.py <folder> [<folder>...]
Based on https://stackoverflow.com/a/36113168/300783
Modified for Python3 with some small code improvements.
"""
import os
import sys
@RellikJaeger
RellikJaeger / 00-android-bypass-certificate-pinning-and-mitm-attack-setup.md
Created August 18, 2022 17:45 — forked from approovm/00-android-bypass-certificate-pinning-and-mitm-attack-setup.md
Certificate Pinning Bypassing: Setup with Frida, mitmproxy and Android Emulator with a writable file system
@RellikJaeger
RellikJaeger / windowsinstallusingdism.md
Created August 16, 2022 17:24 — forked from pratyakshm/windowsinstallusingdism.md
Installing Windows 11 on any device using DISM

Install Windows 11 on unsupported devices

Guide to install Windows 11 on any PC (does not involve ISO modifications) This guide will take you through a clean and simple way to install Windows 11 on your device by bypassing all requirements without doing any ISO modifications. Note: Guide shows fresh installation only.

Requirements:

  1. ISO file (Link 1) (Link 2) (22000.65)
  2. Rufus Microsoft Store GitHub Website
  3. USB drive [8GB or more]