based on rage-quit support for bash
Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck
Also chmod a+x the flip command.
| # -*- coding=utf-8 -*- | |
| import feedparser | |
| import re | |
| import collections | |
| import math | |
| def info_entropy(words): | |
| result = 0 | |
| total = sum([val for _, val in words.iteritems()]) | |
| for word, cnt in words.iteritems(): |
based on rage-quit support for bash
Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck
Also chmod a+x the flip command.
| #!/usr/bin/env python | |
| # | |
| # Converts any integer into a base [BASE] number. I have chosen 62 | |
| # as it is meant to represent the integers using all the alphanumeric | |
| # characters, [no special characters] = {0..9}, {A..Z}, {a..z} | |
| # | |
| # I plan on using this to shorten the representation of possibly long ids, | |
| # a la url shortenters | |
| # |
| Retired in favor of https://godoc.org/github.com/larsmans/algo/container/lru |
| #!/bin/bash | |
| # | |
| # IMPORTANT! | |
| # At the moment this script is forged only for Debian ( tested on 8.x release ). | |
| # Although my efforts were put on building this also on Arch Linux or Alpine, at the moment only Debian seems to be able to build it. | |
| # Also, not sure why these instructions where nowhere on the internet, therefore I leave them here for whoever need them. | |
| # | |
| ########### | |
| # Add Backports repo support |
This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:
cd /tmp