This file contains 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
local function check_html_image(task, min, max) | |
local tp = task:get_text_parts() | |
for _,p in ipairs(tp) do | |
if p:is_html() then | |
local hc = p:get_html() | |
local len = p:get_length() | |
if len >= min and len < max then | |
local images = hc:get_images() | |
if images then | |
local count = 0 |
This file contains 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
--- bareos-fd-mariabackup.py.orig 2024-03-28 13:56:48.000000000 +0100 | |
+++ bareos-fd-mariabackup.py 2024-03-31 19:03:37.117059351 +0200 | |
@@ -50,7 +50,7 @@ | |
# we first create and backup the stream and after that | |
# the lsn file as restore-object | |
self.files_to_backup = ["lsnfile", "stream"] | |
- self.tempdir = tempfile.mkdtemp() | |
+ self.tempdir = None | |
# self.logdir = GetValue(bVarWorkingDir) | |
self.logdir = "/var/log/bareos/" |
This file contains 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
diff -urN twofactor_totp.orig/lib/Service/OtpGen.php twofactor_totp/lib/Service/OtpGen.php | |
--- twofactor_totp.orig/lib/Service/OtpGen.php 2023-07-29 15:23:22.000000000 +0200 | |
+++ twofactor_totp/lib/Service/OtpGen.php 2023-09-10 12:15:29.411654688 +0200 | |
@@ -17,9 +17,7 @@ | |
namespace OCA\TwoFactor_Totp\Service; | |
-use BaconQrCode\Renderer\ImageRenderer; | |
-use BaconQrCode\Renderer\Image\ImagickImageBackEnd; | |
-use BaconQrCode\Renderer\RendererStyle\RendererStyle; |
This file contains 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
EN 🇬🇧 | |
Too much IT is bad, to play down and laugh about it... you will realize of the problem when you rewrite sociology in informatics key... 😅 😂 | |
🖋 Analogic generation (born before 1975) | |
💾 Generation 8bit (born between 1975 and 1984) | |
📀 Generation 16bit (born between 1985 and 1994) | |
🖥 Generation 32bit (born between 1995 and 2005) | |
📱 Generation 64bit (born between 2005 and 2014) | |
🤖 Generation Qbit (born between 2015 and the present) |
This file contains 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/env python3 | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
from pymodbus.pdu import ExceptionResponse | |
from pymodbus.constants import Endian | |
from pymodbus.payload import BinaryPayloadDecoder | |
import sys | |
from tabulate import tabulate | |
if len(sys.argv) < 2: | |
print("Please specify hostname!") |
This file contains 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/env python3 | |
import os | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
from pymodbus.exceptions import ConnectionException, ModbusIOException | |
from pymodbus import mei_message | |
import signal | |
import sys | |
from tabulate import tabulate | |
# Credits: https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console |
This file contains 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/env python3 | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
from pymodbus.pdu import ExceptionResponse | |
from pymodbus.constants import Endian | |
from pymodbus.payload import BinaryPayloadDecoder | |
import sys | |
from tabulate import tabulate | |
if len(sys.argv) < 2: | |
print("Please specify hostname!") |
This file contains 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 strict; | |
use warnings; | |
use LWP::UserAgent; | |
use HTTP::Request::Common qw(GET POST); | |
my ($nas_ip) = @ARGV; | |
die "$0 <QGenie_IP_Address>\n" if (not defined $nas_ip); |
This file contains 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/env perl | |
use strict; | |
use warnings; | |
use File::Path qw(rmtree); | |
my $STAGING = ".arduino15/staging"; | |
my $PACKAGES = ".arduino15/packages"; | |
my $lastfile = ""; | |
my $lastdir = ""; |