Skip to content

Instantly share code, notes, and snippets.

View flug's full-sized avatar
:octocat:
yeah yeah yeah

Flug flug

:octocat:
yeah yeah yeah
View GitHub Profile
/***************** WP Config ************************/
define('FS_METHOD', 'direct');
define('FTP_BASE', '/path/to/wordpress/');
define('FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/');
define('FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/');
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'ftp.example.org');
define('FTP_SSL', false);
// /classes/pdf/HTMLTemplate.php
public $id_commande = 0 ;
// Line ~52
$this->smarty->assign(array(
'logo_path' => $path_logo,
'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,
'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
# Htaccess
Header unset ETag
FileETag None
@flug
flug / gist:5744813
Created June 9, 2013 19:21
Authentification Email Cakephp
public $components = array(
"Auth" => array(
'authenticate' => array(
'Form' => array(
'fields' => array('username' => 'email')
)
)
)
);
#!/bin/bash
for i in *.gif; do convert "$i" "${i%.gif}.png"; done
@flug
flug / gist:7606916
Created November 22, 2013 21:09
Symlink all file of directory
ln -s /mnt/usr/lib/* /usr/lib/
<navigation:Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:player="clr-namespace:SilverlightAdvancedPlayer.Player;assembly=Core"
xmlns:smf="http://schemas.microsoft.com/smf/2010/xaml/player"
xmlns:Microsoft_SilverlightMediaFramework_Utilities_Offline="clr-namespace:Microsoft.SilverlightMediaFramework.Utilities.Offline;assembly=Microsoft.SilverlightMediaFramework.Utilities"
xmlns:System="clr-namespace:System;assembly=mscorlib"
<?php
$pays = array(
"AD" => "Andorre",
"AE" => "Emirats arabes unis",
"AF" => "Afghanistan",
"AG" => "Antigua-et-barbuda",
"AI" => "Anguilla",
"AL" => "Albanie",
"AM" => "Arménie",
"AN" => "Antilles",
@flug
flug / nginx cakephp.conf
Created February 15, 2014 17:53
Configuration for Cakephp Framework
server {
listen 80;
server_name example.com;
access_log /var/log/nginx/example.access.log;
error_log /var/log/nginx/example.error.log;
root /home/me/workspace/example/app/webroot/;
charset utf-8;
index index.php index.html index.htm;
location ~* \.(js|css|html?|xml|gz|jpe?g|gif|png|swf|wmv|flv|ico)$ {
namespace Fmdb\CoreBundle\Composer;
use Sensio\Bundle\DistributionBundle\Composer\ScriptHandler as BaseScriptHandler;
use Symfony\Component\ClassLoader\ClassCollectionLoader;
use Symfony\Component\Process\Process;
class ScriptHandler extends BaseScriptHandler
{
public static function installBowerAssets($event)
{