Skip to content

Instantly share code, notes, and snippets.

View troyp's full-sized avatar

Troy Pracy troyp

  • Lismore, NSW, Australia
View GitHub Profile
@troyp
troyp / pkkolos-urxvt-scripts-README.md
Created March 31, 2020 16:07
Copy of pkkolos/urxvt-scripts (which consists only of a README.md)

urxvt-scripts

A small collection of perl extensions for the rxvt-unicode terminal emulator.

Installation

@troyp
troyp / monad-reader-contents.md
Last active July 25, 2020 04:07
The Monad.Reader contents

The Monad.Reader Issue 1 (March 1, 2005)

  • Pseudocode: Natural Style by Andrew J. Bromage
  • Pugs Apocryphon 1 – Overview of the Pugs project by Autrijus Tang
  • An Introduction to Gtk2Hs, a Haskell GUI Library by Kenneth Hoste
  • Implementing Web-Services with the HAIFA Framework by Simon D. Foster
  • Code Probe – Issue one: Haskell XML-RPC, v.2004-06-17 by Sven Moritz Hallberg

The Monad.Reader Issue 2 (May 2005)

// ==UserScript==
// @name word highlight
// @namespace http://ss-o.net/
// @description keywords highlight for Google Search and All
// @include http://*
// @include https://*
// ==/UserScript==
// スクロール中のみハイライトするように変えた。
//console.time("highlight");
(function word_hightlight(loaded){
@troyp
troyp / redir.md
Created May 8, 2021 06:29 — forked from romainl/redir.md
Redirect the output of a Vim or external command into a scratch buffer

Redirect the output of a Vim or external command into a scratch buffer

Usage (any shell)

Show full output of command :hi in scratch window:

:Redir hi

Show full output of command :!ls -al in scratch window:

@troyp
troyp / global-input-unstable-v1.xml
Created July 20, 2021 01:35
global-input wayland protocol DRAFT PREVIEW
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="global_input_v1">
<copyright>
Copyright (C) 2017 Greg V (greg@unrelenting.technology)
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
@troyp
troyp / ImgurAlbum.sh
Created July 22, 2021 20:08 — forked from Skylark95/ImgurAlbum.sh
Bash script to download images for an Imgur album
#!/bin/bash
#
# ImgurAlbum.sh
#
# Bash script to download images for an Imgur album
#
if [ -z "$1" ]; then
echo "ImgurAlbum: missing Album ID"
echo "Usage: ImgurAlbum [Album ID]"
exit
CC=gcc
CFLAGS=-Wall -O2 `pkg-config --cflags x11`
LDFLAGS=`pkg-config --libs x11`
SOURCES=toggle-decorations.c
EXECUTABLE=$(patsubst %.c,%,$(SOURCES))
all: $(EXECUTABLE)
clean: $(EXECUTABLE)
@troyp
troyp / windowtweaks.c
Last active July 29, 2021 11:51 — forked from AquariusPower/windowtweaks.c
Add/remove decorations, input hint, window focus protocol
/*
* Copyright (C) 2017 Alberts Muktupāvels
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@troyp
troyp / toggle-decorations.c
Created July 29, 2021 11:49 — forked from muktupavels/toggle-decorations.c
Simple app to toggle window decorations.
/*
* Copyright (C) 2017 Alberts Muktupāvels
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@troyp
troyp / llpp.conf.xml
Created October 5, 2021 21:09 — forked from Earnestly/llpp.conf.xml
Basic vi-like emulation using llpp's new keymapping. Also some other defaults and examples for custom fonts.
<llppconfig>
<ui-font size='18'>
<![CDATA[/home/earnest/.local/share/fonts/Fontin-Regular.otf]]>
</ui-font>
<defaults zoom='100'
auto-scroll-step='12'
horizontal-scroll-step='24'
case-insensitive-search='true'
uri-launcher='$BROWSER &quot;%s&quot;'