Dan Rodney's List of Mac OS X Keyboard Shortcuts & Keystrokes For years I’ve collected these keystrokes. I hope they help you become the power user that lies within. I have tested them on Mac OS X El Capitan, but most should work on older versions of Mac OS (such as Yosemite, Mavericks, Mountain Lion). After macOS Sierra comes out I will update as needed! Menu Symbols Finder App Switcher Managing Windows & Dialogs Dock Dashboard Working with Text Only work in some apps (Safari, Mail, TextEdit, etc.) Screenshots Saved to the Desktop as a PNG file. Spotlight Mission Control Startup, Restart, Shutdown & Sleep Safari Apple Mail Preview Miscellaneous Emacs Key Bindings Only work in some apps (Safari, Mail, TextEdit, etc.)
How to read values from a NO2 sensor from an Arduino? pbpaste & pbcopy in Mac OS X (or: Terminal + Clipboard = Fun!) The OS X shell is very powerful, but some wonderfully useful commands are almost entirely unknown to the community at large. Two of these forgotten commands are pbcopy and pbpaste. Let's take a quick look at what they can do. pbcopy This command allows you to copy text from stdin into the clipboard1 buffer. echo 'Hello World!' "Hello World!" pbpaste Pastes from your clipboard to stdout. This will echo the contents of your clipboard. What Can I Do With These? What can't you do! You could grab the output of a grep/awk/sed to paste into IM/IRC.You could use a macro tool (like iKey, QS, et cetera) to create text modifying workflows that grab highlighted text, manipulate it, and replace it inline.You could pull changelogs from svn into the clipboard when tagging for release so you could email them to coworkers. Let me know what amazing things you come up with to enhance your own productivity!
dtrx: Intelligent archive extraction Introduction dtrx stands for “Do The Right Extraction.” It's a tool for Unix-like systems that takes all the hassle out of extracting archives. $ dtrx linux-3.0.1.tar.bz2 That's basically the same thing as: $ tar -jxf linux-3.0.1.tar.bz2 But there's more to it than that. $ tar -zvxf random-tarball.tar.gz foo bar data/ data/text $ cd data/ cd: permission denied: data dtrx takes care of all those problems for you, too: $ dtrx random-tarball.tar.gz $ cd random-tarball/data $ cat text This all works properly. dtrx is simple and powerful. Features Handles many archive types: You only need to remember one simple command to extract tar, zip, cpio, deb, rpm, gem, 7z, cab, lzh, rar, gz, bz2, lzma, xz, and many kinds of exe files, including Microsoft Cabinet archives, InstallShield archives, and self-extracting zip files. Download Download dtrx 7.1. Support for LZH archives.Minor bug fixes in handling recursive extraction and empty archives. $ hg clone Requirements
Installing Powerline, as quickly as possible - Tried & Tested - Ubuntu MATE Community Powerline will replace your statusline formatting settings with its own. You will need to modify Powerline's default theme to replicate your settings and match whatever display and font settings you had before. Also, you may need to edit some font files if you want to use a specific font with your terminal. Bear that in mind. As it is a beta, it remains a work in progress and information for this application at this time is a little harder to come by. Powerline is a font set and command-line program addon that beautifies the terminal, giving it a breadcrumbs-like appearance and making certain things in the terminal look more distinctive. With that, the program and fonts are installed. Shell: Bourne Again shell (usually ~/.bashrc) if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then source /usr/share/powerline/bindings/bash/powerline.sh fi Shell: Z-shell (usually ~/.zshrc) Editor: Vim (usually ~/.vimrc) Command-line: tmux (usually ~/.tmux.conf)
Understanding the Java Garbage Collection Log The Java Zone is brought to you in partnership with AppDynamics. Discover how AppDynamics steps in to upgrade your performance game and prevent your enterprise from these top 10 Java performance problems. To diagnose any memory problems, the Garbage Collection log file is the best place to start. It provides several interesting statistics: When the scavenge (or Young generation) GC ran? How to Generate GC Log File? In order to understand the GC log, you first need to generate one. Example: -XX:+PrintGCDateStamps would print the absolute time stamp in the log statement (i.e. “2014-11-18T16:39:25.303-0800”). -XX:+PrintGCDetails property would print the details of how much memory is reclaimed in each generation. Passing the above system properties would generate a Garbage Collection log file that would look like: Anatomy of GC Log Statement Let’s pick apart this log statement and examine each field in it: 2014-11-18T16:39:37.728-0800 – Time stamp at which GC ran. Full GC – Type of GC. Topics:
Grive: Open Source Google Drive Client For Linux Update: grive was abandoned and no longer works. You may want to take a look at Grive2 instead. The Google Drive client isn't yet available for Linux and the old Google Docs FS doesn't work too well with Google Drive, so besides the web interface, the best solution to get Google Drive on Linux right now is using Grive, an unofficial, open source, command line Linux client for Google Drive. For now, the application is considered experimental and it lacks full sync, but it can upload and download new or changed files already (so you can access your files offline). What it can't do yet is: wait for changes and automatically sync the files or delete files (when a file is deleted locally, it's ignored and when it's deleted remotely, it's reuploaded if it exists locally). Initially, Grive didn't support uploading new files and it could only upload changed files but the latest version from GIT (available in the WebUpd8 PPA) supports uploading new files too. Using Grive 1. mkdir -p ~/grive 2. 3.
Cheatsheet · robbyrussell/oh-my-zsh Wiki To try it out if you have just cloned it (to your home directory): source ~/.oh-my-zsh/templates/zshrc.zsh-template Commands See ~/.oh-my-zsh/lib/directories.zsh Alias example: alias -s rb=vim #opens ruby files in vim# $ foo.rb # vim => foo.rbalias -g gp='| grep -i' #creates a global alias for grep# $ ps ax gp ruby# (all ruby process will be displayed) Tab-completion Git You also find these commands in Dash as a Cheat-sheet. Editors Symfony2 tmux Systemd systemctl Rails Rails Aliases RAILS_ENV Aliases Upgrade To upgrade .oh-my-zsh, run: upgrade_oh_my_zsh
srsudar/eg