Skip to content

Instantly share code, notes, and snippets.

View montethinks's full-sized avatar

Monte Williams montethinks

View GitHub Profile
@montethinks
montethinks / work.sh
Last active February 21, 2024 11:27
Start tmux with preconfigured windows and panes.
#!/bin/sh
# Setup a work space called `work` with four windows
session="work"
# set up tmux
tmux start-server
# create a new tmux session with <NAME>
@montethinks
montethinks / clean_desktop.rb
Created October 5, 2018 18:34
Quick and dirty removing screenshots from mac OS desktop
require "fileutils"
class CleanDesktop
EXTENSIONS = %w(.png .jpg .jpeg)
attr_reader :directory_name
def initialize(directory_name)
@directory_name = directory_name
end
# frozen_string_literal: true
require 'fileutils'
home = -> { Dir.chdir(Dir.home) }
downloads = -> { Dir.chdir('Downloads') }
home.call
downloads.call