This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* unity-xkbmod.c | |
* | |
* Copyright 2014 Sneetsher <sneetsher@localhost> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Generate slices | |
python svg_slice.py 2 1 askUbuntu.svg | |
ie: 2x1 grid | |
Then use Inkscape to export PDF for each slice/cell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* File: locate-pointer.c | |
* | |
* Some windows manager missing option to locate mouse pointer as accessibity feature. | |
* To get transparent window need to activate `composite` service for wm. | |
* Coded in c / xlib / cairo so it can work in most wm's. | |
* | |
* Coded by: Abdellah Chelli | |
* Date: January 2015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <assert.h> | |
#include <ft2build.h> | |
#include FT_FREETYPE_H | |
#include FT_GLYPH_H | |
#include FT_OUTLINE_H | |
#include <hb.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example code of using harfbuzz together with Core Text APIs. */ | |
#include <hb-coretext.h> | |
int main(int argc, char* argv[]) { | |
if (argc != 3) { | |
fprintf(stderr, "usage: %s <PostScript-Name> <text>\n", argv[0]); | |
return 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compile & Run: | |
dmcs -pkg:gtk-sharp-2.0 -pkg:appindicator-sharp-0.1 indicator_demo.cs | |
mono indicator_demo.exe | |
*/ | |
using Gtk; | |
using AppIndicator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ $UID -ne 0 ] | |
then | |
sudo $0 | |
fi | |
readonly BAT_LIMIT_PATH=/sys/devices/platform/sony-laptop/battery_care_limiter | |
readonly USB_CHARGE_PATH=/sys/devices/platform/sony-laptop/usb_charge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* \file pango_layout_word_wrap.c | |
* \brief pango layout word wrap | |
* | |
* \author Ben Pfaff http://benpfaff.org | |
* | |
* In working with Pango I found an oddity that I do not understand. | |
* It may be a bug, or it might just be my misunderstanding. | |
* | |
* As part of a table layout procedure for printing, my code wishes to find out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#define CRC16 0x8005 | |
uint16_t gen_crc16(const uint8_t *data, uint16_t size) | |
{ | |
uint16_t out = 0; | |
int bits_read = 0, bit_flag; | |
/* Sanity check: */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://askubuntu.com/questions/505446/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer | |
# http://askubuntu.com/questions/660023/how-to-install-ubuntu-14-04-64-bit-with-a-dual-boot-raid-1-partition-on-an-uefi%5D | |
sudo -s | |
apt-get -y install mdadm | |
apt-get -y install grub-efi-amd64 | |
sgdisk -z /dev/sda | |
sgdisk -z /dev/sdb | |
sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/sda | |
sgdisk -n 2:0:+8G -t 2:fd00 -c 2:"Linux RAID" /dev/sda |
OlderNewer