Skip to content

Instantly share code, notes, and snippets.

View Rukeith's full-sized avatar
💭
Valar morghulis, Valar Dohaeris

Rukeith Rukeith

💭
Valar morghulis, Valar Dohaeris
View GitHub Profile
@Rukeith
Rukeith / question.md
Created February 9, 2022 14:44
Design a short-link system

Questions

  1. 有預算限制嗎?
  2. 使用流程就只有單純的填入 URL 然後產生 Short Link URL 而已嗎?
  3. 可以接受多久的 Latency?
  4. Short Link 會需要支援不同裝置不同 URL 嗎?
@Rukeith
Rukeith / prism.css
Last active February 3, 2020 14:57
prism.css
/* PrismJS 1.19.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+antlr4+apacheconf+apl+applescript+aql+arduino+arff+asciidoc+asm6502+aspnet+autohotkey+autoit+bash+basic+batch+bbcode+bison+bnf+brainfuck+brightscript+bro+c+csharp+cpp+cil+coffeescript+cmake+clojure+crystal+csp+css-extras+d+dart+diff+django+dns-zone-file+docker+ebnf+eiffel+ejs+elixir+elm+etlua+erb+erlang+fsharp+firestore-security-rules+flow+fortran+ftl+gcode+gdscript+gedcom+gherkin+git+glsl+gml+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+http+hpkp+hsts+ichigojam+icon+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jolie+jq+jsdoc+js-extras+js-templates+json+jsonp+json5+julia+keyman+kotlin+latex+latte+less+lilypond+liquid+lisp+livescript+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+nasm+neon+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+pascaligo+pcaxis+perl+php+phpdoc+php-ext
@Rukeith
Rukeith / prism-code.js
Last active September 24, 2019 13:23
prism
/* PrismJS 1.17.1
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+apacheconf+apl+applescript+aql+c+arff+asciidoc+asm6502+csharp+autohotkey+autoit+bash+basic+batch+bison+bnf+brainfuck+bro+cpp+aspnet+arduino+cil+coffeescript+cmake+clojure+ruby+csp+css-extras+d+dart+diff+markup-templating+dns-zone-file+docker+ebnf+eiffel+ejs+elixir+elm+erb+erlang+fsharp+firestore-security-rules+flow+fortran+gcode+gdscript+gedcom+gherkin+git+glsl+gml+go+graphql+groovy+less+handlebars+haskell+haxe+hcl+http+hpkp+hsts+ichigojam+icon+inform7+ini+io+j+java+scala+php+javastacktrace+jolie+jq+javadoclike+n4js+markdown+json+jsonp+json5+julia+keyman+kotlin+latex+crystal+scheme+liquid+lisp+livescript+lolcode+lua+makefile+js-templates+django+matlab+mel+mizar+monkey+n1ql+typescript+nand2tetris-hdl+nasm+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+pascaligo+pcaxis+perl+jsdoc+phpdoc+php-extras+sql+powershell+processing+prolog+properties+protobuf+scss+
@Rukeith
Rukeith / main.tf
Last active August 14, 2019 07:38
Terraform for Cloud SQL HA
terraform {
backend "gcs" {
credentials = "credential.json"
bucket = "demo"
prefix = "terraform/state"
}
}
provider "google-beta" {
credentials = "${file("credential.json")}"
@Rukeith
Rukeith / docker-compose.gitlab.yml
Last active February 18, 2019 08:38
DevOps Docker Compose
version: "3.7"
services:
gitlab:
image: "gitlab/gitlab-ce"
container_name: "gitlab"
labels:
- "SERVICE=gitlab"
restart: always
hostname: "localhost"
@Rukeith
Rukeith / .eslintrc
Last active November 23, 2017 15:17
My personal eslintrc
{
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"globalReturn": true, // allow return statements in the global scope
"impliedStrict": true, // enable global strict mode (if ecmaVersion is 5 or greater)
"jsx": true, // enable JSX
"experimentalObjectRestSpread": true, // enable support for the experimental object rest/spread properties
"allowImportExportEverywhere": true