sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
minikube stop; minikube delete
docker stop $(docker ps -aq)
rm -r ~/.kube ~/.minikube
sudo rm /usr/local/bin/localkube /usr/local/bin/minikube
systemctl stop '*kubelet*.mount'
sudo rm -rf /etc/kubernetes/
docker system prune -af --volumes
" Vim integration with IPython 0.11+ | |
" | |
" A two-way integration between Vim and IPython. | |
" | |
" Using this plugin, you can send lines or whole files for IPython to execute, | |
" and also get back object introspection and word completions in Vim, like | |
" what you get with: object?<enter> object.<tab> in IPython | |
" | |
" ----------------- | |
" Quickstart Guide: |
#!/bin/bash | |
gfortran -o $2 -fno-underscoring $1 libhgraph.a libg2c.so -L/usr/X11R6/lib64 -lX11 |
#!/bin/bash | |
gfortran -o $2 -fno-underscoring $1 libhgraph.a libg2c.so -L/usr/X11R6/lib64 -lX11 |
Last Update: May 13, 2019
Offline Version
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
from base64 import b64encode, b64decode | |
def decode_key(key): | |
key, secret = key.split('|') | |
key = b64decode(key) | |
key = [ord(x) for x in key] | |
secret = b64decode(secret) | |
s = range(256) |
#!/usr/bin/python2 | |
# Copyright (C) 2016 Sixten Bergman | |
# License WTFPL | |
# | |
# This program is free software. It comes without any warranty, to the extent | |
# permitted by applicable law. | |
# You can redistribute it and/or modify it under the terms of the Do What The | |
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See |
function [maxtab, mintab]=peakdet(v, delta, x) | |
%PEAKDET Detect peaks in a vector | |
% [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local | |
% maxima and minima ("peaks") in the vector V. | |
% MAXTAB and MINTAB consists of two columns. Column 1 | |
% contains indices in V, and column 2 the found values. | |
% | |
% With [MAXTAB, MINTAB] = PEAKDET(V, DELTA, X) the indices | |
% in MAXTAB and MINTAB are replaced with the corresponding | |
% X-values. |