Skip to content

Instantly share code, notes, and snippets.

View farhaven's full-sized avatar
🦄
I'm a unicorn.

Gregor Best farhaven

🦄
I'm a unicorn.
View GitHub Profile
(20:43:18) gregor:~ $ grep theme .config/awesome/rc.lua
["theme"] = awful.util.getdir("config") .. "/themes/foo/foo.lua",
beautiful.init(config.global.theme)
---------------------------
-- foo theme for Awesome --
---------------------------
return {
-- font = "Terminus 8",
font = "Fixed 8",
bg_normal = "#333333",
bg_focus = "#1279bf",
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.2';
%IRSSI = (
authors => 'gbe/smile',
name => 'bitlbee_autojoin_groupchats',
description => 'autojoins groupchats in bitlbee',
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ENTROPY 1000
void usage(const char* name)
{ printf("Usage:\n");
printf("%s [xxxx] [-vh]\n", name);
printf("xxxx\tuse xxxx random numbers to calculate pi, default 1000\n");
package main
import "fmt"
import "rand"
import "math"
import "flag"
func main() {
var hit int64
var total int64
-- this is for the mwfact, it changes the master window's width (or height, depending on the layout)
awful.key({ config.global.modkey, "Mod1" }, "Down", function () awful.tag.incmwfact(0.01) end),
awful.key({ config.global.modkey, "Mod1" }, "Up", function () awful.tag.incmwfact(-0.01) end),
-- this is for the client wfact, it changes the width (or height) of client windows
awful.key({ config.global.modkey, "Mod1" }, "Left", function () awful.client.incwfact(0.05) end),
awful.key({ config.global.modkey, "Mod1" }, "Right", function () awful.client.incwfact(-0.05) end),
while true; do
awesome
sleep 1
done
/*
* A simple example of setting the XUrgencyHint on an xterm from a program
* running in it. Compile with:
*
* gcc -L/usr/X11R6/lib -lX11 urgent.c -o urgent
*
*/
#include <stdio.h>
#include <stdlib.h>
function split(str)
local values = { }
local idx_s = 0
local idx_e = 0
while idx_e ~= nil do
idx_s = idx_e + 1
idx_e = str:find("[ \n]", idx_s)
local sub = str:sub(idx_s, idx_e and idx_e - 1 or nil)
if sub ~= "" then
Content-Type: text/html
<!DOCTYPE HTML>
<html>
<head>
<title> users - login</title>
<link rel="stylesheet" href="/pub/style/style.css" type="text/css" media="screen, handheld" title="default">
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon">