NOTE: Assumes you're using the entire disk /dev/sda
.
$ parted /dev/sda -- mklabel gpt
$ parted /dev/sda -- mkpart primary 512MiB 100%
$ parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB
#!/bin/python3 | |
import itertools | |
S = 'abc123xyz789' | |
L = [] | |
print(' Orig string:', S) | |
while S: | |
alpha = ''.join(itertools.takewhile(str.isalpha, S)) | |
L.append(alpha) |
I hereby claim:
To claim this, I am signing this object:
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 69 | |
model name : Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz | |
stepping : 1 | |
microcode : 0x17 | |
cpu MHz : 2293.649 | |
cache size : 3072 KB | |
physical id : 0 |
def TrendAnalysis(series, smoothing): | |
"""Analyze direction of trend and for how many periods in that direction.""" | |
# Get differences, smoothing them out to avoid insignificant "wiggles" | |
change = series.diff().rolling(window=smoothing).mean() | |
# Find the direction changes and get the current direction count | |
signs = list(reversed(np.sign(change).values)) | |
direction = signs[0] # current direction | |
periods = 1 | |
for sign in signs[1:]: |
Package: aptly | |
Priority: extra | |
Section: devel | |
Installed-Size: 19048 | |
Maintainer: Andrey Smirnov <[email protected]> | |
Architecture: amd64 | |
Version: 1.0.1 | |
Filename: pool/main/a/aptly/aptly_1.0.1_amd64.deb | |
Size: 5702560 | |
MD5sum: eac86ceab20b3ef1a3d363f7307b340e |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nvidia-docker | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: A Docker plugin that brings Nvidia support to containers | |
# Description: A Docker plugin that brings Nvidia support to containers | |
### END INIT INFO |
# To build and run: | |
# $ docker build -t nvidia-docker-bug . | |
# $ docker run -ti --rm nvidia-docker-bug /bin/bash | |
# To reproduce, run container and try and install the package. | |
# | |
# Sample session: | |
# | |
# root@224ae124ddcd:/# dpkg -i nvidia-docker_1.0.0.rc.3-1_amd64.deb |
#!/usr/bin/python2.7 | |
"""Libarary to extract the data from a Kerberos keytab and return a Python dict. | |
Inspiration taken from https://gist.github.com/liftoff/a7b059198c8dc55ceb81. I | |
just think my version is simpler and easier to understand. ;) | |
I also had a little help on the actual structs here: https://goo.gl/fy3DHG | |
""" |
#!/bin/sh | |
# | |
## Making a local repository | |
# | |
PKGS_DIR=/home/linuxluser/pkgs/ | |
BASE_DIR=/tmp/repo | |
SUITE=jessie | |
COMPONENT=main |