From Metaphox for Metaphox
- XCode
xcode-select --install- iTerm2 http://iterm2.com/
| #!/bin/bash | |
| function st() { | |
| BEGIN=$(date +%s) | |
| if [ -z "$1" ]; then | |
| echo Starting Stopwatch... | |
| else | |
| echo $@... | |
| fi |
| Layout info: | |
| { | |
| "id": "com.apple.keylayout.DVORAK-QWERTYCMD", | |
| "lang": "en" | |
| } | |
| isUSStandard: false | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| | HW Code combination | Key | KeyCode combination | Pri | UI label | User settings | Electron accelerator | Dispatching string | WYSIWYG | | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| | KeyA | a | A | | A | a | A | [KeyA] | | |
| local module = {} | |
| module.debugging = false -- whether to print status updates | |
| local eventtap = require "hs.eventtap" | |
| local event = eventtap.event | |
| local inspect = require "hs.inspect" | |
| local keyHandler = function(e) | |
| local watchFor = { |
| # | |
| # Tasks | |
| # | |
| # - start :: starts application using forever | |
| # - stop :: stops application using forever | |
| # - restart :: restart application using forever | |
| # | |
| # This set's your local directory to to your NODE_PATH | |
| NODE_EXEC = NODE_PATH=.:$(NODE_PATH) |
From Metaphox for Metaphox
xcode-select --install| // | |
| // Smooth scroll-to inspired by: | |
| // http://stackoverflow.com/a/24559613/728480 | |
| // | |
| module.exports = function (scrollTo, scrollDuration) { | |
| // | |
| // Set a default for where we're scrolling to | |
| // |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Routing\Route; | |
| use Illuminate\Support\ServiceProvider; | |
| use App\Http\Middleware\CaptureRequestExtension; | |
| class AppServiceProvider extends ServiceProvider |
I use separate Firefox profiles for work and personal stuff. To distinguish those I place them on different workspaces.
firefox --no-remote -P MyJobfirefox --no-remote -P defaultI have also company Slack on Workspace 0. Which usually contains links to some work stuff.
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="powerlevel9k/powerlevel9k" | |
| DEFAULT_USER="..." | |
| export LS_COLORS="di=34;40:ln=36;40:so=35;40:pi=33;40:ex=32;40:bd=1;33;40:cd=1;33;40:su=0;41:sg=0;43:tw=0;42:ow=34;40:" |
| -- My own config file to get the Hyper Key working again with my current setup. | |
| -- All credit goes to @prenagha and @ttscoff for their awesome original code that I tweaked for my own devices. | |
| -- Credit 1: https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907 | |
| -- Credit 2: https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e | |
| -- A global variable for the sub-key Hyper Mode | |
| k = hs.hotkey.modal.new({}, 'F17') | |
| -- Hyper-key for all the below are setup somewhere... Usually Keyboard Maestro or similar. Alfred doesn't handle them very well, so will set up separate bindings for individual apps below. |