Skip to content

Instantly share code, notes, and snippets.

Avatar
🤙
Call me to test your sound

Nathan Knowler knowler

🤙
Call me to test your sound
View GitHub Profile
@knowler
knowler / .spacebarrc
Created Jun 10, 2020
my current spacebar config
View .spacebarrc
spacebar -m config text_font "Dank Mono:Regular:12.0"
spacebar -m config icon_font "Font Awesome 5 Free:Regular:10.0"
spacebar -m config background_color 0xff121212
spacebar -m config foreground_color 0xff5cafb0
spacebar -m config space_icon_strip Comms Design Code Preview Jam Misc
spacebar -m config power_icon_strip    
spacebar -m config space_icon 
spacebar -m config clock_icon 
spacebar -m config clock_format "%A, %B%e, %Y %R"
@knowler
knowler / .yabairc
Created Jun 10, 2020
my current yabai config
View .yabairc
#!/usr/bin/env sh
yabai -m config external_bar all:26:0
yabai -m config mouse_follows_focus on
yabai -m config focus_follows_mouse off
yabai -m config window_topmost off
yabai -m config window_opacity on
yabai -m config window_opacity_duration 0.1
yabai -m config active_window_opacity 1.0
@knowler
knowler / .skhdrc
Created Jun 10, 2020
my current skhd config
View .skhdrc
cmd - return : /Applications/Alacritty.app/Contents/MacOS/alacritty
ctrl + alt + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"
# focus window
alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east
View App.js
/** @jsx jsx */
import { jsx } from 'theme-ui'
export const App = () => (
<main css={{ bg: 'mirage', color: 'white', py: [2, 4, 6], px: [2, 3, 4] }}>
<h1
css={{
letterSpacing: '0.05ch',
fontWeight: 300,
borderBottom: '1px solid',
@knowler
knowler / shamrock.boilerplate.php
Last active Apr 13, 2019
A simple WordPress plugin boilerplate for single purpose plugins.
View shamrock.boilerplate.php
<?php
/**
* Plugin Name: Shamrock
* Description: A simple WordPress plugin boilerplate.
* Version: 0.1.0
* Author: Nathan Knowler
* Author URI: https://knowlerkno.ws
* License: MIT License
* Text Domain: shamrock
*
@knowler
knowler / roots-wordpress-version-badge.md
Last active Dec 29, 2018
Roots WordPress Version Badge
View roots-wordpress-version-badge.md

Roots WordPress Version Badge

Roots

Code

[![Roots](https://img.shields.io/badge/dynamic/json.svg?url=https://raw.githubusercontent.com/roots/roots-example-project.com/master/site/composer.json?token=R2l0SHViIFRva2VuIEdvZXMgSGVyZQ==&label=wordpress&logo=roots&logoColor=white&query=$.require["roots/wordpress"]&colorB=2b3072&colorA=525ddc)](//roots.io)
View bedrock-sage.lando.yml
name: bedrock
recipe: wordpress
proxy:
nginx:
- bedrock.test
theme:
- localhost:3000
config:
php: '7.2'
via: nginx
@knowler
knowler / docker-compose.sage-support.yml
Last active Dec 3, 2018
lazy af docker compose for sage support
View docker-compose.sage-support.yml
version: "3"
services:
wordpress:
image: wordpress
ports:
- 8080:80
volumes:
- ./:/var/www/html/wp-content/themes/sage
@knowler
knowler / bedrock-classicpress-composer.json
Last active Dec 4, 2018
Bedrock lightly modified to use ClassicPress.
View bedrock-classicpress-composer.json
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
@knowler
knowler / bedrock.htaccess
Last active Nov 7, 2018
For if you need to install Bedrock (or any other application with a web/public folder) in the document root. Add this to your Bedrock project's root and make sure WP has generated its own .htaccess in the web folder (hit save the permalinks setting page). Not ideal. Suggestions + advice appreciated.
View bedrock.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/web/
RewriteRule (.*) web/$1 [L]
</IfModule>
You can’t perform that action at this time.