4b1a6c2bffc5ecac2ba79b39cb68387d12c05a96 — Kridsada Thanabulpong 8 days ago
Move content of code.grid.in.th to projects page.
M Makefile => Makefile +13 -3
@@ 1,4 1,8 @@-NODE2NIX := node2nix
+ NODE2NIX	:= node2nix
+ RSYNC		:= rsync
+ 
+ DEPLOY_SOURCE	:= _site/
+ DEPLOY_DEST	:= sirn_gridth@ssh.phx.nearlyfreespeech.net:grid.in.th
  
  node-packages.nix: package.json supplement.json
  	$(NODE2NIX) \


@@ 13,6 17,12 @@ node-default.nix \
  		node-env.nix \
  		node-packages.nix \
- 		node-supplement.nix
+ 		node-supplement.nix \
+ 		_site \
+ 		_cache \
+ 		result
+ 
+ deploy:
+ 	$(RSYNC) -avz $(SOURCE) $(DEST)
  
- .PHONY: clean
+ .PHONY: clean deploy

A assets/images/projects/user-css/banner.png => assets/images/projects/user-css/banner.png +0 -0

        
M pages/about.html => pages/about.html +2 -2
@@ 8,7 8,7 @@ </div>
      <div class="container">
          <p>Hi there! My name is <strong>Kridsada Thanabulpong</strong> or you may known me as <strong>Sirn</strong> or <strong>Gridth</strong>. I'm a software developer from Bangkok, Thailand. These days I mainly do Python, Elixir, Erlang and TypeScript. My primary interest is in web-related technologies.</p>
-         <p>Most of my personal works are on <a href="https://git.sr.ht/~sirn">Sr.ht</a> and <a href="https://github.com/sirn">GitHub</a> under a permissive license. The only social network I use is <a href="https://mastodon.social/@sirn">Mastodon</a> and the easiest way to reach me is via <a href="mailto:sirn@ogsite.net">Email</a>. My public PGP key can be found on <a href="https://keybase.io/sirn">Keybase</a>. I can write and speak in Thai, English and Japanese with relative fluent.</p>
-         <p>This website is generated using <a href="https://jaspervdj.be/hakyll/">Hakyll</a> and hosted at <a href="https://www.nearlyfreespeech.net">NearlyFreeSpeech.NET</a>.
+         <p>Most of my personal works are on <a href="https://git.sr.ht/~sirn">Sourcehut</a> and <a href="https://github.com/sirn">GitHub</a> under a permissive license. The only social network I use is <a href="https://mastodon.social/@sirn">Mastodon</a> and the easiest way to reach me is via <a href="mailto:sirn@ogsite.net">email</a>. My public PGP key can be found on <a href="https://keybase.io/sirn">Keybase</a>. I can write and speak in Thai, English and Japanese with relative fluent.</p>
+         <p>This website is <a href="https://builds.sr.ht/~sirn/grid.in.th/.build.yml">generated</a> using <a href="https://jaspervdj.be/hakyll/">Hakyll</a> and hosted at <a href="https://www.nearlyfreespeech.net">NearlyFreeSpeech.NET</a>.</p>
      </div>
  </div>

M pages/projects.html => pages/projects.html +9 -1
@@ 11,7 11,15 @@ <p>A pseudonomous message board inspired by <a href="http://wakaba.c3.cx/shii/">Shii’s Anonymous Essay</a>. The website originally opened in 2010 and reopened again in early 2013. The website is built with Pyramid (Python 3), Celery and PostgreSQL with TypeScript for the frontend and currently receiving around 1.3 million pageviews per month.</p>
          <ul class="list list--compact">
              <li class="list__item"><a href="https://fanboi.ch/">Fanboi Channel</a></li>
-             <li class="list__item"><a href="https://github.com/pxfs/fanboi2">Fanboi2 on GitHub</a></li>
+             <li class="list__item"><a href="https://git.sr.ht/~sirn/fanboi2">Fanboi2 on Sourcehut</a></li>
+             <li class="list__item"><a href="https://github.com/sirn/fanboi2">Fanboi2 on GitHub</a></li>
+         </ul>
+     </div>
+     <div class="container">
+         <h3>Older Projects</h3>
+         <p>These projects are no longer actively maintained.</p>
+         <ul class="list list--compact">
+             <li class="list__item"><a href="./user-css/">User CSS</a></li>
          </ul>
      </div>
  </div>

A pages/projects/user-css.html => pages/projects/user-css.html +77 -0
@@ 0,0 1,77 @@
+ ---
+ title: User CSS
+ ---
+ 
+ <div class="article">
+     <div class="container">
+         <h2>User CSS</h2>
+     </div>
+     <div class="container">
+         <p><img src="../../assets/images/projects/user-css/banner.png" alt="Screenshot of User CSS extension showing the style manager"></p>
+         <p>An extension for Safari 5 to Safari 11 that allows the user to override stylesheets for any web page with real-time updating of web pages. It is no longer maintained due to deprecation of JavaScript-based extensions starting with Safari 12.</p>
+         <p>The extension is licensed under MIT license.</p>
+     </div>
+ </div>
+ <div class="article">
+     <div class="container">
+         <h3>Downloads</h3>
+         <ul class="list list--compact">
+             <li class="list__item"><a href="http://static.grid.in.th/safari/User%20CSS%201.3.2.safariextz">Download v1.3.2</a></li>
+             <li class="list__item"><a href="https://github.com/sirn/usercss">User CSS on GitHub</a></li>
+         </ul>
+     </div>
+ </div>
+ <div class="article">
+     <div class="container">
+         <h3>Note</h3>
+         <p>Due to a limitation with Safari's URL parsing, domain wildcard only works for subdomains. For example, <code>http://*.google.*</code> will not work. You must use <code>http://*.google.com/*</code></p>
+         <p>Database for User CSS is stored at <code>~/Library/Safari/LocalStorage</code>. You can access this directory by pressing Cmd-Shift-G in Finder. The database file is named <code>safari-extension_com.gridth.usercss-v892bvzc73_0.localstorage</code></p>
+     </div>
+ </div>
+ <div class="article">
+     <div class="container">
+         <h3>Releases</h3>
+         <div class="versions">
+             <strong>Version 1.3.2</strong> <time>July 31, 2011</time>
+             <ul>
+                 <li>Safari 5.1 compatibility.</li>
+                 <li>Fix interface glitch that cause item to be unselectable.</li>
+             </ul>
+             <strong>Version 1.3.1</strong> <time>January 11, 2011</time>
+             <ul>
+                 <li>Fix database corruption.</li>
+                 <li>Ensure compatibility with other extension.</li>
+                 <li>Minor usability additions.</li>
+             </ul>
+             <strong>Version 1.3</strong> <time>January 8, 2011</time>
+             <ul>
+                 <li>Interface redesign!</li>
+                 <li>Slightly less ugly icon!</li>
+                 <li>Initial fix for database corruption.</li>
+             </ul>
+             <strong>Version 1.2</strong> <time>September 18, 2010</time>
+             <ul>
+                 <li>Added an icon, albeit somewhat ugly.</li>
+                 <li>Added settings to disable contextual menu.</li>
+                 <li>Change to allow input fields to be resizable.</li>
+                 <li>Fixed few typo into User CSS manager.</li>
+             </ul>
+             <strong>Version 1.1</strong> <time>June 15, 2010</time>
+             <ul>
+                 <li>Added support for secure sites.</li>
+                 <li>Added domain exclusion to exclude domains from being matched.</li>
+                 <li>Fixed a bug where rules with no trailing slash applies to all pages.</li>
+             </ul>
+             <strong>Version 1.0.1</strong> <time>June 11, 2010</time>
+             <ul>
+                 <li>Added toolbar button.</li>
+                 <li>Added checkbox for enable/disable certain style.</li>
+                 <li>Change to use Safari's resource for some UI elements.</li>
+             </ul>
+             <strong>Version 1.0</strong> <time>June 10, 2010</time>
+             <ul>
+                 <li>Initial release.</li>
+             </ul>
+         </div>
+     </div>
+ </div>