Skip to content

Instantly share code, notes, and snippets.

View arianmaykon's full-sized avatar

Arian Maykon de Araújo Diógenes arianmaykon

View GitHub Profile
@fredcamps
fredcamps / worker.py
Last active April 11, 2018 20:35
celery dinamic queue bootstrap
from celery import Celery
from kombu import Queue, Exchange
PREFIX = 'baz'
EXCHANGE = 'exchange'
def get_task_names():
return (
'%s.foo.bar' % PREFIX,
'celery',
@lfbos
lfbos / migrate_tasks.py
Last active May 22, 2020 15:08
Migrate celery tasks in django
# -*- encoding: utf-8 -*-
from __future__ import division
from __future__ import unicode_literals
from django.core.management.base import BaseCommand
MIGRATE_PROGRESS_FMT = """\
Migrating task {state.count}/{state.strtotal}: \
{body}\
"""
@smiley
smiley / README.md
Last active March 18, 2024 14:51
How to make an automatic "stream's live" notification for your Discord server

Making an automatic Twitch -> Discord notification (using IFTTT)

So you went live and you want everyone to know. Here's how you do it:

Part 1 - Register on IFTTT

Go to https://ifttt.com/ and create an account (if you don't already have one)

Part 2 - Make a Discord Webhook

  • Find the Discord channel in which you would like to send Tweets.
  • In the settings for that channel, find the Webhooks option and create a new webhook. Note: This URL should be kept private. It allows anyone to write messages to that specific channel using that specific URL. Keep it safe!
This PR solves the [XXX-XXX](https://yourcompany.atlassian.net/browse/XXX-XXX) ticket.
## Business motivation:
[Describe in a non technical way. Think about bussiness]
## Tasks
- [x] [example] Found error and created tests.
- [x] [example] Refactored old tests remove deprecated method.
## Evidence of % Test Increased 😄 [Optional]
@sdnts
sdnts / example.md
Last active January 10, 2023 20:50
Postman pm.sendRequest example

To send a request via the sandbox, you can use pm.sendRequest.

pm.test("Status code is 200", function () {
    pm.sendRequest('https://postman-echo.com/get', function (err, res) {
        pm.expect(err).to.not.be.ok;
        pm.expect(res).to.have.property('code', 200);
        pm.expect(res).to.have.property('status', 'OK');
    });
});
@fredcamps
fredcamps / .Xresources
Last active April 19, 2024 04:31
my dot files *main*.... run 'tic -x -o .terminfo ~/.xterm-24bit-terminfo.src' for load 24bit terminal colors
!font settings
xscreensaver.Dialog.headingFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.bodyFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.labelFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.unameFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.buttonFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.dateFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.passwd.passwdFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
!general dialog box (affects main hostname, username, password text)
Listed in intended order of implementation.
Mechanical Power:
Mechanical power was intended to be a secondary power system for some of the physical heavy lifting in Embers. It was intended to have more
mundane yet varied power generation to offer more versatility in the early game. Old functionalities would be moved over to use the system,
while new ones would be introduced. Embers at the moment is not wholly internally automatable -- I wanted to introduce some more standard
machines to change that.
Axles:
@mdamien
mdamien / 0readme.md
Last active February 22, 2024 12:11
404 link detector with scrapy

List all the broken links on your website

Requirements:

python3 and scrapy (pip install scrapy)

Usage

  • scrapy runspider -o items.csv -a site="https://yoursite.org" 1spider.py
  • python3 2format_results.py
@DeflatedPickle
DeflatedPickle / MinecraftEnergyTypes.md
Last active June 10, 2024 11:00
A simple table for Minecraft energy types and a matrix for conversion rates.

Minecraft Energy Types


Energy Name Abbreviation Original Mod Version
Anima AM Anima-Mundi 1.11.2
Blutricity BE (NO) Redpower 1.6.4
Charge RP (NO)/Fz? Factorization 1.7.10
Crystal Flux CF Actually Additions 1.12
@ThamaraHessel
ThamaraHessel / vagas.md
Last active April 10, 2018 13:26
O que colocar na vaga ?

Descrição da vaga

  • Empresa X (links e culturas são diferenciais)
  • Nível desejado para a vaga (Estágio, Junior, Pleno, Senior).
  • Descrição da vaga (ferramentas e metodologias que vai trabalhar de VERDADE)
  • Faixa salarial (se possível)
  • Modo de contratação (CLT, Freelance, PJ, etc)

Local / Horário