Skip to content

Instantly share code, notes, and snippets.

View chiedo's full-sized avatar

Chiedo John chiedo

  • GitHub
  • Harrisonburg, VA
View GitHub Profile
@chiedo
chiedo / okr-discussion-template.md
Last active July 14, 2020 19:33
OKR Discussion Template

Discussion Title:

FY21: H1 OKR Planning - [Objective name]

Discussion Body

As discussed in today's Docs Weekly post, we're kicking off OKR planning today.

Objective Lead:

[objective lead]

@chiedo
chiedo / index.html
Created April 18, 2019 01:01
Hello world starter pack
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World</title>
<script src="script.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
Hello World
@chiedo
chiedo / gatsby-node.js
Created September 15, 2016 09:00 — forked from ivanoats/gatsby-node.js
Sitemap for Gatsby
var fs = require('fs-extra-promise') //install this package
var sm = require('sitemap') // install this package
function pagesToSitemap(pages) {
var urls = pages.map(function(p) {
if (p.path !== undefined) {
return {
url: p.path,
changefreq: 'daily',
priority: 0.7

Keybase proof

I hereby claim:

  • I am chiedo on github.
  • I am chiedo (https://keybase.io/chiedo) on keybase.
  • I have a public key whose fingerprint is 5E91 A723 3BD8 9C93 EEF3 C29C 7BB4 F7B4 4EBF 0463

To claim this, I am signing this object:

let React = require('react');
class ClothingSizePicker extends React.Component {
constructor() {
super();
this.state = {size: 'S'};
this._handleChange = this._handleChange.bind(this);
@chiedo
chiedo / dark-gist-embed-theme.css
Created May 1, 2015 13:57
A Dark gist Embed theme
pre {
padding: 20px;
color: #ffffff;
background: #434343; }
body .gist .line-data, body .gist .file-data, body .gist .line-numbers {
color: #ffffff;
background: #434343; }
body .gist .gist-meta {
color: #ffffff;
@chiedo
chiedo / boot2docker-nfs-osx.md
Last active October 4, 2019 20:32
Configuring boot2docker to use NFS on an OSX machine

Configuring Boot2Docker to use NFS on an OSX based machine

  • To improve the speed of Boot2Docker drastically, you will want to set it up to use NFS.
  • You will need to do the following once on your host machine:
    • Add this to /etc/exports on your mac

      # BOOT2-DOCKER-BEGIN
      /Users 192.168.59.103 -alldirs -mapall=501:20
      # BOOT2-DOCKER-END
      
@chiedo
chiedo / docker-compose-web-up.sh
Last active August 29, 2015 14:16
Have your docker container start wait for your to enter it with the command it provides.
# Tested on Docker 1.5
# make the following the command for docker-compose.yml
# You will obviously first need to do a chmod +x on docker-compose-web-up.sh and add it to your docker container.
# command: bash docker-compose-web-up.sh
# See https://github.com/chiedojohn/django-starter for implementation example.
# Wait a couple seconds to make sure this output is the last thing in the console
sleep 2
# Get the container ID
@chiedo
chiedo / php-google-recaptcha-verification-function.php
Last active April 5, 2018 08:56
PHP Verification Function for Google recaptcha Server side code
<?php
/*
* Verifies if the captcha data via Google and redirects to the form page if the captcha does not pass.
*
* Parameters:
* Gcaptcha response - the form data submitted with the request.
** Example call if your form used method='get': verify_captcha($_GET['g-recaptcha-response'], "Secret key here");
** Example call if your form used method='post': verify_captcha($_POST['g-recaptcha-response'], "Secret key here");
*/
function verify_google_captcha($gcaptcha_response, $secret) {
@chiedo
chiedo / flask-uwsgi-config.ini
Last active November 28, 2018 03:46
Flask uwsgi config
[uwsgi]
socket = 127.0.0.1:5000
threads = 2
master = True
chdir = PATH TO YOUR APP
# The module entry point for your app. For my purposes, it is project:app
module = project:app
pythonpath = PATH TO YOUR PYTHON EXECTUABLE
pythonpath = PATH TO YOUR APP
# Add environment variables.