start new:
tmux
start new with session name:
tmux new -s myname
/* | |
* Simple sound playback using ALSA API and libasound. | |
* | |
* Compile: | |
* $ cc -o play sound_playback.c -lasound | |
* | |
* Usage: | |
* $ ./play <sample_rate> <channels> <seconds> < <file> | |
* | |
* Examples: |
#!/usr/bin/env bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |
# ---------------------------------- | |
# Colors | |
# ---------------------------------- | |
NOCOLOR='\033[0m' | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
ORANGE='\033[0;33m' | |
BLUE='\033[0;34m' | |
PURPLE='\033[0;35m' | |
CYAN='\033[0;36m' |
All these are already installed on epyc.
kafkacat
(conda install -c conda-forge kafkacat
)
kt
(grab it from https://github.com/fgeller/kt/releases)
kafka-*
(come with kafka, if you yum install
if from Confluent's repo, or via Docker if you're so inclined). Warning -- JVM based and dreadfully slow.
jq
(conda install -c conda-forge jq
or use your favorite package manager)
#pragma once | |
#include <cstdint> | |
#if !defined(__ORDER_LITTLE_ENDIAN__) | |
#error "Only little endian systems are supported" | |
#endif | |
// All of these functions are constexpr (c++11 compatibile and above) | |
// Generated code - https://godbolt.org/z/Tz7Wvg | |
namespace byte_converter { |
100% brightness - 7W | |
40% brightness - 4.8W | |
0% brightness - 3.5W | |
0% brightness, all cores - 8.5W | |
100% brightness, all cores - 12.2W | |
40% brightness, youtube 480p, vp9 - 7.3W | |
40% brightness, youtube 720p, drop frames, vp9 - 10W | |
40% brightness, youtube 1080p, choppy, vp9 - 10W | |
40% brightness, youtube 480p, avc1 - 6.7W | |
40% brightness, youtube 720p, avc1 - 7W |