Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

uchsarath uchsarath

🏠
Working from home
View GitHub Profile
@uchsarath
uchsarath / .bash_profile
Created Jan 26, 2017 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@uchsarath
uchsarath / config.json
Created Nov 7, 2016 — forked from anonymous/config.json
Bootstrap Customizer Config
View config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@uchsarath
uchsarath / App\Exceptions\Handler.php
Created Nov 3, 2016 — forked from jacurtis/App\Exceptions\Handler.php
How to get filp/whoops to work in Laravel 5.2 or 5.3 - Add this code to your `App\Exceptions\Handler.php` file.
View App\Exceptions\Handler.php
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e)
{
if (config('app.debug')) {
$whoops = new \Whoops\Run;
@uchsarath
uchsarath / How to use Images as Radio buttons.md
Created Apr 11, 2016 — forked from rcotrina94/How to use Images as Radio buttons.md
How to use images for radio buttons (input-radio).
View How to use Images as Radio buttons.md
@uchsarath
uchsarath / gist:64dd237ec42ba1729589
Last active Sep 12, 2015 — forked from alexsegura/gist:9650651
Prestashop 1.6 folder permissions
View gist:64dd237ec42ba1729589
chmod a+w -R config/
chmod a+w -R cache/
chmod a+w -R log/
chmod a+w -R img/
chmod a+w -R mails/
chmod a+w -R modules/
chmod a+w -R themes/default-bootstrap/lang/
chmod a+w -R themes/default-bootstrap/pdf/lang/
chmod a+w -R themes/default-bootstrap/cache/
chmod a+w -R translations/
View gist:9095b3bcf359938ca122
{
"default_encoding": "utf-8",
"detect_indentation": false,
"disable_formatted_linebreak": true,
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"font_size": 11,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
@uchsarath
uchsarath / Integrate Google Calendar XML resource into fullcalendar
Created Oct 17, 2013
Integration and loading public holiday from Google Calendar into Fullcalendar rails4
View Integrate Google Calendar XML resource into fullcalendar
1. Add rails4 Fullcalendar gem to Gemfile
gem 'fullcalendar-rails'
Then run command: bundle install
2. Copy & pasted into assets/stylesheet/application.css.scss (By default application.css, so just rename)
*= require fullcalendar
3. Copy & pasted into assets/javascript/application.js
//= require fullcalendar
//= require gcal
@uchsarath
uchsarath / index.php
Created Jun 6, 2013
my_joomla_project
View index.php
<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>