Skip to content

Instantly share code, notes, and snippets.

View steve-todorov's full-sized avatar

Steve Todorov steve-todorov

  • Carlspring Ltd.
  • Bulgaria
  • 03:55 (UTC +02:00)
View GitHub Profile
@steve-todorov
steve-todorov / tmux-cheatsheet.markdown
Created February 19, 2018 01:39 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@steve-todorov
steve-todorov / kubeception.md
Created February 2, 2018 23:03 — forked from dghubble/kubeception.md
Running QEMU/KVM and Nested Kubernetes on Bare-Metal Kubernetes
@steve-todorov
steve-todorov / Jenkinsfile
Created January 8, 2018 07:57 — forked from bvis/Jenkinsfile
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"
@steve-todorov
steve-todorov / ngrxintro.md
Created December 16, 2017 00:29 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

Readme

This is a camelCase version of the Sensio\Bundle\FrameworkExtraBundle\Templating\TemplateGuesser. Feel free to use and enhance.

@steve-todorov
steve-todorov / 01_postfix_installer.md
Created December 2, 2017 07:13 — forked from solusipse/01_postfix_installer.md
Postfix + Dovecot + Postgresql + Postfixadmin + Roundcube

Postfix Installer

Following script may be used for configuring complete and secure email server on fresh install of Debian 7. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.

Usage

  1. Run postfix.sh script.
  2. Configure postgres to allow connections.
  3. Configure postfix admin. Remember to set these:
#!/bin/sh
set -e
usage() {
cat <<EOF
Usage: $0 [options]
Options:
@steve-todorov
steve-todorov / Dockerfile
Last active October 27, 2017 13:52
Failed to initialize CoreCLR, HRESULT: 0x80131500 on Linux Docker container (OpenSUSE 42.1)
FROM opensuse:42.1
ARG USER_ID=1000
ARG GROUP_ID=1000
ARG NUGET_V2_VERSION=2.8.6
ENV NUGET_V2_PATH=/usr/local/bin/nuget-${NUGET_V2_VERSION}.exe
ENV NUGET_V2_EXEC="mono ${NUGET_V2_PATH}"
ARG NUGET_V3_VERSION=3.4.4
@steve-todorov
steve-todorov / ImageType.php
Created February 26, 2017 18:59 — forked from dbu/ImageType.php
i needed a form type that determines based on the bound data if it should be required or not (to make file upload required if we create a new entity, but optional when editing the entity with the file. as this happens in a embedded sonata, i have no way of knowing the actual data when creating the form in the form builder. this is what i came up…
<?php
class ImageType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
if ($options['required_auto'] && ! $options['required']) {
$builder->addEventListener(\Symfony\Component\Form\FormEvents::PRE_SET_DATA, array($this, 'determineRequired'));
}
@steve-todorov
steve-todorov / app.js
Created September 16, 2016 16:09 — forked from Turbo87/app.js
webpack + font-awesome test
require('font-awesome/css/font-awesome.css');
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';