Skip to content

Instantly share code, notes, and snippets.

View zack6849's full-sized avatar

Zachary Craig zack6849

View GitHub Profile
<?php
namespace App\View\Components\Form\Inputs;
use Illuminate\View\Component;
class BaseInput extends Component
{
public $label;
@zack6849
zack6849 / output.txt
Created July 15, 2019 14:37
composer update output
vagrant@foo:~/code$ composer update
1/12: http://repo.packagist.org/p/provider-archived$354e0c0055dcbee7808779b081a9ad737e6a1592463d83902f17af24db5b47ee.json
2/12: http://repo.packagist.org/p/provider-2019-07$6ae9fbad8ccc3259dfeacb94fa4ec8daf2478261aa75efa52e7611ceb0ce9c35.json
3/12: http://repo.packagist.org/p/provider-latest$b9e051ad45c905eabff773c107deacba3fbc1a92550fe95b64978a802825ac55.json
4/12: http://repo.packagist.org/p/provider-2013$b1660752b71f4e8b6b9d3130551f6bcfb3c1e896bd75f81cf5ca5a06499fb157.json
5/12: http://repo.packagist.org/p/provider-2014$9676d99d4f99e42af4d37f344d938c8df860dd9c4baf8fa60e5e9fff03751d78.json
6/12: http://repo.packagist.org/p/provider-2018-10$f6a5545d571b7f1ff49d0eaedb9797690ace7462c33d693471f34a9a0db13aa3.json
7/12: http://repo.packagist.org/p/provider-2019-01$873765b04d92fda0f6e1d200a14f7674b26f1ac28994a4ae5ae50364760a1233.json
8/12: http://repo.packagist.org/p/provider-2015$bae2a9bf4e836f2b0ee
@zack6849
zack6849 / keybase.md
Created January 29, 2019 23:45
keybase.md

Keybase proof

I hereby claim:

  • I am zack6849 on github.
  • I am zack6849 (https://keybase.io/zack6849) on keybase.
  • I have a public key whose fingerprint is D6A3 9850 C491 C161 FE76 7C12 A779 1798 0C26 907D

To claim this, I am signing this object:

adminhtml_cache_flush_system
adminhtml_cache_refresh_type
clean_cache_by_tags
controller_action_postdispatch
controller_action_predispatch
core_layout_render_element
currency_display_options_forming
custom_quote_process
layout_generate_blocks_after
magento_cms_api_data_blockinterface_load_after
@zack6849
zack6849 / HeaderPagination.php
Last active July 2, 2018 08:29
Magento 2 Pagination in header
<?php
namespace Revival\Seo\Block;
use Magento\Framework\View\Element\Template;
/**
* To make this appear in the header for the catalog, you'd need to add this as a block in ${THEME_DIR}/Magento_Catalog/layout/catalog_category_view.xml
*
* EG:
@zack6849
zack6849 / ngrok_update.sh
Created January 6, 2017 19:46
Ngrok - Magento host changer
#!/bin/bash
# Requires curl and jq
# Change the scope IDs for your store in the QUERY variable
# Requires ngrok to be running
echo "Fetching host!"
NGROK_HOST=$(curl -s localhost:4040/api/tunnels | jq '.tunnels[0].public_url' | uniq | cut -d '"' -f 2)
MYSQL_HOST="localhost"

Keybase proof

I hereby claim:

  • I am zack6849 on github.
  • I am zack6849 (https://keybase.io/zack6849) on keybase.
  • I have a public key whose fingerprint is D35E EDBE C375 603C A0AC 5DAB 5030 DECE 04E3 3406

To claim this, I am signing this object:

package me.zack6849.testproject;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.java.JavaPlugin;
package multithread;
import java.io.PrintWriter;
import java.util.logging.Handler;
import java.util.logging.LogRecord;
public class LoggerHandler extends Handler{
public PrintWriter out;
public LoggerHandler(PrintWriter out){
package multithread;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.logging.Handler;
import java.util.logging.LogManager;
import org.bukkit.Bukkit;