Skip to content

Instantly share code, notes, and snippets.

View MadMikeyB's full-sized avatar
🎯
mikeylicio.us

Michael Burton MadMikeyB

🎯
mikeylicio.us
View GitHub Profile
@MadMikeyB
MadMikeyB / index.html
Last active June 30, 2023 09:39
4chan /wg/ just the wallpapers
<!doctype html>
<html>
<head>
<title>4chan /wg/ just the wallpapers</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.4/css/bulma.min.css" integrity="sha512-HqxHUkJM0SYcbvxUw5P60SzdOTy/QVwA1JJrvaXJv4q7lmbDZCmZaqz01UPOaQveoxfYRv1tHozWGPMcuTBuvQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body class="has-navbar-fixed-top">
<nav class="navbar is-fixed-top">
<div class="navbar-brand">
@MadMikeyB
MadMikeyB / install-image-optimizers.sh
Last active June 30, 2021 09:11
Install Image Optimiser Scripts
curl -s https://gist.githubusercontent.com/MadMikeyB/84d84136552710522f4851a0c92efc8e/raw/dd61c5b433d2a5952edae97a01b02d4b68a30939/install-image-optimizers.sh > install-image-optimizers.sh && bash install-image-optimizers.sh
@MadMikeyB
MadMikeyB / csv-to-array.php
Created March 2, 2020 11:00
Create an array from a CSV with headers as array keys.
<?php
if ( (isset($_POST['submit'])) && (!empty($_POST['submit'])) && (! empty($_FILES['csv_upload']['name'])) ):
/**
* Map CSV items to rows.
* @see php.net/array_map
* @see php.net/file
*/
$rows = array_map('str_getcsv', file($_FILES['csv_upload']['tmp_name']));
@MadMikeyB
MadMikeyB / select.html
Created January 20, 2020 09:46
List of ISO 3166 country codes in <select> element
<select id="country" name="country" class="form__select">
<option value="ABW">Aruba</option>
<option value="AFG">Afghanistan</option>
<option value="AGO">Angola</option>
<option value="AIA">Anguilla</option>
<option value="ALA">Åland Islands</option>
<option value="ALB">Albania</option>
<option value="AND">Andorra</option>
<option value="ARE">United Arab Emirates</option>
<option value="ARG">Argentina</option>
@MadMikeyB
MadMikeyB / INSTALL-SHOPWARE-SIX.md
Last active June 20, 2024 13:11
Shopware 6 - Laravel Valet Driver

Install Shopware 6 (For Development)

cd ~/sites
valet park
# clone shopware
git clone -b 6.1 https://github.com/shopware/development.git shopware
# change directory
cd shopware
# install dependencies
@MadMikeyB
MadMikeyB / _form.scss
Created February 22, 2019 12:18
Select Box - Custom Font Awesome Arrow
.form__select {
-webkit-appearance: none; /*autoprefixer*/
appearance: none;
background-image: url("scss/vendor/fontawesome/svgs/light/chevron-down.svg");
background-position-x: 98%;
background-position-y: center;
background-repeat: no-repeat;
background-size: 3rem;
}
@MadMikeyB
MadMikeyB / MakeModelCommand
Last active April 14, 2016 20:21
thinking out loud
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\Console\ModelMakeCommand as ModelMakeCommand;
class MakeModelCommand extends ModelMakeCommand
{
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use File;
class MakeViewCommand extends Command
{
/**
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="script.js"></script>
</head>
<body>

Keybase proof

I hereby claim:

  • I am madmikeyb on github.
  • I am madmikeyb (https://keybase.io/madmikeyb) on keybase.
  • I have a public key whose fingerprint is B15C B231 602A D576 22B4 7C01 9C49 CABE 80D0 40F1

To claim this, I am signing this object: