Skip to content

Instantly share code, notes, and snippets.

View nestdimon's full-sized avatar

NDS nestdimon

View GitHub Profile
@bibendi
bibendi / rkn_unblock.md
Created November 7, 2019 19:37 — forked from furdarius/rkn_unblock.md
Настройка обхода РКН на роутере
@ajumalp
ajumalp / Install Mosquitto MQTT on Synology NAS Server.txt
Last active October 19, 2025 17:59
Install Mosquitto MQTT on Synology NAS Server
From https://synocommunity.com add http://packages.synocommunity.com to your NAS package sources.
For that, go to NAS->Package Cnter->Click Settings->Package Sources tab.
Then from the community, you can see Mosquitto. Install it.
After installing, please stop the Mosquitto service before updating configuration. You can start service after changes.
Enable Admin login for Synology
Enable SSH in NAS
Download putty and connect to NAS Server
Login using admin
Change to root user [sudo -i, {use admin password}]
Find mosquitto.conf file [find / -name mosquitto.conf]
@nokyotsu
nokyotsu / kbd_tag.rb
Last active February 10, 2021 18:10
Jekyll liquid tag to easily type OSX style keyboard combinations.
# Turns:
# {% kbd shift cmd V %}
# Into:
# <kbd>⇧ shift</kbd><kbd>⌘ cmd</kbd><kbd>V</kbd>
module Jekyll
class Kbd < Liquid::Tag
def initialize(tag_name, markup, tokens)
@markup = markup
# http://meta.apple.stackexchange.com/q/193/68
@emilsoman
emilsoman / chain-of-responsibility.js
Created February 21, 2013 11:31
Chain of Responsibility design pattern in Javascript
//Chain of responsibility design pattern
//Use strategyPipeline.handleRequest(request)
//to send the request to be handled along the
//chain-of-responsibility
var strategyPipeline = {
handleRequest: function(request){
var strategy1 = new Strategy1();
var strategy2 = new Strategy2();
@gdamjan
gdamjan / README.md
Last active May 25, 2025 01:21
Setup for an easy to use, simple reverse http tunnels with nginx and ssh. It's that simple there's no authentication at all. The end result, a single ssh command invocation gives you a public url for your web app hosted on your laptop.

What

A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.

Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).

Requirements