Skip to content

Instantly share code, notes, and snippets.

@JaHIY
JaHIY / convert-dnsmasq-conf.awk
Last active December 12, 2015 07:28
txt:Auto DNS Configuration For Websites Located in China
#!/usr/bin/awk -f
BEGIN {
FS=";"
}
{
printf "server=/%s/199.91.73.222\n",$1
}
@JaHIY
JaHIY / hotot.rb
Last active December 14, 2015 22:38 — forked from passcod/hotot.rb
require 'formula'
class Hotot < Formula
homepage 'https://github.com/lyricat/Hotot'
url 'https://github.com/lyricat/Hotot/archive/0.9.8.10.tar.gz'
sha1 '09e1aae05546b99abc593df0c55d664a04336c43'
head 'https://github.com/lyricat/Hotot.git'
depends_on 'cmake' => :build
# Rime dictionary - kaomoji
# encoding: utf-8
# ref: http://www.facemark.jp/
---
name: kaomoji
version: "0.3"
sort: origin
...
( ̄ε(# ̄) va 10
@JaHIY
JaHIY / PKGBUILD
Last active December 23, 2015 10:19
PKGBUILD for jq-git
# Submitter: Alex Chamberlain <[email protected]>
# Maintainer: Kars Wang <[email protected]>
pkgname=jq-git
_gitname='jq'
pkgver=1.3_78_g4e3024c
pkgrel=1
pkgdesc='Command-line JSON processor'
arch=('i686' 'x86_64')
url='http://stedolan.github.com/jq/'
@JaHIY
JaHIY / PKGBUILD
Last active December 23, 2015 10:19
PKGBUILD for jq
# Submitter: Alex Chamberlain <[email protected]>
# Maintainer: Kars Wang <[email protected]>
pkgname=jq
pkgver=1.3
pkgrel=1
pkgdesc='Command-line JSON processor'
arch=('i686' 'x86_64')
url='http://stedolan.github.com/jq/'
license=('custom')
@JaHIY
JaHIY / PKGBUILD
Created November 23, 2013 12:04
PKGBUILD for mpv-git (waf)
# $Id: PKGBUILD 99197 2013-10-25 12:45:06Z giovanni $
# Maintainer: Rudolf Polzer <[email protected]>
# Original-Maintainer: Bartłomiej Piotrowski <[email protected]>
# Contributor: Eivind Uggedal <[email protected]>
# Contributor: Kars Wang <[email protected]>
pkgname=mpv-git
pkgver=0.36551.add439b
pkgrel=1
pkgdesc='Video player based on MPlayer/mplayer2 (git version)'
@JaHIY
JaHIY / archive.pl
Last active August 29, 2015 14:04
对 excel 进行归档的 perl 脚本
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use autodie;
use 5.010;
#use Data::Dumper;
use Encode;
@JaHIY
JaHIY / main.pl
Last active August 29, 2015 14:05
generate mosaic picture
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use autodie;
use 5.010;
use Data::Dumper;
use Image::Magick;

Keybase proof

I hereby claim:

  • I am JaHIY on github.
  • I am jahiy (https://keybase.io/jahiy) on keybase.
  • I have a public key whose fingerprint is 9ED1 1282 613B 84E1 BBB5 A977 0632 BF80 2EB3 6492

To claim this, I am signing this object:

@JaHIY
JaHIY / maze.tcl
Created November 16, 2014 11:36
Maze in TCL
#!/usr/bin/env tclsh --
set maze [list [list 2 2 2 2 2 2 2 2 2] \
[list 0 0 2 2 2 2 0 2 2] \
[list 2 0 0 0 0 0 0 0 2] \
[list 2 0 2 2 0 2 2 0 2] \
[list 0 2 0 2 0 2 2 0 2] \
[list 2 2 0 2 0 2 2 0 2] \
[list 2 2 0 2 0 0 0 0 2] \
[list 2 2 0 2 0 2 2 2 2] \