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
's Avatar

Malin

Joined 1713288683

Recently created
Least recently created
Recently updated
Least recently updated
All gists 101
Malin's Avatar

Malin / glances.sh

0 likes
0 forks
1 files
Last active 1729967008
1 apt install build-essential python3-dev pipx -y && pipx install 'glances[all]' && ./.local/bin/glances -w
Malin's Avatar

Malin / ips-dataset.sh

0 likes
0 forks
1 files
Last active 1728410515
1 #!/bin/bash
2
3 # Configuration
4 LOG_DIR="/www/wwwlogs"
5 DATASET_URL="https://ipinfo.io/data/free/country_asn.csv.gz?token=b807873daea34f"
6 DATASET_FILE="country_asn.csv.gz"
7 UNZIPPED_DATASET="country_asn.csv"
8
9 # Function to convert IP to integer
10 ip2int() {
Malin's Avatar

Malin / shodan-dorks.md

0 likes
0 forks
1 files
Last active 1727326209
1 Shodan Dorks by twitter.com/lothos612
2 Feel free to make suggestions
3 From: https://github.com/lothos612/shodan
4
5 Shodan Dorks
6 Basic Shodan Filters
7 city:
8 Find devices in a particular city. city:"Bangalore"
9
10 country:
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/)
Newer Older

Powered by Opengist ⋅ Load: 134ms⋅

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