Skip to content

Instantly share code, notes, and snippets.

View prcaen's full-sized avatar
😁

Pierrick CAEN prcaen

😁
View GitHub Profile
@prcaen
prcaen / webserver.conf.md
Last active January 3, 2016 06:59
Web server configurations tips

Change port SSH

Edit : vim /etc/ssh/sshd_config change port service ssh restart

Change port MySQL

Edit : vim /etc/mysql/my.cnf change port under mysqld service mysql restart

@prcaen
prcaen / start_workers.sh
Created May 20, 2014 17:57
Resque start workers
TERM_CHILD=1 COUNT=5 QUEUES=* bundle exec rake resque:workers
@prcaen
prcaen / git_commit_convention.markdown
Last active August 29, 2015 14:01
Git commit convention

Git commit convention

Format

<type>(scope): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
```
@prcaen
prcaen / compress_image.sh
Created May 13, 2015 12:42
Compress all PNG or JPG files of a folder thanks to TinyPNG or TinyJPG API
#!/bin/bash
# Install
# This script need a API key from TinyPNG. See this page: https://tinypng.com/developers
# It also need jq library, which can be install thanks to: `brew install jq`
# Usage
# cd to your folder. This script will compress all PNG or JPG files recursively.
API_KEY="CHANGE_ME"