Skip to content

Instantly share code, notes, and snippets.

View haoyun's full-sized avatar
馃彔
Working from home

Yun Hao haoyun

馃彔
Working from home
View GitHub Profile
@haoyun
haoyun / agenda.py
Created June 24, 2022 11:53 — forked from rougier/agenda.py
org-mode agenda calendar in the terminal
#!/usr/bin/env python3
# Copyright 2020 Nicolas P. Rougier - BSD License
#
# from reading org-mode emacs files, display a formated calendar in the
# terminal showing holidays and busy days and upcomiing events.
import holidays # https://pypi.org/project/holidays/
import calendar
import datetime
import orgparse # https://pypi.org/project/orgparse

Instructions for installing zsh plugins, for a variety of plugin managers

  • antibody: Add <owner>/<repo> to your plugins file. If you use static loading update the sh.

  • Antigen: Add antigen bundle <owner>/<repo> to your .zshrc.

  • Oh-My-Zsh:

    • Clone to OMZ's plugins' directory:
@haoyun
haoyun / starUml3.md
Created February 27, 2021 16:40 — forked from jjvillavicencio/starUml3.md
StarUml 3.

Recientemente StarUML se actualiz贸 de 2.0 a 3.0. El m茅todo de crack original, la forma de modificar la funci贸n de verificaci贸n de licencia no se puede usar. La ubicaci贸n de instalaci贸n ha cambiado y se ha encontrado el archivo LicenseManagerDomain.js. 驴Qu茅 deber铆a hacer? El viejo conductor les dijo a todos que resolvieran el problema.

StarUML est谩 escrito en nodejs. Espec铆ficamente, est谩 escrito en el marco frontal de Electron. Todo el c贸digo fuente de starUML en la nueva versi贸n viene empaquetado por la herramienta asar.

Ingresar al directorio (Windows)

C:\Program Files\StarUML\resources

@haoyun
haoyun / 00-lenovo-x1-5th-gen-thinkfan-setup.md
Created June 27, 2019 21:38 — forked from abn/00-lenovo-x1-5th-gen-thinkfan-setup.md
Fedora thinkfan configuration for Lenovo X1 Carbon (5th Gen)

Thinkfan Configuration Notes

This are notes for configuration thinkfan for Fedora. This configuration procedure was followed on a Lenovo Thinkpad X1 Carbon (5th Gen) running Fedora 25.

Non standard (default) configuration was required for this machine as the default sensors are not available. Eg: /proc/acpi/ibm/thermal does not exist for this model.

An annoted configuration file has been included below. However, there is no guarentee that this will work as-is on every machine.

Installation

dnf -y install thinkfan
@haoyun
haoyun / braking.md
Created April 22, 2018 14:42
Fahrschule
@haoyun
haoyun / texsvg.hs
Last active August 29, 2015 14:19 — forked from lierdakil/texsvg.hs
import Text.Pandoc.JSON
import System.Directory
import System.FilePath ((</>))
import qualified Data.Hash.MD5 as MD5
import System.IO.Temp
import System.Process
import Control.Monad (unless)
main :: IO ()
main = toJSONFilter mathToSvg