Skip to content

Instantly share code, notes, and snippets.

View wfxr's full-sized avatar
☃️
I may be slow to respond.

Wenxuan wfxr

☃️
I may be slow to respond.
  • ::1
  • Nauvis
View GitHub Profile

Build the x86 binaries

bjam --toolset=msvc --build-type=complete stage

Create the directory lib\x86

Move the contents of stage\lib to lib\win32 Remove the directories bin.v2 and stage

Build the x64 binaries

Glances

    sudo apt-get install glances

Htop (Suggest)

    sudo apt-get install htop

使用Ubuntu源安装

Installing llvm 3.9 can easily be done under Xenial Xerus by using the 'LLVM Debian/Ubuntu nightly packages' PPA. Just follow these steps:

Add the archive signature:

wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -

Solution 1

Add .Xmodmap to home directory:

! output taken from:
! xmodmap -pke | egrep '(Control|Caps)'
! Use to set keycodes correctly below. List reordered to match
! keys from left to right.

!keycode 37 = Control_L NoSymbol Control_L
@wfxr
wfxr / linux-app.md
Last active September 22, 2016 17:14

fortune

随机显示一条格言

fortune 命令简介

# Debian/Ubuntu
$ sudo apt-get install fortune

Open grub file

sudo vim /etc/default/grub

locate GRUB_TIMEOUT=10 and change 10 to the time we want, then save and quit. Run:

sudo update-grub

Open grub.cfg file

sudo apt-get install autojump
sudo apt-get install ctags
sudo apt-get install cmake
sudo apt-get install vim
sudo apt-get install build-essential

##设置git使用代理

git config --global http.proxy http://localhost:8087

##配置ca-certificates

sudo cp ~/Goagent/local/CA.crt /usr/share/ca-certificates/goagent.crt
sudo chmod a+r /usr/share/ca-certificates/goagent.crt
sudo dpkg-reconfigure ca-certificates

开启代理:

export http_proxy=http://127.0.0.1:8087/
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$HTTP_PROXY