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
Get the Heroku db as detailed here: | |
http://devcenter.heroku.com/articles/pgbackups#exporting_via_a_backup | |
1. heroku pgbackups:capture | |
2. heroku pgbackups:url <backup_num> #=>backup_url | |
- get backup_num with cmd "heroku pgbackups" | |
3. curl -o latest.dump <backup_url> | |
Then locally do: | |
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump |
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
/** | |
* @class Ext.ux.RowExpander | |
* @extends Ext.AbstractPlugin | |
* Plugin (ptype = 'rowexpander') that adds the ability to have a Column in a grid which enables | |
* a second row body which expands/contracts. The expand/contract behavior is configurable to react | |
* on clicking of the column, double click of the row, and/or hitting enter while a row is selected. | |
* | |
* @ptype rowexpander | |
*/ | |
Ext.define('Ext.ux.RowExpander', { |
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
// Ext JS 4.1.1 paging toolbar override which aligns the paging buttons | |
// to the right side of the toolbar. New config "alignPagingRight" set | |
// to true will cause the paging buttons to align right. | |
Ext.define('overrides.toolbar.Paging', { | |
override: 'Ext.toolbar.Paging', | |
initComponent : function() { | |
var me = this, | |
pagingItems = me.getPagingItems(), | |
userItems = me.items || me.buttons || []; |
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
Ext.define('Ext.ux.form.field.DateDisplayField', { | |
extend: 'Ext.form.field.Display', | |
alias: 'widget.datedisplayfield', | |
datePattern: 'Y-m-d', | |
valueToRaw: function(value) { | |
return Ext.util.Format.date(value, this.datePattern); | |
} | |
}); |
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
/** | |
* Ext.ux.grid.PageSize | |
* http://www.sencha.com/forum/showthread.php?130787-Ext.ux.toolbar.PagingOptions&p=610981&viewfull=1#post610981 | |
*/ | |
Ext.define('Ext.ux.grid.PageSize', { | |
extend : 'Ext.form.field.ComboBox', | |
alias : 'plugin.pagesize', | |
beforeText : 'Show', | |
afterText : 'per page', | |
mode : 'local', |
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
#! /bin/sh | |
# ================================================================== | |
# ______ __ _____ | |
# /_ __/___ ____ ___ _________ _/ /_ /__ / | |
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
# / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
# Multi-instance Apache Tomcat installation with a focus | |
# on best-practices as defined by Apache, SpringSource, and MuleSoft |
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
package mypackage | |
import com.excilys.ebi.gatling.core.Predef._ | |
import com.excilys.ebi.gatling.http.Predef._ | |
import com.excilys.ebi.gatling.http.Headers.Names._ | |
import akka.util.duration._ | |
import bootstrap._ | |
object FindUsersWithCircularFeed { | |
val usersSearchCrit = tsv("usersSearchCrit.tsv").circular | |
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
package mypackage | |
import com.excilys.ebi.gatling.core.Predef._ | |
import com.excilys.ebi.gatling.http.Predef._ | |
import com.excilys.ebi.gatling.http.Headers.Names._ | |
import akka.util.duration._ | |
import bootstrap._ | |
object Department { | |
val departmentScn = scenario("Department CRUD") | |
.exec( |
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
Ext.define('Ext.ux.EmailWindow', { | |
extend: 'Ext.window.Window', | |
alias: 'widget.email', | |
requires: [ | |
'Ext.form.*', | |
'Ext.window.Window', | |
'Ext.data.*', | |
'Ext.Ajax', | |
'Ext.LoadMask' | |
], |