Skip to content

Instantly share code, notes, and snippets.

@ultrabug
ultrabug / py3status.conf
Created Jul 13, 2019
My py3status config
View py3status.conf
# py3status
general {
color_bad = "#dc322f"
color_degraded = "#cb4b16"
color_good = "#859900"
color_separator = "#586e75"
colors = true
interval = 60
markup = "pango"
View keybase.md

Keybase proof

I hereby claim:

  • I am ultrabug on github.
  • I am ultrabug (https://keybase.io/ultrabug) on keybase.
  • I have a public key whose fingerprint is FC67 E34A 9462 2AD7 DB97 945C 46B1 70C0 45A8 AFE5

To claim this, I am signing this object:

@ultrabug
ultrabug / dask_scylla_hive.py
Created Feb 23, 2018
Blog post: Evaluating ScyllaDB for production 2/2
View dask_scylla_hive.py
#!/usr/bin/env python3.5
from time import time
import dask.dataframe as dd
import pandas as pd
from cassandra.cluster import Cluster
from cassandra.concurrent import execute_concurrent
from cassandra.policies import ConstantReconnectionPolicy
@ultrabug
ultrabug / helper.py
Created May 26, 2016
_Ultrabot helper module
View helper.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import random
import re
from sopel.module import priority, rate
# list of all the regexes and their associated responses
regexes = [
View cheaper.py
# -*- coding: utf-8 -*-
from flask import Flask
from time import sleep
import uwsgi
app = Flask(__name__)
@app.route('/')
@ultrabug
ultrabug / C client build.log
Last active Aug 29, 2015
aerospike-client-python issue47
View C client build.log
* Package: dev-libs/libaerospike-3.1.11
* Repository: ultrabug
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux luajit static-libs userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
* Package: dev-libs/libaerospike-3.1.11
* Repository: ultrabug
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux luajit static-libs userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
GIT update -->
View i3status.conf
load {
format = "%5min"
}
general {
color_degraded = "#cb4b16"
output_format = "i3bar"
interval = "10"
color_bad = "#dc322f"
colors = "true"
color_good = "#859900"
@ultrabug
ultrabug / test_kill.ini
Last active Apr 21, 2020
uwsgi-2.0.x emperor not killing spooler processes example code and ini
View test_kill.ini
[uwsgi]
plugins = python27
socket = 127.0.0.1:3090
master = true
enable-threads = true
log-syslog = uwsgi.test
disable-logging = true