Skip to content

Instantly share code, notes, and snippets.

View knowncitizen's full-sized avatar
🤘

Jason Rist knowncitizen

🤘
View GitHub Profile
@knowncitizen
knowncitizen / autofs.md
Created August 12, 2025 22:01 — forked from rudelm/autofs.md
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master and add the last line:

#
# Automounter master map
#

+auto_master # Use directory service

@knowncitizen
knowncitizen / openshift-cheatsheet.md
Created October 10, 2023 20:29 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \

Install arch on a Lenovo Yoga 11e Chromebook

The Thinkpad Yoga 11e isn't the most popular chromebook, but you can readily pick one up for less than 200$, and it's physically built like a tank. You could throw it at a man, pick it back up, and go on typing.

This chromebook is a member of the categories "braswell" and "ULTIMA".

I'll describe the process I followed to get Arch running on it. The firmware steps should be the same if you'd like to install Gallium, an excellent chromebook-optimized distro forked from Xubuntu.

Firmware

@knowncitizen
knowncitizen / find_primes.go
Created October 16, 2019 19:21
Find all the primes under <x>
package main
import (
"fmt"
"math"
)
var primes []int
func makeRangeArray(min, max int) []int {
@knowncitizen
knowncitizen / iterm2-solarized.md
Created October 10, 2019 18:48 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@knowncitizen
knowncitizen / .ssh_config
Created June 25, 2019 05:09 — forked from andyvanee/.ssh_config
Fix unix_listener too long for Unix domain socket
Host *
ControlPath ~/.ssh/control/%C
ControlMaster auto
@knowncitizen
knowncitizen / file.md
Created September 11, 2018 17:33 — forked from honza/file.md
Using packaged dependencies during development

Using packaged dependencies during development

This tiny guide shows you how you can use TripleO UI dependencies packaged in openstack-tripleo-ui-deps during development.

Why? Many of our dependencies in package.json aren't pinned down to a specific version. This can cause problems when a small change is introduced in one or more of our dependencies. You can get the dependencies from the upstream RPM to see what will be included in production, and how you change will be affected.

@knowncitizen
knowncitizen / undercloud.sh
Created April 13, 2018 16:47
Deploy a containerized undercloud on a fresh CentOS7
#!/bin/bash
set -ex
sudo yum update -y
sudo yum install -y git
git clone https://github.com/openstack/tripleo-repos
cd tripleo-repos
sudo python setup.py install
cd
rm -rf tripleo-repos
sudo tripleo-repos current
@knowncitizen
knowncitizen / fresh_mistral.sh
Created October 6, 2016 15:38
Fresh Mistral
#!/bin/bash
sudo rm -Rf /usr/lib/python2.7/site-packages/tripleo_common*
sudo python setup.py install
sudo cp /usr/share/tripleo-common/sudoers /etc/sudoers.d/tripleo-common
sudo systemctl restart openstack-mistral-executor
sudo systemctl restart openstack-mistral-engine
# this loads the actions via entrypoints
sudo mistral-db-manage populate
# make sure the new actions got loaded
@knowncitizen
knowncitizen / screencast.py
Created August 18, 2016 04:57 — forked from rbrady/screencast.py
A half-baked idea to make it easier to have a repeatable screencast process
# Copyright 2016 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software