Skip to content

Instantly share code, notes, and snippets.

View mikejk8s's full-sized avatar
🦀

Mike Johnson mikejk8s

🦀
  • Denver, CO
View GitHub Profile
@mikejk8s
mikejk8s / wordpress.nginxconf
Created February 14, 2023 21:05 — forked from goblindegook/wordpress.nginxconf
Nginx virtual host configuration for WordPress
server {
listen 80;
server_name www.example.com;
rewrite ^ $scheme://example.com$request_uri?;
}
server {
listen 80;
server_name example.com;
@mikejk8s
mikejk8s / gist:23a188199514624994fed5c238931c6d
Created March 14, 2023 16:07
Karabiner Config for Razer Tartarus V2
{
"title": "Razer Tartarus v3 dont clobber other shortcuts",
"rules": [
{
"description": "Razer 01 to Left_Shift-Left_Option-a",
"manipulators": [
{
"conditions": [
{
"type": "device_if",
@mikejk8s
mikejk8s / skhdrc
Created March 14, 2023 16:10
skhdrc
##############################################
# Navigation (focussing)
##############################################
# Windows: Alt + [DIR]
shift + alt - h : yabai -m window --focus west
shift + alt - j : yabai -m window --focus south
shift + alt - k : yabai -m window --focus north
shift + alt - l : yabai -m window --focus east
@mikejk8s
mikejk8s / yabairc
Last active March 17, 2023 14:53
yabairc
#!/usr/bin/env sh
# startup script
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa
# ~/.config/yabai/yabairc
# global settings
yabai -m config mouse_follows_focus off
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"
)
@mikejk8s
mikejk8s / bt-go.go
Created March 26, 2023 11:19
bubbletea1
type View struct {
Title string
Width int
Height int
Content string
}
type model struct {
currentView int
views []View
@mikejk8s
mikejk8s / addchans.go
Created March 30, 2023 14:22
slack channel adder
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
@mikejk8s
mikejk8s / MOTD.md
Created February 11, 2024 05:03 — forked from mfgbhatti/MOTD.md
Ubuntu like motd for arch linux systems
#!/usr/bin/env bash
# ____ __ __ __ __ _
# ____ ___ / __/___ _/ /_ / /_ ____ _/ /_/ /_(_)
# / __ `__ \/ /_/ __ `/ __ \/ __ \/ __ `/ __/ __/ /
# / / / / / / __/ /_/ / /_/ / / / / /_/ / /_/ /_/ /
#/_/ /_/ /_/_/ \__, /_.___/_/ /_/\__,_/\__/\__/_/
# /____/
#
# https://gist.github.com/mfgbhatti/2c2ea5da5d6d7e608d90fd43d4daa4a8