Skip to content

Instantly share code, notes, and snippets.

View vkopitsa's full-sized avatar

Volodymyr Kopytsia vkopitsa

  • Ukraine
  • 14:29 (UTC +03:00)
View GitHub Profile
@vkopitsa
vkopitsa / http.go
Created January 31, 2017 16:38 — forked from divanvisagie/http.go
go
package main
import (
"fmt"
"net/http"
)
/* handles http requests for / */
@vkopitsa
vkopitsa / cm.yml
Created January 31, 2017 16:21 — forked from yurifrl/cm.yml
Kubernetes examples
apiVersion: v1
data:
proxy.conf: |
## Nginx Production Https Ember Server Configuration
## http redirects to https ##
server {
listen 443 ssl default deferred;
# @todo Check if the `server_name` is necessary
@vkopitsa
vkopitsa / docker-compose.yml
Created September 10, 2016 15:06 — forked from niklv/docker-compose.yml
docker redmine postgresql
services:
web:
image: 'redmine:passenger'
container_name: 'redmine_web'
restart: always
ports:
- '3000:3000'
links:
- postgres
environment:
@vkopitsa
vkopitsa / intercept-https-with-python-mitmproxy.md
Created December 23, 2015 22:06 — forked from dannvix/intercept-https-with-python-mitmproxy.md
Intercept and manipulate HTTPs traffic with Python and mitmproxy

Intercepts HTTPs Traffic with Python & mitmproxy

Introduction

Modern applications usually make use of back-end API servers to provide their services. With a non-transparent HTTPs proxy, which intercepts the communication between clients and servers (aka the man-in-the-middle scheme), you can easily manipulate both API requests and responses.

This manual helps you create your own proxy with Python and mitmproxy/libmproxy. Mitmproxy ships with both a standalone command-line tool (mitmproxy) and a Python library (libmproxy).

@vkopitsa
vkopitsa / README.md
Created October 21, 2015 19:09 — forked from denji/README.md
Remove WebStorm; PhpStorm; PyCharm; RubyMine; AppCode; CLion, IntelliJ; 0xDBE10 settings and cli-links from Mac OSX

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
#!/bin/bash
#
# Original for 5.3 by Ruben Barkow (rubo77) http://www.entikey.z11.de/
# release 1 PHP5.4 to 5.3 by Emil Terziev ( foxy ) Bulgaria
# Originally Posted by Bachstelze http://ubuntuforums.org/showthread.php?p=9080474#post9080474
# OK, here's how to do the Apt magic to get PHP packages from the precise repositories:
echo "Am I root? "
if [ "$(whoami &2>/dev/null)" != "root" ] && [ "$(id -un &2>/dev/null)" != "root" ] ; then