Joined January 2013
·
Posted to
Execute previous commands
over 1 year
ago
If you press ctrl+R and then start typing you can search in your command history.
Posted to
Search text in directory
over 1 year
ago
I use this function:
function findr
{
grep -RnisI $1 .;
}
Use it like this:
$> findr "Find me"
Posted to
Change Ownership
over 1 year
ago
Your first example is not exactly right. The second {username} is not username but the group's name. Note that there are groups with every user's name but you change it to something like www if you'd like to allow your webserver to handle the files.
sudo chown -R {username}:{group} {target_file}
Posted to
Nice compact and colorized git log
over 1 year
ago
Or you can use tig which is capable of doing a bunch of more things too.
Achievements
92 Karma
936 Total ProTip Views
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Honey Badger
Have at least one original Node.js-specific repo
Raven
Have at least one original repo where some form of shell script is the dominant language
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Charity
Fork and commit to someone's open source project in need
You should mention that if someone uses this he needs FOSUserBundle too.