This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upstream nameservers | |
server=8.8.8.8 | |
server=8.8.4.4 | |
# Interface to listen on | |
interface=eth0 | |
# Interface(s) NOT to listen on | |
except-interface=wlan0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from protorpc import messages | |
class MultiMessage(messages.Message): | |
"""Has a field for each basic value type. | |
""" | |
boolean = messages.BooleanField(1) | |
integer = messages.IntegerField(2) | |
float = messages.FloatField(3) | |
string = messages.StringField(4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MP3ENCODERSYNTAX=lame # Specify encoder for mp3 | |
CDROMREADERSYNTAX=cdparanoia # CD reader program to use | |
LAME=/usr/bin/lame # Path to lame encoder | |
ID3V2=/usr/bin/id3v2 | |
EYED3=/usr/bin/eyeD3 # Path to eyeD3 | |
CDPARANOIA=/usr/bin/cdparanoia # Path to cdparanoia | |
CDDISCID=/usr/bin/cd-discid # Path to cd-discid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
## Making a local repository | |
# | |
PKGS_DIR=/home/linuxluser/pkgs/ | |
BASE_DIR=/tmp/repo | |
SUITE=jessie | |
COMPONENT=main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer