Skip to content

Instantly share code, notes, and snippets.

View Kraust's full-sized avatar

Kraust Kraust

View GitHub Profile
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
import pyautogui
import matplotlib.pyplot as plt
import cv2
import numpy
from PIL import Image
import os
import sys
import winsound
import time
[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
https://snapcraft.io/install/clangd/ubuntu
sudo apt update
sudo apt install snapd
sudo snap install clangd --classic
{
"packages":[
{
"name":"ArduCAM_ESP8266_UNO",
"maintainer":"ArduCAM",
{
"packages":[
{
"name":"ArduCAM_ESP8266_UNO",
"maintainer":"ArduCAM",
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.
@Kraust
Kraust / ssh-cipher-benchmark.sh
Created August 10, 2019 12:22 — forked from joeharr4/ssh-cipher-benchmark.sh
Check speed of ssh cipher(s) on your system
#!/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?
#include &lt;stdio.h&gt;
#include &lt;pthread.h&gt;
#include &lt;stdlib.h&gt;
struct thread_data
{
FILE *fp;
long int offset;
int start;
int blockSize;
};