Skip to content

Instantly share code, notes, and snippets.

View toralux's full-sized avatar

Tor Anders Johansen toralux

View GitHub Profile
@mattdy
mattdy / .traefik-cloudflare-tunnel
Last active May 11, 2025 20:18
Traefik on Docker Swarm accessed via Cloudflare Tunnel
Please see https://mattdyson.org/blog/2024/02/using-traefik-with-cloudflare-tunnels for a detailed write-up of this configuration
@martijndierckx
martijndierckx / IMOU-DB61i-Doorbell.md
Created May 30, 2023 07:47
How to setup an IMOU DB61i Doorbell in order to get access to the RTSP streams and configuration API endpoints.

How to 'properly' configure an IMOU DB61i Doorbell

I had been looking for a doorbell which offers local RTSP streams for a very long time. Armcrest offered just that in its AD410 model since a couple of years. Only problem ... it was not available in Europe.

But a couple of weeks ago my eye caught the DB61i model of IMOU, which apparently shares the same internals as the Armcrest AD410 and the Dahua DH-DB6I, and which is pretty cheaply available in Europe. 🥳🚀

Using the provided IMOU Life app I wasn't able to get the configurability I craved. But since they shared the same internals, I figured maybe ... just maybe ... I could use the Dahua DMSS app (all apps are also clones).

Eureka! The DMSS app works flawlessly!
The Dahua app has one big difference in the device configuration flow: It allows you to set the device password. Which allows you to access the RTSP streams and

@ayebrian
ayebrian / vmware.md
Last active June 11, 2025 02:13
VMware ESXi / Workstation / ISO Downloads

Download VMware ISOs in this repo

Also I would happy if you visit my site with tech tips!: https://hausmer.com

All license keys and activation files have been removed in accordance with GitHub's Terms of Service.

Only official trial installers are available. Bring your own license (BYOL).

@chrisnolet
chrisnolet / .zshrc
Last active May 23, 2025 02:31
Color-coded git branch for zsh prompt
autoload -Uz compinit && compinit
autoload -Uz add-zsh-hook
autoload -Uz vcs_info
add-zsh-hook precmd vcs_info
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' formats " %F{cyan}%c%u(%b)%f"
zstyle ':vcs_info:*' actionformats " %F{cyan}%c%u(%b)%f %a"
zstyle ':vcs_info:*' stagedstr "%F{green}"
using System;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using log4net;
namespace Utils
{
@BravoTango86
BravoTango86 / OtpAuthenticator.cs
Created September 20, 2016 21:53
C# OTP Implementation with TOTP and HOTP
/*
* Copyright (C) 2016 BravoTango86
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@esamattis
esamattis / application.html.erb
Last active May 19, 2019 00:36
React hot reloading with Webpack for Ruby on Rails
<script charset="utf-8">
<% if ENV["RAILS_ENV"] == "production" %>
var script = "/react-app-bundle.js";
<% else %>
console.warn("Development mode. Make sure to start 'node devServer.js'");
var script = "http://" + (location.host || 'localhost').split(':')[0] + ":4000/react-app-bundle.js"
<% end %>
document.write('<script src="' + script + '"></' + 'script>');
</script>
@joey-qc
joey-qc / TSQL-to-POCO
Created September 26, 2013 06:56
A simple TSQL script to quickly generate c# POCO classes from SQL Server tables and views. You may tweak the output as needed. Not all datatypes are represented but this should save a bunch of boilerplate coding. USAGE: Run this query against the database of your choice. The script will loop through tables, views and their respective columns. Re…
declare @tableName varchar(200)
declare @columnName varchar(200)
declare @nullable varchar(50)
declare @datatype varchar(50)
declare @maxlen int
declare @sType varchar(50)
declare @sProperty varchar(200)
DECLARE table_cursor CURSOR FOR
@nateware
nateware / gist:3915757
Created October 19, 2012 01:27
Start Mac VNC server from command line
# Step 1: Set priveleges
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting...
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
# Step 2: Allow VNC clients