Skip to content

Instantly share code, notes, and snippets.

View mbriggs's full-sized avatar

Matt Briggs mbriggs

View GitHub Profile
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `data_model` gem.
# Please instead update this file by running `bin/tapioca gem data_model`.
# source://data_model//lib/data_model.rb#15
module DataModel
extend ::DataModel

I like OSX and I like Windows, have been a professional dev on both platforms. I totally understand where the post is coming from, but as a life long mac user, this is my perspective :)

I think the two big, major things the author missed are 1) OSX "power users" tend to be UNIX nerds, so doing things from the terminal is easy natural for them, and even if GUIs did exist they would probably go unused. While PowerShell is great, it is almost more of a scripting environment. UNIX is in my bones :) 2) When you buy a mac, expect to drop another 100-200$ on software to make it awesome (it is still reasonably easy to survive as a 1-2 man dev shop writing mac software as shareware, so there is a LOT of amazing shareware out there). By contrast, on windows, there is less software of that level of quality out there, but most of it is free. Good or bad, it is what it is, and has been that way for as long as I have had a mac (system 7 days)

  1. use http://www.alfredapp.com/ one of the best launchers out there for any O
@mbriggs
mbriggs / fedora.md
Last active November 4, 2021 19:41
Fedora setup script
@mbriggs
mbriggs / gemstash.service
Created September 29, 2020 22:16
set up local gemstash in linux
[Unit]
Description=Local Gem Cache
After=network.target
[Service]
Type=simple
WorkingDirectory=/home/mbriggs
ExecStart=/home/mbriggs/.gem/ruby/bin/gemstash start --no-daemonize
[Install]
# this is similar to lisp, implicit return is super natural
def this_is_expressive(arg)
if arg
query_one(arg)
else
query_two(arg)
end
end

Arch

Arch Install Script

partition drive

  • view drives: fdisk -l
  • gdisk <drive>
  • d (delete) all
  • efi: n, <default> - +512M, EFI
  • root: n, <default> - -0, Linux Filesystem
  • w (write and save)
(defun lsp--on-diagnostics (workspace params)
"Callback for textDocument/publishDiagnostics.
interface PublishDiagnosticsParams {
uri: string;
diagnostics: Diagnostic[];
}
PARAMS contains the diagnostics data.
WORKSPACE is the workspace that contains the diagnostics."
(let* ((file (lsp--uri-to-path (gethash "uri" params)))
(diagnostics (seq-map #'lsp--make-diag (gethash "diagnostics" params)))
vmap <TAB> <esc>mbgv=`bgv
nmap <TAB> mb==`b
imap <TAB> <C-R>=HandleITab()<cr>
func! HandleITab()
if pumvisible()
return "\<c-n>"
else
return "\<ESC>==i"
endif
{
"languageserver": {
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod"],
"filetypes": ["go"]
},
"dockerfile": {
"command": "docker-langserver",
if &compatible
set nocompatible " Be iMproved
endif
call plug#begin('~/nvim/plugged')
" syntax
Plug 'othree/yajs.vim'
Plug 'othree/html5.vim'
Plug 'vim-scripts/nginx.vim'