Skip to content

Instantly share code, notes, and snippets.

View mar-v-in's full-sized avatar

Marvin W mar-v-in

View GitHub Profile
@mar-v-in
mar-v-in / fonts.conf.xml
Created January 30, 2018 20:55
~/.config/fontconfig/fonts.conf
View fonts.conf.xml
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<edit name="family" mode="prepend_first">
<string>emoji</string>
</edit>
</match>
<alias>
<family>emoji</family>
<prefer><family>Noto Color Emoji</family></prefer>
View omemo-gajim-to-dino.sh
#!/bin/bash
account=$1
if [[ "" == "$account" ]]; then
echo "Usage:"
echo " $(basename $0) ACCOUNT"
echo "Transfer OMEMO key from Gajim account with JID ACCOUNT to Dino"
exit 1
fi
@mar-v-in
mar-v-in / _ZN3art9ArtMethod6InvokeEPNS_6Th_-7d05978c.js
Created October 2, 2016 00:53
Android ART native method call tracer for frida.re
View _ZN3art9ArtMethod6InvokeEPNS_6Th_-7d05978c.js
{
/**
* Called synchronously when about to call _ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc.
*
* @this {object} - Object allowing you to store state for use in onLeave.
* @param {function} log - Call this function with a string to be presented to the user.
* @param {array} args - Function arguments represented as an array of NativePointer objects.
* For example use Memory.readUtf8String(args[0]) if the first argument is a pointer to a C string encoded as UTF-8.
* It is also possible to modify arguments by assigning a NativePointer object to an element of this array.
* @param {object} state - Object allowing you to keep state across function calls.
@mar-v-in
mar-v-in / decrypt.java
Last active August 16, 2021 14:48
droidguasso.enc decrypter (including key material)
View decrypt.java
// Compile: javac decrypt.java
// Usage: java decrypt path-to/assets/droidguard/droidguasso.enc droidguasso.jar
import java.io.InputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.spec.AlgorithmParameterSpec;
import java.security.Key;
import javax.crypto.spec.IvParameterSpec;
@mar-v-in
mar-v-in / version.gradle
Created March 22, 2016 13:28
A small gradle helper script to determine package name, version code and version name for android gradle projects, including flavors.
View version.gradle
// Usage: gradle -q -I version.gradle showVersionInfo
class VersionHelper {
String project;
String packageName;
String versionCode;
String versionName;
VersionHelper(project, config) {
this(project, config.applicationId, config.versionCode, config.versionName);
View keybase.md

Keybase proof

I hereby claim:

  • I am mar-v-in on github.
  • I am larma (https://keybase.io/larma) on keybase.
  • I have a public key whose fingerprint is BD98 05D4 55D3 E8BB 7781 0105 B81E 1653 D019 17A7

To claim this, I am signing this object: