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
| Sub ExportSelected_Click() | |
| Dim CWS As Worksheet | |
| Set CWS = ActiveSheet | |
| ' Fields whose values are used when generating the exported directory name | |
| Dim FieldNames | |
| FieldNames = Array("Quote Ref (YY-MMXX)", _ | |
| "Customer/ End user", _ | |
| "Project Name or description") |
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
| # https://video.stackexchange.com/questions/4563/how-can-i-crop-a-video-with-ffmpeg | |
| # https://superuser.com/questions/841235/how-do-i-use-ffmpeg-to-get-the-video-resolution | |
| # To get mp4 video resolution | |
| ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 input.mp4 | |
| # Use crop filter | |
| ffmpeg -i input.mp4 -filter:v "crop=out_w:out_h:x:y" output.mp4 | |
| # To crop a 80×60 section, starting from position (200, 100) |
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 ruamel.yaml | |
| import argparse | |
| from pathlib import Path | |
| from os.path import exists | |
| parser = argparse.ArgumentParser(description='(anaconda) environment.yml -> (pip) requirements.txt') | |
| parser.add_argument('yml', type=str, metavar='environment.yml', default='environment.yml', help='the input file') | |
| parser.add_argument('-o', type=str, metavar='requirements.txt', default=None, help='the output file') | |
| args = parser.parse_args() |
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
| # sudo apt install nmap | |
| nmap -sn 192.168.1.0-254 -oN output.txt |
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
| sshpass -p $(cat jetson-nano-pass) rsync -avzh miro@192.168.1.59:/home/miro/cam-rpi.py/ /home/miro/cam-rpi.py/ |
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
| # Install Cuda 10.0 and nvidia-driver 440 - compatible with Isaac 2019.3 | |
| # Inspiration https://gist.github.com/bogdan-kulynych/f64eb148eeef9696c70d485a76e42c3a | |
| # Calling default installer results with the installment of Cuda 10.2 and nvidia-driver 410 where both are not compatible with Nvidia Isaac | |
| # https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal | |
| # List Nvidia hardware (inspection only) | |
| lspci | grep -i nvidia | |
| # Check if there are cuda/nvidia drivers already installed | |
| dpkg -l | grep cublas |
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
| Private Sub ExportSelected_Click() | |
| Dim CWS As Worksheet | |
| Set CWS = ActiveSheet | |
| ' Fields whose values are used when generating the exported directory name | |
| Dim FieldNames | |
| FieldNames = Array("Start date", _ | |
| "Customer", _ | |
| "Agent", _ |
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
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| namespace ConsoleApp1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
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 ij.IJ; | |
| import ij.ImageListener; | |
| import ij.ImagePlus; | |
| import ij.Prefs; | |
| import ij.gui.*; | |
| import ij.io.FileSaver; | |
| import ij.io.OpenDialog; | |
| import ij.plugin.PlugIn; | |
| import ij.plugin.frame.RoiManager; | |
| import ij.process.ByteProcessor; |
NewerOlder