Skip to content

Instantly share code, notes, and snippets.

@invisiblek
invisiblek / -
Last active October 5, 2016 19:22
XDG_SESSION_ID=c157
ANDROID_HOME=/home/dp/android-sdk-linux/
TERM=xterm
SHELL=/bin/bash
CM_FIXUP_COMMON_OUT=1
GRADLE_HOME=/usr/share/java/gradle
LC_ALL=C
ANT_HOME=/usr/share/apache-ant
USER=dp
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=
@invisiblek
invisiblek / -
Last active October 4, 2016 14:37
diff --git a/lib/bot.js b/lib/bot.js
index d6c3555..ce73c29 100644
--- a/lib/bot.js
+++ b/lib/bot.js
@@ -168,6 +168,9 @@ class Bot {
}
sendToDiscord(author, channel, text) {
+ if (author == "|sgs3bot|" && (text.startsWith("http://bit.ly") || text.startsWith("http://jmp.to") || text.startsWith("http://bitly.com") || text.startsWith("http://amzn.to")))
+ return;
diff --git a/lib/bot.js b/lib/bot.js
index d6c3555..98ebdee 100644
--- a/lib/bot.js
+++ b/lib/bot.js
@@ -139,6 +139,7 @@ class Bot {
if (ircChannel) {
const username = author.username;
let text = this.parseText(message);
+ if (!(author.username == "|sgs3bot|" && (text.startsWith("http://bit.ly") || text.startsWith("http://jmp.to") || text.startsWith("http://bitly.com") || text.startsWith("http://amzn.to"))) {
let displayUsername = username;
execve("/system/bin/rild", ["rild"], [/* 22 vars */]) = 0
set_tid_address(0x7f875c8aa8) = 2992
mmap(NULL, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8750d000
mprotect(0x7f8750d000, 4096, PROT_NONE) = 0
sigaltstack({ss_sp=0x7f8750e000, ss_flags=0, ss_size=16384}, NULL) = 0
prctl(0x53564d41 /* PR_??? */, 0, 0x7f8750e000, 16384, "thread signal stack") = 0
prctl(0x53564d41 /* PR_??? */, 0, 0x7f8750d000, 4096, "thread signal stack guard page") = 0
mprotect(0x7f875c0000, 12288, PROT_READ) = 0
mprotect(0x7f875c7000, 4096, PROT_READ) = 0
mprotect(0x7f875c7000, 4096, PROT_READ|PROT_WRITE) = 0
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 1234dd9..ec637b4 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -400,8 +400,8 @@ service time_daemon /system/bin/time_daemon
service wcnss-service /system/bin/wcnss_service
class late_start
- user system
- group system wifi qcom_diag radio
@invisiblek
invisiblek / -
Created September 26, 2016 18:27
On branch master
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: AndroidManifest.xml
modified: META-INF/CERT.RSA
modified: META-INF/CERT.SF
modified: META-INF/MANIFEST.MF
modified: assets/HangoutsWearable.apk
@invisiblek
invisiblek / -
Last active September 23, 2016 18:55
cm/14.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/ $ git log --pretty=oneline aosp/marshmallow-release..aosp/nougat-release
0390252b6bcc6217966ade31d07f8b12f6f78f89 (HEAD, tag: android-cts-7.0_r1, tag: android-7.0.0_r6, tag: android-7.0.0_r5, tag: android-7.0.0_r4, tag: android-7.0.0_r3, tag: android-7.0.0_r1, tag: m/staging/cm-14.0, aosp/nougat-release, aosp/nougat-dev, aosp/nougat-cts-release) Add missing -androidkernel-{nm,size} symlinks.
4bbd73cde5ebfdf6d75e4de83901700a3675b6fe (tag: studio-2.0-rc1, tag: studio-2.0, tag: ndk-r11c, tag: ndk-r11b, tag: ndk-r11, tag: gradle_2.0.0, aosp/studio-master-dev, aosp/ndk-r11-release, aosp/brillo-m9-release, aosp/brillo-m9-dev) Create -androidkernel toolchain symlinks.
78948bc4d41c9657d7e2a1a84a21fa2a0eee2504 Update prebuilt GCC to build 2492827.
babc41b5ee0e89a140a479b680887a9004a41996 Update prebuilt GCC to build 2485757.
66012bd0f0e9917a2e1d933305d0c9265a1f7147 (aosp/brillo-m8-release, aosp/brillo-m8-dev) Add NOTICE and MODULE_LICENSE files.
788ff6cb8b
@invisiblek
invisiblek / -
Created September 23, 2016 12:17
cache directory /home/dp/.ccache
primary config /home/dp/.ccache/ccache.conf
secondary config (readonly) /etc/ccache.conf
cache hit (direct) 167663
cache hit (preprocessed) 131534
cache miss 371041
cache hit rate 44.64 %
called for link 28180
called for preprocessing 467
compile failed 1
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="teamwin" fetch="ssh://[email protected]/TeamWin" review="gerrit.twrp.me" />
<remote name="caf" fetch="git://codeaurora.org/quic/la/" />
<remote name="gitlab" fetch="ssh://[email protected]" />
<remote name="bitbucket" fetch="ssh://[email protected]" />
<project name="invisiblek/android_vendor_extra" path="vendor/extra" />
<project name="invisiblek/android_vendor_invisiblek" path="vendor/invisiblek" remote="gitlab" />
execve("/system/bin/qmuxd", ["qmuxd"], [/* 17 vars */]) = 0
mprotect(0xb6fb1000, 4096, PROT_READ) = 0
set_tid_address(0xb6fb3b40) = 5272
set_tls(0xb6fb3b80, 0xb6fb1ff4, 0x4, 0xb6fb4004, 0xbeacca74) = 0
mmap2(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f8c000
madvise(0xb6f8c000, 12288, MADV_MERGEABLE) = -1 EINVAL (Invalid argument)
mprotect(0xb6f8c000, 4096, PROT_NONE) = 0
sigaltstack({ss_sp=0xb6f8d000, ss_flags=0, ss_size=8192}, NULL) = 0
prctl(0x53564d41 /* PR_??? */, 0, 0xb6f8d000, 0x2000, 0xb6faf7bf) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f8b000