Skip to content

Instantly share code, notes, and snippets.

💭
On Gitlab - https://gitlab.com/smonff

Sébastien Feugère smonff

💭
On Gitlab - https://gitlab.com/smonff
Block or report user

Report or block smonff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View fix-wordpress-permissions.sh
#!/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 / recruiter_response.md
Last active Apr 1, 2016 — forked from dougireton/recruiter_response.md
I've started responding to recruiters with this list of requirements
View recruiter_response.md

Company Requirements

I'm definitely not looking for work. However to provide some helpful guidance for hiring like-minded engineers, I would only consider working for a company if it met these requirements:

  1. Concrete, measurable plan to increase the number of women and minorities in engineering roles.
  2. I would only be willing to interview if there were women/minorities in the interview pool for this position.
  3. Commitment to using and contributing to open source.
  4. Collaborative, friendly atmosphere where pair programming is encouraged.
  5. Meaningful work with clear linkage between work and company goals.
  6. Demonstrated commitment to ethical business practices, e.g. B corp certification.
@smonff
smonff / clean-regex.pl
Created Jan 17, 2014
An excerpt from chromatic's Modern Perl book about clean regexes
View clean-regex.pl
# The /x modifier allows you to embed additional whitespace and comments within patterns.
# With this modifier in effect, the regex engine ignores whitespace and comments.
# The results are often much more readable.
# This regex isn't simple, but comments and whitespace improve its readability.
# Even if you compose regexes together from compiled fragments, the /x modifier
# can still improve your code.
my $attr_re = qr{
\A # start of line
@smonff
smonff / cold_art.poetry
Created Nov 24, 2013
another thought about art
View cold_art.poetry
this is not a haiku
this is not code
you won't need to have feelings
it's much more conceptual
it' not about love
View smartphone.poetry
smartphone poetry
not for books, made by me
available for you
as an open work
you should add your own
@smonff
smonff / jsbin.UkIFuRi.css
Last active Dec 24, 2015
Search a textarea for a mail address and disable the sform submission button if found
View jsbin.UkIFuRi.css
input {
height: 50px;
width: 90%;
}
#message {
color: red;
}
@smonff
smonff / gettext
Created Sep 3, 2013
The command line for pot files generation
View gettext
xgettext.pl --verbose --directory=mon/directory --directory=mon/autre/directory --output=la/bas/out.pot
View ubuntu-configure-sendmail-with-gmail
#!/bin/bash
HOST=$(hostname)
function install_postfix() {
echo | sudo debconf-set-selections <<__EOF
postfix postfix/root_address string
postfix postfix/rfc1035_violation boolean false
postfix postfix/mydomain_warning boolean
postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
@smonff
smonff / unique_uuid.pl
Created Nov 20, 2012
Generate a hundred UUID.
View unique_uuid.pl
#!usr/bin/perl
use strict;
use warnings;
use feature(qw/say/);
use Data::UUID;
my $ug = new Data::UUID;
my $idx = 0;
my $uuid;
my $unik;
You can’t perform that action at this time.