Skip to content

Instantly share code, notes, and snippets.

View nathiss's full-sized avatar

Kamil Rusin nathiss

View GitHub Profile
@nathiss
nathiss / server.py
Created May 12, 2017 09:39
Socket wrapper in python3.
#!/usr/bin/env python3
import socket
class Socket(socket.socket):
def __init__(self, *args):
super().__init__(*args)
def recvuntil(self, txt):
result = b""
while result.find(txt) == -1:
Co jest stoliną Niemiec?
Berlin
Bukareszt
Warszawa
Londyn
Który z kolorów nie jest we fladze Niemiec?
Różnowy
Czarny
Czerwony
Żółty
@nathiss
nathiss / copyright.py
Created October 8, 2016 17:41
Script for appending copyright info on beginning of the file(s).
@nathiss
nathiss / install.sh
Last active September 8, 2017 00:42
Installing AsseticBundle in Symfony3 (with leafo/scssphp & patchwork/jsqueeze)
# =============================================
# =============== ALERT ===============
# =============================================
# Do NOT run this script!
# It's like a document, it'll NOT work!
# 1. Install AsseticBundle via composer.
composer require symfony/assetic-bundle
# 2. Add AsseticBundle to AppKernel's bundles list: