Skip to content

Instantly share code, notes, and snippets.

View z0rk1i's full-sized avatar
🗽
Focusing

z0rk1.eth z0rk1i

🗽
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am z0rk1i on github.
  • I am z0rk1 (https://keybase.io/z0rk1) on keybase.
  • I have a public key ASDCGXPiAxaE9GZNagmdOu0cTr53pzdF_kjE5QZ_iFbZKgo

To claim this, I am signing this object:

@z0rk1i
z0rk1i / gist:f108695b39d3bf3b60f6e0fc6afc60af
Last active August 29, 2019 11:00 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@z0rk1i
z0rk1i / my_time_server.rb
Last active July 26, 2017 12:00
Time server
# prerequisites: gem install tzinfo
# run: ruby my_time_server.rb
# visit site: http://localhost:2626
# stress test: siege -c100 'http://localhost:2626/time?Moscow,New%20York' -b -t10s
require 'socket'
require 'tzinfo'
class Server
def initialize(ip, port)
@server = TCPServer.open(port)
@z0rk1i
z0rk1i / strint.clj
Created October 20, 2016 09:47 — forked from cemerick/strint.clj
BSD-licensed string interpolation for clojure
;;; strint.clj -- String interpolation for Clojure
;; originally proposed/published at http://cemerick.com/2009/12/04/string-interpolation-in-clojure/
;; Copyright (c) 2009, 2016 Chas Emerick <[email protected]>
;;
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;