Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "ng-cli://config/schema.json",
"title": "Angular CLI Workspace Configuration",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"version": {
@gregtaole
gregtaole / 13-wacom.rules
Created June 1, 2019 12:56
Wacom tablet udev rules
ACTION=="add", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0302", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/dinervoid/.Xauthority", RUN+="/home/dinervoid/.config/wacom/mapping.sh"
ACTION=="change", KERNEL=="BAT1", \
SUBSYSTEM=="power_supply", \
ATTR{status}=="Discharging", \
ATTR{capacity}=="[0-9]", \
ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/dinervoid/.Xauthority", \
ENV{DBUS_SESSION_BUS_ADDRESS}="unix:path=/run/user/1000/bus", \
ENV{XUSER}="dinervoid", \
RUN+="/usr/bin/su $env{XUSER} -c '/usr/bin/notify-send -u critical Discharging:$attr{capacity}%'"
ACTION=="change", KERNEL=="BAT1", \
@gregtaole
gregtaole / 11-disable-touchpad.rules
Created May 6, 2019 17:50
Disable laptop touchpad when USB mouse is plugged
ACTION=="add", ATTRS{idVendor}=="093a", ATTRS{idProduct}=="2521", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/dinervoid/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/home/dinervoid/Documents/udev_scripts/disable_touchpad.sh 1"
ACTION=="remove", ATTRS{idVendor}=="093a", ATTRS{idProduct}=="2521", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/dinervoid/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/home/dinervoid/Documents/udev_scripts/disable_touchpad.sh 0"
ʕ◔ϖ◔ʔ
U+0295, U+25D4, U+03D6, U+25D4, U+0294
package main
import (
"encoding/json"
"encoding/xml"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
@gregtaole
gregtaole / pyParseDep.go
Created June 18, 2018 10:12
Scrape https://docs.python.org/3/py-modindex.html to get list of python modules and then use the generated list to display dependencies of a python project
package main
import (
"bufio"
"flag"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
### Keybase proof
I hereby claim:
* I am gregtaole on github.
* I am gregtaole (https://keybase.io/gregtaole) on keybase.
* I have a public key ASCezwRRSWeaU6vQPcg-W3h-ogfnqag_kuSQhaozmQA7uAo
To claim this, I am signing this object: