(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| #!/bin/bash | |
| function usage() { | |
| echo "usage: $0 <volume (0-100)> <say args...>" | |
| echo | |
| echo "Unmutes and sets the system volume to volume%, passing the remaining" | |
| echo "arguments to the OSX \`say' command, restoring volume / mute setting" | |
| echo "to previous values after the speech has completed." | |
| exit 1 | |
| } |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
| # DESCRIPTION OF PROBLEM: Implementations of sed, readlink, zcat, etc. are different on OS X and Linux. | |
| # NOTE: Put this on top of your script using sed, readlink, zcat, etc. that should work alike on Mac OS X. | |
| # cross-OS compatibility (greadlink, gsed, zcat are GNU implementations for OS X) | |
| [[ `uname` == 'Darwin' ]] && { | |
| which greadlink gsed gzcat > /dev/null && { | |
| unalias readlink sed zcat | |
| alias readlink=greadlink sed=gsed zcat=gzcat | |
| } || { | |
| echo 'ERROR: GNU utils required for Mac. You may use homebrew to install them: brew install coreutils gnu-sed' |
| /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep -B6 bindings:.*: |
| #!/usr/bin/env ruby | |
| require 'JSON' | |
| device_types = JSON.parse `xcrun simctl list -j devicetypes` | |
| runtimes = JSON.parse `xcrun simctl list -j runtimes` | |
| devices = JSON.parse `xcrun simctl list -j devices` | |
| devices['devices'].each do |runtime, runtime_devices| | |
| runtime_devices.each do |device| |
| Project | # of Top 100 Free Apps (US) | |
|---|---|---|
| facebook-ios-sdk | 67 | |
| Bolts-iOS | 48 | |
| AFNetworking | 39 | |
| Google-Mobile-Ads-SDK | 38 | |
| Reachability (Apple) | 38 | |
| Crashlytics | 37 | |
| Flurry-iOS-SDK | 31 | |
| CocoaPods | 30 | |
| GoogleConversionTracking | 29 |
| - Open Automator | |
| - File -> New -> Service | |
| - Change "Service Receives" to "files or folders" in "Finder" | |
| - Add a "Run Shell Script" action | |
| - Change "Pass input" to "as arguments" | |
| - Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
| - Save it as something like "Open in Visual Studio Code" |
ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows
Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)
With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.