This file contains 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/osascript | |
set MENU_OF_ALLOW_MOUSE_REPORTING to 12 | |
set MENU_OF_VIEW to 5 | |
set SHORTCUT_KEY_OF_ALLOW_MOUSE_REPORTING to "r" | |
tell application "System Events" | |
tell process "Terminal" | |
-- for debugging | |
-- set n to name of menu item MENU_OF_ALLOW_MOUSE_REPORTING of menu 1 of menu bar item MENU_OF_VIEW of menu bar 1 |
This file contains 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 python3 | |
import re | |
import os | |
import sys | |
import time | |
pattern = re.compile(br'^#(\d+)$') | |
out = sys.stdout.buffer |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <strings.h> | |
#include <sys/time.h> | |
#define EMPTY 0 /* Record does not contain valid info (formerly known as UT_UNKNOWN on Linux) */ | |
#define RUN_LVL 1 /* Change in system run-level (see init(8)) */ | |
#define BOOT_TIME 2 /* Time of system boot (in ut_tv) */ | |
#define NEW_TIME 3 /* Time after system clock change (in ut_tv) */ |
This file contains 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
[Unit] | |
Description=OpenBSD Secure Shell server Altnative | |
After=network.target auditd.service sshd.service | |
[Service] | |
EnvironmentFile=-/etc/default/ssh | |
ExecStartPre=/bin/sh -c '[ ! -f "/usr/sbin/sshd2nd" -o "/usr/sbin/sshd" -nt "/usr/sbin/sshd2nd" ] && cp /usr/sbin/sshd /usr/sbin/sshd2nd ; /usr/sbin/sshd2nd -t' | |
ExecStart=/usr/sbin/sshd2nd -f /etc/ssh/sshd2nd_config -D $SSHD_OPTS | |
ExecReload=/usr/sbin/sshd2nd -t | |
ExecReload=/bin/kill -HUP $MAINPID |
This file contains 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
-- disable all settings | |
local passthrough = {} | |
-- default key mappings | |
local defaultKeyMapper = { | |
{{"ctrl"}, 'a', {'ctrl'}, 'left' }, | |
{{"ctrl"}, 'b', {}, 'left' }, | |
{{"ctrl"}, 'e', {'ctrl'}, 'right' }, | |
{{"ctrl"}, 'f', {}, 'right' }, |