Skip to content

Instantly share code, notes, and snippets.

👻
...in the shell

Jared molotovbliss

View GitHub Profile
@molotovbliss
molotovbliss / backup.sh
Created Jan 19, 2019
Backup bash script/w MySQL & rotation.
View backup.sh
```
#!/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 Oct 2, 2018
a Readable Space Invader Shader from shadertoy.com/view/ldcXD2
View readable-format.shader
// 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 Aug 15, 2018
Caddyfile for Magento 2.2.x+ for Caddy web server
View Caddyfile
# 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 Aug 14, 2018
Oneliner HTML/JS/CSS + 3.JS Mr Doob!
View oneliner-mrdoob
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;
@molotovbliss
molotovbliss / debugging-tips-tricks-magento-1x.md
Created Aug 1, 2018
Debugging tips & tricks with Magento 1.x Commerce
View debugging-tips-tricks-magento-1x.md
@molotovbliss
molotovbliss / Mb-M2-resources.md
Created Mar 19, 2018
Magento2 Resources List; Needing a place to keep a list of all the tools/references used during Magento development.
View Mb-M2-resources.md
@molotovbliss
molotovbliss / mcrypt-deprecated-php71-magento2-local.md
Last active Mar 12, 2018
mcyrpt_module_open() is deprecated PHP7.1 Magento 2.0-(2.1.2)-2.2.x
View mcrypt-deprecated-php71-magento2-local.md

Magento 2.x and PHP7.1 issues with mcrypt

Message displayed:

Function mcyrpt_module_open() is deprecated


!NOTE! There is a reason PHP7.1+ has deprecated MCRYPT, above is okay for local/dev environments but terrible for production!

@molotovbliss
molotovbliss / jared-blalock-2018-simple.md
Last active Feb 3, 2018
Jared Blalock resume in minimal form
View jared-blalock-2018-simple.md

Jared Blalock

Certified Sr Magento Consultant / Developer


Summary

Being completely self taught and motivated by technology itself. It is the drive behind wanting to learn as much as I can about new technology and the possibilities and opportunities they can create.

@molotovbliss
molotovbliss / jared-blalock-2018-detail.md
Last active Feb 3, 2018
Jared C. Blalock Resume 2018
View jared-blalock-2018-detail.md

Jared C. Blalock

🎯 OBJECTIVE

Being completely self taught & motivated by technology itself. It is the drive behind a passion for wanting to learn as much as possible about new cutting edge technologies & the opportunities they can create that drives me further into technology.

👷 TECHNICAL SKILLS

| Magento 1.x | Magento 2.x | LAMP Stack |

You can’t perform that action at this time.