Skip to content

Instantly share code, notes, and snippets.

Install Zsh and Oh-my-zsh on CentOS 7

Based on this article

ALL INSTALLATIONS ASSUME YES WHEN PROMPTED, that's what -y does

This script can be copy paste to ssh as is. No hands installation. :-)

yum install zsh -y
@adamgogogo
adamgogogo / fontjson.json
Created December 31, 2022 03:35 — forked from fariskas/fontjson.json
font json
var fontJSON = {
"glyphs": {
"ο": {
"x_min": 0,
"x_max": 764,
"ha": 863,
"o": "m 380 -25 q 105 87 211 -25 q 0 372 0 200 q 104 660 0 545 q 380 775 209 775 q 658 659 552 775 q 764 372 764 544 q 658 87 764 200 q 380 -25 552 -25 m 379 142 q 515 216 466 142 q 557 373 557 280 q 515 530 557 465 q 379 607 466 607 q 245 530 294 607 q 204 373 204 465 q 245 218 204 283 q 379 142 294 142 "
},
"S": {
@adamgogogo
adamgogogo / .net core on macos
Last active March 21, 2022 03:53
.net core on macos
https://jakeydocs.readthedocs.io/en/latest/client-side/yeoman.html
1. install .net core and C# extention on vscode
2. nvm use 14.13.0
3. npm install -g yo bower grunt-cli gulp
4. npm install -g generator-aspnet
5. mkdir aspnetsrc & cd aspnetsrc
6. yo aspnet
? What type of application do you want to create? Empty Web Application
@adamgogogo
adamgogogo / nginx.conf
Created March 7, 2022 07:51 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@adamgogogo
adamgogogo / Makefile
Created December 3, 2021 03:39 — forked from thibauts/Makefile
Example Makefile publishing to gh-pages
# Publishes the html counterpart to index.md to the repo's gh-pages branch root
dist/%.html: %.md
pandoc -f markdown -t html $< > $@
build: dist/index.html
clean:
rm -rf dist/*
publish: build