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
i have a repo set up but its been a while sines i have done anything i see that i am set (devise_admin) but when i want to do a git pull i get | |
ERROR: Repository not found. | |
fatal: The remote end hung up unexpectedly | |
any idea what to do? |
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
test |
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
<?php | |
session_start(); | |
define("mz_DB_USERNAME", "XXXXXX"); | |
define("mz_DB_PASSWORD", "XXXXXX"); | |
define("mz_DB_HOST", "XXXXXX"); | |
define("mz_DB_DATABASE", "XXXXXX"); | |
require_once('config.inc.php'); | |
require_once('__database_class.php'); | |
$db = new mz_database(); |
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
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS | |
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing). | |
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here: | |
* Heroku Hostname SSL | |
* GoDaddy Standard SSL Certificate | |
* Zerigo DNS | |
Note: I am not using the Heroku Zerigo DNS add-on, instead I have a separate Zerigo account for my DNS needs. I do this because Zerigo offers 30 hosts on free direct accounts, versus only 10 hosts on the free Heroku add-on. | |
I. Getting a GoDaddy SSL Certificate (Part I) |
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
Here is where you exclude personal files | |
.git/info/exclude |
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
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi | |
[[ -r $rvm_path/scripts/completion ]] && source $rvm_path/scripts/completion | |
alias bashrc="vim ~/.bashrc.local" | |
alias remove_all_gems='gem list | cut -d" " -f1 | xargs gem uninstall -aIx' | |
cat <<INPUTRC >~/.inputrc | |
set completion-ignore-case On | |
TAB: menu-complete | |
INPUTRC |
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
class String | |
def map(arg=nil) | |
if arg | |
[self].map(arg) | |
elsif block_given? | |
[self].map{|i| yield(i)} | |
else | |
[self] | |
end | |
end |
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
https://openid.stackexchange.com/account/affiliate/complete-registration?affId=4&authCode=ehxvsqtS8uKSe8ZnUv4M09og2K8%3d&callback=http%3a%2f%2fstackoverflow.com%2fusers%2fauthenticate&email=gia%40moiseszaragoza.com&realname=Gia+Furn&token=87dd8d6b-bbb7-4e72-8794-baaa25fdfa55 |
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
You can add the following code to you .bashrc file: | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$(parse_git_branch) $ " | |
You can move around these component parts to configure to your tastes, for example to prepend $(parse_git_branch) and not show the user@computer part I used: | |
PS1="\$(parse_git_branch)${debian_chroot:+($debian_chroot)}\w$ " |
OlderNewer