Skip to content

Instantly share code, notes, and snippets.

View weynhamz's full-sized avatar

Weynham Zheng (Techlive Zheng) weynhamz

  • @ciandt-dev
  • Melbourne, Australia
View GitHub Profile
@weynhamz
weynhamz / '$*' and '$@' in Shell Scripting
Created December 17, 2012 14:09
Simple code that illustrates the difference between `$*` and `$@` in shell scripting.
#!/bin/bash
foo() {
printf "'%s'" $*
}
bar() {
printf "'%s'" $@
}
@weynhamz
weynhamz / PKGBUILD
Last active December 11, 2015 09:59
PKGBUILD of libiconv
# Maintainer: Arthur Darcet <arthur.darcet at m4x.org>
# Contributor: Techlive Zheng <techlivezheng at gmail.com>
pkgname=libiconv
pkgver=1.14
pkgrel=1
pkgdesc='Provides libiconv.so and libcharset.so'
arch=('i686' 'x86_64')
url='http://www.gnu.org/software/libiconv/'
license=('LGPL')
@weynhamz
weynhamz / config
Last active July 6, 2022 13:33
i3-wm configuration
# i3 config file
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
#####
#
# Fonts
#
@weynhamz
weynhamz / PKGBUILD
Last active December 26, 2015 02:19
PKGBUILD of tig-git
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Max Riveiro <[email protected]>
_pkgname=tig
pkgname=tig-git
pkgdesc="Text-mode interface for git"
pkgver=1.2.1.r58.g00979ec
pkgrel=1
url="http://jonas.nitro.dk/tig/"
arch=('i686' 'x86_64')
@weynhamz
weynhamz / PKGBUILD
Last active December 26, 2015 07:19
PKGBUILD of dotploy
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Maxim Chervonny <[email protected]>
pkgname=dotploy
pkgdesc="A bash only script to deploy $HOME dot files acrossing different hosts"
pkgver=0.3.3
pkgrel=1
url="https://github.com/techlivezheng/dotploy"
arch=('any')
license=('GPL')
@weynhamz
weynhamz / PKGBUILD
Last active December 26, 2015 07:19
PKGBUILD of dotploy-git
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Maxim Chervonny <[email protected]>
_pkgname=dotploy
pkgname=dotploy-git
pkgdesc="A bash only script to deploy $HOME dot files acrossing different hosts"
pkgver=0.3.3.r0.ge947c85
pkgrel=1
url="https://github.com/techlivezheng/dotploy"
arch=('any')
@weynhamz
weynhamz / 703688.patch
Last active December 26, 2015 13:19
PKGBUILD of valadoc-git
diff --git a/src/driver/0.20.x/Makefile.am b/src/driver/0.20.x/Makefile.am
index a1e7416..65cb006 100644
--- a/src/driver/0.20.x/Makefile.am
+++ b/src/driver/0.20.x/Makefile.am
@@ -8,6 +8,7 @@ AM_CFLAGS = -g \
-DPACKAGE_ICONDIR=\"$(datadir)/valadoc/icons/\" \
-I ../../libvaladoc/ \
$(GLIB_CFLAGS) \
+ $(LIBGVC_CFLAGS) \
$(LIBGEE_CFLAGS) \
@weynhamz
weynhamz / PKGBUILD
Last active December 27, 2015 13:39
PKGBUILD of vim-cli
# Maintainer: Techlive Zheng <[email protected]>
# Contributor: Thomas Dziedzic <[email protected]>
# Contributor: Jan "heftig" Steffens <[email protected]>
# Contributor: tobias [ tobias at archlinux org ]
# Contributor: Daniel J Griffiths <[email protected]>
pkgbase=vim-cli
pkgname=('vim-cli' 'vim-cli-runtime')
_topver=7.4
_patchlevel=16
@weynhamz
weynhamz / PKGBUILD
Last active December 27, 2015 20:19
PKGBUILD of perl-convert-tnef
# Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
# Contributor: Arthur Titeica <arthur.titeica [at] gmail [dot] com>
# Contributor: Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: Piotr Beling <[email protected]>
# Contributor: Wael Nasreddine <[email protected]>
# Contributor: Guillermo A. Amaral <[email protected]> (thewonka)
pkgname='perl-convert-tnef'
pkgver='0.18'
pkgrel='3'
@weynhamz
weynhamz / PKGBUILD
Last active December 27, 2015 20:19
PKGBUILD of perl-convert-uulib
# Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
# Contributor: Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: David Zaragoza <[email protected]>
# Contributor: Piotr Beling <[email protected]>
# Contributor: Wael Nasreddine <[email protected]>
# Contributor: Guillermo A. Amaral <[email protected]> (thewonka)
# Contributor: Chih-mao Chen <[email protected]>
pkgname='perl-convert-uulib'
pkgver='1.4'