Skip to content

Instantly share code, notes, and snippets.

View vejuhust's full-sized avatar
🎯
Focusing

Vej vejuhust

🎯
Focusing
  • Beijing, China
View GitHub Profile
@vejuhust
vejuhust / github-flavored-markdown-test-doc.md
Last active October 13, 2017 05:56
github-flavored markdown syntax test document
@vejuhust
vejuhust / Logger.py
Created February 27, 2017 15:41
Python Wrapper of SoftEtherVPN "vpncmd" Tool
#!/usr/bin/env python3
import logging
# Colorful console
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
@vejuhust
vejuhust / aliases.pub
Last active November 10, 2022 02:52
My Common build\aliases\aliases.pub in Microsoft
b build
bbb build nuke && build -cleanonly && build
bq build nuke && quickbuild $*
e start buildd.err
mc sdv -u fareast\weye ...
s+ sd add $*
s- sd delete $*
s! sd revert $*
sa sdp apply $*
sc sd change
@vejuhust
vejuhust / jekyll-blog.md
Last active August 29, 2015 14:18
My Path to Blogging with Jekyll

Basic Setup

  • Pick up the theme
  • Fork the theme
  • Clean up Minimal Mistakes
  • Import Content via gitmodules
  • Main configuration
  • Homepage / index
  • About page
  • Navigation links
  • Replace header image
@vejuhust
vejuhust / vej_bash_alias.sh
Created February 13, 2015 12:54
# Also write this to .bashrc if it doesn’t contain if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
function gp() {
if [ $# -eq 0 ];
then
count=10
else
count=$1
fi
cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 16 | head -n $count
}
@vejuhust
vejuhust / raspi-buy
Created September 25, 2014 16:41
Shopping List for Raspberry Pi B+
Raspberry Pi
http://item.taobao.com/item.htm?spm=a1z09.2.9.10.MbZ8cB&id=38987175483&_u=p30n4aoe69b
Shell
http://item.taobao.com/item.htm?spm=a1z09.2.9.40.MbZ8cB&id=40236827770&_u=p30n4ao46eb
Heat sink
http://item.taobao.com/item.htm?spm=a1z09.2.9.30.MbZ8cB&id=40272781292&_u=p30n4aoa8ab
Camera wire

ffmpeg

install

apt-add-repository ppa:jon-severinsson/ffmpeg
apt-get update
apt-get install ffmpeg

generate silent film

@vejuhust
vejuhust / combine.sh
Last active August 29, 2015 14:02
using imagemagick to append bottom parts of other images to the first one
#!/bin/bash
if [ $# -lt 1 ]; then
percent=13
printf "percent missing: using default value "$percent" %% \n"
else
percent=$1
fi
type=png
@vejuhust
vejuhust / estimated.py
Created January 9, 2014 15:31
In Agile development, we usually use hours to estimate our projects, and it's not easy to make it accurate. This little tool might be useful to you.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
x = int(raw_input("how many work items do you have? "))
hours = [4,6,6,8,8,8,8,10,10,12,14]
for i in range(x):
print random.choice(hours)