Skip to content

Instantly share code, notes, and snippets.

View twlz0ne's full-sized avatar

twlz0ne

  • Fuzhou, China
View GitHub Profile
@twlz0ne
twlz0ne / test-helm-find-files-with-el-get.el
Last active December 30, 2017 08:00
test helm-find-files with el-get
;;; Date: 2017-12-28_23.12.21
;;; Usage:
;; $ mkdir helm-test-files && cd helm-test-files/
;; $ printf '%04d\n' {1..1000} | xargs touch
;; $ /path/to/emacs -nw -Q -l /path/to/test-helm-find-files-with-el-get.el
(toggle-debug-on-error)
(global-set-key (kbd "C-h") 'delete-backward-char)
(global-set-key (kbd "M-h") 'backward-kill-word)
(global-set-key (kbd "<f1>") 'help-command)
@twlz0ne
twlz0ne / avy-goto-helm-buffer-line.el
Created December 12, 2017 02:19
avy-goto-helm-buffer-line.el
(defun avy-goto-helm-buffer-line ()
(interactive)
(let ((final nil)
(begin (or (bound-and-true-p avy-goto-helm-buffer-line-begin) 2)))
(save-excursion
(switch-to-buffer helm-buffer)
(goto-line begin)
(let* ((avy-all-windows nil)
(r (avy--line
nil (line-beginning-position) (window-end))))
@twlz0ne
twlz0ne / # mpv - 2017-10-15_03-31-05.txt
Created October 14, 2017 19:33
mpv on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for mpv on macOS 10.11.6
Build date: 2017-10-15 03:31:05
@twlz0ne
twlz0ne / example.md
Last active September 10, 2017 10:44
Beamer + Pandoc
title subtitle author date theme toc toc-depth secnumdepth
TITLE
subtitle
author
yyyy-mm-dd
Frankfurt
true
3
3
@twlz0ne
twlz0ne / here-emacs
Last active December 15, 2022 08:25
Launch emacs from emacs.d folder you placed anywhere.
#!/usr/bin/env bash
#
# Launch emacs from emacs.d folder you placed anywhere.
#
# @author gongqijian@gmail.com
# @created 2016-07-21
# @version 0.6
# @last-updated 2022-12-15 15:51:23 +0800
#
@twlz0ne
twlz0ne / script2bundle.sh
Created May 13, 2017 17:16
Convert apple/shell script to bundle
#!/bin/bash
# @brief convert apple/shell script to bundle
# @version 0.1
# @auther gongqijian
# @date 2013/05/09
set -e
if [ $# -lt 1 ]; then
@twlz0ne
twlz0ne / # vim - 2017-05-01_01-37-18.txt
Created April 30, 2017 17:49
vim on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for vim on macOS 10.11.6
Build date: 2017-05-01 01:37:18
@twlz0ne
twlz0ne / javascript-garden-epub.py
Created September 28, 2016 08:12
Generate epub of JavaScript-Garden from markdown
#!/usr/bin/env python
# -*- code: utf-8 -*-
#
# Generate epub from markdown
#
# Usage:
# cd /path/to/repo
# python javascript-garden-epub.py [lang]
#
$ proxychains4 -q npm install
DEBUG:init_lib_wrapper called from gcc_init
DEBUG:pid[20934]:at_init
DEBUG:pid[20934]:wait_data
DEBUG:added localnet: netaddr=127.0.0.0, netmask=255.0.0.0
DEBUG:added localnet: netaddr=10.0.0.0, netmask=255.0.0.0
DEBUG:added localnet: netaddr=172.16.0.0, netmask=255.240.0.0
DEBUG:added localnet: netaddr=192.168.0.0, netmask=255.255.0.0
DEBUG:[play] socks5 127.0.0.1:1080
DEBUG:loaded symbol 'connect' real addr 0x7fff9299c528 wrapped addr 0x10c878ec1
@twlz0ne
twlz0ne / git-workflow.svg
Last active April 16, 2022 14:11
git workflow
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.