Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# SPDX-License-Identifier: MIT
## Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Lockable script boilerplate
@wandernauta
wandernauta / sp
Last active July 10, 2024 07:57
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/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.
#
@satreix
satreix / custom_archlinux_live_USB.md
Last active July 28, 2024 20:02
Custom Arch Linux live USB

Custom Arch Linux live USB

Setup

Install the dependencies for the archiso package:

(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git

I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below. So, grab the most recent version from git and install it:

(user): git clone git://projects.archlinux.org/archiso.git && cd archiso

@parmentf
parmentf / GitCommitEmoji.md
Last active July 30, 2024 23:31
Git Commit message Emoji
@ndgnuh
ndgnuh / chainkey.lua
Last active March 27, 2021 07:46
Awesomewm: chaining (sequence) keybindings (4.x compatible)
local awful = require("awful")
-- return a keygrabber which do incremental keybinding
-- @param keybinding: a table that define the keybinding
-- @param persistkey: a string represent the persist toggle key (eg: Super_L)
-- @param stopkey: incase you (somehow) suddenly don't know what is happening and want to stop
local chainkey = function(keybinding, persistkey, stopkey)
stopkey = stopkey or "Escape"
local grabber = awful.keygrabber{
@alpteo
alpteo / semantic-commit-messages-with-emojis.md
Last active June 24, 2024 18:37
Semantic Commit Messages with Emojis

Semantic Commit Messages with Emojis

Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>

Example

:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^   ^---------------^  ^------^
|          |    |           |                  |
| | | | +--&gt; (Optional) Issue reference: if the commit closes or fixes an issue