Skip to content

Instantly share code, notes, and snippets.

💭
🛩 Running your application

Viktor Szépe szepeviktor

💭
🛩 Running your application
Block or report user

Report or block szepeviktor

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
@szepeviktor
szepeviktor / unzip.php
Last active Aug 29, 2015
unzip uploaded website zip - instead of file-by-file FTP upload
View unzip.php
MOVED to: https://github.com/szepeviktor/wordpress-plugin-construction
View ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.6
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
----- 2014-02-25 set timezone
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@szepeviktor
szepeviktor / ajax.googleapis.com_.htaccess
Last active Aug 29, 2015
bad robot catcher - "nofollow" and "disallow" trap
View ajax.googleapis.com_.htaccess
# put this in directory called /ajax.googleapis.com/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^ index.php [L]
</IfModule>
@szepeviktor
szepeviktor / wp-pass-change.php
Last active Aug 29, 2015
reset your own WordPress password
View wp-pass-change.php
MOVED to: https://github.com/szepeviktor/wordpress-plugin-construction
@szepeviktor
szepeviktor / download_gists2.js
Last active Aug 29, 2015 — forked from thomastraum/download_gists.js
save all your Gists - written in node.js
View download_gists2.js
#!/usr/bin/env node
//# prerequisites:
//# npm -g install request path
//# TODO: modify user agent string
var USER, savepath,
request = require('request'),
path = require('path'),
fs = require('fs'),
@szepeviktor
szepeviktor / apache-autorestart.sh
Last active Aug 29, 2015
mini DDoS mitigation for Apache webserver - against HTTP floods
View apache-autorestart.sh
MOVED to: https://github.com/szepeviktor/debian-server-tools
@szepeviktor
szepeviktor / GeoIP-hu-IPrange.sh
Created Feb 27, 2014
Magyar IP cím tartomány generáló - maxmind.com & ip.ludost.net
View GeoIP-hu-IPrange.sh
#!/bin/bash
OUT="GeoIPhuWhois.txt"
OUT2="ip.ludost.txt"
if ! [ -f GeoIPCountryWhois.csv ]
then
wget -q http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
7z x GeoIPCountryCSV.zip > /dev/null
fi
@szepeviktor
szepeviktor / mount-wp-cache.sh
Last active Aug 29, 2015
Move WordPress cache to memory, ram disk
View mount-wp-cache.sh
MOVED to: https://github.com/szepeviktor/wplib
@szepeviktor
szepeviktor / wp-setup.sh
Last active Aug 29, 2015
Setup client's WordPress installation
View wp-setup.sh
MOVED to: https://github.com/szepeviktor/wplib
use: wp-lib --root=/var/www/webroot/wordpress setup --secret
@szepeviktor
szepeviktor / allow-iptables-multiport.conf
Last active Aug 29, 2015
pass2allow - fail2ban filter and action to allow hosts to connect
View allow-iptables-multiport.conf
# Fail2Ban configuration file for allowing hosts
#
#
[INCLUDES]
before = iptables-blocktype.conf
[Definition]
You can’t perform that action at this time.