Skip to content

Instantly share code, notes, and snippets.

@dm7
dm7 / pdxdevops-web-developers-demo.txt
Created December 28, 2017 11:32 — forked from addiscent/pdxdevops-web-developers-demo.txt
PdxDevOps presentation 2015-08-17 - Introduction To DevOps For Web Developers
=========================== Presentation Title ===========================
Introduction To DevOps For Web Developers - A description and demonstration
emphasizing Docker, incorporating simple PHP example code.
2015/08/17 Rex Addiscentis
raddiscentis@addiscent.com
====================
DEMO
@dm7
dm7 / devops_dev_best_practices.md
Created December 28, 2017 11:30 — forked from haani-niyaz/devops_dev_best_practices.md
DevOps Development Design Principles and Practices

Our Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
  • "Beautiful is better than ugly." - PEP 20
  • Automate ruthlessly.
  • "Now is better than never." - PEP 20
  • "Explicit is better than implicit" - PEP 20
  • "Readability counts." - PEP 20
  • Convention over Configuration
@dm7
dm7 / authentication.py
Created December 28, 2017 11:19 — forked from WayneSan/authentication.py
PyJWT + Django REST framework 2
import jwt
from django.conf import settings
from django.contrib.auth.models import User
from rest_framework import exceptions
from rest_framework.authentication import TokenAuthentication
class JSONWebTokenAuthentication(TokenAuthentication):
@dm7
dm7 / devops_training.txt
Created December 28, 2017 11:13 — forked from ssmythe/devops_training.txt
Training materials for DevOps
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
@dm7
dm7 / devops_course.sh
Created December 28, 2017 06:33 — forked from slok/devops_course.sh
devops course dependencies
#!/bin/bash
echo -e "\e[1;33mAdd multiverse repo\e[0m"
sudo add-apt-repository multiverse
sudo apt-get update
echo -e "\e[1;33mInstall common dependencies\e[0m"
sudo apt-get install python python-pip python-dev git ruby ruby-dev build-essential
echo -e "\e[1;33mInstall virtualbox\e[0m"
@dm7
dm7 / PYTHON_RESOURCES.md
Created December 28, 2017 06:33 — forked from m-x-k/PYTHON_RESOURCES.md
List of python resource websites

When it comes to python development it can be difficult to know which websites to focus on for the best up-to-date information. Below is a list of go-to websites for all the latest and greatest python information:

Finding resources/tips

Awesome Python

Python Guide

Python Module of the Week

@dm7
dm7 / devops-materials-online.txt
Created December 28, 2017 06:33 — forked from allanice001/devops-materials-online.txt
DevOps Materials Online
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
@dm7
dm7 / Jenkinsfile
Created December 28, 2017 06:33 — forked from zrks/Jenkinsfile
DevOps for powerpoint
pipeline {
agent {
label "master"
}
environment {
CONFIGURATION_FILENAME = "presentation.yml"
PRESENTATION_NAME = "devops-for-powerpoint.pptx"
}

@kangax's ES6 quiz, explained

@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).

Here we go with the explanations:

Question 1:
(function(x, f = () => x) {
@dm7
dm7 / mixpanel-cheatsheet.js
Created June 17, 2017 10:07 — forked from LeCoupa/mixpanel-cheatsheet.js
Mixpanel Library CheatSheet
// Mixpanel Cheatsheet
// This requires the mixpanel javascript library to be embedded on your site
// https://mixpanel.com/help/reference/javascript-full-api-reference
// 1. API Methods.
mixpanel.init('new token', { your: 'config' }, 'library_name'); // initialize a new instance of the Mixpanel tracking object
mixpanel.push(['register', { a: 'b' }]); // push() keeps the standard async-array-push behavior around after the lib is loaded. This is only useful for external integrations that do not wish to rely on our convenience methods (created in the snippet).