Skip to content

Instantly share code, notes, and snippets.

View aRmanNM's full-sized avatar

Arman Naeimi aRmanNM

View GitHub Profile
@aRmanNM
aRmanNM / custom_block_for_i3_status_bar.md
Last active December 12, 2025 13:16
add custom block to i3 status bar (minimal with simple wrapper script)

copy i3status.conf file to your .config path (~/.config/i3status/config)

mkdir ~/.config/i3status
cp /etc/i3status.conf ~/.config/i3status/config

update config file to allow json output (also add your desired changes here):

@aRmanNM
aRmanNM / acer_laptop_linux.md
Last active January 24, 2025 13:53
Acer A515-57G Quanta Webcam 0x4033 Fix On Linux
  • install kernel header files and build tools
# debian
sudo apt install linux-headers-amd64 build-essential

# fedora (might not be accurate!)
sudo dnf install kernel-devel<kernel_version>
  • check current kernel version
@aRmanNM
aRmanNM / docker-compose.yml
Created December 23, 2022 08:40
grafana + prometheus + node_exporter
version: '3.8'
networks:
monitoring:
driver: bridge
volumes:
prometheus_data: {}
grafana_data: {}
@aRmanNM
aRmanNM / book-store-service.ts
Created April 5, 2021 07:23
Observable Data Service
@Injectable({
providedIn: 'root'
})
export class BookStoreService {
private _books = new BehaviorSubject<Book[]>([]);
public readonly books$: Observable<Book[]> = this._books.asObservable();
constructor(private bookBackend: BookBackendService) {
this.getBooks();
}