Skip to content

Instantly share code, notes, and snippets.

View Matt-Deacalion's full-sized avatar
🏹
Ready, Fire, Aim!

Matt Matt-Deacalion

🏹
Ready, Fire, Aim!
  • Budapest, Hungary
View GitHub Profile
@romainl
romainl / gq.vim
Last active April 29, 2025 23:04
Formatting without moving
" gq wrapper that:
" - tries its best at keeping the cursor in place
" - tries to handle formatter errors
function! Format(type, ...)
normal! '[v']gq
if v:shell_error > 0
silent undo
redraw
echomsg 'formatprg "' . &formatprg . '" exited with status ' . v:shell_error
endif
@derhuerst
derhuerst / android-mitm-cert-pinning.md
Last active March 7, 2023 13:00
How to MITM Android apps using certificate pinning

How to intercept network traffic of Android apps

When you want to poke into the communication of an app.

This guide assumes you're using a UNIX-like operating system. Much of this is documented more in-depth in the objection wiki.

  1. Install Java8: brew cask install homebrew/cask-versions/java8
  2. Install apktoolbrew install apktool
  3. Install the Android SDK manager
    1. brew cask install android-sdk
@mortie
mortie / auto-onscreen-keyboard.sh
Created December 6, 2018 18:59
Automatically show an on-screen keyboard.
#!/bin/sh
# Automatically show an on-screen keyboard when enabling tablet mode.
# The script depends on the acpi_listen program from the acpid package,
# and the onboard program from the onboard package.
listener() {
pid=
while read -r line; do
if [ "$line" = 00000001 ]; then
@codeinthehole
codeinthehole / .vimrc
Last active April 13, 2021 13:47
~/.vimrc
" ============= " VIMRC file for David Winterbottom (@codeinthehole) " ===========
" Inspiration {{{
" -----------
" Videos:
" - http://www.youtube.com/watch?v=aHm36-na4-4
"
" Articles:
"
" - http://alexpounds.com/blog/2014/06/06/the-vimrc-antiques-roadshow
@GammaGames
GammaGames / .bashrc
Last active July 15, 2024 20:19
~/.bashrc
export EDITOR=vim
fortune | cowsay -f duck | lolcat
alias grit=". /home/$USER/Documents/grit/grit"
alias please='sudo $(fc -ln -1)'
alias pyss="python3 /home/$USER/Documents/pyss/pyss.py"
alias serv='python3 -m http.server'
alias timer='echo "Ctrl+C to stop"; time cat'
alias update='sudo apt update && apt list --upgradable'
alias upgrade='sudo apt upgrade && sudo apt autoremove && flatpak update && flatpak remove --unused && update'
alias calc='bc'
@loilo
loilo / pass-slots.md
Last active February 20, 2025 09:47
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@agarrharr
agarrharr / index.md
Last active August 25, 2024 01:19
Common Ledger CLI Commands

Common Ledger CLI Commands

  • Income vs expenses this month?

    $ ledger balance income expenses --period "this month"
  • What did my budget look like at a certain date?

@chandraratnam
chandraratnam / mutt_mbsync_multipleaccounts.md
Last active January 21, 2025 17:30
Mutt + isync mbsync + gmail + multiple accounts.

Mutt + isync multiple accounts Unfinished

This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.

I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.

The setup works this way

[Remote Mail Servers] <= mbsync => [Local Mail Folders]

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@qub1750ul
qub1750ul / sxiv-cycle.sh
Created November 24, 2017 20:47
wrapper script for sxiv - browse through images in directory after opening a single file
#!/bin/sh
# Compatible with ranger 1.6.0 through 1.7.*
#
# This script searches image files in a directory, opens them all with sxiv and
# sets the first argument to the first image displayed by sxiv.
#
# This is supposed to be used in rifle.conf as a workaround for the fact that
# sxiv takes no file name arguments for the first image, just the number. Copy
# this file somewhere into your $PATH and add this at the top of rifle.conf:
#