This file contains hidden or 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 bash | |
# | |
# spark | |
# https://github.com/holman/spark | |
# | |
# Generates sparklines for a set of data. | |
# | |
# Here's a a good web-based sparkline generator that was a bit of inspiration | |
# for spark: | |
# |
This file contains hidden or 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 | |
# usage: cdebug.sh ./a.out | |
# (remember to add "-rdynamic" and "-g" option to gcc!) | |
# example: gcc -O0 -g -rdynamic foo.c && cdebug.sh ./a.out | |
if test "$#" -lt 1; then | |
echo "usage: cdebug.sh ./a.out" | |
echo "(remember to add '-rdynamic' and '-g' option to gcc!)" | |
echo "example: gcc -O0 -g -rdynamic foo.c && cdebug.sh ./a.out" | |
exit 1 |
This file contains hidden or 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
Pq"1;1;128;36 | |
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$- | |
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$- | |
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$- | |
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$- | |
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$- | |
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$- | |
\ |
This file contains hidden or 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
#define _XOPEN_SOURCE 600 | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <linux/fb.h> | |
#include <stimg.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains hidden or 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
/* please refer better example: https://github.com/dvdhrm/docs/tree/master/drm-howto/ */ | |
#define _XOPEN_SOURCE 600 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <xf86drm.h> |
This file contains hidden or 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
--- kiklib/src/kik_str.c.orig 2014-04-24 14:08:29.656026948 +0900 | |
+++ kiklib/src/kik_str.c 2014-04-24 14:07:43.530258598 +0900 | |
@@ -130,6 +130,11 @@ | |
return strcpy( dst , src) ; | |
} | |
+char *kik_str_alloca_dup(const char *src) | |
+{ | |
+ return __kik_str_copy(alloca(strlen(src) + 1), src); | |
+} |
This file contains hidden or 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> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <sys/ioctl.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <linux/fb.h> | |
enum { |
This file contains hidden or 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
--- protocols/twitter/twitter.c.orig 2013-04-12 20:33:58.236098274 +0900 | |
+++ protocols/twitter/twitter.c 2013-04-12 20:34:09.505347769 +0900 | |
@@ -615,7 +615,7 @@ | |
twitter_log(ic, "Could not undo last action"); | |
goto eof; | |
- } else if (g_strcasecmp(cmd[0], "favourite") == 0 && cmd[1]) { | |
+ } else if (g_strcasecmp(cmd[0], "fav") == 0 && cmd[1]) { | |
if ((id = twitter_message_id_from_command_arg(ic, cmd[1], NULL))) { | |
twitter_favourite_tweet(ic, id); |
This file contains hidden or 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 | |
# usage: ./mkarchiso.sh ISO_IMAGE | |
YAFT_32=~haru/yaft/yaft_32 | |
YAFT_64=~haru/yaft/yaft_64 | |
TERMINFO=~haru/yaft/info/yaft.src | |
KEYMAP=~haru/tmp/special/us-fix.map.gz | |
ISO=$1 |
This file contains hidden or 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
/* See LICENSE for licence details. */ | |
/* | |
Standard VGA colors | |
http://en.wikipedia.org/wiki/ANSI_escape_code | |
*/ | |
const struct color_t color_list[COLORS] = { | |
/* system color: 16 | |
{0x00, 0x00, 0x00}, {0xAA, 0x00, 0x00}, {0x00, 0xAA, 0x00}, {0xAA, 0x55, 0x00}, | |
{0x00, 0x00, 0xAA}, {0xAA, 0x00, 0xAA}, {0x00, 0xAA, 0xAA}, {0xAA, 0xAA, 0xAA}, | |
{0x55, 0x55, 0x55}, {0xFF, 0x55, 0x55}, {0x55, 0xFF, 0x55}, {0xFF, 0xFF, 0x55}, |