Skip to content

Instantly share code, notes, and snippets.

Louis D. LouWii

Block or report user

Report or block LouWii

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
@LouWii
LouWii / verify-hard-links
Last active Aug 29, 2015
Verify links to files, to know if accessible or not
View verify-hard-links
View handle-youtube-link
@LouWii
LouWii / iptables-config-script
Last active Oct 25, 2019
Bash script to configure iptables for a web server. Some rules can be removed depending on used services.
View iptables-config-script
#!/bin/sh
# Empty all rules
sudo iptables -t filter -F
sudo iptables -t filter -X
# Bloc everything by default
sudo iptables -t filter -P INPUT DROP
sudo iptables -t filter -P FORWARD DROP
sudo iptables -t filter -P OUTPUT DROP
@LouWii
LouWii / nginx.conf
Last active Dec 22, 2015 — forked from leon/nginx.conf
NGinx Server block configuration for Symfony 2 app.
View nginx.conf
# Things needed to be adapted :
# server_name my-domain.com
#
# root /home/www
# The root of the Symfony "web" folder (with app.php and app_dev.php in it).
#
# fastcgi_pass unix:/var/run/php5-fpm.sock
# This sock can be elsewhere (/var/run/php5-fpm/php5-fpm.sock for example...)
#
# There are other things needed to be changed/fixed.
@LouWii
LouWii / robot.js
Created Dec 7, 2012
YouCannotLoose
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@LouWii
LouWii / robot.js
Created Dec 7, 2012 — forked from jaskolek/robot.js
ForkedBot
View robot.js
var robots = new Array();
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.start = function( ev ){
You can’t perform that action at this time.