Skip to content

Instantly share code, notes, and snippets.

istvan kosztik

Block or report user

Report or block kosztik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mailpilerimport.txt
AUG
21
Mailpiler - Importing & Deduplicating email from PST Files
Hi there,
I'll be tackling getting mail from PST files into mailpiler, and deduping them before the import.
This howto is written for Ubuntu 16.04 - as my Piler install howto is for the same.
View aton.py
#!/usr/bin/env python
import socket
import struct
import sys
import os
def ip2int(addr):
return struct.unpack("!I", socket.inet_aton(addr))[0]
@kosztik
kosztik / stm2csv.py
Last active Feb 27, 2020
convert bank stm to csv
View stm2csv.py
#!/usr/bin/python
import sys
print ("tranzakcio tipus; banki azonosito; megbizas osszege; megbizas devizaneme; megbizo bankja; megbizo neve; megbizo szamlaszama; \
kozlemeny1; kozlemeny2; kozlemeny3; kozlemeny4; kedvezmenyezett bankja; kedvezmenyezett neve; kedvezmenyezett szamlaszama; \
bizonylatszam; hatarido; jovairas szamlaszama; jovairas devizaneme; jovairas vegso osszege; jovairas erteknapja; \
terheles szamlaszama; terheles devizaneme; terheles vegso osszege; terheles erteknapja")
filepath = sys.argv[1]
View email-i.sh
#!/bin/bash
#
# Use: email-i.sh /var/log/mail.info <from/to pattern>
# Used with postfix
if [[ $1 =~ gz ]]; then
cat="zcat"
else
@kosztik
kosztik / rename_accent
Last active Aug 31, 2019
rename accent files and dirs
View rename_accent
#!/bin/bash
PATH="/home/ebfijjk/anks"
# Put the old filenames in a file.
ls $PATH >> oldValues
# Put the new names without accents in another file
cat oldValues | sed -e 'y/āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜĀÁǍÀĒÉĚÈĪÍǏÌŌÓǑÒŪÚǓÙǕǗǙǛ/aaaaeeeeiiiioooouuuuüüüüAAAAEEEEIIIIOOOOUUUUÜÜÜÜ/' >> newValues
View send_nsca_saslauth
#!/bin/bash
softMail=400
#^^^^^nincs használatban
maxMail=500
#^^^^^^^^^^ Ezt hasznalom jelenleg
@kosztik
kosztik / suhosinFirewall.sh
Last active Aug 7, 2019
punishment based on suhosin
View suhosinFirewall.sh
#!/bin/bash
# run screen; screen -r; watch /root/suhsoinFirewall.sh
#
ip=tail -1 /var/log/syslog| grep suhosin |grep ALERT | grep -v memory_limit|grep "([0-9]{1,3}[\.]){3}[0-9]{1,3}" -o -E
View backup.sh
#!/bin/bash
# Copyright (c) 2016, Florian Schaal, info@schaal-24.de
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted
DOW1=`date +%j`
# no of backups
DOW=`expr $DOW1 % 3`
@kosztik
kosztik / upload.pm
Last active Aug 3, 2019
upload check for suhosin
View upload.pm
#!/usr/bin/perl
#use strict;
#use warnings;
# ===============================================================================================================
# ===================================== DEBUG START
# ===============================================================================================================
#open(my $fh, '>>', '/tmp/report.txt');
## feltolteskor a felhasznalo tulajdona lesz a file, es mas nem is tudja
@kosztik
kosztik / media-query.css
Created Oct 26, 2018 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
You can’t perform that action at this time.