Skip to content

Instantly share code, notes, and snippets.

View agesome's full-sized avatar

Yevhenii Hrabliuk agesome

View GitHub Profile
require "java"
require '/usr/share/java/gtk.jar'
import org.gnome.gdk.Event
import org.gnome.gtk.Button
import org.gnome.gtk.Gtk
import org.gnome.gtk.Label
import org.gnome.gtk.VBox
import org.gnome.gtk.Widget
import org.gnome.gtk.Window
#!/bin/sh
for i in `ls src/plugins/ | grep ".c$" | sed -s 's/.c//g'`
do
gcc -Isrc/ -O1 -g -ggdb -pipe -Wall -Wextra -rdynamic -fPIC src/plugins/$i.c -c
gcc -O1 -g -ggdb -pipe -Wall -Wextra -rdynamic -shared -o plugins/$i.so $i.o
rm $i.o
done
00:00.0 Host bridge [0600]: Intel Corporation 82P965/G965 Memory Controller Hub [8086:29a0] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 82P965/G965 PCI Express Root Port [8086:29a1] (rev 02)
00:1a.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 02)
00:1a.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 02)
00:1a.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 02)
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 02)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 [8086:283f] (rev 02)
00:1c.4 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 [8086:2847] (rev 02)
00:1c.5 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 [8086:2849] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation 8280
require "socket"
class Asgard
def initialize
@bm = BackendMaster.new
@bm.run_backend(IRCBackend.new('irc.cluenet.org', 6667, 'Asgard'))
@bm.gather_stacks
end
require "socket"
class Asgard
def initialize
@bm = BackendMaster.new
@bm.run_backend(IRCBackend.new('irc.cluenet.org', 6667, 'Asgard'))
@bm.gather_stacks
end
# Contributor: Moritz Heidkamp <moritz.heidkamp@bevuta.com>
pkgname=ruby-dbus
pkgver=0.2.10
pkgrel=1
pkgdesc="A Ruby implementation of D-Bus"
arch=('i686' 'x86_64')
url="https://trac.luon.net/ruby-dbus/"
license=('LGPL')
makedepends=(ruby)
source=(http://cloud.github.com/downloads/mvidner/ruby-dbus/$pkgname-$pkgver.tgz)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#define BUFSZ 4096
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#define BUFSZ 4096
urxvt.termName: rxvt-256color
urxvt.loginShell: false
urxvt.scrollBar: false
urxvt.internalBorder: 0
urxvt.borderWidth: 0
urxvt.secondaryScroll: true
urxvt.saveLines: 65535
urxvt.cursorBlink: false
!urxvt.font: xft:Terminus-10
urxvt.font: xft:Dejavu Sans Mono-10
evgeny@lamarr:~/code$ splint defineproc/defineproc.c
Splint 3.1.2 --- 16 Mar 2008
defineproc/defineproc.c: (in function hash)
defineproc/defineproc.c:35:15: Incompatible types for + (unsigned int, char):
hashval + *str
To make char and int types equivalent, use +charint.
defineproc/defineproc.c: (in function search)
defineproc/defineproc.c:45:18: Function returns with global root referencing
released storage