Skip to content

Instantly share code, notes, and snippets.

View Ulexus's full-sized avatar

Seán C. McCord Ulexus

View GitHub Profile

Keybase proof

I hereby claim:

  • I am Ulexus on github.
  • I am ulexus (https://keybase.io/ulexus) on keybase.
  • I have a public key whose fingerprint is 7DDC 33D2 46B5 11E4 D6B2 18F9 0413 217B C711 F3A5

To claim this, I am signing this object:

@Ulexus
Ulexus / asterisk.service
Last active April 14, 2022 22:08
Asterisk systemd unit
[Unit]
Description=Asterisk PBX And Telephony Daemon
After=network.target
[Service]
User=asterisk
ExecStart=/usr/sbin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/sbin/asterisk -rx 'core stop now'
ExecReload=/usr/sbin/asterisk -rx 'core reload'
@Ulexus
Ulexus / bridge.go
Created November 11, 2016 18:57
Bridge onsolo
func (a app) wait(ctx context.Context) stateFn {
brSub := a.Bridge.Subscribe(ari.Events.ChannelLeftBridge)
defer brSub.Cancel()
err := a.Bridge.AddChannel(a.channel)
if err != nil {
a.log.Error("Failed to add caller to bridge", "error", err)
return a.failure
}

General

Items to keep go to front-right room. Trash bags are available in the front-right room, on the floor to the left of the fireplace. Mostly, the floors need to be swept, the trash thrown away, and the counters in the kitchen cleaned. The porch needs to be tidied up, moving the tables somewhere out of the way, put together and/or stacked.

Room tasks:

  • front-right room:
    • various paper debris on floor: trash
    • roll of plastic wrap: keep
    • UPS/power strips: keep
  • recycling bin: keep
@Ulexus
Ulexus / azure-controller-manager.yaml
Last active August 24, 2021 18:04
azure-cloud-manager.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: cloud-controller-manager
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:cloud-controller-manager
@Ulexus
Ulexus / talos-kernel-stuff.md
Created November 30, 2021 20:53 — forked from RealityAnomaly/talos-kernel-stuff.md
Adding a proprietary kernel module to Talos OS

Adding a proprietary kernel module to Talos OS

  1. Patching and building the kernel image
    1. Clone the pkgs repository from Github and check out the revision corresponding to your version of Talos OS
      git clone https://github.com/talos-systems/pkgs pkgs && cd pkgs
      git checkout v0.8.0
    2. Clone the Linux kernel and check out the revision that pkgs uses (this can be found in kernel/kernel-prepare/pkg.yaml and it will be something like the following: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-x.xx.x.tar.xz)
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlOREExTWpJeApOalF5TlRKYUZ3MDBOREExTWpJeE5qUXlOVEphTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFEZXZ4WW5mTmYyazN4RDNBa3ZFMGRlbXBnSi9GZ1FubGk1MEE3YU5uMXNJOVA3S3pxVQo3SHNDK1IwUjNKNmhEN2MxSVNiVFBLcFo0RFRWVTQ4OUFHci9wQnZtOEVVZlcxQlNydGhCN1ZLdHpWNzdNSUdmCmNONkpTTFRZenhhRU4yL0RjM2pQRStaOEdPM3FUbitNK1hZa0RmcEdNRVEzc1ZPRGt5dCtkLzVhbld1WXJ2ZVEKZXloUUhjbWpyM1Jjc056YjVGN2VGWnVNemwyQzNGYldlaFZVS3dFSHNqRnBaeSt5Z3dCSHMycEZzY0RBNURiQwo1VXNwNlN1Mm9ITGxod1dXQm5kQkJrK1VnNGROaDRRQ2g5U3Bvc3RTOW9FOXNzOEdIRUNVdG1IZmNNZ0I2b3VDCkhXVDBjZ2FFZWphT2cxOUNIbU13R1N2aHdjZTAyRGlsWlhzMUFnTUJBQUdqUlRCRE1BNEdBMVVkRHdFQi93UUUKQXdJQmhqQVNCZ05WSFJNQkFmOEVDREFHQVFIL0FnRUFNQjBHQTFV