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
@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
@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 send_nsca_saslauth
#!/bin/bash
softMail=400
#^^^^^nincs használatban
maxMail=500
#^^^^^^^^^^ Ezt hasznalom jelenleg
@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
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 / 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.