Skip to content

Instantly share code, notes, and snippets.

@copy0401
copy0401 / stardict2txt.py
Created May 20, 2025 10:37 — forked from rongyi/stardict2txt.py
convert a stardict dictionary to txt
#!/usr/bin/python
# -*- coding: utf-8 -*-
import struct
import types
import gzip
class IfoFileException(Exception):
"""Exception while parsing the .ifo file.
Now version error in .ifo file is the only case raising this exception.
@copy0401
copy0401 / travis-secure-key-mac.sh
Created March 6, 2021 22:18 — forked from floydpink/travis-secure-key-mac.sh
Generating secure environment variables for GitHub deployment keys to be used from a Travis-CI build.
# On a Mac, use this script to generate secure deployment key
# To generate secure SSH deploy key for a github repo to be used from Travis
base64 --break=0 ~/.ssh/id_rsa_deploy > ~/.ssh/id_rsa_deploy_base64
ENCRYPTION_FILTER="echo \$(echo \"- secure: \")\$(travis encrypt \"\$FILE='\`cat $FILE\`'\" -r floydpink/harimenon.com)"
# If you don't have homebrew please install it from http://brew.sh/
brew install coreutils
gsplit --bytes=100 --numeric-suffixes --suffix-length=2 --filter="$ENCRYPTION_FILTER" ~/.ssh/id_rsa_deploy_base64 id_rsa_
# To reconstitute the private SSH key from within the Travis-CI build (typically from 'before_script')
layout title date comments categories
post
Jekyll
2020-03-04 01:56:05 +0800
true
jekyll

Jekyll

layout title date comments categories
post
git .gitconfig
2020-03-05 01:56:05 +0800
true
git

Git筆記 wanmen.org

layout title date comments categories
post
Install Octopress
2016-09-04 01:56:05 +0800
true
octopress

Octopress

layout title date comments categories
post
hello gist
2021-03-06 01:56:05 +0800
true
markdown

Hello Gist