adb forward tcp:7080 tcp:8080
# from another terminal on same machine (or run adb cmd directly)
adb shell 'tar --exclude=/data/media/0/TWRP -Jcvf - /data/media | nc -p 8080 -l 1>/dev/null'
# original terminal
nc -w15 localhost 7080 > media.tar.gz
This file contains hidden or 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
00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 07) | |
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07) | |
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) | |
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31) | |
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31) | |
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31) | |
00:1b.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Root Port #17 (rev f1) | |
00:1b.3 PCI bridge: Intel Corporation Sunrise Point-H PCI Root Port #20 (rev f1) | |
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1) | |
00:1c.7 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #8 (rev f1) |
This file contains hidden or 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
<domain type='kvm' id='1' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>Win10</name> | |
<uuid>4fd8244a-6bd8-4065-be0a-df53872e94ed</uuid> | |
<memory unit='KiB'>14680064</memory> | |
<currentMemory unit='KiB'>14680064</currentMemory> | |
<memoryBacking> | |
<hugepages/> | |
</memoryBacking> | |
<vcpu placement='static'>8</vcpu> | |
<cputune> |
This file contains hidden or 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 struct | |
import time | |
import sys | |
import base64 | |
import hashlib | |
import datetime | |
def parse_thread_index(index: 'str') -> ("tuple (str, array [datetime.datetime, ...])"): | |
import binascii |
This file contains hidden or 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
<?php | |
/* | |
* Generates strings appropriate to use as values for Microsoft's annoying Thread-Index email header. | |
* This is how Outlook groups email threads in conversation view. | |
* | |
* These headers are base64 encoded 22-byte binary strings in the format: | |
* 6 bytes: The first 6 significant bytes from a FILETIME timestamp. | |
* 16 bytes: A unique GUID in hex. | |
* |
This file contains hidden or 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
switch (true) { | |
case whatever && whatever2: | |
doSomething(); | |
break; | |
case whatever: | |
doSomethingElse(); | |
break; | |
default: | |
doNothing(); | |
break; |
This file contains hidden or 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
[[email protected] tmp]$ git clone https://github.com/Elgg/Elgg.git | |
Cloning into 'Elgg'... | |
remote: Reusing existing pack: 111652, done. | |
remote: Counting objects: 55, done. | |
remote: Compressing objects: 100% (52/52), done. | |
remote: Total 111707 (delta 19), reused 9 (delta 2) | |
Receiving objects: 100% (111707/111707), 31.02 MiB | 2.53 MiB/s, done. | |
Resolving deltas: 100% (70265/70265), done. | |
Checking connectivity... done. |
This file contains hidden or 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
<script type="text/javascript"> | |
/* <![CDATA[ */ | |
Math.random = function (a, c, d, b) { | |
return function () { | |
return 300 > d++ ? (a = (1103515245 * a + 12345) % b, a / b) : c() | |
} | |
}(1287608430, Math.random, 0, 1 << 21); | |
(function () { | |
function b() { |
This file contains hidden or 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
#!/bin/bash | |
LOG="/tmp/mail.log" | |
echo $argv >> ${LOG}; | |
while read -r -a array; do | |
echo ${array[*]} >> ${LOG} | |
done | |
exit 0; |
This file contains hidden or 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
<?php | |
/** | |
* Icon display | |
* | |
* @package ElggGroups | |
*/ | |
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); | |
$group_guid = get_input('group_guid'); |