Skip to content

Instantly share code, notes, and snippets.

View smonff's full-sized avatar

Sébastien Feugère smonff

View GitHub Profile
@smonff
smonff / fix-wordpress-permissions.sh
Created January 23, 2017 17:49 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@smonff
smonff / keybase.md
Created April 1, 2019 21:18
Keybase

Keybase proof

I hereby claim:

  • I am smonff on github.
  • I am smonff (https://keybase.io/smonff) on keybase.
  • I have a public key ASCQT5EfYHLpLVAS9P_jYpAIuCVpdfyBrMfAoUKsk5s1Xgo

To claim this, I am signing this object:

@smonff
smonff / gist:9851736
Last active January 12, 2021 13:38 — forked from am0c/gist:3803249
;
; mmm-mode config for Mojolicious::Lite perl file.
; Forked from https://gist.github.com/am0c/3803249
; mmm-mode lib is from here: https://github.com/purcell/mmm-mode
; font locks of [c]perl-mode and mmm-mode conflict each other.
;
(require 'mmm-auto)
(require 'mmm-compat)
(require 'mmm-vars)
@smonff
smonff / mounts2json.pl
Last active July 21, 2021 13:55
/proc/mounts to JSON with perlcore only
#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
use JSON::PP;
my @only = qw(ext4);
my @mounts = ();
@smonff
smonff / natural.pl
Last active July 23, 2022 07:49
Natural language example
my $is_easy_to_read = $self->evaluate_readability( $pattern );
$self->explain_meaning unless $is_easy_to_read;