1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
// nats kv add config | |
// nats kv create config host localhost | |
// nats kv create config port 8080 | |
type AppConfig struct { | |
Host string `natsKey:"host" natsDefault:"localhost"` | |
Port int64 `natsKey:"port" natsDefault:"8080"` | |
} |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
ps -eo size,pid,user,command --sort -size | \ | |
awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |\ | |
cut -d "" -f2 | cut -d "-" -f1 |
#!/bin/bash | |
sink=alsa_output.pci-0000_0a_00.4.analog-surround-21 | |
# pactl set-default-sink alsa_output.pci-0000_0a_00.4.analog-surround-21 | |
# usage | |
# chmod +x sound.sh | |
# sound.sh <function> | |
default(){ | |
pactl set-default-sink $sink | |
} |
import logging | |
from typing import Callable | |
logging.basicConfig(level=logging.DEBUG) | |
logging.getLogger("sqlalchemy.engine").setLevel(logging.INFO) | |
import os | |
from slack_bolt import App, BoltContext, Ack | |
from slack_bolt.adapter.flask import SlackRequestHandler | |
from slack_bolt.oauth.oauth_settings import OAuthSettings |
@a = 1 |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
package actors | |
import akka.actor.Actor | |
import akka.actor.Props | |
import akka.event.Logging | |
import indexing.{TopicIndexManager, TopicIndex} | |
/** | |
* | |
* User: apande |