Skip to content

Instantly share code, notes, and snippets.

View GroverChouT's full-sized avatar
🐱
What's on your mind?

Grover Chou GroverChouT

🐱
What's on your mind?
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>ApplePressAndHoldEnabled</key>
<false/>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
// Rates
rate 196608
cl_cmdrate 128
cl_updaterate 128
// Video
fps_max 120
fps_max_menu 120
// Audio
---
- name: Docker Jitsi Meet Playbook
hosts: all
become: true
vars:
path_base: /srv/jitsi-meet
path_docker: "{{ path_base }}/docker"
path_config: "{{ path_base }}/config"
domain: meet.example.com
email: owner@example.com

V4L2 Loopback and DroidCam

On openSUSE Tumbleweed, you need to install droidcam and v4l2loopback-kmp-default (should be selected automatically). In addition, you may need to install v4l2loopback-utils to have some useful commands.

However, v4l2loopback-autoload may also be installed, which comes with a default module option to provide the Virtual Camera functionality of obs-studio. We need to uninstall this package and better add a lock on it.

sudo zypper rm v4l2loopback-autoload
sudo zypper al v4l2loopback-autoload

pfsense notes

enable freebsd repo

# /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD: {
  url: "pkg+https://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/latest",
 enabled: yes
import argparse
import uuid
import httpx
def get_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
description="Generate minecraft give command to get player head by username."
)

SSH via SOCKS5 proxy

ssh -o ProxyCommand='nc -X 5 -x 127.0.0.1:1080 %h %p' grover@domain.name

MariaDB Max Key Length Error

Specified key was too long; max key length is 767 bytes
SET GLOBAL innodb_file_format = BARRACUDA;
SET GLOBAL innodb_file_per_table = ON;
SET GLOBAL innodb_large_prefix = ON;
__linux__ Defined on Linux
__sun Defined on Solaris
__FreeBSD__ Defined on FreeBSD
__NetBSD__ Defined on NetBSD
__OpenBSD__ Defined on OpenBSD
__APPLE__ Defined on Mac OS X
__hpux Defined on HP-UX
__osf__ Defined on Tru64 UNIX (formerly DEC OSF1)
__sgi Defined on Irix
_AIX Defined on AIX
// ==UserScript==
// @name Superstar Flash Disabler
// @namespace superstar-flash-disabler
// @version 0.1
// @description Disable Falsh Player on Superstar online course system by not using danmaku
// @author Grover Chou
// @match https://*.chaoxing.com/mycourse/studentstudy*
// @grant none
// ==/UserScript==