If you just want to see a list of files with changes in the .git repository you are in then just fire terminal up and run the following command.
git diff --name-only
For a more detailed view of all changed files:
For a detailed view of just one file:
git diff application/routes.php
Show all un-committed / un-tracked files
git ls-files --other --exclude-standard
Undo the last commit
git reset --hard HEAD^1
All pretty useful git diff commands.
As 2013 gets well underway I took a quiet minute to reflect on the year gone by and all that lays ahead in 2013.
2012 was a roller coaster year, full of some tremendous highs and the lowest lows – by all accounts it was an interesting one.
In business I guided my company Bytewire Ltd to it’s most successful year to date, gaining more clients and generating more revenue than any previous year. Alot of big wins we’re made and alot of lessons learnt. With long hours and much effort we managed to turn around alot of projects for a very small team and all the while improve my own coding ten fold. I learnt new languages, played around with new techniques, built out my own servers, and got to grips with more than one E-commerce platform.
Personally 2012 taught me alot about myself and what i’m capable of if I just remain dedicated, hard working and driven. There is alot to be said of those that grab each day by the reigns.
A couple of important lessons i’ve learnt this year:
- Life’s too short
- Change is good
- Be a little selfish when it comes to your development and career, push for what you want!
- Don’t let people play your ideas down, be heard, but equally listen to the opinions of others just as you wish yours.
2013 holds alot in store for me personally and i’m excited about the challenges it will present. I’m looking forward to moving out from my parents place, getting fully back into football (after lengthy time out with a broken leg) and getting to new places around the world on holiday. All the while i’m as always excited by the prospect of new creative and interesting projects that both challenge and push my professional abilities.
This years all about reading more and learning more – particularly looking forward to getting into mobile at the end of the month.
2013′s bucket list
- Sky dive
- Fly somewhere further than 6 hours away
- Go boarding (not been since broke my leg)
- Volunteer for an animal charity
- Be a film extra
I’m all set to make 2013 my bitch. So…until next year folks…have a great year.
Close your eyes, clear your heart, let it go…
killall Finder open /System/Library/CoreServices/Finder.app
It’s really no different than any other normal dump. I suggest running it from your EC2 instance or another remote server, to skip out any latency found in your local connection (unless you have a decent connection unlike the most of us in the UK).
In which case SSH into either the EC2 instance or another remote server which has been granted access to the AWS RDS instance using either the EC2 Security Group or a CIDR/IP address or range.
You’ll obviously need to make sure mysqldump is installed on your remote server (should be in most cases).
Once you’ve satisfied the above, simply run the following:
mysqldump -u username -p --host hostname_of_rds_endpoint your_database_table_name | gzip > my_rds_save_file.sql.gze
Sometimes the apple UI top bar menu will freeze, god willing, not all that often, but when it does it’s handy to know what to do force it to reload.
Simply pop open a terminal window and run this command:-
Sometimes you may wish to see how much memory your application is eating up on your amazon ec2 instance (or indeed any other linux box) you can do this by running the command below, at terminal (over SSH).
You’ll get something like this pop up.
root@ip-101-101-101-101 ec2-user]# free -m
total used free shared buffers cached
Mem: 594 565 28 0 3 73
-/+ buffers/cache: 489 105
Swap: 0 0 0
The important part is the second line which will give you the total free memory after everything else.
Showing those pesky hidden files like ~/.ssh/ couldn’t be easier.
Firstly open up terminal and run the following command
defaults write com.apple.finder AppleShowAllFiles TRUE
Then to make the changes take effect run this
This will reboot Finder. If sometime in the future you wish to change it back just run the first command using ‘FALSE’ instead of TRUE.
mysqldump -u user -p --host hostnameorip database | gzip > file.sql.gz
Very simple really, using ssh connection and grabbing a single file to the current directory
scp firstname.lastname@example.org:/home/your-site/www/mysql-backup.sql.gz .
scp email@example.com:/home/your-site/www/mysql-backup.sql.gz ~/Desktop/
Syncing a whole folder and it’s permissions
-R is recursive
-p is keeping intact the permissions, structures, creation times etc.
scp -pR firstname.lastname@example.org:/home/your-site/www/mysql-backup.sql.gz ~/Desktop/