Trivial changes.

This commit is contained in:
Chris Lane 2013-08-26 19:19:52 -04:00
parent 37b9e84497
commit bf290ea5b7
4 changed files with 4 additions and 7 deletions

5
cheat
View File

@ -41,9 +41,7 @@ def cheat_files(cheat_directories):
for cheat_dir in reversed(cheat_directories):
cheats.update(dict([(cheat, cheat_dir)
for cheat in os.listdir(cheat_dir)
if not cheat.endswith('md')
and not cheat.startswith('.')
and not cheat.startswith('LICENSE')
if not cheat.startswith('.')
and not cheat.startswith('__')]))
return cheats
@ -84,7 +82,6 @@ def main():
# if it does not, say so
else:
print 'No cheatsheet found for %s.' % keyphrase
def pretty_print(filename):

View File

@ -1,2 +1,3 @@
# To see most used top 10 commands:
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10

View File

@ -1,3 +1,2 @@
# To find listening ports
lsof -Pnl +M -i4

View File

@ -2,4 +2,4 @@
CREATE DATABASE owa CHARACTER SET utf8 COLLATE utf8_general_ci;
# To add a user and give rights on the given database
GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost'IDENTIFIED BY 'password' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost'IDENTIFIED BY 'password' WITH GRANT OPTION;