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
@MaherSaif
MaherSaif / build.sh
Last active October 30, 2024 01:21
replace ngrok with nginx/ssh.
ln -s /etc/nginx/sites-available/dev /etc/nginx/sites-enabled/
# Install Certbot (letsencrypt)
echo 'deb http://deb.debian.org/debian stretch-backports main' >>
/etc/apt/sources.list
gpg --keyserver pgp.mit.edu --recv-keys 7638D0442B90D010
8B48AD6246925553
gpg --armor --export 7638D0442B90D010 | apt-key add -
gpg --armor --export 8B48AD6246925553 | apt-key add -
apt update
@romainl
romainl / ctagsd
Last active June 1, 2024 15:56
Run ctags upon file change/addition/deletion in a Git repository
#!/usr/bin/env sh
# Requirements:
# git: https://git-scm.com/downloads
# entr: http://eradman.com/entrproject/
# ctags: http://ctags.sourceforge.net/ (Exuberant Ctags) or https://ctags.io/ (Universal Ctags)
# Usage:
# $ cd my_project
# $ ctagsd
@rusty-snake
rusty-snake / firejail-check-blacklist.rs
Last active October 20, 2024 07:38
Check for every noblacklist in firejail profiles a corresponding blacklist exists
/*
* Copyright © 2019 rusty-snake <print_hello_world+License@protonmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@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 8, 2026 22:20
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
@yegappan
yegappan / VimDevelopmentProcess
Last active April 20, 2026 05:53
My development process for contributing to Vim
I use the below described development process and tools for developing Vim features.
I use a Ubuntu system for most of the development. But the tools mentioned below
are also available on MacOS.
1. Clone the Vim source code from https://github.com/vim/vim.git.
2. Modify src/Makefile to enable additional compiler diagnostics:
CFLAGS=-Wall -Wextra -pedantic
@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
alacritty| alacritty,
use=xterm-256color,
use=xterm+tmux,
use=xterm+sl-twm,
ritm=\E[23m,
sitm=\E[3m,
Tc,
alacritty-256color| alacritty with 256 colors,
use=alacritty,
@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'