Skip to content

Instantly share code, notes, and snippets.

View gjedeer's full-sized avatar
💭
Fucking kittens

GDR! gjedeer

💭
Fucking kittens
View GitHub Profile
05-30 19:55:19.451 1247 1247 W : debuggerd: handling request: pid=5904 uid=10079 gid=10079 tid=5904
05-30 19:55:19.509 5947 5947 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-30 19:55:19.509 5947 5947 F DEBUG : Build fingerprint: 'google/sdk_google_phone_x86/generic_x86:7.0/NYC/3761695:userdebug/dev-keys'
05-30 19:55:19.509 5947 5947 F DEBUG : Revision: '0'
05-30 19:55:19.509 5947 5947 F DEBUG : ABI: 'x86'
05-30 19:55:19.509 5947 5947 F DEBUG : pid: 5904, tid: 5904, name: nkyg.funkytunes >>> com.github.funkyg.funkytunes <<<
05-30 19:55:19.509 5947 5947 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
05-30 19:55:19.510 5947 5947 F DEBUG : Abort message: 'art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal continuation byte 0x34'
05-30 19:55:19.510 5947 5947 F DEBUG : eax 00000000 ebx 00001710 ecx 00001710 edx 00000006
05-30 19:55:19.510 5947 5947 F D
@gjedeer
gjedeer / hosts
Created September 8, 2017 13:36
MiBox 3 pro call home block list
127.0.0.1 111.94.62.42.in-addr.arpa
127.0.0.1 12.200.206.111.in-addr.arpa
127.0.0.1 171.176.77.52.in-addr.arpa
127.0.0.1 196.170.220.52.in-addr.arpa
127.0.0.1 48.183.251.54.in-addr.arpa
127.0.0.1 57.94.62.42.in-addr.arpa
127.0.0.1 78.204.243.124.in-addr.arpa
127.0.0.1 8.33.134.120.in-addr.arpa
127.0.0.1 a.netcheck.gallery.pandora.xiaomi.com
127.0.0.1 api.ad.xiaomi.com
@gjedeer
gjedeer / mibox-firewall.sh
Created September 8, 2017 17:38
Prevent Xiaomi MiBox Pro 3 from spying on you (and downloading doubtious updates). Obtained from a wireshark session with MiBox not playing anything. Yes: 76 IP addresses.
MIBOX_IP=192.168.1.91
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 103.235.47.89 -j REJECT
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 104.16.228.14 -j REJECT
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 104.16.230.14 -j REJECT
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 111.206.200.12 -j REJECT
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 111.206.200.2 -j REJECT
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 111.206.37.190 -j REJECT
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 114.54.23.26 -j REJECT
/usr/sbin/iptables -A wanout -s $MIBOX_IP -d 120.134.33.8 -j REJECT

Keybase proof

I hereby claim:

  • I am gjedeer on github.
  • I am gdr (https://keybase.io/gdr) on keybase.
  • I have a public key whose fingerprint is 11C1 B15A 5D5D D662 E469 928A EBDA 6B97 4ED3 D2B7

To claim this, I am signing this object:

@gjedeer
gjedeer / pgpKeySelection.java
Last active October 19, 2018 20:30
BouncyCastle OpenPGP proper key selection for encryption
/* Given an ASCII armored key, returns a subkey that's suitable for encryption and, possibly, non-expired */
private PGPPublicKey getPublicKey() throws PGPException {
final String pgpKey = "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBE0UsbQBEADKSKYA6kdyEYWPuaES5VTV7jR/Eazz4UGCTTYBlDhY2qlu/WTW\njmQmSTCImERBb8rN2DijT3oZaOA+UTdKcWM13IB3Cgebk8p1kKrucqblDDZXz9Jc\n3RLrrH0NFTmT4ElgHIH4T08Vfk72Cz8G+xPo7HQ8V1UO0TQMjbmu0iyRPbnNuYN2\nYVC9mPss1ZLHp1hKOd1lKHWdqK3O9JhaFje30NGzBcvvbbBgFt09DbK4P2aFXJpb\nauOlgJJQW8Z8j6Z/Cq1lV3PtPQtGDHVAMZKMZjit8qkFMUBNPlAy94UcgjsDk4kt\nWKE9CxBSMbPYVHfO6X0ojyZQtaIx8zuI8qvLsIwLF+uVVwVN0xAm7/fexzKeoa3g\nWAxp86Oq2xD9GbNTRbPtIf1cEAkTx9TgEMfPBtXtxlHxpQs3nAnDulH/8TNBy0JY\ntzUDF+uVHbgp2wjDU96qb5h4jtrFaxReXBLfkwvc8qp9A+1xFIrdXVzIbx87e5Gk\nOPjwotHNJKx1gSUjpxJTi1LwRNoWrBAVgRmOaVryCNc9jtW3KlKaXFTC4oU/upsy\nm+qUXK3bs7QdQA7CxC/rQz0G7nEX3HKfjZ8mbfnT2J9lGy/Fe8SklyFvMX5LPFkC\nHGBR1Y4KBLncqQjBybR7ozYyPg8d0CGZxUmqPnh/YDplPkX82OeJWfjrrQARAQAB\ntBRHRFIhXyA8Z2RyQGdkci5uYW1lPokCOgQTAQIAJAIbAwIeAQIXgAIZAQUCWoVD\
@gjedeer
gjedeer / htc.kmap
Created May 2, 2019 21:18
Linux console keymap for HTC Vision / Desire Z
keymaps 0-15
keycode 1 = Escape Escape
alt keycode 1 = Meta_Escape
keycode 2 = one exclam
alt keycode 2 = Meta_one
control alt keycode 2 = 0x0085
keycode 3 = two at at
control keycode 3 = nul
shift control keycode 3 = nul
alt keycode 3 = Meta_two
@gjedeer
gjedeer / appimages.md
Last active May 30, 2019 10:38
Creating appimages
@gjedeer
gjedeer / build.sh
Created July 3, 2019 11:22
Build Wireshark appimage in a Ubuntu Disco docker image
sed -e 's/^# deb-src /deb-src /g' -i /etc/apt/sources.list
apt update
apt install git doxygen libappimage-dev fuse wget rsync cmake build-essential checkinstall libcurl4-openssl-dev file vim gnupg libsystemd-dev lemon
apt build-dep wireshark
wget https://1.na.dl.wireshark.org/src/wireshark-3.0.2.tar.xz
tar axf wireshark-3.0.2.tar.xz
sed -e 's/APPIMAGETOOL_EXECUTALBE/APPIMAGETOOL_EXECUTABLE/g' -i wireshark-3.0.2/CMakeLists.txt
mkdir /build
cd /build/
<?php
$content=<<<EOF
<span class="cencw" style=""><p>Dzięki za wczoraj!</p><a href="https://facebook.com/story.php?story_fbid=2584746148268179&amp;id=457365507672931&amp;_ft_=mf_story_key.2584746148268179%3Atop_level_post_id.2584746148268179%3Atl_objid.2584746148268179%3Acontent_owner_id_new.457365507672931%3Athrowback_story_fbid.2584746148268179%3Apage_id.457365507672931%3Astory_location.4%3Astory_attachment_style.share%3Apage_insights.%7B%22457365507672931%22%3A%7B%22page_id%22%3A457365507672931%2C%22actor_id%22%3A457365507672931%2C%22dm%22%3A%7B%22isShare%22%3A1%2C%22originalPostOwnerID%22%3A0%7D%2C%22psn%22%3A%22EntStatusCreationStory%22%2C%22post_context%22%3A%7B%22object_fbtype%22%3A266%2C%22publish_time%22%3A1573762976%2C%22story_name%22%3A%22EntStatusCreationStory%22%2C%22story_fbid%22%3A%5B2584746148268179%5D%7D%2C%22role%22%3A1%2C%22sl%22%3A4%2C%22targets%22%3A%5B%7B%22actor_id%22%3A457365507672931%2C%22page_id%22%3A457365507672931%2C%22post_id%22%3A2584746148268179%2C%22role%22%3A1%2C%22share_id%
@gjedeer
gjedeer / docker-compose.yml
Created June 23, 2020 15:49
Mattermost docker-compose file without building, with ephemeral storage only - for testing. Starts in a minute from "docker-compose up"
version: "3"
services:
db:
image: mattermost/mattermost-prod-db
read_only: true
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro