Skip to content

Instantly share code, notes, and snippets.

View jsupa's full-sized avatar
:dependabot:
verified bot

Jakub Šupa jsupa

:dependabot:
verified bot
View GitHub Profile
# mogno dump to sftp server
#!/bin/bash
SFTP_STRING="username@storage1.hukot.net"
CURRENT_TIME=$(date "+%Y.%m.%d-%H.%M.%S")
BACKUP_DIR="/home/jsupa/zaloha"
# dump mongo
@jsupa
jsupa / setup.md
Last active October 21, 2023 09:28
linux / mac terminal setup and tips
@jsupa
jsupa / README.md
Created September 12, 2022 06:56 — forked from kylrth/README.md
Wake-on-LAN with tp-link TG-3468 on Ubuntu 18.04.3

WOL with tp-link TG-3468 on Ubuntu 18.04.3

I'm putting this here for my own reference because I was up way too late figuring this out.

After installing the network card, I could see I already had the right driver for it. sudo lshw -c network showed that the card was disabled though. What ended up getting the card working was the following which I recorded here:

sudo ip l s dev enp6s0 up
@jsupa
jsupa / gist.md
Last active September 9, 2022 14:22
ssh reverse tunnel
[Unit]
Description=SSH reverse tunnel
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/ssh -g -N -T -o VerifyHostKeyDNS=no  -o "ServerAliveInterval 10" -o StrictHostKeyChecking=no -o "ExitOnForwardFailure yes" -R xxxx:localhost:xxxx xx@xxxx -i /home/xxxx/.ssh/id_rsa
Restart=always
RestartSec=5s
@jsupa
jsupa / android-set-ntp-server.md
Created March 16, 2022 08:44 — forked from xujiaao/android-set-ntp-server.md
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

@jsupa
jsupa / subdomain nginx.md
Last active February 27, 2022 13:58
How to make node js express app what show data by subdomain what reversed by nginx
  • add domain DNS record * A server-ip
  • on server $ nano /etc/nginx/conf.d/app.conf
	server {
		add_header Access-Control-Allow-Origin *;
		listen 443 ssl;
		server_name *.domain.example;
 error_page 502 /502.html;