Based on: https://gist.github.com/kevin-smets/8568070
This gist outlines the steps needed to setup zsh, ohmyzsh and the powerlevel10k theme, available for anyone to follow.
-
Setup required dependencies
# update packages sudo apt update
{ | |
"version": 1, | |
"key": "broadlink_remote_a043b0XXXXXX_codes", | |
"data": { | |
"tv": { | |
"volume up": "JgBIAAABKJEVEBUQFTUVEBYQFRAVEBUQFTUWNRUQFTUVNhU1FTUVNhUQFTUVEBUQFREVEBUQFRAVNRYPFjUVNRU1FjUVNRU1FgANBQ==", | |
"volume_up": "JgBQAAABKJETEhUQFTUVEBURFBEVEBUQFTUUNxMSFTUVNhQ2FTUVNhQRFDYVEBUQFREUERQRFRAVNRURFDYUNhU1FjUWNBQ2FQAFHgABKUgVAA0F", | |
"volume_down": "JgBIAAABKJAWEBQRFTUVEBUQFREUERQRFTUVNhQRFTUVNRU2FTUVNhM3EzcVEBUQFREUERQRFRAVEBUQFTYUNhU1FDcUNhU1FQANBQ==", | |
"mute": "JgBIAAABJ5EWDxURFDYVEBUQFRAVERQRFTUVNRURFDYVNRU2FDYWNBU1FREVEBU1FRAVERQRFBEVEBU1FTYVEBU1FTUVNhU1FQANBQ==", | |
"input": "JgBIAAABJ5EWDxURFDYVEBUQFg8VERQRFDYVNRURFDYWNBU2FDYVNRU2FDYVEBU1FRAVERQRFRAVEBUQFTYUERU1FTUVNhQ2FQANBQ==", |
Based on: https://gist.github.com/kevin-smets/8568070
This gist outlines the steps needed to setup zsh, ohmyzsh and the powerlevel10k theme, available for anyone to follow.
Setup required dependencies
# update packages
sudo apt update
""" | |
This file is based on https://github.com/foresmac/django-binaryuuidfield/tree/initial-setup | |
""" | |
import uuid | |
from django import forms | |
from django.core import exceptions | |
from django.db import models | |
from django.utils.translation import ugettext_lazy as _ |
To Use FontAwesome | |
1. Download Free FontAwesome fonts from website, grab the "Web" fonts. URL:https://fontawesome.com/download | |
2. Unzip and copy the font file into both Android and IOS projects. Verify build action. | |
a. For IOS add entry to info.plist at bottom before </dict> element. | |
<key>UIAppFonts</key> | |
<array> | |
<string>fa-solid-900.ttf</string> | |
</array> |
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
/* | |
* Adds a team to all the repos in a Github organization. This is a tedious | |
* process in the UI. You'll need a newer version of node to run this (e.g 9+) | |
* because it uses async/await. | |
* | |
* Instructions: | |
* | |
* 1. Copy this file somewhere on your computer, e.g. ~/addteamrepos.js | |
* 2. Fill in the uppercase variables below with the right values | |
* 3. Run this file: `$ node ~/addteamrepos.js` |
Reasonable default configuration for a web app that uses Django and the following dependencies:
This is my goto for setting up projects.
# Install tmux on rhel/centos 7 | |
# What do we want? | |
libeventversion=2.1.11 | |
tmuxversion=3.1 | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL |
# Use an official centos7 image | |
FROM centos:7 | |
RUN localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8 | |
ENV LANG fr_FR.utf8 | |
# gcc because we need regex and pyldap | |
# openldap-devel because we need pyldap | |
RUN yum update -y \ | |
&& yum install -y https://centos7.iuscommunity.org/ius-release.rpm \ |
I’ve since written a full blog on this particular Single Message Transform. It can be found at See also https://rmoff.net/2020/12/17/twelve-days-of-smt-day-8-timestampconverter/