Skip to content

Instantly share code, notes, and snippets.

View Elv13's full-sized avatar

Emmanuel Lepage Vallée Elv13

  • Google
  • San Francisco
View GitHub Profile
local lgi = require 'lgi'
local Gio = lgi.require 'Gio'
local core = require 'lgi.core'
local GLib = lgi.require 'GLib'
local type,unpack = type,unpack
local bus = Gio.bus_get_sync(Gio.BusType.SYSTEM)
local ret,err = bus:call(
"org.freedesktop.UPower",
"/org/freedesktop/UPower",
local lgi = require 'lgi'
local Gio = lgi.require 'Gio'
local core = require 'lgi.core'
local GLib = lgi.require 'GLib'
local type,unpack = type,unpack
local bus = Gio.bus_get_sync(Gio.BusType.SESSION)
local ret,err = bus:call(
"org.mpris.MediaPlayer2.rhythmbox",
--"org.gnome.Rhythmbox3",
@Elv13
Elv13 / gist:fdd6393f23afb21aa739
Created November 4, 2014 22:15
Ring 2.0 preference schema
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile name="ringconfigrc"/>
<!--TODO VoipPreferences is a very bad name-->
<group name="VoipPreferences">
@Elv13
Elv13 / gist:9bf208a6a9caf82221b4
Created November 6, 2014 22:21
Ring 2.0 Account schema
<!--TODO
* Document security
* Add DHT feilds
* Add profile ID
* Use expat to generate the C++/C/Python structure definition
* Generate translatable label and tooltip list for GTK
* Port libringclient to use this
-->
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
000:<: am lsb-first want 11:0 authorising with 'MIT-MAGIC-COOKIE-1' of length 16
000:>: Success, version is 11:0 vendor='The X.Org Foundation' release=11603000 resource-id=0x00400000 resource-mask=0x001fffff motion-buffer-size=256 max-request-len=65535 image-byte-order=LSBFirst(0x00) bitmap-bit-order=LeastSignificant(0x00) scanline-unit=32 scanline-pad=32 min-keycode=0x08 max-keycode=0x00 pixmap-formats={depth=1 bits/pixel=1 scanline-pad=32},{depth=4 bits/pixel=8 scanline-pad=32},{depth=8 bits/pixel=8 scanline-pad=32},{depth=15 bits/pixel=16 scanline-pad=32},{depth=16 bits/pixel=16 scanline-pad=32},{depth=24 bits/pixel=32 scanline-pad=32},{depth=32 bits/pixel=32 scanline-pad=32}; roots={root=0x0000098b default-colormap=0x00000020 white-pixel=0x00ffffff black-pixel=0x00000000 input-mask=0 width[pixel]=5939 height[pixel]=1680 width[mm]=1620 height[mm]=454 min-installed-maps=1 max-installed-maps=1 root=0x00000021 backing-stores=WhenMapped(0x01) save-unders=false(0x00) root-depth=24 allowed depths={depth=24 visua
W: awesome: a_glib_poll:239: Last main loop iteration took 1.061741 seconds! Increasing limit for this warning to that value.
Serializing data
cr
unable to connect to the rxvt-unicode daemon: Connection refused
screen_getbycoord 2388 1147 4
MOVE 0 600
screen_getbycoord 0 600 0
screen_getbycoord 0 1656 0
screen_getbycoord 6810 0 1
require("awful.autofocus")
local beautiful = require("beautiful")
local naughty = require("naughty")
/****************************************************************************
* Copyright (C) 2015 by Savoir-Faire Linux *
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
# cmake modules setup
find_package(ECM 1.4.0 QUIET NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake/)
set(CMAKE_PREFIX_PATH "${Qt5_DIR}/lib/cmake/Qt5")
# KDE po to qm tools
if(ECM_FOUND)
include(ECMPoQmTools)
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
ecm_install_po_files_as_qm(po)
html,body {
width:320px;
display:block;
margin:0!important;
padding:0!important;
}
div.box #brdtitle {
background-image:url('http://www.quebecgeeks.net/forums/img/header.png') !important;
height:65px;