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
| CentOS 7, x64 | |
| --- | |
| 2025-07-12 08:15:34,983 - __main__ - INFO - key=clone-go-swagger id=git-clone duration=5.744577646255493 error=None | |
| 2025-07-12 08:15:34,983 - __main__ - INFO - key=build-go-swagger id=exec duration=129.54145336151123 error=None | |
| 2025-07-12 08:15:34,983 - __main__ - INFO - key=clone-sqlite id=git-clone duration=59.37177801132202 error=None | |
| 2025-07-12 08:15:34,983 - __main__ - INFO - key=build-loops id=exec duration=15.772916793823242 error=None | |
| 2025-07-12 08:15:34,983 - __main__ - INFO - key=exec-loops id=exec duration=10.590587139129639 error=None | |
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 pyautogui | |
| import matplotlib.pyplot as plt | |
| import cv2 | |
| import numpy | |
| from PIL import Image | |
| import os | |
| import sys | |
| import winsound | |
| import time |
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
| [Unit] | |
| Description=Rotate log files | |
| Documentation=man:logrotate(8) man:logrotate.conf(5) | |
| RequiresMountsFor=/var/log | |
| ConditionACPower=true | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/sbin/logrotate /etc/logrotate.conf |
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://snapcraft.io/install/clangd/ubuntu | |
| sudo apt update | |
| sudo apt install snapd | |
| sudo snap install clangd --classic |
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
| { | |
| "packages":[ | |
| { | |
| "name":"ArduCAM_ESP8266_UNO", | |
| "maintainer":"ArduCAM", |
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
| { | |
| "packages":[ | |
| { | |
| "name":"ArduCAM_ESP8266_UNO", | |
| "maintainer":"ArduCAM", |
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
| 2 Devices | |
| - A Raspberry Pi running Raspbian | |
| - A desktop running FreeBSD | |
| Goal: | |
| To bridge the two devices and allow the FreeBSD machine to get to the network through the Raspberry Pi. | |
| Solution: | |
| Create a LAN between the two devices. I am using the 10.0.0.0/24 network for this. |
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/local/bin/bash | |
| # ssh-cipher-benchmark.sh - Assesses speed of SSH encryption between specific hosts. | |
| # Usage: | |
| # ssh-cipher-benchmark.sh <remotehost> [ciphers] | |
| # Default ciphers: all we can find... | |
| # | |
| # Note: In some cases, the first cipher tested runs faster than the others, regardless of order. | |
| # Cause of this is not known, but changing the order of testing shows it to be true. Run the | |
| # first one twice if you suspect this. Perhaps it is due to buffering? |
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
| #include <stdio.h> | |
| #include <pthread.h> | |
| #include <stdlib.h> | |
| struct thread_data | |
| { | |
| FILE *fp; | |
| long int offset; | |
| int start; | |
| int blockSize; | |
| }; |