Skip to content

Instantly share code, notes, and snippets.

View muokicaleb's full-sized avatar
🎯
Focusing

Muoki Caleb muokicaleb

🎯
Focusing
View GitHub Profile
autoload -Uz compinit
compinit
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source ~/powerlevel10k/powerlevel10k.zsh-theme
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Generated by Powerlevel10k configuration wizard on 2024-08-23 at 09:58 EAT.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 2750.
# Wizard options: compatible, classic, unicode, dark, 24h time, flat heads, flat tails,
# 2 lines, solid, left frame, sparse, fluent, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
# Tip: Looking for a nice color? Here's a one-liner to print colormap.
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
-- my coolnight colorscheme
config.colors = {
#!/bin/bash
# bash script to install broadcom drivers
if (( $EUID != 0 )); then
echo "You need to run script as root"
exit
fi
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
apt-get -y update
apt-get -y install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

Keybase proof

I hereby claim:

  • I am muokicaleb on github.
  • I am muoki (https://keybase.io/muoki) on keybase.
  • I have a public key ASBAFfmFTkP-0IcjaNZte1BzpVOhXbARpjSNrpOtHloD0Qo

To claim this, I am signing this object:

@muokicaleb
muokicaleb / wpa_supplicant.conf
Created December 22, 2021 09:10 — forked from AlexLynd/wpa_supplicant.conf
Raspberry Pi headless WiFi configuration file
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="network"
psk="password"
key_mgmt=WPA-PSK
}
# UDEV Rules for Micronucleus boards including the Digispark
# This file must be placed at:
#
# /etc/udev/rules.d/49-micronucleus.rules (preferred location)
# or
# /lib/udev/rules.d/49-micronucleus.rules (req'd on some broken systems)
#
# After this file is copied, physically unplug and reconnect the board.
#
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666"
#include "DigiKeyboard.h"
#define KEY_TAB 0x2B
#define KEY_ESCAPE 0x29
void setup() {
DigiKeyboard.delay(1000); // 1s delay
// open terminal
DigiKeyboard.sendKeyStroke(KEY_T, MOD_ALT_RIGHT | MOD_CONTROL_LEFT);
DigiKeyboard.delay(500);
version: '3.7'
volumes:
grafana_data: {}
services:
grafana:
image: grafana/grafana
ports:
global:
scrape_interval: 15s
scrape_configs:
- job_name: node
basic_auth:
username: prometheus
password: password
static_configs:
- targets: ['192.168.100.74:9100']