Skip to content

Instantly share code, notes, and snippets.

@smook1980
smook1980 / control_codes.go
Created October 18, 2016 00:36
Multiline Terminal Codes
func invertColours() {
fmt.Print("\033[7m")
}
func resetStyle() {
fmt.Print("\033[0m")
}
func moveUp() {
fmt.Print("\033[1A")
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Shane Mook"
user-mail-address "...@gmail.com")
@smook1980
smook1980 / wezterm.lua
Created March 24, 2023 20:30
My WezTerm conifg
local wezterm = require 'wezterm'
local mux = wezterm.mux
wezterm.on('gui-startup', function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
return {
font = wezterm.font('JetBrainsMono Nerd Font Mono'),
@smook1980
smook1980 / aws-console.fish
Created November 14, 2024 20:34
Launch the AWS console via aws-vault in a Chrome Profile for the given aws profile.
function aws-console --description 'start a new chrome browser logged in to aws'
# set to yes to always start in a new window
set -l NEW_WINDOW no
set -l profile "$argv[1]"
if test -z "$profile"
echo "Profile is a required argument" >&2
return 1
end