Skip to content

Instantly share code, notes, and snippets.

View exileed's full-sized avatar
🎵
null

Dmitriy Kuts exileed

🎵
null
View GitHub Profile
@fesor
fesor / ARTICLE.md
Created August 19, 2017 08:45
Возвращаясь к основам: почему юнит тесты это сложно

https://simpleprogrammer.com/2010/12/12/back-to-basics-why-unit-testing-is-hard/

Back to Basics: Why Unit Testing is Hard

перевод адаптирован под 2017-ый, где у нас нет проблем с mock фреймворками, и нам не обязательно создавать интерфейс дабы сделать мок.

Возвращаясь к основам: почему юнит тесты это сложно

@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active July 15, 2024 05:12
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@clodo
clodo / poc.py
Last active January 6, 2019 17:54
Python: Strategy + Simple Factory
class InvalidEventTypeError(Exception):
def __init__(self, message):
self.message = message
class Event:
def __init__(self, type, auction_id):
self.type = type
self.auction_id = auction_id
@Yogendra0Sharma
Yogendra0Sharma / README.md
Created January 12, 2017 08:43 — forked from genomics-geek/README.md
Setting up a Dockerized web application with Django REST APIs, ReactJS with Redux pattern, and Webpack Hot Reloading! Mouthful.

Guide on how to create and set up a Dockerized web app using Django REST APIs and ReactJS

Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"

I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)

Main features:

  • Django REST APIs
  • ReactJS with Redux Pattern
  • Webpack module bundler manager
@ondrejnov
ondrejnov / EETAppAPI.php
Last active April 1, 2019 17:43
EETAPP.cz API example
<?php
define('API', 'https://DOMAIN.eetapp.cz/api');
define('USERNAME', '******');
define('PASSWORD', '******');
$client = new SimpleJsonRpcClient(API);
// Prihlaseni
$result = $client->{'system.login'}(['username' => USERNAME, 'password' => PASSWORD]);
$client->setAuthToken($result->token);
@kbariotis
kbariotis / main.yaml
Last active August 5, 2024 08:31
Ansible playbook for deploying a Node.js app to DigitalOcean
- name: DO
hosts: localhost
vars:
project_name: "PUT A NAME FOR YOUR PROJECT HERE"
do_token: "PUT YOUR DIGITAL OCEAN API KEY HERE ==> https://cloud.digitalocean.com/settings/api/tokens"
repository: "PUT YOUR REPOSITORY URL HERE"
tasks:
- name: LOCAL | Generate SSH key
shell: ssh-keygen -b 2048 -t rsa -f ~/.ssh/{{project_name}} -q -N ""
@grumd
grumd / gist16.md
Last active November 7, 2016 23:11

Browserify vs Webpack

Два инструмента для бандлинга модулей. Браузер не умеет работать c require, как nodejs, поэтому для создания клиентских скриптов с модулями нужны такие тулы, какие рекурсивно собирают все модули в один файл.

Основное отличие в философии. Browserify это минимум функционала в core и много плагинов, а Webpack это максимум функционала в core. С Webpack чуть сложнее в плане конфигураций, Browserify в основном был создан для работы с node и npm.

Если нам кроме бандлинга модулей нужно ещё пройти тесты, минифицировать, линтить, собирать цсс и т.п., то с Browserify нам, скорее всего, придётся использовать Gulp/Grunt, но Webpack может это всё сразу прямо из коробки.

@wavezhang
wavezhang / java_download.sh
Last active December 16, 2025 23:46
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz