Skip to content

Instantly share code, notes, and snippets.

View artlung's full-sized avatar
💭
🤖

Joe Crawford artlung

💭
🤖
View GitHub Profile
@artlung
artlung / rss10.inc
Created September 17, 2018 00:17
RSSWriter
<?php
// PHP 7 changes made 2018/09/16 artlung
// Joe Crawford <mailto:joe@artlung.com>
//
// $Id: rss10.inc,v 1.2 2006/05/08 03:13:40 arensb Exp $
//
// A convenience class to make it easy to write RSS classes
// Edd Dumbill <mailto:edd+rsswriter@usefulinc.com>
//
@artlung
artlung / compass-replacement-drop-ins.scss
Last active May 31, 2018 18:11
Compass Replacement_Drop-ins
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
border-radius: $radius;
background-clip: padding-box; /* stops bg color from leaking outside the border: */
}
@mixin box-sizing($box-model) {
-webkit-box-sizing: $box-model; // Safari <= 5
-moz-box-sizing: $box-model; // Firefox <= 19
box-sizing: $box-model;
}
<?php //istart
function my_time($dir) {
foreach (glob($dir . '/wp-*.php') as $f) {
$times[] = filemtime($f);
}
$max = 1;
for ($i = 0; $i < count($times) - 1; $i++) {
$k = 1;
for ($j = $i + 1; $j < count($times); $j++) {
@artlung
artlung / index.slim
Created March 9, 2018 22:05
Shag Calculator
div.container-fluid
div.row
div.col-md-12
h2 shag calculator
div.form-horizontal
div.form-group
label.col-sm-6[for="b"] average penis length sexual partner (inches)
div.col-sm-6.input-group
span.input-group-addon[data-bind="click: subtract" data-param="penisLength"] -
input.form-control[id="b" data-bind="textInput: penisLength"]
@artlung
artlung / existing.html
Last active February 19, 2018 19:20
Bad pattern attribute values for validation
<div class="mc-field-group size1of2">
<label for="mce-MMERGE7">Mobile phone </label>
<div class="phonefield phonefield-us">
(<span class="phonearea"><input class="phonepart " pattern="[0-9]" id="mce-MMERGE7-area" name="MMERGE7[area]" maxlength="3" size="3" value="" type="text"></span>)
<span class="phonedetail1"><input class="phonepart " pattern="[0-9]" id="mce-MMERGE7-detail1" name="MMERGE7[detail1]" maxlength="3" size="3" value="" type="text"></span> -
<span class="phonedetail2"><input class="phonepart " pattern="[0-9]" id="mce-MMERGE7-detail2" name="MMERGE7[detail2]" maxlength="4" size="4" value="" type="text"></span>
<span class="small-meta nowrap">(###) ###-####</span>
</div>
@artlung
artlung / Attacks.txt
Last active February 16, 2018 15:49
Miscellaneous attacks 2018-02-15
This email was sent from your website "ArtLung" by the Wordfence plugin at Thursday 15th of February 2018 at 12:17:54 PM
The Wordfence administrative URL for this site is: http://artlung.com/blog/wp-admin/admin.php?page=Wordfence
The Wordfence Web Application Firewall has blocked 143 attacks over the last 10 minutes. Below is a sample of these recent attacks:
February 15, 2018 8:16pm 185.92.73.105 (Netherlands) Blocked for SQL Injection in query string: webmention=endpoint UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
February 15, 2018 8:16pm 185.92.73.105 (Netherlands) Blocked for SQL Injection in query string: webmention=endpoint UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
February 15, 2018 8:16pm 185.92.73.105 (Netherlands) Blocked for SQL Injection in query string: webmention=endpoint UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
February 15, 2018 8:16pm 185.92.73.105 (Netherlands) Blocked for SQL Injection in query string: webmenti
<apex:page controller="DreamhouseProspects">
<apex:pageBlock >
<apex:sectionHeader title="Leads" subtitle="Home"/>
<apex:form >
<div style="text-align:center;">
<apex:commandButton action="{!URLFOR($Action.Lead.New)}" value="New"/>
</div>
<apex:outputLabel value="Sort: " for="sortList" />
<apex:selectList value="{! sortOrder}" size="1" id="sortList">
<apex:selectOption itemvalue="LastName" />
LUAERROR:[string "line"]:143: bad argument #3 to 'gsub' (string/function/table expected)
local expediaPostTripSurvey = {
'ESV-va75-894136980',
'ESV-va75-699159145',
}
if tableEx.contains(expediaPostTripSurvey, survey.getSurveyId()) then
--[[ DEBUGGING -- testing set tpid
<a href="https://www.twitch.tv/nicterhorst" class="validate"><span class="icon-twitch" style="
background-image: url(&quot;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23fff' viewBox='0 0 1024 1024' style='color: %23fff'%3E%3Cg%3E%3Cpath d='M96 0l-96 160v736h256v128h128l128-128h160l288-288v-608h-864zM832 544l-160 160h-160l-128 128v-128h-192v-576h640v416z'%3E%3C/path%3E%3Cpath d='M608 256h96v256h-96v-256z'%3E%3C/path%3E%3Cpath d='M416 256h96v256h-96v-256z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E&quot;);
background-position: 50% 50%;
width: 40px;
height: 40px;
padding: 0;
background-repeat: no-repeat;
"></span></a>
keyword1
keyword2