Skip to content

Instantly share code, notes, and snippets.

@m93a
m93a / bash.bat
Created Nov 7, 2017
Enable bash.exe for 32-bit programs
View bash.bat
@echo off
rem To use bash seamlessly from 32bit apps,
rem add this file to your %PATH%.
if exist C:\Windows\Sysnative\bash.exe (
start "bash.exe" /D "%cd%" /B /wait "C:\Windows\Sysnative\bash.exe" %*
) else (
start "bash.exe" /D "%cd%" /B /wait "C:\Windows\System32\bash.exe" %*
)
@show0k
show0k / install_git_lfs.sh
Last active Mar 5, 2019
Compile and Install git-lfs on Raspberry Pi (with golang compilation)
View install_git_lfs.sh
install_git_lfs()
{
set -e
# Get out if git-lfs is already installed
if $(git-lfs &> /dev/null); then
echo "git-lfs is already installed"
return
fi
GIT_LFS_BUILD=$HOME/.bin
@wandernauta
wandernauta / sp
Last active Jun 14, 2021
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@bradley219
bradley219 / .gitignore
Last active Jun 15, 2021
PID C++ implementation