Skip to content

Instantly share code, notes, and snippets.

View lzcabrera's full-sized avatar
:octocat:

Laura Cabrera lzcabrera

:octocat:
  • Victoria, BC
  • 20:56 (UTC -07:00)
View GitHub Profile
@lzcabrera
lzcabrera / git-commands
Last active August 29, 2015 14:03
useful git commands I tend to forget
# Git command to update remote origin
git remote set-url origin [[*.git]]
git push origin --delete [branch-name]
# If you are working in a branch that is/will become a pull-request against master, you can rebase against your master branch. Make sure it is up to date
(my-branch)$ git rebase -i master
@lzcabrera
lzcabrera / gist:7867292
Created December 9, 2013 04:13
.aliases
#Chrome
alias chrome="open -a Google\ Chrome\ Canary"
@lzcabrera
lzcabrera / create_github_repo.txt
Created December 2, 2013 03:41
Create a new Github repo via CLI
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
# Remember replace USER with your username and REPO with your repository||application name!
git remote add origin [email protected]:USER/REPO.git
git push origin master

Bearded's Hourly Contract

Date: [[Date of Document]] Between [Our Company] and [Your Company]

Summary

We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.

@lzcabrera
lzcabrera / node.js install
Created July 17, 2013 19:04
Setup node.js in Ubuntu
sudo apt-get update
# Install a special package
sudo apt-get install -y python-software-properties python g++ make # Add a new repository for apt-get to search
sudo add-apt-repository ppa:chris-lea/node.js
# Update apt-get’s knowledge of which packages are where
sudo apt-get update
# Now install nodejs and npm
@lzcabrera
lzcabrera / new-mysql-db
Created June 4, 2013 23:03
Commands needed to create a new username and database in MySQL.
mysql -u adminusername -p
CREATE USER 'username'@'localhost' IDENTIFIED BY 'mypass';
CREATE DATABASE databasename;
GRANT ALL PRIVILEGES ON databasename.* TO "username"@"localhost" IDENTIFIED BY "password";
FLUSH PRIVILEGES;
EXIT;
@lzcabrera
lzcabrera / snippet.html
Last active December 14, 2015 09:09
snippet to display responsive width
<div id="fqv" style="position:fixed;top:4px;left:4px;z-index:999;color:#fff;">
<p style="font-size:12px;background:rgba(0,0,0,0.75);padding:5px;margin-bottom:1px;line-height:1.2;">
<span id="window-width"></span>
</p>
</div>
@lzcabrera
lzcabrera / progressive-enhancement.js
Created January 1, 2013 00:51
javascript to enhance desktop experience on resize
$(window).load(function() {
var $win = $(window);
function update () {
if($win.width > 768){
}else{
}
@lzcabrera
lzcabrera / debugging-foundation-zurb.html
Last active February 13, 2017 14:03
debugging foundation zurb snippet
<!-- begin: for debugging only -->
<div id="fqv" style="position:fixed;top:4px;left:4px;z-index:999;color:#fff;">
<p style="font-size:12px;background:rgba(0,0,0,0.75);padding:5px;margin-bottom:1px;line-height:1.2;">
<span class="left">Media:</span>
<span style="font-weight:bold;" class="show-for-xlarge">Extra Large</span><span style="font-weight:bold;" class="show-for-large">Large</span>
<span style="font-weight:bold;" class="show-for-medium">Medium</span>
<span style="font-weight:bold;" class="show-for-small">Small</span>
<span style="font-weight:bold;" class="show-for-landscape">Landscape</span>
<span style="font-weight:bold;" class="show-for-portrait">Portrait</span>
<span style="font-weight:bold;" class="show-for-touch">Touch</span>