Skip to content

Instantly share code, notes, and snippets.

View chrismcfee's full-sized avatar
🇺🇦
Working from home

Chris McFee chrismcfee

🇺🇦
Working from home
View GitHub Profile
@chrismcfee
chrismcfee / pacman-init.sh
Last active December 22, 2024 03:41 — forked from bouroo/pacman-init.sh
Init arch linux pacman
#!/usr/bin/env bash
# Enable networkd and resolved
systemctl enable systemd-networkd
systemctl enable systemd-resolved
systemctl restart systemd-networkd
systemctl restart systemd-resolved
# Init pacman mirror
curl -s -L "https://www.archlinux.org/mirrorlist/?country=TH&country=SG&country=IN&country=JP&protocol=https&ip_version=4" | sed -e 's/^#Server/Server/' -e '/^#/d' > /etc/pacman.d/mirrorlist
@chrismcfee
chrismcfee / weechatrelay-letsencrypt.md
Created March 21, 2024 16:24 — forked from meskarune/weechatrelay-letsencrypt.md
weechat relay with ssl certificates from let's encrypt

after install neovim nvim config file folder ~/.config/nvim

$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.config/nvim/bundle/Vundle.vim

set nocompatible              " be iMproved, required
filetype off                  " required
" set the runtime path to include Vundle and initialize

set rtp+=~/.vim/bundle/Vundle.vim

@chrismcfee
chrismcfee / vagrant-cheat-sheet.md
Created October 26, 2023 05:03 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@chrismcfee
chrismcfee / _verify-repair-permissions-disk.md
Created May 14, 2016 16:06 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

add-america-filter.patch

Adds a fantastically patriotic filter to toilet's repertoire.

Example usage

Usage

$ cd toilet-src/