Skip to content

Instantly share code, notes, and snippets.

View christianrondeau's full-sized avatar

Christian Rondeau christianrondeau

View GitHub Profile
@christianrondeau
christianrondeau / termux-configure
Created August 1, 2017 00:58
A fish shell build file that works on Termux
#!/data/data/com.termux/files/usr/bin/bash
# Directly inspired (read: ripped off) from:
# * https://github.com/termux/termux-packages/blob/master/build-package.sh
# * https://github.com/termux/termux-packages/tree/master/packages/fish
# Install dependencies first:
# packages install ncurses ncurses-dev libandroid-support ncurses-utils man bc
AVOID_GNULIB=""
@christianrondeau
christianrondeau / AutoKeyboardLayout.ahk
Last active May 11, 2023 19:50
Automatic keyboard layout change on window focus using AutoHotkey
; How to use:
; 1. Install AuthotKey: https://www.autohotkey.com
; 2. Save this script in `My Documents`
; 3. Create a shortcut in the Startup folder (`Win`+`R`, `shell:startup`)
; 4. Change the configurations below
; 5. Start and test the script!
; Configuration
; Cultures can be fetched from here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd318693(v=vs.85).aspx
@christianrondeau
christianrondeau / WinTabHookExample.cs
Last active August 29, 2015 14:10
A failing example of hooking `Win` + `Tab`: Behaves as if the `Win` key was still down
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace WinTabHookExample
{
public static class Program
{
[StructLayout(LayoutKind.Sequential)]