Skip to content

Instantly share code, notes, and snippets.

@max-cx
max-cx / include.asciidoc.txt
Created May 17, 2021 08:54
A sample AsciiDoc file for testing Asciidoctor.
== Included Section
Look, I came from out of the [blue]#blue#!
--
I'm keepin' it open.
An 'open block', like this one, can contain other blocks.
It can also act as any other block. (TODO)
@max-cx
max-cx / git-aware-bash-prompt.md
Created April 22, 2022 15:39 — forked from eliotsykes/git-aware-bash-prompt.md
Git Aware Bash Prompt
@max-cx
max-cx / xterm-256color.svg
Created August 20, 2022 20:50 — forked from jasonm23/xterm-256color.svg
Xterm 256color mode color chart, organised into sections.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@max-cx
max-cx / .Xresources
Created August 30, 2022 10:11 — forked from vreon/.Xresources
molokai color theme for xterm
! Molokai theme
*xterm*background: #101010
*xterm*foreground: #d0d0d0
*xterm*cursorColor: #d0d0d0
*xterm*color0: #101010
*xterm*color1: #960050
*xterm*color2: #66aa11
*xterm*color3: #c47f2c
*xterm*color4: #30309b
*xterm*color5: #7e40a5
@max-cx
max-cx / .Xresources
Created August 30, 2022 10:11 — forked from liangzan/.Xresources
Xresources for configuring urxvt
! urxvt
URxvt*buffered: true
URxvt*cursorBlink: true
URxvt*underlineColor: yellow
URxvt*font: xft:inconsolata:size=10:antialias=true
URxvt*depth: 32
URxvt*borderless: 1
URxvt*scrollBar: false
URxvt*loginShell: true
Urxvt*secondaryScroll: true # Enable Shift-PageUp/Down in screen
@max-cx
max-cx / .Xresources
Created November 4, 2022 17:44 — forked from menski/.Xresources
Xresources for urxvt terminal with tango theme
! Cursor theme
xcursor.theme: Vanilla-DMZ
! URxvt config
URxvt*termName: rxvt-16color
URxvt.scrollBar: off
URxvt.font: xft:monaco:size=10:antialias=true
URxvt.internalBorder: 0
URxvt*selectToClipboard: true
@max-cx
max-cx / .Xdefaults
Created November 4, 2022 17:45 — forked from cqpx/.Xdefaults
urxvt xterm zenburn theme
URxvt*termName: rxvt-256color
URxvt*xftAntialias: true
URxvt*background: #3f3f3f
URxvt*foreground: #dcdccc
URxvt*cursorColor: #aaaaaa
URxvt*colorUL: #366060
URxvt*underlineColor: #dfaf8f
URxvt*color0: #3f3f3f
URxvt*color1: #cc9393
URxvt*color2: #7f9f7f
@max-cx
max-cx / .Xresources
Created November 4, 2022 19:31 — forked from AnthonyDiGirolamo/.Xresources
Xresources example
! Font options - ~/.fonts.conf seems to override this
! Resolution for Xft in dots per inch (e.g. 96)
!Xft.dpi: 128
! Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
!Xft.rgba: rgba
!Xft.antialias: 1
!Xft.hinting: 1
!Xft.autohint: 0
! What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
!Xft.hintstyle: hintslight
@max-cx
max-cx / .Xdefaults
Created November 4, 2022 19:40 — forked from MicahElliott/.Xdefaults
Xterm color scheme
! xterm color scheme — Make all 16 beautiful.
!
! Suited for black background, but includes disabled alternative light scheme.
!
! Open this file with gvim to enable <Leader><F2> color mode.
!
! Use `xfontsel`, `xlsfonts`, and `fc-list` to find other fonts.
!
! On Ubuntu I have to name this file ‘~/.Xdefaults-$(hostname)’
!
@max-cx
max-cx / colorscheme-text
Created November 19, 2022 13:14 — forked from jcyamo/colorscheme-text
Script for echoing hex values of current term colors
#!/bin/bash
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
Black Red Green Yellow Blue Magenta Cyan White
──────────────────────────────────────────────────────────────────────\e[0m"
for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done
echo
for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done