Skip to content

Instantly share code, notes, and snippets.

View yedamao's full-sized avatar
🎧
Focusing

dave yedamao

🎧
Focusing
View GitHub Profile
@yedamao
yedamao / install-vim.sh
Created January 15, 2024 03:46
install vim 9 on centos7
wget https://codeload.github.com/vim/vim/tar.gz/refs/tags/v9.1.0029
tar -xvf v9.1.0029 && cd vim-9.1.0029
./configure --enable-python3interp=yes
make -j 8
sudo make install
@yedamao
yedamao / install-python3.8.sh
Last active January 15, 2024 03:25
centos 7 install python3.8
VERSION=3.8.18
sudo yum -y install wget
wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz
tar xvf Python-$VERSION.tgz && cd Python-$VERSION/
./configure --enable-optimizations --enable-shared
make -j 8
sudo make altinstall
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
@yedamao
yedamao / install-tmux.sh
Last active January 15, 2024 04:12 — forked from pokev25/install-tmux.sh
Install tmux 2.8 on centos 7
# Install tmux 2.8 on Centos
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar -xf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
@yedamao
yedamao / dst_time.go
Created November 2, 2018 07:36
golang time pkg handle DST
package main
import (
"fmt"
"time"
)
func main() {
losAngeles, err := time.LoadLocation("America/Los_Angeles")