Skip to content

Instantly share code, notes, and snippets.

2020-06-13 15:00:59 mohan43u Hi everyone
2020-06-13 15:01:09 mohan43u welcome to ILUGC June month meet
2020-06-13 15:01:15 anbazhagan hi
2020-06-13 15:01:51 --> Malaw89 (5c0d9633@gateway/web/cgi-irc/kiwiirc.com/ip.92.13.150.51) has joined #ilugc
2020-06-13 15:01:53 --> kushal6 (~kushal6@2a01:4f9:c010:82aa::1) has joined #ilugc
2020-06-13 15:02:00 kiwi_92 Hi
2020-06-13 15:02:03 mohan43u our first talk is about emacs 'org-mode' by shrini
2020-06-13 15:02:04 shrini hello all
2020-06-13 15:02:16 mohan43u shrini: please carry on
2020-06-13 15:03:22 --> kiwi_80 (9d32e573@gateway/web/cgi-irc/kiwiirc.com/ip.157.50.229.115) has joined #ilugc
2020-05-09 15:00:32 mbuf Hello, and welcome to the monthly ILUG-C meet-up!
2020-05-09 15:01:19 shrini hello all
2020-05-09 15:01:22 mbuf We will give few more minutes for people to join, before we begin the sessions
2020-05-09 15:01:26 mbuf shrini, you are the first speaker?
2020-05-09 15:01:37 --> protocol255 (~protocol2@103.99.150.196) has joined #ilugc
2020-05-09 15:01:54 shrini mbuf: yes
2020-05-09 15:02:05 mbuf shrini, the floor is yours!
2020-05-09 15:02:48 shrini hello all,
2020-05-09 15:03:18 shrini Today we are going to discuss about a open source infrastructure monitoring tool called prometheus
2020-05-09 15:03:32 shrini we can use it to monitor anything
#define _GNU_SOURCE
#include <stdio.h>
#include <sched.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
2020-04-11 14:50:40 mbuf We shall begin in 10 minutes
2020-04-11 14:51:03 mohan43u ok
2020-04-11 14:55:36 --> ringmaster62 (~u0_a193@27.5.12.196) has joined #ilugc
2020-04-11 14:55:38 --> protocol255 (~protocol2@103.99.150.216) has joined #ilugc
2020-04-11 14:56:06 <-- protocol255 (~protocol2@103.99.150.216) has quit (Client Quit)
2020-04-11 14:57:15 --> protocol255 (~protocol2@103.99.150.216) has joined #ilugc
2020-04-11 15:00:02 * mbuf Welcome to ILUGC April 2020 monthly meeting
2020-04-11 15:00:18 mbuf Before we begin, I would like to state few conversation guidelines
2020-04-11 15:00:48 mbuf As you might already know, IRC stands for Internet Relay Chat, and for any meeting there is a protocol followed
2020-04-11 15:01:22 --> stylesen (~stylesen@unaffiliated/stylesen) has joined #ilugc
@mohan43u
mohan43u / arch_svngit_download
Created November 22, 2015 04:33
download files from archlinux svngit
curl 'https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/xorg-server' | sed 's:/svntogit:\nhttp\://projects.archlinux.com/svntogit:g' | grep plain | sed "s/'.*//g" | while IFS='?' read url suffix; do name=$(basename $url); url="$url?$suffix"; curl -o "${name}" "${url}" ; done
@mohan43u
mohan43u / testasync.vala
Created June 21, 2015 04:53
async function using vala
#!/usr/bin/env vala
class Test.Async : GLib.Object {
public async string say(string sentence) {
GLib.Idle.add(this.say.callback);
yield;
return sentence;
}
public static int main(string[] args) {
Test.Async myasync = new Test.Async();
@mohan43u
mohan43u / testgioasync.c
Created June 21, 2015 04:51
howto create async functions using gio async api
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define TEST_TYPE_GIO_ASYNC (test_gio_async_get_type())
#define TEST_GIO_ASYNC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), TEST_TYPE_GIO_ASYNC, TestGioAsync))
@mohan43u
mohan43u / timediff.py
Created June 21, 2015 04:51
snip to calculate timedifference
#!/usr/bin/env python
import time
import datetime
import sys
datetime0 = datetime.datetime.fromtimestamp(time.mktime(time.strptime(sys.argv[2], '%H:%M:%S')))
datetime1 = datetime.datetime.fromtimestamp(time.mktime(time.strptime(sys.argv[1], '%H:%M:%S')))
print(datetime0 - datetime1)
@mohan43u
mohan43u / mediacat.c
Created June 21, 2015 04:51
example for howto use gstreamer editing services
#include <string.h>
#include <glib-unix.h>
#include <gst/gst.h>
#include <ges/ges.h>
/* interval to query pipeline position (currently 600 seconds or 10 mins) */
#define QUERY_POSITION_INTERVAL 10 * 60 * 1000
typedef struct {
GESPipeline *pipeline;
@mohan43u
mohan43u / testbin.c
Created January 3, 2015 10:17
test gstreamer bin
#include <stdio.h>
#include <stdlib.h>
#include <glib-unix.h>
#include <gst/gst.h>
typedef struct {
GstElement *bin;
GstElement *in;
GstElement *decodebin;
GstElement *aout;