This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "$HOME/.antigen/antigen.zsh" | |
antigen-bundle git | |
autoload -U promptinit && promptinit | |
prompt pure | |
antigen apply | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.duddu.antitampering; | |
import android.content.Context; | |
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.content.pm.PackageManager.NameNotFoundException; | |
import android.content.pm.Signature; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Program that outputs all PS2 scancodes via serial | |
#define BUFFER_SIZE 45 | |
static volatile uint8_t buffer[BUFFER_SIZE]; | |
static volatile uint8_t head, tail; | |
#define DATA_PIN 10 | |
#define IRQ_PIN 3 | |
// The ISR for the external interrupt |