Skip to content

Instantly share code, notes, and snippets.

View rrubiorr81's full-sized avatar

Richard Rubio Roche rrubiorr81

View GitHub Profile
@rrubiorr81
rrubiorr81 / Sublime course notes
Created August 11, 2013 16:01
Sublime course notes
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.
function codeigniter() {
git clone https://github.com/EllisLab/CodeIgniter.git "$@" ;
}
//forked
@rrubiorr81
rrubiorr81 / interesting_new_tuts.txt
Last active December 21, 2015 05:09
tuts_to_follow.txt
git
bash, ssh, linux
laravel, doctrine, composer
tdd, tdd + php, wokflow
asp.net, EF, TFS, SQLSERVER
//apply firsts as together as possible...
/************************************************************************************************************************************************************/
@rrubiorr81
rrubiorr81 / tips_utilities
Created September 13, 2013 20:31
tips about utilities
/***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
@rrubiorr81
rrubiorr81 / gist course
Created October 4, 2013 02:12
git course
//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:
@rrubiorr81
rrubiorr81 / MongoDB course notes
Created October 15, 2013 20:27
mongo db commands
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()
@rrubiorr81
rrubiorr81 / MySql from the command line
Created October 20, 2013 01:32
mysql from the terminal
//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.
@rrubiorr81
rrubiorr81 / LAMP with VB course notes
Created October 23, 2013 21:31
notes lamp course, virtual box
#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
@rrubiorr81
rrubiorr81 / Vagrant set-up
Created October 25, 2013 20:26
Vagrant setup
//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
@rrubiorr81
rrubiorr81 / laravel learning course
Created October 31, 2013 21:04
laravel learning course
/*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