View tree.cpp
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
template<size_t kDepth> | |
struct Tree { | |
Tree<kDepth - 1> left_; | |
Tree<kDepth - 1> right_; | |
}; | |
template<> | |
struct Tree<0> { | |
}; |
View tree.cpp
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
template<size_t kDepth> | |
struct Tree { | |
Tree<kDepth - 1>* left_; | |
Tree<kDepth - 1>* right_; | |
}; | |
template<> | |
struct Tree<0> { | |
}; |
View gist:ffafac4044fc003f5ef932a4b920d143
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
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 |
View gist:d8ead175ba76df511cffa57bc1f3ea36
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
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, |
View gist:a656158d0511871c4c3b1f3b5a03d8c2
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
[csarbora@csarbora-mbp-2.local:~] 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> |
View main.c
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 <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; | |
} |
View gist:45025c87fb19debfc11fc54703673a80
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
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] |
View build.log
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
Copying: /home/csarbora/cm/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-jarjar.jar | |
Copying: /home/csarbora/cm/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/emma_out/lib/classes-jarjar.jar | |
Copying: /home/csarbora/cm/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar | |
Aidl Preprocess: /home/csarbora/cm/out/target/common/obj/framework.aidl | |
Docs droiddoc: /home/csarbora/cm/out/target/common/docs/api-stubs | |
frameworks/base/media/java/android/media/SRTRenderer.java:168: warning: '_' used as an identifier | |
final int _ = 0; | |
^ | |
(use of '_' as an identifier might not be supported in releases after Java SE 8) | |
frameworks/base/media/java/android/media/SRTRenderer.java:187: warning: '_' used as an identifier |
View forkall.rb
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/ruby | |
require "json" | |
user = <INSERT USERNAME> | |
pass = <INSERT PASSWORD> | |
page = 1 | |
begin | |
resp = `curl -u #{user}:#{pass} -s "https://api.github.com/users/cyanogenmod/repos?per_page=100&page=#{page}"` | |
repos = JSON.load(resp) |
View exports
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
/ localhost(ro,async,insecure,no_subtree_check,crossmnt,fsid=0,sec=sys,all_squash,anonuid=572790,anongid=100) | |
/data/users/csarbora localhost(rw,sync,insecure,no_subtree_check,sec=sys,all_squash,anonuid=572790,anongid=100) |
NewerOlder