Skip to content

Instantly share code, notes, and snippets.

View nekocentral's full-sized avatar

Marcel Haazen nekocentral

View GitHub Profile
#!/bin/sh
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400)
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600)
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60)
cat > /etc/motd << EOF
┌───────────────────────────────────────────────────────────────────────────┐
│ ______ ______ __ __ __ __ __ __ __ __ │
│ /\__ _\ /\ ___\ /\ \/\ \ /\ "-./ \ /\ \ /\ \/ / /\ \ │

Keybase proof

I hereby claim:

  • I am nekocentral on github.
  • I am nekocentral (https://keybase.io/nekocentral) on keybase.
  • I have a public key whose fingerprint is A547 EF22 C65C 995D FD82 958E C912 C3DF E2C4 FB9D

To claim this, I am signing this object:

server {
listen *:80;
listen [::]:80;
server_name sitischu.com;
#Redirect to HTTPS
if ($scheme = http) {return 301 https://$server_name$request_uri;}
}
server{
listen *:80;