Skip to content

Instantly share code, notes, and snippets.

Vu Le thenewvu

View GitHub Profile
thenewvu / userChrome.css
Last active Mar 14, 2019
Some css files to customize Firefox internal UI (place at $(user-profile-dir)/chrome/)
View userChrome.css
* darkern loading page background
#browser vbox#appcontent tabbrowser,
browser[type=content] > html {
background: black !important
thenewvu / pro.vim
Created Apr 14, 2018
minimal dark color scheme for {n}vim
View pro.vim
" Author: Vu Le <>
" Maintainer: Vu Le <>
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
let g:colors_name="pro"
thenewvu / cmakelist.txt
Created Mar 23, 2018
build bgfx examples for android using cmakelist with android-ndk-native-activity-sample
View cmakelist.txt
# Copyright (C) The Android Open Source Project
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
thenewvu /
Created Mar 6, 2018
script to record my vlogs on mac osx
ffmpeg \
-f avfoundation \
-framerate 5 \
-pixel_format bgr0 \
-i 1 \
-c:v libvpx-vp9 \
-preset ultrafast \
-g 10 \
-capture_cursor 1 \
-cpu-used 8 \

Learn Golang: fmt.Println doesn't print anything in goroutines

Run the below example, you will see there was nothing printed from fmt.Println in exec(), why?

func longexec (name) {
  // simulate long execution
  for p := 0; p < 10 ; p++ {
thenewvu / xorg.conf
Created Apr 23, 2017
Macbook Air mtrack driver options
View xorg.conf
Section "InputClass"
MatchIsTouchpad "on"
Identifier "Trackpad"
Driver "mtrack"
Option "Sensitivity" "0.40"
Option "FingerHigh" "5"
Option "FingerLow" "1"
Option "IgnoreThumb" "true"
Option "IgnorePalm" "true"
Option "TapButton1" "1"
View cVimrc
let smoothscroll="true"
let autohidecursor="true"
let autofocus="false"
let sortlinkhints="true"
let completeonopen="true"
let completionengines=["google"]
thenewvu /
Last active Dec 24, 2016
tail and grep a file, send mail when each line occurs
echo "sj=$sj"
echo "to=$to"
echo "in=$in"
thenewvu / extension-groups.bak
Created Sep 26, 2016
chrome extension manager - extension group backup
View extension-groups.bak
View SummerFruit.tmtheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: -->
<!-- code: -->
<plist version="1.0">
You can’t perform that action at this time.