Skip to content

Instantly share code, notes, and snippets.

View XenGi's full-sized avatar
☠️
🪄✨ hax hax

Ricardo Band XenGi

☠️
🪄✨ hax hax
View GitHub Profile

Keybase proof

I hereby claim:

  • I am xengi on github.
  • I am xengi (https://keybase.io/xengi) on keybase.
  • I have a public key ASA3tnvmQvdqRa880U7P2akizXq3IN78yIZ2lECelDHYDQo

To claim this, I am signing this object:

@XenGi
XenGi / messengers.md
Last active December 24, 2017 22:55
messengers and chat systems matrix

messengers/chat systems

messenger native android client native ios client native desktop client cli client web client e2e encrypted chat e2e encrypted group chat open source client open source server supports gifs support polls supports audio supports video supports location transmit files/photos multi device multi device encryption with pfs phone number required decentralized servers
jabber/xmpp y y y y y y (y) y y [n][1] - y y y y y y n y
signal y y (y) n n y y y y y - y y - - n n y n
whatsapp y y n n (y) y - n n - - y - - - - - y n
threema y y n - (y) y - n n y y y - - - n n n n
$ env _JAVA_OPTIONS='-Dsun.java2d.opengl=true' pycharm
Picked up _JAVA_OPTIONS: -Dsun.java2d.opengl=true
WARN: Markdown support not loaded: until build 172.SNAPSHOT < PY-173.3727.137
WARN: Vue.js not loaded: until build 172.SNAPSHOT < PY-173.3727.137
02:30:37 INFO: OS name: Linux
02:30:37 INFO: JRE version: 1.8.0_144 64-bit
02:30:37 INFO: JxBrowser version: 5.4.3
02:30:37 INFO: Starting IPC...
02:30:37 INFO: Starting IPC Server...
02:30:37 INFO: Starting IPC Process...
#!/bin/sh
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# Setting this, so the repo does not need to be given on the commandline:
export BORG_REPO='ssh://backup@1.2.3.4:22/srv/backup/repo'
export BORG_RSH='ssh -i /home/user/.ssh/id_ed25519'
@XenGi
XenGi / prompt.sh
Last active November 6, 2017 15:21
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
echo "[${BRANCH}${STAT}]"
else
echo ""
fi
# howto flash aospa (google pixel, codename: sailfish)
## get the tools
- you need `adb` and `fastboot`
- a usb cable
## get the files
- custom recovery: https://twrp.me/google/googlepixel.html
[40257.571741] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[40257.572209] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[40257.689069] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[40257.689689] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[40257.773154] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[40261.163528] wlan0: authenticate with 04:18:d6:18:06:d0
[40261.172987] wlan0: send auth to 04:18:d6:18:06:d0 (try 1/3)
[40261.178487] wlan0: authenticated
[40261.182686] wlan0: associate with 04:18:d6:18:06:d0 (try 1/3)
[40261.183681] wlan0: RX AssocResp from 04:18:d6:18:06:d0 (capab=0x11 status=0 aid=3)
@XenGi
XenGi / rules-both.iptables
Created September 3, 2017 16:23 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
[235824.472445] iwlwifi 0000:03:00.0: Queue 4 is active on fifo 1 and stuck for 10000 ms. SW [207, 6] HW [207, 6] FH TRB=0x0c01040de
[235824.472598] iwlwifi 0000:03:00.0: Microcode SW error detected. Restarting 0x2000000.
[235824.472748] iwlwifi 0000:03:00.0: Start IWL Error Log Dump:
[235824.472751] iwlwifi 0000:03:00.0: Status: 0x00000000, count: 6
[235824.472753] iwlwifi 0000:03:00.0: Loaded firmware version: 27.455470.0
[235824.472755] iwlwifi 0000:03:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN
[235824.472757] iwlwifi 0000:03:00.0: 0x200002F0 | trm_hw_status0
[235824.472759] iwlwifi 0000:03:00.0: 0x00000000 | trm_hw_status1
[235824.472760] iwlwifi 0000:03:00.0: 0x00024358 | branchlink2
[235824.472762] iwlwifi 0000:03:00.0: 0x00039176 | interruptlink1