Skip to content

Instantly share code, notes, and snippets.

View liux-pro's full-sized avatar

Legend liux-pro

  • China
View GitHub Profile
@liux-pro
liux-pro / native-image.sh
Last active January 27, 2022 22:17
set up graalvm native-image
#!/bin/bash
# Set up graalvm native-image On docker Ubuntu20.04
# $ docker run -it -p 8848:8848 ubuntu:20.04
# (in docker container)$ apt-get update && apt-get install -y wget && wget https://gist.githubusercontent.com/liux-pro/8fc306411f51788ea6e57f5842f99ed1/raw/native-image.sh && bash native-image.sh
apt-get update
apt-get install -y build-essential libz-dev zlib1g-dev
apt-get install -y git wget curl
# graalvm native-image building request libfreetype-dev ,which not mention on document
apt-get install -y libfreetype-dev
@liux-pro
liux-pro / python3-http.sh
Created December 15, 2020 15:32
python开启最简单文件服务器
apt-get install -y python3
python3 -m http.server 8848
@liux-pro
liux-pro / ubuntu-utf8.sh
Last active December 15, 2020 16:31
docker ubuntu 设置中文utf-8
apt-get install -y language-pack-zh-hans
locale-gen zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
# echo "export LC_ALL=zh_CN.UTF-8" >> /etc/profile
# source /etc/profile
@liux-pro
liux-pro / nginx.sh
Created December 15, 2020 15:27
ubuntu安装nginx跳过时区设置
export DEBIAN_FRONTEND=noninteractive
ln -fs /usr/share/zoneinfo/Asia /etc/localtime
apt-get install -y tzdata
dpkg-reconfigure --frontend noninteractive tzdata
apt-get -y install nginx