Skip to content

Instantly share code, notes, and snippets.

shell@hero2qltevzw:/ $ cat /sys/kernel/debug/zswap/reject_alloc_fail
0
shell@hero2qltevzw:/ $ uptime
up time: 10 days, 03:29:19, idle time: 9 days, 06:43:34, sleep time: 6 days, 18:58:04
shell@hero2qltevzw:/ $ uname -a
Linux localhost 3.18.20-7042442 #1 SMP PREEMPT Fri Mar 18 09:50:46 KST 2016 aarch64
shell@hero2qltevzw:/ $ getprop
[af.fast_track_multiplier]: [1]
[android.telephony.apn-restore]: [1800000]
[audio.dolby.ds2.enabled]: [false]
@tophyr
tophyr / main.c
Last active October 27, 2016 01:50
#include <string.h>
#include <dlfcn.h>
#include <netdb.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdio.h>
static int __attribute__ ((noinline)) foo() {
return 1;
}
[[email protected]:~] df
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk1 1951825920 1949765312 1548608 100% 4851319 4290115960 0% /
devfs 663 663 0 100% 1148 0 100% /dev
map -hosts 0 0 0 100% 0 0 100% /net
map auto_home 0 0 0 100% 0 0 100% /home
map -fstab 0 0 0 100% 0 0 100% /Network/Servers
<launch Activity Monitor, look for who's writing at approx ~10mb/s>
CREATE TABLE target_types (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR NOT NULL,
PRIMARY KEY (id)
)
CREATE TABLE build_targets (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR UNIQUE NOT NULL,
output_file VARCHAR,
00086ce0 <_ZNSt3__18ios_baseD0Ev>:
86ce0: 55 push %ebp
86ce1: 89 e5 mov %esp,%ebp
86ce3: 53 push %ebx
86ce4: 56 push %esi
86ce5: 83 e4 f0 and $0xfffffff0,%esp
86ce8: 83 ec 10 sub $0x10,%esp
86ceb: e8 00 00 00 00 call 86cf0 <_ZNSt3__18ios_baseD0Ev+0x10>
86cf0: 5b pop %ebx
86cf1: 81 c3 14 a4 06 00 add $0x6a414,%ebx
template<size_t kDepth>
struct Tree {
Tree<kDepth - 1>* left_;
Tree<kDepth - 1>* right_;
};
template<>
struct Tree<0> {
};
template<size_t kDepth>
struct Tree {
Tree<kDepth - 1> left_;
Tree<kDepth - 1> right_;
};
template<>
struct Tree<0> {
};