Skip to content

Instantly share code, notes, and snippets.

📉
Taking a break

Nirbheek Chauhan nirbheek

📉
Taking a break
Block or report user

Report or block nirbheek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nirbheek
nirbheek / GUADEC-2015-typo-BoF-notes.txt
Created Aug 19, 2015
Incomplete notes from the Typography + GTK+ session at GUADEC 2015
View GUADEC-2015-typo-BoF-notes.txt
Incomplete notes from the Typography + GTK+ session:
====================================================
New default fallback font: Noto
-------------------------------
* Noto as the default fallback instead of Deja Vu
* Mangle names to map to just "Noto" to avoid polluting the font namespace
* Noto as fallback for Cantarell
- fontconfig file to do so
* New fontconfig metaconfig for things like headings (document hierarchy)
@nirbheek
nirbheek / generate-fake-cantarell.sh
Last active Aug 29, 2015
Takes a given font and changes the font family/wws family names to "Cantarell"
View generate-fake-cantarell.sh
#!/usr/bin/env fontforge
# vim: set sts=4 sw=4 et :
#
# Takes a given font and changes the font family/wws family names to "Cantarell"
# Created for testing GNOME's move away from Cantarell as the UI font
fontname_prefix = "Cantarell"
if ($version < "20080330")
Error("Your version of FontForge is too old - 20080330 or newer is required");
View gist:1c70dc49f3a120035969
0:00:00.029777509 7928 0x17a8a30 INFO videoaggregator gstvideoaggregator.c:382:gst_videoaggregator_child_proxy_init: intializing child proxy interface
0:00:00.029970047 7928 0x17a8a30 DEBUG videoaggregator gstvideoaggregator.c:894:gst_videoaggregator_update_qos:<GstVideoAggregator@0x17b2fc0> Updating QoS: proportion 0.500000, diff 0:00:00.000000000, timestamp 99:99:99.999999999
0:00:00.032075088 7928 0x17a8a30 DEBUG playout playout.c:803:playout_app_prepare_item: /home/nirbheek/projects/centricular/seamless-mp4/out000.mp4: preparing
0:00:00.032100617 7928 0x17a8a30 DEBUG playout playout.c:1093:main: Setting pipeline to PLAYING
0:00:00.035549247 7928 0x17a8a30 DEBUG playout playout.c:1106:main: Running mainloop
0:00:00.055412496 7928 0x7fd2100060f0 DEBUG playout playout.c:503:playout_item_new_pad: /home/nirbheek/projects/centricular/seamless-mp4/out000.mp4: new pad: 0x17cea10, caps: video/x-raw
0:00:00.055
View mute-music-player.sh
#!/bin/bash
# vim: set sts=2 sw=2 et :
#
# Author: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
# License: BSD
#
# Mutes $MUSIC_APP_NAME when $APP_NAME starts playing something
APP_NAME="lt-stream-app"
MUSIC_APP_NAME="Rhythmbox"
View saddest-story-never-written.md

The shoes mocked me as they sit on the mantle-piece. They were pink. Girls like pink, don't they. Or so they're told, I guess. I would've called mine Gladys. She would've played with guns and cars, if I had any say in it. Unless she wanted dolls, but it's hard to tell if what they really want is what the girl next door has.

It seems my being lost in thought has not gone unnoticed, and a young woman with a glass of wine in one hand and a blue tote bag in the other walks towards me; her interest piqued by my steady stare at the shoes. “I was there when they bought those, you know”, she says to me with just a pinch of mourning colouring her voice.

@nirbheek
nirbheek / set_gnome-terminal_transparency.sh
Last active Sep 13, 2019
A tiny script to set the transparency for X windows. If AUTOMAGIC_MODE is "true", it tries to find all gnome-terminal windows and applies the transparency to all of them.
View set_gnome-terminal_transparency.sh
#!/bin/bash
# vim: set sts=4 sw=4 et tw=0 :
#
# License: BSD
AUTOMAGIC_MODE="true"
OPACITY_100="0xffffffff"
OPACITY_0="0x0"
: ${XWININFO:=$(type -P xwininfo)}
You can’t perform that action at this time.