Skip to content

Instantly share code, notes, and snippets.

View JKirchartz's full-sized avatar
🤖

Joel Kirchartz JKirchartz

🤖
View GitHub Profile
@romainl
romainl / redir.md
Last active July 13, 2026 23:37
Redirect the output of a Vim or external command into a scratch buffer

Redirect the output of a Vim or external command into a scratch buffer

Usage (any shell)

Show the full output of command :hi in a scratch buffer:

:Redir hi

Show the full output of command :!ls -al in a scratch buffer:

@JKirchartz
JKirchartz / tasks.md
Last active December 20, 2018 15:07
TODO list

TODO

JKirchartz.com

  • bootstrap redesign
  • Jekyll/SASS
  • Portfolio/Article linking Twitter-bots Projects
  • Portfolio/Article for WP builds
  • ACF Fluid Content (modules/json & article)
  • expand demos to include specific JSFiddle/Codepen projects
@helloj
helloj / genfstab
Created April 6, 2017 07:46
Alpine linux genfstab
#!/bin/sh
# Alpine Linux genfstab
# default location for mounted root
SYSROOT=${SYSROOT:-/mnt}
in_list() {
local i="$1"
shift
while [ $# -gt 0 ]; do
@wiseman
wiseman / markov2tracery.py
Last active February 24, 2017 22:03
Generates tracery grammars from examples.
#!/usr/bin/env python
# A small modification of enkiv2's code: https://github.com/enkiv2/misc/blob/master/markov2tracery.py
import collections
import json
import re
import sys
@romainl
romainl / Vim_pushing_built-in_features_beyond_their_limits.markdown
Last active April 16, 2026 04:49
Vim: pushing built-in features beyond their limits

Vim: pushing built-in features beyond their limits

The situation

Searching can be an efficient way to navigate the current buffer.

The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:

  • when we want to search something that's not directly there, those two commands can make us lose context very quickly,
  • when we need to compare the matches.
@penguinpowernz
penguinpowernz / wpa_supplicant.conf
Created October 28, 2016 00:06
WPA Supplicant config file explanations
##### Example wpa_supplicant configuration file ###############################
#
# This file describes configuration file format and lists all available option.
# Please also take a look at simpler configuration examples in 'examples'
# subdirectory.
#
# Empty lines and lines starting with # are ignored
# NOTE! This file may contain password information and should probably be made
# readable only by root user on multiuser systems.
{
"0": 48, "1": 49, "2": 50, "3": 51, "4": 52, "5": 53, "6": 54, "7": 55,
"8": 56, "9": 57, "☺": 9786, "☻": 9787, "•": 8226, "◘": 9688, "○": 9675, "◙": 9689,
"♂": 9794, "♀": 9792, "♪": 9834, "♫": 9835, "☼": 9788, "►": 9658, "◄": 9668, "‼": 8252,
"▬": 9644, "↨": 8616, "↑": 8593, "↓": 8595, "→": 8594, "←": 8592, "∟": 8735, "▲": 9650,
"▼": 9660, "!": 33, "\"": 34, "#": 35, "$": 36, "%": 37, "&": 38, "(": 40,
")": 41, "*": 42, "+": 43, ",": 44, "-": 45, ".": 46, "/": 47, "⌂": 8962,
"░": 9617, "▒": 9618, "▓": 9619, ":": 58, ";": 59, "<": 60, "=": 61, ">": 62,
"?": 63, "@": 64, "A": 65, "B": 66, "C": 67, "D": 68, "E": 69, "F": 70,
"G": 71, "H": 72, "I": 73, "J": 74, "K": 75, "L": 76, "M": 77, "N": 78,
@psychemedia
psychemedia / Dockerfile
Last active October 1, 2022 22:16
Example of setting up a Docker image containing a suite of applications on a related theme for use over the command line: audiogrep, videogreop and youtube_dl.
#Based on https://github.com/kevinhughes27/audiogrep-docker
# DOCKER-VERSION 1.4.0
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y software-properties-common
# FFMPEG
#The repository needs updating from the original
#Note that ffmpeg not standardly available for Ubuntu 14.04: http://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/
@andypiper
andypiper / basic-recipes.md
Last active May 21, 2025 15:12
Twitter API recipes for twurl +jq, and other useful Twitter code snippets and tools
We can't make this file beautiful and searchable because it's too large.
aries Good vibes in the air will help make today's Full Moon pleasant. You feel genuinely sympathetic and sensitive to the needs of partners and close friends. Gosh, golly, gee!
taurus Today, the only Full Moon in your sign all year takes place. Fortunately for you, other planetary aspects nicely smooth everything over. (Looking good!)
gemini This is an interesting day for love affairs, romance and sweet flirtations. Similarly, the arts and sports also are pleasantly blessed. Enjoy good times with children.
cancer Even though there is some tension with today's Full Moon, it's still a very pleasant day with family members. People are gentle and kind to each other.
leo Your communications with siblings and relatives are particularly warm and caring today because you appreciate where the other person is coming from and what he or she is going through. This is a good thing.
virgo You might be tempted to spend too much money on elegance and luxury today. Just keep this in mind. Don't be rash with your hard-earned