Skip to content

Instantly share code, notes, and snippets.

View mxr576's full-sized avatar

Dezső BICZÓ mxr576

View GitHub Profile
@mxr576
mxr576 / iptables_rules.sh
Created December 28, 2016 19:02 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@mxr576
mxr576 / docker-cleanup.sh
Created March 6, 2016 16:02
Three useful aliases to clean-up after yourself #Docker
alias docker-cli="docker rmi $(docker images -qf dangling=true)"
alias docker-clc="docker rm -v $(docker ps -aqf status=exited)"
alias docker-clv="docker volume rm $(docker volume ls -qf dangling=true)"
@mxr576
mxr576 / index.php
Last active September 12, 2017 14:22
If you don't know the difference in PHP between the self and the static keywords, then here is a dummy example for you. https://3v4l.org/HBXAe
<?php
class Vehicle {
/**
* @var string
*/
private $name;
@mxr576
mxr576 / docker-compose.yml
Last active December 2, 2015 15:00
Build a completely dockerized environment for my Drupal based NewsFeeder project
# Configuration generated with Drupal Compose version 1.1.6
apache:
extends:
file: host.yml
service: apache
image: dockerizedrupal/apache-2.4:1.1.2
hostname: apache
ports:
- "80"
- "443"