Skip to content

Instantly share code, notes, and snippets.

@lucachr
lucachr / .tmux.conf
Created September 17, 2017 15:57
Tmux configuration file
# utf8 is on
set -g utf8 on
set -g status-utf8 on
# address vim mode switching delay (https://superuser.com/a/252717/65504)
set -s escape-time 0
# focus events enabled for terminals that support them
set -g focus-events on
@lucachr
lucachr / ex-mysql-playbook.yml
Created January 12, 2015 13:07
An example playbook to install MySQL and configure the MySQL root password on Centos 6.x .
---
- hosts: all # Replace this with your database's host/group
vars:
mysql_password: xxxxxxxx # Replace this with your root mysql password
epel_repo: epel-release-6-8.noarch.rpm
sudo: yes
tasks:
# The EPEL repository is required to install Python pip
- name: Download EPEL-repo rpm for CentOS 6.x
@lucachr
lucachr / .mailrc
Created January 2, 2015 13:07
Sample .mailrc configuration file for Gmail
set smtp-use-starttls
set smtp=smtp://smtp.gmail.com:587
set smtp-auth=login
# Change 'xxxxxx' with your username
set smtp-auth-user=xxxxxx@gmail.com
# Change 'xxxxxxxxxxxx' with your password
set smtp-auth-password=xxxxxxxxxxxx
# Change 'xxxxxxxx' with the name of your Firefox's profile,
# it is located in the ~/.mozilla/firefox/ directory.
set nss-config-dir=~/.mozilla/firefox/xxxxxxxx.default
@lucachr
lucachr / checkip.sh
Last active August 29, 2015 14:12
A bash script to notify changes of your ip address with an email
#!/bin/bash
# Run this script in the background with './checkip.sh >/dev/null 2>&1 &'
# mail or mailx have to be configured by placing a .mailrc file in
# your home directory.
# The file where the current ip is saved
IPFILE='ipfile'
# Change this with your own email
MAILTO='example@example.com'