All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

Login


All New

All gists

Recently created
Least recently created
Recently updated
Least recently updated
Malin's Avatar

Malin / rylsky.script

0 likes
0 forks
1 files
Last active 1726724659
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's Avatar

Malin / queue-size.pl

0 likes
0 forks
1 files
Last active 1725943352
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's Avatar

Malin / extract-emails.py

0 likes
0 forks
1 files
Last active 1725619590
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's Avatar

Malin / unzip-rename-dir.sh

0 likes
0 forks
1 files
Last active 1725615111
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's Avatar

Malin / split.py

0 likes
0 forks
2 files
Last active 1725600722
1 import csv
2 import os
3 import re
4 from collections import defaultdict
5 import logging
6 import time
7
8 logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
9
10 def sanitize_filename(filename, max_length=255):
Malin's Avatar

Malin / antiguedad-QRh.sql

0 likes
0 forks
1 files
Last active 1724863910
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's Avatar

Malin / stats-QRh.txt

0 likes
0 forks
1 files
Last active 1724312949
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's Avatar

Malin / wazuh-agent-installer-windows.cmd

0 likes
0 forks
1 files
Last active 1724136710
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's Avatar

Malin / install-wazuh-agent-macos.sh

0 likes
0 forks
1 files
Last active 1724080825
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
Malin's Avatar

Malin / remove-wazuh-endpoints.sh

0 likes
0 forks
1 files
Last active 1724080470
1 # from https://documentation.wazuh.com/current/user-manual/agent/agent-management/remove-agents/remove.html
2
3 for i in $(cat /root/agents.txt); do /var/ossec/bin/manage_agents -r $i; done
Newer Older

Powered by Opengist ⋅ Load: 561ms⋅

English
Čeština Deutsch English Español Français Magyar Português Русский 中文 繁體中文