This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/share/libinput/50-system-lenovo.quirks | |
[P1 Gen 2 slash X1E Gen2] | |
MatchUdevType=pointingstick | |
MatchName=*TPPS/2 Elan TrackPoint* | |
MatchDMIModalias=dmi:*:* | |
AttrTrackpointMultiplier=0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install xmodmap from x11-xserver-utils | |
# xmodmap ~/.Xmodmap | |
! Capslock is another escape | |
remove Lock = Caps_Lock | |
keysym Caps_Lock = Escape | |
add Lock = Caps_Lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -x | |
# create empty image | |
truncate -s500m build/alpine-vm-arm64.img | |
# Format the image with a gpt table | |
parted -s build/alpine-vm-arm64.img mktable gpt | |
# bootable partiton | |
parted -s build/alpine-vm-arm64.img mkpart ext4 1 "100%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:14.17.0 AS install | |
WORKDIR /app | |
COPY ["package.json", "yarn.lock", "./"] | |
COPY . . | |
RUN yarn install | |
RUN yarn build | |
ENV NODE_ENV=production | |
FROM node:14.17.0-alpine as run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pull out instance of a class from moduleContainer | |
// 'nicer' alternative to globals | |
// loops over all instances in a module, so probably don't do this at runtime | |
import {Injectable, Inject} from "@nestjs/common"; | |
import {ConfigType} from "@nestjs/config"; | |
import {ModulesContainer} from "@nestjs/core"; | |
import {InstanceWrapper} from "@nestjs/core/injector/instance-wrapper"; | |
const config.name = 'MyInjectedClass'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AMD EGPU EJECT GNOME | |
# I offer absolutely no warranty using this software | |
# Instructions: | |
# - Ctrl + Alt + F2 to enter console | |
# - run script as root | |
# - wait 5 seconds and unplug your egpu | |
# - wait for gdm to restart | |
#!/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##BEERWARE LICENSE" (Revision 42): | |
# github.com/xtenduke wrote this code. As long as you retain this | |
# notice, you can do whatever you want with this stuff. If we | |
# meet someday, and you think this stuff is worth it, you can | |
# buy me a beer in return. | |
# ------------------------------------------------------------ | |
#!/bin/bash | |
count='0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ------------------------------------------------------------ | |
* "THE BEERWARE LICENSE" (Revision 42): | |
* github.com/xtenduke wrote this code. As long as you retain this | |
* notice, you can do whatever you want with this stuff. If we | |
* meet someday, and you think this stuff is worth it, you can | |
* buy me a beer in return. | |
* ------------------------------------------------------------ | |
* | |
* This class is designed implement a 'similar' structure to TableView sections from iOS UIKit |