Bookmarks for myself
For oculink stuff: https://www.minerva.com.tw/
Bookmarks for myself
For oculink stuff: https://www.minerva.com.tw/
import childProcess from 'child_process' | |
import fs from 'fs' | |
import path from 'path' | |
import ts from 'typescript' | |
import { fileURLToPath } from 'url' | |
const PATH_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..') | |
const PATH_TYPES_SOURCE = path.join(PATH_ROOT, 'src', 'types.ts') | |
const PATH_TYPES_OUTPUT = path.join(PATH_ROOT, 'src', 'types.output.d.ts') |
I'm using this for my Razer Blade 17 Pro 2020 to keep the brightness slider in Ubuntu GNOME up to date with the actual brightness of the display.
It's not pretty but it works. Remember to add this to your startup (gnome-session-properties
).
Licensed under MIT. Use however.
// Usage: node index.js | |
// Requires: npm install rgb-hex xml2json | |
// Requires color profile to be placed as Profile.itermcolors | |
// in same directory | |
const fs = require('fs') | |
const path = require('path') | |
const rgbHex = require('rgb-hex') | |
const { toJson } = require('xml2json') |
#!/bin/bash | |
# Usage: | |
# git-post-pr | |
# Description: | |
# Deletes local branch (doesn't force so you won't lose local if not pushed remotely) | |
# Fetches remote so local remote branch is deleted | |
# Switches to master | |
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)" |