Skip to content

Instantly share code, notes, and snippets.

@EdSergeev
EdSergeev / android-decompile.sh
Last active May 14, 2020 07:28 — forked from nstarke/android-decompile.sh
Android APK Decompile Script
#!/bin/bash
APK=$1
if [ ! -d "$HOME/android-decompile-tools" ]; then
mkdir "$HOME/android-decompile-tools"
fi
package com.github.edsergeev.Mapper;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
public class Mapper {
private final Field[] destFields;
private final Map<String, Field> assignableSourceFieldsMap;
private final Map<String, Field> notAssignableSourceFieldsMap;
@EdSergeev
EdSergeev / jenkins-slave
Created May 31, 2016 08:12 — forked from jacksoncage/jenkins-slave
Bash script to check if a Jenkins slave node is offline and will restart node java process.
#!/bin/sh
#
# jenkins-slave: Launch a Jenkins BuildSlave instance on this node
#
# chkconfig: - 99 01
# description: Enable this node to fulfill build jobs
#
JENKINS_WORKDIR="/var/jenkins"
JENKINS_USER="jenkins"