Skip to content

Instantly share code, notes, and snippets.

View kornicameister's full-sized avatar
🎭
axion4life

Tomasz Trębski kornicameister

🎭
axion4life
View GitHub Profile
@kornicameister
kornicameister / 100_recent.txt
Last active October 3, 2022 04:37
kornicameister :: paused
🤘 T AR AL
--- ----------------------------- ------------------ ------------------------------------------------------------------------
Undead Hollywood Undead Swan Songs
War Child Hollywood Undead Day of the Dead (Deluxe Version)
Undead Hollywood Undead Swan Songs (Collector’s Edition)
You Are We While She Sleeps You Are We (Special Edition)
Civil Isolation While She Sleeps You Are We - Special Edition
Hurricane While She Sleeps You Are We - Special Edition
Empire Of Silence While She Sleeps You Are We
Feel While She Sleeps You Are We
[testenv:yapf]
deps =
-r{toxinidir}/requirements/yapf.txt
commands =
{[testenv]commands}
yapf --diff --recursive {toxinidir}/ksc
[testenv:flake8]
deps =
-r{toxinidir}/requirements/flake8.txt
-r requirements/yapf.txt
-r requirements/mypy.txt
-r requirements/flake8.txt
tox==3.8.3
[tox]
envlist = yapf,flake8,mypy
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
passenv = *_proxy
*_PROXY
whitelist_externals = bash
find
@kornicameister
kornicameister / install.sh
Last active October 2, 2017 06:07 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
echo "Installing docker & docker-compose in fast way"
sudo true
echo "Installing required dependencies"
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual -y -qq
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y -qq
# Install docker"
echo "Installing docker"
@kornicameister
kornicameister / tables
Created March 31, 2016 04:27
SubAlarm table definition
// mysql
CREATE TABLE `sub_alarm` (
`id` varchar(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`alarm_id` varchar(36) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`sub_expression_id` varchar(36) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`expression` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`sporadic` tinyint(1) NOT NULL DEFAULT '0',
@kornicameister
kornicameister / perf.py
Created March 9, 2016 11:45
Pick/Merge dimensions in monasca_log_api
import random
import string
import time
MSG_LEN = 1000
LOG_COUNT = 100000
def timer(fun, *args):
start = time.time()
@kornicameister
kornicameister / service_on_off.py
Created March 1, 2016 11:52
Remotely turn on/off services [python, spur]
import random
import time
import spur
import multiprocessing
IT=0
HOST_LIST = {
"192.168.10.4": True,
"192.168.10.6": True,
@kornicameister
kornicameister / gist:5417303
Last active December 16, 2015 09:59
movePoint
private void movePoint(final Point toBeMoved) {
Point nearestPoint = Solution.getNearest(this.points, toBeMoved);
switch (this.mode) {
case ORDINARY:
Solution.moveToPoint(nearestPoint, toBeMoved);
break;
case ORDINARY_RECT_NEIGH_0_15: {
Solution.moveToPoint(nearestPoint, toBeMoved);
final ValueDistance distance = new ValueDistance(0.15);
List<Point> inAreaPoints = Solution.getMultiNearest(this.points, toBeMoved, distance);
@kornicameister
kornicameister / fun.xsd
Last active December 11, 2015 18:38
Text only (restricion included) with attributes
<!--
#################################################################
-->
<xs:annotation>
<xs:documentation>
This is the way to declare an element that may
contain text based child only along with attached
numerous of attributes.
Tke key is to define simpleType that defines
how the content of our element may look like