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/sh | |
| HOSTNAME="host.yourdomain.com" | |
| USERNAME="username" | |
| PASSWORD="password" | |
| LOG_FILE="/tmp/ddns/ddns.log" | |
| while true; do | 
  
    
      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
    
  
  
    
  | Clonezilla (v2.5.0) "ocs-sr" Options | |
| (Reformated for easier reading) | |
| To save or restore image | |
| ocs-sr [OPTION] {MODE} IMAGE_NAME DEVICE | |
| Where MODE is one of | |
| savedisk | 
  
    
      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
    
  
  
    
  | class BroadcastDisposable implements Disposable { | |
| private BroadcastReceiver receiver; | |
| private Context ctx; | |
| private boolean isDisposed = false; | |
| BroadcastDisposable(@NonNull BroadcastReceiver receiver, @NonNull Context ctx) { | |
| this.receiver = receiver; | |
| this.ctx = ctx; | 
  
    
      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
    
  
  
    
  | import android.support.v7.widget.RecyclerView | |
| import android.view.View | |
| interface OnItemClickListener { | |
| fun onItemClicked(position: Int, view: View) | |
| } | |
| fun RecyclerView.addOnItemClickListener(onClickListener: OnItemClickListener) { | |
| this.addOnChildAttachStateChangeListener(object: RecyclerView.OnChildAttachStateChangeListener { | |
| override fun onChildViewDetachedFromWindow(view: View?) { | 
  
    
      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 --debugger | |
| set -e | |
| BRANCH="master" | |
| if grep -q BCM2708 /proc/cpuinfo; then | |
| echo "RPI BUILD!" | |
| RPI="1" | |
| fi | |
| [ -n "$1" ] && BRANCH=$1 | 
  
    
      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 | |
| ### Google Domains provides an API to update a DNS "Syntheitc record". This script | |
| ### updates a record with the script-runner's public IP, as resolved using a DNS | |
| ### lookup. | |
| ### | |
| ### Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
| ### Synthetic Records: https://support.google.com/domains/answer/6069273 | |
| USERNAME="" | 
  
    
      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
    
  
  
    
  | import android.content.Context; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| /** | |
| * {@link GridLayoutManager} extension which introduces workaround for focus finding bug when | |
| * navigating with dpad. | |
| * | |
| * @see <a href="http://stackoverflow.com/questions/31596801/recyclerview-focus-scrolling">http://stackoverflow.com/questions/31596801/recyclerview-focus-scrolling</a> | 
  
    
      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
    
  
  
    
  | import UIKit | |
| import MBProgressHUD | |
| class ImageViewController: UIViewController, UIScrollViewDelegate { | |
| @IBOutlet weak var scrollView: UIScrollView! | |
| var imageURL: String? | |
| private var imageView: UIImageView! | |
  
    
      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
    
  
  
    
  | // The image is originally animated on to the view controller then added to the scroll view. | |
| // So, there might be some animation residue in here. | |
| // Class needs: <UIScrollViewDelegate> | |
| func viewDidLoad() { | |
| let width = UIScreen.mainScreen().bounds.size.width | |
| let aspect: CGFloat = width / shotWidth | |
| var frame = CGRectMake(0, 0, shotWidth * aspect, shotHeight * aspect) | |
| self.scrollView = UIScrollView(frame: frame) | 
  
    
      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 --debugger | |
| set -e | |
| BRANCH="master" | |
| if grep -q BCM2708 /proc/cpuinfo; then | |
| echo "RPI BUILD!" | |
| RPI="1" | |
| fi | |
| [ -n "$1" ] && BRANCH=$1 | 
NewerOlder