Skip to content

Instantly share code, notes, and snippets.

View devakone's full-sized avatar
💭
coding...

Abou Koné devakone

💭
coding...
View GitHub Profile
@devakone
devakone / localhost-ssl-certificate.md
Created February 19, 2021 20:52 — forked from ethicka/localhost-ssl-certificate.md
Localhost SSL Certificate on Mac OS

🚨 2020 Update: I recommend using mkcert to generate local certificates. You can do everything below by just running the commands brew install mkcert and mkcert -install. Keep it simple!


This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

@devakone
devakone / introrx.md
Created October 17, 2016 19:37 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@devakone
devakone / pagination.ctp
Created June 5, 2012 14:56 — forked from slywalker/pagination.ctp
pagination element for CakePHP on twitter bootstrap
<?php
if (!isset($modules)) {
$modulus = 11;
}
if (!isset($model)) {
$models = ClassRegistry::keys();
$model = Inflector::camelize(current($models));
}
?>
<div class="pagination">