Skip to content

Instantly share code, notes, and snippets.

@tgeorge
tgeorge / certexec.sh
Last active August 14, 2023 19:28
LetsEncrypt with NGINX configuration using webroot
#!/bin/bash
#to create letsencrypt file
certbot certonly --webroot -w /storage/path/here/ -d domain.com -d www.domain.com
@tgeorge
tgeorge / 0-react-hello-world.md
Created July 28, 2017 23:57 — forked from danawoodman/0-react-hello-world.md
React Hello World Examples

React "Hello World" Examples

Below are a small collection of React examples to get anyone started using React. They progress from simpler to more complex/full featured.

They will hopefully get you over the initial learning curve of the hard parts of React (JSX, props vs. state, lifecycle events, etc).

Usage

You will want to create an index.html file and copy/paste the contents of 1-base.html and then create a scripts.js file and copy/paste the contents of one of the examples into it.

@tgeorge
tgeorge / ajax-form.js
Created December 15, 2016 04:52 — forked from havvg/ajax-form.js
jQuery AJAX form submit with Twitter Bootstrap modal
jQuery(function($) {
$('form[data-async]').live('submit', function(event) {
var $form = $(this);
var $target = $($form.attr('data-target'));
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),