Skip to content

Instantly share code, notes, and snippets.

View AlanPadi95's full-sized avatar
💭
Keep pushing hard before commit

Alan Padierna Fernández AlanPadi95

💭
Keep pushing hard before commit
  • DXC Technology
  • Asturias, España
  • 19:40 (UTC +02:00)
  • X @alanpadi95
View GitHub Profile
@AlanPadi95
AlanPadi95 / pre-release.yml
Last active March 3, 2021 07:35
How to manage Python releases and upload them to Test.PyPi or PyPi? To take control of the major releases, I use a '.env' file.
name: Publish Pre-Release
on:
push:
# When a new tag is created for an alpha or beta version, this workflow starts running
tags:
- 'v*alpha*'
- 'v*beta*'
jobs:
build:
@AlanPadi95
AlanPadi95 / generate_broadcast_websocket_secret.yml
Created July 3, 2020 11:22
Generate broadcast websocket secret using Ansible
---
- hosts: localhost
tasks:
- name: Generate broadcast websocket secret
set_fact:
broadcast_websocket_secret: "{{ lookup('password', '/dev/null', length=128) }}"
run_once: true
no_log: true
- debug:
msg: " {{ broadcast_websocket_secret }} || {{ broadcast_websocket_secret | b64encode}}"
@AlanPadi95
AlanPadi95 / macosx_setup.yml
Last active June 9, 2020 10:10
Machine Learning environment setup - Ansible
- homebrew:
name: python
state: present
- homebrew_cask:
name: anaconda
state: present
install_options: force
- homebrew_cask: