Skip to content

Instantly share code, notes, and snippets.

@lordii
lordii / uname.py
Created January 28, 2015 16:50
uname with randoms colors
#!/usr/bin/env python
from subprocess import Popen,PIPE
import random
colors = ("\033[31m", "\033[32m", "\033[33m", "\033[34m", "\033[35m",
"\033[36m" )
reset = "\033[0m"
if __name__ == '__main__':
@lordii
lordii / color.sh
Created January 19, 2015 15:08
Color in genmon (xfce plugin)
#pango markup
echo "<txt><span foreground=\"#667899\">Test</span></txt>"
@lordii
lordii / render
Created December 23, 2014 02:41
Render cell in glade for the tree view
<child>
<object class="GtkCellRendererText" id="cellrenderertext4"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
/*print a character bar for output to a status bar like dwm*/
/*usage charbar X, with x between 1 and 100*/
int main(int argc, char *argv[])
{
/*check the args*/
@lordii
lordii / lock.sh
Last active August 29, 2015 14:09 — forked from csivanich/lock.sh
#!/bin/bash
# i3lock blurred screen inspired by /u/patopop007 and the blog post
# http://plankenau.com/blog/post-10/gaussianlock
# Timings are on an Intel i7-2630QM @ 2.00GHz
# Dependencies:
# imagemagick
# i3lock