start new:
tmux
start new with session name:
tmux new -s myname
| # Ruby CircleCI 2.0 configuration file | |
| # | |
| # Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
| # | |
| defaults: &defaults | |
| working_directory: ~/repo | |
| docker: | |
| - image: circleci/ruby:2.4.1-node-browsers | |
| environment: |
| # See issue: https://github.com/palkan/action_policy/issues/15 | |
| module ActionPolicy | |
| module I18n | |
| class << self | |
| def full_message(policy_class, rule) | |
| # generate candidates | |
| candidates = [:"#{policy_class.identifier}.#{rule}"] | |
| # add global fallbacks |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| # By default the behavior is: | |
| # Primary monitor work as always and second monitor only have one and fixed workspace | |
| # I.e. you change to next workspace, primary monitor change to this workspace and second monitor remain as is. | |
| # The desired behaviour is: | |
| # Primary monitor and secondary monitor are linked workspace. | |
| # I.e. you change to next workspace, primary monitor change to this workspace and second monitor too. | |
| $ gconf-editor | |
| # Look for /desktop/gnome/shell/windows/workspaces_only_on_primary and set to false |
| #!/usr/bin/env ruby | |
| require 'english' | |
| require 'rubocop' | |
| ADDED_OR_MODIFIED = /A|AM|^M/.freeze | |
| changed_files = `git status --porcelain`.split(/\n/). | |
| select { |file_name_with_status| | |
| file_name_with_status =~ ADDED_OR_MODIFIED |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
| load 'deploy' | |
| # Uncomment if you are using Rails' asset pipeline | |
| load 'deploy/assets' | |
| load 'config/deploy' # remove this line to skip loading any of the default tasks |