Skip to content

Instantly share code, notes, and snippets.

View ablebodied's full-sized avatar
🏠
Working from home

Stoney Wong ablebodied

🏠
Working from home
View GitHub Profile
@yevrah
yevrah / Upgrade vim
Last active September 25, 2023 05:11
Update to Vim8 on Centos 7
################################################################################
# Method 1: Install using rpm packages (credit to DarkMukke)
#
rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm
rpm --import http://mirror.ghettoforge.org/distributions/gf/RPM-GPG-KEY-gf.el7
# WARNING: removing vim-minimal uninstalls `sudo` if you skip the second step
# make sure to at least run `yum install sudo`
yum -y remove vim-minimal vim-common vim-enhanced
@pierreprinetti
pierreprinetti / InstallingTmuxOnCentOS.md
Last active September 4, 2019 07:24 — forked from rkaneko/InstallingTmuxOnCentOS.md
Installing tmux 2.3 on CentOS 7

Installing tmux 2.3 on CentOS

Prerequites

  • libevent libevent-devel libevent-headers
  • curl
# remove old pkgs
@LeslieZhu
LeslieZhu / tail.c
Last active May 9, 2019 12:49
C语言实现的程序,读取并打印文件最后N行
#include <stdio.h>
/*
* Author: Leslie Zhu
* Email: pythonisland@gmail.com
*/
/*
* @num : the last num line of file to display
* @files: a file list