Skip to content

Instantly share code, notes, and snippets.

@vdavez
vdavez / docx2md.md
Last active June 17, 2024 19:40
Convert a Word Document into MD

Converting a Word Document to Markdown in Two Moves

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

The Solution

As it turns out, there are several open-source tools that allow for conversion between file types. Pandoc is one of them, and it's powerful. In fact, pandoc's website says "If you need to convert files from one markup format into another, pandoc is your swiss-army knife." But, although pandoc can convert from markdown into .docx, it doesn't work in the other direction.

@sdondley
sdondley / tmux split-window subcommand.md
Last active October 30, 2024 12:11
Super Guide to the split-window tmux Subcommand (and Beyond)

Super Guide to the split-window tmux Subcommand (and Beyond)

Guide overview

tmux, like other great software, is deceptive. On the one hand, it's fairly easy to get set up and start using right away. On the other hand, it's difficult to take advantage of tmux's adanced features without spending some quality alone time with the manual. But the problem with manuals is that they aren't geared toward beginners. They are geared toward helping seasoned developers and computer enthusiasts quickly obtain the

@zhiephie
zhiephie / AutoLogout.vue
Last active July 24, 2023 13:48
Vue Auto Logout for Laravel
<template>
<div v-if="warningZone">Are you still with us?</div>
</template>
<script>
export default {
name: 'AutoLogout',
data: function () {
return {
@mijorus
mijorus / howtoCherryPickLazygit.md
Last active July 31, 2024 08:10
Lazygit: how to cherry-pick

I'm writing this because I found it harder than expected, but actually is super easy.

  1. From the "Commit" panel (or the "Branches" panel) focus on a commit an press c, you can select more than one
  2. Go to the "Commit" panel (in the "Branches" panel it doesn't work) and press v, will ask for confirmation.
  3. DONE

EDIT: With the latest release, c and v are replaced with Shift + c and Shift + v