Skip to content

Instantly share code, notes, and snippets.

View bananos's full-sized avatar

Andrew Druchenko bananos

View GitHub Profile
@bananos
bananos / shed.scad
Created September 16, 2024 14:28 — forked from creationix/shed.scad
Shed design. Open in OpenScad to view 3d model.
windows = false; // show windows
stuff = false; // Show bikes, table, mower
l = 32; // Length of building in feet (16, 20, 24, 28, 32, ...)
h = 8*12-4.5+.5;
rl=6*12+1.375+.1; // cut to 73.5" long with 22.5 degree angles
tl = 68.7; // Used to tweak headers on top walls
// 2x6 concrete forms for foundation
// 10" wide grid
@bananos
bananos / README.md
Created March 31, 2022 15:14 — forked from dankor/README.md
Як отримувати гроші з Upwork через свого ФОПа

Як отримувати гроші з Upwork через свого ФОПа

Це коротка інструкція про те, як бути білим фрілансером. Почав писати для себе, бо не все знайшов в інтернеті. І вирішив, що це корисно всім, хто працює на біржі Upwork і хоче розібратися як легально там заробляти. Тут є офіційна стаття, яку я вирішив доповнити конкретним своїм прикладом.

Що для цього потрібно?

  • Мати відкритого фопа з відповідними кведами
  • Мати відкритий фопівський гривневий і доларовий рахунки

ФОП

Про відкриття фопа і його облікування не буду розписувати. Якщо у вас фопа немає, то краще звернутися до консалтингових компаній, які на цьому спеціалізуються. Єдине, на чому я хотів би зупинитися, це кведи. Бажано, щоб вони збігалися з послугами, які ви надаватимете. Наприклад, «Software Development» відповідає найкраще «62.01 Комп'ютерне програмування». Якщо у вас інші, то пошукайте те, чому найбільше відповідаєт

@bananos
bananos / memo_test.py
Created April 6, 2017 15:27
Simple TTL-based memoization with support for coroutines
import asyncio
import unittest
from h.commons import memoized_ttl
called = 0
@memoized_ttl(10)

Keybase proof

I hereby claim:

  • I am bananoz on github.
  • I am bananos (https://keybase.io/bananos) on keybase.
  • I have a public key whose fingerprint is 632B 6220 DA69 17C2 BEEC E571 45AB 2736 5BDB E7A1

To claim this, I am signing this object:

@bananos
bananos / camera.md
Created September 11, 2016 10:18 — forked from gabonator/camera.md
Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Video stream url for VLC/DVR:

  • rtsp://192.168.1.93:554/user=admin&password=&channel=&stream=.sdp?real_stream--rtp-caching=100

Telnet access

  • telnet 192.168.1.10 23
  • Localhost login: root
  • Password: xmhdipc
@bananos
bananos / readme.md
Created August 19, 2016 07:29 — forked from endolith/readme.md
How to stream a webcam to a web browser in Ubuntu

Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.

First install motion:

~> sudo apt-get install motion

Then create a config file:

~> mkdir ~/.motion

~> nano ~/.motion/motion.conf

KVM OSX Guest 10.11 (El Capitan) with Clover

  • Some notes about this approach:
    • An OSX Installer USB drive for Install OS X El Capitan is created
    • Clover is then installed on the USB drive
    • Clover Configurator is then run on the USB drive
    • The USB drive contents are copied to the VM host
    • VNC is used to connect to the guest UI
  • The qxl virtual video device is used (part of the standard kvm qemu install)
@bananos
bananos / news.py
Last active March 16, 2016 16:11
Latest RSS news from console
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
import pytz
import feedparser
from urlparse import urlparse
from time import mktime, time
from datetime import datetime
@bananos
bananos / gist:7136450
Created October 24, 2013 12:37
TransmissionD start script
#! /bin/sh
#
# This is a very basic init script for Transmission
# Copy it to /etc/init.d/transmission and type
# > update-rc.d transmission defaults 60
#
#