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 openpyxl | |
| import argparse | |
| from openpyxl import load_workbook | |
| from openpyxl.utils import get_column_letter | |
| parser = argparse.ArgumentParser(description='Search first excel worksheet from given file for a string.') | |
| parser.add_argument('-f', dest='filepath', help="Path to file to be searched", required=True) | |
| parser.add_argument('-s', dest='searchstring', help="String to be searched in file", required=False, default='X') |
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 os | |
| string_to_search = '[Tags]' | |
| file_extension = 'txt' | |
| current_dir = os.path.dirname(os.path.realpath(__file__)) | |
| count = 0 | |
| for path, subdirs, files in os.walk(current_dir): | |
| for filename in files: | |
| if filename.endswith(file_extension): |
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 | |
| #shell script to load cpu. | |
| #Run it via: nohup ./cpu_load.sh & and remember to killall dd when the load is no longer needed. | |
| #if load on more then 2 cores is required, add more " | dd if=/dev/zero of=/dev/null " entries inside. | |
| fulload() { dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null & }; fulload; |
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
| #!/usr/bin/perl | |
| use v5.14; | |
| use warnings; | |
| use Net::Async::HTTP::Server; | |
| use IO::Async::Loop; | |
| use HTTP::Request; | |
| use HTTP::Response; |