Skip to content

Instantly share code, notes, and snippets.

View molotovbliss's full-sized avatar
⚗️
Code, Eat, Sleep++;

Jared molotovbliss

⚗️
Code, Eat, Sleep++;
  • DFW, Texas
View GitHub Profile
@molotovbliss
molotovbliss / jblalock-resume-2020.md
Last active May 6, 2020 23:07
Jared Blalock Resume 2020

Jared Blalock

Creative Solutions Architect - Aubrey, Texas

👷 OVERVIEW

The pursuit of technology itself. Uniquely positioned architect with 20+ years experience with a full spectrum of (IT) Information Technologies; encompassing cutting-edge technology with established best practices & paradigms.

🕑 EXPERIENCE

@molotovbliss
molotovbliss / Magento2addCMSblock.php
Last active July 17, 2019 17:12
Magento 2, add CMS block programmatically
<?php
namespace Rbj\CmsBlockCreate\Model;
use Magento\Cms\Model\BlockFactory;
use Magento\Cms\Api\BlockRepositoryInterface;
use Magento\Framework\Api\SearchCriteriaBuilder;
class AddBlock
{
protected $searchCriteriaBuilder;
@molotovbliss
molotovbliss / m1-eav-installer-script.php
Last active June 20, 2019 20:44
EAV custom entities example Magenot 1 installer script.
<?php
// EAV custom entities example Magenot 1 installer script.
/* @var $installer Mage_Eav_Model_Entity_Setup */
$installer = Mage::getModel('eav/entity_setup', 'default_setup');
$installer->startSetup();
// Example createEntityTables() call
$installer->createEntityTables('example_supplier');
@molotovbliss
molotovbliss / treesize.sh
Created June 15, 2019 02:07
Basic treesize bash script with du & better defaults
#/bin/sh
#set -x #echo on
if [ "$1" == "-h" ]; then
echo "usage: treesize [depth (0)] [sizelimit (1MB)]"
echo ""
echo "example: treesize 3 20G"
echo ""
echo "Show all folders larger than 20GBs & only scan 3 directories in deep"
echo "defaults are 0 depth, 1MB limit equiv to treesize 0 1MB"
@molotovbliss
molotovbliss / jnewfiles
Created April 27, 2019 00:11 — forked from renekreijveld/jnewfiles
Bash script to detect new and changed php and html files last 3 hours. Skips cache directories.
#!/bin/sh
# jnewfiles
# Detects new and changed php and html files last xxx minutes
# (C) 2014 Rene Kreijveld, enail [at] renekreijveld [dot] nl
# Update 31-12-2013: only send email when changes are found
# Update 04-02-2014: check for new files last three hours
# Update 05-05-2014: check for new html files also
# Update 07-05-2014: filter out ju_chached and DirectAdmin stats folders in html files
@molotovbliss
molotovbliss / jnewfiles
Created April 27, 2019 00:11 — forked from renekreijveld/jnewfiles
Bash script to detect new and changed php and html files last 3 hours. Skips cache directories.
#!/bin/sh
# jnewfiles
# Detects new and changed php and html files last xxx minutes
# (C) 2014 Rene Kreijveld, enail [at] renekreijveld [dot] nl
# Update 31-12-2013: only send email when changes are found
# Update 04-02-2014: check for new files last three hours
# Update 05-05-2014: check for new html files also
# Update 07-05-2014: filter out ju_chached and DirectAdmin stats folders in html files
@molotovbliss
molotovbliss / backup.sh
Created January 19, 2019 05:19
Backup bash script/w MySQL & rotation.
```
#!/bin/sh
# https://github.com/dlabey/Simple-Linux-Bash-Rotating-Backup-Script
# Local Source
SOURCE=/full/path
# Local Destination
DESTINATION=/full/path
# Database Backup User
@molotovbliss
molotovbliss / readable-format.shader
Created October 2, 2018 20:06
a Readable Space Invader Shader from shadertoy.com/view/ldcXD2
// Formatted for human reading: Space invader shader
// sauce: https://www.shadertoy.com/view/ldcXD2
void mainImage(out vec4 o, vec2 d) {
float t = iTime;
o += 1. - o + fract(
.3 * t);
d *= .03;
for (int i = 0, y; i
++ < 5;) o *= 1. > mod(((y = int(mod(
@molotovbliss
molotovbliss / Caddyfile
Created August 15, 2018 22:30
Caddyfile for Magento 2.2.x+ for Caddy web server
# source: https://caddy.community/t/using-caddy-on-a-fresh-magento-2-2-3-ce-install/3708/8
https://example.com {
root /var/www/magento2/pub
gzip {
ext .txt .css .less .js .jsonp .json .xml .rss .svg .svgz .html
level 6
min_length 1100
}
tls webmaster@example.com
log stdout
@molotovbliss
molotovbliss / oneliner-mrdoob
Created August 14, 2018 19:08
Oneliner HTML/JS/CSS + 3.JS Mr Doob!
data:text/html,<body oninput="i.srcdoc=h.value+'<style>'+c.value+'</style><script>'+j.value+'</script>'"><style>textarea,iframe{width:100%;height:50%;margin:0;}body{margin:0}textarea{width:33.33%;font-size:18}</style><textarea placeholder=HTML id=h><script src=https://cdn.rawgit.com/mrdoob/three.js/master/build/three.min.js></script><body></textarea><textarea placeholder=CSS id=c></textarea><textarea placeholder=JS id=j>var camera,scene,renderer;var geometry,material,mesh;init();animate();function init(){camera=new THREE.PerspectiveCamera(70,window.innerWidth/window.innerHeight,0.01,10);camera.position.z=1;scene=new THREE.Scene();geometry=new THREE.BoxGeometry(0.2,0.2,0.2);material=new THREE.MeshNormalMaterial();mesh=new THREE.Mesh(geometry,material);scene.add(mesh);renderer=new THREE.WebGLRenderer({antialias:true});renderer.setSize(window.innerWidth,window.innerHeight);document.body.appendChild(renderer.domElement)}function animate(){requestAnimationFrame(animate);mesh.rotation.x+=0.01;mesh.rotation.y+=0.02;