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
[ | |
//FOCUS GROUP | |
{ "keys": ["super+ctrl+1"], "command": "focus_group", "args": { "group": 0 } }, | |
{ "keys": ["super+ctrl+2"], "command": "focus_group", "args": { "group": 1 } }, | |
{ "keys": ["super+ctrl+3"], "command": "focus_group", "args": { "group": 2 } }, | |
{ "keys": ["super+ctrl+4"], "command": "focus_group", "args": { "group": 3 } }, | |
{ "keys": ["super+ctrl+5"], "command": "focus_group", "args": { "group": 4 } }, | |
{ "keys": ["super+ctrl+6"], "command": "focus_group", "args": { "group": 5 } }, | |
{ "keys": ["super+ctrl+7"], "command": "focus_group", "args": { "group": 6 } }, | |
{ "keys": ["super+ctrl+8"], "command": "focus_group", "args": { "group": 7 } }, |
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
[ | |
//FOCUS GROUP | |
{ "keys": ["super+ctrl+1"], "command": "focus_group", "args": { "group": 0 } }, | |
{ "keys": ["super+ctrl+2"], "command": "focus_group", "args": { "group": 1 } }, | |
{ "keys": ["super+ctrl+3"], "command": "focus_group", "args": { "group": 2 } }, | |
{ "keys": ["super+ctrl+4"], "command": "focus_group", "args": { "group": 3 } }, | |
{ "keys": ["super+ctrl+5"], "command": "focus_group", "args": { "group": 4 } }, | |
{ "keys": ["super+ctrl+6"], "command": "focus_group", "args": { "group": 5 } }, | |
{ "keys": ["super+ctrl+7"], "command": "focus_group", "args": { "group": 6 } }, | |
{ "keys": ["super+ctrl+8"], "command": "focus_group", "args": { "group": 7 } }, |
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
{ | |
"always_show_minimap_viewport": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_delay": 10, | |
"caret_style": "wide", | |
"color_scheme": "Packages/User/Phoenix Dark Blue Customized.tmTheme", | |
"create_window_at_startup": false, | |
"enable_tab_scrolling": false, | |
"fade_fold_buttons": false, | |
"font_size": 14, |
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
/* | |
PrinceXML calculates Bootstrap's ".66666667%" grid width literally, resulting in a | |
grid that is technically over 100%. Prince then drops the last column to a new row. | |
These styles override Bootstrap and set the appropriate grid elements to simply | |
end in "...6%". | |
*/ | |
.col-xs-11 { | |
width: 91.66666666% | |
} | |
.col-xs-8 { |
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
<?php | |
/** | |
* @package Reverse Proxy | |
*/ | |
/* | |
Plugin Name: Reverse Proxy | |
Plugin URI: https://instrumentalapp.com/ | |
Description: Reverse proxy setup for Instrumental blog | |
Version: 1.0 | |
Author: James Paden |
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
# Put this inside the <VirtualHost> directive | |
<Location /blog> | |
RequestHeader set X-Is-Reverse=Proxy true | |
RequestHeader set X-Original-Host yourwebsite.com | |
ProxyPass http://yourpressableblog.com | |
ProxyPassReverse http://yourpressableblog.com | |
</Location> |
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
var I = require('instrumental-node'); | |
I.configure({ apiKey: 'YOUR_PROJECT_TOKEN' }); | |
// WITHOUT DURATION | |
I.notice('Deployed database query rewrites') | |
// WITH DURATION | |
start_time = Date.now() | |
// Maybe put your deploy code here? |
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
def write_active_migrator_destination_model! | |
if ActiveMigrator.config.enabled_checker.call(id) | |
ActiveMigrator.config.metric_incrementer.call("active_migrator.#{active_migrator_source_klass.name}.write_active_migrator_destination_model") | |
original_record = find_original_model | |
if original_record | |
active_migrator_destination_model = original_record.find_active_migrator_destination_model | |
original_record.transformed_attributes_for_active_migrator.each do |name, value| | |
active_migrator_destination_model.send(:write_attribute, name, value) | |
end | |
active_migrator_destination_model.save! |
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
module ActiveMigrator | |
class ActiveMigratorDestinationModel < ActiveRecord::Base | |
self.abstract_class = true | |
# disable STI for this "copy" model | |
self.inheritance_column = :_type_disabled | |
establish_connection DB_ACTIVE_MIGRATOR_CONFIGURATION[:destination] | |
end | |
end | |
module ActiveMigrator | |
module ActiveMigratorSource |
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
def write_active_migrator_destination_model | |
begin | |
write_active_migrator_destination_model! | |
rescue Exception => e | |
ActiveMigrator.config.exception_handler.call(e, active_migrator_source_class: active_migrator_source_klass.name, active_migrator_source_id: id) | |
end | |
true | |
end |
OlderNewer