JaggyGauran

Freelance developer, and designer

My Envoy Deployment Script

I am a huge fan of Laravel Forge and Envoyer for my server provisioning and deployment needs. Check them out if you haven’t already, they save me a lot of time whenever I’m handling large scale projects.

There are cases though that we all end up writing our own build and deployment scripts, or for some, even doing it manually.

Read this article

Kraken: File version handler

Kraken is a release update tool which bumps up the file versions of your modified git files. Installation Install via composer. composer global require jaggy/kraken Usage Once you have it up and running $ kraken release patch Bumping src/Jaggy/Kraken/Kraken.php: 1.1.9 -> 1.1.10 $ kraken release minor Bumping src/Jaggy/Kraken/Kraken.php: 1.1.10 -> 1.2.0 $ kraken release major Bumping src/Jaggy/Kraken/Kraken.php: 1.2.0 -> 2.0.0 If you…

Read this article

PHP SoapClient with NTLM

For quite some time now, I've been working a lot of web service requests, specifically, SOAP requests. Which is kinda painful for me because I have major annoyances with request and response naming conventions of most of the services. Uh-oh There are some issues that you will encounter when trying to send…

Read this article

Sketch: Makeshift borders

I've started using sketch for quite some time now and I'm definitely loving it for designing web sites. One of my minor issues at the time of writing is about the borders. @uxdiogenes There’s no way no— Sketch (@sketchapp) April 19, 2013 And that's kind of a bummer. When making pages that kinda only…

Read this article

Running Multiple Instances of Skype on OSX

Some of us here have multiple accounts for Skype. We use one for our work/business and one for our personal lives.

In cases like these, I really prefer this that jamming everything up in a single Skype account, whenever I need solace from all the stress and tension work can bring.

Here's the simplest (and cleanest) way I found to run multiple Skype instances in OSX.

Read this article

Lazy Javascript Event Bindings

Okay, I've been doing a few projects and I'm pretty lazy at binding click and keyboard events. Here's just a quick, hack to make things work. Disclaimer Take note, I am not a javascript expert! Soooo, this may be not the best practice. is not the best practice (Though, if by any…

Read this article

My Sass/Stylus Workflow

For such a long time, I've been working with Sass and Stylus and pretty much, I suck at it. Even till now I believe so. Anyways, to get things started, I'll show you the directory structure of my assets, take not that I'll be using stylus for the entirety of the…

Read this article

Output console.log to the Terminal

I've been studying Cordova and Phonegap for the past couple of days and I've been having issues with debugging from the command line. While lurking around, I've found a solution using jsConsole to pass the command from the mobile device to the web application. It was kinda useful but it takes…

Read this article

Permanently Disable Drivers on Ubuntu

When I was in college, I owned a Acer Aspire 1825ptz. It's a phased out laptop with a touchscreen and I really thought it was awesome! Anyway, it ended up breaking and the cursor goes haywire whenever I bootup the OS. Now, before, I usually run xinput set-prop $DEVICE_ID "Device Enabled"…

Read this article

Automate Your Tests with Observr

If you're like me, you should hate switching from editor-to-terminal then running tests and back to the editor again. I've tried making my own guard and even used Node's chokidar module to watch the directory and run the test every time a certain file extension is saved. I was content with chokidar…

Read this article

CakePHP Factory Plug-in

Now I've grown to know and love unit testing while I was still doing some Rails and I loved the concept of factories over fixtures. Jumping into CakePHP, the testing felt a bit alien to me so I made a Factory plug-in to suit my Model testing needs. Check it out…

Read this article

Running Ghost alongside Apache

Ghost being released was both a blessing and a curse for me. I don't have much background any background with node, I just used the Ghost droplet Digital Ocean provides. Anyway, though it costs $5 a month, that's still $5 a month for just my blog and nothing else. While the…

Read this article

RESTful CakePHP

Ever since I've tried Ruby on Rails and Laravel, I fell in love with the concept of REST and named routes. Now, CakePHP2 currently does not support named routes and RESTful controllers are a tad bit tedious to setup. Now, I made a CakePHP Rest Plug-in to give the ease of…

Read this article

Using Blade in Wordpress

I've been working with wordpress for a while and got uncomfortable with the clutter in code. With all the get_header() and get_footer() and, cutting off the start of your container within the header and closing it in the footer, the obsessive-compulsive side of me really couldn't take it. To make it…

Read this article

Converting Videos to GIFs

Dependencies ffmpeg imagemagick | gifsicle Dissect the video ffmpeg -i convert.webm -r 10 -f image2 -y /tmp/gifs/%03d.png First step is to disect the video into frames. -i convert.webm - input file to convert -r 10 - frame rate -f image2 - format -y - force overwrite the files /tmp/gifs/%03d.png - This will generate a series of images in the destination…

Read this article

Inline Block Right Margin Fix

I just found out that there's a varying margin to the right whenever you use display: inline-block; div { background-color: rgb(250, 250, 171); color: rgb(0, 0, 0); display: inline-block; padding: 5px; }

First
Second
Third
First Second …

Read this article

Must-have Terminal Tools

Not including defaults such as Homebrew and Git, here are the tools I have come to know and love. iTerm2 Download here I suggest you get the beta release because it's preferences has better options. Multiple Panes!!! There's only one reason I prefer iTerm2 over the default OSX Terminal... Multiple Panes!!!! Oh My ZSH! Get it here! Oh-my-zsh…

Read this article

Goodbye Roon

Finally! The long awaited Ghost has gone public! I know, it's a nerd-gasm for us. Deal with it! I'm going to start migrating data from http://jaggyspaghetti.roon.io to here! So it can not-be-read in style.

Read this article

CakePHP Polymorphic Associations

So I recently just found out about polymorphic relationships and let me tell you, it's amazing. It saves a lot of fields and just feels right. Anyways, implementing it in CakePHP 2 is quite easy. Let's say we have an Image which belongs to Employee and Client, here's how the structure would…

Read this article

Hello Laravel

Laravel 4 <3 Okay, I've started working with Laravel for the past few days, and I must say I am definitely loving it! It was an easy transition from the other frameworks I've worked with and surely this will be my main framework for the mean time.

Read this article

My CakePHP Testing Workflow

I've been a fan of Test Driven Development when it comes to Ruby on Rails. Coming back to CakePHP, I've really had a hard time adjusting my work flow in terms of factories and testing and everything else. So, after researching a limited amount of resources for practices, conventions for implementing…

Read this article

Much More Elegant Rake Arguments

Here's a basic hack to perform Rake tasks more... elegantly. I got it from it { should be_useful }. Basically, to not use rake create FILE=user or rake create[user] and have this instead: rake create user Which is much more elegant if I may say so myself. We override the task name in our rake file…

Read this article

Hello World

Fresh out of college and no clue what to do. Pretty much the story. I decided to venture out to the freelancing world. Hopefully, it doesn't eat me whole.

Read this article