Skip to content

Instantly share code, notes, and snippets.

View hotpocket's full-sized avatar

Brandon hotpocket

View GitHub Profile
@hotpocket
hotpocket / init-letsencrypt.sh
Created June 8, 2024 06:00 — forked from mandiwise/init-letsencrypt.sh
Create dummy certificates to start up nginx so it can request real certificate from Let's Encrypt
#!/bin/bash
# Usage:
# $ chmod +x init-letsencrypt.sh
# $ init-letsencrypt.sh mydomain.com bob@email.com 1
#
# Reference:
# https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
domain=${1}
@hotpocket
hotpocket / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@hotpocket
hotpocket / style-example
Created July 1, 2014 23:41
style pref. reformat
<?php
function usersearchAction(){
$result = $this->_helperUser->searchAction(
$this->_getParam('query'),
Zend_Json::decode($this->_getParam('option', '[]')),
$this->getDbSearchQuery();
);
$this->setData($result)->setSuccess(true);
}