Skip to content

Instantly share code, notes, and snippets.

@coaxial
coaxial / gist:d158ce05d9a583c8e0533693cdbed134
Created March 19, 2022 07:49 — forked from maxpou/gist:2e8a9bc1f1f6e9c3f62c588b60f4482d
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@coaxial
coaxial / xterm-256color
Last active October 27, 2020 09:01
terminfo for xterm-256color and xterm-256color:Tc
# Reconstructed via infocmp from file: /lib/terminfo/t/tmux-256color
# Create a similar file with `infocmp -x tmux-256color > tmux-256color
# Import to target system with `tic -x xterm-256color (or whatever name you gave this file)
# From https://unix.stackexchange.com/questions/574669
tmux-256color|tmux with 256 colors,
OTbs, OTpt, am, hs, km, mir, msgr, xenl, AX, G0,
colors#0x100, cols#80, it#8, lines#24, pairs#0x10000, U8#1,
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=\r,
@coaxial
coaxial / README.md
Last active December 18, 2024 09:18
unpinning SSL certs on Android apps with Frida to inspect network traffic with mitmproxy

Most of the time, applications won't pin the certificate. Running mitmproxy and passing all Android traffic through it is as simple as adb connect <IP> && adb shell settings put global http_proxy <mitmproxy host>:<mitmproxy port> (or use Android's UI)

Some applications, however, pin the certificate and will refuse to do any network calls if using mitmproxy.

Luckily, Frida is here!

This assumes Android x86 is running in a VM, that you are a developer in Android (tap the build version enough times), adb debugging is enabled, and that android tools are installed on the host.

  • start mitmproxy on host
  • visit mitm.it on the target (after setting the proxy) and install the spoofed cert
# file stored at ~/.vim/UltiSnips/yaml.snippets
snippet trav ".travis.yml outline" b
---
jobs:
include:
- stage: test
language: ${1:python}
python: "${2:2.7}"
cache: ${3:pip}
${4:services:
@coaxial
coaxial / config.yaml
Created May 10, 2018 17:21
borgmatic example config
# Where to look for files to backup, and where to store those backups. See
# https://borgbackup.readthedocs.io/en/stable/quickstart.html and
# https://borgbackup.readthedocs.io/en/stable/usage.html#borg-create for details.
location:
# List of source directories to backup (required). Globs and tildes are expanded.
source_directories:
- /home
- /etc
- /var/log/syslog*
@coaxial
coaxial / mv_docker_container.sh
Last active August 17, 2017 00:28
move docker containers to another host
# from https://www.reddit.com/r/docker/comments/6gnmsz/way_of_migrating_docker_containers_to_new_host/
service docker stop
tar -C /var/lib -czf /tmp/docekrlib.tgz docker
## move dockerlib.tgz to new sever
tar -C /var/lib -xzf /tmp/docekrlib.tgz
service docker restart
@coaxial
coaxial / ublock_origin_rule
Created June 10, 2017 01:24
Block LinkedIn's recommended jobs and courses
! Block linkedin recommended jobs and lynda courses
linkedin.com##div[data-id*=":lyndaCourse:"]
linkedin.com##div[data-id*=":jobPosting:"]
@coaxial
coaxial / ublock_origin_rule
Created June 10, 2017 01:22
Block twitter promoted tweets
! Block twitter promoted tweets
twitter.com##.tweet[data-card2-type="promo_website"]
@coaxial
coaxial / ir-libreelec.md
Last active July 1, 2023 05:42
How to setup an infrared remote on LibreELEC/Kodi on RPI

Using a simple IR receiver such as IR5040 or TSOPxxxxx and a Raspberry Pi running LibreELEC + Kodi

Enable lirc in Kodi

Edit the file at /flash/config:

  • mount -o remount,rw /flash
  • vi /flash/config
  • append device_tree_overlay=lirc-rpi
  • mount -o remount,ro /flash

Connect the receiver