Skip to content

Instantly share code, notes, and snippets.

View icemancast's full-sized avatar

Isaac Castillo icemancast

View GitHub Profile
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@mezis
mezis / query_finder.sql
Last active April 28, 2022 15:17
Finding long-running queries in MySQL
SELECT id,state,command,time,left(replace(info,'\n','<lf>'),120)
FROM information_schema.processlist
WHERE command <> 'Sleep'
AND info NOT LIKE '%PROCESSLIST%'
ORDER BY time DESC LIMIT 50;
<?php
class DoMath {
public $var;
public static $boo;
public function addToVar($value) {
// $this->var += $value;
}
@christurnertv
christurnertv / 1. app-config-local-app.php
Created April 17, 2014 19:02
Laravel Environment and Error Handing Config
<?php
return array(
'debug' => true,
);
<?php
return array(
'debug' => true,
);
@jo5hs
jo5hs / gist:4b3eb2e759fb89ad78dd
Created June 22, 2015 14:26
Sassy Bootstrap Colors
// Sassy Bootstrap Colors
//
// Hopefully, an easier way to globally update Bootstrap colors from a single color list.
// Nothing ground breaking, but it helps me out when clients request Bootstrap.
//
// Also included is a small function that allows you to use the color names list when building
// custom modules/components as needed. I threw in a few color trumps at the end too,
// so you can override any text or background color with a class.
//
// The best thing to do, if using Bootstrap, is just customize the whole thing from the ground up. But
@icemancast
icemancast / front-end.md
Last active August 29, 2015 14:24
Install for front end

Setting up front end project

  1. Bower init

  2. Add .bowerrc with following

This tells bower where to install sass files.

{
@learncodeacademy
learncodeacademy / webpack.config.js
Created January 8, 2016 03:55
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm