Skip to content

Instantly share code, notes, and snippets.

View Mindtrip-Inno's full-sized avatar

Mindtrip-Inno

View GitHub Profile
@ironlungx
ironlungx / nvim-pio.md
Last active May 10, 2025 20:06
PlatformIO with Neovim

Caution

I've moved this gist over to a template repository here. Everything here is unmaintained...

Extensions

Following are the extensions required for neovim:

@aiguofer
aiguofer / README.md
Last active January 6, 2025 17:05
Polybar module for Google Play Music Desktop Player

I've been making an effort for a while to hit like on songs I like, mainly so I can always fail over to a playlist of liked songs. I generally use GPMDP as my main player and Polybar as my taskbar. I control my media player using playerctl and a while back I wrote songliker to set up a shortcut to like my songs. I decided to put it all together into a neat little polybar module and thought others might enjoy this.

I'm including the necessary files to do this yourself, although this might not work for you 'as-is' since I have a pretty customized systemd service management set up. Easiest way would be to just ignore the systemd stuff and just add an exec now_playing, but I'm including it here in case you want to use it and just modify that.

This will display the currently playing song in your bar in the following format {artist} - {song} | {liked?}. It uses Nerd Font symbols for a prefixing musical note and a thumbs up outline if not liked, or full if liked. It wi

@iankronquist
iankronquist / i3toswayarchmigration.md
Created October 20, 2017 18:16
Migrating from i3 to Sway on Arch Linux

Migrating from i3 to Sway on Arch Linux

Refer to the arch wiki: https://wiki.archlinux.org/index.php/Sway

  1. Install packages: pacman -S sway weston
  2. Copy configuration:
mkdir -p ~/.config/sway
cp ~/.i3/config ~/.config/sway/config
  1. When you log in, start sway:
@jrialland
jrialland / cross-compile.txt
Created September 22, 2015 16:25
Recipe that allows to cross-compile a window(32bits) .exe out of a python script under linux.
#recipe from https://milkator.wordpress.com/2014/07/19/windows-executable-from-python-developing-in-ubuntu/
# allows to cross-compile a window(32bits) .exe out of a python script under linux.
cat > test.py <<< EOF
print "hello world !"
EOF
apt-get install scons wine
git clone https://github.com/pyinstaller/pyinstaller
@christianroman
christianroman / training.sh
Last active November 22, 2024 21:52
Tesseract OCR training new font
#! /bin/bash
# build the environment
mkdir tessenv; cd tessenv
TROOT=`pwd`
mkdir $TROOT/stockfonts; mkdir $TROOT/build; mkdir $TROOT/build/eng
echo "Environment built"
# Get the stock english fonts from Google (old, but they work)
cd $TROOT/stockfonts
GET http://tesseract-ocr.googlecode.com/files/boxtiff-2.01.eng.tar.gz > boxtiff-2.01.eng.tar.gz