Skip to content

Instantly share code, notes, and snippets.

David Gitman dgitman

Block or report user

Report or block dgitman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 01-yarn.config
content: |-
#!/usr/bin/env bash
set -xe
EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir)
EB_APP_STAGING_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_staging_dir)
EB_APP_USER=$(/opt/elasticbeanstalk/bin/get-config container -k app_user)
EB_SUPPORT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k support_dir)
dgitman /
Last active Apr 12, 2019 — forked from grenade/
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/id_rsa
dgitman / Dockerfile
Created Mar 22, 2019 — forked from georanma/Dockerfile
Docker Magento 1 w/ Xdebug
View Dockerfile
FROM php:7.2-fpm
RUN apt-get -qq update && apt-get -qq install libxml++2.6-dev > /dev/null
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
zlib1g-dev \
libicu-dev \
g++ \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
dgitman / local.xml
Last active Feb 20, 2018 — forked from jasontipton/local.xml
Magento Local.xml NOINDEX/NOFOLLOW Catalog Search
View local.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<!-- Search Results page -->
<reference name="head">
<action method="setRobots"><value>NOINDEX,NOFOLLOW</value></action>
View cueConnectOnboadingEngineerTest.html
<!-- Questions
1- Format/Structuer the Html code above
2- Make the "Hello Cue" title Blue and bold, with text size = 20px
3- Make span lined up with the Hello Cue title
4- Use JQuery to Change the Title to "Hello Dolly" and to Add a new class named "cue-link"
5- Add this HTML tag "<cue id='cue-stream'>My List</cue>" next to the <span> and make the span and the cue tag shows in a separate new line
6- Use Css to style the <cue> and make it with a pointer on hover-over
dgitman /
Created Jul 5, 2016 — forked from brandonb927/
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
# Alot of these configs have been taken from the various places
# on the web, most from here
# Set the colours you can use
dgitman / System
Created Apr 26, 2016 — forked from vasanthk/System
System Design Cheatsheet
View System

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
dgitman /
Created Mar 14, 2016 — forked from jrivero/
A Python CSV splitter
import os
def split(filehandler, delimiter=',', row_limit=10000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
Splits a CSV file into multiple pieces.
A quick bastardization of the Python CSV library.
# Whitelist Pingdom probe-servers in iptables.
# Create a chain called "PINGDOM" and jump to it somewhere before
# the final REJECT/DROP, e.g.
# # New chain for Pingdom rules
# :PINGDOM - [0:0]
View Magento Sales Query Test
You can’t perform that action at this time.