- Guzzle, an extensible PHP HTTP client: https://github.com/guzzle/guzzle
- PHP Image Manipulation: https://github.com/Intervention/image
- PHP implementation of Fowler's Money pattern https://github.com/moneyphp/money
- PHP port of resque (Workers and Queueing): https://github.com/chrisboulton/php-resque
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
pg_dump -U perkdsp -svf "production_schema.sql" perkdsp | |
pg_dump -U perkdsp -svf "staging_schema.sql" perkdsp_staging | |
java -jar apgdiff-2.4.jar production_schema.sql staging_schema.sql > diff.sql |
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
#take full dump | |
pg_dump -i -U user_name -F t -b -v -f "prod.backup" db_name | |
#restore specific table | |
pg_restore -i -U user_name -d db_name -t table_name -v "prod.backup" |
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
function FB_wait() { | |
if (typeof FB == "undefined") { | |
window.setTimeout(FB_wait, 100); | |
} else { | |
console.log("fb ready"); | |
FB.Event.subscribe("comment.create", comment_callback); | |
} | |
} |
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
//parent page | |
function setCookieXD() { | |
var message = {}; | |
message.fname = "Vivek"; | |
message.lname = "Gupta"; | |
var receiver = document.getElementById('diff-domain').contentWindow; | |
receiver.postMessage( message, 'http://iframe-domain.com'); | |
} | |
// iframe page |
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
//paste at the end of routes.php | |
\Event::listen('Illuminate\Database\Events\QueryExecuted', function ($query) { | |
var_dump($query->sql); | |
var_dump($query->bindings); | |
var_dump($query->time); | |
}); |
#Open Source Laravel Projects
- Cachet - An open source status page system for everyone. https://cachethq.io : https://github.com/CachetHQ/Cachet
- Koel - A personal music streaming server that works. http://koel.phanan.net : https://github.com/phanan/koel
- Attendize is a free & open-source ticket selling and event management platform. https://www.attendize.com : https://github.com/Attendize/Attendize
- Invoicing, expenses, & time-tracking built with Laravel https://www.invoiceninja.com : https://github.com/invoiceninja/invoiceninja
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
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Vivek Gupta", | |
"email": "mail@vivekgupta.com", | |
"phone": "+91-9008273000", | |
"url": "https://vivekgupta.com", | |
"summary": "I'm a Full-stack Engineer/Manager with 14 years of experience, currently working with Unacademy. Before that, I was an early (1st) Engineer at Perk (TSX: PER, acquired by Tremor - LSE: TRMR), EM at Flipkart, and co-founded Coral Life, Inc.", | |
"location": { | |
"countryCode": "IN", |