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
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@mntmn
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
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
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"
(interactive)
(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
mntmn / fetch-mail.sh
Created May 2, 2019
mntmn's fetch-mail script for notmuch/offlineimap
View fetch-mail.sh
#!/bin/bash
# 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 && nottoomuch-addresses.sh --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.
platform:
- 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 192.168.7.2 3333 -c "echo 3/1/$s1r/$s1g/$s1b"
exec nc -u 192.168.7.2 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': 'http://iota.bitfinex.com',
'port': 80
})
const seed='YOURSECRETSEED'
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': 'http://node.lukaseder.de',
//'port': 14265
'host': 'http://iota.bitfinex.com',
'port': 80
})
@mntmn
mntmn / fbactivityclean.js
Created Aug 7, 2017
Hacky script for bulk deleting FB timeline activities (posts)
View fbactivityclean.js
// use on the page https://www.facebook.com/YOUR_USER_NAME/allactivity?privacy_source=activity_log&log_filter=cluster_11
// 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.