1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
#!/usr/bin/python | |
from __future__ import print_function | |
import os | |
import sys | |
import OpenGL | |
# OpenGL.USE_ACCELERATE = False | |
# OpenGL.ERROR_CHECKING = False | |
from OpenGL.GLUT import * | |
from OpenGL.GLU import * |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
version: "2" | |
services: | |
my-wpdb: | |
image: mariadb | |
ports: | |
- "8081:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: ChangeMeIfYouWant | |
volumes: | |
- mariadb:/var/lib/mysql |
The project is split into several parts:
// This will works on Embedded GPU that implements .gem_prime_mmap like Rockchip ones. | |
// This will fail on most DRM drivers for GPU with dedicated memory as they tend to NOT implement .gem_prime_mmap. | |
#include <stdio.h> | |
#include <libdrm/drm.h> | |
#include <stdint.h> | |
#include <sys/mman.h> | |
#include <string.h> |
#!/usr/bin/env python | |
# Copyright (c) 2017 Kurt Jacobson | |
# License: https://kcj.mit-license.org/@2017 | |
import os | |
import gi | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('Gdk', '3.0') |
#!/bin/bash | |
# Written by Antony Lee (@anntzer). | |
set -e | |
PYTHON_VERSION=36 | |
PIP="/opt/python/cp$PYTHON_VERSION-cp${PYTHON_VERSION}m/bin/pip" | |
if ! [[ -e "$PIP" ]]; then | |
# Not in the manylinux image yet: call self from within docker. | |
docker run -it \ |
## Systemd user unit file for pulseaudio-dlna | |
# Copy to: ~/.config/systemd/user/pulseaudio-dlna.service | |
# Enable: systemctl --user enable pulseaudio-dlna | |
[Unit] | |
Description=PulseAudio-DLNA Service | |
[Install] | |
WantedBy=default.target |
program firetest; | |
{ Classic fire animation using VGA mode 13h and colors 0 to 63... wee !!! } | |
uses Crt, VGA; | |
var i, heat: Integer; | |
quit: Boolean; | |
c: Char; |
from celery.task.control import revoke | |
from celery.task.control import inspect | |
def revoke_tasks_by_name(task_name, worker_prefix=''): | |
""" | |
Revoke all tasks by the name of the celery task | |
:param task_name: Name of the celery task | |
:param worker_prefix: Prefix for the worker |