Skip to content

Instantly share code, notes, and snippets.

mntmn mntmn

Block or report user

Report or block mntmn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mntmn on github.
  • I am mntmn ( on keybase.
  • I have a public key ASAkklc_LCbNHbwBCqDlO9EizQGNWFn6QVks2i7WPqIv9wo

To claim this, I am signing this object:

mntmn / azoteq_iqs550.ino
Created May 8, 2019
Minimal Azoteq IQS550 / ProxSense TPS65 driver for Arduino (USB touchpad)
View azoteq_iqs550.ino
#define PIN_RST 7
#define PIN_RDY 8
#define ADDR_APP 0x74
#define ADDR_BOOT 0x74^0x40
#include <Wire.h>
#include <stdint.h>
void setup()
mntmn / bme680_temp.ino
Created May 7, 2019
Kind of minimal BME680 temperature reader for Arduino
View bme680_temp.ino
#include <Wire.h>
#include <stdint.h>
#define ADDR 0x77
#define addr_ctrl_meas 0x74
#define addr_temp 0x22
#define BME680_COEFF_ADDR1 0x89
#define BME680_COEFF_ADDR2 0xe1
#define BME680_COEFF_ADDR1_LEN 25
mntmn / init-el-notmuch-stuff.el
Created May 2, 2019
Notmuch workflow related snippets of emacs init.el
View init-el-notmuch-stuff.el
; fetch-mail function
(defun fetch-mail ()
"Launches ~/bin/fetch-mail"
(shell-command "fetch-mail")
(dolist (win (window-list))
(when (string= (buffer-name (window-buffer win)) "*Shell Command Output*")
(delete-window win)
;(kill-buffer "*Shell Command Output*")
mntmn /
Created May 2, 2019
mntmn's fetch-mail script for notmuch/offlineimap
# purge deleted mail!
notmuch search '--output=files' tag:deleted | xargs -l rm -f
# sync and fill address book
offlineimap -u basic -q && notmuch new && notmuch tag +sent -- folder:Sent and not tag:sent && --update
notmuch tag -inbox -unread -- tag:sent
View mntmn_igalia_chromium_patches1.txt
mntmn's igalia chromium for wayland patches to work around 2 startup crashes.
- Linux irata-debian 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1 (2018-02-18) x86_64 GNU/Linux
- vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz
View ledgui.tcl
set s1r 0
set s1g 0
set s1b 0
proc updateStrip {} {
global s1r s1g s1b
puts "$s1r $s1g $s1b"
exec nc -u 3333 -c "echo 3/1/$s1r/$s1g/$s1b"
exec nc -u 3333 -c "echo 2/1/$s1r/$s1g/$s1b"
View sendmsg.js
const IOTA = require('./iota.lib.js/lib/iota.js')
const ccurlProvider = require('../iotaproxy/lib/ccurlprovider.js');
var iota = new IOTA({
'host': '',
'port': 80
View findmessages.js
const IOTA = require('./iota.lib.js/lib/iota.js')
//const ccurlProvider = require('../iotaproxy/lib/ccurlprovider.js');
// Create IOTA instance with host and port as provider
var iota = new IOTA({
//'host': '',
//'port': 14265
'host': '',
'port': 80
mntmn / fbactivityclean.js
Created Aug 7, 2017
Hacky script for bulk deleting FB timeline activities (posts)
View fbactivityclean.js
// use on the page
// scroll down to as many posts you want to delete (make pencil icons visible)
// recommended to delete small batches as the process gets really slow for many deletes in parallel (UI issues)
// we do stuff in parallel because a single delete can take up to 7 seconds
// to launch, call deletePost()
var knownPencils={};
function deletePost() {
var pencils=document.querySelectorAll('[data-testid="pencil_icon_link"]');
var pencilFound=false;
You can’t perform that action at this time.