Skip to content

Instantly share code, notes, and snippets.

View jaimeguzman's full-sized avatar

Jaime Guzman jaimeguzman

View GitHub Profile
@jaimeguzman
jaimeguzman / git_create_orphan.sh
Created August 16, 2023 20:05 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name
@jaimeguzman
jaimeguzman / show-git-branch-in-bash-prompt
Created February 2, 2016 03:05 — forked from stuarteberg/show-git-branch-in-bash-prompt
Code for your .bashrc file. Show current git branch on bash shell prompt....with color! (This was copied and modified from similar code you can find out there on the 'tubes.)
# Colors for the prompt
blue="\033[0;34m"
white="\033[0;37m"
green="\033[0;32m"
# Brackets needed around non-printable characters in PS1
ps1_blue='\['"$blue"'\]'
ps1_green='\['"$green"'\]'
ps1_white='\['"$white"'\]'
@jaimeguzman
jaimeguzman / gist:25c550cde3ac04347fe7
Created November 30, 2015 04:15 — forked from wspringer/gist:1649700
LZW Encoding *and Decoding* in Scala
object lzw {
trait Appendable[T] {
def append(value: T)
}
import scala.collection.generic._
case class GrowingAppendable[T](growable: Growable[T]) extends Appendable[T] {
def append(value: T) {
growable += value
@jaimeguzman
jaimeguzman / .gitignore
Created October 26, 2015 20:17 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@jaimeguzman
jaimeguzman / gist:c5755298a7ea7f86dec0
Last active September 8, 2015 00:11 — forked from schmurfy/gist:3199254
Install pandoc Mac OS X 10.8
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew
@jaimeguzman
jaimeguzman / .gitconfig
Last active August 29, 2015 14:23 — forked from pksunkara/config
[user]
name = Jaime Guzman
email = me@jguzman.cl
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@jaimeguzman
jaimeguzman / .gitconfig
Last active August 29, 2015 14:23 — forked from andypost/.gitconfig
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,-indent-with-tab,trailing-space,cr-at-eol