Skip to content

Instantly share code, notes, and snippets.

View trueparallels's full-sized avatar
🦚

Kyle Peacock trueparallels

🦚
View GitHub Profile
@markerikson
markerikson / job-search-questions.md
Last active June 16, 2024 20:11
Assorted questions to ask companies in interviews

Questions

Company

  • company location / remote?
  • what project management method?
  • good and bad company culture?
  • performance reviews?
  • what's the path to profitability?
@sudo-bmitch
sudo-bmitch / console-log.md
Created February 2, 2018 14:08
Docker PS default formatting

Start with a normal docker ps output:

$ docker ps
CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS   PORTS               NAMES
4edf61bfedce        prom/node-exporter:latest        "/bin/node_exporter …"   18 hours ago        Up 18 hours   9100/tcp            prometheus_node-exporter.q44zx0s2lvu1fdduk800e5ini.e68ujezn8rsvsll8epgay2oxi
8ad16badf470        grafana/grafana:latest           "/run.sh"                18 hours ago        Up 18 hours   3000/tcp            prometheus_grafana.1.5qhwvzvlng8ny8utzdajhxsyo
822f8207aee0        prom/prometheus:latest           "/bin/prometheus --c…"   18 hours ago        Up 18 hours   9090/tcp            prometheus_prometheus.1.umq9zg7qpu8cyluwbo4awzhtx
8c3f044d503b        prom/alertmanager:latest         "/bin/alertmanager -…"   18 hours ago        Up 18 hours   9093/tcp            prometheus_alertmanager.1.vtqoaudacac1xlgh0xvvb7j2x
7d32bb10f579        google/cadvisor:latest           "/usr/bin/cadvisor -…"   18
@samtay
samtay / skel.plugin.zsh
Last active November 4, 2016 16:40
Easy BA skel commands
### Put this file in ~/.oh-my-zsh/custom/plugins/skel/skel.plugin.zsh
### and add to ~/.zshrc -> plugins = (skel)
# compdef ba-skel
function _ba-skel() {
_detect_skel || return 1
_files -W "$(_get_repo_root)/skel/bin"
}
@thejettdurham
thejettdurham / homestead-xdebug.md
Last active November 1, 2021 23:43
Debugging laravel/lumen + artisan from Homestead with PHPStorm over xdebug

This config works for me with the following setup, YMMV

  • OSX El Capitain
  • PHPStorm 2016.2.1
  • Lumen 5.2
  • Homestead as of Lumen 5.2
    • php 7.0.8-2
    • Xdebug 2.4.0

Homestead Configuration

@az-iar
az-iar / fix-order-grid.php
Created June 28, 2016 02:54
magento - fix missing order and invoice grid data
<?php
include_once 'abstract.php';
class FixOrderGrid extends Mage_Shell_Abstract
{
/**
* Run script
*
*/
@stariqmi
stariqmi / index.js
Created May 15, 2016 17:52
Shopify Coding Challenge
/*
Author: Salman Tariq Mirza
node/JavaScript solution to the Shopify Internship Coding Challenge
Assumptions:
- No duplicates, a flat list of the variants of all the products maintains uniqueness.
- For each computer there should be a keyboard.
- However if all computers/keyboards are purchased and there is still money left,
then spares need to be purchased of the remaining type.
@olegdulin
olegdulin / 00_helloWorld.py
Created April 16, 2016 11:23
Write a "Hello World" into an AWS CloudWatch Logs service
#!/usr/local/bin/python3
import boto3
import time
logs = boto3.client('logs')
LOG_GROUP='TUTORIAL-DEV2'
LOG_STREAM='stream1'
diff --git a/magento/app/code/core/Mage/Cms/Block/Block.php b/magento/app/code/core/Mage/Cms/Block/Block.php
index 75aab46..3693349 100644
--- a/magento/app/code/core/Mage/Cms/Block/Block.php
+++ b/magento/app/code/core/Mage/Cms/Block/Block.php
@@ -72,4 +72,19 @@ class Mage_Cms_Block_Block extends Mage_Core_Block_Abstract
}
return $html;
}
+
+ /**