Download arkade, then crane:
curl https://get.arkade.dev | sudo sh
sudo -E arkade oci install ghcr.io/openfaasltd/vmmeter:latest --path /usr/local/bin/
Start the vmmeter in the background:
I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.
The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.
You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser | |
from sklearn.datasets import make_classification | |
from sklearn.decomposition import PCA | |
from sklearn.manifold import LocallyLinearEmbedding | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.svm import SVC | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import accuracy_score | |
from gooey import Gooey |
# Marchenko-Pastur distribution | |
# see https://en.wikipedia.org/wiki/Marchenko%E2%80%93Pastur_distribution | |
def marchenko_pastur(x, c, var=1.0): | |
''' | |
Marchenko-Pastur PDF. | |
Arguments: | |
x: independent variable, | |
c: phase transition parameter, |
#!/usr/bin/env python3 | |
# python3 update of https://gist.github.com/dergachev/7028596 | |
# Create a basic certificate using openssl: | |
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
# Or to set CN, SAN and/or create a cert signed by your own root CA: https://thegreycorner.com/pentesting_stuff/writeups/selfsignedcert.html | |
import http.server | |
import ssl | |
httpd = http.server.HTTPServer(('127.0.0.1', 443), http.server.SimpleHTTPRequestHandler) |
" Language Specific scratch buffers with date | |
" --------------------------------------------------------------------------------- | |
function! s:DScratch(scratch_ft) | |
let scratch_dir = '~/Dropbox/scratch/buffers' | |
let scratch_date = strftime('%Y%m%d') | |
let scratch_file = 'scratch-'. scratch_date . '.' . a:scratch_ft | |
let scratch_buf = bufnr(scratch_file) | |
if scratch_buf == -1 | |
exe 'split ' . scratch_dir . '/' . scratch_file |
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker | |
#: Fonts {{{ | |
#: kitty has very powerful font management. You can configure | |
#: individual font faces and even specify special fonts for particular | |
#: characters. | |
font_family JetBrains Mono Medium | |
bold_font JetBrains Mono Bold |
First of all, install a nerd font, and apply it: nerd font
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript | |
*/ | |
function getTitle() { | |
var re = /^Humble\ Book\ Bundle\:\ (.*)\ \(/g; | |
return re.exec(document.title)[1]; | |
} |