Skip to content

Instantly share code, notes, and snippets.

View gzhelyaz's full-sized avatar

Georgi Zhelyazkov gzhelyaz

  • Prague, Czech Republic
View GitHub Profile
@gzhelyaz
gzhelyaz / LetsEncrypt_HTTPS_SABnzbd.MD
Created July 18, 2023 23:03 — forked from churro-s/LetsEncrypt_HTTPS_SABnzbd.MD
Setup Let's Encrypt certificate for use with SABnzbd+

I just discovered Let's Encrypt and wanted to get myself a free cert for use with my SABnzbd+ installation at home. Here's my setup:

  • Home server running Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-93-generic x86_64)
  • SABNzbd+ 0.7.16 running on server
  • Netgear Nighthawk R6900 home router
  • Dynamic hostname from no-ip.org, which I'll use for this setup

Preparation

I have a dynamic hostname from no-ip.org, which I use to access my home network. I have port forwarding set up on my Netgear router to access the programs running on my home server. See my port forwarding settings on my comment below.

@gzhelyaz
gzhelyaz / tmux-cheatsheet.markdown
Created May 17, 2020 21:16 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@gzhelyaz
gzhelyaz / ambari-infra-solr-recreate-collections.md
Last active May 18, 2021 14:34
How to clean up & recreate collections on Ambari Infra

Short Description:

Clean up the ranger atlas collections and recreate them from ambari infra solr

Article

How to clean up & recreate collections on Ambari Infra

Sometimes you need to clean up an installation that went with issues and there are missing collections on Ambari Infra solr.

In order to do this, go thry the next list of steps to clean up solr collections and recreate them from scratch.

#sudo dseditgroup -o edit -a $username_to_add -t user admin
#sudo dseditgroup -o edit -a $username_to_add -t user wheel
# It's also possible to do this with dscl, but to do it properly you need # to both add the user's short name to the group's GroupMembership list,
# and add the user's GeneratedUID to the group's GroupMembers list.
# dseditgroup takes care of both in a single operation.
# For those who are looking for the same answer to newer versions of
# macOS, i've found out this:
@gzhelyaz
gzhelyaz / gist:82bacbbdb8dd67e644ef6f2db8fda4ec
Created March 14, 2019 23:53 — forked from romainl/gist:9970697
How to use Tim Pope's Pathogen

How to use Tim Pope’s Pathogen

I’ll assume you are on Linux or Mac OSX. For Windows, replace ~/.vim/ with $HOME\vimfiles\ and forward slashes with backward slashes.

The idea

Vim plugins can be single scripts or collections of specialized scripts that you are supposed to put in “standard” locations under your ~/.vim/ directory. Syntax scripts go into ~/.vim/syntax/, plugin scripts go into ~/.vim/plugin, documentation goes into ~/.vim/doc/ and so on. That design can lead to a messy config where it quickly becomes hard to manage your plugins.

This is not the place to explain the technicalities behind Pathogen but the basic concept is quite straightforward: each plugin lives in its own directory under ~/.vim/bundle/, where each directory simulates the standard structure of your ~/.vim/ directory.

@gzhelyaz
gzhelyaz / ansible-macos-homebrew-packages.yml
Created March 2, 2019 00:12 — forked from mrlesmithjr/ansible-macos-homebrew-packages.yml
Install MacOS Homebrew Packages With Ansible
---
- name: Install MacOS Packages
hosts: localhost
become: false
vars:
brew_cask_packages:
- 'atom'
- 'docker'
- 'dropbox'
- 'firefox'