Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Scott Ming scottming

🎯
Focusing
View GitHub Profile
View My Exiftool Cheatsheet.md

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@scottming
scottming / actionlist.vim
Created Apr 26, 2022 — forked from zchee/actionlist.vim
IdeaVim actionlist
View actionlist.vim
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View my_configs.vim
let g:NERDTreeNodeDelimiter = "\u00a0"
nnoremap \ ,
View config.lua
-- private/config.lua
-- Specify Spoons which will be loaded
hspoon_list = {
-- "AClock",
-- "BingDaily",
-- "Calendar",
-- "CircleClock",
-- "ClipShow",
"CountDown",
-- "FnMate",
@scottming
scottming / karabiner.json
Last active May 27, 2022
karabiner-elements
View karabiner.json
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
View getsheets.py
# -*- coding: utf-8 -*-
import click
import os
import pandas as pd
def file_split(file):
s = file.split('.')
name = '.'.join(s[:-1]) # get directory name
View init.lua
local cmdalt = {"cmd", "alt"}
local capslock = {'cmd', "alt", "shift", "ctrl"}
-- Set grid size.
hs.grid.GRIDWIDTH = 4
hs.grid.GRIDHEIGHT = 6
hs.grid.MARGINX = 0
hs.grid.MARGINY = 0
hs.window.animationDuration = 0
@scottming
scottming / capslock.ahk
Last active Nov 5, 2021
; Autohotkey Capslock Remapping Script
View capslock.ahk
; Autohotkey Capslock Remapping Script
; - Deactivates capslock for normal (accidental) use.
; - Hold Capslock and drag anywhere in a window to move it (not just the title bar).
; - Access the following functions when pressing Capslock:
;Cursor keys - h, j, k, l
;Home,End - N, ;
;Page up,down - - =
;Esc - CapsLock only
;CapsLock - Space