Skip to content

Instantly share code, notes, and snippets.

View mikejk8s's full-sized avatar
:octocat:

Mike Johnson mikejk8s

:octocat:
View GitHub Profile
@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
@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 / 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
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"
)
@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
@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 / 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 / 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 / rust-command-line-utilities.markdown
Created February 3, 2023 17:06 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
  • bat: A replacement for cat that provides syntax highlighting and other features.
  • bottom: Yet another cross-platform graphical process/system monitor.

Keybase proof

I hereby claim:

  • I am mikejk8s on github.
  • I am swozey (https://keybase.io/swozey) on keybase.
  • I have a public key ASDzRNvP2Qholh7SahhE83bGga_MKR2yYs6q74umlEuKWwo

To claim this, I am signing this object: