Tom Roche
Shared posts
Radio War Nerd EP 468 — French COIN in Algeria War, feat. Terrence Peterson
Tom RocheEXCELLENT examination not just of French coinsurgency, but of the Algerian Revolution and its geopolitics from pre-1954 to beyond (esp US empire adventures in Vietnam and Iraq)
Tom and Lauren Are Going OOT
Tom Roche/very/ skippable--this dreck manages to be both woke and cliché
Lauren forgets about an important charity fundraiser for work and hurriedly tries to get ready. Tom returns home from work covered in face paint, after his class craft day gets a bit out of hand. Their efforts to make the fundraiser are further hampered by a coy Neil, who appears to have intercepted a parcel intended for Lauren. Special guest appearance by Julian Clary as Neil. Cast: TOM MACHELL as Tom LAUREN PATTISON as Lauren JULIAN CLARY as Neil Writers: Tom Machell & Lauren Pattison Director: Katharine Armitage Recording Engineer: Tom Glenwright Sound Design: Philip Quinton Theme Music: Scrannabis Producers: Maria Caruana Galizia & Zahra Zomorrodian A Candle & Bell Production for BBC Radio 4
Magnus: Followup on secrets in my work notes
Tom Rochesome details of emacs `sql-mode`
I got the following question on my post on how I handle secrets in my work notes:
Sounds like a nice approach for other secrets but how about
:dbconnectionfor Orgmode andsql-connection-alist?
I have to admit I'd never come across the variable sql-connection-alist
before. I've never really used sql-mode for more than editing SQL queries and
setting up code blocks for running them was one of the first things I used
yasnippet for.
I did a little reading and unfortunately it looks like sql-connection-alist
can only handle string values. However, there is a variable
sql-password-search-wallet-function, with the default value of
sql-auth-source-search-wallet, so using auth-source is already supported for
the password itself.
There seems to be a lack of good tutorials for setting up sql-mode in a secure
way – all articles I found place the password in clear-text in the config –
filling that gap would be a nice way to contribute to the Emacs community. I'm
sure it'd prompt me to re-evaluate incorporating sql-mode in my workflow.
Irreal: Babel and Python
Tom Rochepullquote:
> Recently, on the Org Mode mailing list there was a nice discussion of [problems using Python in Babel aka Org code blocks. As of 9 Sep 2024], there are only three posts in the thread so you should read them all to get a full idea of what’s going on. The TL;DR is that you (usually) have to provide an explicit `return` in your Python code to get the correct results into your Org buffer.
This is a sort of Public Service Announcement. One of the great things about Org mode is the code block where you can run code in an Org buffer and have the results inserted into the Org document. I use this all the time. It’s a particularly elegant way of practicing literate programming and writing “live” documents that automatically rewrite themselves when the data the changes.
It’s usually a seamless process but there are gotchas for some languages. Sadly, Python, a widely used language, is one of those where you have to be careful. If you don’t follow the rules correctly, you can end up with erroneous results.
Recently, on the Org Mode mailing list there was a nice discussion of the problems that Python can present. As of right now, there are only three posts in the thread so you should read them all to get a full idea of what’s going on. The TL;DR is that you (usually) have to provide an explicit return in your Python code to get the correct results into your Org buffer.
Python is the only language that I use—even occasionally—that has these problems: usually things just work. It is, therefore, worth spending a few minutes familiarizing yourself with the problems that Python and a few other languages have in the Babel environment.
Irreal: Using .authinfo With Org Code Blocks
Tom RocheTODO! pullquote (slightly edited):
> Magnus Therning has a [nice post](https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html) (archived [here](http://web.archive.org/web/20240902152422/https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html)) [on a subtopic of the more-general theme of using Org for literate programming]. His wrinkle is that the applications he’s interacting with require login credentials. For a long time, he simply kept those credentials as plain text in his Org file but [then solved] the problem by [pulling credentials from his =.authinfo= file using the GNU] [auth-source library](https://www.gnu.org/software/emacs/manual/html_mono/auth.html). He wrote a couple of functions that [retrieve the necessary credentials, using those functions to populate] a [properties block](https://orgmode.org/guide/Properties.html)[; the resulting code (see bottom of [Therning's post](https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html) or archive) shows the function calls but not the actual secrets.]
As most of you know, I’m a big fan of using literate programming techniques in the context of what might be described as “devops”. The technique boils down to writing an Org file with code blocks that document how you are solving a particular problem. The key is that the code blocks are executable and are what you actually use to solve the problem. Howard Abrams has a really good introduction to the idea in a post and subsequent video.
Magnus Therning has a nice nice post that expands on the same theme. His wrinkle is that the applications he’s interacting with require login credentials. For a long time, he simply kept those credentials as plain text in his Org file but, of course, he realized that was a bad thing.
He solved the problem by putting his credentials in his .authinfo file and accessing them with the auth-source library. He wrote a couple of functions that used the auth-source library to retrieve the necessary credentials. He populated these in a properties block. This is perfect because the source code doesn’t show any secrets but those secrets are made available to the executing code.
I do something similar to retrieve secrets that I don’t want exposed in plain text. The .authinfo file and associated library is a really useful set of tools to enable access to secure applications without exposing the required credentials. Take a look at his post to see how easy it is.
9/5/24: DOJ Russian Millions To Pundits, Russiagate 2.0, Trump Insists 'Not Weird', Kamala Swing State Polls, Venezuelan Gang Story Denied, And Kamala Caves On Capital Gains Tax
Tom RocheAnother very good BP (though not as great as yesterday's CounterPoints), with topics in ~order of presentation:
+ USCFM hysteria over Tenet Media stupidity (KB+SE rightly crush Johnson, Pool, Rubin et al for taking too-good-to-be-true TM money NQA) as Russiagate-reboot attempt
- more US presidential-election polls, pratfalls, and prattling
+ excellent deconstruction of the US-rightwing fake news claiming Venezuelan gang takeover of apartment buildings in Aurora, CO (reality: scumbag slumlord CBZ Management attempting to smear tenant protests, with stupid local politicians esp mayor Mike Coffman playing along then backing down)
+ VERY EXCELLENT final segment (starting 110:38 in audio): interview with Jeff Stein @ WaPo on topics including
***** Biden blocking Nippon Steel takeover of US Steel
***** Kamala caves to {CNBC freakout, donor-class pressure}, backs down from Biden-Harris pledge to raise US federal capital-gains tax top rate from 44.6% to 28% despite "needing" pay-fors
***** ... as yet another case of Kamala caving under the slightest pressure as she moves from near-Bernie to rebooting the Obama fraud (posing populist, governing corporate)
***** ... and illustrating how Kamala has no core principles, will do Whatever It Takes to Build Big Tents
***** Trump promises government-operations-audit commission under head=Elon Musk (et al US corporate ghouls) to find all that elusive/imaginary Waste, Fraud, and Abuse (to pay for promised new tax cuts)
********* Stein notes that Trump regime 2017-2020 increased US federal debt by $8 trillion (aka 8 TUSD) "more than any other US president [over 4 years]"
***** neither Kamala nor Trump have released significant economic (et al) policy proposals; most of what they've discussed has lacked detail or credibility (and that's a Boolean or)
(but as usual waay too many ads on this free feed before and after every segment)
Krystal and Saagar discuss DOJ says millions given by Russia to rightwing pundits, Russiagate 2.0, Trump insists he's not weird in town hall, swing state polls, Venezuelan gang story in Colorado, and Kamala caves on capital gains tax.
To become a Breaking Points Premium Member and watch/listen to the show AD FREE, uncut and 1 hour early visit: https://breakingpoints.com/
Merch Store: https://shop.breakingpoints.com/
See omnystudio.com/listener for privacy information.
Opposition in Disarray: Morena Marches Toward a Congressional Supermajority
Tom RocheGranados and Hackbarth excellent as usual
Morena did it. Their presence in the Senate has risen to 85 after two defections from the moribund PRD. In this episode Soberanía co-hosts José Luis Granados Ceja and Kurt Hackbarth ask what Morena's Supermajority means for Mexico and the deepening of the Fourth Transformation? Plus a report back from our participation in the 1st Continental Gathering of Independent Communicators held in Mexico City, as well as our on-the-ground coverage of President López Obrador’s final state of the union address. We also look at the latest on Ovidio Guzmán's whereabouts; and our Losers and Haters section looks at one foreign correspondent’s outright dishonesty.
The News Quiz: Ep1. Labour’s Brat Summer
Tom Roche[/The News Quiz/](https://www.bbc.co.uk/programmes/b006r9yq) starts its new run (its 115th ?!?) with yet another VERY EXCELLENT episode, fortunately no longer delayed for weeks by the BBC. (Hopefully? perhaps some scumbag just slacked this week.) The cast is all great, though guest Delamere and host Zaltzman are particularly funny. Unaccountably, the always-funny Mark Steel fails to deliver one of his patented rants :-( but, just to be clear, NQ is once again just /so much better/ than (e.g.) TL;DR (with which it oddly overlaps this F 6 Sep 2024).
Neil Delamere, Lucy Porter, Mark Steel and Marie Le Conte join Andy Zaltzman to quiz the news.
In this first episode of a brand-new series, Andy and the panel catch up on the events of Labour's first Brat Summer, take a look at a Tory leadership election, and have a brief check in on the rest of the world to make sure it's still there.
Written by Andy Zaltzman
With additional material by: Mike Shephard, Meryl O'Rourke, Sarah Dempster & Peter Tellouche Producer: Sam Holmes Executive Producer: Richard Morris Production Coordinator: Jodie Charman Sound Editor: Marc Willcox
A BBC Studios Audio Production for Radio 4 An Eco-Audio certified Production
Catherine Bohart: TL;DR - 6. Hang on - are there ghosts in this machine?
Tom RocheBetter-than-usual TL;DR but that's not saying much, so more detail:
+ episode is actually quite good through 1st 2 bits/skits (from guest Hugo Rifkind, sidekick Sunil Patel, and bridging bits from host Catherine Bohart)
- ep quality declines badly after that: CB's short interview with guest Gina Neff, then audience Q&A
No time to read the news? Catherine Bohart does it for you in TL;DR. This week - Elon Musk thinks there should be regulation around AI. Is he right? Can AI really change the world, or are we just training our future robot overlords?
Times journalist Hugo Rifkind navigates the ethical minefield of artificial intelligence, while Professor Gina Neff breaks down how AI is already reshaping our lives - and the risks that come with it.
Meanwhile, in the TL;DR Sidebar, comedian Sunil Patel dives into the wild world of AI romance and discovers the perks and pitfalls of having an AI girlfriend. Will it be love at first byte?
Written by Catherine Bohart, with Madeleine Brettingham, Sarah Campbell, and Pravanya Pillay
With Ellen Patterson as Flobot
Produced by Victoria Lloyd
Recorded and Edited by David Thomas
Production Coordinator - Beverly Tagg
A Mighty Bunny production for BBC Radio 4
Can Germany be saved? w/ Jeffrey Sachs (Live)
Tom RocheAnother EXCELLENT episode from Sachs, which (contrary to the [episode page](https://soundcloud.com/user-901836666/can-germany-be-saved-w-jeffrey-sachs-live)) is actually much more about the geoeconomy and global political economy, esp the global conflict (aka /New Cold War/) between the US-NATO-G7 empire and the emerging PRC-Russia-BRICS resitance. Note also that Sachs is out @ 52 min (after taking some live-audience Q&A); remaining 42 min of audio is Christoforou and Mercouris taking more Q&A.
News - Israeli Hostages Killed in Gaza While IDF Attacks West Bank, Haiti Intervention Stagnates, DRC Gets Mpox Vaccines
Tom RocheBessner and (mostly) Davison global week-in-review EXCELLENT as usual
Danny melts from the LA heat while Derek pukes from the DC elite, all while giving you the news. This week: in Palestine-Israel, several Israeli hostages in Gaza are killed (1:22), Netanyahu continues to block a ceasefire (7:17), and the IDF’s operation in the West Bank goes on over one week (10:57); Turkey applies to join BRICS (14:24); Myanmar’s junta might be making election preparations (16:36); the UN negotiates a central bank resolution for Libya (18:57); the Democratic Republic of the Congo (DRC) finally gets mpox vaccines (21:38); the US again accuses Russia of election meddling (24:57); an update on the Ukraine war (26:52); Macron finally names a prime minister in France (29:46); Venezuela issues an arrest warrant for the opposition presidential candidate (33:02); Antony Blinken visits Haiti amid a stagnant intervention (34:56) and a New Cold War update featuring the US losing support in Southeast Asia (38:14).
#556 - The Void Soys Back
Tom RocheVERY FUNNY, no-bant destruction of a bad movie and the very-bad, doubleplus-ungood political economy that produced it
864 - Gent’s Video feat. James Adomian (9/3/24)
Tom RocheFelix+Will+guest funny but just bant, excepting Adomian's excellent Elon Musk & Sebastian Gorka impersonations
Long time friend of the show James Adomian stops by to catch up on some news, including the conservative rumor of bikers traveling to Colorado to fight Venezuelan gangs, the North Carolina GOP gubernatorial candidate who was a five-night-a-week customer at a porn store, and the Swifties for Kamala Zoom call. We also check in with some of our old friends Elon Musk & Sebastian Gorka.
James’ new stand-up special Path of Most Resistance is available now for purchase at 800 Pound Gorilla: https://800poundgorillamedia.com/products/james-adomian-path-of-most-resistance
And will be streaming on YouTube starting September 19th!
Get bonus content on PatreonHosted on Acast. See acast.com/privacy for more information.
DNC BONUS EPISODE: Michael Tracey, Saagar Enjeti, and Ryan Grim on Dems Restricting Press Access, Uncommitted Delegates, Ukraine's Incursion Into Russia, and More
Tom RocheVERY EXCELLENT short (30 min) SUGG (though no Greenwald--this is one of the recent SUGGs hosted by Michael Tracey) interviewing Saagar Enjeti and Ryan Grim (though MT very much participates) on the 2024 Democratic National Convention (DNC) and associated US politics. Topics include:
* DNC bad logistics and tight media controls (relative to 2024 RNC), particularly as (unintentional) bugs or (intentional) features
* entrenched power of Zionist Corporate Democrats (the interesting question of why the most Zionist Democrats are also the most neoliberal and procorporate is unfortunately not discussed) vs submissive, predefeated pro-Palestinian delegates
* CorpDem Ukraine fanaticism continues, though very much less overt than 2022 as Russia defeats NATO (though all involved in this episode very much portray the war as Russia-Ukraine rather than a NATO proxy war on Russia), esp after the 7 Oct 2023 phase of Israel's genocide on Palestine
Watch full episodes on Rumble, streamed LIVE 7pm ET.
Become part of our Locals community
- - -
Listen to Saagar Enjeti on "Breaking Points"
Read Ryan Grim's reporting: "DropSite News"
Read Michael Tracey's reporting: mtracey.net
Follow System Update:
Learn more about your ad choices. Visit megaphone.fm/adchoices
Democracy Now! 2024-09-03 Tuesday
Tom Rocheconsistently excellent
Headlines for September 03, 2024; Mass Israeli Protests as 6 More Hostages Killed, But Netanyahu Refuses Ceasefire Terms, U.S. Sends Arms; 10,000 Hotel Workers Strike at Marriott, Hyatt, Hilton for Raises, Fair Workloads & Respect; The New Yorker Publishes 2005 Haditha, Iraq Massacre Photos Marines “Didn’t Want the World to See”
E174 - Woke Iron Man w/ Spencer Ackerman
Tom RocheEXCELLENT: informative as usual (for AmPrestige), but also more amusing than usual
Danny and Derek welcome back AP mega-guest Spencer Ackerman, author of the Forever Wars newsletter and soon-to-be-published issues of Marvel Comics’ Iron Man. The group explores Spencer’s inspiration to pursue more work in the world of comic books, writing for a character who is a defense contractor, bringing left-wing messaging into the medium, the sand box of Marvel Comics vs. the behemoth of the Marvel Cinematic Universe, plus Spencer’s impressions on some major current events.
NOTE: This interview was recorded on 8/30/24, prior to reports that the Israeli military had recovered the bodies of six hostages inside Gaza.
Click hear to learn how to pre-order Iron Man & get free merch!
More of Spencer’s work:
Further Reading:
Annie Nocenti, journalist, writer, editor and filmmaker
Six Stops on the National Security Tour by Miriam Pemberton
BeReal Power User (feat. FLAP24)
Tom RocheCiarán+Uma+guests take amusing and informative deepdive into France politics esp since Jun-Jul 2024 elections, as Macron feels his inner Napoleon
We are joined once again by Olly and Marlon of FLAP24 to talk about everything that's happened in France since the election.
FIND OUR GUESTS
https://x.com/MarlonEttinger
https://x.com/reality_manager
https://x.com/flep24pod
HOW TO SUPPORT US:
https://www.patreon.com/cornerspaeti
HOW TO REACH US:
Corner Späti https://twitter.com/cornerspaeti
Instagram https://www.instagram.com/cornerspaeti/
Julia https://twitter.com/KMarxiana
Rob https://twitter.com/leninkraft
Nick
Uma https://twitter.com/umawrnkl
Ciarán https://twitter.com/Ciaranxo
Fresh from the Fringe
Tom Rocheamusing
Radio 4 brings you the spirit of the Edinburgh Fringe this August. Host Mark Watson takes us on a whistle-stop tour of the city, capturing the buzz of the festival, taking us with him to the Edinburgh Comedy Awards and showcasing some of the most exciting comedy talent from this year. Acts this week include Hannah Platt, Marjolein Robertson, Ania Magliano and Huge Davies.
Additional Material: Christina Riggs
Production Coordinator: Katie Baum
Sound Recordist: Sean Kerwin
Sound Editor: Charlie Brandon-King
Executive Producer: Pete Strauss
Assistant Producer: Becky Carewe-Jeffries
Produced in Edinburgh by Gwyn Rhys Davies
It was a BBC Studios Production for Radio 4.
Episode 401 - Master Plan (w/ David Sirota)
Tom RocheVERY EXCELLENT 115 min overview of US politics c1970-2024 (probably the best single-episode-overview I've heard in Aug 2024, definitely a top-10 for 2024), as well as just straight-up interesting conversation between 2 intelligent and passionate Americans. Guest Sirota and host BJG cover following (et much al) in ~order of presentation:
* Democratic Party politics from 2016 Bernie Sanders to 2024 Kamala Harris esp convention
* Kamala as corporate Democrat (aka /CorpDem/) from occasional populism and egalitarian policies to backtracking, folding, and policy fear
* Warren 2020 (and after) policy strengths and weaknesses (esp Medicare-for-all bungle)
* Biden-Harris 2020-2024 as analogy to Carter 1976-1980: directionless, vulnerable
* rotating villains esp Trump as norm-breaker
* DNC "big tent" includes billionaires, fossil-fuels, etc
* how CorpDem {"money politics," discipline by donor-class} (e.g., Warren, Kamala) furthers wealth concentration and economic oligarchy
* CorpDem reaction to Kamala pricegouging policy as illustrating donor-class discipline
* Sirota/Lever new podcast [Master Plan](https://the.levernews.com/master-plan/) ([non-subscriber RSS here](https://feeds.transistor.fm/master-plan)) esp re Lewis F. Powell Jr. (1907-1998) and the /Powell Memo/ (in various formats including scanned original @ https://archive.org/details/powell-memorandum-1971-ocr)
* differential susceptibility of politicians to donor-class discipline (esp how vulnerability increases with {low profile, lack of brand, lack of "earned media"})
* need for public finance of US elections, and history of US legislation toward this end (esp John McCain trajectory)
* importance to {donor class, economic oligarchy} of control of US judiciary is control of 'superlegislature' (Sirota's term)
* importance to Democrat democracy of competitive primaries
* extended clip from (and discussion of) Chris Cuomo on money-politics duopoly
* normalization of corruption in US political discourse, esp 2020 Bernie discipline of Zephyr Teachout for callout of Biden corruption
* rightward "ratchet effect" in recent US politics as culminating with Obama, or continuing through Biden
* evaluating Biden-Harris administration, esp vs Obama-Biden
* What Is To Be Done, and What Can Be Said About What Is To Be Done
Subscribe to Bad Faith on Patreon to instantly unlock our full premium episode library: http://patreon.com/badfaithpodcast
Journalist, Bernie 2020 speechwriter, and founder of The Lever David Sirota joins Bad Faith to talk his new podcast series Master Plan, which tracks the roots of American corruption from the infamous 70s era Powell memo to our present day. We discuss the DNC, Chris Cuomo's newfound interest in the corrupting power of money in politics, & Kamala's price capping plan along with the bipartisan backlash to it. We also debate the limits of working from within the Democratic Party and whether or not the Bernie campaign -- where Brie and David were colleagues -- proves it cannot be done.
Subscribe to Bad Faith on YouTube for video of this episode. Find Bad Faith on Twitter (@badfaithpod) and Instagram (@badfaithpod).
Produced by Armand Aviram.
Theme by Nick Thorburn (@nickfromislands).
Milk Money
Tom RocheEXCELLENT
Ever wonder how America became so corrupt? It didn’t have to be this way. Our series begins in 1971, a time when hot pants were hot, bell bottoms were swinging, and campaign cash flowed like… milk.
Get ad-free Master Plan episodes by becoming a paid subscriber. Enjoy bonus episodes, exclusive content and support this show. Visit masterplanpodcast.com
Learn more about your ad choices. Visit megaphone.fm/adchoices
The Other Watergate
Tom RocheEXCELLENT
There’s a lost tale behind Watergate: corporate bagmen, suitcases of illegal cash, and Nixon circumventing the very campaign finance rules he’d just signed into law. Amid the blowback, Nixon leaves a ticking time bomb in the heart of Washington.
Get ad-free Master Plan episodes by becoming a paid subscriber. Enjoy bonus episodes, exclusive content, and support this show. Visit masterplanpodcast.com
Learn more about your ad choices. Visit megaphone.fm/adchoices
Bonus - Oliver Stone's JFK w/ Justin Boyd
Tom Roche4:42 teaser only
Danny and Derek welcome to the podcast television writer and producer Justin Boyd to talk about Oliver Stone’s 1991 epic JFK. They explore Justin’s own origins as a Dallasite, the place the film occupies within the film & television canon, whether a 3 1/2 hour, paranoid epic fueled by rage could be made today, its modernist features, claims of homophobi…
Irreal: The Emacs Writing Studio Is Finished and Available
Tom RocheNote EWS is not just about content generation, but also {notetaking, "thought management"} and task management, per pullquote from [books2read blurb for Prevos' book](https://books2read.com/b/4NpgQ9):
> With Emacs Writing Studio, you'll learn how to:
> * Organise and Manage Ideas: Use Emacs' robust note-taking features to capture fleeting thoughts, develop them into substantial notes, and weave them into your manuscript.
> * Streamline Writing Workflow: Write distraction-free in a plain text environment, reducing the clutter of modern word processors while enjoying the flexibility to customise your workspace.
> * Export with Ease: Seamlessly publish your work in multiple formats, including PDF, HTML, and ePub, with the powerful export capabilities of Emacs' Org mode.
> * Stay on Track: Manage your writing projects and deadlines effectively, leveraging Emacs' task management tools to keep everything in order.
> This guide is more than technical instructions—it's an invitation to rethink how you write.
I’ve written about Peter Prevos and his Emacs Writing Studio several times [1, 2, 3, 4 ]. It’s a series of articles on using Emacs for long form writing. Now, happily, Prevos has announced that the project—or at least the first version of it—is finished and available as a book from several e-bookstores. The source files are also available from his GitHub respository.
This is, as I’ve written, a great resource with lots of useful information. But don’t take my word for it. Protesilaos Stavrou also has a few words to say about it. He has, in fact, contributed those words as a forward to the book.
Those of you who have been around for a while know that I’m very interested in stories about people who use Emacs for non-technical purposes such as prose writing. Those who share that interest will find Prevos’ book a handy resource for using Emacs in their own projects.
I’ve read a lot of Prevos’ articles but never read them through as a book. I’m looking forward to reading the complete work.
Magnus: Improving how I handle secrets in my work notes
Tom RocheTODO! pullquote (edited to condense):
> for a long time [I've kept] credentials in clear text [in Org code blocks, but] I've thought I really ought to find a better way of handling these secrets one of these days. Yesterday was that day[:] I ended up with two functions that uses auth-source and its ~/.authinfo.gpg file.
code in post ([page archived here](http://web.archive.org/web/20240901190457/https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html), [screenshot archived here](http://web.archive.org/web/20240901190457/http://web.archive.org/screenshot/https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html))
At work I use org-mode to keep notes about useful ways to query our systems, mostly that involves using the built-in SQL support to access DBs and ob-http to send HTTP requests. In both cases I often need to provide credentials for the systems. I'm embarrassed to admit it, but for a long time I've taken the easy path and kept all credentials in clear text. Every time I've used one of those code blocks I've thought I really ought to find a better way of handling these secrets one of these days. Yesterday was that day.
I ended up with two functions that uses auth-source and its ~/.authinfo.gpg
file.
(defun mes/auth-get-pwd (host)
"Get the password for a host (authinfo.gpg)"
(-> (auth-source-search :host host)
car
(plist-get :secret)
funcall))
(defun mes/auth-get-key (host key)
"Get a key's value for a host (authinfo.gpg)
Not usable for getting the password (:secret), use 'mes/auth-get-pwd'
for that."
(-> (auth-source-search :host host)
car
(plist-get key)))
It turns out that the library can handle more keys than the documentation
suggests so for DB entries I'm using a machine (:host) that's a bit shorter
and easier to remember than the full AWS hostname. Then I keep the DB host and
name in dbhost (:dbhost) and dbname (:dbname) respectively. That makes
an entry look like this:
machine db.svc login user port port password pwd dbname dbname dbhost dbhost
If I use it in a property drawer it looks like this
:PROPERTIES: :header-args:sql: :engine postgresql :header-args:sql+: :dbhost (mes/auth-get-key "db.svc" :dbhost) :header-args:sql+: :dbport (string-to-number (mes/auth-get-key "db.svc" :port)) :header-args:sql+: :dbuser (mes/auth-get-key "db.svc" :user) :header-args:sql+: :dbpassword (mes/auth-get-pwd "db.svc") :header-args:sql+: :database (mes/auth-get-key "db.svc" :dbname) :END:
8/30/24 DEBATE: Did RFK Jr BETRAY His Voters w/Trump Endorsement? | CounterPoints Friday
Tom Rocheskippable (though Michael Tracey--the Goyish Greenwald--is always delightful when he slips the leash and goes HAM)
Ryan and Emily are joined by journalist Michael Tracey and RFK Field Director Jeff Hutt to debate RFK Jr endorsing Trump.
To become a Breaking Points Premium Member and watch/listen to the show AD FREE, uncut and 1 hour early visit: www.breakingpoints.com
See omnystudio.com/listener for privacy information.
News - Israel and Hezbollah Clash, Macron Refuses to Appoint Left-Wing PM, AMLO Pauses Relations with US and Canadian Embassies
Tom RocheBessner and (mostly) Davison global week-in-review EXCELLENT as usual
Let Danny and Derek’s labor guide you into the holiday weekend newly informed. This week: Israel and Hezbollah exchange fire (0:29), an IDF operation in the West Bank (8:31), in Gaza, the IDF attacks Deir al-Balah and shrinks more protected zones (11:06) while Palestinians in Gaza also struggle to obtain a polio vaccine amid an outbreak (14:07); Yemen’s Houthi/Ansar Allah forces allow the recovery of a damaged oil tanker (17:15); Jake Sullivan is in Beijing and meets with Xi (19:14); Sudan ceasefire talks end without an agreement (21:23); Libya’s Government of National Unity (or “Eastern Government”) shuts down oil facilities (23:41); in Russia-Ukraine, concerns over the Kursk nuclear plant while Russia bombards Ukraine again (26:11); in France, Emmanuel Macron blocks the leftist prime minister from taking power (30:12); in Mexico, President AMLO “freezes” contact with the American and Canadian embassies (33:30); Honduras pulls out of its extradition treaty with the US (35:50); and the police intervention in Haiti is off to a shaky start (37:32).
E173 - The US Media, Israel, and Palestinian Journalists w/ Séamus Malekafzali
Tom RocheVERY EXCELLENT
Danny and Derek speak with Séamus Malekafzali, a Beirut-based journalist focusing on the Middle East, about his recent piece for The Nation, “The Rotten Partnership Between the US Media and the Israeli Military.” They check in about the current atmosphere in Beirut amid exchanges between Israel and Hezbollah, the Biden administration and US media’s current narrative around Hamas and Iran, the violence Israel has inflicted on Palestinian journalists, the double standards of their portrayal in the US media, and whether there might be any meaningful difference in a Trump or Harris presidency with regards to America’s support for Israel.
Recorded Tuesday, August 20, 2024
Further reading:
Follow Séamus on Twitter/X @Seamus_Malek
Danny will be talking on a panel at the Quincy Institute for Responsible Statecraft at 10am PST/1pm EST on ‘Trump vs. Harris: Whose Foreign Policy Will Win the 2024 Election?’. Here’s the link if you’re interested.
Catherine Bohart: TL;DR - 4. Want to brush up on education for the new school year?
Tom Roche/much/ more amusing than 3 previous episodes
No time to read the news? Catherine Bohart does it for you in TL;DR.
Scott Agnew: Dead Man Talking
Tom Rocheamusing monolog (mostly short stories) on death-related, though be warned--not that the material is too dark, be warned that the delivery is /very/ thickly Glasgow
Scott was disappointed there was nobody waiting for him when he died. In this episode he ponders whether someone was in fact watching over him and tells the most unbelievable funeral story of all time. With an unexpected apology from his mum, a trip to get measured for a suit and rolling down a hill chased by a bunch of OAPs - this is an episode packed with anecdotes and revelations.
The final episode in a trilogy of tales that gets into the gritty and grim goings on that nearly saw Scott pushing up the daisies. Each episode is far from a forlorn fable, but rather is bursting with colourful, lively stories of the people who have shaped Scott's life and helped him along the way. This is more than just a life story, this is Scott's death story.
A stand up series, written and performed by Scott Agnew Produced by Lauren Mackay Audio recorded by Chris Currie and Niall Young
Malaysia's foreign policy under Anwar Ibrahim
Tom Rocheinformative deepdive (if a bit lib--but, hey, it's the ABC) with a surprisingly fair discussion of BRICS vs G7 in geoeconomy
Prime Minister of Malaysia, Anwar Ibrahim, is now radically changing his international strategy and foreign policy by applying to join the BRICS group of non-aligned nations.