This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Helper function to parse Procfile lines | |
| local function parse_procfile(dir) | |
| local commands = {} | |
| local file_path = dir .. '/Procfile.dev' | |
| local f = io.open(file_path, 'r') | |
| if f then | |
| for line in f:lines() do | |
| if line ~= '' and not line:match('^%s*#') then | |
| local name, cmd = line:match('^%s*([%w%-_]+)%s*:%s*(.+)$') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage: in ~/.wezterm.lua | |
| # | |
| # -- Register external color scheme directory | |
| # local colors_dir = wezterm.home_dir .. '/opensource/boring-tomorrow/colors' | |
| # config.color_scheme_dirs = { colors_dir } | |
| # | |
| # -- Set the color scheme to the one we just defined | |
| # config.color_scheme = 'Boring Tomorrow' | |
| # -- Only thing not covered in the theme is the command palette |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import EventKit | |
| import AppKit | |
| func requestAccess(eventStore: EKEventStore) async -> Bool { | |
| do { | |
| return try await eventStore.requestFullAccessToEvents() | |
| } catch { | |
| print("Failed to request calendar access: \(error)") | |
| return false | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local wezterm = require 'wezterm' | |
| local config = wezterm.config_builder() | |
| config.font = wezterm.font 'Fira Code' | |
| config.font_size = 13 | |
| config.line_height = 1.25 | |
| config.default_prog = { '/opt/homebrew/bin/bash' } | |
| config.native_macos_fullscreen_mode = false | |
| config.tab_bar_at_bottom = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| How to apply: | |
| * Open about:support in the address bar | |
| * Find "Profile Folder" there, open it | |
| * Create chrome/userContent.css file there | |
| * Put the content of this file there | |
| * Open about:config | |
| * Enable toolkit.legacyUserProfileCustomizations.stylesheets | |
| * Reload the browser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HashDiff | |
| class << self | |
| def t(target) | |
| en = YAML.load_file("config/locales/en.yml")["en"] | |
| target = YAML.load_file("config/locales/#{target}.yml")[target.to_s] | |
| for_translation(en, target) | |
| end | |
| def push(target_language, update) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- .config/nvim/lua/boring-tomorrow/init.lua | |
| -- Boring Tomorrow colorscheme. | |
| -- Colors used by the colorscheme itself, fzf.vim and lualine.nvim live here. | |
| -- for autoload: :help runtimepath | |
| local M = {} | |
| M.term_colors = { | |
| black = 232, | |
| red = 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # usage: | |
| # mkdir ~/.githooks | |
| # nvim ~/.githooks/prepare-commit-msg # paste the content of this file | |
| # git config --global core.hooksPath ~/.githooks/ # you don't have to do it globally but | |
| COMMIT_MSG_FILE=$1 | |
| branch="$(git rev-parse --abbrev-ref HEAD)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chromedriver | |
| firefox | |
| iterm2 | |
| karabiner-elements | |
| skype | |
| steam | |
| thunderbird | |
| virtualbox | |
| anki | |
| djview |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FF = "Firefox" | |
| CHROME = "Google Chrome" | |
| SLACK = "com.tinyspeck.slackmacgap" | |
| GLEAM_GH = /github.com\/Crowd9/ | |
| module.exports = { | |
| defaultBrowser: FF, | |
| handlers: [ |
NewerOlder