Skip to content

Instantly share code, notes, and snippets.

View aRmanNM's full-sized avatar
🏠
Working from home

Arman Naeimi aRmanNM

🏠
Working from home
View GitHub Profile
@aRmanNM
aRmanNM / acer_laptop_linux.md
Created February 7, 2024 06:37
Acer A515-57G Quanta Webcam 0x4033 Fix On Linux
  • install kernel header files and build tools
# debian
sudo apt install linux-headers-amd64 build-essentials

# 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();
}