Skip to content

Instantly share code, notes, and snippets.

View me-vlad's full-sized avatar

Vlad V. Teteria me-vlad

View GitHub Profile
@alfonsrv
alfonsrv / camera.py
Last active April 26, 2024 22:32
Motion detection with OpenCV + grab static snapshot every 1 second from RTSP video stream
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (c) Rau Systemberatung GmbH (rausys.de)
# MIT License
# credits: https://pyimagesearch.com/start-here/
import argparse
import os
from datetime import datetime, timedelta
@me-vlad
me-vlad / Ansible_Vault_passwordstore.md
Last active July 28, 2021 19:01
Ansible Vault passwords and ansible_become_pass variable stored in pass (https://www.passwordstore.org) or gopass

Ansible Vault passwords and ansible_become_pass variable stored in pass https://www.passwordstore.org or gopass https://www.gopass.pw

ansible_become_pass variable in pass/gopass

Create encrypted password file with pass or gopass

pass insert ansible/test or gopass insert ansible/test

Now you can access become password stored in ansible/test using lookup plugin passwordstore

@desbo
desbo / quake-3-arena-macos-quickstart-guide.md
Last active August 22, 2022 23:14
Quake 3 Arena macOS quick start guide
  1. Install Q3 fork ioquake3 along with original game patch files (baseq3/pak{1-8}.pk3, missionpack/pak{1-3}.pk3)

    brew cask reinstall ioquake3
    
  2. Build ioquake3 master branch

    git clone https://github.com/ioquake/ioq3
    
@HQJaTu
HQJaTu / ipmi-updater.py
Last active April 22, 2024 19:00
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@me-vlad
me-vlad / thin.sh
Created March 18, 2012 03:41
init script for multiple thin instances with rbenv shared install
#!/bin/sh
# thin This shell script takes care of starting and stopping
# thin daemon from rbenv shared install
#
# chkconfig: 2345 85 15
# description: thin is an Ruby web server
# config: /etc/sysconfig/thin
### BEGIN INIT INFO
@me-vlad
me-vlad / s3curl.pl.patch
Created February 14, 2012 21:06
s3curl.pl (http://aws.amazon.com/code/128): fix x-amz-date and aws endpoints patch
--- s3curl.pl.orig 2011-08-16 22:23:39.000000000 +0300
+++ s3curl.pl 2012-02-14 22:37:01.594635639 +0200
@@ -26,11 +26,14 @@
use constant STAT_UID => 4;
# begin customizing here
+# http://docs.amazonwebservices.com/general/latest/gr/rande.html#s3_region
my @endpoints = ( 's3.amazonaws.com',
+ 's3-us-west-2.amazonaws.com',
's3-us-west-1.amazonaws.com',
@me-vlad
me-vlad / youtube-dl-python24.patch
Created January 2, 2012 02:00
youtube-dl Python 2.4 compatibility patch
--- youtube-dl.orig 2012-02-28 00:24:14.664150644 +0200
+++ youtube-dl 2012-02-28 00:27:40.810150644 +0200
@@ -55,6 +55,7 @@
import email.utils
except ImportError: # Python 2.4
import email.Utils
+ email.utils = email.Utils
try:
import cStringIO as StringIO
except ImportError: