Skip to content

Instantly share code, notes, and snippets.

@Bounz
Bounz / cmd_to_ENRU_birman.json
Last active November 29, 2022 16:01
Change keyboard layout on cmd/alt press (Birman)
{
"title": "Change keyboard layout on cmd/alt press (Birman)",
"rules": [
{
"description": "Change input source to En Birman by left_command; Ru Birman by right_command (internal Apple keyboard).",
"manipulators": [
{
"type": "basic",
"conditions": [
{
@Bounz
Bounz / cmd to birman.json
Last active March 15, 2021 14:41 — forked from piskov/cmd to birman.json
Command to birman layout switcher
{
"title": "Change keyboard layout on cmd press",
"rules": [
{
"description": "Change input source to En by left_command; Ru by right_command.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command",
@Bounz
Bounz / Program.cs
Last active January 20, 2018 08:08
Mono 5.4.1.7 crashes on MacOS
using System;
using System.Net;
using System.Net.Sockets;
namespace Test.UPnP
{
class MainClass
{
public static void Main(string[] args)
{
#!/bin/sh
#
# Usage: startup_debug.sh <homegenie_folder_path>
# Example: ./startup_debug.sh /usr/local/bin/homegenie
#
cd "`dirname \"$0\"`"
if [ -f /usr/bin/mono ]
then
MONO="/usr/bin/mono"
else
using System;
using System.Net;
using System.IO;
using System.Xml.Linq;
using ICSharpCode.SharpZipLib;
using ICSharpCode.SharpZipLib.Zip;
using ICSharpCode.SharpZipLib.Core;
using System.Linq;
namespace P1Db
@Bounz
Bounz / NewAuthorize
Last active August 29, 2015 14:24 — forked from arthernan/NewAuthorize
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Principal;
using System.Threading;
using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;