Skip to content

Instantly share code, notes, and snippets.

View ZachTRice's full-sized avatar
🌌
Life is the sum of all your choices

ZachTRice ZachTRice

🌌
Life is the sum of all your choices
View GitHub Profile
@ZachTRice
ZachTRice / next_nginx.md
Created April 19, 2020 22:34 — forked from kocisov/next_nginx.md
How to setup next.js app on nginx with letsencrypt

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

@ZachTRice
ZachTRice / keybase.md
Last active August 9, 2019 03:08
keybase.io

Keybase proof

I hereby claim:

  • I am zachtrice on github.
  • I am zachtrice (https://keybase.io/zachtrice) on keybase.
  • I have a public key ASCnxRbJPe-uwBaEaq0vO7m_ywOSm7QKi9ohVYAA3KHukAo

To claim this, I am signing this object:

@ZachTRice
ZachTRice / ssh_keys_synology_dsm_6
Last active July 31, 2023 11:50
Install SSH Keys on Synology DSM 6
Full Instructions here: https://forum.synology.com/enu/viewtopic.php?t=126166
System: Synology DS1815+ running DSM 6
Log into Synology web UI as an administrator user
Enable “User Home”
Control Panel / User / Advanced, scroll down to “User Home”
Check “Enable user home service”, select an appropriate Location (i.e. volume1)
Click “Apply”
Create user account(s) that should access Synology via SSH (or via rsync over SSH), using the Synology web UI as normal.
Enable SSH for the Synology server
atom.commands.add 'atom-text-editor', 'my:move-line-up', ->
editor = atom.workspace.getActiveTextEditor()
if atom.config.get('editor.autoIndent')
atom.config.set('editor.autoIndent', false)
editor.moveLineUp()
atom.config.set('editor.autoIndent', true)
else
editor.moveLineUp()
atom.commands.add 'atom-text-editor', 'my:move-line-down', ->