This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Spotify Linux mpris:artUrl patcher | |
# by Giacomo Furlan | |
# spotify-mpris-art-fix.py | |
import argparse | |
import os | |
import re | |
import shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ensure xbindkeys is installed | |
whichXbindkeys=$(which xbindkeys 2>/dev/null) | |
if [ "${whichXbindkeys}" == "" ]; then | |
sudo dnf install xbindkeys | |
fi | |
# Create the xbindkeys auto-start symlink | |
if ! [ -f ~/.config/autostart-scripts/xbindkeys ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Packages | |
apm install \ | |
autoclose-html \ | |
autocomplete-modules \ | |
busy-signal \ | |
ctrl-dir-scroll \ | |
file-icons \ | |
goto-definition \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
FONTAWESOME_DOWNLOAD_URL="https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.zip" | |
POWERLINE_DOWNLOAD_URL="https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf" | |
TMP=`mktemp -d` | |
cd $TMP | |
mkdir -p ~/.fonts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ko.updateModel = (model, data, path, callback) -> | |
isObject = (obj) -> | |
typeof obj is 'object' and !Array.isArray obj | |
return if not isObject data | |
callbackIsFunction = (typeof callback) is 'function' | |
for k, v of data | |
branchPath = path + "." + k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MogIt { | |
private $charset; | |
private $base; | |
private $maxlen; | |
function __construct($charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", $maxlen = 3) | |
{ | |
$this->charset = $charset; | |
$this->base = strlen($charset); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function echoStep { | |
echo -e "\n\t$1\n" | |
} | |
type lessc >/dev/null 2>&1 || { echoStep "I require lessc but it's not installed or it's not in PATH. Please install it before continuing."; exit; } | |
lessc=$(which lessc) |