Skip to content

Instantly share code, notes, and snippets.

View don-rumata's full-sized avatar

don Rumata don-rumata

View GitHub Profile
@ThinGuy
ThinGuy / lxd-snap-store-proxy.yaml
Last active October 4, 2022 18:47
automated snap-store-proxy via lxd
#Make sure variables are correct and paste this into terminal on a server where LXD has been initialized
export AIRSTACK_DHCP=true
export AIRSTACK_IPV4_CIDR=
export AIRSTACK_IPV4_GW=
export AIRSTACK_DNS=
export AIRSTACK_DOMAIN=orangebox.me
export AIRSTACK_TZ=$(cat /etc/timezone)
export AIRSTACK_LANG=en_US.UTF-8
export AIRSTACK_USE_BRIDGE=br0
export AIRSTACK_STORAGE_POOL=local
@thefranke
thefranke / RSS.md
Last active April 16, 2024 09:03
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@VerosK
VerosK / sorted.yml
Created July 23, 2018 16:16
Sort dict in Ansible
- hosts: localhost
vars:
images:
- name: first
date: 001
- name: second
date: 002
- name: fourth
date: 004
@deoren
deoren / Ubuntu_on_Hyper-V.md
Last active May 8, 2023 11:01
Ubuntu on Hyper-V

Enabling full Hyper-V support for Ubuntu

Install packages

Short version: See docs.microsoft.com link below.

Ubuntu 17.04 and later

  1. sudo apt-get update
  2. sudo apt-get install linux-image-virtual linux-tools-virtual linux-cloud-tools-virtual
@ForgottenUmbrella
ForgottenUmbrella / publish_python.md
Last active December 25, 2023 21:49
How to publish Python apps for human beings

How to publish Python apps for human beings

So, you've created a Python app (be it a graphical user interface with Qt or the like, or a simple command line interface). Great! But how are others going to use it? Python applications often have dependencies (e.g. from third-party modules), and they also need a Python interpreter to run them. For a developer, installing all the necessary bits and bobs to make things work is okay, but that's unacceptable for a normal user - they just want to download the thing and run it.

Below are simple instructions to publish your app on the three main operating systems: Windows, macOS and Linux.

@mattiaslundberg
mattiaslundberg / Ansible Let's Encrypt Nginx setup
Last active April 19, 2024 16:03
Let's Encrypt Nginx setup with Ansible
Ansible playbook to setup HTTPS using Let's encrypt on nginx.
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS.
The server pass A rating on [SSL Labs](https://www.ssllabs.com/).
To use:
1. Install [Ansible](https://www.ansible.com/)
2. Setup an Ubuntu 16.04 server accessible over ssh
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder)
@parmentf
parmentf / GitCommitEmoji.md
Last active May 22, 2024 09:54
Git Commit message Emoji
@natefoo
natefoo / 00README.md
Last active May 20, 2024 21:55
Linux Distribution Detection

Distribution Detection

I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.

How you can help

If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:

  • The contents of /etc/os-release, if it exists
@halberom
halberom / output
Created August 3, 2015 11:26
ansible - example of using from_json
PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [shell cat '/tmp/file.json'] ********************************************
changed: [localhost]
TASK: [debug var=result] ******************************************************
ok: [localhost] => {
@tristanfisher
tristanfisher / Ansible-Vault how-to.md
Last active April 3, 2024 13:55
A short tutorial on how to use Vault in your Ansible workflow. Ansible-vault allows you to more safely store sensitive information in a source code repository or on disk.

Working with ansible-vault


I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.

What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.

Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.