Skip to content

Instantly share code, notes, and snippets.

View emamut's full-sized avatar
💭
💎Harder. 🏆Better. ⚡Faster. 💪🏾Stronger

Faber Andrés Vergara Holguín emamut

💭
💎Harder. 🏆Better. ⚡Faster. 💪🏾Stronger
View GitHub Profile
@emamut
emamut / environment_setter.php
Last active August 29, 2015 14:02
Codeigniter environment setter - CI Library
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Environment_setter
{
protected $environment_file;
protected $previous_environment;
public function __construct()
{
$this->environment_file = dirname(__FILE__)."/../../index.php";
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once APPPATH . 'third_party/firephp/lib/FirePHPCore/FirePHP.class.php'; // path to your firephp libs
function fire_print($type, $msg, $optional_label = '')
{
//output only when on development environtment. set on index.php
if (ENVIRONMENT == 'development')
{
@emamut
emamut / zsh.md
Created June 26, 2014 09:46 — forked from tsabat/zsh.md
@emamut
emamut / index.html
Created July 15, 2014 22:42
[HTML] Redirect from HTML page with message
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://www.example.com/">
<title>Page Redirection</title>
</head>
<body>
<p>Esta aplicación se encuentra ahora en <a href='http://www.example.com/'>www.example.com</a>, en estos momentos lo estamos redirigiendo...</p>
</body>
@emamut
emamut / index.html
Created July 18, 2014 19:53
Email template
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=320, target-densitydpi=device-dpi">
<style type="text/css">
/* Mobile-specific Styles */
@media only screen and (max-width: 660px) {
table[class=w0], td[class=w0] { width: 0 !important; }
table[class=w10], td[class=w10], img[class=w10] { width:10px !important; }
table[class=w15], td[class=w15], img[class=w15] { width:5px !important; }
table[class=w30], td[class=w30], img[class=w30] { width:10px !important; }
table[class=w60], td[class=w60], img[class=w60] { width:10px !important; }
table[class=w125], td[class=w125], img[class=w125] { width:80px !important; }
@emamut
emamut / foo
Last active August 29, 2015 14:08
How to set the terminal to open maximized
The selected answer didn't work for me on fully updated Ubuntu 12.04 LTS, so I decided it was time for a more drastic approach.
Rename original gnome-terminal executable to gnome-terminal-original:
cd /usr/bin
mv gnome-terminal gnome-terminal-original
Create a new file in /usr/bin named gnome-terminal with the following content:
#!/bin/bash
/usr/bin/gnome-terminal-original --maximize $@
@emamut
emamut / chosen-bootstrap.css
Last active August 29, 2015 14:13 — forked from koenpunt/chosen-bootstrap.css
CSS for Chosen with Bootstrap
select.form-control + .chosen-container.chosen-container-single .chosen-single {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.428571429;
color: #555;
vertical-align: middle;
background-color: #fff;
@emamut
emamut / Default (Linux).sublime-keymap
Last active August 29, 2015 14:15
My Sublime Text 3 Settings
[
{ "keys": ["ctrl+}"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+}"], "command": "toggle_comment", "args": { "block": true } }
]
$fontawesome_path: "." !default
@font-face
font-family: 'FontAwesome'
src: font-url('#{$fontawesome_path}/fontawesome-webfont.eot')
src: font-url('#{$fontawesome_path}/fontawesome-webfont.eot?#iefix') format("embedded-opentype"), font-url('#{$fontawesome_path}/fontawesome-webfont.woff') format("woff"), font-url('#{$fontawesome_path}/fontawesome-webfont.ttf') format("truetype")
font-weight: normal
font-style: normal
@mixin icon($icon)
@emamut
emamut / xampplite-win32-1.7.3.txt
Last active August 29, 2015 14:18
XAMPP version for mssql developments
###### Apache Friends XAMPP Lite (Basis Package) version 1.7.3 ######
+ Apache 2.2.14 (IPV6 enabled)
+ MySQL 5.1.41 (Community Server) with PBXT engine 1.0.09-rc
+ PHP 5.3.1 (PEAR)
+ Miniperl 5.10.1
+ XAMPP Control Version 2.5.8 (ApacheFriends Edition)
+ XAMPP CLI Bundle 1.6
+ XAMPP Port Check 1.5
+ XAMPP Security 1.1