###/proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 3400+
stepping : 2
microcode : 0x62
cpu MHz : 1000.000
diff -uprN -X linux-3.18-original/Documentation/dontdiff linux-3.18-original/drivers/platform/x86/apple-gmux.c linux-3.18-patched/drivers/platform/x86/apple-gmux.c | |
--- linux-3.18-original/drivers/platform/x86/apple-gmux.c 2014-12-07 23:21:05.000000000 +0100 | |
+++ linux-3.18-patched/drivers/platform/x86/apple-gmux.c 2014-12-14 22:14:54.925688939 +0100 | |
@@ -22,6 +22,10 @@ | |
#include <linux/delay.h> | |
#include <linux/pci.h> | |
#include <linux/vga_switcheroo.h> | |
+#include <linux/seq_file.h> | |
+#include <linux/uaccess.h> | |
+#include <linux/fs.h> |
###/proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 3400+
stepping : 2
microcode : 0x62
cpu MHz : 1000.000
#!/usr/bin/env python | |
# Usage: ./bfc.py source.bf > out.S && as out.S -o out.o && ld out.o | |
import sys | |
print(""" | |
.intel_syntax noprefix | |
.global values | |
.data | |
cells: |
#!/usr/bin/env python3 | |
# Usage: ./bfi.py source.bf | |
import sys | |
with open(sys.argv[1]) as f: | |
py_program = "import sys;cells = [0]*30000;ptr = 0\n" | |
level = 0 | |
for i in f.read(): | |
py_program += " "*level | |
if i == '>': |
#!/usr/bin/env python3 | |
# Usage: ./bfi.py source.bf | |
import sys | |
with open(sys.argv[1]) as f: | |
program = f.read() | |
cells = [0]*30000 | |
ptr = 0 | |
pc = 0 | |
label_stack = [] |
#!/usr/bin/env python3 | |
# Usage: ./tlsrand server port | |
import socket | |
import sys | |
hello = bytearray([3, 3]) # Version: TLS 1.2 | |
hello += bytearray([0]*32) # Random |
#!/bin/bash | |
apt-get install -y bzip2 gzip xz-utils php5-cli php5-xdebug wget time build-essential bc | |
rm -rf vpsmark-test | |
mkdir vpsmark-test | |
cd vpsmark-test | |
model=$(grep '^model name' -m1 /proc/cpuinfo | sed -r "s/model name.*: *(.*)/\1/") | |
cores=$(grep -c ^processor /proc/cpuinfo) |
#!/usr/bin/env python3 | |
# Usage : ./sshrand.py server port | |
import socket | |
import sys | |
s = socket.socket() | |
s.connect((sys.argv[1], int(sys.argv[2]))) | |
version = s.recv(4096) |
Tested with Debian Stretch (Linux 4.3), MSI - Radeon R9 390X Gaming 8G
lspci -v
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT [Radeon R9 290X] (rev 80) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] Hawaii XT [Radeon R9 290X]
Flags: bus master, fast devsel, latency 0, IRQ 132