Skip to content

Instantly share code, notes, and snippets.

View mturquette's full-sized avatar

Michael Turquette mturquette

View GitHub Profile
@mturquette
mturquette / .offlineimaprc
Created January 18, 2016 06:29
OfflineIMAP nametrans and folderfilter example
[Repository local-baylibre]
...
nametrans = lambda folder: {
'drafts': '[Gmail]/Drafts',
'flagged': '[Gmail]/Starred',
'important': '[Gmail]/Important',
'inbox': 'INBOX',
'spam': '[Gmail]/Spam',
'trash': '[Gmail]/Trash',
}.get(folder, folder)
@mturquette
mturquette / post.html
Created January 31, 2016 06:29
Show version history for GitHub Pages on every post
diff --git a/_layouts/post.html b/_layouts/post.html
index a2b4e52..8acae45 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -9,6 +9,7 @@ layout: default
</header>
<article class="post-content">
+ <blockquote> <p>This article's version history <a href="https://github.com/mturquette/mturquette.github.com/commits/master/_posts/{{ page.id | slugify | append: ".md" }}">on GitHub</a></p></blockquote>
{{ content }}
*/15 * * * * ~/.local/bin/mail.cron
@mturquette
mturquette / alot-config
Created January 18, 2016 07:11
Out-going mail queue for msmtp and alot
[accounts]
[[baylibre]]
...
sendmail_command = msmtpq -a baylibre -t
[bindings]
[[thread]]
| = "pipeto 'git am -s3'"
@mturquette
mturquette / dot-config-slash-alot-slash-config
Created January 18, 2016 06:05
Gmail-like keybindings for alot
[bindings]
g i = 'search tag:inbox'
g s = 'search tag:flagged'
g t = 'search tag:sent'
g d = 'search tag:drafts'
u = bclose
d =
m =
c = compose
@mturquette
mturquette / .offlineimaprc
Created January 18, 2016 00:00
maildir-notmuch-sync pre- and post-sync OfflineIMAP hooks
[Account foo]
localrepository = local-foo
remoterepository = remote-foo
autorefresh = 10
quick = 10
presynchook = /home/mturquette/.local/bin/maildir-notmuch-sync pre /home/mturquette/mail/foo
postsynchook = /home/mturquette/.local/bin/maildir-notmuch-sync post /home/mturquette/mail/foo
status_backend = plain
diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile
index 4134038..fa31cb5 100644
--- a/drivers/cpufreq/Makefile
+++ b/drivers/cpufreq/Makefile
@@ -1,4 +1,5 @@
# CPUfreq core
+ccflags-y += -fdump-rtl-expand
obj-$(CONFIG_CPU_FREQ) += cpufreq.o freq_table.o
obj-$(CONFIG_PM_OPP) += cpufreq_opp.o
/ # cat /proc/version
Linux version 3.6.0-rc5-00190-g8891e82 (mturquette@nucleus) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #2 SMP Mon Sep 10 16:50:29 PDT 2012
/ # echo mem > /sys/power/state
[ 15.835510] PM: Syncing filesystems ... done.
[ 15.850189] Freezing user space processes ... (elapsed 0.02 seconds) done.
[ 15.881195] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.
[ 15.912414] Suspending console(s) (use no_console_suspend to debug)
[ 15.942962] PM: suspend of devices complete after 18.218 msecs
[ 15.947570] PM: late suspend of devices complete after 4.577 msecs
[ 15.954925] PM: noirq suspend of devices complete after 7.324 msecs
diff --git a/lib/board.c b/lib/board.c
index 00173b6..bd29766 100644
--- a/lib/board.c
+++ b/lib/board.c
@@ -244,6 +244,7 @@ void start_armboot (void)
break;
};
#endif
+ printf("I'm here!\n");
/* go run U-Boot and never return */