Malin / rylsky.script
0 likes
0 forks
1 files
Last active
1 | on performClickSequence() |
2 | tell application "Sidekick" to activate |
3 | delay 1 |
4 | |
5 | tell application "System Events" |
6 | tell process "Sidekick" |
7 | set frontmost to true |
8 | |
9 | -- Perform clicks at the specified coordinates |
10 | do shell script "/usr/local/bin/cliclick c:979,457" |
Malin / queue-size.pl
0 likes
0 forks
1 files
Last active
1 | #!/usr/bin/env perl |
2 | |
3 | # postfix queue/s size |
4 | # author: |
5 | # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133 |
6 | # from: https://serverfault.com/questions/58196/how-do-i-check-the-postfix-queue-size |
7 | |
8 | use strict; |
9 | use warnings; |
10 | use Symbol; |
Malin / extract-emails.py
0 likes
0 forks
1 files
Last active
1 | import os |
2 | import csv |
3 | import re |
4 | import logging |
5 | |
6 | # Set up logging |
7 | logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') |
8 | |
9 | def is_valid_email(email): |
10 | """Check if the email is valid and meets additional criteria.""" |
Malin / unzip-rename-dir.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/bash |
2 | |
3 | # Loop through all ZIP files in the current directory |
4 | for zipfile in *.zip; do |
5 | # Check if the file exists (in case no .zip files are found) |
6 | [ -e "$zipfile" ] || continue |
7 | |
8 | # Get the filename without the .zip extension |
9 | dirname="${zipfile%.zip}" |
10 |
Malin / antiguedad-QRh.sql
0 likes
0 forks
1 files
Last active
1 | SELECT |
2 | IL.[Item No_] AS [sku], |
3 | DATEDIFF(DAY, CASE WHEN MAX(IL.[Last Invoice Date]) = '1753-01-01' THEN MAX(IL.[Posting Date]) ELSE MAX(IL.[Last Invoice Date]) END, GETDATE()) AS [age_in_days], |
4 | (ITEM.[Unit Cost] + (ITEM.[Unit Cost] * 0.15)) AS [regular_price], |
5 | IA.[Inmediate Sales Stock] AS [stock_quantity] |
6 | FROM |
7 | [Demo Database BC (17-0)].dbo.[TRADE FORCE BRANS$Item Ledger Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] IL |
8 | LEFT JOIN [Demo Database BC (17-0)].dbo.[TRADE FORCE BRANS$Item$437dbf0e-84ff-417a-965d-ed2bb9650972] ITEM ON IL.[Item No_] = ITEM.[No_] |
9 | LEFT JOIN [Demo Database BC (17-0)].dbo.[TRADE FORCE BRANS$DynES TFB Item Availability$ef62f6b4-0ebd-4de3-923e-eb0dd0b74447] IA ON IL.[Item No_] = IA.[No_] |
10 | WHERE |
Malin / stats-QRh.txt
0 likes
0 forks
1 files
Last active
1 | Top 10 most accessed pages in the past 24 hours: |
2 | 25 (/sin-stock) |
3 | 25 BLUEBEARDS REVENGE Classic Blend Mo' Wax 30ml - Quick Response Hairdressing (/product/classic-blend-mo-wax-30ml/?gclid=EAIaIQobChMIjrHVlIyIiAMVsV0dCR10Wg8REAEYASADEgJSDPD_BwE) |
4 | 24 Home - Quick Response Hairdressing (/) |
5 | 20 Sin stock - Quick Response Hairdressing (/sin-stock/) |
6 | 7 GHD PLANCHA GOLD GIFT SET - Quick Response Hairdressing (/product/plancha-ghd-gold-gift-set/) |
7 | 6 Tienda - Quick Response Hairdressing (/tienda/) |
8 | 6 KERASTASE Curl Manifesto Concentre 10*12ml VA21 - Quick Response Hairdressing (/product/k-curl-conc-1012ml-va21/) |
9 | 6 GHD Gold Take Control Now - Quick Response Hairdressing (/product/ghd-gold-take-control-now/) |
10 | 6 Cart - Quick Response Hairdressing (/carrito/) |
Malin / wazuh-agent-installer-windows.cmd
0 likes
0 forks
1 files
Last active
1 | # from: https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-windows.html |
2 | # download installer: https://packages.wazuh.com/4.x/windows/wazuh-agent-4.8.1-1.msi |
3 | # run CMD as administrator |
4 | # cd to download directory |
5 | |
6 | wazuh-agent-4.8.1-1.msi /q WAZUH_MANAGER="freak.palmasolutions.net" |
7 | |
8 | wazuh-agent-4.8.1-1.msi /q WAZUH_MANAGER="192.168.184.204" |
9 | |
10 | NET START Wazuh |
Malin / install-wazuh-agent-macos.sh
0 likes
0 forks
1 files
Last active
1 | # from https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-macos.html |
2 | |
3 | sudo -s |
4 | echo "WAZUH_MANAGER='freak.palmasolutions.net'" > /tmp/wazuh_envs && installer -pkg /Users/malin/Downloads/wazuh-agent-4.8.1-1.intel64.pkg -target / |
5 | /Library/Ossec/bin/wazuh-control start |