Gain adb root.
$ adb shell am start -n com.android.engineeringmode/.qualcomm.DiagEnabled --es "code" "angela"
Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.
| export module RelationshipModel { | |
| // Constants for the model | |
| const k1 = 0.5; // Influence of self-satisfaction on relationship satisfaction | |
| const k2 = 0.3; // Influence of jealousy/admiration on relationship satisfaction | |
| const k3 = 0.2; // Influence of motivated opportunities on relationship satisfaction | |
| const k4 = 0.6; // Influence of employment success on self-satisfaction | |
| const k5 = -0.4; // Impact of jealousy on self-satisfaction (negative implies reducing self-satisfaction) | |
| const k6 = 0.2; // Impact of opportunities on self-satisfaction | |
| const k7 = 0.5; // Sensitivity of jealousy/admiration to differences in success | |
| const k8 = 0.3; // How desire for success affects jealousy/admiration |
| /** | |
| * RpcDurableObject is a base class for DurableObjects that want to be called in an RPC style. Derive your object | |
| * from this class and implement your methods as normal methods. There is no need to implement the fetch method. Then, | |
| * use the buildRpcClient function to create a proxy object and call methods on the durable object as if it were a | |
| * local object! | |
| * | |
| * This hides the complexity of calling a Durable Object from a worker and allows you to focus on the business logic | |
| * of your application. It also allows you to use TypeScript to type your RPC methods; your worker and the proxy object | |
| * should both implement the same interface containing the RPC methods. | |
| * |
| #!/bin/bash | |
| # Drop this script in /usr/local/bin and run it with sudo to install/update to the latest maven. Keeps older versions around just in case. | |
| # Works for me on Ubuntu, YMMV. | |
| set -e | |
| # Make sure we can write to /opt | |
| if [ ! -w "/opt" ]; then | |
| echo "/opt is not writeable. Try using sudo!" |
| # Cache maven dependencies as an intermediate docker image | |
| # (This only happens when pom.xml changes or you clear your docker image cache) | |
| FROM maven:3-adoptopenjdk-15 as dependencies | |
| COPY pom.xml /build/ | |
| WORKDIR /build/ | |
| RUN mvn --batch-mode dependency:go-offline dependency:resolve-plugins | |
| # Build the app using Maven and the cached dependencies | |
| # (This only happens when your source code changes or you clear your docker image cache) | |
| # Should work offline, but https://issues.apache.org/jira/browse/MDEP-82 |
| package com.gabrielbauman.gist; | |
| import java.util.Arrays; | |
| /** | |
| * A very simple (but useful) method of getting basic finite state machine behaviour using a Java enum. | |
| * | |
| * <code> | |
| * EnumStateMachine state = NEUTRAL; | |
| * state = state.transitionTo(FIRST); |
Gain adb root.
$ adb shell am start -n com.android.engineeringmode/.qualcomm.DiagEnabled --es "code" "angela"
Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.
I hereby claim:
To claim this, I am signing this object:
| package com.gabrielbauman.gist; | |
| import java.util.regex.Pattern; | |
| public enum CardType { | |
| UNKNOWN, | |
| VISA("^4[0-9]{12}(?:[0-9]{3}){0,2}$"), | |
| MASTERCARD("^(?:5[1-5]|2(?!2([01]|20)|7(2[1-9]|3))[2-7])\\d{14}$"), | |
| AMERICAN_EXPRESS("^3[47][0-9]{13}$"), |
| package com.gabrielbauman.gists; | |
| import javax.servlet.*; | |
| import javax.servlet.annotation.WebFilter; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; | |
| import java.io.IOException; | |
| @WebFilter(urlPatterns = "/") | |
| public class OpenshiftHaproxyFilter implements Filter { |
| #!/bin/bash | |
| # Set this to the email address you use with unblock.us. | |
| UNBLOCKUS_EMAIL="[email protected]" | |
| curl \ | |
| --url http://check.unblock-us.com/ \ | |
| --form "validated=1&email=${UNBLOCKUS_EMAIL}&rid=0" \ | |
| --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Fi27.0" -q \ | |
| &> /dev/null |