Skip to content

Instantly share code, notes, and snippets.

View gist:f7f41d46f769c00cea2198f8dadda8cc
# Monthly review
- Quite time & Pray
- Review yearly goals & 7 areas (reviews current progress & metrics)
- Review quarter (90d) goals & initiatives
- Review last MONTH's focus, goals, and initiatives
- Migrate "monthly focus" tasks/actionable to new month (don't do weekly stuff yet)
- Journal and evaluate progress & changes
- Last month's focus questions - Thoughts
- the tag: my/focusQuestions
@that0n3guy
that0n3guy / gist:ebcb574407183964195b26c9508e13a6
Created Oct 28, 2021
Electronjs R10 with GSPro - basic start and connection
View gist:ebcb574407183964195b26c9508e13a6
// Modules to control application life and create native browser window
const { app, BrowserWindow } = require('electron')
const path = require('path')
const url = require('url')
// const WebSocket = require('ws')
// const wss = new WebSocket.Server({ port: 2483 });
var net = require('net');
var client = new net.Socket();
View gist:cc9f60ff56df5278dbdf4adf486c579b
title: 'Long Form Post'
sections:
main:
display: Main
fields:
-
handle: title
field:
type: text
localizable: true
@that0n3guy
that0n3guy / docker-compose.yml
Created Apr 25, 2017
Using jwilder/nginx-proxy for local development
View docker-compose.yml
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
@that0n3guy
that0n3guy / main.php
Created Sep 29, 2016
x2crm 5.0.4 main.php config file with rollbar, Dotenv, and composer autoload
View main.php
<?php
// This file is to contain custom modifications to the $config array returned by
// protected/config/main.php via protected/config/web.php to construct the web
// application.
// this file is custom/protected/config/web.php
// this is for php composer integration
require_once dirname(__FILE__)."/../../../vendor/autoload.php";
// Use this to automagically load our .env file into the env for development environments
View console.php
<?php
// this file is in:
// custom/protected/config/console.php
// This file is to contain custom modifications to the $config array returned by
// protected/config/main.php via protected/config/console.php to construct the
// console application.
//Just use the web file... no need to have a different config for console at this point.
require('web.php');
unset($config['controllerMap']); // Fix weird error when running console commands. Some where proConfig.php is getting included.
View gist:38a958aa970024036635
server {
# see: http://wiki.nginx.org/Pitfalls
# see: http://wiki.nginx.org/IfIsEvil
listen 80;
root /app;
index index.html index.htm index.php;
error_page 404 /index.php;
# Make site accessible from http://set-ip-address.xip.io
View gist:905c812c0f65e7ffb5ec
server {
# see: http://wiki.nginx.org/Pitfalls
# see: http://wiki.nginx.org/IfIsEvil
listen 80;
root /app;
index index.html index.htm index.php;
error_page 404 /index.php;
# Make site accessible from http://set-ip-address.xip.io
@that0n3guy
that0n3guy / gist:e392d763df4b21c04fd3
Created Feb 27, 2015
dokku build with variables
View gist:e392d763df4b21c04fd3
#!/bin/bash
DOCKERFILE="/home/ubuntu/dockerfiletest/Dockerfile"
ENVFILE='/home/dokku/oca/ENV'
env_list='ENV'
# itterate through ENV file to make a single line for use in Dockerfile
while read line; do
# Remove the 'export ' at the beginning of each line