Skip to content

Instantly share code, notes, and snippets.

View siriusnottin's full-sized avatar

Sirius siriusnottin

View GitHub Profile
rm -rf ~/.composer/cache
alias ll='ls -all'
wp core download --locale=en_EN
#Replace HERE by the correct value.
wp config create --dbname=HERE --dbuser=HERE --dbprefix=wp_ --locale=en_EN --force --skip-check --skip-salts
@siriusnottin
siriusnottin / wp-config.php
Created May 15, 2018 09:55
WordPress custom config
define( 'WP_DEBUG', true );
// define( 'WP_DEBUG_LOG', true );
define('FS_METHOD','direct');
Host simplename
HostName simple.com
User username
Port 22
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
@siriusnottin
siriusnottin / README.md
Last active April 23, 2019 09:50
Remote host identification has changed

Remote host identification has changed

If you have an error like me when you reinstalled a server and you can no longer connect in ssh because the host has changed, type this :

ssh-keygen -R your_server_hostname_or_ip
@siriusnottin
siriusnottin / functions.php
Created May 4, 2018 12:22
Disable the display of the WordPress version number.
add_filter( 'the_generator', '__return_null' );
@siriusnottin
siriusnottin / gulpfile.js
Last active May 30, 2018 12:07
WordPress Theme Automation With Gulp
// Done with the help of this article
// https://www.sitepoint.com/wordpress-theme-automation-with-gulp/
require('es6-promise').polyfill();
var gulp = require('gulp');
sass = require('gulp-sass');
autoprefixer = require('gulp-autoprefixer');
rtlcss = require('gulp-rtlcss');
rename = require('gulp-rename');
plumber = require('gulp-plumber');