Skip to content

Instantly share code, notes, and snippets.

@mottyc
mottyc / kafka-service-script
Last active January 10, 2022 07:07
Kafka service script (copy to file: /etc/init.d/kafka)
#! /bin/sh
# /etc/init.d/kafka: start the kafka daemon.
# chkconfig: - 80 20
# description: kafka
KAFKA_HOME=/usr/share/kafka
KAFKA_USER=root
KAFKA_SCRIPT=$KAFKA_HOME/bin/kafka-server-start.sh
KAFKA_CONFIG=$KAFKA_HOME/config/server.properties
@mottyc
mottyc / zookeeper-service-script
Last active January 10, 2022 07:07
Zookeeper service script (copy to file: /etc/init.d/zookeeper)
#! /bin/sh
# /etc/init.d/zookeeper: start the zookeeper daemon.
# chkconfig: - 80 20
# description: zookeeper
ZK_HOME=/opt/kafka
ZK_USER=root
ZK_SCRIPT=$ZK_HOME/bin/zookeeper-server-start.sh
ZK_CONFIG=$ZK_HOME/config/zookeeper.properties
@alexchexes
alexchexes / chatgpt_ui_fix.user.js
Last active November 2, 2025 05:45
ChatGPT web-interface width fix (and other UI improvements)
// ==UserScript==
// @name ChatGPT CSS fixes
// @version 2025-09-07
// @description Adjusts the ChatGPT web UI for convenience: wider chat area, colored message bubbles, clearer code blocks, multi-line history items, and a few other tweaks for heavy ChatGPT use. ❤️ If you like this, consider buying me a coffee: ko-fi.com/alexchexes ❤️
// @updateURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js
// @downloadURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js
// @author alexchexes
// @website https://ko-fi.com/alexchexes
// @namespace http://tampermonkey.net/
// @match https://chat.openai.com/*
@tjumyk
tjumyk / Ubuntu_24.04_Install_Sogou_Pinyin.md
Last active October 25, 2025 11:10
Ubuntu 24.04 Install Sogou Pinyin
  • Remove ibus
sudo apt purge ibus
sudo apt autoremove
  • Install Sogou Pinyin and dependencies
# Download deb installer from https://shurufa.sogou.com/linux
sudo dpkg -i <sogou_xxx.deb>
sudo apt install -f