Skip to content

Instantly share code, notes, and snippets.

View rokka-n's full-sized avatar

Roman Naumenko rokka-n

  • Vanguard
  • Philadelphia
View GitHub Profile
@rokka-n
rokka-n / screenrc
Last active January 30, 2016 21:04
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
# don't display the copyright page
startup_message off
defscrollback 10000
# Default screens
screen -t local_stuff 0
@rokka-n
rokka-n / logclass.py
Created November 16, 2015 14:54
example of reading and writing to a log file
#!/usr/bin/env python
from strgen import StringGenerator as SG
class LogMessage:
def __init__(self, filename):
self.filename = filename
def read(self):