Skip to content

Instantly share code, notes, and snippets.

@shahnhogan
shahnhogan / download-redisinsight-mac.sh
Last active November 5, 2025 15:08
Download latest RedisInsight for macOS
curl -O https://download.redisinsight.redis.com/latest/RedisInsight-v2-mac-x64.dmg
@able8
able8 / gist-hosts.md
Last active March 8, 2020 10:06
修改 hosts 文件,解决 gist.github.com 被墙无法访问的问题,可以快速打开啦

在家可以访问 GitHub,但 gist.github.com 打不开,应该是被DNS污染。

解决办法是修改 hosts 文件,按大家说的改成如下确实可以访问,但速度很慢。

192.30.253.118 gist.github.com 
192.30.253.119 gist.github.com

我查了下github.com的IP,让后都换成解析出的3个IP地址,然后速度很快啦!

@awni
awni / ctc_decoder.py
Last active April 20, 2026 20:51
Example CTC Decoder in Python
"""
Author: Awni Hannun
This is an example CTC decoder written in Python. The code is
intended to be a simple example and is not designed to be
especially efficient.
The algorithm is a prefix beam search for a model trained
with the CTC loss function.
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@allex
allex / gist:11203573
Last active June 3, 2024 13:32
Ubuntu 安装中文字体

环境 (Environment)

版本:Ubuntu 14.04 LTS 默认语言:English(United States)

安装 (Setup)

Debian 和 Ubuntu 下对中文支持比较好的字体有: fonts-droid、ttf-wqy-zenhei 和 ttf-wqy-microhei 等,除了文泉驿系列字体外,比较流行的免费中文字体还有文鼎提供的楷体和上海宋,包名分别是: fonts-arphic-ukai 和 fonts-arphic-uming。