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
/* global Buffer */ | |
/** | |
* Decrypt KeePass files | |
* | |
* There are some sources where you can find description about the keepass file format | |
* https://gist.githubusercontent.com/msmuenchen/9318327/raw/f6cbc07c01297f129700b7e14e1013253ab8b44f/gistfile1.txt | |
* http://blog.sharedmemory.fr/en/2014/04/30/keepass-file-format-explained/ | |
*/ |
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
import gnu.trove.map.TObjectLongMap; | |
import gnu.trove.map.hash.TObjectLongHashMap; | |
import org.jf.dexlib2.Opcode; | |
import org.jf.dexlib2.iface.ClassDef; | |
import org.jf.dexlib2.iface.DexFile; | |
import org.jf.dexlib2.iface.Field; | |
import org.jf.dexlib2.iface.Method; | |
import org.jf.dexlib2.iface.MethodImplementation; | |
import org.jf.dexlib2.iface.instruction.Instruction; |
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
#!/usr/bin/env bash | |
# | |
# This script replaces "ro.debuggable=1" with "ro.debuggable=0" in the | |
# default.prop file in a ROM's boot.img and gives you the patched boot.img. | |
# | |
# Prerequisites: | |
# - A UNIX system (with `unzip`) | |
# - These tools added to your PATH: | |
# - Android dev tools (adb/fastboot) | |
# - Various tools in "bootimg_tools_7.8.13.zip" from https://goo.gl/48Sszu |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- | |
You need Noto Color Emoji installed in your machine. | |
Save this file in ~/.config/fontconfig/conf.d/ or /etc/fonts/conf.d/ (system-wide) | |
--> | |
<fontconfig> | |
<match target="scan"> | |
<test name="family"> |
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
Convention: Byte array notation as it would appear in a hexeditor. | |
= Layout= | |
KDBX files, the keepass database files, are layout as follows: | |
1) Bytes 0-3: Primary identifier, common across all kdbx versions: | |
private static $sigByte1=[0x03,0xD9,0xA2,0x9A]; | |
2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1) |
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
<span lang="face with tears of joy"> 😂 </span> | |
<span lang="grinning face with smiling eyes"> 😄 </span> | |
<span lang="grinning face with sweat"> 😅 </span> | |
<span lang="face with rolling eyes"> 🙄 </span> | |
<span lang="smirking face"> 😏 </span> | |
<span lang="smiling face with halo"> 😇 </span> | |
<span lang="grinning face"> 😀 </span> | |
<span lang="squinting face with tongue"> 😝 </span> | |
<span lang="grinning face with big eyes"> 😃 </span> | |
<span lang="unamused face"> 😒 </span> |
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
import numpy as np | |
def find_closest_orthogonal_matrix(A): | |
''' | |
Find closest orthogonal matrix to *A* using iterative method. | |
Bases on the code from REMOVE_SOURCE_LEAKAGE function from OSL Matlab package. | |
Args: | |
A (numpy.array): array shaped k, n, where k is number of channels, n - data points |
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
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript | |
*/ | |
$('a').each(function(i){ | |
if ($.trim($(this).text()) == 'MOBI') { | |
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
document.getElementById('dl_iframe_'+i).src = $(this).data('web'); | |
} | |
}); |
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
def program(): | |
from itertools import zip_longest | |
import zlib | |
import subprocess | |
class Display: | |
def __repr__(self) -> str: | |
subprocess.run([ | |
"feh", | |
"-xYFqZ", |
OlderNewer