Skip to content

Instantly share code, notes, and snippets.

Avatar

Weynham Zheng (Techlive Zheng) weynhamz

View GitHub Profile
View gist:a9e02b35187d12776d017d0a0e803361
==> web-server: An error occurred. The error will be shown after all tasks complete.
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.
An error occurred while executing the action on the 'web-server'
machine. Please handle this error then try again:
A Docker command executed by Vagrant didn't complete successfully!
The command run along with the output from the command is shown
below.
@weynhamz
weynhamz / firefox-session-manager-to-chrome-tabs-outliner.js
Created Jun 16, 2017
A nodejs script to transfer a directory of firefox "Session Manager + Tree Style Tabs" sessions to chrome "Tabs Outliner" session tree.
View firefox-session-manager-to-chrome-tabs-outliner.js
var chSession = {
type: 2000,
node: {
type: 'session'
},
};
var chSavedWin = [
2001,
{
@weynhamz
weynhamz / workflowy-to-todotxt.js
Created Jun 9, 2017
A snippet of javascript runs in the console that exports the workflowy content to todo.txt format
View workflowy-to-todotxt.js
function get_name(h) {
if (h.getParent().getProjectId() != 'None') {
var p = get_name(h.getParent());
return p + ' > ' + h.getName();
} else {
return h.getName();
}
}
jQuery('.bullet').each(function () {
var h = project_tree.getProjectReferenceFromDomProject($(this).getProject());
View drupal.ajax-form.placeholder.js
(function($) {
var settings = {};
settings.customClass = 'placeholder';
function args(elem) {
// Return an object of element attributes
var newAttrs = {};
var rinlinejQuery = /^jQuery\d+$/;
@weynhamz
weynhamz / PKGBUILD
Last active Jan 3, 2016
PKGBUILD of nightingale-git
View PKGBUILD
# Maintainer: Matt Parnell/ilikenwf
# Contributor: Sam Stuewe <halosghost@archlinux.info>
# Contributor: Techlive Zheng <techlivezheng@gmail.com>
_gitname=nightingale-hacking
_branch=sb-trunk-oldxul
pkgname=nightingale-git
pkgver=1.12.1.r3.g020e12a
pkgrel=1
pkgdesc="Community port of Songbird to be more Linux native, up to date, and open."
@weynhamz
weynhamz / PKGBUILD
Last active Jan 1, 2016
PKGBUILD of cvs-fast-export
View PKGBUILD
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
pkgname=cvs-fast-export
pkgver=1.0
pkgrel=1
pkgdesc="Export RCS or CVS history as a fastimport stream."
arch=('i686' 'x86_64')
depends=('python')
makedepends=('asciidoc')
url="http://www.catb.org/esr/cvs-fast-export/"
@weynhamz
weynhamz / PKGBUILD
Last active Jan 1, 2016
PKGBUILD of ibus-git
View PKGBUILD
# Maintainer: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: Jekyll Wu <adaptee@gmail.com>
# Contributor: riverscn <riverscn@gmail.com>
# Contributor: Lee.MaRS <leemars@gmail.com>
# Contributor: Techlvie Zheng <techlivezheng@gmail.com>
_pkgname=ibus
pkgname=${_pkgname}-git
pkgver=1.5.4.r15.g7587b8e
pkgrel=1
@weynhamz
weynhamz / PKGBUILD
Last active Dec 27, 2015
PKGBUILD of perl-convert-uulib
View PKGBUILD
# Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
# Contributor: Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: David Zaragoza <david@zaragoza.com.ve>
# Contributor: Piotr Beling <qwak@w8.pl>
# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
# Contributor: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)
# Contributor: Chih-mao Chen <pkmx.tw@gmail.com>
pkgname='perl-convert-uulib'
pkgver='1.4'
@weynhamz
weynhamz / PKGBUILD
Last active Dec 27, 2015
PKGBUILD of perl-convert-tnef
View PKGBUILD
# 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 <qwak@stud.ics.p.lodz.pl>
# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
# Contributor: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)
pkgname='perl-convert-tnef'
pkgver='0.18'
pkgrel='3'
@weynhamz
weynhamz / PKGBUILD
Last active Dec 27, 2015
PKGBUILD of vim-cli
View PKGBUILD
# Maintainer: Techlive Zheng <techlivezheng@gmail.com>
# Contributor: Thomas Dziedzic <gostrc@gmail.com>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: tobias [ tobias at archlinux org ]
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgbase=vim-cli
pkgname=('vim-cli' 'vim-cli-runtime')
_topver=7.4
_patchlevel=16
You can’t perform that action at this time.