Skip to content

Instantly share code, notes, and snippets.

View JonBons's full-sized avatar

JonBons

View GitHub Profile
@harshilpatel312
harshilpatel312 / reverse-ssh.md
Last active August 25, 2021 21:54
Alternative to VPN: reverse-ssh + autossh

Description

You want to access a remote computer from a local computer. The remote computer does not have a public IP, is on its own local network and can access internet.

Solution: To access the remote computer, you need a middleman (proxy server) which is accessible by both, the remote and the local computer. You open an ssh tunnel from remote to middleman. Use that ssh tunnel on local to access the remote computer.

Method

  1. Create VM on a cloud service (like https://www.digitalocean.com/products/droplets/). Get its public IP and password.
  • As a test, access the VM from local computer: ssh hkpatel@203.162.43.12. If successful, proceed. If not, inspect.
// local omnipresent sound
0 spawn {
private _soundSource = allMissionObjects "#soundonvehicle";
playSound "Alarm";
_soundSource = allMissionObjects "#soundonvehicle" - _soundSource select 0;
sleep 0.4;
deleteVehicle _soundSource;
};
@seven1m
seven1m / open_source_church_software.md
Last active April 24, 2024 08:38
List of Open Source Church Software
@Tenzer
Tenzer / 000-README.md
Last active January 18, 2024 07:02
LastPass Pwned Passwords checker

LastPass Pwned Passwords checker

This is a script for checking if any of the passwords you have stored in LastPass have been exposed through previous data breaches.

To use the script you need to have Python 3 installed and you need a CSV export of your LastPass vault. The export can be generated from the LastPass CLI with:

lpass export > lastpass.csv

or can be extracted with the browser plugin by going to the LastPass icon → More Options → Advanced → Export → LastPass CSV File (note that I did have problems getting this to work).

@braian87b
braian87b / openwrt-lede-on-pc-vm.sh
Created November 22, 2017 04:03
Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine
# ----------------------------------------------------------------------
# Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine:
# ----------------------------------------------------------------------
# boot using DamnSmallLinux or similar:
sudo /etc/init.d/ssh start
# see IP to connect using ssh
ifconfig
# set a password for root
su

Made a discovery with the tech products site. The lazy load pattern that we typically use is not thread safe. In the appcon we had the property

Public Shared ReadOnly Property GetAppCon() As AppCon
    Get
        If m_oAppController Is Nothing Then
            m_oAppController = New AppCon()
 End If
type Type =
| String of int
| Guid
| Date
| Bool
| Integer
| Enum of name : string
type Property =
{ Name : string
@xeb
xeb / ssh_reverse.md
Last active March 17, 2023 14:48
Reverse SSH

SSH Reverse Proxy

Some simple notes to setup SSH reverse proxy

  1. on source machine (behind the network), run: ssh -N -R 2222:localhost:22 YOURUSER@YOURSERVER

  2. on YOURSERVER, run: ssh -l SOURCEUSER -p 2222 localhost

  3. If you want to automated it, do something like...

@kscottz
kscottz / opencv_twitch.py
Created February 8, 2016 05:00
A hack to slurp up twitch streams and process them with opencv.
import cv2
import numpy as np
import time
import livestreamer
# use live streamer to figure out the stream info
streams = livestreamer.streams("http://www.twitch.tv/inostupid")
stream = streams['best']
# open our out file.
fname = "test.mpg"