This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Customize with your datas | |
APIKEY="secret_token" | |
DOMAIN="my_domain" | |
RECORD="my_record" | |
# DO NOT EDIT AFTER THIS LINE | |
CURRENTIP=$(curl -s ifconfig.co/ip) | |
IPLENGTH=$(echo -n ${CURRENTIP} | wc -m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git i/core/lib/Thelia/Mailer/MailerFactory.php w/core/lib/Thelia/Mailer/MailerFactory.php | |
index a59ad40..7808a79 100644 | |
--- i/core/lib/Thelia/Mailer/MailerFactory.php | |
+++ w/core/lib/Thelia/Mailer/MailerFactory.php | |
@@ -30,6 +30,12 @@ use Thelia\Model\MessageQuery; | |
*/ | |
class MailerFactory | |
{ | |
+ // {{{ added by @asenar - DKIM patch | |
+ // HOWTO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 670110b (HEAD, virageadroite) | |
Author: Michaël Marinetti <[email protected]> | |
Date: 12 minutes ago | |
Add: security wp-content | |
diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php | |
index 078a369..d11c9f3 100644 | |
--- a/wp-admin/includes/file.php | |
+++ b/wp-admin/includes/file.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" put in ~/.vimrc | |
" {{{ general config | |
set nocompatible " vim Improved | |
set t_Co=256 " 256 colors | |
set ruler " show line and column in status bar | |
set showcmd " show the current command you're typing | |
" }}} | |
" {{{ look and feel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DEBUG', true); // true = enable debug mode | |
define('DEBUG_ALLOW_ERRORS', false); // false = break on every notice/warning/error(throw exception) | |
set_error_handler('error_handler'); | |
// set_exception_handler(array('Kohana_Exception', 'handler')); | |
function error_handler($code, $error, $file = NULL, $line = NULL){ | |
if (error_reporting() & $code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
current_hour=$(date +"%H") | |
current_day=$(date +"%d") | |
current_month=$(date +"%m") | |
dbuser=backup | |
dbpass=****** | |
dbname=mydb | |
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# file : nouveau_site | |
# description : script to quickly create new vhost. script has to be in /usr/local/sbin/nouveau_site | |
# usage : | |
# nouveau_site mondomaine.com | |
EMAILS="[email protected]" | |
main_ndd="monsite" | |
source /usr/local/include/custom_lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init test | |
cd test | |
echo "test" > test1 | |
echo "test" > test2 | |
echo "Dépot exemple" > README | |
git add . && git ci -m "commit initial" | |
echo "2eme ligne" >> test1 | |
git add . && git ci -m "ajout une ligne dans test1" | |
git checkout -b branche1 | |
echo "3eme ligne dans branche1" >> test1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/tmp_working_dir | |
cd ~/tmp_working_dir | |
git init full_smalte | |
cd full_smalte | |
all_subs="installer framework module.sample tests theme.backoffice theme.frontoffice" | |
# part 1 : import all | |
# Six branch doomed to die |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get all, separated by space or kind of | |
tout=$(grep "<virtualhost\|servername" /usr/local/apache/conf/httpd.conf -i \ | |
| sed "s#<VirtualHost\(.*\):[0-9]*>#\1#" \ | |
| sed "s#.*ServerName \(.*\)#\1#" \ | |
) | |
count = 0; | |
# newline one / 2 |
NewerOlder