Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Victor Martins prescindivel

🏠
Working from home
View GitHub Profile
View reset_cache.sh
#!/bin/sh
BLUE='\033[0;34m'
NC='\033[0m'
TMPDIR=/tmp
echo "${BLUE}==>1. Remove Watchman cache ${NC}"
watchman watch-del-all
echo "${BLUE}==>2. Remove cache and node_module${NC}"
@prescindivel
prescindivel / get_postscriptname_font.sh
Created Jan 24, 2020
Get postscriptname from fonts, run in font direrectory
View get_postscriptname_font.sh
for file in "$arg"*.{ttf,otf}; do fc-scan --format "%{postscriptname}\n" $file; done
@prescindivel
prescindivel / 51-android.rules
Created Feb 9, 2018 — forked from jdamcd/51-android.rules
Full set of Android USB vendor ID rules for Linux
View 51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" #Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" #ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" #Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" #Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" #Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" #Google
SUBSYSTEM=="usb", ATTR{idVendor}=="201E", MODE="0666", GROUP="plugdev" #Haier
SUBSYSTEM=="usb", ATTR{idVendor}=="109b", MODE="0666", GROUP="plugdev" #Hisense
You can’t perform that action at this time.