Skip to content

Instantly share code, notes, and snippets.

@kevinlawler
kevinlawler / subtitle-extract.txt
Created November 22, 2015 17:49 — forked from bmaeser/subtitle-extract.txt
extract subtitles from *.mkv-files on osx
lines with $ are commands
### install mkvtoolnix:
$ brew install mkvtoolnix
### list content of the mkv-file:
$ mkvmerge -i mymoviefile.mkv
### what will give you:
@kevinlawler
kevinlawler / fix-new-build-runbook.txt
Last active November 3, 2017 18:56
New Release Runbook (if it doesn't work on your system) - Brave
New Release Runbook (if it doesn't work on your system)
(if you get git network failures, try raising config http.postBuffer)
Definitions:
B-L-B: .../browser-laptop-bootstrap
B-L: .../browser-laptop-bootstrap/src/browser-laptop
MUON: .../browser-laptop-bootstrap/src/electron
1. Download it:
@kevinlawler
kevinlawler / brew-update-notifier.sh
Created August 24, 2018 09:29 — forked from SimonSimCity/brew-update-notifier.sh
Extended the script, written by @streeter to exclude the pinned formulae in the list of formulas to update.
#!/bin/bash
#
# Notify of Homebrew updates via Notification Center on Mac OS X
#
# Author: Chris Streeter http://www.chrisstreeter.com
# Requires: terminal-notifier. Install with:
# brew install terminal-notifier
TERM_APP='/Applications/Terminal.app'
BREW_EXEC='/usr/local/bin/brew'
@kevinlawler
kevinlawler / ReadMe.md
Created August 24, 2018 09:32 — forked from jb510/ReadMe.md
Auto Update Brew: OS X Launchd job and script to automatically update homebrew
  1. Place homebrewupdate.sh where ever you like, I use ~/bin/homebrewupdate.sh
  2. Place the .plist file in ~/Library/LaunchAgents and update the path to your bash script
  3. run launchctl load ~/Library/LaunchAgents/com.jb510.homebrewupdate.plist or whatever you've named your plist file.
  4. check launchctl list | grep jb510 to see that it's running

Note: You might need to chmod +x homebrewupdate.sh

Note 2: you can run this manually to test your script ~/bin/homebrewupdate.sh

Future: Update this to also update casks https://github.com/buo/homebrew-cask-upgrade or using brew cask list | xargs brew cask reinstall

@kevinlawler
kevinlawler / log.vim
Created May 27, 2019 13:10
Logging every autocommands events in the log file
augroup EventLoggin
autocmd!
autocmd BufNewFile * call s:Log('BufNewFile')
autocmd BufReadPre * call s:Log('BufReadPre')
autocmd BufRead * call s:Log('BufRead')
autocmd BufReadPost * call s:Log('BufReadPost')
autocmd BufReadCmd * call s:Log('BufReadCmd')
autocmd FileReadPre * call s:Log('FileReadPre')
autocmd FileReadPost * call s:Log('FileReadPost')
autocmd FileReadCmd * call s:Log('FileReadCmd')
@kevinlawler
kevinlawler / k_tech_tree.md
Created June 28, 2022 14:28 — forked from chrispsn/k_tech_tree.md
k tech tree

k tech tree

Thought experiment:

Which k primitives can be implemented as k-strings, reasonably efficiently, with a handful of 'native' built-ins?

Not verified to be in dependency order yet... may depend on the choice of 'fundamental' primitives. Need to do speed tests too.

k9 syntax (download via Shakti). Got a better way to write one? Feel free to comment, you'll be credited!