Skip to content

Instantly share code, notes, and snippets.

View sulaya86's full-sized avatar
📷
cycling with the wind

Soraya sulaya86

📷
cycling with the wind
View GitHub Profile
@fossil12
fossil12 / C.sublime-build
Created January 15, 2014 19:50
Sublime Text 2 Build System for C on OS X. (Just move/copy file to `Packages/User`.)
{
"cmd": ["gcc", "${file}", "-o", "${file_path}/${file_base_name}", "-Wall"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c",
"variants":
[
{
"name": "Run",
@kkirsche
kkirsche / Install Composer to use MAMP's PHP.md
Last active November 30, 2024 11:56
How to install Composer globally using MAMP's PHP

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

@seixasfelipe
seixasfelipe / git-tips
Last active May 25, 2017 03:07
Git tips to never forget!
Git
============
To delete a remote branch:
$ git push origin :name_of_remote_branch
To rebase master on another branch and checkout it when action is completed
$ git rebase master :name_of_branch
To add local branch ref on remote