Skip to content

Instantly share code, notes, and snippets.

View evantkchong's full-sized avatar
🐢

Evan Chong evantkchong

🐢
View GitHub Profile
@evantkchong
evantkchong / ghpwithnamecheap.md
Created August 23, 2024 20:21 — forked from plembo/ghpwithnamecheap.md
GitHub Pages with Namecheap custom domain

Using GitHub Pages with a custom domain: Namecheap Edition

As often happens, I found the official documentation and forum answers to be "close, but no cigar", and so had to experiment a little to get things working.

The main problem for me was a lack of concrete configuration examples. That's not entirely GitHub's fault: having migrated from Google Domains to Namecheap in the middle of this project, I was once again reminded of how many different ways there are to do things in the name service universe [1].

Although you'd think the simplest setup would be to merely configure for the subdomain case (https://www.example.com), in my experience using the apex domain (https://example.com) instead resulted in fewer complications.

Procedure

So here's my recipe for using a custom domain with GitHub pages where Namecheap is the DNS provider:

@evantkchong
evantkchong / JetBrains-Mono.css
Last active December 9, 2020 14:48 — forked from bartzalewski/JetBrains-Mono.css
JetBrains Mono WebFont CSS adapted from the JetBrains Mono website
/* Adapted from the css of the JetBrainsMono site at https://www.jetbrains.com/lp/mono */
@font-face {
font-family: JetBrainsMono;
src: url("https://github.com/JetBrains/JetBrainsMono/raw/master/fonts/webfonts/JetBrainsMono-ExtraLight.woff2?raw=true") format("woff2"),
url("https://github.com/JetBrains/JetBrainsMono/raw/master/fonts/ttf/JetBrainsMono-ExtraLight.ttf?raw=true") format("truetype");
font-weight: 100;
font-style: normal;
}
@evantkchong
evantkchong / tmux.conf
Created September 24, 2019 02:12 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@evantkchong
evantkchong / cov2.js
Created May 1, 2019 12:02 — forked from randompast/cov2.js
Brachistochrone via gradient descent with pretty rainbow iso lines and sliding balls
// Tweet (gif) : https://twitter.com/randompast/status/897526013437018114
// $ budo --live cov2.js
// Attempt at local convergence to a global solution via Brachistochrone
// Intro:
// https://www.youtube.com/watch?v=skvnj67YGmw
// https://www.youtube.com/watch?v=Cld0p3a43fU
// Mathier:
// http://mathworld.wolfram.com/BrachistochroneProblem.html
// https://www.youtube.com/watch?v=6HeQc7CSkZs&t=22s
@evantkchong
evantkchong / README-Template.md
Created January 20, 2019 13:45 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@evantkchong
evantkchong / keras VGG-Face Model.md
Created December 14, 2018 06:33 — forked from EncodeTS/keras VGG-Face Model.md
VGG-Face model for keras

VGG-Face model for Keras

This is the Keras model of VGG-Face.

It has been obtained through the following method:

  • vgg-face-keras:directly convert the vgg-face matconvnet model to keras model
  • vgg-face-keras-fc:first convert vgg-face caffe model to mxnet model,and then convert it to keras model

Details about the network architecture can be found in the following paper: