Skip to content

Instantly share code, notes, and snippets.

View alloyking's full-sized avatar
🎧
.

Tim Shultis alloyking

🎧
.
View GitHub Profile
@alloyking
alloyking / client.ino
Last active May 27, 2023 03:39
WIFI, https, post JSON, DHT11
#include <DHT.h>
#include <WiFiClientSecure.h>
#include <ArduinoJson.h>
// DHT22 sensor configuration
#define DHT_PIN 4
#define DHT_TYPE DHT11
DHT dht(DHT_PIN, DHT_TYPE);
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:fw="http://technolutions.com/framework" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xhtml">
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<template path="/shared/base.xslt" xmlns="http://technolutions.com/framework" />
<head>
<link target="_blank" href="/shared/build-fonts.css?v=20210505125140" rel="stylesheet" />
<link target="_blank" href="/shared/build-mobile-global.css" rel="stylesheet" />
<script src="/shared/build-mobile-global.js" />
<link target="_blank" href="/shared/build.css?v=202108110125292" rel="stylesheet" />
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class testCommand extends Command
{
/**
* The name and signature of the console command.
//include( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php');
//use MeiliSearch\Client;
// ^ in your class
public function buildIndex(){
$client = new Client('http://127.0.0.1:7700');
$args = array(
'posts_per_page' => -1,
@alloyking
alloyking / pagespeed_optimize_images.sh
Created November 17, 2020 04:30 — forked from julianxhokaxhiu/pagespeed_optimize_images.sh
Recursively optimize all PNG and JPG files wherever they are from the script position and inner ( based on OPTING, PNGCRUSH, ADVANCECOMP and JPEGOPTIM )
#!/bin/bash
# Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462
find . -type f -iname "*.png" -exec optipng -nb -nc {} \;
find . -type f -iname "*.png" -exec advpng -z4 {} \;
find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \;
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \;
recaptcha__en.js:164 Uncaught Error: Missing required parameters: sitekey
at $F.<anonymous> (recaptcha__en.js:164)
at new $F (recaptcha__en.js:501)
at rY.<anonymous> (recaptcha__en.js:143)
at new rY (recaptcha__en.js:499)
at recaptcha__en.js:277
at HTMLDivElement.<anonymous> (gravityforms.min.js?ver=2.4.21:1)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at renderRecaptcha (gravityforms.min.js?ver=2.4.21:1)
@alloyking
alloyking / FreightRatesAndService.php
Created November 27, 2018 16:02 — forked from antongorodezkiy/FreightRatesAndService.php
UPS Freight API dummy class
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class FreightRatesAndService {
protected $username = '';
protected $password = '';
protected $accessKey = '';
protected $sandbox = '';
protected $endpointUrl = '';
protected static $endpointUrls = array(
var someForm = new Vue({
el: '#someForm',
data: {
message: 'Hello Vue!'
}
})
var someOtherThing = new Vue({
el: '#someOtherThing',

Keybase proof

I hereby claim:

  • I am alloyking on github.
  • I am alloyking (https://keybase.io/alloyking) on keybase.
  • I have a public key ASD67Yzn_cPdDPxTwEoDjKd__tGjEIhcptJmRat7HGm6ngo

To claim this, I am signing this object:

#!/bin/bash
echo "This will create a new bare repo here."
while [ !1 ]; do
break
done
while [ 1 ]; do
echo -n "Enter the name of the repo: "