This file contains hidden or 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
General and useful info in [http://docs.sublimetext.info/en/latest/] | |
**check on xiki... | |
ctrl d -sel similar. | |
wheel btn -col sel | |
alt f3 -sel all | |
ctrl shft p -command pallete -> () install package... snippets... | |
ctrl p -search in files | |
ctrl r -search function classes on file | |
ctrl p@ -search file then search function class. |
This file contains hidden or 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
function codeigniter() { | |
git clone https://github.com/EllisLab/CodeIgniter.git "$@" ; | |
} | |
//forked |
This file contains hidden or 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
git | |
bash, ssh, linux | |
laravel, doctrine, composer | |
tdd, tdd + php, wokflow | |
asp.net, EF, TFS, SQLSERVER | |
//apply firsts as together as possible... | |
/************************************************************************************************************************************************************/ |
This file contains hidden or 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
/***Console2***/ | |
Interesting guide about how to integrate the Console2 to GitBash. | |
http://lostechies.com/jimmybogard/2010/04/05/integrating-the-git-bash-into-console/ | |
For puting some styles and colors to Console2, we could copy the configuration styles from: https://github.com/fschwiet/fschwiet-local-config/blob/master/console2.config.xml |
This file contains hidden or 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
//when working on a wrong branch-- to apply these changes to the interested branch... | |
git stash | |
git checkout branch123 | |
git stash apply | |
//assuring that the file is updated in git index.. and therefore, can be included in the .gitignore... | |
git update-index --assume-unchanged path/to/file | |
//git diff can show you the difference between two commits: |
This file contains hidden or 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
Mongo db console commands | |
//showing the existing dbs.. | |
show dbs | |
//use test | |
switching to db test, (only creating it when actually adding new data) | |
//prompts the name of the working db now | |
db | |
//the fllw would prompt the count(), in the link2 collection, in the current db... | |
>db.links2.count() |
This file contains hidden or 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 you are already running mysql, you can execute an SQL script file using the source command or \. command: | |
mysql> source file_name | |
mysql> \. file_name | |
//checking the mysql server variables | |
SHOW VARIABLES | |
//reseting the tables queries | |
The RESET QUERY CACHE statement removes all query results from the query cache. The FLUSH TABLES statement also does this. |
This file contains hidden or 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
#logging into the ubuntu server... | |
ssh -lusername -pporttouse hostname | |
ssh -lrichard -p2222 sandbox.dev //practical example... | |
sudo apt-get update // downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and PPAs | |
sudo apt-get -y upgrade //apt-get upgrade will fetch new versions of packages existing on the machine | |
// the -y stands for saying yes to all dialogs | |
//installing the needed packages for the communication btw the host and the server... | |
sudo apt-get -q -y install build-essential module-assistant linux-headers-$(uname -r) dkms zip unzip | |
//APT |
This file contains hidden or 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
//list of vagrant boxes | |
http://www.vagrantbox.es/ | |
//example | |
vagrant box add precise32 http://files.vagrantup.com/precise32.box | |
vagrant init precise32 | |
vagrant up | |
vagrant ssh |
This file contains hidden or 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
/*learning laravel*/ | |
// dd($user->toArray()); --this two are valid... the 2nd pops out all of the users... | |
// dd($user::all()->toArray()); --select * anyway | |
dd($users->toArray()) //the output as an array | |
//installing and using composer |
OlderNewer