Skip to content

Instantly share code, notes, and snippets.

View xus's full-sized avatar
:octocat:
Coding

Jesús López xus

:octocat:
Coding
  • NetRivals / Lengow
  • Girona / Barcelona
View GitHub Profile
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active July 2, 2024 00:02
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@Garbee
Garbee / gist:6875041
Created October 7, 2013 21:12
Tinker quick tip.

Laravel has an awesome command called "tinker". This is just a really quick way for you to interact with your application in the command line. It has a great use for debugging new models. Let's check out a quick example:

php artisan tinker

You are now dropped into a PHP terminal. Here you can input whatever you want to execute, like the following.

$user = new User;
$user->first_name = Adam;
@xus
xus / background fullscreen
Last active December 11, 2015 04:48
Body with background full screen
body {
background-image:url(background.jpg);
background-repeat: no-repeat;
background-size: 100%;
background-attachment:fixed;
background-position:center;
margin:0px;
}
@johnantoni
johnantoni / mysql.txt
Created August 7, 2012 18:57
mysql + vagrant + remote access
username: vagrant
password: vagrant
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf
@arosenhagen
arosenhagen / magento-code-snippets.md
Last active April 8, 2024 09:21
[magento] - code snippets

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream