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
var Col = require('react-bootstrap/lib/Col') | |
var PageHeader = require('react-bootstrap/lib/PageHeader') | |
var React = require('react') | |
var Row = require('react-bootstrap/lib/Row') | |
var {connect} = require('react-redux') | |
var {reduxForm} = require('redux-form') | |
var DateInput = require('./DateInput') | |
var FormField = require('./FormField') | |
var LoadingButton = require('./LoadingButton') |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
sudo vim /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla | |
[Re-enable hibernate by default] | |
Identity=unix-user:* | |
Action=org.freedesktop.upower.hibernate | |
ResultActive=yes | |
Save and restart. |
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
#!/bin/bash | |
function msg { | |
# Description: | |
# This function echoes-with-colors the arguments passed in | |
# Usage: | |
# msg 'whatever you want to print :)' | |
echo -e '\033[33m\033[44m'$@'\033[0m' | |
} |
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
http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac | |
binaries=( | |
rename | |
sshfs | |
trash | |
node | |
tree | |
ack | |
hub |
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 --file=/usr/local/pgbackups/imsprod.20140910.pgdump --no-tablespaces --format=c --verbose --schema=ims imsproddb |
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
# from: | |
# http://osxdaily.com/2013/10/02/enable-ntfs-write-support-mac-os-x/ | |
$ diskutil info /Volumes/DRIVENAME | grep UUID | |
# use UUID to reference the drive | |
$ sudo echo "UUID=ENTER_UUID_HERE none ntfs rw,auto,nobrowse" >> /etc/fstab | |
# or, use the label | |
$ sudo echo "LABEL=WINDOWS8 none ntfs rw,auto,nobrowse" >> /etc/fstab |
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
$ sudo apt-get install clamav-daemon | |
$ freshclam | |
$ /etc/init.d/clamav-daemon start |
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
[user] | |
name = Jorge M Gomez C | |
email = jorgemario@gmail.com | |
[core] | |
excludesfile = /home/jorge/.gitignore_global | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto |
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
# http://gitready.com/beginner/2009/03/09/remote-tracking-branches.html | |
git config branch.autosetupmerge true | |
git checkout -b branch_name origin/branch_name | |
# sample | |
git fetch origin hotfix/576 | |
> * branch hotfix/576 -> FETCH_HEAD | |
> * [new branch] hotfix/576 -> origin/hotfix/576 | |
# setup the remote branch as a local branch |
NewerOlder