Skip to content

Instantly share code, notes, and snippets.

View nicomollet's full-sized avatar

Nico Mollet nicomollet

View GitHub Profile
@fidelix
fidelix / settings.local.php
Last active January 3, 2016 05:50
Development settings file for Drupal 7
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'meusite_local',
'username' => 'root',
'password' => 'root',
'host' => 'localhost',
@DevinVinson
DevinVinson / Unset woocommerce gateway for specific country
Created August 15, 2013 04:53
Remove woocommerce gateways for $country, remove gateways for anything else
function lk_aussie_gateways( $available_gateways ) {
global $woocommerce;
if ($woocommerce->customer->get_country() == 'AU') {
unset( $available_gateways['cod'] );
}
return $available_gateways;
@claviska
claviska / pretty-buttons.less
Last active October 21, 2022 22:25
A Less mixin' for pretty buttons with Bootstrap 3
.pretty-buttons(@color, @background, @text-shadow: none) {
color: @color;
#gradient > .vertical(lighten(@background, 5%), darken(@background, 5%), 0%, 100%);
border-color: darken(@background, 10%);
border-bottom-color: darken(@background, 20%);
text-shadow: @text-shadow;
.box-shadow(inset 0 1px 0 rgba(255, 255, 255, .1));
&:hover,
@finger-berlin
finger-berlin / smb.conf
Created May 9, 2012 08:52
smb.conf for simple /var/www sharing ... make sure /var/www is owned by www-data...
[global]
unix charset = UTF8
workgroup = XXX
netbios name = XXX
server string = %h server (Samba, Ubuntu)
interfaces = lo eth0
bind interfaces only = Yes
security = SHARE
obey pam restrictions = Yes
guest account = www-data
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream