Skip to content

Instantly share code, notes, and snippets.

@riivanov
riivanov / 30-touchpad.conf
Created February 4, 2023 20:32
/etc/X11/xorg.conf.d - Enable tapping on Lenovo Thinkpad E15 Gen2
View 30-touchpad.conf
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
EndSection
@riivanov
riivanov / .etc.profile
Created February 4, 2023 20:30
/etc/profile with startup root apps modifications at the bottom
View .etc.profile
# /etc/profile
# Set our umask
umask 022
# Append "$1" to $PATH when not already in.
# This function API is accessible to scripts in /etc/profile.d
append_path () {
case ":$PATH:" in
*:"$1":*)
@riivanov
riivanov / todo.entity.ts
Created February 1, 2023 16:36
Todo entity that is both an ORM entity, and part of a GQL schema definition
View todo.entity.ts
import { Field, ID, InputType, ObjectType } from "type-graphql";
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@ObjectType()
@Entity()
export class Todo {
@Field()
@PrimaryGeneratedColumn()
id: number;