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 java.io.BufferedInputStream; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Stack; |
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
uint64_t ba = data.address; | |
uint64_t len = data.size; | |
if (data.type != 1) // not a ram | |
continue; | |
if (len < 0x10000) | |
continue; // waste of a section | |
uint64_t base_addr = ba; | |
uint64_t lenght = len; |
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
__signbit_d: | |
mov rdi, rsp | |
and rsp, 0xFFFFFFFFFFFFFFF0 ; align stack to 16 bytes | |
movaps [rsp], xmm0 | |
sub rsp, 16 | |
mov rax, [rdi+8] | |
and ~(1<<63) | |
ret |
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
int x = 0; | |
if (a == 1) | |
x = 1; | |
else | |
x = 2; | |
Predicate<Object> pred = (o) -> return (x % 2) == 0; |
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
3c3 | |
< pkgver=2.0.0_preview2_006127 | |
--- | |
> pkgver=2.1.1 | |
29c29 | |
< "${pkgname}-${pkgver}.tar.gz::https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-dev-linux-x64.latest.tar.gz" | |
--- | |
> "${pkgname}-${pkgver}.tar.gz::https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.1.301/dotnet-sdk-2.1.301-linux-x64.tar.gz" |
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
init 100 python hide: | |
class MyShow(renpy.ast.Show): | |
__slots__ = [ | |
'old_show', | |
] | |
def __init__(self, old_show): | |
# no parent init call! | |
self.old_show = old_show |
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
class SpritePlaceholder(Placeholder): | |
def __init__(self, sprite, size, base=None, full=False, flip=None, **properties): | |
Placeholder.__init__(self, base, full, flip, **properties) | |
self.sprite = sprite | |
self.size = size | |
def get_child(self): | |
if self.child: | |
return self.child |
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 os | |
import zipfile | |
import tempfile | |
import subprocess | |
import StringIO | |
import threading | |
AUTORUN = """# autogenerated | |
import sys | |
sys.path.append("{0}") |
This file has been truncated, but you can view the full file.
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
vfio_realize 0.000 pid=7107 name=b'0000:00:1f.3' group_id=0xb | |
vfio_listener_region_add_ram 257.841 pid=7107 iova_start=0x0 iova_end=0x9ffff vaddr=0x7f83af800000 | |
vfio_listener_region_add_skip 459.338 pid=7107 start=0xa0000 end=0xbffff | |
vfio_listener_region_add_ram 1.376 pid=7107 iova_start=0xc0000 iova_end=0xdffff vaddr=0x7f83ae400000 | |
vfio_listener_region_add_ram 45.653 pid=7107 iova_start=0xe0000 iova_end=0xfffff vaddr=0x7f83ae7c0000 | |
vfio_listener_region_add_ram 43.688 pid=7107 iova_start=0x100000 iova_end=0x7fffffff vaddr=0x7f83af900000 | |
vfio_listener_region_add_skip 231027.873 pid=7107 start=0xfec00000 end=0xfec00fff | |
vfio_listener_region_add_skip 0.716 pid=7107 start=0xfed00000 end=0xfed003ff | |
vfio_listener_region_add_skip 4.127 pid=7107 start=0xfee00000 end=0xfeefffff | |
vfio_listener_region_add_ram 0.609 pid=7107 iova_start=0xffe20000 iova_end=0xffffffff vaddr=0x7f83ae600000 |
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
vfio_intx_interrupt | |
vfio_intx_eoi | |
vfio_intx_enable_kvm | |
vfio_intx_disable_kvm | |
vfio_intx_update | |
vfio_intx_enable | |
vfio_intx_disable | |
vfio_msi_interrupt | |
vfio_msix_vector_do_use | |
vfio_msix_vector_release |
OlderNewer