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
use rustix::{event, fd, io, stdio, termios}; | |
pub fn pause() -> Result<(), io::Errno> { | |
let attrs = termios::tcgetattr(FD)?; | |
// clear any stray input from STDIN | |
let _ = termios::tcflush(FD, termios::QueueSelector::IFlush); | |
// set STDIN to trap ctrl+c, etc., disable line mode, don't echo input | |
let mut new_attrs = attrs.clone(); |
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
#!/usr/bin/python | |
# encoding: UTF-8 | |
from os import ( | |
close, open, read, write, | |
O_WRONLY, O_APPEND, O_CREAT, O_EXCL, O_NOCTTY, | |
) | |
from sys import argv | |
from zlib import compressobj, DEFLATED, Z_DEFAULT_STRATEGY |
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/sh | |
cd $FOLDER | |
screen -dm -S $NAME -p 0 -s /bin/bash /bin/bash -c "$COMMAND | tee '$LOG_DIR/$(LANG_ALL=C date --rfc-3339=seconds)'.log" < /dev/null |
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
.global reg_nop | |
.macro round | |
xor %eax, %ebx | |
xor %ebx, %ecx | |
xor %ecx, %edx | |
xor %edx, %eax | |
.endm | |
.macro reg_rol |