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
[Unit] | |
Description=Etcd | |
After=network-online.target | |
[Service] | |
Slice=machine.slice | |
Delegate=true | |
ExecStartPre=-/opt/rkt/rkt gc --grace-period=0s | |
ExecStartPre=-/opt/rkt/rkt fetch --insecure-options=all http://repo.example.com/etcd-v2.3.6-linux-amd64.aci |
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
# On dirs | |
$ mkdir /tmp/bm-dir ; echo foo > /tmp/bm-dir/file ; sudo systemd-run -t -p ReadOnlyDirectories=/tmp/bm-dir/ sh -c 'echo bar >> /tmp/bm-dir/file; cat /tmp/bm-dir/file' | |
mkdir: cannot create directory ‘/tmp/bm-dir’: File exists | |
Running as unit run-r637b299dad174d8ba47b0a54df144b8b.service. | |
Press ^] three times within 1s to disconnect TTY. | |
/bin/sh: 1: cannot create /tmp/bm-dir/file: Read-only file system | |
foo | |
$ mkdir /tmp/bm-dir ; echo foo > /tmp/bm-dir/file ; sudo systemd-run -t -p InaccessibleDirectories=/tmp/bm-dir/ sh -c 'echo bar >> /tmp/bm-dir/file; cat /tmp/bm-dir/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
#include <errno.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> |
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
libargon2.so.0 libargon2 #MINVER# | |
allocate_memory@Base 0~20151206 | |
argon2_compare@Base 0~20151206 | |
argon2_core@Base 0~20151206 | |
argon2_hash@Base 0~20151206 | |
argon2_thread_create@Base 0~20151206 | |
argon2_thread_exit@Base 0~20151206 | |
argon2_thread_join@Base 0~20151206 | |
argon2_verify@Base 0~20151206 | |
argon2d@Base 0~20151206 |
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 python | |
# -*- coding: utf-8 -*- | |
""" | |
Scan authoritative NS trying to AXFR zones. | |
Result dictionary is as follows: | |
{ | |
'domain': 'example.com', | |
'axfr_answers': {'ns1.example.com': [], | |
'ns2.example.com': [], |
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
diff --git a/src/unix/linux-core.c b/src/unix/linux-core.c | |
index 11a67eb..b96b44d 100644 | |
--- a/src/unix/linux-core.c | |
+++ b/src/unix/linux-core.c | |
@@ -33,6 +33,7 @@ | |
#include <sys/prctl.h> | |
#include <sys/sysinfo.h> | |
#include <unistd.h> | |
+#include <signal.h> | |
#include <fcntl.h> |
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
diff --git a/src/emu/ui/ui.c b/src/emu/ui/ui.c | |
index c3041a7..0eee040 100644 | |
--- a/src/emu/ui/ui.c | |
+++ b/src/emu/ui/ui.c | |
@@ -694,6 +694,9 @@ void ui_manager::draw_text_full(render_container *container, const char *origs, | |
break; | |
curwidth -= get_font()->char_width(lineheight, aspect, schar); | |
+ // if back to 0, there is no space to draw even a single char | |
+ if (curwidth <= 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
function main() | |
camx = band(mem:read_i16(0x2034E2),0xFF80)/0x80 | |
--Sprites | |
--spradr 0x20869A, 72 offset | |
adr = 0x20869A - 0x72 | |
for a = 0,0x60,1 do | |
adr = adr + 0x72 | |
local active = band(mem:read_u8(adr),0x80)/0x80 | |
local y = band(mem:read_i16(adr + 0x2A),0xFF80)/0x80 |
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
$ apt-cache policy libnfc-bin | |
Installed: 1.7.1-2 | |
*** 1.7.1-2 0 | |
500 http://ftp.de.debian.org/debian/ jessie/main amd64 Packages | |
$ LIBNFC_DEFAULT_DEVICE="pn532_uart:/dev/ttyACM1" nfc-scan-device | |
nfc-scan-device uses libnfc 1.7.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
-- enumerate screens | |
-- (main screen is often tagged as ":screen") | |
for i,v in pairs(manager:machine().screens) do print(i) end; | |
-- print main screen width/height | |
print(manager:machine().screens[":screen"]:width()) | |
print(manager:machine().screens[":screen"]:height()) | |
-- draw stuff on main screen: text, line, box | |
-- (all colors are in argb format) |