Skip to content

Instantly share code, notes, and snippets.

View tlongren's full-sized avatar
🎯
Focusing

Tyler Longren tlongren

🎯
Focusing
View GitHub Profile
@tlongren
tlongren / config.json
Created October 13, 2015 23:45
cache-monitor config.json file
{
"api_url": "https://status.longrendev.io/api/v1",
"api_token": "TfmCMdxDhU5myguKNlW5",
"monitors": [
{
"name": "nodegear frontend",
"url": "https://nodegear.io/ping",
"metric_id": 1,
"threshold": 80,
"component_id": null,
@tlongren
tlongren / error.log
Created October 12, 2015 11:45
Cachet on Dokku Nginx Errors
2015/10/12 07:34:50 [error] 16512#0: *33391 connect() failed (113: No route to host) while connecting to upstream, client: 69.66.102.168, server: status.platform.longrendev.io, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.17.0.231:5000/favicon.ico", host: "status.platform.longrendev.io", referrer: "http://status.platform.longrendev.io/"
2015/10/12 07:42:24 [error] 16512#0: *33416 connect() failed (113: No route to host) while connecting to upstream, client: 69.66.102.168, server: status.platform.longrendev.io, request: "GET / HTTP/1.1", upstream: "http://172.17.0.231:5000/", host: "status.platform.longrendev.io"
2015/10/12 07:42:27 [error] 16512#0: *33416 connect() failed (113: No route to host) while connecting to upstream, client: 69.66.102.168, server: status.platform.longrendev.io, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.17.0.231:5000/favicon.ico", host: "status.platform.longrendev.io", referrer: "http://status.platform.longrendev.io/"
2015/10/12 07:42:36 [error] 16512#0
@tlongren
tlongren / pretty.json
Created October 12, 2015 06:47
Pretty vs Ugly JSON
{
"items":[
{
"address":"someemail1@yahoo.com",
"code":"554",
"error":"554 delivery error: dd This user doesn't have a yahoo.com account (someemail1@yahoo.com) [0] - mta1481.mail.ne1.yahoo.com",
"created_at":"Thu, 07 May 2015 23:07:47 UTC"
},
{
"address":"someemail2@gmail.com",
@tlongren
tlongren / resume.md
Created October 12, 2015 02:35
Resume in Markdown

Tyler Longren - Full Stack Web Developer

415 Main Street, Collins, IA, 50055
Phone: (515) 999-5033
Online Portfolio: https://longrendev.io/

Skills Summary:

I have fourteen years of experience creating and designing web sites with PHP and MySQL, and have been using JavaScript for the past 10 years. I also have ten years of experience administering Linux servers and ten years of networking experience. I have a full working knowledge of Git, CSS3, PHP, MySQL, WordPress, HTML5, as well as many Open Source and Microsoft applications.

@tlongren
tlongren / connections.txt
Last active September 11, 2015 23:05
DD-WRT All Connections
tcp 6 117 TIME_WAIT src=192.168.1.9 dst=50.19.209.19 sport=52691 dport=443 src=50.19.209.19 dst=69.66.102.168 sport=443 dport=52691 [ASSURED] use=1 rate=1821 mark=0
udp 17 110 src=192.168.1.10 dst=173.194.115.9 sport=56148 dport=443 src=173.194.115.9 dst=69.66.102.168 sport=443 dport=56148 [ASSURED] use=1 rate=472 mark=0
tcp 6 73 TIME_WAIT src=192.168.1.3 dst=192.168.1.1 sport=39322 dport=80 src=192.168.1.1 dst=192.168.1.3 sport=80 dport=39322 [ASSURED] use=1 rate=468 mark=0
tcp 6 256 ESTABLISHED src=192.168.1.10 dst=52.19.51.179 sport=43811 dport=443 src=52.19.51.179 dst=69.66.102.168 sport=443 dport=43811 [ASSURED] use=1 rate=302 mark=0
udp 17 20 src=192.168.1.126 dst=192.168.1.1 sport=34213 dport=53 src=192.168.1.1 dst=192.168.1.126 sport=53 dport=34213 use=1 rate=51 mark=0
udp 17 8 src=192.168.1.126 dst=192.168.1.1 sport=49128 dport=53 src=192.168.1.1 dst=192.168.1.126 sport=53 dport=49128 use=1 rate=30 mark=0
tcp 6 275 ESTABLISHED src=192.168.1.10 dst=64.233.169.1
@tlongren
tlongren / config.json
Created July 20, 2015 01:58
sublime-text-3-user-config
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"caret_style": "phase",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"font_face": "Source Code Pro",
"font_options":
@tlongren
tlongren / soliloquy-reload-page-on-navigation-click.php
Last active August 29, 2015 14:19 — forked from n7studios/soliloquy-reload-page-on-navigation-click.php
Soliloquy - Reload Page on Navigation Click and Go to Slider Container
<?php
/**
* Plugin Name: Soliloquy - Reload Page on Navigation Click and Scroll to Slider Container
* Plugin URI: https://longren.io/soliloquy-reload-page-on-navigation-click-and-scroll-to-slider-container
* Version: 1.0
* Author: Tyler Longren
* Author URI: https://longren.io/
* Description: Reloads the entire Page when the next or previous arrows are clicked, or the pager navigation is used. The correct slide is injected into the URL and scrolls to the slider container.
*
* Based on the original plugin from Tim Carr (http://www.n7studios.co.uk). This simply takes the user to the slider after the page reload, good for sliders at the end of posts/pages.
@tlongren
tlongren / soliloquy-reload-page-on-navigation-click.php
Created April 26, 2015 01:59
Soliloquy - Reload Page on Navigation Click and Scroll to Slider Container
<?php
/**
* Plugin Name: Soliloquy - Reload Page on Navigation Click and Scroll to Slider Container
* Plugin URI: https://longren.io/soliloquy-reload-page-on-navigation-click-and-scroll-to-slider-container
* Version: 1.0
* Author: Tyler Longren
* Author URI: https://longren.io/
* Description: Reloads the entire Page when the next or previous arrows are clicked, or the pager navigation is used. The correct slide is injected into the URL and scrolls to the slider container.
*
* Based on the original plugin from Tim Carr (http://www.n7studios.co.uk). This simply takes the user to the slider after the page reload, good for sliders at the end of posts/pages.
@tlongren
tlongren / mysql-health.sh
Last active August 29, 2015 14:19 — forked from alexalouit/mysql-health.sh
Check And Repair All MySQL Databases on Debian And Ubuntu Linux
#!/bin/sh
#
# cron ex: 0 0 1 * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /home/tyler/mysql-health.sh >> /home/tyler/mysql-health.log
mysqlcheck --defaults-file=/etc/mysql/debian.cnf --auto-repair --optimize --all-databases
@tlongren
tlongren / find-wp-hacks.php
Last active April 19, 2016 20:56
Find base64 inside PHP files, may indicate a hack, usually involving WordPress
#!/bin/bash
# Script by Kris Chase ( kris@mehh.org )
# http://krischase.com
# Source: http://krischase.com/how-to-find-and-clean-up-infected-wordpress-files-over-ssh/
#
# Modified by Tyler Longren to include ( tyler@longren.io )
# https://longren.io
# Neither of us are responsible for any damage that may occur when running this script.
LIST=infectedfiles.txt