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 sys | |
| from PyQt5 import (QtCore as QTC, | |
| QtGui as QTG, | |
| QtWidgets as QTW) | |
| class Terminal(QTW.QWidget): | |
| def __init__(self, parent=None): | |
| super(Terminal, self).__init__(parent) | 
  
    
      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 | |
| ### | |
| ### my-script — does one thing well | |
| ### | |
| ### Usage: | |
| ### my-script <input> <output> | |
| ### | |
| ### Options: | |
| ### <input> Input file to read. | |
| ### <output> Output file to write. Use '-' for stdout. | 
  
    
      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
    
  
  
    
  | ## Usage: | |
| ## bash one_line_webserver.sh | |
| ## | |
| ## Then, in a browser, navigate to http://localhost:18080 | |
| ## or | |
| ## curl localhost:18080 | |
| ## | |
| ## Thanks, Roberto Giona | |
| while true; do (echo -n -e "HTTP/1.1 200 OK\r\n\r\n"; echo ciao) | nc -l 18080 -w 0; done | 
  
    
      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 | |
| ### ################################### | |
| ### # Rescale the given image while | |
| ### # preserving the aspect ratio | |
| ### # | |
| ### # Example Usage: | |
| ### # Basic rescaling: | |
| ### # > rescale_image < width x height > path/to/image path/to/new_image | |
| ### # | 
  
    
      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 | |
| ### #################################### | |
| ### # Convert the given image background | |
| ### # to be transparent and save to new | |
| ### # location | |
| ### # | |
| ### # Example Usage: | |
| ### # Basic conversion: | |
| ### # > transparent_background path/to/image path/to/new_image | |
| ### # | 
  
    
      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
    
  
  
    
  | """ | |
| A little bit of background to controlling the hs100 without a phone: https://blog.georgovassilis.com/2016/05/07/controlling-the-tp-link-hs100-wi-fi-smart-plug/ | |
| """ | |
| import asyncio | |
| import kasa # https://github.com/python-kasa/python-kasa | |
| import time | |
| import sys | |
| IP = "10.10.185.105" | 
  
    
      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
    
  
  
    
  | """ | |
| Stream from connected USB Webcams (on Ubuntu 18.04) | |
| During preliminary testing, there were issues when trying to stream from a USB | |
| hub. It's important that each camera has a dedicated USB port rather than a connection | |
| via a hub. Perhaps, it's actually a problem with the hub, and a better one could support | |
| the data rate for multiple cameras? | |
| """ | |
| import cv2 | |
| import pathlib | 
  
    
      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
    
  
  
    
  | from SigmaProductionTools.utils.configuration import conf | |
| from SigmaProductionTools.utils.database import Database | |
| import pathlib | |
| def parse_result(result: dict, predicate) -> bool: | |
| text = result["text"] | |
| step_text = text.split("||") | |
| found = False | 
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      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 inspect | |
| def logging_decorator(thing): | |
| if isinstance(thing, type): | |
| def inner(*args, **kwargs): | |
| for t in dir(thing): | |
| if not t.startswith("__"): | |
| _thing = getat | 
OlderNewer