Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
W O R K I N G

Thomas Leon Highbaugh Thomashighbaugh

:octocat:
W O R K I N G
View GitHub Profile
View icon-optimizer.sh
#!/bin/bash
# --------------------------------------------------- #
# --------------------------------------------------- #
cd actions/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd apps/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd devices/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd emblems/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd mimetypes/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd places/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd status/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
@Thomashighbaugh
Thomashighbaugh / convert.sh
Created Apr 8, 2022
A script I use to convert all my fonts from OTF/TTF to WOFF/WOFF2/EOT
View convert.sh
#!/bin/bash
# Author: Thomas Leon Highbaugh
# Description: Assuming you have the dependencies installed,
# this will convert your various OTF fonts to TTF than all your TTF fonts to WOFF,
# WOFF2 and EOT. This streamlines including fonts on websites, though consult with
# the font's license before using them for such!
#
# Dependencies:
# npm:
# - ttf2woff
@Thomashighbaugh
Thomashighbaugh / ava-full-node-steps.md
Created Dec 28, 2021 — forked from cgcardona/ava-full-node-steps.md
Steps for firing up an Avalanche full node
View ava-full-node-steps.md

Steps for firing up a full Avalanche node

Avalanche is an open-source platform for launching highly decentralized applications, financial primitives, and interoperable blockchains.

These are steps for firing up an Avalanche full node on Digital Ocean.

Digital Ocean Ubuntu Instance

ssh into a Digital Ocean Ubuntu box

@Thomashighbaugh
Thomashighbaugh / installing-brave-on-void-linux.md
Created Dec 27, 2021
For anyone trying to install Brave Browser on Void Linux, cross-post from Reddit
View installing-brave-on-void-linux.md

Installing Brave Browser on Void Linux

For anyone curious in the future:

Yes, you can relatively easily install brave browser on void linux, if that is somehow a non-negotiable for you fear not. There are three methods that I am aware of:

  1. Add this template file to your fork of void-packages locally and build the ./xbps-src package like any other.

  2. Use flatpak, which I need not explain since instructions are on the flathub listing itself. (Note: will be isolated from the system which can be a bit of a pain, especially using things like keepassxc)

@Thomashighbaugh
Thomashighbaugh / copy-script.sh
Created Jul 19, 2021
Responding to a Newbie Question from Reddit, I wrote out the script instead of being a jerk and having the person do it themselves with tedious instructions. Was great practice.
View copy-script.sh
#!/bin/bash
echo "Path to the directory you would like to copy the names of the files to clipboard from please"
read DIR
ls $DIR > /tmp/names.txt
xclip -sel clip /tmp/names.txt
rm /tmp/names.txt