apt-get update && apt-get upgrade -y
- Setting up hostname, skip if done with installation
pico /etc/hosts
| { | |
| "defaultAction": "SCMP_ACT_ERRNO", | |
| "architectures": [ | |
| "SCMP_ARCH_X86_64", | |
| "SCMP_ARCH_X86", | |
| "SCMP_ARCH_X32" | |
| ], | |
| "syscalls": [ | |
| { | |
| "name": "accept", |
| #!/bin/bash | |
| apt-get update | |
| apt-get upgrade -y | |
| apt-get autoremove -y | |
| apt-get autoclean -y | |
| apt-get install ufw -y | |
| apt-get install denyhosts -y | |
| # Configure firewall |
| #!/bin/bash | |
| # https://developer.ibm.com/answers/questions/462237/error-groot-must-be-grub-root-device-on-ubuntu/ | |
| sed -i -e 's/LABEL=cloudimg-rootfs/(hd0)/' /boot/grub/menu.lst | |
| apt-get update > /dev/null | |
| apt-get install unattended-upgrades -y | |
| timeout 20m unattended-upgrade | |
| apt-get autoremove -y | |
| apt-get autoclean -y |
| import torch | |
| from torch import nn | |
| __all__ = ['FCDenseNet', 'fcdensenet_tiny', 'fcdensenet56_nodrop', | |
| 'fcdensenet56', 'fcdensenet67', 'fcdensenet103', | |
| 'fcdensenet103_nodrop'] | |
| class DenseBlock(nn.Module): |
| library(tidyverse) | |
| # Data is downloaded from here: | |
| # https://www.kaggle.com/c/digit-recognizer | |
| kaggle_data <- read_csv("~/Downloads/train.csv") | |
| pixels_gathered <- kaggle_data %>% | |
| mutate(instance = row_number()) %>% | |
| gather(pixel, value, -label, -instance) %>% | |
| extract(pixel, "pixel", "(\\d+)", convert = TRUE) |
| # Package generated configuration file | |
| # See the sshd_config(5) manpage for details | |
| # What ports, IPs and protocols we listen for | |
| Port 22 | |
| # Use these options to restrict which interfaces/protocols sshd will bind to | |
| #ListenAddress :: | |
| #ListenAddress 0.0.0.0 | |
| Protocol 2 | |
| # HostKeys for protocol version 2 |