Skip to content

Instantly share code, notes, and snippets.

Avatar
☹️
Profile picture looked better when it was square.

Conway yawnoc

☹️
Profile picture looked better when it was square.
View GitHub Profile
@yawnoc
yawnoc / cns.md
Last active Aug 29, 2021
CNS stroke data
View cns.md
@yawnoc
yawnoc / attempts.md
Last active Jun 16, 2021
Attempts to hack me
View attempts.md

Attempts to hack me

Event IP Time
Sign in failure (wrong password) 113.172.156.149 Jun 10, 2021, 12:25 AM
Sign in failure (wrong password) 185.136.137.42 May 24, 2021, 9:08 AM
Sign in failure (wrong password) 103.194.242.254 May 20, 2021, 2:27 PM
Sign in failure (wrong password) 92.40.188.86 May 15, 2021, 8:47 AM
Sign in failure (wrong password) 92.40.188.86 May 15, 2021, 8:47 AM
Sign in failure (wrong password) 156.38.51.35 Apr 17, 2021, 11:53 PM
@yawnoc
yawnoc / licensee.md
Created May 8, 2021
Installing Licensee (Ruby Gem) on Debian
View licensee.md

Installing Licensee (Ruby Gem) on Debian

  1. Add ~/.gem/ruby/2.5.0/bin to path

  2. Install dependencies:

    $ sudo apt install ruby2.5-dev
    $ sudo apt install zlib1g-dev cmake pkg-config
@yawnoc
yawnoc / tumbling-polygon.wl
Created Jan 21, 2021
Animating a tumbling polygon
View tumbling-polygon.wl
(* ::Package:: *)
(* ::Title:: *)
(*Animating a tumbling polygon*)
(*
See <https://mathematica.stackexchange.com/a/237847>.
Licensed under MIT No Attribution (MIT-0),
see <https://spdx.org/licenses/MIT-0.html>.
@yawnoc
yawnoc / pinebook-pro-firefox-audio.md
Last active Jun 5, 2020
Pinebook Pro: Firefox no audio fix
View pinebook-pro-firefox-audio.md

Pinebook Pro: Firefox no audio fix

In Firefox pre-installed with the factory OS (mrfixit2001's Debian build), audio does not work in most videos. See [thread by 8jef][8jef].

Test cases:

@yawnoc
yawnoc / .gitconfig
Last active Aug 14, 2020
Git aliases for fewer keystrokes in workflow
View .gitconfig
[alias]
a = add
aa = add --all
ch = checkout
chb = checkout -b
c = commit
cm = commit -m
d = diff
dw = diff --word-diff
dd = diff --word-diff-regex=.
@yawnoc
yawnoc / .nanorc
Last active May 29, 2020
Termux: nano configuration for a Windows-to-Linux convert
View .nanorc
# $ nano --version
# GNU nano, version 4.9.1
# General settings
set autoindent
set morespace
set smooth
set smarthome
set tabsize 2
set tabstospaces
@yawnoc
yawnoc / termux.properties
Last active Apr 6, 2020
Termux: disable phone vibration and add more keys to touch keyboard
View termux.properties
bell-character = ignore
extra-keys = [[ \
'TAB', 'CTRL', 'ALT', '-', '/', \
'LEFT', 'DOWN', 'UP', 'RIGHT', \
'DEL', 'HOME', 'END' \
]]
@yawnoc
yawnoc / fonts.conf
Last active Jun 21, 2020
Linux: configure preferred Chinese fonts
View fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
~/.config/fontconfig/fonts.conf
The easiest way to set preferred Chinese fonts in Linux is through <prefer>.
There is no need to worry about lang (locale) matching etc.
For each family (serif, sans-serif, monospace) simply use <prefer>,
and include your corresponding default English font family first
(so that English does not get rendered in your preferred Chinese font)
and then put the preferred Chinese font second.