Skip to content

Instantly share code, notes, and snippets.

@hyslion
hyslion / m4.rb
Created March 10, 2020 08:30
m4.rb of linuxbrew
class M4 < Formula
desc "Macro processing language"
homepage "https://www.gnu.org/software/m4"
url "https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz"
mirror "https://ftpmirror.gnu.org/m4/m4-1.4.18.tar.xz"
sha256 "f2c1e86ca0a404ff281631bdc8377638992744b175afb806e25871a24a934e07"
bottle do
cellar :any_skip_relocation
sha256 "7a8429bfaf8bac7bd0e31d77ba1344b8ec54edb2c462444febfcc5811d44424c" => :catalina
@hyslion
hyslion / # m4 - 2020-03-10_04-00-23.txt
Created March 10, 2020 06:03
m4 on Raspbian GNU/Linux 10 (buster) - Homebrew build logs
Homebrew build logs for m4 on Raspbian GNU/Linux 10 (buster)
Build date: 2020-03-10 04:00:23
@hyslion
hyslion / gnome-gtk-im-helper.py
Last active August 29, 2015 14:19
解決 GNOME 3.16+ 應用程式下輸入法不能正常運作的問題
#!/usr/bin/env python3
from gi.repository import GLib, Gio
import sys, os
def has_gtk_im_settings(overrides):
return True if 'Gtk/IMModule' in overrides.keys() else False
def produce_new_gtk_im_dict_entry(im):
return GLib.Variant.new_dict_entry(GLib.Variant.new_string('Gtk/IMModule'), GLib.Variant.new_variant(GLib.Variant.new_string(im)))

不用 bootcamp 來安裝 Windows 7 並擁有額外分割區的方法

實踐時所用的環境

  • Mac OS X Mavericks (10.9.x)
  • Mac mini
  • [GPT fdisk][] (0.8.10)
  • Windows 7

行前須知