Skip to content

Instantly share code, notes, and snippets.

View JonBons's full-sized avatar

JonBons

View GitHub Profile

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
@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
@Tenzer
Tenzer / 000-README.md
Last active July 16, 2024 10:19
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).

@seven1m
seven1m / open_source_church_software.md
Last active August 1, 2025 11:15
List of Open Source Church Software (NO LONGER MAINTAINED)
// local omnipresent sound
0 spawn {
private _soundSource = allMissionObjects "#soundonvehicle";
playSound "Alarm";
_soundSource = allMissionObjects "#soundonvehicle" - _soundSource select 0;
sleep 0.4;
deleteVehicle _soundSource;
};
@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 [email protected]. If successful, proceed. If not, inspect.