Skip to content

Instantly share code, notes, and snippets.

View limingjie's full-sized avatar
❄️

Mingjie Li limingjie

❄️
View GitHub Profile
@limingjie
limingjie / GolangDevEnvWin.md
Last active May 12, 2019 17:46
Golang Development Environment - Windows

Golang Development Environment - Windows

  1. Install golang.
  • Set env var GOROOT = C:\Go.
  • Set env var GOPATH = C:\GoPath.
  • Append C:\Go\bin to env var PATH.
  1. Install gitbash.
  2. Install vscode.
  • Install vscode extension Go (by lukehoban).
  • Set GOROOT and GOPATH in vscode user settings.
@limingjie
limingjie / The Go Programming Language Exercise 1.4
Last active January 20, 2021 08:03
The Go Programming Language Exercise 1.4
$ ./dup dup*.txt
[Found in 1 file(s)] yyy
5 hit(s) in dup4.txt
[Found in 2 file(s)] aaa
5 hit(s) in dup1.txt
1 hit(s) in dup2.txt
[Found in 3 file(s)] ccc
1 hit(s) in dup3.txt
1 hit(s) in dup1.txt
1 hit(s) in dup2.txt
echo "Installing Homebrew and Cask..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
install brew-cask
echo "Upgrading bash..."
brew install bash
brew install bash-completion
echo "Installing CLI Tools..."
brew install asciiquarium
@limingjie
limingjie / UbuntuProxy.md
Last active March 23, 2023 12:43
Ubuntu Proxy Configuration

Ubuntu Proxy Configuration

Tested under Ubuntu 14.04.2 LTS

Global Proxy

Add proxies in /etc/environment

$ sudo vi /etc/environment
# Proxies
http_proxy="http://proxy.server.com:port/"
https_proxy=$http_proxy
@limingjie
limingjie / terminalcolors.py
Last active November 29, 2023 06:03
check if terminal supports 256 colors
#!/usr/bin/env python
# Copyright (C) 2006 by Johannes Zellner, <johannes@zellner.org>
# modified by mac@calmar.ws to fit my output needs
# modified by crncosta@carloscosta.org to fit my output needs
# Original source: https://github.com/incitat/eran-dotfiles/blob/master/bin/terminalcolors.py
import sys
import os
@limingjie
limingjie / vmware.assign.static.ip.md
Last active January 7, 2024 13:41
VMware Network Configuration

VMware Assign Static IP to Guest

Assign Static IP

  • Find Guest MAC Address

    In Virtual Machine Settings -> Hardware -> Network Adapter, click Advanced... button. I usually modify the MAC address to 00:11:22:33:44:55 for convenience.

  • Locate VMware DHCP Server Configuration File

@limingjie
limingjie / 256 colors.md
Last active April 24, 2024 22:15
256 colors in putty, tmux/screen and vim

#256 colors in putty, tmux/screen and vim There is a detailed answer on stackoverflow. If you are looking for a short one, here it is.

  • putty

    Set Connection -> Data -> Terminal-type string to xterm-256color

  • tmux

Add this line to ~/.tmux.conf