Skip to content

Instantly share code, notes, and snippets.

View DavidLemayian's full-sized avatar
👨‍💻

David Lemayian ✨ DavidLemayian

👨‍💻
View GitHub Profile
@DavidLemayian
DavidLemayian / cloudflare-google-mx.txt
Created August 2, 2019 08:26
A template file for Cloudflare Google MX records.
;; MX Records
codeforafrica.org. 1 IN MX 10 alt4.aspmx.l.google.com.
codeforafrica.org. 1 IN MX 10 alt3.aspmx.l.google.com.
codeforafrica.org. 1 IN MX 5 alt2.aspmx.l.google.com.
codeforafrica.org. 1 IN MX 5 alt1.aspmx.l.google.com.
codeforafrica.org. 1 IN MX 1 aspmx.l.google.com.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@DavidLemayian
DavidLemayian / DataDeskManual.md
Created February 6, 2019 06:42 — forked from munenedenis/DataDeskManual.doc
Data Desk Manual

Introduction

This document is purposely compiled to give guidelines on how to assess an organization's need for a data division, how to set up the data desk as well as addressing the following issues;

Needs Assessment Framework Data Desk Terms of Reference Setup strategies Resources required Barriers envisioned in setting up. Modus operandi

Keybase proof

I hereby claim:

  • I am davidlemayian on github.
  • I am davidlemayian (https://keybase.io/davidlemayian) on keybase.
  • I have a public key ASCKwOgN8c-HoBSkHsH82WrUGJDt8QVd-XvrzRX9a17XSAo

To claim this, I am signing this object:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDgV3Oa+Jl6yydsVdO6xEWNHq9A8qI1YJUcrrAFm71I5c9xbSyY9E9tt97wyf0HOppMrkMIscP1XCEEo5r5ipB3RBXnx6F+JwdJrYiae5PVhc5zdT+VDF876+0aLhXm4Z2VRBBSiFPKjKcKWznilXJJo9B3dLs9LPGztEEebsTJeCYisZiIs5HpVl51oiNZ94HWylKBatH9lzAIs4WZw2LONlGy3ztDoTwfSMEwitqXXnETor3R2nNAyGbPSJ90dA5iQeWB7PDBD5nZYJYFf6PeiSygm9q+FWyPRFQ4lhjTPBv/7Duizw3XvNOq5SPPpCaObx7641ZqFcrJ83BoJHhZ david@codeforafrica.org

Keybase proof

I hereby claim:

  • I am DavidLemayian on github.
  • I am davidlemayian (https://keybase.io/davidlemayian) on keybase.
  • I have a public key whose fingerprint is 2E49 EA47 2F70 4BA6 72EF EA07 041C 8606 585B BE1B

To claim this, I am signing this object:

@DavidLemayian
DavidLemayian / # pdfium - 2016-05-29_15-29-36.txt
Created May 29, 2016 12:54
pdfium (pdfium) on Mac OS X 10.11.4 - Homebrew build logs
Homebrew build logs for pdfium on Mac OS X 10.11.4
Build date: 2016-05-29 15:29:36
from pyquery import PyQuery
from AlchemyAPI import AlchemyAPI
from itertools import ifilter
import re
import lxml
url="http://www.kenyalaw.org/klr/index.php?id=441"
ao=AlchemyAPI()
ao.loadAPIKey("api-key.txt")
@DavidLemayian
DavidLemayian / WordPress New Post Notification
Last active April 9, 2016 02:35
Automatically notify users of a new post. Simply add this piece of code to your functions.php file to have it working. FEATURES: - Automatically sends an email to notify registered users of a new post. - Allows for rich text formatting through HTML. - A brief of the content to expect. - Links back to the exact post and blog. - Sends email only o…
/*
EMAIL NOTIFICATION OF NEW POST
Add this to the functions.php file.
*/
function email_members($post_ID) {
global $wpdb;
// Check if notification for this post has already been sent
@DavidLemayian
DavidLemayian / Terms Of Use Template
Last active December 19, 2015 17:38
Terms Of Use template adapted from http://opensource-template.wikidot.com/legal:terms-of-use . Plays nice with Twitter Bootstrap. :) *Remember to add your email address on the last line. It's blank by default.
<h4>Legal Notices</h4>
<p>We, the Operators of this Website, provide it as a public service to our users.</p>
<p>Please carefully review the following basic rules that govern your use of the Website. Please note that your use of the Website constitutes your unconditional agreement to follow and be bound by these Terms and Conditions of Use. If you (the "User") do not agree to them, do not use the Website, provide any materials to the Website or download any materials from them.</p>
<p>The Operators reserve the right to update or modify these Terms and Conditions at any time without prior notice to User. Your use of the Website following any such change constitutes your unconditional agreement to follow and be bound by these Terms and Conditions as changed. For this reason, we encourage you to review these Terms and Conditions of Use whenever you use the Website.</p>
<p>These Terms and Conditions of Use apply to the use of the Website and do not extend to any linked third party sites. These Terms and Condi