- ⇧⌘3: whole-screen screenshot saved to desktop (if multiple monitors, one per monitor)
- ⌃⇧⌘3: whole-screen screenshot (if multiple monitors, main monitor only)
- ⇧⌘4: start partial screen selection
- drag and release: selected area saved to desktop
- hold ⌃ and drag and release: selected area saved to clipboard
- tap space bar: toggle one-window selection; use to take perfectly framed captures of one window
- start dragging, and while still dragging:
- hold space bar: dragging changes origin, rather than size; use to adjust when you started the capture at the wrong origin
- hold ⇧: dragging size changes locked to only one dimension
- hold ⌥: origin moves as size changes, so that size changes don't affect the capture's center; use to capture an area centered on a point
This file contains 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
/* ==UserStyle== | |
@name Wide Lever candidate view | |
@namespace github.com/ravron | |
@version 1.0.3 | |
@description Make Lever's candidate view more space-efficient | |
@homepageURL https://gist.github.com/ravron/b3f5974c0f7bbab7bcabfa8908e074fc | |
@updateURL https://gist.github.com/ravron/b3f5974c0f7bbab7bcabfa8908e074fc/raw/lever.user.css | |
@author ravron | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://hire.lever.co/candidates/") { |
This is a list of useful CLI tools that either ship with macOS or are easily installed, usually by brew
.
-
jot
— print sequential or random dataDetails
Install: built-in
This is a list of useful CLI tools that either ship with macOS or are easily installed, usually by brew
.
jot
— print sequential or random data
Tired of spamming Yubikey one-time password (OTP) codes into Slack? Here are two options to help prevent that. You can do either or both. Both require ykman
, the Yubikey CLI configuration manager. Get it with Homebrew:
brew install ykman
If you…
- …don't have Homebrew? Install it, then run the command above
- …don't feel comfortable running terminal commands? Skip to the bottom
- …aren't sure what the big deal is? See "What's the big deal with Yubikey codes?" below
This file contains 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 <Foundation/Foundation.h> | |
#import <ImageIO/ImageIO.h> | |
CGImageSourceRef createSourceFromPath(NSString *path) { | |
NSFileManager *f = [[NSFileManager alloc] init]; | |
NSString *inImagePath = [NSString pathWithComponents:@[f.currentDirectoryPath, path]]; | |
CGDataProviderRef provider = CGDataProviderCreateWithFilename([inImagePath cStringUsingEncoding:NSUTF8StringEncoding]); | |
CGImageSourceRef src = CGImageSourceCreateWithDataProvider(provider, NULL); | |
CGDataProviderRelease(provider); | |
return src; |