Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View michaelmrose's full-sized avatar
💭
Available to hire

Michael Rose michaelmrose

💭
Available to hire
View GitHub Profile
@michaelmrose
michaelmrose / guide
Created April 15, 2024 17:15
brightness service
Create a new systemd service file:
sudo nano /etc/systemd/system/brightness.service
Add the following to the file:
================================
[Unit]
#tabbrowser-tabs { visibility: collapse !important; }
#nav-bar {
background-color: black !important;
color: white !important;
}
#nav-bar toolbarbutton .toolbarbutton-icon {
fill: white !important; /* Change icon color */
background-color: black !important; /* Change background color */
}
#urlbar {
@michaelmrose
michaelmrose / colors.conf
Created February 6, 2024 23:02
hexchat colors
color_0 = ffff ffff ffff
color_1 = 4e4e 4e4e 4e4e
color_2 = a8a8 ffff 6060
color_3 = ffff 7373 fdfd
color_4 = 9696 cbcb fefe
color_5 = 7777 5454 3e3e
color_6 = 94bc 5925 ffff
color_7 = eaea 9595 1f1f
color_8 = ffff ffff b6b6
color_9 = a6a6 e2e2 2e2e
@michaelmrose
michaelmrose / script.sh
Created January 24, 2024 06:15
bash script
#!/usr/bin/env bash
cd /some/cool/directory
./executable
# This is a comment its not run
# this too
# now chmod +x /full/path/to/me
# free -h
total used free shared buff/cache available
Mem: 39Gi 23Gi 15Gi 866Mi 1.4Gi 15Gi
# Inxi -mxxx
Memory:
System RAM: total: 80 GiB available: 39.11 GiB used: 23.94 GiB (61.2%)
Array-1: capacity: 128 GiB slots: 4 modules: 4 EC: None
@michaelmrose
michaelmrose / rshift.sh
Last active October 8, 2023 22:52
basic redshift like implimentation with bash
#!/bin/bash
monitors=$(xrandr --listactivemonitors | tail -n +2 | awk '{print $4}')
# Get the current hour
if [ "$#" -eq 1 ]; then
current_hour="$1"
else

RESTful Routes to CRUD Mapping

Example resource: posts

HTTP Method
(Verb)
Path/Endpoint/URI CRUD Operation Typical
Controller Action
Has Data
Payload
GET /posts Read all posts index No
GET /posts/:id Read a specific post show No
POST /posts Create a new post create Yes
PUT /posts/:id Update specified post update Yes
#!/bin/sh
export USER="michael"
export HOME="/usr/home/michael"
export DISPLAY=:0
export DISPLAY=$(who|grep michael| choose 4|cut -c 2-3)
groups="$(id -Gn "$USER" | tr ' ' ':')"
svdir="$HOME/service/enabled"
@michaelmrose
michaelmrose / output.txt
Created May 13, 2022 18:37
output of xbps-install -Su
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/nonfree/x86_64-repodata' ...
libblkid-2.38_1 in transaction breaks installed pkg `util-linux-2.37.2_2'
libfdisk-2.38_1 in transaction breaks installed pkg `util-linux-2.37.2_2'
libmount-2.38_1 in transaction breaks installed pkg `util-linux-2.37.2_2'
libsmartcols-2.38_1 in transaction breaks installed pkg `util-linux-2.37.2_2'
libuuid-2.38_1 in transaction breaks installed pkg `util-linux-2.37.2_2'
Transaction aborted due to unresolved dependencies.
Downstream Channels
Power Level: Signal to Noise Ratio:
Channel 1: 10.0 dBmV 39.8 dB
Channel 2: 10.3 dBmV 40.0 dB
Channel 3: 10.4 dBmV 39.8 dB
Channel 4: 10.5 dBmV 39.9 dB
Channel 5: 10.7 dBmV 39.8 dB