This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # scp-speed-test.sh | |
| # Author: Alec Jacobson alecjacobsonATgmailDOTcom | |
| # http://www.alecjacobson.com/weblog/?p=635 | |
| # | |
| # Test ssh connection speed by uploading and then downloading a 100000kB test | |
| # file (optionally user-specified size) | |
| # | |
| # Usage: | |
| # ./scp-speed-test.sh user@hostname [test file size in kBs] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //Based on https://github.com/shandilyaaman/SampleEndlessRecyclerView/blob/master/SampleEndlessRecyclerView/endlessrecyclerview/src/main/java/com/endlessrecyclerview/android/EndlessRecyclerOnScrollListener.java | |
| abstract class EndlessRecyclerOnScrollListener : RecyclerView.OnScrollListener() { | |
| companion object { | |
| private val VISIBLE_THRESHOLD = context.getInteger(R.integer.endless_scroll_threshold) | |
| } | |
| /** The total number of items in the dataset after the last load */ | |
| private var mPreviousTotal = 0 | |
| /** True if we are still waiting for the last set of data to load. */ |