This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller
This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller
Tested against the WebKit git repo by entering the repo with 1 file dirty.
git diff --quiet --ignore-submodules HEAD # Will tell if there are any uncomitted changes, staged or not.
0.6 sec
git diff-index --quiet HEAD # Only tracked
2 sec
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| typedef unsigned int u32; | |
| typedef unsigned long long u64; | |
| //------------------------------------------------------------------------- | |
| // WorkArea | |
| //------------------------------------------------------------------------- |
| def nth_percentile(dataset, percentile = 90): | |
| sorted_dataset = sorted(dataset) | |
| new_length = len(sorted_dataset) * percentile / 100 | |
| return sorted_dataset[0:new_length] | |
| def mean(dataset): | |
| return sum(dataset)/float(len(dataset)) | |
| dataset = [5, 9, 7, 101, 4, 8, 109, 104, 6, 1, 110, 106, 3, 107, 105, 2, 102, 10, 103, 108] | |
| percentile_90 = nth_percentile(dataset) |
| # prompt examples: | |
| # [3 jobs master virtualenv] ~/code/myproject/foo | |
| # [1 job my-branch virtualenv] ~/code/bar/ | |
| # [virtualenv] ~/code/ | |
| # ~ | |
| # Very, very fast, only requiring a couple of fork()s (and no forking at all to determine the current git branch) | |
| if [[ "$USER" == "root" ]] | |
| then | |
| export PS1="\[\e[1;31m\]\u \[\e[1;33m\]\w\[\e[0m\] "; |