Skip to content

Instantly share code, notes, and snippets.

View Eugeny's full-sized avatar

Eugene Eugeny

View GitHub Profile
eugeny@eugeny-thinkpad ~> ssh ajenti.org df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.4G 4.1G 4.9G 46% /
eugeny@eugeny-thinkpad ~> ssh instacod.es df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 4.5G 3.7G 647M 86% /
/dev/xvdb1 40G 18G 20G 47% /data
<directory>
<name>00E7</name>
<readonly>false</readonly>
<creationtime>2013-04-24T15:28:13.530109633Z</creationtime>
<changetime>2013-04-24T15:31:52.019919454Z</changetime>
<modifytime>2013-04-24T15:31:52.019919454Z</modifytime>
<accesstime>2013-04-24T15:28:13.530109633Z</accesstime>
<backuptime>2013-04-24T15:28:13.530109633Z</backuptime>
<fileuid>7075</fileuid>
<contents>
eugeny@eugeny-thinkpad ~/tmp/b> find ..
..
../a
../a/__init__.py
../a/__init__.pyc
../b
../b/__init__.pyc
../b/script.py
../p.pyc
eugeny@eugeny-thinkpad ~/tmp/b> find .. | grep -v pyc
eugeny@eugeny-thinkpad ~/tmp> find | grep -v pyc
.
./a
./a/__init__.py
./b
./b/__init__.py
./p.py
eugeny@eugeny-thinkpad ~/tmp> cat a/__init__.py
def foo():
pass
void isrq6(isrq_registers_t* regs) {
10000b: 55 push rbp
10000c: 48 89 e5 mov rbp,rsp
10000f: 48 83 ec 10 sub rsp,0x10
100013: 48 89 7d f8 mov QWORD PTR [rbp-0x8],rdi
klog('e', "Invalid opcode, rip=%lx", regs->rip);
100017: 48 8b 45 f8 mov rax,QWORD PTR [rbp-0x8]
10001b: 48 8b 80 98 00 00 00 mov rax,QWORD PTR [rax+0x98]
100022: 48 89 c2 mov rdx,rax
100025: 48 be 28 20 19 00 00 movabs rsi,0x192028
@Eugeny
Eugeny / gist:5527868
Created May 6, 2013 20:22
Ajenti Test Pilot FAQ

What

Test Pilots is a closed beta-testing program that I'm running before release of Ajenti 1.x

When

Sign up now, receive e-mail when you're selected for testing.

#include <lang/libc-ext.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
char * normalize_path(char* pwd, const char * src, char* res) {
size_t res_len;
size_t src_len = strlen(src);
@Eugeny
Eugeny / gist:5088669
Last active December 14, 2015 12:48 — forked from NightBrownie/gist:5088663
[BITS 16]
[ORG 0x7c00]
;setting to protected mode
;---------------------------------------------------------------
;save the registers data
pushf
pusha
push ds
import socket
import gevent
from gevent.pywsgi import WSGIServer
addrs = socket.getaddrinfo('::1', 8000, socket.AF_INET6, 0, socket.SOL_TCP)
bind_spec = addrs[0][-1]
listener = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
listener.bind(bind_spec)
import subprocess
for line in open('in.txt').read().splitlines():
subprocess.call(['bash', './certs.sh', 'arg1', line, 'arg3'])