Advertisement
KillianMills

bash_reminders.sh

Oct 18th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.14 KB | None | 0 0
  1. #standard
  2. diff auto.csv manual.csv
  3.  
  4. #human view
  5. diff -c auto.csv manual.csv
  6.  
  7. #count differences
  8. diff -U 0 auto.csv manual.csv | grep -v ^@ | wc -l
  9.  
  10. # replace tabs with commas in a huge file
  11. sed 's/   /, /g' D1233591.0ox > output.csv
  12. # use CTRL + V and then TAB
  13.  
  14. #Note: bash is pretty bad at comparing floats
  15. ***********************************************
  16.  
  17. git clone <LINK>
  18. <LINK> = git@github.com:name_of_repo.git
  19. Link is found on the github repo's main page in "clone or download"
  20.  
  21. git pull
  22. git status
  23. git add README
  24. git commit -m 'Added README'
  25. git push -u origin master
  26.  
  27.  
  28. git add
  29. git stash
  30. git pull
  31. git stash pop
  32.  
  33.  
  34. ***********************************************
  35.  
  36. nose2
  37. nose2 --with-coverage
  38. nose2 --plugin nose2.plugins.junitxml --junit-xml
  39. nose2 --with-coverage
  40.  
  41. nose2 -s tests test_prevent_decreases
  42. nose2 -s tests test_prevent_decreases.TestCase.test_method
  43.  
  44. nose2 -s tests test_capped_deck
  45. nose2 -s tests test_generate_intl
  46.  
  47. nose2 -s tests test_agg_generator
  48. nose2 -s tests test_data_gatherer
  49. nose2 -s tests test_deck_gatherer
  50. nose2 -s tests test_house_keeper
  51.  
  52. PYTHONPATH=. nose2 -s tests test_deck_gatherer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement