Skip to content

Instantly share code, notes, and snippets.

View okainov's full-sized avatar
🏆

Oleg Kainov okainov

🏆
  • Intel
  • Germany, Munich
View GitHub Profile
@leshikus
leshikus / timesheet.ahk
Last active February 29, 2024 10:26
Fill Workday timesheets (Chrome, F11 for fullscreen, windows settings: 1980x1080, 175% scaling)
#Requires AutoHotkey v2.0
waitForPageLoad(x, y, color, attempts)
{
Loop attempts
{
sleep(200)
Loaded := PixelGetColor(x, y)
;MsgBox("Wait for " . color . " Get " . Loaded)
@dpfoose
dpfoose / in_docker.py
Last active May 22, 2024 02:42
Get the path on a Docker host from a path in a Docker container if the path is in a bind-mounted volume
'''
Copyright (C) 2018 by Daniel Foose
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE
'''
import re
import docker
@soheilhy
soheilhy / nginxproxy.md
Last active May 16, 2024 08:59
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers