Skip to content

Instantly share code, notes, and snippets.

@dady8889
dady8889 / mtgashuffler.html
Created May 10, 2019 21:01
MTGA Land Shuffler
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>MTGA Land Shuffler</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
@dady8889
dady8889 / gist:8cf5138136c95f237bae8a714e5cb5b9
Created June 28, 2018 12:43
Sign apk with current android build platform key
java -Xmx2048m -Djava.library.path="out/host/linux-x86/lib64" -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/platform.x509.pem build/target/product/security/platform.pk8 FileNeedSign.apk FileNeedSign_Signed.apk
@dady8889
dady8889 / Generic.xaml
Last active July 25, 2023 06:42
C# WPF - Windows 10 Button Style
<Style
x:Key="ButtonFocusVisual">
<Setter
Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2" />
</ControlTemplate>
</Setter.Value>
</Setter>
#!/bin/bash
# Copyright (C) 2017 dady8889@github
#DEBUG="--dry-run"
PATCH=$(cat << EOF
153a
# Autopatch
if [[ \$AUTOPATCH == true ]]; then
echo -e "\${CLR_BLD_BLU}Autopatch\${CLR_RST}"
cd device/huawei/hi6250/patches && ./patchtool -p aospa