Skip to content

Instantly share code, notes, and snippets.

View by-nari's full-sized avatar
🏠
Working from home

Nari by-nari

🏠
Working from home
  • Midgard
View GitHub Profile
@by-nari
by-nari / gist:289618282a16091c0949b8d7fcd45a94
Last active March 26, 2020 09:50 — 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>
@by-nari
by-nari / ReadFile.go
Created January 17, 2019 16:06 — forked from thedevsaddam/ReadFile.go
Reading file, line by line in Go lang using scanner
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
@by-nari
by-nari / supervisor
Created November 20, 2018 13:54 — forked from danielrmeyer/supervisor
supervisor config to keep a python script running in home directory.
[program:test]
command=/usr/bin/python /home/ubuntu/test.py
directory=/home/ubuntu
autostart=true
autorestart=true
startretries=3
stderr_logfile=/home/ubuntu/test.err.log
stdout_logfile=/home/ubuntu/test.out.log
user=ubuntu