Skip to content

Instantly share code, notes, and snippets.

View prolixalias's full-sized avatar
:octocat:
Focused

Paul Talbot prolixalias

:octocat:
Focused
View GitHub Profile
@prolixalias
prolixalias / ubuntu-powerline-install.md
Created October 15, 2021 21:12 — forked from petercossey/ubuntu-powerline-install.md
Powerline font install for Ubuntu 16.10 (also confirmed working for 17.04, 17.10, 18.04, 19.10)

Install Powerline fonts for Z shell

Please note: there is an APT package called "fonts-powerline" which is tested and working for Ubuntu 20.04 which achieves the same outcome. Try "sudo apt install fonts-powerline"

If you're using Z Shell and a special prompt theme designed with Powerline fonts in mind, you'll need to install them on your machine. These are the most clear and cut-down instructions that I've found to work with Ubuntu 16.10 (also confirmed working for 17.04, 17.10, 18.04, 19.10) and all credit goes to renshuki's Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme gist. I've extracted just the Powerline font instructions - my personal setup uses Prezto instead of Oh My ZSH (not included here).

Get the font and config files

cd ~
@prolixalias
prolixalias / myweechat.md
Created June 30, 2021 16:26 — forked from pascalpoitras/1.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

You need at least WeeChat 3.2-dev

Enable mouse

/mouse enable

### Keybase proof
I hereby claim:
* I am prolixalias on github.
* I am prolixalias (https://keybase.io/prolixalias) on keybase.
* I have a public key ASCUiRHDirbvehK3mFB01FEZKp0Ap7uCe1TRsultC_idPAo
To claim this, I am signing this object:
@prolixalias
prolixalias / manual_code_deploy.sh
Created November 20, 2019 15:00 — forked from natemccurdy/manual_code_deploy.sh
Manually trigger code-manager and file-sync
#!/bin/bash
# GIST_URL: https://gist.github.com/natemccurdy/797fa9128b7eef1f07be
# This script can be run to manually trigger Code Manager to deploy code from your control-repo. This sort of
# thing is neccesary when, for example:
# - You've turned on Code Manager but have not yet made an RBAC token.
# - You want to pull down the latest version of a Puppetfile module without pushing to your GMS.
# - Something has broken the post-receive hook on your GMS that would've triggered Code Manager.
# - Syntax errors in your Puppetfile prevent you from retrieving those fixes to that Puppetfile.
# - Puppetserver has crashed due to file-sync issues between code and code-staging.
# - Code Manager can't deploy your code for various reasons that are hard to track down.
@prolixalias
prolixalias / Code Manager Nuclear Option.md
Created October 26, 2018 15:06 — forked from big-samantha/Code Manager Nuclear Option.md
How to completely wipe your code manager install and resync from scratch.

The best way to ensure we completely address this would be to just clear the File Sync cache. To do so:

  1. On the master, shutdown the pe-puppetserver service: service pe-puppetserver stop

  2. On the master, delete all the files inside /etc/puppetlabs/code, and /etc/puppetlabs/code-staging including all hidden files, leaving only the production environment:

# find /etc/puppetlabs/code -mindepth 1 -delete
# mkdir -p /etc/puppetlabs/code/environments/production
# mv /etc/puppetlabs/code-staging /etc/puppetlabs/code-staging.old
@prolixalias
prolixalias / tmux-cheatsheet.markdown
Created May 11, 2016 22:17 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
INFO global: Vagrant version: 1.5.1
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DETECTED_OS="MINGW32_NT-6.1"
INFO global: VAGRANT_EXECUTABLE="c:/HashiCorp/Vagrant/bin/../embedded/gems/gems/vagrant-1.5.1/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="c:/HashiCorp/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"