cat /proc/sys/net/bridge/bridge-nf-call-iptables
sysctl vm.swappiness=0
swapoff -a
import { planetHexasphere } from '../client/hexasphere.js'; | |
import PlanetGenerator from '../client/planet-generator.js'; | |
import '../hybrid/helpers.js'; | |
import { prettyUrl } from '../../../deps.js'; | |
import { getHexagonalGeometry } from '../hybrid/coordinates.js'; | |
class Generator { | |
constructor() { | |
return new Promise(async resolve => { |
############################################# | |
### Proxmox V & Docker-CE + Portainer # | |
############################################# | |
## Rescue System | |
# Erase other disks | |
dd if=/dev/zero of=/dev/sda bs=1M count=100 | |
dd if=/dev/zero of=/dev/sdb bs=1M count=100 | |
# You can install debian 10 via the guide: |
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button
# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 8:0 0 1T 0 disk
├─vda1 8:1 0 1M 0 part
├─vda2 8:2 0 1G 0 part /boot
└─vda3 8:3 0 1T 0 part
#!/usr/bin/env python3 | |
import nltk | |
import re | |
import sys | |
import json | |
import string | |
from nltk.corpus import stopwords | |
import pymorphy2 | |
import re | |
import sys | |
from collections import Counter | |
from pymorphy2 import MorphAnalyzer | |
morph = MorphAnalyzer() | |
def words(text): | |
return re.findall('[а-яА-Яa-zA-Z-]+', text.lower()) |
angular.forEach(items, function(item, key) { | |
if(item.attachments){ | |
angular.forEach(item.attachments, function(attachment, key) { | |
if(attachment.type == 'video') { | |
feed.getVideo(attachment.video.owner_id, attachment.video.owner_id+'_'+attachment.video.id).then(function(result){ | |
videos[item.id].player = result.data.response.items[0].player; | |
}); | |
} | |
} | |
} |
.factory('feed', function($http, vk, $localStorage){ | |
var owner_id = '-34882023'; | |
var version = '5.34'; | |
var count = '5'; | |
var items = []; | |
var liked; | |
var isLiked = function(itemId){ | |
return vk.call('likes.isLiked', {item_id: itemId, owner_id: owner_id, access_token: $localStorage.token, type: 'post', v: version}).then(function(result){ | |
return result; | |
}, function(err){console.log('err' + err)}); |
Form
Test
CSS