Skip to content

Instantly share code, notes, and snippets.

View silpol's full-sized avatar
🏠
Email is best comm tool.

Andriy Tymchenko silpol

🏠
Email is best comm tool.
View GitHub Profile
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into
@silpol
silpol / create-package.md
Created February 3, 2023 13:49 — forked from deanrather/create-package.md
Creating a .deb Package

Creating a .deb Package

This creates a package which runs an install.sh which copies a file somewhere the below is entirely incorrect. Hopefully I'll get around to fixing it tip: this would install to the root dir & the relative path to ./install.sh would be wrong

go to project directory

cd /path/to/project
@silpol
silpol / debian-source-pkg-build.txt
Created February 3, 2023 13:49 — forked from FollowMeDown/debian-source-pkg-build.txt
How to create debian package from source
In any GNU/Linux distribution, which have a package manager on board, is recommended to install software by using "packages".
Building from source
Step 1. GPG key
The first thing you need is generate a gpg key.
Package will be signed by this key.
Run this commands in your terminal:
@silpol
silpol / gnupg_scdaemon.md
Created December 8, 2022 08:09 — forked from artizirk/gnupg_scdaemon.md
OpenPGP SSH access with Yubikey and GnuPG

OpenPGP SSH access with Yubikey and GnuPG

Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.

Notes written here should work on

  • Ubuntu 20.04 with Gnome
  • Debian 11 with Gnome
  • Linux Mint with Cinnamon (needs different environment setup, check comments)
  • Arch Linux with Gnome (pacman instead of apt)

This is not a step by step guide

@silpol
silpol / sync_trv_with_external_temp_sensor.yaml
Created December 12, 2021 11:46 — forked from bruvv/sync_trv_with_external_temp_sensor.yaml
Sync TRV with external sensor blueprint
blueprint:
name: Sync TRV tempature
description: Sync external tempature sensor with TRV tempature
domain: automation
input:
@silpol
silpol / .gitignore
Created November 5, 2018 19:04 — forked from starenka/.gitignore
fabfile to deploy flask app to nginx/supervisor/uwsgi stack
.idea/*
*.pyc
@silpol
silpol / Install Lets Encrypt.md
Created December 16, 2017 16:57 — forked from sampaiodiego/Install Lets Encrypt.md
Steps to install Letsencrypt
@silpol
silpol / gist:57ea5d88641543d48302ff321d09ef6e
Created November 21, 2017 20:52 — forked from jcinis/gist:2866253
Generate a random username for Django
from random import choice
from string import ascii_lowercase, digits
from django.contrib.auth.models import User
def generate_random_username(length=16, chars=ascii_lowercase+digits, split=4, delimiter='-'):
username = ''.join([choice(chars) for i in xrange(length)])
if split:
username = delimiter.join([username[start:start+split] for start in range(0, len(username), split)])
@silpol
silpol / gist:5bfbce862957090af3e6184675414a61
Created May 13, 2017 20:04 — forked from evildmp/gist:3094281
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using: