This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version=DEVEL | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use network installation | |
url --url="http://mirror.onet.pl/pub/mirrors/centos/7/os/x86_64" | |
# Use graphical install | |
graphical | |
# Run the Setup Agent on first boot | |
firstboot --enable | |
ignoredisk --only-use=sda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pyserver: | |
restart: "always" | |
build: ./src | |
ports: | |
- 8042:8042 | |
links: | |
- dbserver:dbserver | |
env_file: .env | |
command: python /usr/src/app/server.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docker.service b/docker.service | |
index 3695d53..df0e3e9 100644 | |
--- a/docker.service | |
+++ b/docker.service | |
@@ -1,5 +1,5 @@ | |
[Service] | |
-ExecStart=/usr/bin/docker -d -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=azure | |
+ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=azure | |
MountFlags=slave | |
LimitNOFILE=1048576 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from contextlib import contextmanager | |
from functools import wraps | |
from inspect import signature | |
from itertools import chain | |
class TypoDynoMismatch(Exception): | |
pass | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
import os | |
from bs4 import BeautifulSoup | |
import requests | |
import time | |
import itertools | |
url = ("http://www.eventim.pl/Bilety-sonisphere-warszawa.html?affiliate=LNP&fun=evdetail" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import lxml | |
import lxml.html | |
from itertools import count | |
def clipboard_to_cells(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ===================================================================================================================== | |
-- MOCK INTERFEJSU DOSTĘPNEGO NA APPCE | |
-- Dzięki temu można "ot tak" wrzucić kod w interpreter i będzie działać | |
-- --------------------------------------------------------------------------------------------------------------------- | |
local android = {} | |
function android.send(self, x) | |
print("ANDROID:SEND:", x) | |
end | |
function android.sleep(self, t) | |
print("ANDROID:SLEEP:", t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- --------------------------------------------------------------------------------------------------------------------- | |
-- MOCK INTERFEJSU DOSTĘPNEGO NA APPCE | |
-- --------------------------------------------------------------------------------------------------------------------- | |
os = require "os" | |
local android = {} | |
function android.send(self, x) | |
print("ANDROID:SEND:", x) | |
end | |
function android.sleep(self, t) | |
print("ANDROID:SLEEP:", t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 20%] Building CXX object CMakeFiles/daemon.dir/src/sqlite.cpp.o | |
In file included from /home/konrad/lachesis/cpp/src/sqlite.cpp:1: | |
In file included from /home/konrad/lachesis/cpp/src/sqlite.hpp:7: | |
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/memory:81: | |
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/unique_ptr.h:137:9: error: static_assert failed "constructed with null function pointer deleter" | |
{ static_assert(!is_pointer<deleter_type>::value, | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/konrad/lachesis/cpp/src/sqlite.cpp:32:20: note: in instantiation of member function 'std::unique_ptr<sqlite3, int (*)(sqlite3 *)>::unique_ptr' requested here | |
LachesisSQLite3db::LachesisSQLite3db(const char *db_path) throw(sqlExecException) { | |
^ |