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 / ubuntu-configure-sendmail-with-gmail
Created November 28, 2012 20:10 — forked from sshtmc/ubuntu-configure-sendmail-with-gmail
Ubuntu sendmail using smtp.gmail.com
#!/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 / 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 / recruiter_response.md
Last active April 1, 2016 13:10 — forked from dougireton/recruiter_response.md
I've started responding to recruiters with this list of requirements

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 / 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