Skip to content

Instantly share code, notes, and snippets.

@vahit
vahit / config
Created June 23, 2014 17:11
i3config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@vahit
vahit / multiwin-app.py
Created July 11, 2014 14:52
sample multi window application
#!/usr/sbin/env python
from tkinter import *
from tkinter import ttk
win = Tk()
def create_frame1():
global show_frame2, frame1
frame1 = ttk.Frame(win)
lbl = ttk.Label(frame1, text='Frame1', font='Times 35')
@vahit
vahit / multiwin-app2.py
Last active August 29, 2015 14:03
Another simple multiwindow application
#!/usr/sbin/env python
from tkinter import *
from tkinter import ttk
import pdb
# pdb.set_trace()
win=Tk()
def create_frame1():
global show_frame2, frame1
#!/usr/sbin/env python
from tkinter import *
class Application(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)
self.grid()
self.create_widgets()
self.count_value = 0
def create_widgets(self):
@vahit
vahit / tk-class.py
Created February 8, 2015 15:46
tkinter simple OO code.
#!/usr/sbin/env python
import tkinter as tk
class Demo1:
def __init__(self, master):
self.master = master
def create_frame(self):
@vahit
vahit / tk-class2.py
Created February 9, 2015 14:46
tkinter simple OO code II
#!/usr/sbin/env python
import tkinter as tk
class Demo1:
def __init__(self, master):
self.master = master
def create_frame(self):
@vahit
vahit / animal farm
Created June 11, 2015 19:16
Animal Farm Audio Book
http://nastale.com/blog/DL/AnimalFiction.ogg
http://nastale.com/blog/DL/AnimalFictionS2.ogg
http://nastale.com/blog/DL/AnimalFictionS3.ogg
http://nastale.com/blog/DL/AnimalFictionS4.mp3
http://nastale.com/blog/DL/AnimalFictionS5.ogg
http://nastale.com/blog/DL/AnimalFictionS6.ogg
http://nastale.com/blog/DL/AnimalFiction-S7.ogg
http://nastale.com/blog/DL/AnimalFarm-S8.ogg
http://nastale.com/blog/DL/AnimalFarm-S9.ogg
http://nastale.com/blog/DL/AnimalFarm-S10.ogg
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
full_text=〉
align=center
color=#87ceeb
separator=false
separator_block_width=2
[Language]
command=/usr/libexec/i3blocks/language
interval=1
2017-08-08 08:48:15: INFO: Using python v2
2017-08-08 08:48:15: INFO: YAML output is ordered
2017-08-08 08:48:15: python.d INFO: reading configuration file: /usr/libexec/netdata/plugins.d/../../../../etc/netdata/python.d.conf
2017-08-08 08:48:15: python.d INFO: MODULES_DIR='/usr/libexec/netdata/python.d/', CONFIG_DIR='/usr/libexec/netdata/plugins.d/../../../../etc/netdata/', UPDATE_EVERY=1, ONLY_MODULES=['mysql']
2017-08-08 08:48:15: python.d DEBUG: mysql: loading module configuration: '/usr/libexec/netdata/plugins.d/../../../../etc/netdata/python.d/mysql.conf'
2017-08-08 08:48:15: python.d DEBUG: mysql: reading configuration
2017-08-08 08:48:15: python.d DEBUG: mysql/local: job added
2017-08-08 08:48:15: python.d DEBUG: all job objects [<Service(local, initial daemon)>]
2017-08-08 08:48:15: python.d INFO: CHECKED OK: mysql_local
2017-08-08 08:48:15: python.d INFO: RENAMED: mysql_db-2 , from mysql_local