Skip to content

Instantly share code, notes, and snippets.

View fugudesign's full-sized avatar

Vincent Lalanne fugudesign

View GitHub Profile
@noelboss
noelboss / git-deployment.md
Last active March 7, 2026 23:09
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@floptwo
floptwo / composer_ovh.md
Last active October 2, 2018 22:24
Install Composer OVH Mutu
curl -sS https://getcomposer.org/installer | /usr/local/php7.0/bin/php
mkdir bin
mv composer.phar bin/composer
/usr/local/php7.0/bin/php ~/bin/composer
@nrollr
nrollr / MongoDB_macOS_Sierra.md
Last active February 13, 2025 10:55
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@fugudesign
fugudesign / Wordpress blog pages functions
Last active November 15, 2016 13:23
Wordpress functions for all blog pages (body classes and menu items)
/**
* Define if the current page is a blog page or not
*
* @global $post
* @return bool true if current page is a blog page
*/
function is_blog () {
global $post;
return ( ( is_archive() || is_author() || is_category() || is_home() || is_single() || is_tag() ) && get_post_type( $post ) == 'post' );
}
@fugudesign
fugudesign / Wordpress archive titles
Last active November 15, 2016 13:23
Wordpress archive titles without prefix
/*
* Remove Prefixes from archive titles
*
* @param string $title The title of the archive
* @return string $title The new title for the archive
*/
function my_archive_title( $title ) {
if( is_category() ) {
$title = single_cat_title( '', false );
}
@fugudesign
fugudesign / Wordpress disable emoji
Last active November 15, 2016 13:23
Wordpress disable emoji ability
/**
* Disable the emoji ability added from WP 4.2
*/
function my_disable_wp_emojicons() {
// all actions related to emojis
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
@fugudesign
fugudesign / Wordpress disable adminbar
Last active November 15, 2016 13:23
Wordpress disable adminbar on front
// Disable the adminbar for the frontend
add_filter('show_admin_bar', '__return_false');
@fugudesign
fugudesign / Wordpress clean <head>
Last active November 15, 2016 13:23
Wordpress remove unnecessary code from <head>
// Remove unnecessary code from header
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link');
remove_action( 'wp_head', 'wp_shortlink_wp_head');
// and also for WPML
global $sitepress;
remove_action( 'wp_head', array( $sitepress, 'meta_generator_tag' ) );
@fugudesign
fugudesign / Wordpress activate link manager.php
Created November 15, 2016 13:19
Code for activating the native link manager of Wordpress, with link categories and links widget.
@rewop
rewop / Challenge.md
Last active August 5, 2018 21:07 — forked from dseelmann/.eslintrc
Test task

Task

Implement a page with a multi-step form, where each step shows when you have completed the previous one. In other words, we're not looking for previous/next buttons, but the next step should appear automatically.

Steps

  1. Two checkboxes with labels A1 and A2. Both are unchecked by default. Next step is available after at least one of them is checked.
  2. Two toggle buttons with labels B1 and B2. One button untoggles another (same as radio buttons behavior). Both are inactive by default. Next step is available when any option has been chosen.
  3. Text field with button Check. When button is pressed a value of the field will be send. Next step is available if a response from API is fine.
  4. Selectbox with C1, C2, C3 options. It is empty by default. Next step is available when any option has been chosen.