Skip to content

Instantly share code, notes, and snippets.

View chrismou's full-sized avatar

Chris Chrisostomou chrismou

View GitHub Profile
@milo
milo / github-webhook-handler.php
Last active July 26, 2023 15:29
GitHub Webhook Handler
<?php
/**
* GitHub webhook handler template.
*
* @see https://docs.github.com/webhooks/
* @author Miloslav Hůla (https://github.com/milo)
*/
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check
@charypar
charypar / group_vars
Last active August 25, 2022 16:43
Deploying SSL keys securely with Ansible (code)
---
ssl_certificates:
- certificate_src: secure.example.com.pem
certificate_dest: /etc/ssl/certs/secure.example.com.pem
key_src: secure.example.com.protected.key
key_dest: /etc/ssl/private/secure.example.com.protected.key
key_stripped: /etc/ssl/private/secure_example.com.key
key_password: "{{ssl_passphrase}}"
@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active June 10, 2024 15:37
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@iStefo
iStefo / ember-meta.js
Created April 29, 2013 13:14
Ember-Meta module. See first comment for usage etc.!
// include this code in your application, you don't need to call any initialization manually!
Ember.Application.initializer({
name: "meta",
initialize: function(container, application) {
// helper function to get tag from dom
var _getTag = function(tagname, property, value) {
var tags = document.head.getElementsByTagName(tagname),
tag,
@csswizardry
csswizardry / Steak.md
Created August 30, 2012 21:48
Making the perfect steak

To make this steak:

  1. You will need: A half-decent steak, black peppercorns (crushed), sea salt (I prefer Maldon), timer/stopwatch
  2. Trim any and all fat
  3. Leave steak to reach room temp
  4. Once at room temp, rub with olive oil and cracked black pepper (no salt yet, this will dry the meat out)
  5. Heat an empty (no oil, no nothing) pan until it is very hot
  6. Once heated, drop your steak into the pan, start your timer
  7. Move the steak around the pan turning over it every 15 seconds (no, I’m not joking :P)
  8. Crumble a load of sea salt onto the meat as it cooks